[02:57:54]OFD Sender: No OFD packet to send [02:57:59]OFD Sender: No OFD packet to send [02:58:04]OFD Sender: No OFD packet to send [02:58:09]OFD Sender: No OFD packet to send [02:58:14]OFD Sender: No OFD packet to send [02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:46]OFD Sender: No OFD packet to send [03:14:51]OFD Sender: No OFD packet to send [03:14:56]OFD Sender: No OFD packet to send [03:15:01]OFD Sender: No OFD packet to send [03:15:06]OFD Sender: No OFD packet to send [03:15:11]OFD Sender: No OFD packet to send [03:15:16]OFD Sender: No OFD packet to send [03:15:21]OFD Sender: No OFD packet to send [03:15:26]OFD Sender: No OFD packet to send [03:15:31]OFD Sender: No OFD packet to send [03:15:36]OFD Sender: No OFD packet to send [03:15:41]OFD Sender: No OFD packet to send [03:15:46]OFD Sender: No OFD packet to send [03:15:51]OFD Sender: No OFD packet to send [03:15:56]OFD Sender: No OFD packet to send [03:16:01]OFD Sender: No OFD packet to send [03:16:06]OFD Sender: No OFD packet to send [03:16:11]OFD Sender: No OFD packet to send [03:16:16]OFD Sender: No OFD packet to send [03:16:21]OFD Sender: No OFD packet to send [03:16:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:17]accept exits with 8 [03:42:17]New connection [03:42:17]New thread 3067006308 created [03:42:17]Thread 3066862948 joined [03:42:17]Waiting for new connection... [03:42:17] Sock 8.Parse request [03:42:17]Sock 8.Check first char [03:42:17]Sock 8.First char is OK [03:42:17]request: POST /json_proto HTTP/1.0 [03:42:17]Method: POST [03:42:17]URL: /json_proto [03:42:17]Method is POST - this is cgi request [03:42:17]url: /json_proto [03:42:17]query_string will be loaded in cgi processing [03:42:17]execute_cgi json_proto POST (null) [03:42:17]execute_cgi path=json_proto method=POST [03:42:17]POST find Content-Length [03:42:17]Host: 172.17.39.67:8080 [03:42:17]Content-Length: 688 [03:42:17]Content-Type: application/json [03:42:17] [03:42:17]POST finish read [03:42:17]Found Content-Length = 688 [03:42:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:42:17]execute_script... [03:42:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318862", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:42:17]POST & json_proto [03:42:17]process_json_proto [03:42:17]json parsed OK: [03:42:17]protocol is kg_v1.0 [03:42:17]action value=close_receipt [03:42:17]process_action close_receipt [03:42:17]cmd_close_receipt [03:42:17]MH_GetDate [03:42:17]Write to MH i2c: F0 00 00 37 EF 15 [03:42:17]Write i2c OK [03:42:17]MH_I2C_Read... [03:42:17]Read from MH i2c: F0 [03:42:17]MH_I2C_Read... [03:42:17]Read from MH i2c: F0 09 00 [03:42:17]MH_I2C_Read... [03:42:17]Read from MH i2c: F0 09 00 37 EF 00 A6 F7 91 66 FA E9 8E 66 89 [03:42:17]GetLastDocTimeStamp 1720837912 [03:42:17]current date 1720842150 [03:42:17]FM_GetShiftState [03:42:17]SAM_PROTO_GetShiftState [03:42:17]wFMCommunicate request_size=4 [03:42:17]MH_SAM_APDU [03:42:17]CAPDU: 80 13 01 00 [03:42:17]Write to MH i2c: E2 08 00 38 EF 80 13 01 00 00 00 00 00 A4 [03:42:17]Write i2c OK [03:42:17]MH_I2C_Read... [03:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:42:18]Read from MH i2c: E2 [03:42:18]MH_I2C_Read... [03:42:18]Read from MH i2c: E2 0E 00 [03:42:18]MH_I2C_Read... [03:42:18]Read from MH i2c: E2 0E 00 38 EF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9E [03:42:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [03:42:18]wFMCommunicate OK [03:42:18]SAM_PROTO_GetShiftState done [03:42:18]FM_GetShiftState done [03:42:18]opened in 1720828979 [03:42:18]opened+sec_in_day 1720915379 [03:42:18]quantity*price = 250034 [03:42:18]sum+1 = 250035 [03:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 10 13.07.2024 03:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162342 ФПД: 30948977035132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T034230&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162342&fm=30948977035132&tin=02508201610067®Number=0000000000090858&sum=250000 [03:42:19]StoreToDocumentArchive [03:42:19]shift 462 fd 162342 [03:42:19]save to /storage/0462/doc_00162342 [03:42:19]save last doc name /storage/0462/doc_00162342 to /storage/kkm_last_doc_name [03:42:19]save OK [03:42:19]Clear old archive folders... [03:42:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [03:42:19]tlvbuf is 01A03050 [03:42:19]SAM_PROTO_ClearQueue [03:42:19]wFMCommunicate request_size=4 [03:42:19]MH_SAM_APDU [03:42:19]CAPDU: 80 09 00 00 [03:42:19]Write to MH i2c: E2 08 00 45 EF 80 09 00 00 00 00 00 00 A6 [03:42:19]Write i2c OK [03:42:19]MH_I2C_Read... [03:42:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:42:19]Read from MH i2c: E2 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 03 00 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 03 00 45 EF 00 90 00 A8 [03:42:19]RAPDU: 90 00 [03:42:19]wFMCommunicate OK [03:42:19]SAM_PROTO_ClearQueue done [03:42:19]KKMCreateOFDPacket [03:42:19]OFDProtocolAddRootSTLVToBuf [03:42:19]FM_MakeSignedData [03:42:19]FM_MakeSignedData [03:42:19]SAM_PROTO_SignData [03:42:19]wFMCommunicate request_size=4 [03:42:19]MH_SAM_APDU [03:42:19]CAPDU: 80 0D 01 02 [03:42:19]Write to MH i2c: E2 08 00 46 EF 80 0D 01 02 00 00 00 00 AE [03:42:19]Write i2c OK [03:42:19]MH_I2C_Read... [03:42:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:42:19]Read from MH i2c: E2 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 03 00 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 03 00 46 EF 00 90 00 A9 [03:42:19]RAPDU: 90 00 [03:42:19]wFMCommunicate OK [03:42:19]wFMCommunicate request_size=255 [03:42:19]MH_SAM_APDU [03:42:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A6 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7A 02 00 35 04 06 00 [03:42:19]Write to MH i2c: E2 02 01 47 EF 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A6 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7A 02 00 35 04 06 00 00 00 B1 [03:42:19]Write i2c OK [03:42:19]MH_I2C_Read... [03:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:42:19]Read from MH i2c: E2 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 03 00 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 03 00 47 EF 00 90 00 AA [03:42:19]RAPDU: 90 00 [03:42:19]wFMCommunicate OK [03:42:19]wFMCommunicate request_size=11 [03:42:19]MH_SAM_APDU [03:42:19]CAPDU: 80 0D 02 02 06 1C 25 DE C8 47 7C [03:42:19]Write to MH i2c: E2 0E 00 48 EF 80 0D 02 02 06 00 1C 25 DE C8 47 7C 00 00 67 [03:42:19]Write i2c OK [03:42:19]MH_I2C_Read... [03:42:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:42:19]Read from MH i2c: E2 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 03 00 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 03 00 48 EF 00 90 00 AB [03:42:19]RAPDU: 90 00 [03:42:19]wFMCommunicate OK [03:42:19]wFMCommunicate request_size=4 [03:42:19]MH_SAM_APDU [03:42:19]CAPDU: 80 0D 03 02 [03:42:19]Write to MH i2c: E2 08 00 49 EF 80 0D 03 02 00 00 00 00 B3 [03:42:19]Write i2c OK [03:42:19]MH_I2C_Read... [03:42:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:42:19]Read from MH i2c: E2 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 0B 00 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 0B 00 49 EF 00 9D CB D7 2C 81 F9 B2 87 90 00 D2 [03:42:19]RAPDU: 9D CB D7 2C 81 F9 B2 87 90 00 [03:42:19]wFMCommunicate OK [03:42:19]SAM_PROTO_SignData done [03:42:19]FM_MakeSignedData done [03:42:19]CreateOFDProtocolMessage [03:42:19]wFMCommunicate request_size=4 [03:42:19]MH_SAM_APDU [03:42:19]CAPDU: 80 11 00 00 [03:42:19]Write to MH i2c: E2 08 00 4A EF 80 11 00 00 00 00 00 00 B3 [03:42:19]Write i2c OK [03:42:19]MH_I2C_Read... [03:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:42:19]Read from MH i2c: E2 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 17 00 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: E2 17 00 4A EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 13 [03:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:42:19]wFMCommunicate OK [03:42:19]CreateOFDProtocolMessage done [03:42:19]OFDSenderStorePacket 162342 [03:42:19]StoreOFDPacket docnum=162342 [03:42:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 EC 41 08 01 FC 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A6 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7A 02 00 35 04 06 00 1C 25 DE C8 47 7C 9D CB D7 2C 81 F9 B2 87 [03:42:19]CheckFolder [03:42:19]dirname=/storage/ofd_packets [03:42:19]CheckFolder done [03:42:19]ProducePacketName [03:42:19]name=ofd_packets/00162342 [03:42:19]NVStorageSaveData ofd_packets/00162342 [03:42:19]File name is /storage/ofd_packets/00162342 [03:42:19]Write 302 bytes [03:42:19]NVStorageSaveData done [03:42:19]OFDSenderStorePacket done [03:42:19]KKMCreateOFDPacket done [03:42:19]NVStorageSaveData kkm_last_timestamp [03:42:19]File name is /storage/kkm_last_timestamp [03:42:19]Write 4 bytes [03:42:19]NVStorageSaveData done [03:42:19]ExternCall_PrintAddStr [03:42:19]wPrintStart [03:42:19]Write to MH i2c: 01 00 00 4B EF 3A [03:42:19]Write i2c OK [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: 01 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: 01 07 00 [03:42:19]MH_I2C_Read... [03:42:19]Read from MH i2c: 01 07 00 4B EF 00 00 00 00 00 FF 0F 4F [03:42:19]RasterBufferAndPrint [03:42:19]line Счет N : (1)1318862 [03:42:19]line ИНН: 02508201610067 [03:42:19]line Контрольно-Кассовый Чек [03:42:19]line ПРОДАЖА [03:42:19]line ТРК (МРК, ГНК) : 31 [03:42:19]line Товар: 2710194210 [03:42:19]line ДТ(л)-К-5 [03:42:19]line 34.440 * 72.60 [03:42:19]line = 2500.34 [03:42:19]line НДС 12% НСП 1% [03:42:19]line > о реализуемом товаре [03:42:19]line ОКРУГЛЕНИЕ: -0.34 [03:42:19]line ИТОГО: 2500.00 [03:42:19]line Внесено: 2500.00 [03:42:19]line СДАЧА: 0.00 [03:42:19]line НСП 1% : 22.13 [03:42:19]line НДС 12% : 265.52 [03:42:19]line Наличными: 2500.00 [03:42:19]line Безнал.: 0.00 [03:42:19]line Место: АЗС № 140 "Партнер Нефть" [03:42:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:42:19]line СНО: Общий режим [03:42:19]line Чек 10 13.07.2024 03:42 [03:42:19]line Смена: 462 ФФД: 1.0 [03:42:19]line ЗНМ: 0300000129 [03:42:19]line РНМ: 0000000000090858 [03:42:19]line Версия ККМ: 001 [03:42:19]line ФМ: 0000000000874899 [03:42:19]line ФД: 162342 [03:42:19]line ФПД: 30948977035132 [03:42:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T034230&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162342&fm=30948977035132&tin=02508201610067®Number=0000000000090858&sum=250000 [03:42:19]written 0, free lines is 4095 [03:42:19]OFD Sender: Processing packet 162342 [packets to send 105, broken 104] [03:42:19]ProducePacketName [03:42:19]name=ofd_packets/00162342 [03:42:19]OFD Sender: To server: pG, [03:42:19]CommunicateWithHost lk.salyk.kg:30040 [03:42:19]ConnectInit lk.salyk.kg [03:42:19]Connected sock=11 [03:42:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 EC 41 08 01 FC 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 A6 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7A 02 00 35 04 06 00 1C 25 DE C8 47 7C 9D CB D7 2C 81 F9 B2 87 [03:42:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 90 95 47 00 A7 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 34 38 39 39 10 04 04 00 26 7A 02 00 F4 03 04 00 BB A3 91 66 B6 04 01 00 00 05 7B 8D F2 7C 16 58 71 [03:42:20]CommunicateWithHost err = 0 [03:42:20]CheckOFDResponse [03:42:20]1017 (14) - 77093643461234 [03:42:20]1041 (16) - 0000000000874899 [03:42:20]1040 (4) - 162342 [03:42:20]1012 (4) - 12.07.2024 21:44 [03:42:20]1206 (1) - 0 [03:42:20]OFD Sender: Remove packet 162342 [03:42:20]ProducePacketName [03:42:20]name=ofd_packets/00162342 [03:42:20]NVStorageDeleteData [03:42:20]Write to MH i2c: 01 00 00 76 EF 65 [03:42:20]Write i2c OK [03:42:20]MH_I2C_Read... [03:42:20]Read from MH i2c: 01 [03:42:20]MH_I2C_Read... [03:42:20]Read from MH i2c: 01 07 00 [03:42:20]MH_I2C_Read... [03:42:20]Read from MH i2c: 01 07 00 76 EF 00 00 00 00 00 EA 0C 62 [03:42:20]RasterBufferAndPrint [03:42:20]line [03:42:20]line [03:42:20]line [03:42:20]line [03:42:20]line [03:42:20]written 0, free lines is 3312 [03:42:20]MH_Cut [03:42:20]Write to MH i2c: D1 01 00 7D EF 01 3E [03:42:20]Write i2c OK [03:42:20]MH_I2C_Read... [03:42:20]Read from MH i2c: D1 [03:42:20]MH_I2C_Read... [03:42:20]Read from MH i2c: D1 01 00 [03:42:20]MH_I2C_Read... [03:42:20]Read from MH i2c: D1 01 00 7D EF 00 3D [03:42:20]Write to MH i2c: 01 00 00 7E EF 6D [03:42:20]Write i2c OK [03:42:20]MH_I2C_Read... [03:42:20]OFD Sender: No OFD packet to send [03:42:20]*** Cut start [03:42:20]*** Purtial cut [03:42:20]*** Stage 1: CUTSNS_PIN = 1 [03:42:21]Read from MH i2c: 01 [03:42:21]MH_I2C_Read... [03:42:21]*** Stop cut motor [03:42:21]*** Cut end [03:42:21]Read from MH i2c: 01 07 00 [03:42:21]MH_I2C_Read... [03:42:21]Read from MH i2c: 01 07 00 7E EF 00 00 00 00 00 FF 0F 82 [03:42:21]process_action close_receipt done [03:42:21]requested_data is exist [03:42:21]produce_requested_data [03:42:21]requested_item fm.sn is exist - process it [03:42:21]wFMCommunicate request_size=4 [03:42:21]MH_SAM_APDU [03:42:21]CAPDU: 80 11 00 00 [03:42:21]Write to MH i2c: E2 08 00 7F EF 80 11 00 00 00 00 00 00 E8 [03:42:21]Write i2c OK [03:42:21]MH_I2C_Read... [03:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:42:21]Read from MH i2c: E2 [03:42:21]MH_I2C_Read... [03:42:21]Read from MH i2c: E2 17 00 [03:42:21]MH_I2C_Read... [03:42:21]Read from MH i2c: E2 17 00 7F EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 48 [03:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:42:21]wFMCommunicate OK [03:42:21]requested_item fd.num is exist - process it [03:42:21]SAM_PROTO_GetFieldsCounters [03:42:21]wFMCommunicate request_size=4 [03:42:21]MH_SAM_APDU [03:42:21]CAPDU: 80 13 00 00 [03:42:21]Write to MH i2c: E2 08 00 80 EF 80 13 00 00 00 00 00 00 EB [03:42:21]Write i2c OK [03:42:21]MH_I2C_Read... [03:42:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:42:21]Read from MH i2c: E2 [03:42:21]MH_I2C_Read... [03:42:21]Read from MH i2c: E2 62 00 [03:42:21]MH_I2C_Read... [03:42:21]Read from MH i2c: E2 62 00 80 EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 26 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [03:42:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 26 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:42:21]wFMCommunicate OK [03:42:21]SAM_PROTO_GetFieldsCounters done [03:42:21]requested_item shift.num is exist - process it [03:42:21]requested_item shift.opened is exist - process it [03:42:21]req_shift_opened [03:42:21]FM_GetShiftState [03:42:21]SAM_PROTO_GetShiftState [03:42:21]wFMCommunicate request_size=4 [03:42:21]MH_SAM_APDU [03:42:21]CAPDU: 80 13 01 00 [03:42:21]Write to MH i2c: E2 08 00 81 EF 80 13 01 00 00 00 00 00 ED [03:42:21]Write i2c OK [03:42:21]MH_I2C_Read... [03:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:42:21]Read from MH i2c: E2 [03:42:21]MH_I2C_Read... [03:42:21]Read from MH i2c: E2 0E 00 [03:42:21]MH_I2C_Read... [03:42:21]Read from MH i2c: E2 0E 00 81 EF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E7 [03:42:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [03:42:21]wFMCommunicate OK [03:42:21]SAM_PROTO_GetShiftState done [03:42:21]FM_GetShiftState done [03:42:21]req_shift_opened done [03:42:21]requested_item shift.open_date is exist - process it [03:42:21]req_shift_open_date [03:42:21]req_shift_open_date done [03:42:21]produce_requested_data done [03:42:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162342,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [03:42:21]process_action_free close_receipt [03:42:21]json_value_free [03:42:21]json_value_free done [03:42:21]process_json_proto returns [03:42:21]Send response to host [03:42:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162342,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [03:42:21]free response buf [03:42:21]execute_script done [03:42:21]execute_script returns [03:42:21]free content buf [03:42:21]Sock 8.Close socket [03:42:21]Sock 8.Thread stoped [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]accept exits with 9 [03:43:35]New connection [03:43:35]New thread 3066862948 created [03:43:35]Thread 3067006308 joined [03:43:35]Waiting for new connection... [03:43:35] Sock 9.Parse request [03:43:35]Sock 9.Check first char [03:43:35]Sock 9.First char is OK [03:43:35]request: POST /json_proto HTTP/1.0 [03:43:35]Method: POST [03:43:35]URL: /json_proto [03:43:35]Method is POST - this is cgi request [03:43:35]url: /json_proto [03:43:35]query_string will be loaded in cgi processing [03:43:35]execute_cgi json_proto POST (null) [03:43:35]execute_cgi path=json_proto method=POST [03:43:35]POST find Content-Length [03:43:35]Host: 172.17.39.67:8080 [03:43:35]Content-Length: 841 [03:43:35]Content-Type: application/json [03:43:35] [03:43:35]POST finish read [03:43:35]Found Content-Length = 841 [03:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.980, "sum" : 330.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 330.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:43:35]execute_script... [03:43: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)1318863", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.980, "sum" : 330.17, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 330.17 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:43:35]POST & json_proto [03:43:35]process_json_proto [03:43:35]json parsed OK: [03:43:35]protocol is kg_v1.0 [03:43:35]action value=close_receipt [03:43:35]process_action close_receipt [03:43:35]cmd_close_receipt [03:43:35]MH_GetDate [03:43:35]Write to MH i2c: F0 00 00 82 EF 60 [03:43:35]Write i2c OK [03:43:35]MH_I2C_Read... [03:43:35]Read from MH i2c: F0 [03:43:35]MH_I2C_Read... [03:43:35]Read from MH i2c: F0 09 00 [03:43:35]MH_I2C_Read... [03:43:35]Read from MH i2c: F0 09 00 82 EF 00 F3 F7 91 66 FA E9 8E 66 21 [03:43:35]GetLastDocTimeStamp 1720842150 [03:43:35]current date 1720842227 [03:43:35]FM_GetShiftState [03:43:35]SAM_PROTO_GetShiftState [03:43:35]wFMCommunicate request_size=4 [03:43:35]MH_SAM_APDU [03:43:35]CAPDU: 80 13 01 00 [03:43:35]Write to MH i2c: E2 08 00 83 EF 80 13 01 00 00 00 00 00 EF [03:43:35]Write i2c OK [03:43:35]MH_I2C_Read... [03:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:43:35]Read from MH i2c: E2 [03:43:35]MH_I2C_Read... [03:43:35]Read from MH i2c: E2 0E 00 [03:43:35]MH_I2C_Read... [03:43:35]Read from MH i2c: E2 0E 00 83 EF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E9 [03:43:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [03:43:35]wFMCommunicate OK [03:43:35]SAM_PROTO_GetShiftState done [03:43:35]FM_GetShiftState done [03:43:35]opened in 1720828979 [03:43:35]opened+sec_in_day 1720915379 [03:43:35]quantity*price = 33017 [03:43:35]sum+1 = 33018 [03:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.17 НСП 1% : 2.92 НДС 12% : 35.06 Наличными: 0.00 Безнал.: 330.17 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 11 13.07.2024 03:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162343 ФПД: 108733904786671 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T034347&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162343&fm=108733904786671&tin=02508201610067®Number=0000000000090858&sum=33017 [03:43:36]StoreToDocumentArchive [03:43:36]shift 462 fd 162343 [03:43:36]save to /storage/0462/doc_00162343 [03:43:36]save last doc name /storage/0462/doc_00162343 to /storage/kkm_last_doc_name [03:43:36]save OK [03:43:36]Clear old archive folders... [03:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:43:36]tlvbuf is 016FEFA0 [03:43:36]SAM_PROTO_ClearQueue [03:43:36]wFMCommunicate request_size=4 [03:43:36]MH_SAM_APDU [03:43:36]CAPDU: 80 09 00 00 [03:43:36]Write to MH i2c: E2 08 00 90 EF 80 09 00 00 00 00 00 00 F1 [03:43:36]Write i2c OK [03:43:36]MH_I2C_Read... [03:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:43:36]Read from MH i2c: E2 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 03 00 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 03 00 90 EF 00 90 00 F3 [03:43:36]RAPDU: 90 00 [03:43:36]wFMCommunicate OK [03:43:36]SAM_PROTO_ClearQueue done [03:43:36]KKMCreateOFDPacket [03:43:36]OFDProtocolAddRootSTLVToBuf [03:43:36]FM_MakeSignedData [03:43:36]FM_MakeSignedData [03:43:36]SAM_PROTO_SignData [03:43:36]wFMCommunicate request_size=4 [03:43:36]MH_SAM_APDU [03:43:36]CAPDU: 80 0D 01 02 [03:43:36]Write to MH i2c: E2 08 00 91 EF 80 0D 01 02 00 00 00 00 F9 [03:43:36]Write i2c OK [03:43:36]MH_I2C_Read... [03:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:43:36]Read from MH i2c: E2 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 03 00 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 03 00 91 EF 00 90 00 F4 [03:43:36]RAPDU: 90 00 [03:43:36]wFMCommunicate OK [03:43:36]wFMCommunicate request_size=255 [03:43:36]MH_SAM_APDU [03:43:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F3 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7A 02 00 35 04 06 00 62 [03:43:36]Write to MH i2c: E2 02 01 92 EF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F3 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7A 02 00 35 04 06 00 62 00 00 AA [03:43:36]Write i2c OK [03:43:36]MH_I2C_Read... [03:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:43:36]Read from MH i2c: E2 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 03 00 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 03 00 92 EF 00 90 00 F5 [03:43:36]RAPDU: 90 00 [03:43:36]wFMCommunicate OK [03:43:36]wFMCommunicate request_size=10 [03:43:36]MH_SAM_APDU [03:43:36]CAPDU: 80 0D 02 02 05 E4 95 C5 14 EF [03:43:36]Write to MH i2c: E2 0D 00 93 EF 80 0D 02 02 05 00 E4 95 C5 14 EF 00 00 47 [03:43:36]Write i2c OK [03:43:36]MH_I2C_Read... [03:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:43:36]Read from MH i2c: E2 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 03 00 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 03 00 93 EF 00 90 00 F6 [03:43:36]RAPDU: 90 00 [03:43:36]wFMCommunicate OK [03:43:36]wFMCommunicate request_size=4 [03:43:36]MH_SAM_APDU [03:43:36]CAPDU: 80 0D 03 02 [03:43:36]Write to MH i2c: E2 08 00 94 EF 80 0D 03 02 00 00 00 00 FE [03:43:36]Write i2c OK [03:43:36]MH_I2C_Read... [03:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:43:36]Read from MH i2c: E2 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 0B 00 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 0B 00 94 EF 00 EA D5 E3 5C A9 01 2D FE 90 00 D2 [03:43:36]RAPDU: EA D5 E3 5C A9 01 2D FE 90 00 [03:43:36]wFMCommunicate OK [03:43:36]SAM_PROTO_SignData done [03:43:36]FM_MakeSignedData done [03:43:36]CreateOFDProtocolMessage [03:43:36]wFMCommunicate request_size=4 [03:43:36]MH_SAM_APDU [03:43:36]CAPDU: 80 11 00 00 [03:43:36]Write to MH i2c: E2 08 00 95 EF 80 11 00 00 00 00 00 00 FE [03:43:36]Write i2c OK [03:43:36]MH_I2C_Read... [03:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:43:36]Read from MH i2c: E2 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 17 00 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: E2 17 00 95 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5E [03:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:43:36]wFMCommunicate OK [03:43:36]CreateOFDProtocolMessage done [03:43:36]OFDSenderStorePacket 162343 [03:43:36]StoreOFDPacket docnum=162343 [03:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CA 1E 07 01 E3 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F3 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7A 02 00 35 04 06 00 62 E4 95 C5 14 EF EA D5 E3 5C A9 01 2D FE [03:43:36]CheckFolder [03:43:36]dirname=/storage/ofd_packets [03:43:36]CheckFolder done [03:43:36]ProducePacketName [03:43:36]name=ofd_packets/00162343 [03:43:36]NVStorageSaveData ofd_packets/00162343 [03:43:36]File name is /storage/ofd_packets/00162343 [03:43:36]Write 301 bytes [03:43:36]NVStorageSaveData done [03:43:36]OFDSenderStorePacket done [03:43:36]KKMCreateOFDPacket done [03:43:36]NVStorageSaveData kkm_last_timestamp [03:43:36]File name is /storage/kkm_last_timestamp [03:43:36]Write 4 bytes [03:43:36]NVStorageSaveData done [03:43:36]ExternCall_PrintAddStr [03:43:36]wPrintStart [03:43:36]Write to MH i2c: 01 00 00 96 EF 85 [03:43:36]Write i2c OK [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: 01 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: 01 07 00 [03:43:36]MH_I2C_Read... [03:43:36]Read from MH i2c: 01 07 00 96 EF 00 00 00 00 00 FF 0F 9A [03:43:36]RasterBufferAndPrint [03:43:36]line Счет N : (1)1318863 [03:43:36]line ИНН: 02508201610067 [03:43:36]line Контрольно-Кассовый Чек [03:43:36]line ПРОДАЖА [03:43:36]line ТРК (МРК, ГНК) : 53 [03:43:36]line Товар: 2710124130 [03:43:36]line Аи-92-К-5 [03:43:36]line 4.980 * 66.30 [03:43:36]line = 330.17 [03:43:36]line НДС 12% НСП 1% [03:43:36]line > о реализуемом товаре [03:43:36]line ИТОГО: 330.17 [03:43:36]line НСП 1% : 2.92 [03:43:36]line НДС 12% : 35.06 [03:43:36]line Наличными: 0.00 [03:43:36]line Безнал.: 330.17 [03:43:36]line Место: АЗС № 140 "Партнер Нефть" [03:43:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:43:36]line СНО: Общий режим [03:43:36]line Чек 11 13.07.2024 03:43 [03:43:36]line Смена: 462 ФФД: 1.0 [03:43:36]line ЗНМ: 0300000129 [03:43:36]line РНМ: 0000000000090858 [03:43:36]line Версия ККМ: 001 [03:43:36]line Платежная система: АКБ Кыргызстан [03:43:36]line ФМ: 0000000000874899 [03:43:36]line ФД: 162343 [03:43:36]line ФПД: 108733904786671 [03:43:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T034347&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162343&fm=108733904786671&tin=02508201610067®Number=0000000000090858&sum=33017 [03:43:36]written 0, free lines is 4095 [03:43:36]OFD Sender: Processing packet 162343 [packets to send 105, broken 104] [03:43:36]ProducePacketName [03:43:36]name=ofd_packets/00162343 [03:43:36]OFD Sender: To server: pG, [03:43:36]CommunicateWithHost lk.salyk.kg:30040 [03:43:36]ConnectInit lk.salyk.kg [03:43:36]Connected sock=10 [03:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CA 1E 07 01 E3 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F9 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F3 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7A 02 00 35 04 06 00 62 E4 95 C5 14 EF EA D5 E3 5C A9 01 2D FE [03:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DE B4 47 00 FE 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7A 02 00 F4 03 04 00 08 A4 91 66 B6 04 01 00 00 22 1D 77 4B 37 A4 22 51 [03:43:37]CommunicateWithHost err = 0 [03:43:37]CheckOFDResponse [03:43:37]1017 (14) - 77093643461234 [03:43:37]1041 (16) - 0000000000874899 [03:43:37]1040 (4) - 162343 [03:43:37]1012 (4) - 12.07.2024 21:45 [03:43:37]1206 (1) - 0 [03:43:37]OFD Sender: Remove packet 162343 [03:43:37]ProducePacketName [03:43:37]name=ofd_packets/00162343 [03:43:37]NVStorageDeleteData [03:43:37]Write to MH i2c: 01 00 00 C0 EF AF [03:43:37]Write i2c OK [03:43:37]MH_I2C_Read... [03:43:37]Read from MH i2c: 01 [03:43:37]MH_I2C_Read... [03:43:37]Read from MH i2c: 01 07 00 [03:43:37]MH_I2C_Read... [03:43:37]Read from MH i2c: 01 07 00 C0 EF 00 00 00 00 00 F6 0C B8 [03:43:37]RasterBufferAndPrint [03:43:37]line [03:43:37]line [03:43:37]line [03:43:37]line [03:43:37]line [03:43:37]written 0, free lines is 3327 [03:43:37]MH_Cut [03:43:37]Write to MH i2c: D1 01 00 C7 EF 01 88 [03:43:37]Write i2c OK [03:43:37]MH_I2C_Read... [03:43:37]Read from MH i2c: D1 [03:43:37]MH_I2C_Read... [03:43:37]Read from MH i2c: D1 01 00 [03:43:37]MH_I2C_Read... [03:43:37]Read from MH i2c: D1 01 00 C7 EF 00 87 [03:43:37]Write to MH i2c: 01 00 00 C8 EF B7 [03:43:37]Write i2c OK [03:43:37]MH_I2C_Read... [03:43:37]OFD Sender: No OFD packet to send [03:43:37]*** Cut start [03:43:37]*** Purtial cut [03:43:37]*** CUTSNS_PIN = 0 [03:43:38]*** Stage 1: CUTSNS_PIN = 1 [03:43:39]Read from MH i2c: 01 [03:43:39]MH_I2C_Read... [03:43:39]*** Stop cut motor [03:43:39]*** Cut end [03:43:39]Read from MH i2c: 01 07 00 [03:43:39]MH_I2C_Read... [03:43:39]Read from MH i2c: 01 07 00 C8 EF 00 00 00 00 00 FF 0F CC [03:43:39]process_action close_receipt done [03:43:39]requested_data is exist [03:43:39]produce_requested_data [03:43:39]requested_item fm.sn is exist - process it [03:43:39]wFMCommunicate request_size=4 [03:43:39]MH_SAM_APDU [03:43:39]CAPDU: 80 11 00 00 [03:43:39]Write to MH i2c: E2 08 00 C9 EF 80 11 00 00 00 00 00 00 32 [03:43:39]Write i2c OK [03:43:39]MH_I2C_Read... [03:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:43:40]Read from MH i2c: E2 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: E2 17 00 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: E2 17 00 C9 EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 92 [03:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:43:40]wFMCommunicate OK [03:43:40]requested_item fd.num is exist - process it [03:43:40]SAM_PROTO_GetFieldsCounters [03:43:40]wFMCommunicate request_size=4 [03:43:40]MH_SAM_APDU [03:43:40]CAPDU: 80 13 00 00 [03:43:40]Write to MH i2c: E2 08 00 CA EF 80 13 00 00 00 00 00 00 35 [03:43:40]Write i2c OK [03:43:40]MH_I2C_Read... [03:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:43:40]Read from MH i2c: E2 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: E2 62 00 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: E2 62 00 CA EF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 27 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [03: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 27 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:43:40]wFMCommunicate OK [03:43:40]SAM_PROTO_GetFieldsCounters done [03:43:40]requested_item shift.num is exist - process it [03:43:40]requested_item shift.opened is exist - process it [03:43:40]req_shift_opened [03:43:40]FM_GetShiftState [03:43:40]SAM_PROTO_GetShiftState [03:43:40]wFMCommunicate request_size=4 [03:43:40]MH_SAM_APDU [03:43:40]CAPDU: 80 13 01 00 [03:43:40]Write to MH i2c: E2 08 00 CB EF 80 13 01 00 00 00 00 00 37 [03:43:40]Write i2c OK [03:43:40]MH_I2C_Read... [03:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:43:40]Read from MH i2c: E2 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: E2 0E 00 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: E2 0E 00 CB EF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 31 [03:43:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [03:43:40]wFMCommunicate OK [03:43:40]SAM_PROTO_GetShiftState done [03:43:40]FM_GetShiftState done [03:43:40]req_shift_opened done [03:43:40]requested_item shift.open_date is exist - process it [03:43:40]req_shift_open_date [03:43:40]req_shift_open_date done [03:43:40]produce_requested_data done [03:43:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162343,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [03:43:40]process_action_free close_receipt [03:43:40]json_value_free [03:43:40]json_value_free done [03:43:40]process_json_proto returns [03:43:40]Send response to host [03:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162343,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [03:43:40]free response buf [03:43:40]execute_script done [03:43:40]execute_script returns [03:43:40]free content buf [03:43:40]Sock 9.Close socket [03:43:40]Sock 9.Thread stoped [03:43:40]accept exits with 8 [03:43:40]New connection [03:43:40]New thread 3067006308 created [03:43:40]Thread 3066862948 joined [03:43:40]Waiting for new connection... [03:43:40] Sock 8.Parse request [03:43:40]Sock 8.Check first char [03:43:40]Sock 8.First char is OK [03:43:40]request: POST /json_proto HTTP/1.0 [03:43:40]Method: POST [03:43:40]URL: /json_proto [03:43:40]Method is POST - this is cgi request [03:43:40]url: /json_proto [03:43:40]query_string will be loaded in cgi processing [03:43:40]execute_cgi json_proto POST (null) [03:43:40]execute_cgi path=json_proto method=POST [03:43:40]POST find Content-Length [03:43:40]Host: 172.17.39.67:8080 [03:43:40]Content-Length: 678 [03:43:40]Content-Type: application/json [03:43:40] [03:43:40]POST finish read [03:43:40]Found Content-Length = 678 [03:43:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:43:40]execute_script... [03:43: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)1318864", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:43:40]POST & json_proto [03:43:40]process_json_proto [03:43:40]json parsed OK: [03:43:40]protocol is kg_v1.0 [03:43:40]action value=close_receipt [03:43:40]process_action close_receipt [03:43:40]cmd_close_receipt [03:43:40]MH_GetDate [03:43:40]Write to MH i2c: F0 00 00 CC EF AA [03:43:40]Write i2c OK [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: F0 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: F0 09 00 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: F0 09 00 CC EF 00 F8 F7 91 66 FA E9 8E 66 70 [03:43:40]GetLastDocTimeStamp 1720842227 [03:43:40]current date 1720842232 [03:43:40]FM_GetShiftState [03:43:40]SAM_PROTO_GetShiftState [03:43:40]wFMCommunicate request_size=4 [03:43:40]MH_SAM_APDU [03:43:40]CAPDU: 80 13 01 00 [03:43:40]Write to MH i2c: E2 08 00 CD EF 80 13 01 00 00 00 00 00 39 [03:43:40]Write i2c OK [03:43:40]MH_I2C_Read... [03:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:43:40]Read from MH i2c: E2 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: E2 0E 00 [03:43:40]MH_I2C_Read... [03:43:40]Read from MH i2c: E2 0E 00 CD EF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 33 [03:43:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [03:43:40]wFMCommunicate OK [03:43:40]SAM_PROTO_GetShiftState done [03:43:40]FM_GetShiftState done [03:43:40]opened in 1720828979 [03:43:40]opened+sec_in_day 1720915379 [03:43:40]quantity*price = 50056 [03:43:40]sum+1 = 50058 [03:43:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 12 13.07.2024 03:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162344 ФПД: 137246803184819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T034352&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162344&fm=137246803184819&tin=02508201610067®Number=0000000000090858&sum=50000 [03:43:41]StoreToDocumentArchive [03:43:41]shift 462 fd 162344 [03:43:41]save to /storage/0462/doc_00162344 [03:43:41]save last doc name /storage/0462/doc_00162344 to /storage/kkm_last_doc_name [03:43:41]save OK [03:43:41]Clear old archive folders... [03:43:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:43:41]tlvbuf is 01785AF0 [03:43:41]SAM_PROTO_ClearQueue [03:43:41]wFMCommunicate request_size=4 [03:43:41]MH_SAM_APDU [03:43:41]CAPDU: 80 09 00 00 [03:43:41]Write to MH i2c: E2 08 00 DA EF 80 09 00 00 00 00 00 00 3B [03:43:41]Write i2c OK [03:43:41]MH_I2C_Read... [03:43:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:43:41]Read from MH i2c: E2 [03:43:41]MH_I2C_Read... [03:43:41]Read from MH i2c: E2 03 00 [03:43:41]MH_I2C_Read... [03:43:41]Read from MH i2c: E2 03 00 DA EF 00 90 00 3D [03:43:41]RAPDU: 90 00 [03:43:41]wFMCommunicate OK [03:43:41]SAM_PROTO_ClearQueue done [03:43:41]KKMCreateOFDPacket [03:43:41]OFDProtocolAddRootSTLVToBuf [03:43:41]FM_MakeSignedData [03:43:41]FM_MakeSignedData [03:43:41]SAM_PROTO_SignData [03:43:41]wFMCommunicate request_size=4 [03:43:41]MH_SAM_APDU [03:43:41]CAPDU: 80 0D 01 02 [03:43:41]Write to MH i2c: E2 08 00 DB EF 80 0D 01 02 00 00 00 00 43 [03:43:41]Write i2c OK [03:43:41]MH_I2C_Read... [03:43:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:43:41]Read from MH i2c: E2 [03:43:41]MH_I2C_Read... [03:43:41]Read from MH i2c: E2 03 00 [03:43:41]MH_I2C_Read... [03:43:41]Read from MH i2c: E2 03 00 DB EF 00 90 00 3E [03:43:41]RAPDU: 90 00 [03:43:41]wFMCommunicate OK [03:43:41]wFMCommunicate request_size=255 [03:43:41]MH_SAM_APDU [03:43:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F8 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7A 02 00 35 04 06 00 7C [03:43:41]Write to MH i2c: E2 02 01 DC EF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F8 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7A 02 00 35 04 06 00 7C 00 00 E0 [03:43:41]Write i2c OK [03:43:41]MH_I2C_Read... [03:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:43:42]Read from MH i2c: E2 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: E2 03 00 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: E2 03 00 DC EF 00 90 00 3F [03:43:42]RAPDU: 90 00 [03:43:42]wFMCommunicate OK [03:43:42]wFMCommunicate request_size=10 [03:43:42]MH_SAM_APDU [03:43:42]CAPDU: 80 0D 02 02 05 D3 42 F3 4C B3 [03:43:42]Write to MH i2c: E2 0D 00 DD EF 80 0D 02 02 05 00 D3 42 F3 4C B3 00 00 57 [03:43:42]Write i2c OK [03:43:42]MH_I2C_Read... [03:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:43:42]Read from MH i2c: E2 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: E2 03 00 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: E2 03 00 DD EF 00 90 00 40 [03:43:42]RAPDU: 90 00 [03:43:42]wFMCommunicate OK [03:43:42]wFMCommunicate request_size=4 [03:43:42]MH_SAM_APDU [03:43:42]CAPDU: 80 0D 03 02 [03:43:42]Write to MH i2c: E2 08 00 DE EF 80 0D 03 02 00 00 00 00 48 [03:43:42]Write i2c OK [03:43:42]MH_I2C_Read... [03:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:43:42]Read from MH i2c: E2 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: E2 0B 00 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: E2 0B 00 DE EF 00 79 CE 90 94 DE C6 8F 5E 90 00 45 [03:43:42]RAPDU: 79 CE 90 94 DE C6 8F 5E 90 00 [03:43:42]wFMCommunicate OK [03:43:42]SAM_PROTO_SignData done [03:43:42]FM_MakeSignedData done [03:43:42]CreateOFDProtocolMessage [03:43:42]wFMCommunicate request_size=4 [03:43:42]MH_SAM_APDU [03:43:42]CAPDU: 80 11 00 00 [03:43:42]Write to MH i2c: E2 08 00 DF EF 80 11 00 00 00 00 00 00 48 [03:43:42]Write i2c OK [03:43:42]MH_I2C_Read... [03:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:43:42]Read from MH i2c: E2 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: E2 17 00 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: E2 17 00 DF EF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A8 [03:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:43:42]wFMCommunicate OK [03:43:42]CreateOFDProtocolMessage done [03:43:42]OFDSenderStorePacket 162344 [03:43:42]StoreOFDPacket docnum=162344 [03:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 65 39 07 01 0D 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F8 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7A 02 00 35 04 06 00 7C D3 42 F3 4C B3 79 CE 90 94 DE C6 8F 5E [03:43:42]CheckFolder [03:43:42]dirname=/storage/ofd_packets [03:43:42]CheckFolder done [03:43:42]ProducePacketName [03:43:42]name=ofd_packets/00162344 [03:43:42]NVStorageSaveData ofd_packets/00162344 [03:43:42]File name is /storage/ofd_packets/00162344 [03:43:42]Write 301 bytes [03:43:42]NVStorageSaveData done [03:43:42]OFDSenderStorePacket done [03:43:42]KKMCreateOFDPacket done [03:43:42]NVStorageSaveData kkm_last_timestamp [03:43:42]File name is /storage/kkm_last_timestamp [03:43:42]Write 4 bytes [03:43:42]NVStorageSaveData done [03:43:42]ExternCall_PrintAddStr [03:43:42]wPrintStart [03:43:42]Write to MH i2c: 01 00 00 E0 EF CF [03:43:42]Write i2c OK [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: 01 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: 01 07 00 [03:43:42]MH_I2C_Read... [03:43:42]Read from MH i2c: 01 07 00 E0 EF 00 00 00 00 00 FF 0F E4 [03:43:42]RasterBufferAndPrint [03:43:42]line Счет N : (1)1318864 [03:43:42]line ИНН: 02508201610067 [03:43:42]line Контрольно-Кассовый Чек [03:43:42]line ПРОДАЖА [03:43:42]line ТРК (МРК, ГНК) : 33 [03:43:42]line Товар: 2710124130 [03:43:42]line Аи-92-К-5 [03:43:42]line 7.550 * 66.30 [03:43:42]line = 500.57 [03:43:42]line НДС 12% НСП 1% [03:43:42]line > о реализуемом товаре [03:43:42]line ОКРУГЛЕНИЕ: -0.57 [03:43:42]line ИТОГО: 500.00 [03:43:42]line Внесено: 500.00 [03:43:42]line СДАЧА: 0.00 [03:43:42]line НСП 1% : 4.43 [03:43:42]line НДС 12% : 53.16 [03:43:42]line Наличными: 500.00 [03:43:42]line Безнал.: 0.00 [03:43:42]line Место: АЗС № 140 "Партнер Нефть" [03:43:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:43:42]line СНО: Общий режим [03:43:42]line Чек 12 13.07.2024 03:43 [03:43:42]line Смена: 462 ФФД: 1.0 [03:43:42]line ЗНМ: 0300000129 [03:43:42]line РНМ: 0000000000090858 [03:43:42]line Версия ККМ: 001 [03:43:42]line ФМ: 0000000000874899 [03:43:42]line ФД: 162344 [03:43:42]line ФПД: 137246803184819 [03:43:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T034352&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162344&fm=137246803184819&tin=02508201610067®Number=0000000000090858&sum=50000 [03:43:42]OFD Sender: Processing packet 162344 [packets to send 105, broken 104] [03:43:42]ProducePacketName [03:43:42]name=ofd_packets/00162344 [03:43:42]OFD Sender: To server: pG, [03:43:42]CommunicateWithHost lk.salyk.kg:30040 [03:43:42]ConnectInit lk.salyk.kg [03:43:42]written 0, free lines is 4095 [03:43:42]Connected sock=10 [03:43:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 65 39 07 01 0D 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F8 F7 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7A 02 00 35 04 06 00 7C D3 42 F3 4C B3 79 CE 90 94 DE C6 8F 5E [03:43:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4C AD 47 00 A1 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7A 02 00 F4 03 04 00 0E A4 91 66 B6 04 01 00 00 2D BB C3 06 39 93 33 9B [03:43:43]CommunicateWithHost err = 0 [03:43:43]CheckOFDResponse [03:43:43]1017 (14) - 77093643461234 [03:43:43]1041 (16) - 0000000000874899 [03:43:43]1040 (4) - 162344 [03:43:43]1012 (4) - 12.07.2024 21:45 [03:43:43]1206 (1) - 0 [03:43:43]OFD Sender: Remove packet 162344 [03:43:43]ProducePacketName [03:43:43]name=ofd_packets/00162344 [03:43:43]NVStorageDeleteData [03:43:43]Write to MH i2c: 01 00 00 0B F0 FB [03:43:43]Write i2c OK [03:43:43]MH_I2C_Read... [03:43:43]Read from MH i2c: 01 [03:43:43]MH_I2C_Read... [03:43:43]Read from MH i2c: 01 07 00 [03:43:43]MH_I2C_Read... [03:43:43]Read from MH i2c: 01 07 00 0B F0 00 00 00 00 00 EE 0C FC [03:43:43]RasterBufferAndPrint [03:43:43]line [03:43:43]line [03:43:43]line [03:43:43]line [03:43:43]line [03:43:43]written 0, free lines is 3328 [03:43:43]MH_Cut [03:43:43]Write to MH i2c: D1 01 00 12 F0 01 D4 [03:43:43]Write i2c OK [03:43:43]MH_I2C_Read... [03:43:43]Read from MH i2c: D1 [03:43:43]MH_I2C_Read... [03:43:43]Read from MH i2c: D1 01 00 [03:43:43]MH_I2C_Read... [03:43:43]Read from MH i2c: D1 01 00 12 F0 00 D3 [03:43:43]Write to MH i2c: 01 00 00 13 F0 03 [03:43:43]Write i2c OK [03:43:43]MH_I2C_Read... [03:43:43]OFD Sender: No OFD packet to send [03:43:43]*** Cut start [03:43:43]*** Purtial cut [03:43:43]*** Stage 1: CUTSNS_PIN = 1 [03:43:44]Read from MH i2c: 01 [03:43:44]MH_I2C_Read... [03:43:44]*** Stop cut motor [03:43:44]*** Cut end [03:43:44]Read from MH i2c: 01 07 00 [03:43:44]MH_I2C_Read... [03:43:44]Read from MH i2c: 01 07 00 13 F0 00 00 00 00 00 FF 0F 18 [03:43:44]process_action close_receipt done [03:43:44]requested_data is exist [03:43:44]produce_requested_data [03:43:44]requested_item fm.sn is exist - process it [03:43:44]wFMCommunicate request_size=4 [03:43:44]MH_SAM_APDU [03:43:44]CAPDU: 80 11 00 00 [03:43:44]Write to MH i2c: E2 08 00 14 F0 80 11 00 00 00 00 00 00 7E [03:43:44]Write i2c OK [03:43:44]MH_I2C_Read... [03:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:43:44]Read from MH i2c: E2 [03:43:44]MH_I2C_Read... [03:43:44]Read from MH i2c: E2 17 00 [03:43:44]MH_I2C_Read... [03:43:44]Read from MH i2c: E2 17 00 14 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DE [03:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [03:43:44]wFMCommunicate OK [03:43:44]requested_item fd.num is exist - process it [03:43:44]SAM_PROTO_GetFieldsCounters [03:43:44]wFMCommunicate request_size=4 [03:43:44]MH_SAM_APDU [03:43:44]CAPDU: 80 13 00 00 [03:43:44]Write to MH i2c: E2 08 00 15 F0 80 13 00 00 00 00 00 00 81 [03:43:44]Write i2c OK [03:43:44]MH_I2C_Read... [03:43:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:43:44]Read from MH i2c: E2 [03:43:44]MH_I2C_Read... [03:43:44]Read from MH i2c: E2 62 00 [03:43:44]MH_I2C_Read... [03:43:44]Read from MH i2c: E2 62 00 15 F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 28 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [03:43:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 28 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:43:44]wFMCommunicate OK [03:43:44]SAM_PROTO_GetFieldsCounters done [03:43:44]requested_item shift.num is exist - process it [03:43:44]requested_item shift.opened is exist - process it [03:43:44]req_shift_opened [03:43:44]FM_GetShiftState [03:43:44]SAM_PROTO_GetShiftState [03:43:44]wFMCommunicate request_size=4 [03:43:44]MH_SAM_APDU [03:43:44]CAPDU: 80 13 01 00 [03:43:44]Write to MH i2c: E2 08 00 16 F0 80 13 01 00 00 00 00 00 83 [03:43:44]Write i2c OK [03:43:44]MH_I2C_Read... [03:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:43:44]Read from MH i2c: E2 [03:43:44]MH_I2C_Read... [03:43:44]Read from MH i2c: E2 0E 00 [03:43:44]MH_I2C_Read... [03:43:44]Read from MH i2c: E2 0E 00 16 F0 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7D [03:43:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [03:43:44]wFMCommunicate OK [03:43:44]SAM_PROTO_GetShiftState done [03:43:44]FM_GetShiftState done [03:43:44]req_shift_opened done [03:43:44]requested_item shift.open_date is exist - process it [03:43:44]req_shift_open_date [03:43:44]req_shift_open_date done [03:43:44]produce_requested_data done [03:43:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162344,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [03:43:44]process_action_free close_receipt [03:43:44]json_value_free [03:43:44]json_value_free done [03:43:44]process_json_proto returns [03:43:44]Send response to host [03:43:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162344,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [03:43:44]free response buf [03:43:44]execute_script done [03:43:44]execute_script returns [03:43:44]free content buf [03:43:44]Sock 8.Close socket [03:43:44]Sock 8.Thread stoped [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:53]OFD Sender: No OFD packet to send [03:47:58]OFD Sender: No OFD packet to send [03:48:03]OFD Sender: No OFD packet to send [03:48:08]OFD Sender: No OFD packet to send [03:48:13]OFD Sender: No OFD packet to send [03:48:18]OFD Sender: No OFD packet to send [03:48:23]OFD Sender: No OFD packet to send [03:48:28]OFD Sender: No OFD packet to send [03:48:33]OFD Sender: No OFD packet to send [03:48:38]OFD Sender: No OFD packet to send [03:48:43]OFD Sender: No OFD packet to send [03:48:48]OFD Sender: No OFD packet to send [03:48:53]OFD Sender: No OFD packet to send [03:48:58]OFD Sender: No OFD packet to send [03:49:03]OFD Sender: No OFD packet to send [03:49:08]OFD Sender: No OFD packet to send [03:49:13]OFD Sender: No OFD packet to send [03:49:18]OFD Sender: No OFD packet to send [03:49:23]OFD Sender: No OFD packet to send [03:49:28]OFD Sender: No OFD packet to send [03:49:33]OFD Sender: No OFD packet to send [03:49:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]OFD Sender: No OFD packet to send [03:59:09]OFD Sender: No OFD packet to send [03:59:14]OFD Sender: No OFD packet to send [03:59:19]OFD Sender: No OFD packet to send [03:59:24]OFD Sender: No OFD packet to send [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:24]OFD Sender: No OFD packet to send [04:00:29]OFD Sender: No OFD packet to send [04:00:34]OFD Sender: No OFD packet to send [04:00:39]OFD Sender: No OFD packet to send [04:00:42]accept exits with 9 [04:00:42]New connection [04:00:42]New thread 3066862948 created [04:00:42]Thread 3067006308 joined [04:00:42]Waiting for new connection... [04:00:42] Sock 9.Parse request [04:00:42]Sock 9.Check first char [04:00:42]Sock 9.First char is OK [04:00:42]request: POST /json_proto HTTP/1.0 [04:00:42]Method: POST [04:00:42]URL: /json_proto [04:00:42]Method is POST - this is cgi request [04:00:42]url: /json_proto [04:00:42]query_string will be loaded in cgi processing [04:00:42]execute_cgi json_proto POST (null) [04:00:42]execute_cgi path=json_proto method=POST [04:00:42]POST find Content-Length [04:00:42]Host: 172.17.39.67:8080 [04:00:42]Content-Length: 688 [04:00:42]Content-Type: application/json [04:00:42] [04:00:42]POST finish read [04:00:42]Found Content-Length = 688 [04:00:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [04:00:42]execute_script... [04:00: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)1318865", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [04:00:42]POST & json_proto [04:00:42]process_json_proto [04:00:42]json parsed OK: [04:00:42]protocol is kg_v1.0 [04:00:42]action value=close_receipt [04:00:42]process_action close_receipt [04:00:42]cmd_close_receipt [04:00:42]MH_GetDate [04:00:42]Write to MH i2c: F0 00 00 17 F0 F6 [04:00:42]Write i2c OK [04:00:42]MH_I2C_Read... [04:00:42]Read from MH i2c: F0 [04:00:42]MH_I2C_Read... [04:00:42]Read from MH i2c: F0 09 00 [04:00:42]MH_I2C_Read... [04:00:42]Read from MH i2c: F0 09 00 17 F0 00 F7 FB 91 66 FA E9 8E 66 BF [04:00:42]GetLastDocTimeStamp 1720842232 [04:00:42]current date 1720843255 [04:00:42]FM_GetShiftState [04:00:42]SAM_PROTO_GetShiftState [04:00:42]wFMCommunicate request_size=4 [04:00:42]MH_SAM_APDU [04:00:42]CAPDU: 80 13 01 00 [04:00:42]Write to MH i2c: E2 08 00 18 F0 80 13 01 00 00 00 00 00 85 [04:00:42]Write i2c OK [04:00:42]MH_I2C_Read... [04:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:42]Read from MH i2c: E2 [04:00:42]MH_I2C_Read... [04:00:42]Read from MH i2c: E2 0E 00 [04:00:42]MH_I2C_Read... [04:00:42]Read from MH i2c: E2 0E 00 18 F0 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7F [04:00:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [04:00:42]wFMCommunicate OK [04:00:42]SAM_PROTO_GetShiftState done [04:00:42]FM_GetShiftState done [04:00:42]opened in 1720828979 [04:00:42]opened+sec_in_day 1720915379 [04:00:42]quantity*price = 100042 [04:00:42]sum+1 = 100044 [04:00:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 13 13.07.2024 04:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162345 ФПД: 17227235062804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T040055&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162345&fm=17227235062804&tin=02508201610067®Number=0000000000090858&sum=100000 [04:00:43]StoreToDocumentArchive [04:00:43]shift 462 fd 162345 [04:00:43]save to /storage/0462/doc_00162345 [04:00:43]save last doc name /storage/0462/doc_00162345 to /storage/kkm_last_doc_name [04:00:43]save OK [04:00:43]Clear old archive folders... [04:00:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:00:43]tlvbuf is 01C449B0 [04:00:43]SAM_PROTO_ClearQueue [04:00:43]wFMCommunicate request_size=4 [04:00:43]MH_SAM_APDU [04:00:43]CAPDU: 80 09 00 00 [04:00:43]Write to MH i2c: E2 08 00 25 F0 80 09 00 00 00 00 00 00 87 [04:00:43]Write i2c OK [04:00:43]MH_I2C_Read... [04:00:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:00:43]Read from MH i2c: E2 [04:00:43]MH_I2C_Read... [04:00:43]Read from MH i2c: E2 03 00 [04:00:43]MH_I2C_Read... [04:00:43]Read from MH i2c: E2 03 00 25 F0 00 90 00 89 [04:00:43]RAPDU: 90 00 [04:00:43]wFMCommunicate OK [04:00:43]SAM_PROTO_ClearQueue done [04:00:43]KKMCreateOFDPacket [04:00:43]OFDProtocolAddRootSTLVToBuf [04:00:43]FM_MakeSignedData [04:00:43]FM_MakeSignedData [04:00:43]SAM_PROTO_SignData [04:00:43]wFMCommunicate request_size=4 [04:00:43]MH_SAM_APDU [04:00:43]CAPDU: 80 0D 01 02 [04:00:43]Write to MH i2c: E2 08 00 26 F0 80 0D 01 02 00 00 00 00 8F [04:00:43]Write i2c OK [04:00:43]MH_I2C_Read... [04:00:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:00:43]Read from MH i2c: E2 [04:00:43]MH_I2C_Read... [04:00:43]Read from MH i2c: E2 03 00 [04:00:43]MH_I2C_Read... [04:00:43]Read from MH i2c: E2 03 00 26 F0 00 90 00 8A [04:00:43]RAPDU: 90 00 [04:00:43]wFMCommunicate OK [04:00:43]wFMCommunicate request_size=255 [04:00:43]MH_SAM_APDU [04:00:43]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0D 00 00 00 F4 03 04 00 F7 FB 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7A 02 00 35 04 06 00 [04:00:43]Write to MH i2c: E2 02 01 27 F0 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0D 00 00 00 F4 03 04 00 F7 FB 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7A 02 00 35 04 06 00 00 00 92 [04:00:43]Write i2c OK [04:00:43]MH_I2C_Read... [04:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:44]Read from MH i2c: E2 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: E2 03 00 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: E2 03 00 27 F0 00 90 00 8B [04:00:44]RAPDU: 90 00 [04:00:44]wFMCommunicate OK [04:00:44]wFMCommunicate request_size=11 [04:00:44]MH_SAM_APDU [04:00:44]CAPDU: 80 0D 02 02 06 0F AB 07 39 F4 14 [04:00:44]Write to MH i2c: E2 0E 00 28 F0 80 0D 02 02 06 00 0F AB 07 39 F4 14 00 00 A0 [04:00:44]Write i2c OK [04:00:44]MH_I2C_Read... [04:00:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:00:44]Read from MH i2c: E2 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: E2 03 00 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: E2 03 00 28 F0 00 90 00 8C [04:00:44]RAPDU: 90 00 [04:00:44]wFMCommunicate OK [04:00:44]wFMCommunicate request_size=4 [04:00:44]MH_SAM_APDU [04:00:44]CAPDU: 80 0D 03 02 [04:00:44]Write to MH i2c: E2 08 00 29 F0 80 0D 03 02 00 00 00 00 94 [04:00:44]Write i2c OK [04:00:44]MH_I2C_Read... [04:00:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:00:44]Read from MH i2c: E2 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: E2 0B 00 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: E2 0B 00 29 F0 00 92 71 70 D8 45 05 92 4D 90 00 09 [04:00:44]RAPDU: 92 71 70 D8 45 05 92 4D 90 00 [04:00:44]wFMCommunicate OK [04:00:44]SAM_PROTO_SignData done [04:00:44]FM_MakeSignedData done [04:00:44]CreateOFDProtocolMessage [04:00:44]wFMCommunicate request_size=4 [04:00:44]MH_SAM_APDU [04:00:44]CAPDU: 80 11 00 00 [04:00:44]Write to MH i2c: E2 08 00 2A F0 80 11 00 00 00 00 00 00 94 [04:00:44]Write i2c OK [04:00:44]MH_I2C_Read... [04:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:44]Read from MH i2c: E2 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: E2 17 00 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: E2 17 00 2A F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F4 [04:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:00:44]wFMCommunicate OK [04:00:44]CreateOFDProtocolMessage done [04:00:44]OFDSenderStorePacket 162345 [04:00:44]StoreOFDPacket docnum=162345 [04:00:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 73 E2 08 01 D6 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0D 00 00 00 F4 03 04 00 F7 FB 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7A 02 00 35 04 06 00 0F AB 07 39 F4 14 92 71 70 D8 45 05 92 4D [04:00:44]CheckFolder [04:00:44]dirname=/storage/ofd_packets [04:00:44]CheckFolder done [04:00:44]ProducePacketName [04:00:44]name=ofd_packets/00162345 [04:00:44]NVStorageSaveData ofd_packets/00162345 [04:00:44]File name is /storage/ofd_packets/00162345 [04:00:44]Write 302 bytes [04:00:44]NVStorageSaveData done [04:00:44]OFDSenderStorePacket done [04:00:44]KKMCreateOFDPacket done [04:00:44]NVStorageSaveData kkm_last_timestamp [04:00:44]File name is /storage/kkm_last_timestamp [04:00:44]Write 4 bytes [04:00:44]NVStorageSaveData done [04:00:44]ExternCall_PrintAddStr [04:00:44]wPrintStart [04:00:44]Write to MH i2c: 01 00 00 2B F0 1B [04:00:44]Write i2c OK [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: 01 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: 01 07 00 [04:00:44]MH_I2C_Read... [04:00:44]Read from MH i2c: 01 07 00 2B F0 00 00 00 00 00 FF 0F 30 [04:00:44]RasterBufferAndPrint [04:00:44]line Счет N : (1)1318865 [04:00:44]line ИНН: 02508201610067 [04:00:44]line Контрольно-Кассовый Чек [04:00:44]line ПРОДАЖА [04:00:44]line ТРК (МРК, ГНК) : 21 [04:00:44]line Товар: 2710194210 [04:00:44]line ДТ(л)-К-5 [04:00:44]line 13.780 * 72.60 [04:00:44]line = 1000.43 [04:00:44]line НДС 12% НСП 1% [04:00:44]line > о реализуемом товаре [04:00:44]line ОКРУГЛЕНИЕ: -0.43 [04:00:44]line ИТОГО: 1000.00 [04:00:44]line Внесено: 1000.00 [04:00:44]line СДАЧА: 0.00 [04:00:44]line НСП 1% : 8.85 [04:00:44]line НДС 12% : 106.24 [04:00:44]line Наличными: 1000.00 [04:00:44]line Безнал.: 0.00 [04:00:44]line Место: АЗС № 140 "Партнер Нефть" [04:00:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:00:44]line СНО: Общий режим [04:00:44]line Чек 13 13.07.2024 04:00 [04:00:44]line Смена: 462 ФФД: 1.0 [04:00:44]line ЗНМ: 0300000129 [04:00:44]line РНМ: 0000000000090858 [04:00:44]line Версия ККМ: 001 [04:00:44]line ФМ: 0000000000874899 [04:00:44]line ФД: 162345 [04:00:44]line ФПД: 17227235062804 [04:00:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T040055&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162345&fm=17227235062804&tin=02508201610067®Number=0000000000090858&sum=100000 [04:00:44]OFD Sender: Processing packet 162345 [packets to send 105, broken 104] [04:00:44]ProducePacketName [04:00:44]name=ofd_packets/00162345 [04:00:44]OFD Sender: To server: pG, [04:00:44]CommunicateWithHost lk.salyk.kg:30040 [04:00:44]ConnectInit lk.salyk.kg [04:00:44]written 0, free lines is 4095 [04:00:44]Connected sock=10 [04:00:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 73 E2 08 01 D6 FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0D 00 00 00 F4 03 04 00 F7 FB 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7A 02 00 35 04 06 00 0F AB 07 39 F4 14 92 71 70 D8 45 05 92 4D [04:00:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FC 48 47 00 57 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7A 02 00 F4 03 04 00 0C A8 91 66 B6 04 01 00 00 3E F8 3F 63 C2 22 35 21 [04:00:45]CommunicateWithHost err = 0 [04:00:45]CheckOFDResponse [04:00:45]1017 (14) - 77093643461234 [04:00:45]1041 (16) - 0000000000874899 [04:00:45]1040 (4) - 162345 [04:00:45]1012 (4) - 12.07.2024 22:02 [04:00:45]1206 (1) - 0 [04:00:45]OFD Sender: Remove packet 162345 [04:00:45]ProducePacketName [04:00:45]name=ofd_packets/00162345 [04:00:45]NVStorageDeleteData [04:00:45]Write to MH i2c: 01 00 00 56 F0 46 [04:00:45]Write i2c OK [04:00:45]MH_I2C_Read... [04:00:45]Read from MH i2c: 01 [04:00:45]MH_I2C_Read... [04:00:45]Read from MH i2c: 01 07 00 [04:00:45]MH_I2C_Read... [04:00:45]Read from MH i2c: 01 07 00 56 F0 00 00 00 00 00 D3 0C 2C [04:00:45]RasterBufferAndPrint [04:00:45]line [04:00:45]line [04:00:45]line [04:00:45]line [04:00:45]line [04:00:45]written 0, free lines is 3293 [04:00:45]MH_Cut [04:00:45]Write to MH i2c: D1 01 00 5D F0 01 1F [04:00:45]Write i2c OK [04:00:45]MH_I2C_Read... [04:00:45]Read from MH i2c: D1 [04:00:45]MH_I2C_Read... [04:00:45]Read from MH i2c: D1 01 00 [04:00:45]MH_I2C_Read... [04:00:45]Read from MH i2c: D1 01 00 5D F0 00 1E [04:00:45]Write to MH i2c: 01 00 00 5E F0 4E [04:00:45]Write i2c OK [04:00:45]MH_I2C_Read... [04:00:45]OFD Sender: No OFD packet to send [04:00:45]*** Cut start [04:00:45]*** Purtial cut [04:00:45]*** CUTSNS_PIN = 0 [04:00:46]*** Stage 1: CUTSNS_PIN = 1 [04:00:47]Read from MH i2c: 01 [04:00:47]MH_I2C_Read... [04:00:47]*** Stop cut motor [04:00:47]*** Cut end [04:00:47]Read from MH i2c: 01 07 00 [04:00:47]MH_I2C_Read... [04:00:47]Read from MH i2c: 01 07 00 5E F0 00 00 00 00 00 FF 0F 63 [04:00:47]process_action close_receipt done [04:00:47]requested_data is exist [04:00:47]produce_requested_data [04:00:47]requested_item fm.sn is exist - process it [04:00:47]wFMCommunicate request_size=4 [04:00:47]MH_SAM_APDU [04:00:47]CAPDU: 80 11 00 00 [04:00:47]Write to MH i2c: E2 08 00 5F F0 80 11 00 00 00 00 00 00 C9 [04:00:47]Write i2c OK [04:00:47]MH_I2C_Read... [04:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:00:48]Read from MH i2c: E2 [04:00:48]MH_I2C_Read... [04:00:48]Read from MH i2c: E2 17 00 [04:00:48]MH_I2C_Read... [04:00:48]Read from MH i2c: E2 17 00 5F F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 29 [04:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:00:48]wFMCommunicate OK [04:00:48]requested_item fd.num is exist - process it [04:00:48]SAM_PROTO_GetFieldsCounters [04:00:48]wFMCommunicate request_size=4 [04:00:48]MH_SAM_APDU [04:00:48]CAPDU: 80 13 00 00 [04:00:48]Write to MH i2c: E2 08 00 60 F0 80 13 00 00 00 00 00 00 CC [04:00:48]Write i2c OK [04:00:48]MH_I2C_Read... [04:00:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:00:48]Read from MH i2c: E2 [04:00:48]MH_I2C_Read... [04:00:48]Read from MH i2c: E2 62 00 [04:00:48]MH_I2C_Read... [04:00:48]Read from MH i2c: E2 62 00 60 F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 29 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [04:00:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 29 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:00:48]wFMCommunicate OK [04:00:48]SAM_PROTO_GetFieldsCounters done [04:00:48]requested_item shift.num is exist - process it [04:00:48]requested_item shift.opened is exist - process it [04:00:48]req_shift_opened [04:00:48]FM_GetShiftState [04:00:48]SAM_PROTO_GetShiftState [04:00:48]wFMCommunicate request_size=4 [04:00:48]MH_SAM_APDU [04:00:48]CAPDU: 80 13 01 00 [04:00:48]Write to MH i2c: E2 08 00 61 F0 80 13 01 00 00 00 00 00 CE [04:00:48]Write i2c OK [04:00:48]MH_I2C_Read... [04:00:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:00:48]Read from MH i2c: E2 [04:00:48]MH_I2C_Read... [04:00:48]Read from MH i2c: E2 0E 00 [04:00:48]MH_I2C_Read... [04:00:48]Read from MH i2c: E2 0E 00 61 F0 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C8 [04:00:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [04:00:48]wFMCommunicate OK [04:00:48]SAM_PROTO_GetShiftState done [04:00:48]FM_GetShiftState done [04:00:48]req_shift_opened done [04:00:48]requested_item shift.open_date is exist - process it [04:00:48]req_shift_open_date [04:00:48]req_shift_open_date done [04:00:48]produce_requested_data done [04:00:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162345,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [04:00:48]process_action_free close_receipt [04:00:48]json_value_free [04:00:48]json_value_free done [04:00:48]process_json_proto returns [04:00:48]Send response to host [04:00:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162345,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [04:00:48]free response buf [04:00:48]execute_script done [04:00:48]execute_script returns [04:00:48]free content buf [04:00:48]Sock 9.Close socket [04:00:48]Sock 9.Thread stoped [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:08:56]accept exits with 8 [04:08:56]New connection [04:08:56]New thread 3067006308 created [04:08:56]Thread 3066862948 joined [04:08:56]Waiting for new connection... [04:08:56] Sock 8.Parse request [04:08:56]Sock 8.Check first char [04:08:56]Sock 8.First char is OK [04:08:56]request: POST /json_proto HTTP/1.0 [04:08:56]Method: POST [04:08:56]URL: /json_proto [04:08:56]Method is POST - this is cgi request [04:08:56]url: /json_proto [04:08:56]query_string will be loaded in cgi processing [04:08:56]execute_cgi json_proto POST (null) [04:08:56]execute_cgi path=json_proto method=POST [04:08:56]POST find Content-Length [04:08:56]Host: 172.17.39.67:8080 [04:08:56]Content-Length: 688 [04:08:56]Content-Type: application/json [04:08:56] [04:08:56]POST finish read [04:08:56]Found Content-Length = 688 [04:08:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [04:08:56]execute_script... [04:08: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)1318866", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [04:08:56]POST & json_proto [04:08:56]process_json_proto [04:08:56]json parsed OK: [04:08:56]protocol is kg_v1.0 [04:08:56]action value=close_receipt [04:08:56]process_action close_receipt [04:08:56]cmd_close_receipt [04:08:56]MH_GetDate [04:08:56]Write to MH i2c: F0 00 00 62 F0 41 [04:08:56]Write i2c OK [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: F0 [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: F0 09 00 [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: F0 09 00 62 F0 00 E5 FD 91 66 FA E9 8E 66 FA [04:08:56]GetLastDocTimeStamp 1720843255 [04:08:56]current date 1720843749 [04:08:56]FM_GetShiftState [04:08:56]SAM_PROTO_GetShiftState [04:08:56]wFMCommunicate request_size=4 [04:08:56]MH_SAM_APDU [04:08:56]CAPDU: 80 13 01 00 [04:08:56]Write to MH i2c: E2 08 00 63 F0 80 13 01 00 00 00 00 00 D0 [04:08:56]Write i2c OK [04:08:56]MH_I2C_Read... [04:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:08:56]Read from MH i2c: E2 [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: E2 0E 00 [04:08:56]MH_I2C_Read... [04:08:56]Read from MH i2c: E2 0E 00 63 F0 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CA [04:08:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [04:08:56]wFMCommunicate OK [04:08:56]SAM_PROTO_GetShiftState done [04:08:56]FM_GetShiftState done [04:08:56]opened in 1720828979 [04:08:56]opened+sec_in_day 1720915379 [04:08:56]quantity*price = 100042 [04:08:56]sum+1 = 100044 [04:08: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 14 13.07.2024 04:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162346 ФПД: 226151567754234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T040909&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162346&fm=226151567754234&tin=02508201610067®Number=0000000000090858&sum=100000 [04:08:57]StoreToDocumentArchive [04:08:57]shift 462 fd 162346 [04:08:57]save to /storage/0462/doc_00162346 [04:08:57]save last doc name /storage/0462/doc_00162346 to /storage/kkm_last_doc_name [04:08:57]save OK [04:08:57]Clear old archive folders... [04:08:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:08:57]tlvbuf is 01C44DA0 [04:08:57]SAM_PROTO_ClearQueue [04:08:57]wFMCommunicate request_size=4 [04:08:57]MH_SAM_APDU [04:08:57]CAPDU: 80 09 00 00 [04:08:57]Write to MH i2c: E2 08 00 70 F0 80 09 00 00 00 00 00 00 D2 [04:08:57]Write i2c OK [04:08:57]MH_I2C_Read... [04:08:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:08:57]Read from MH i2c: E2 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 03 00 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 03 00 70 F0 00 90 00 D4 [04:08:57]RAPDU: 90 00 [04:08:57]wFMCommunicate OK [04:08:57]SAM_PROTO_ClearQueue done [04:08:57]KKMCreateOFDPacket [04:08:57]OFDProtocolAddRootSTLVToBuf [04:08:57]FM_MakeSignedData [04:08:57]FM_MakeSignedData [04:08:57]SAM_PROTO_SignData [04:08:57]wFMCommunicate request_size=4 [04:08:57]MH_SAM_APDU [04:08:57]CAPDU: 80 0D 01 02 [04:08:57]Write to MH i2c: E2 08 00 71 F0 80 0D 01 02 00 00 00 00 DA [04:08:57]Write i2c OK [04:08:57]MH_I2C_Read... [04:08:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:08:57]Read from MH i2c: E2 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 03 00 [04:08:57]MH_I2C_Read... [04:08:57]Read from MH i2c: E2 03 00 71 F0 00 90 00 D5 [04:08:57]RAPDU: 90 00 [04:08:57]wFMCommunicate OK [04:08:57]wFMCommunicate request_size=255 [04:08:57]MH_SAM_APDU [04:08:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0E 00 00 00 F4 03 04 00 E5 FD 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7A 02 00 35 04 06 00 [04:08:57]Write to MH i2c: E2 02 01 72 F0 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0E 00 00 00 F4 03 04 00 E5 FD 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7A 02 00 35 04 06 00 00 00 CF [04:08:57]Write i2c OK [04:08:57]MH_I2C_Read... [04:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:58]Read from MH i2c: E2 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: E2 03 00 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: E2 03 00 72 F0 00 90 00 D6 [04:08:58]RAPDU: 90 00 [04:08:58]wFMCommunicate OK [04:08:58]wFMCommunicate request_size=11 [04:08:58]MH_SAM_APDU [04:08:58]CAPDU: 80 0D 02 02 06 CD AF 03 DC 83 FA [04:08:58]Write to MH i2c: E2 0E 00 73 F0 80 0D 02 02 06 00 CD AF 03 DC 83 FA 00 00 C1 [04:08:58]Write i2c OK [04:08:58]MH_I2C_Read... [04:08:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:08:58]Read from MH i2c: E2 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: E2 03 00 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: E2 03 00 73 F0 00 90 00 D7 [04:08:58]RAPDU: 90 00 [04:08:58]wFMCommunicate OK [04:08:58]wFMCommunicate request_size=4 [04:08:58]MH_SAM_APDU [04:08:58]CAPDU: 80 0D 03 02 [04:08:58]Write to MH i2c: E2 08 00 74 F0 80 0D 03 02 00 00 00 00 DF [04:08:58]Write i2c OK [04:08:58]MH_I2C_Read... [04:08:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:08:58]Read from MH i2c: E2 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: E2 0B 00 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: E2 0B 00 74 F0 00 00 56 56 18 BE 7C 86 0A 90 00 6E [04:08:58]RAPDU: 00 56 56 18 BE 7C 86 0A 90 00 [04:08:58]wFMCommunicate OK [04:08:58]SAM_PROTO_SignData done [04:08:58]FM_MakeSignedData done [04:08:58]CreateOFDProtocolMessage [04:08:58]wFMCommunicate request_size=4 [04:08:58]MH_SAM_APDU [04:08:58]CAPDU: 80 11 00 00 [04:08:58]Write to MH i2c: E2 08 00 75 F0 80 11 00 00 00 00 00 00 DF [04:08:58]Write i2c OK [04:08:58]MH_I2C_Read... [04:08:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:08:58]Read from MH i2c: E2 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: E2 17 00 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: E2 17 00 75 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3F [04:08:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:08:58]wFMCommunicate OK [04:08:58]CreateOFDProtocolMessage done [04:08:58]OFDSenderStorePacket 162346 [04:08:58]StoreOFDPacket docnum=162346 [04:08:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 61 82 08 01 EF 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0E 00 00 00 F4 03 04 00 E5 FD 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7A 02 00 35 04 06 00 CD AF 03 DC 83 FA 00 56 56 18 BE 7C 86 0A [04:08:58]CheckFolder [04:08:58]dirname=/storage/ofd_packets [04:08:58]CheckFolder done [04:08:58]ProducePacketName [04:08:58]name=ofd_packets/00162346 [04:08:58]NVStorageSaveData ofd_packets/00162346 [04:08:58]File name is /storage/ofd_packets/00162346 [04:08:58]Write 302 bytes [04:08:58]NVStorageSaveData done [04:08:58]OFDSenderStorePacket done [04:08:58]KKMCreateOFDPacket done [04:08:58]NVStorageSaveData kkm_last_timestamp [04:08:58]File name is /storage/kkm_last_timestamp [04:08:58]Write 4 bytes [04:08:58]NVStorageSaveData done [04:08:58]ExternCall_PrintAddStr [04:08:58]wPrintStart [04:08:58]Write to MH i2c: 01 00 00 76 F0 66 [04:08:58]Write i2c OK [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: 01 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: 01 07 00 [04:08:58]MH_I2C_Read... [04:08:58]Read from MH i2c: 01 07 00 76 F0 00 00 00 00 00 FF 0F 7B [04:08:58]RasterBufferAndPrint [04:08:58]line Счет N : (1)1318866 [04:08:58]line ИНН: 02508201610067 [04:08:58]line Контрольно-Кассовый Чек [04:08:58]line ПРОДАЖА [04:08:58]line ТРК (МРК, ГНК) : 21 [04:08:58]line Товар: 2710194210 [04:08:58]line ДТ(л)-К-5 [04:08:58]line 13.780 * 72.60 [04:08:58]line = 1000.43 [04:08:58]line НДС 12% НСП 1% [04:08:58]line > о реализуемом товаре [04:08:58]line ОКРУГЛЕНИЕ: -0.43 [04:08:58]line ИТОГО: 1000.00 [04:08:58]line Внесено: 1000.00 [04:08:58]line СДАЧА: 0.00 [04:08:58]line НСП 1% : 8.85 [04:08:58]line НДС 12% : 106.24 [04:08:58]line Наличными: 1000.00 [04:08:58]line Безнал.: 0.00 [04:08:58]line Место: АЗС № 140 "Партнер Нефть" [04:08:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:08:58]line СНО: Общий режим [04:08:58]line Чек 14 13.07.2024 04:09 [04:08:58]line Смена: 462 ФФД: 1.0 [04:08:58]line ЗНМ: 0300000129 [04:08:58]line РНМ: 0000000000090858 [04:08:58]line Версия ККМ: 001 [04:08:58]line ФМ: 0000000000874899 [04:08:58]line ФД: 162346 [04:08:58]line ФПД: 226151567754234 [04:08:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T040909&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162346&fm=226151567754234&tin=02508201610067®Number=0000000000090858&sum=100000 [04:08:58]OFD Sender: Processing packet 162346 [packets to send 105, broken 104] [04:08:58]ProducePacketName [04:08:58]name=ofd_packets/00162346 [04:08:58]OFD Sender: To server: pG, [04:08:58]CommunicateWithHost lk.salyk.kg:30040 [04:08:58]ConnectInit lk.salyk.kg [04:08:58]written 0, free lines is 4095 [04:08:58]Connected sock=9 [04:08:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 61 82 08 01 EF 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0E 00 00 00 F4 03 04 00 E5 FD 91 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7A 02 00 35 04 06 00 CD AF 03 DC 83 FA 00 56 56 18 BE 7C 86 0A [04:08:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 08 EC 47 00 DA DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7A 02 00 F4 03 04 00 FA A9 91 66 B6 04 01 00 00 72 55 CE 90 85 38 DE 51 [04:08:58]CommunicateWithHost err = 0 [04:08:58]CheckOFDResponse [04:08:58]1017 (14) - 77093643461234 [04:08:58]1041 (16) - 0000000000874899 [04:08:58]1040 (4) - 162346 [04:08:58]1012 (4) - 12.07.2024 22:11 [04:08:58]1206 (1) - 0 [04:08:58]OFD Sender: Remove packet 162346 [04:08:58]ProducePacketName [04:08:58]name=ofd_packets/00162346 [04:08:58]NVStorageDeleteData [04:08:59]Write to MH i2c: 01 00 00 A1 F0 91 [04:08:59]Write i2c OK [04:08:59]MH_I2C_Read... [04:08:59]Read from MH i2c: 01 [04:08:59]MH_I2C_Read... [04:08:59]Read from MH i2c: 01 07 00 [04:08:59]MH_I2C_Read... [04:08:59]Read from MH i2c: 01 07 00 A1 F0 00 00 00 00 00 D6 0C 7A [04:08:59]RasterBufferAndPrint [04:08:59]line [04:08:59]line [04:08:59]line [04:08:59]line [04:08:59]line [04:08:59]written 0, free lines is 3295 [04:08:59]MH_Cut [04:08:59]Write to MH i2c: D1 01 00 A8 F0 01 6A [04:08:59]Write i2c OK [04:08:59]MH_I2C_Read... [04:08:59]Read from MH i2c: D1 [04:08:59]MH_I2C_Read... [04:08:59]Read from MH i2c: D1 01 00 [04:08:59]MH_I2C_Read... [04:08:59]Read from MH i2c: D1 01 00 A8 F0 00 69 [04:08:59]Write to MH i2c: 01 00 00 A9 F0 99 [04:08:59]Write i2c OK [04:08:59]MH_I2C_Read... [04:08:59]OFD Sender: No OFD packet to send [04:08:59]*** Cut start [04:08:59]*** Purtial cut [04:08:59]*** Stage 1: CUTSNS_PIN = 1 [04:09:00]Read from MH i2c: 01 [04:09:00]MH_I2C_Read... [04:09:00]*** Stop cut motor [04:09:00]*** Cut end [04:09:00]Read from MH i2c: 01 07 00 [04:09:00]MH_I2C_Read... [04:09:00]Read from MH i2c: 01 07 00 A9 F0 00 00 00 00 00 FF 0F AE [04:09:00]process_action close_receipt done [04:09:00]requested_data is exist [04:09:00]produce_requested_data [04:09:00]requested_item fm.sn is exist - process it [04:09:00]wFMCommunicate request_size=4 [04:09:00]MH_SAM_APDU [04:09:00]CAPDU: 80 11 00 00 [04:09:00]Write to MH i2c: E2 08 00 AA F0 80 11 00 00 00 00 00 00 14 [04:09:00]Write i2c OK [04:09:00]MH_I2C_Read... [04:09:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:09:00]Read from MH i2c: E2 [04:09:00]MH_I2C_Read... [04:09:00]Read from MH i2c: E2 17 00 [04:09:00]MH_I2C_Read... [04:09:00]Read from MH i2c: E2 17 00 AA F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 74 [04:09:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:09:00]wFMCommunicate OK [04:09:00]requested_item fd.num is exist - process it [04:09:00]SAM_PROTO_GetFieldsCounters [04:09:00]wFMCommunicate request_size=4 [04:09:00]MH_SAM_APDU [04:09:00]CAPDU: 80 13 00 00 [04:09:00]Write to MH i2c: E2 08 00 AB F0 80 13 00 00 00 00 00 00 17 [04:09:00]Write i2c OK [04:09:00]MH_I2C_Read... [04:09:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:09:00]Read from MH i2c: E2 [04:09:00]MH_I2C_Read... [04:09:00]Read from MH i2c: E2 62 00 [04:09:00]MH_I2C_Read... [04:09:00]Read from MH i2c: E2 62 00 AB F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [04:09:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:09:00]wFMCommunicate OK [04:09:00]SAM_PROTO_GetFieldsCounters done [04:09:00]requested_item shift.num is exist - process it [04:09:00]requested_item shift.opened is exist - process it [04:09:00]req_shift_opened [04:09:00]FM_GetShiftState [04:09:00]SAM_PROTO_GetShiftState [04:09:00]wFMCommunicate request_size=4 [04:09:00]MH_SAM_APDU [04:09:00]CAPDU: 80 13 01 00 [04:09:00]Write to MH i2c: E2 08 00 AC F0 80 13 01 00 00 00 00 00 19 [04:09:00]Write i2c OK [04:09:00]MH_I2C_Read... [04:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:09:00]Read from MH i2c: E2 [04:09:00]MH_I2C_Read... [04:09:00]Read from MH i2c: E2 0E 00 [04:09:00]MH_I2C_Read... [04:09:00]Read from MH i2c: E2 0E 00 AC F0 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 13 [04:09:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [04:09:00]wFMCommunicate OK [04:09:00]SAM_PROTO_GetShiftState done [04:09:00]FM_GetShiftState done [04:09:00]req_shift_opened done [04:09:00]requested_item shift.open_date is exist - process it [04:09:00]req_shift_open_date [04:09:00]req_shift_open_date done [04:09:00]produce_requested_data done [04:09:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162346,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [04:09:00]process_action_free close_receipt [04:09:00]json_value_free [04:09:00]json_value_free done [04:09:00]process_json_proto returns [04:09:00]Send response to host [04:09:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162346,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [04:09:00]free response buf [04:09:00]execute_script done [04:09:00]execute_script returns [04:09:00]free content buf [04:09:00]Sock 8.Close socket [04:09:00]Sock 8.Thread stoped [04:09:04]OFD Sender: No OFD packet to send [04:09:09]OFD Sender: No OFD packet to send [04:09:14]OFD Sender: No OFD packet to send [04:09:19]OFD Sender: No OFD packet to send [04:09:24]OFD Sender: No OFD packet to send [04:09:29]OFD Sender: No OFD packet to send [04:09:34]OFD Sender: No OFD packet to send [04:09:39]OFD Sender: No OFD packet to send [04:09:44]OFD Sender: No OFD packet to send [04:09:49]OFD Sender: No OFD packet to send [04:09:54]OFD Sender: No OFD packet to send [04:09:59]OFD Sender: No OFD packet to send [04:10:04]OFD Sender: No OFD packet to send [04:10:09]OFD Sender: No OFD packet to send [04:10:14]OFD Sender: No OFD packet to send [04:10:19]OFD Sender: No OFD packet to send [04:10:24]OFD Sender: No OFD packet to send [04:10:29]OFD Sender: No OFD packet to send [04:10:34]OFD Sender: No OFD packet to send [04:10:39]OFD Sender: No OFD packet to send [04:10:44]OFD Sender: No OFD packet to send [04:10:49]OFD Sender: No OFD packet to send [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:18:00]OFD Sender: No OFD packet to send [04:18:05]OFD Sender: No OFD packet to send [04:18:10]OFD Sender: No OFD packet to send [04:18:15]OFD Sender: No OFD packet to send [04:18:20]OFD Sender: No OFD packet to send [04:18:25]OFD Sender: No OFD packet to send [04:18:30]OFD Sender: No OFD packet to send [04:18:35]OFD Sender: No OFD packet to send [04:18:40]OFD Sender: No OFD packet to send [04:18:45]OFD Sender: No OFD packet to send [04:18:50]OFD Sender: No OFD packet to send [04:18:55]OFD Sender: No OFD packet to send [04:19:00]OFD Sender: No OFD packet to send [04:19:05]OFD Sender: No OFD packet to send [04:19:10]OFD Sender: No OFD packet to send [04:19:15]OFD Sender: No OFD packet to send [04:19:20]OFD Sender: No OFD packet to send [04:19:25]OFD Sender: No OFD packet to send [04:19:30]OFD Sender: No OFD packet to send [04:19:35]OFD Sender: No OFD packet to send [04:19:40]OFD Sender: No OFD packet to send [04:19:45]OFD Sender: No OFD packet to send [04:19:50]OFD Sender: No OFD packet to send [04:19:55]OFD Sender: No OFD packet to send [04:20:00]OFD Sender: No OFD packet to send [04:20:05]OFD Sender: No OFD packet to send [04:20:10]OFD Sender: No OFD packet to send [04:20:15]OFD Sender: No OFD packet to send [04:20:20]OFD Sender: No OFD packet to send [04:20:25]OFD Sender: No OFD packet to send [04:20:30]OFD Sender: No OFD packet to send [04:20:35]OFD Sender: No OFD packet to send [04:20:40]OFD Sender: No OFD packet to send [04:20:45]OFD Sender: No OFD packet to send [04:20:50]OFD Sender: No OFD packet to send [04:20:55]OFD Sender: No OFD packet to send [04:21:00]OFD Sender: No OFD packet to send [04:21:05]OFD Sender: No OFD packet to send [04:21:10]OFD Sender: No OFD packet to send [04:21:15]OFD Sender: No OFD packet to send [04:21:20]OFD Sender: No OFD packet to send [04:21:25]OFD Sender: No OFD packet to send [04:21:30]OFD Sender: No OFD packet to send [04:21:35]OFD Sender: No OFD packet to send [04:21:40]OFD Sender: No OFD packet to send [04:21:45]OFD Sender: No OFD packet to send [04:21:50]OFD Sender: No OFD packet to send [04:21:55]OFD Sender: No OFD packet to send [04:22:00]OFD Sender: No OFD packet to send [04:22:05]OFD Sender: No OFD packet to send [04:22:10]OFD Sender: No OFD packet to send [04:22:15]OFD Sender: No OFD packet to send [04:22:20]OFD Sender: No OFD packet to send [04:22:25]OFD Sender: No OFD packet to send [04:22:30]OFD Sender: No OFD packet to send [04:22:35]OFD Sender: No OFD packet to send [04:22:40]OFD Sender: No OFD packet to send [04:22:45]OFD Sender: No OFD packet to send [04:22:50]OFD Sender: No OFD packet to send [04:22:55]OFD Sender: No OFD packet to send [04:23:00]OFD Sender: No OFD packet to send [04:23:05]OFD Sender: No OFD packet to send [04:23:10]OFD Sender: No OFD packet to send [04:23:15]OFD Sender: No OFD packet to send [04:23:20]OFD Sender: No OFD packet to send [04:23:25]OFD Sender: No OFD packet to send [04:23:30]OFD Sender: No OFD packet to send [04:23:35]OFD Sender: No OFD packet to send [04:23:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:25:00]OFD Sender: No OFD packet to send [04:25:05]OFD Sender: No OFD packet to send [04:25:10]OFD Sender: No OFD packet to send [04:25:15]OFD Sender: No OFD packet to send [04:25:20]OFD Sender: No OFD packet to send [04:25:25]OFD Sender: No OFD packet to send [04:25:30]OFD Sender: No OFD packet to send [04:25:35]OFD Sender: No OFD packet to send [04:25:40]OFD Sender: No OFD packet to send [04:25:45]OFD Sender: No OFD packet to send [04:25:50]OFD Sender: No OFD packet to send [04:25:55]OFD Sender: No OFD packet to send [04:26:00]OFD Sender: No OFD packet to send [04:26:05]OFD Sender: No OFD packet to send [04:26:10]OFD Sender: No OFD packet to send [04:26:15]OFD Sender: No OFD packet to send [04:26:20]OFD Sender: No OFD packet to send [04:26:25]OFD Sender: No OFD packet to send [04:26:30]OFD Sender: No OFD packet to send [04:26:35]OFD Sender: No OFD packet to send [04:26:40]OFD Sender: No OFD packet to send [04:26:45]OFD Sender: No OFD packet to send [04:26:50]OFD Sender: No OFD packet to send [04:26:55]OFD Sender: No OFD packet to send [04:27:00]OFD Sender: No OFD packet to send [04:27:05]OFD Sender: No OFD packet to send [04:27:10]OFD Sender: No OFD packet to send [04:27:15]OFD Sender: No OFD packet to send [04:27:20]OFD Sender: No OFD packet to send [04:27:25]OFD Sender: No OFD packet to send [04:27:30]OFD Sender: No OFD packet to send [04:27:35]OFD Sender: No OFD packet to send [04:27:40]OFD Sender: No OFD packet to send [04:27:45]OFD Sender: No OFD packet to send [04:27:50]OFD Sender: No OFD packet to send [04:27:55]OFD Sender: No OFD packet to send [04:28:00]OFD Sender: No OFD packet to send [04:28:05]OFD Sender: No OFD packet to send [04:28:10]OFD Sender: No OFD packet to send [04:28:15]OFD Sender: No OFD packet to send [04:28:20]OFD Sender: No OFD packet to send [04:28:25]OFD Sender: No OFD packet to send [04:28:30]OFD Sender: No OFD packet to send [04:28:35]OFD Sender: No OFD packet to send [04:28:40]OFD Sender: No OFD packet to send [04:28:45]OFD Sender: No OFD packet to send [04:28:50]OFD Sender: No OFD packet to send [04:28:55]OFD Sender: No OFD packet to send [04:29:00]OFD Sender: No OFD packet to send [04:29:05]OFD Sender: No OFD packet to send [04:29:10]OFD Sender: No OFD packet to send [04:29:15]OFD Sender: No OFD packet to send [04:29:20]OFD Sender: No OFD packet to send [04:29:25]OFD Sender: No OFD packet to send [04:29:30]OFD Sender: No OFD packet to send [04:29:35]OFD Sender: No OFD packet to send [04:29:40]OFD Sender: No OFD packet to send [04:29:45]OFD Sender: No OFD packet to send [04:29:50]OFD Sender: No OFD packet to send [04:29:55]OFD Sender: No OFD packet to send [04:30:00]OFD Sender: No OFD packet to send [04:30:05]OFD Sender: No OFD packet to send [04:30:10]OFD Sender: No OFD packet to send [04:30:15]OFD Sender: No OFD packet to send [04:30:20]OFD Sender: No OFD packet to send [04:30:25]OFD Sender: No OFD packet to send [04:30:30]OFD Sender: No OFD packet to send [04:30:35]OFD Sender: No OFD packet to send [04:30:40]OFD Sender: No OFD packet to send [04:30:45]OFD Sender: No OFD packet to send [04:30:50]OFD Sender: No OFD packet to send [04:30:55]OFD Sender: No OFD packet to send [04:31:00]OFD Sender: No OFD packet to send [04:31:05]OFD Sender: No OFD packet to send [04:31:10]OFD Sender: No OFD packet to send [04:31:15]OFD Sender: No OFD packet to send [04:31:20]OFD Sender: No OFD packet to send [04:31:25]OFD Sender: No OFD packet to send [04:31:30]OFD Sender: No OFD packet to send [04:31:35]OFD Sender: No OFD packet to send [04:31:40]OFD Sender: No OFD packet to send [04:31:45]OFD Sender: No OFD packet to send [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:42:59]accept exits with 10 [04:42:59]New connection [04:42:59]New thread 3066862948 created [04:42:59]Thread 3067006308 joined [04:42:59]Waiting for new connection... [04:42:59] Sock 10.Parse request [04:42:59]Sock 10.Check first char [04:42:59]Sock 10.First char is OK [04:42:59]request: POST /json_proto HTTP/1.0 [04:42:59]Method: POST [04:42:59]URL: /json_proto [04:42:59]Method is POST - this is cgi request [04:42:59]url: /json_proto [04:42:59]query_string will be loaded in cgi processing [04:42:59]execute_cgi json_proto POST (null) [04:42:59]execute_cgi path=json_proto method=POST [04:42:59]POST find Content-Length [04:42:59]Host: 172.17.39.67:8080 [04:42:59]Content-Length: 683 [04:42:59]Content-Type: application/json [04:42:59] [04:42:59]POST finish read [04:42:59]Found Content-Length = 683 [04:42:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [04:42:59]execute_script... [04:42: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)1318867", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [04:42:59]POST & json_proto [04:42:59]process_json_proto [04:42:59]json parsed OK: [04:42:59]protocol is kg_v1.0 [04:42:59]action value=close_receipt [04:42:59]process_action close_receipt [04:42:59]cmd_close_receipt [04:42:59]MH_GetDate [04:42:59]Write to MH i2c: F0 00 00 AD F0 8C [04:42:59]Write i2c OK [04:42:59]MH_I2C_Read... [04:42:59]Read from MH i2c: F0 [04:42:59]MH_I2C_Read... [04:42:59]Read from MH i2c: F0 09 00 [04:42:59]MH_I2C_Read... [04:42:59]Read from MH i2c: F0 09 00 AD F0 00 E0 05 92 66 FA E9 8E 66 49 [04:42:59]GetLastDocTimeStamp 1720843749 [04:42:59]current date 1720845792 [04:42:59]FM_GetShiftState [04:42:59]SAM_PROTO_GetShiftState [04:42:59]wFMCommunicate request_size=4 [04:42:59]MH_SAM_APDU [04:42:59]CAPDU: 80 13 01 00 [04:42:59]Write to MH i2c: E2 08 00 AE F0 80 13 01 00 00 00 00 00 1B [04:42:59]Write i2c OK [04:42:59]MH_I2C_Read... [04:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:42:59]Read from MH i2c: E2 [04:42:59]MH_I2C_Read... [04:42:59]Read from MH i2c: E2 0E 00 [04:42:59]MH_I2C_Read... [04:42:59]Read from MH i2c: E2 0E 00 AE F0 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 15 [04:42:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [04:42:59]wFMCommunicate OK [04:42:59]SAM_PROTO_GetShiftState done [04:42:59]FM_GetShiftState done [04:42:59]opened in 1720828979 [04:42:59]opened+sec_in_day 1720915379 [04:42:59]quantity*price = 50021 [04:42:59]sum+1 = 50022 [04:42:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 15 13.07.2024 04:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162347 ФПД: 66468381178691 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T044312&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162347&fm=66468381178691&tin=02508201610067®Number=0000000000090858&sum=50000 [04:43:01]StoreToDocumentArchive [04:43:01]shift 462 fd 162347 [04:43:01]save to /storage/0462/doc_00162347 [04:43:01]save last doc name /storage/0462/doc_00162347 to /storage/kkm_last_doc_name [04:43:01]save OK [04:43:01]Clear old archive folders... [04:43:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:43:01]tlvbuf is 01A18D80 [04:43:01]SAM_PROTO_ClearQueue [04:43:01]wFMCommunicate request_size=4 [04:43:01]MH_SAM_APDU [04:43:01]CAPDU: 80 09 00 00 [04:43:01]Write to MH i2c: E2 08 00 BB F0 80 09 00 00 00 00 00 00 1D [04:43:01]Write i2c OK [04:43:01]MH_I2C_Read... [04:43:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:43:01]Read from MH i2c: E2 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 03 00 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 03 00 BB F0 00 90 00 1F [04:43:01]RAPDU: 90 00 [04:43:01]wFMCommunicate OK [04:43:01]SAM_PROTO_ClearQueue done [04:43:01]KKMCreateOFDPacket [04:43:01]OFDProtocolAddRootSTLVToBuf [04:43:01]FM_MakeSignedData [04:43:01]FM_MakeSignedData [04:43:01]SAM_PROTO_SignData [04:43:01]wFMCommunicate request_size=4 [04:43:01]MH_SAM_APDU [04:43:01]CAPDU: 80 0D 01 02 [04:43:01]Write to MH i2c: E2 08 00 BC F0 80 0D 01 02 00 00 00 00 25 [04:43:01]Write i2c OK [04:43:01]MH_I2C_Read... [04:43:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:43:01]Read from MH i2c: E2 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 03 00 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 03 00 BC F0 00 90 00 20 [04:43:01]RAPDU: 90 00 [04:43:01]wFMCommunicate OK [04:43:01]wFMCommunicate request_size=255 [04:43:01]MH_SAM_APDU [04:43:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0F 00 00 00 F4 03 04 00 E0 05 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7A 02 00 35 04 06 00 [04:43:01]Write to MH i2c: E2 02 01 BD F0 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0F 00 00 00 F4 03 04 00 E0 05 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7A 02 00 35 04 06 00 00 00 38 [04:43:01]Write i2c OK [04:43:01]MH_I2C_Read... [04:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:01]Read from MH i2c: E2 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 03 00 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 03 00 BD F0 00 90 00 21 [04:43:01]RAPDU: 90 00 [04:43:01]wFMCommunicate OK [04:43:01]wFMCommunicate request_size=11 [04:43:01]MH_SAM_APDU [04:43:01]CAPDU: 80 0D 02 02 06 3C 73 E0 3F BB 43 [04:43:01]Write to MH i2c: E2 0E 00 BE F0 80 0D 02 02 06 00 3C 73 E0 3F BB 43 00 00 00 [04:43:01]Write i2c OK [04:43:01]MH_I2C_Read... [04:43:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:43:01]Read from MH i2c: E2 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 03 00 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 03 00 BE F0 00 90 00 22 [04:43:01]RAPDU: 90 00 [04:43:01]wFMCommunicate OK [04:43:01]wFMCommunicate request_size=4 [04:43:01]MH_SAM_APDU [04:43:01]CAPDU: 80 0D 03 02 [04:43:01]Write to MH i2c: E2 08 00 BF F0 80 0D 03 02 00 00 00 00 2A [04:43:01]Write i2c OK [04:43:01]MH_I2C_Read... [04:43:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:43:01]Read from MH i2c: E2 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 0B 00 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 0B 00 BF F0 00 4B E1 04 3B 0E 16 42 D8 90 00 D4 [04:43:01]RAPDU: 4B E1 04 3B 0E 16 42 D8 90 00 [04:43:01]wFMCommunicate OK [04:43:01]SAM_PROTO_SignData done [04:43:01]FM_MakeSignedData done [04:43:01]CreateOFDProtocolMessage [04:43:01]wFMCommunicate request_size=4 [04:43:01]MH_SAM_APDU [04:43:01]CAPDU: 80 11 00 00 [04:43:01]Write to MH i2c: E2 08 00 C0 F0 80 11 00 00 00 00 00 00 2A [04:43:01]Write i2c OK [04:43:01]MH_I2C_Read... [04:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:01]Read from MH i2c: E2 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 17 00 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: E2 17 00 C0 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8A [04:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:43:01]wFMCommunicate OK [04:43:01]CreateOFDProtocolMessage done [04:43:01]OFDSenderStorePacket 162347 [04:43:01]StoreOFDPacket docnum=162347 [04:43:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 40 1B 08 01 75 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0F 00 00 00 F4 03 04 00 E0 05 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7A 02 00 35 04 06 00 3C 73 E0 3F BB 43 4B E1 04 3B 0E 16 42 D8 [04:43:01]CheckFolder [04:43:01]dirname=/storage/ofd_packets [04:43:01]CheckFolder done [04:43:01]ProducePacketName [04:43:01]name=ofd_packets/00162347 [04:43:01]NVStorageSaveData ofd_packets/00162347 [04:43:01]File name is /storage/ofd_packets/00162347 [04:43:01]Write 302 bytes [04:43:01]NVStorageSaveData done [04:43:01]OFDSenderStorePacket done [04:43:01]KKMCreateOFDPacket done [04:43:01]NVStorageSaveData kkm_last_timestamp [04:43:01]File name is /storage/kkm_last_timestamp [04:43:01]Write 4 bytes [04:43:01]NVStorageSaveData done [04:43:01]ExternCall_PrintAddStr [04:43:01]wPrintStart [04:43:01]Write to MH i2c: 01 00 00 C1 F0 B1 [04:43:01]Write i2c OK [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: 01 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: 01 07 00 [04:43:01]MH_I2C_Read... [04:43:01]Read from MH i2c: 01 07 00 C1 F0 00 00 00 00 00 FF 0F C6 [04:43:01]RasterBufferAndPrint [04:43:01]line Счет N : (1)1318867 [04:43:01]line ИНН: 02508201610067 [04:43:01]line Контрольно-Кассовый Чек [04:43:01]line ПРОДАЖА [04:43:01]line ТРК (МРК, ГНК) : 21 [04:43:01]line Товар: 2710194210 [04:43:01]line ДТ(л)-К-5 [04:43:01]line 6.890 * 72.60 [04:43:01]line = 500.21 [04:43:01]line НДС 12% НСП 1% [04:43:01]line > о реализуемом товаре [04:43:01]line ОКРУГЛЕНИЕ: -0.21 [04:43:01]line ИТОГО: 500.00 [04:43:01]line Внесено: 500.00 [04:43:01]line СДАЧА: 0.00 [04:43:01]line НСП 1% : 4.43 [04:43:01]line НДС 12% : 53.12 [04:43:01]line Наличными: 500.00 [04:43:01]line Безнал.: 0.00 [04:43:01]line Место: АЗС № 140 "Партнер Нефть" [04:43:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:43:01]OFD Sender: Processing packet 162347 [packets to send 105, broken 104] [04:43:01]ProducePacketName [04:43:01]name=ofd_packets/00162347 [04:43:01]OFD Sender: To server: pG, [04:43:01]CommunicateWithHost lk.salyk.kg:30040 [04:43:01]ConnectInit lk.salyk.kg [04:43:01]line СНО: Общий режим [04:43:01]line Чек 15 13.07.2024 04:43 [04:43:01]line Смена: 462 ФФД: 1.0 [04:43:01]line ЗНМ: 0300000129 [04:43:01]line РНМ: 0000000000090858 [04:43:01]line Версия ККМ: 001 [04:43:01]line ФМ: 0000000000874899 [04:43:01]line ФД: 162347 [04:43:01]line ФПД: 66468381178691 [04:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T044312&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162347&fm=66468381178691&tin=02508201610067®Number=0000000000090858&sum=50000 [04:43:01]Connected sock=9 [04:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 40 1B 08 01 75 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0F 00 00 00 F4 03 04 00 E0 05 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7A 02 00 35 04 06 00 3C 73 E0 3F BB 43 4B E1 04 3B 0E 16 42 D8 [04:43:01]written 0, free lines is 4095 [04:43:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 69 AF 47 00 43 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7A 02 00 F4 03 04 00 F5 B1 91 66 B6 04 01 00 00 E1 B4 12 52 22 2E F1 E8 [04:43:02]CommunicateWithHost err = 0 [04:43:02]CheckOFDResponse [04:43:02]1017 (14) - 77093643461234 [04:43:02]1041 (16) - 0000000000874899 [04:43:02]1040 (4) - 162347 [04:43:02]1012 (4) - 12.07.2024 22:45 [04:43:02]1206 (1) - 0 [04:43:02]OFD Sender: Remove packet 162347 [04:43:02]ProducePacketName [04:43:02]name=ofd_packets/00162347 [04:43:02]NVStorageDeleteData [04:43:02]Write to MH i2c: 01 00 00 EC F0 DC [04:43:02]Write i2c OK [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: 01 [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: 01 07 00 [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: 01 07 00 EC F0 00 00 00 00 00 CD 0C BC [04:43:02]RasterBufferAndPrint [04:43:02]line [04:43:02]line [04:43:02]line [04:43:02]line [04:43:02]line [04:43:02]written 0, free lines is 3284 [04:43:02]MH_Cut [04:43:02]Write to MH i2c: D1 01 00 F3 F0 01 B5 [04:43:02]Write i2c OK [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: D1 [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: D1 01 00 [04:43:02]MH_I2C_Read... [04:43:02]Read from MH i2c: D1 01 00 F3 F0 00 B4 [04:43:02]Write to MH i2c: 01 00 00 F4 F0 E4 [04:43:02]Write i2c OK [04:43:02]MH_I2C_Read... [04:43:02]OFD Sender: No OFD packet to send [04:43:03]*** Cut start [04:43:03]*** Purtial cut [04:43:03]*** CUTSNS_PIN = 0 [04:43:03]*** Stage 1: CUTSNS_PIN = 1 [04:43:05]Read from MH i2c: 01 [04:43:05]MH_I2C_Read... [04:43:05]*** Stop cut motor [04:43:05]*** Cut end [04:43:05]Read from MH i2c: 01 07 00 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: 01 07 00 F4 F0 00 00 00 00 00 FF 0F F9 [04:43:05]process_action close_receipt done [04:43:05]requested_data is exist [04:43:05]produce_requested_data [04:43:05]requested_item fm.sn is exist - process it [04:43:05]wFMCommunicate request_size=4 [04:43:05]MH_SAM_APDU [04:43:05]CAPDU: 80 11 00 00 [04:43:05]Write to MH i2c: E2 08 00 F5 F0 80 11 00 00 00 00 00 00 5F [04:43:05]Write i2c OK [04:43:05]MH_I2C_Read... [04:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:43:05]Read from MH i2c: E2 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: E2 17 00 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: E2 17 00 F5 F0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BF [04:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:43:05]wFMCommunicate OK [04:43:05]requested_item fd.num is exist - process it [04:43:05]SAM_PROTO_GetFieldsCounters [04:43:05]wFMCommunicate request_size=4 [04:43:05]MH_SAM_APDU [04:43:05]CAPDU: 80 13 00 00 [04:43:05]Write to MH i2c: E2 08 00 F6 F0 80 13 00 00 00 00 00 00 62 [04:43:05]Write i2c OK [04:43:05]MH_I2C_Read... [04:43:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:43:05]Read from MH i2c: E2 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: E2 62 00 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: E2 62 00 F6 F0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [04:43:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:43:05]wFMCommunicate OK [04:43:05]SAM_PROTO_GetFieldsCounters done [04:43:05]requested_item shift.num is exist - process it [04:43:05]requested_item shift.opened is exist - process it [04:43:05]req_shift_opened [04:43:05]FM_GetShiftState [04:43:05]SAM_PROTO_GetShiftState [04:43:05]wFMCommunicate request_size=4 [04:43:05]MH_SAM_APDU [04:43:05]CAPDU: 80 13 01 00 [04:43:05]Write to MH i2c: E2 08 00 F7 F0 80 13 01 00 00 00 00 00 64 [04:43:05]Write i2c OK [04:43:05]MH_I2C_Read... [04:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:43:05]Read from MH i2c: E2 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: E2 0E 00 [04:43:05]MH_I2C_Read... [04:43:05]Read from MH i2c: E2 0E 00 F7 F0 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5E [04:43:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [04:43:05]wFMCommunicate OK [04:43:05]SAM_PROTO_GetShiftState done [04:43:05]FM_GetShiftState done [04:43:05]req_shift_opened done [04:43:05]requested_item shift.open_date is exist - process it [04:43:05]req_shift_open_date [04:43:05]req_shift_open_date done [04:43:05]produce_requested_data done [04:43:05]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162347,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [04:43:05]process_action_free close_receipt [04:43:05]json_value_free [04:43:05]json_value_free done [04:43:05]process_json_proto returns [04:43:05]Send response to host [04:43:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162347,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [04:43:05]free response buf [04:43:05]execute_script done [04:43:05]execute_script returns [04:43:05]free content buf [04:43:05]Sock 10.Close socket [04:43:05]Sock 10.Thread stoped [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:18]OFD Sender: No OFD packet to send [04:49:23]OFD Sender: No OFD packet to send [04:49:28]OFD Sender: No OFD packet to send [04:49:33]OFD Sender: No OFD packet to send [04:49:38]OFD Sender: No OFD packet to send [04:49:43]OFD Sender: No OFD packet to send [04:49:48]OFD Sender: No OFD packet to send [04:49:53]OFD Sender: No OFD packet to send [04:49:58]OFD Sender: No OFD packet to send [04:50:03]OFD Sender: No OFD packet to send [04:50:08]OFD Sender: No OFD packet to send [04:50:13]OFD Sender: No OFD packet to send [04:50:18]OFD Sender: No OFD packet to send [04:50:23]OFD Sender: No OFD packet to send [04:50:28]OFD Sender: No OFD packet to send [04:50:33]OFD Sender: No OFD packet to send [04:50:38]OFD Sender: No OFD packet to send [04:50:43]OFD Sender: No OFD packet to send [04:50:48]OFD Sender: No OFD packet to send [04:50:53]OFD Sender: No OFD packet to send [04:50:58]OFD Sender: No OFD packet to send [04:51:03]OFD Sender: No OFD packet to send [04:51:08]OFD Sender: No OFD packet to send [04:51:13]OFD Sender: No OFD packet to send [04:51:18]OFD Sender: No OFD packet to send [04:51:23]OFD Sender: No OFD packet to send [04:51:28]OFD Sender: No OFD packet to send [04:51:33]OFD Sender: No OFD packet to send [04:51:38]OFD Sender: No OFD packet to send [04:51:43]OFD Sender: No OFD packet to send [04:51:48]OFD Sender: No OFD packet to send [04:51:53]OFD Sender: No OFD packet to send [04:51:58]OFD Sender: No OFD packet to send [04:52:03]OFD Sender: No OFD packet to send [04:52:08]OFD Sender: No OFD packet to send [04:52:13]OFD Sender: No OFD packet to send [04:52:18]OFD Sender: No OFD packet to send [04:52:23]OFD Sender: No OFD packet to send [04:52:28]OFD Sender: No OFD packet to send [04:52:33]OFD Sender: No OFD packet to send [04:52:38]OFD Sender: No OFD packet to send [04:52:43]OFD Sender: No OFD packet to send [04:52:48]OFD Sender: No OFD packet to send [04:52:53]OFD Sender: No OFD packet to send [04:52:58]OFD Sender: No OFD packet to send [04:53:03]OFD Sender: No OFD packet to send [04:53:08]OFD Sender: No OFD packet to send [04:53:13]OFD Sender: No OFD packet to send [04:53:18]OFD Sender: No OFD packet to send [04:53:23]OFD Sender: No OFD packet to send [04:53:28]OFD Sender: No OFD packet to send [04:53:33]OFD Sender: No OFD packet to send [04:53:38]OFD Sender: No OFD packet to send [04:53:43]OFD Sender: No OFD packet to send [04:53:48]OFD Sender: No OFD packet to send [04:53:53]OFD Sender: No OFD packet to send [04:53:58]OFD Sender: No OFD packet to send [04:54:03]OFD Sender: No OFD packet to send [04:54:08]OFD Sender: No OFD packet to send [04:54:13]OFD Sender: No OFD packet to send [04:54:18]OFD Sender: No OFD packet to send [04:54:23]OFD Sender: No OFD packet to send [04:54:28]OFD Sender: No OFD packet to send [04:54:33]OFD Sender: No OFD packet to send [04:54:38]OFD Sender: No OFD packet to send [04:54:43]OFD Sender: No OFD packet to send [04:54:48]OFD Sender: No OFD packet to send [04:54:53]OFD Sender: No OFD packet to send [04:54:58]OFD Sender: No OFD packet to send [04:55:03]OFD Sender: No OFD packet to send [04:55:08]OFD Sender: No OFD packet to send [04:55:13]OFD Sender: No OFD packet to send [04:55:18]OFD Sender: No OFD packet to send [04:55:23]OFD Sender: No OFD packet to send [04:55:28]OFD Sender: No OFD packet to send [04:55:33]OFD Sender: No OFD packet to send [04:55:38]OFD Sender: No OFD packet to send [04:55:43]OFD Sender: No OFD packet to send [04:55:48]OFD Sender: No OFD packet to send [04:55:53]OFD Sender: No OFD packet to send [04:55:58]OFD Sender: No OFD packet to send [04:56:03]OFD Sender: No OFD packet to send [04:56:08]OFD Sender: No OFD packet to send [04:56:13]OFD Sender: No OFD packet to send [04:56:18]OFD Sender: No OFD packet to send [04:56:23]OFD Sender: No OFD packet to send [04:56:28]OFD Sender: No OFD packet to send [04:56:33]OFD Sender: No OFD packet to send [04:56:38]OFD Sender: No OFD packet to send [04:56:43]OFD Sender: No OFD packet to send [04:56:48]OFD Sender: No OFD packet to send [04:56:53]OFD Sender: No OFD packet to send [04:56:58]OFD Sender: No OFD packet to send [04:57:03]OFD Sender: No OFD packet to send [04:57:08]OFD Sender: No OFD packet to send [04:57:13]OFD Sender: No OFD packet to send [04:57:18]OFD Sender: No OFD packet to send [04:57:23]OFD Sender: No OFD packet to send [04:57:28]OFD Sender: No OFD packet to send [04:57:33]OFD Sender: No OFD packet to send [04:57:38]OFD Sender: No OFD packet to send [04:57:43]OFD Sender: No OFD packet to send [04:57:48]OFD Sender: No OFD packet to send [04:57:53]OFD Sender: No OFD packet to send [04:57:58]OFD Sender: No OFD packet to send [04:58:03]OFD Sender: No OFD packet to send [04:58:08]OFD Sender: No OFD packet to send [04:58:13]OFD Sender: No OFD packet to send [04:58:18]OFD Sender: No OFD packet to send [04:58:23]OFD Sender: No OFD packet to send [04:58:28]OFD Sender: No OFD packet to send [04:58:33]OFD Sender: No OFD packet to send [04:58:38]OFD Sender: No OFD packet to send [04:58:43]OFD Sender: No OFD packet to send [04:58:48]OFD Sender: No OFD packet to send [04:58:53]OFD Sender: No OFD packet to send [04:58:58]OFD Sender: No OFD packet to send [04:59:03]accept exits with 8 [04:59:03]New connection [04:59:03]New thread 3067006308 created [04:59:03]Thread 3066862948 joined [04:59:03]Waiting for new connection... [04:59:03] Sock 8.Parse request [04:59:03]Sock 8.Check first char [04:59:03]Sock 8.First char is OK [04:59:03]request: POST /json_proto HTTP/1.0 [04:59:03]Method: POST [04:59:03]URL: /json_proto [04:59:03]Method is POST - this is cgi request [04:59:03]url: /json_proto [04:59:03]query_string will be loaded in cgi processing [04:59:03]execute_cgi json_proto POST (null) [04:59:03]execute_cgi path=json_proto method=POST [04:59:03]POST find Content-Length [04:59:03]Host: 172.17.39.67:8080 [04:59:03]Content-Length: 688 [04:59:03]Content-Type: application/json [04:59:03] [04:59:03]POST finish read [04:59:03]Found Content-Length = 688 [04:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [04:59:03]execute_script... [04:59: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)1318868", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [04:59:03]POST & json_proto [04:59:03]process_json_proto [04:59:03]json parsed OK: [04:59:03]protocol is kg_v1.0 [04:59:03]action value=close_receipt [04:59:03]process_action close_receipt [04:59:03]cmd_close_receipt [04:59:03]MH_GetDate [04:59:03]Write to MH i2c: F0 00 00 F8 F0 D7 [04:59:03]Write i2c OK [04:59:03]MH_I2C_Read... [04:59:03]Read from MH i2c: F0 [04:59:03]MH_I2C_Read... [04:59:03]Read from MH i2c: F0 09 00 [04:59:03]MH_I2C_Read... [04:59:03]Read from MH i2c: F0 09 00 F8 F0 00 A3 09 92 66 FA E9 8E 66 5B [04:59:03]GetLastDocTimeStamp 1720845792 [04:59:03]current date 1720846755 [04:59:03]FM_GetShiftState [04:59:03]SAM_PROTO_GetShiftState [04:59:03]wFMCommunicate request_size=4 [04:59:03]MH_SAM_APDU [04:59:03]CAPDU: 80 13 01 00 [04:59:03]Write to MH i2c: E2 08 00 F9 F0 80 13 01 00 00 00 00 00 66 [04:59:03]Write i2c OK [04:59:03]MH_I2C_Read... [04:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:03]Read from MH i2c: E2 [04:59:03]MH_I2C_Read... [04:59:03]Read from MH i2c: E2 0E 00 [04:59:03]MH_I2C_Read... [04:59:03]Read from MH i2c: E2 0E 00 F9 F0 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 60 [04:59:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [04:59:03]wFMCommunicate OK [04:59:03]SAM_PROTO_GetShiftState done [04:59:03]FM_GetShiftState done [04:59:03]opened in 1720828979 [04:59:03]opened+sec_in_day 1720915379 [04:59:03]quantity*price = 100042 [04:59:03]sum+1 = 100044 [04:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 16 13.07.2024 04:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162348 ФПД: 204937031519205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T045915&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162348&fm=204937031519205&tin=02508201610067®Number=0000000000090858&sum=100000 [04:59:04]StoreToDocumentArchive [04:59:04]shift 462 fd 162348 [04:59:04]save to /storage/0462/doc_00162348 [04:59:04]save last doc name /storage/0462/doc_00162348 to /storage/kkm_last_doc_name [04:59:04]save OK [04:59:04]Clear old archive folders... [04:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [04:59:04]tlvbuf is 016FEBC0 [04:59:04]SAM_PROTO_ClearQueue [04:59:04]wFMCommunicate request_size=4 [04:59:04]MH_SAM_APDU [04:59:04]CAPDU: 80 09 00 00 [04:59:04]Write to MH i2c: E2 08 00 06 F1 80 09 00 00 00 00 00 00 69 [04:59:04]Write i2c OK [04:59:04]MH_I2C_Read... [04:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:59:04]Read from MH i2c: E2 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 03 00 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 03 00 06 F1 00 90 00 6B [04:59:04]RAPDU: 90 00 [04:59:04]wFMCommunicate OK [04:59:04]SAM_PROTO_ClearQueue done [04:59:04]KKMCreateOFDPacket [04:59:04]OFDProtocolAddRootSTLVToBuf [04:59:04]FM_MakeSignedData [04:59:04]FM_MakeSignedData [04:59:04]SAM_PROTO_SignData [04:59:04]wFMCommunicate request_size=4 [04:59:04]MH_SAM_APDU [04:59:04]CAPDU: 80 0D 01 02 [04:59:04]Write to MH i2c: E2 08 00 07 F1 80 0D 01 02 00 00 00 00 71 [04:59:04]Write i2c OK [04:59:04]MH_I2C_Read... [04:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:59:04]Read from MH i2c: E2 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 03 00 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 03 00 07 F1 00 90 00 6C [04:59:04]RAPDU: 90 00 [04:59:04]wFMCommunicate OK [04:59:04]wFMCommunicate request_size=255 [04:59:04]MH_SAM_APDU [04:59:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A3 09 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7A 02 00 35 04 06 00 [04:59:04]Write to MH i2c: E2 02 01 08 F1 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A3 09 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7A 02 00 35 04 06 00 00 00 35 [04:59:04]Write i2c OK [04:59:04]MH_I2C_Read... [04:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:04]Read from MH i2c: E2 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 03 00 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 03 00 08 F1 00 90 00 6D [04:59:04]RAPDU: 90 00 [04:59:04]wFMCommunicate OK [04:59:04]wFMCommunicate request_size=11 [04:59:04]MH_SAM_APDU [04:59:04]CAPDU: 80 0D 02 02 06 BA 63 9E F7 0B E5 [04:59:04]Write to MH i2c: E2 0E 00 09 F1 80 0D 02 02 06 00 BA 63 9E F7 0B E5 00 00 22 [04:59:04]Write i2c OK [04:59:04]MH_I2C_Read... [04:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:04]Read from MH i2c: E2 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 03 00 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 03 00 09 F1 00 90 00 6E [04:59:04]RAPDU: 90 00 [04:59:04]wFMCommunicate OK [04:59:04]wFMCommunicate request_size=4 [04:59:04]MH_SAM_APDU [04:59:04]CAPDU: 80 0D 03 02 [04:59:04]Write to MH i2c: E2 08 00 0A F1 80 0D 03 02 00 00 00 00 76 [04:59:04]Write i2c OK [04:59:04]MH_I2C_Read... [04:59:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:04]Read from MH i2c: E2 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 0B 00 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 0B 00 0A F1 00 D9 62 E0 4C EA 1A 3C 2E 90 00 4C [04:59:04]RAPDU: D9 62 E0 4C EA 1A 3C 2E 90 00 [04:59:04]wFMCommunicate OK [04:59:04]SAM_PROTO_SignData done [04:59:04]FM_MakeSignedData done [04:59:04]CreateOFDProtocolMessage [04:59:04]wFMCommunicate request_size=4 [04:59:04]MH_SAM_APDU [04:59:04]CAPDU: 80 11 00 00 [04:59:04]Write to MH i2c: E2 08 00 0B F1 80 11 00 00 00 00 00 00 76 [04:59:04]Write i2c OK [04:59:04]MH_I2C_Read... [04:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:04]Read from MH i2c: E2 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 17 00 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: E2 17 00 0B F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D6 [04:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:59:04]wFMCommunicate OK [04:59:04]CreateOFDProtocolMessage done [04:59:04]OFDSenderStorePacket 162348 [04:59:04]StoreOFDPacket docnum=162348 [04:59:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C5 FD 08 01 62 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A3 09 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7A 02 00 35 04 06 00 BA 63 9E F7 0B E5 D9 62 E0 4C EA 1A 3C 2E [04:59:04]CheckFolder [04:59:04]dirname=/storage/ofd_packets [04:59:04]CheckFolder done [04:59:04]ProducePacketName [04:59:04]name=ofd_packets/00162348 [04:59:04]NVStorageSaveData ofd_packets/00162348 [04:59:04]File name is /storage/ofd_packets/00162348 [04:59:04]Write 302 bytes [04:59:04]NVStorageSaveData done [04:59:04]OFDSenderStorePacket done [04:59:04]KKMCreateOFDPacket done [04:59:04]NVStorageSaveData kkm_last_timestamp [04:59:04]File name is /storage/kkm_last_timestamp [04:59:04]Write 4 bytes [04:59:04]NVStorageSaveData done [04:59:04]ExternCall_PrintAddStr [04:59:04]wPrintStart [04:59:04]Write to MH i2c: 01 00 00 0C F1 FD [04:59:04]Write i2c OK [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: 01 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: 01 07 00 [04:59:04]MH_I2C_Read... [04:59:04]Read from MH i2c: 01 07 00 0C F1 00 00 00 00 00 FF 0F 12 [04:59:04]RasterBufferAndPrint [04:59:04]line Счет N : (1)1318868 [04:59:04]line ИНН: 02508201610067 [04:59:04]line Контрольно-Кассовый Чек [04:59:04]line ПРОДАЖА [04:59:04]line ТРК (МРК, ГНК) : 21 [04:59:04]line Товар: 2710194210 [04:59:04]line ДТ(л)-К-5 [04:59:04]line 13.780 * 72.60 [04:59:04]line = 1000.43 [04:59:04]line НДС 12% НСП 1% [04:59:04]line > о реализуемом товаре [04:59:04]line ОКРУГЛЕНИЕ: -0.43 [04:59:04]line ИТОГО: 1000.00 [04:59:04]line Внесено: 1000.00 [04:59:04]line СДАЧА: 0.00 [04:59:04]line НСП 1% : 8.85 [04:59:04]line НДС 12% : 106.24 [04:59:04]line Наличными: 1000.00 [04:59:04]line Безнал.: 0.00 [04:59:04]line Место: АЗС № 140 "Партнер Нефть" [04:59:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:59:04]line СНО: Общий режим [04:59:04]line Чек 16 13.07.2024 04:59 [04:59:04]line Смена: 462 ФФД: 1.0 [04:59:04]line ЗНМ: 0300000129 [04:59:04]line РНМ: 0000000000090858 [04:59:04]line Версия ККМ: 001 [04:59:04]line ФМ: 0000000000874899 [04:59:04]line ФД: 162348 [04:59:04]line ФПД: 204937031519205 [04:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T045915&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162348&fm=204937031519205&tin=02508201610067®Number=0000000000090858&sum=100000 [04:59:05]OFD Sender: Processing packet 162348 [packets to send 105, broken 104] [04:59:05]ProducePacketName [04:59:05]name=ofd_packets/00162348 [04:59:05]OFD Sender: To server: pG, [04:59:05]CommunicateWithHost lk.salyk.kg:30040 [04:59:05]ConnectInit lk.salyk.kg [04:59:05]written 0, free lines is 4095 [04:59:05]Connected sock=10 [04:59:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C5 FD 08 01 62 45 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A3 09 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7A 02 00 35 04 06 00 BA 63 9E F7 0B E5 D9 62 E0 4C EA 1A 3C 2E [04:59:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 75 1A 47 00 33 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7A 02 00 F4 03 04 00 B9 B5 91 66 B6 04 01 00 00 AF 5F B9 4F 95 DA 93 37 [04:59:05]CommunicateWithHost err = 0 [04:59:05]CheckOFDResponse [04:59:05]1017 (14) - 77093643461234 [04:59:05]1041 (16) - 0000000000874899 [04:59:05]1040 (4) - 162348 [04:59:05]1012 (4) - 12.07.2024 23:01 [04:59:05]1206 (1) - 0 [04:59:05]OFD Sender: Remove packet 162348 [04:59:05]ProducePacketName [04:59:05]name=ofd_packets/00162348 [04:59:05]NVStorageDeleteData [04:59:05]Write to MH i2c: 01 00 00 37 F1 28 [04:59:05]Write i2c OK [04:59:05]MH_I2C_Read... [04:59:05]Read from MH i2c: 01 [04:59:05]MH_I2C_Read... [04:59:05]Read from MH i2c: 01 07 00 [04:59:05]MH_I2C_Read... [04:59:05]Read from MH i2c: 01 07 00 37 F1 00 00 00 00 00 E8 0C 23 [04:59:05]RasterBufferAndPrint [04:59:05]line [04:59:05]line [04:59:05]line [04:59:05]line [04:59:05]line [04:59:05]written 0, free lines is 3313 [04:59:05]MH_Cut [04:59:05]Write to MH i2c: D1 01 00 3E F1 01 01 [04:59:05]Write i2c OK [04:59:05]MH_I2C_Read... [04:59:05]Read from MH i2c: D1 [04:59:05]MH_I2C_Read... [04:59:05]Read from MH i2c: D1 01 00 [04:59:05]MH_I2C_Read... [04:59:05]Read from MH i2c: D1 01 00 3E F1 00 00 [04:59:05]Write to MH i2c: 01 00 00 3F F1 30 [04:59:05]Write i2c OK [04:59:05]MH_I2C_Read... [04:59:05]OFD Sender: No OFD packet to send [04:59:06]*** Cut start [04:59:06]*** Purtial cut [04:59:06]*** Stage 1: CUTSNS_PIN = 1 [04:59:06]Read from MH i2c: 01 [04:59:06]MH_I2C_Read... [04:59:06]*** Stop cut motor [04:59:06]*** Cut end [04:59:06]Read from MH i2c: 01 07 00 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: 01 07 00 3F F1 00 00 00 00 00 FF 0F 45 [04:59:06]process_action close_receipt done [04:59:06]requested_data is exist [04:59:06]produce_requested_data [04:59:06]requested_item fm.sn is exist - process it [04:59:06]wFMCommunicate request_size=4 [04:59:06]MH_SAM_APDU [04:59:06]CAPDU: 80 11 00 00 [04:59:06]Write to MH i2c: E2 08 00 40 F1 80 11 00 00 00 00 00 00 AB [04:59:06]Write i2c OK [04:59:06]MH_I2C_Read... [04:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:06]Read from MH i2c: E2 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: E2 17 00 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: E2 17 00 40 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [04:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [04:59:06]wFMCommunicate OK [04:59:06]requested_item fd.num is exist - process it [04:59:06]SAM_PROTO_GetFieldsCounters [04:59:06]wFMCommunicate request_size=4 [04:59:06]MH_SAM_APDU [04:59:06]CAPDU: 80 13 00 00 [04:59:06]Write to MH i2c: E2 08 00 41 F1 80 13 00 00 00 00 00 00 AE [04:59:06]Write i2c OK [04:59:06]MH_I2C_Read... [04:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:06]Read from MH i2c: E2 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: E2 62 00 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: E2 62 00 41 F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [04:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:59:06]wFMCommunicate OK [04:59:06]SAM_PROTO_GetFieldsCounters done [04:59:06]requested_item shift.num is exist - process it [04:59:06]requested_item shift.opened is exist - process it [04:59:06]req_shift_opened [04:59:06]FM_GetShiftState [04:59:06]SAM_PROTO_GetShiftState [04:59:06]wFMCommunicate request_size=4 [04:59:06]MH_SAM_APDU [04:59:06]CAPDU: 80 13 01 00 [04:59:06]Write to MH i2c: E2 08 00 42 F1 80 13 01 00 00 00 00 00 B0 [04:59:06]Write i2c OK [04:59:06]MH_I2C_Read... [04:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:06]Read from MH i2c: E2 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: E2 0E 00 [04:59:06]MH_I2C_Read... [04:59:06]Read from MH i2c: E2 0E 00 42 F1 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AA [04:59:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [04:59:06]wFMCommunicate OK [04:59:06]SAM_PROTO_GetShiftState done [04:59:06]FM_GetShiftState done [04:59:06]req_shift_opened done [04:59:06]requested_item shift.open_date is exist - process it [04:59:06]req_shift_open_date [04:59:06]req_shift_open_date done [04:59:06]produce_requested_data done [04:59:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162348,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [04:59:06]process_action_free close_receipt [04:59:06]json_value_free [04:59:06]json_value_free done [04:59:06]process_json_proto returns [04:59:06]Send response to host [04:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162348,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [04:59:06]free response buf [04:59:06]execute_script done [04:59:06]execute_script returns [04:59:06]free content buf [04:59:06]Sock 8.Close socket [04:59:06]Sock 8.Thread stoped [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:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:45]accept exits with 9 [05:00:45]New connection [05:00:45]New thread 3066862948 created [05:00:45]Thread 3067006308 joined [05:00:45]Waiting for new connection... [05:00:45] Sock 9.Parse request [05:00:45]Sock 9.Check first char [05:00:45]Sock 9.First char is OK [05:00:45]request: POST /json_proto HTTP/1.0 [05:00:45]Method: POST [05:00:45]URL: /json_proto [05:00:45]Method is POST - this is cgi request [05:00:45]url: /json_proto [05:00:45]query_string will be loaded in cgi processing [05:00:45]execute_cgi json_proto POST (null) [05:00:45]execute_cgi path=json_proto method=POST [05:00:45]POST find Content-Length [05:00:45]Host: 172.17.39.67:8080 [05:00:45]Content-Length: 678 [05:00:45]Content-Type: application/json [05:00:45] [05:00:45]POST finish read [05:00:45]Found Content-Length = 678 [05:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:45]execute_script... [05:00: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)1318869", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:45]POST & json_proto [05:00:45]process_json_proto [05:00:45]json parsed OK: [05:00:45]protocol is kg_v1.0 [05:00:45]action value=close_receipt [05:00:45]process_action close_receipt [05:00:45]cmd_close_receipt [05:00:45]MH_GetDate [05:00:45]Write to MH i2c: F0 00 00 43 F1 23 [05:00:45]Write i2c OK [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: F0 [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: F0 09 00 [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: F0 09 00 43 F1 00 0A 0A 92 66 FA E9 8E 66 0F [05:00:45]GetLastDocTimeStamp 1720846755 [05:00:45]current date 1720846858 [05:00:45]FM_GetShiftState [05:00:45]SAM_PROTO_GetShiftState [05:00:45]wFMCommunicate request_size=4 [05:00:45]MH_SAM_APDU [05:00:45]CAPDU: 80 13 01 00 [05:00:45]Write to MH i2c: E2 08 00 44 F1 80 13 01 00 00 00 00 00 B2 [05:00:45]Write i2c OK [05:00:45]MH_I2C_Read... [05:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:45]Read from MH i2c: E2 [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: E2 0E 00 [05:00:45]MH_I2C_Read... [05:00:45]Read from MH i2c: E2 0E 00 44 F1 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AC [05:00:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:00:45]wFMCommunicate OK [05:00:45]SAM_PROTO_GetShiftState done [05:00:45]FM_GetShiftState done [05:00:45]opened in 1720828979 [05:00:45]opened+sec_in_day 1720915379 [05:00:45]quantity*price = 50056 [05:00:45]sum+1 = 50058 [05:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 17 13.07.2024 05:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162349 ФПД: 228527644127436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050058&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162349&fm=228527644127436&tin=02508201610067®Number=0000000000090858&sum=50000 [05:00:46]StoreToDocumentArchive [05:00:46]shift 462 fd 162349 [05:00:46]save to /storage/0462/doc_00162349 [05:00:46]save last doc name /storage/0462/doc_00162349 to /storage/kkm_last_doc_name [05:00:46]save OK [05:00:46]Clear old archive folders... [05:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:00:46]tlvbuf is 01BA0A70 [05:00:46]SAM_PROTO_ClearQueue [05:00:46]wFMCommunicate request_size=4 [05:00:46]MH_SAM_APDU [05:00:46]CAPDU: 80 09 00 00 [05:00:46]Write to MH i2c: E2 08 00 51 F1 80 09 00 00 00 00 00 00 B4 [05:00:46]Write i2c OK [05:00:46]MH_I2C_Read... [05:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:46]Read from MH i2c: E2 [05:00:46]MH_I2C_Read... [05:00:46]Read from MH i2c: E2 03 00 [05:00:46]MH_I2C_Read... [05:00:46]Read from MH i2c: E2 03 00 51 F1 00 90 00 B6 [05:00:46]RAPDU: 90 00 [05:00:46]wFMCommunicate OK [05:00:46]SAM_PROTO_ClearQueue done [05:00:46]KKMCreateOFDPacket [05:00:46]OFDProtocolAddRootSTLVToBuf [05:00:46]FM_MakeSignedData [05:00:46]FM_MakeSignedData [05:00:46]SAM_PROTO_SignData [05:00:46]wFMCommunicate request_size=4 [05:00:46]MH_SAM_APDU [05:00:46]CAPDU: 80 0D 01 02 [05:00:46]Write to MH i2c: E2 08 00 52 F1 80 0D 01 02 00 00 00 00 BC [05:00:46]Write i2c OK [05:00:46]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 03 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 03 00 52 F1 00 90 00 B7 [05:00:47]RAPDU: 90 00 [05:00:47]wFMCommunicate OK [05:00:47]wFMCommunicate request_size=255 [05:00:47]MH_SAM_APDU [05:00:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 0A 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7A 02 00 35 04 06 00 CF [05:00:47]Write to MH i2c: E2 02 01 53 F1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 0A 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7A 02 00 35 04 06 00 CF 00 00 DC [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 03 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 03 00 53 F1 00 90 00 B8 [05:00:47]RAPDU: 90 00 [05:00:47]wFMCommunicate OK [05:00:47]wFMCommunicate request_size=10 [05:00:47]MH_SAM_APDU [05:00:47]CAPDU: 80 0D 02 02 05 D8 3D 0C B0 CC [05:00:47]Write to MH i2c: E2 0D 00 54 F1 80 0D 02 02 05 00 D8 3D 0C B0 CC 00 00 66 [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 03 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 03 00 54 F1 00 90 00 B9 [05:00:47]RAPDU: 90 00 [05:00:47]wFMCommunicate OK [05:00:47]wFMCommunicate request_size=4 [05:00:47]MH_SAM_APDU [05:00:47]CAPDU: 80 0D 03 02 [05:00:47]Write to MH i2c: E2 08 00 55 F1 80 0D 03 02 00 00 00 00 C1 [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 0B 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 0B 00 55 F1 00 E5 AD 95 A2 54 8C F9 F5 90 00 59 [05:00:47]RAPDU: E5 AD 95 A2 54 8C F9 F5 90 00 [05:00:47]wFMCommunicate OK [05:00:47]SAM_PROTO_SignData done [05:00:47]FM_MakeSignedData done [05:00:47]CreateOFDProtocolMessage [05:00:47]wFMCommunicate request_size=4 [05:00:47]MH_SAM_APDU [05:00:47]CAPDU: 80 11 00 00 [05:00:47]Write to MH i2c: E2 08 00 56 F1 80 11 00 00 00 00 00 00 C1 [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 17 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 17 00 56 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [05:00:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:00:47]wFMCommunicate OK [05:00:47]CreateOFDProtocolMessage done [05:00:47]OFDSenderStorePacket 162349 [05:00:47]StoreOFDPacket docnum=162349 [05:00:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F9 9C 07 01 91 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 0A 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7A 02 00 35 04 06 00 CF D8 3D 0C B0 CC E5 AD 95 A2 54 8C F9 F5 [05:00:47]CheckFolder [05:00:47]dirname=/storage/ofd_packets [05:00:47]CheckFolder done [05:00:47]ProducePacketName [05:00:47]name=ofd_packets/00162349 [05:00:47]NVStorageSaveData ofd_packets/00162349 [05:00:47]File name is /storage/ofd_packets/00162349 [05:00:47]Write 301 bytes [05:00:47]NVStorageSaveData done [05:00:47]OFDSenderStorePacket done [05:00:47]KKMCreateOFDPacket done [05:00:47]NVStorageSaveData kkm_last_timestamp [05:00:47]File name is /storage/kkm_last_timestamp [05:00:47]Write 4 bytes [05:00:47]NVStorageSaveData done [05:00:47]ExternCall_PrintAddStr [05:00:47]wPrintStart [05:00:47]Write to MH i2c: 01 00 00 57 F1 48 [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: 01 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: 01 07 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: 01 07 00 57 F1 00 00 00 00 00 FF 0F 5D [05:00:47]RasterBufferAndPrint [05:00:47]line Счет N : (1)1318869 [05:00:47]line ИНН: 02508201610067 [05:00:47]line Контрольно-Кассовый Чек [05:00:47]line ПРОДАЖА [05:00:47]line ТРК (МРК, ГНК) : 53 [05:00:47]line Товар: 2710124130 [05:00:47]line Аи-92-К-5 [05:00:47]line 7.550 * 66.30 [05:00:47]line = 500.57 [05:00:47]line НДС 12% НСП 1% [05:00:47]line > о реализуемом товаре [05:00:47]line ОКРУГЛЕНИЕ: -0.57 [05:00:47]line ИТОГО: 500.00 [05:00:47]line Внесено: 500.00 [05:00:47]line СДАЧА: 0.00 [05:00:47]line НСП 1% : 4.43 [05:00:47]line НДС 12% : 53.16 [05:00:47]line Наличными: 500.00 [05:00:47]line Безнал.: 0.00 [05:00:47]line Место: АЗС № 140 "Партнер Нефть" [05:00:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:00:47]line СНО: Общий режим [05:00:47]line Чек 17 13.07.2024 05:00 [05:00:47]line Смена: 462 ФФД: 1.0 [05:00:47]line ЗНМ: 0300000129 [05:00:47]line РНМ: 0000000000090858 [05:00:47]line Версия ККМ: 001 [05:00:47]line ФМ: 0000000000874899 [05:00:47]line ФД: 162349 [05:00:47]line ФПД: 228527644127436 [05:00:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050058&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162349&fm=228527644127436&tin=02508201610067®Number=0000000000090858&sum=50000 [05:00:47]OFD Sender: Processing packet 162349 [packets to send 105, broken 104] [05:00:47]ProducePacketName [05:00:47]name=ofd_packets/00162349 [05:00:47]OFD Sender: To server: pG, [05:00:47]CommunicateWithHost lk.salyk.kg:30040 [05:00:47]ConnectInit lk.salyk.kg [05:00:47]written 0, free lines is 4095 [05:00:47]Connected sock=10 [05:00:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F9 9C 07 01 91 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 0A 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7A 02 00 35 04 06 00 CF D8 3D 0C B0 CC E5 AD 95 A2 54 8C F9 F5 [05:00:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 34 F8 47 00 1B 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 34 38 39 39 10 04 04 00 2D 7A 02 00 F4 03 04 00 1F B6 91 66 B6 04 01 00 00 FC 59 F6 50 79 7A D3 C3 [05:00:48]CommunicateWithHost err = 0 [05:00:48]CheckOFDResponse [05:00:48]1017 (14) - 77093643461234 [05:00:48]1041 (16) - 0000000000874899 [05:00:48]1040 (4) - 162349 [05:00:48]1012 (4) - 12.07.2024 23:02 [05:00:48]1206 (1) - 0 [05:00:48]OFD Sender: Remove packet 162349 [05:00:48]ProducePacketName [05:00:48]name=ofd_packets/00162349 [05:00:48]NVStorageDeleteData [05:00:48]Write to MH i2c: 01 00 00 82 F1 73 [05:00:48]Write i2c OK [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: 01 [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: 01 07 00 [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: 01 07 00 82 F1 00 00 00 00 00 E1 0C 67 [05:00:48]RasterBufferAndPrint [05:00:48]line [05:00:48]line [05:00:48]line [05:00:48]line [05:00:48]line [05:00:48]written 0, free lines is 3303 [05:00:48]MH_Cut [05:00:48]Write to MH i2c: D1 01 00 89 F1 01 4C [05:00:48]Write i2c OK [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: D1 [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: D1 01 00 [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: D1 01 00 89 F1 00 4B [05:00:48]Write to MH i2c: 01 00 00 8A F1 7B [05:00:48]Write i2c OK [05:00:48]MH_I2C_Read... [05:00:48]OFD Sender: No OFD packet to send [05:00:48]*** Cut start [05:00:48]*** Purtial cut [05:00:48]*** CUTSNS_PIN = 0 [05:00:49]*** Stage 1: CUTSNS_PIN = 1 [05:00:51]Read from MH i2c: 01 [05:00:51]MH_I2C_Read... [05:00:51]*** Stop cut motor [05:00:51]*** Cut end [05:00:51]Read from MH i2c: 01 07 00 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: 01 07 00 8A F1 00 00 00 00 00 FF 0F 90 [05:00:51]process_action close_receipt done [05:00:51]requested_data is exist [05:00:51]produce_requested_data [05:00:51]requested_item fm.sn is exist - process it [05:00:51]wFMCommunicate request_size=4 [05:00:51]MH_SAM_APDU [05:00:51]CAPDU: 80 11 00 00 [05:00:51]Write to MH i2c: E2 08 00 8B F1 80 11 00 00 00 00 00 00 F6 [05:00:51]Write i2c OK [05:00:51]MH_I2C_Read... [05:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:51]Read from MH i2c: E2 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: E2 17 00 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: E2 17 00 8B F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 56 [05:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:00:51]wFMCommunicate OK [05:00:51]requested_item fd.num is exist - process it [05:00:51]SAM_PROTO_GetFieldsCounters [05:00:51]wFMCommunicate request_size=4 [05:00:51]MH_SAM_APDU [05:00:51]CAPDU: 80 13 00 00 [05:00:51]Write to MH i2c: E2 08 00 8C F1 80 13 00 00 00 00 00 00 F9 [05:00:51]Write i2c OK [05:00:51]MH_I2C_Read... [05:00:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:51]Read from MH i2c: E2 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: E2 62 00 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: E2 62 00 8C F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [05:00:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:00:51]wFMCommunicate OK [05:00:51]SAM_PROTO_GetFieldsCounters done [05:00:51]requested_item shift.num is exist - process it [05:00:51]requested_item shift.opened is exist - process it [05:00:51]req_shift_opened [05:00:51]FM_GetShiftState [05:00:51]SAM_PROTO_GetShiftState [05:00:51]wFMCommunicate request_size=4 [05:00:51]MH_SAM_APDU [05:00:51]CAPDU: 80 13 01 00 [05:00:51]Write to MH i2c: E2 08 00 8D F1 80 13 01 00 00 00 00 00 FB [05:00:51]Write i2c OK [05:00:51]MH_I2C_Read... [05:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:51]Read from MH i2c: E2 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: E2 0E 00 [05:00:51]MH_I2C_Read... [05:00:51]Read from MH i2c: E2 0E 00 8D F1 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F5 [05:00:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:00:51]wFMCommunicate OK [05:00:51]SAM_PROTO_GetShiftState done [05:00:51]FM_GetShiftState done [05:00:51]req_shift_opened done [05:00:51]requested_item shift.open_date is exist - process it [05:00:51]req_shift_open_date [05:00:51]req_shift_open_date done [05:00:51]produce_requested_data done [05:00:51]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162349,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:00:51]process_action_free close_receipt [05:00:51]json_value_free [05:00:51]json_value_free done [05:00:51]process_json_proto returns [05:00:51]Send response to host [05:00:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162349,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:00:51]free response buf [05:00:51]execute_script done [05:00:51]execute_script returns [05:00:51]free content buf [05:00:51]Sock 9.Close socket [05:00:51]Sock 9.Thread stoped [05:00:53]OFD Sender: No OFD packet to send [05:00:58]OFD Sender: No OFD packet to send [05:01:03]OFD Sender: No OFD packet to send [05:01:08]OFD Sender: No OFD packet to send [05:01:13]OFD Sender: No OFD packet to send [05:01:18]OFD Sender: No OFD packet to send [05:01:23]OFD Sender: No OFD packet to send [05:01:28]OFD Sender: No OFD packet to send [05:01:33]OFD Sender: No OFD packet to send [05:01:38]OFD Sender: No OFD packet to send [05:01:40]accept exits with 8 [05:01:40]New connection [05:01:40]New thread 3067006308 created [05:01:40]Thread 3066862948 joined [05:01:40]Waiting for new connection... [05:01:40] Sock 8.Parse request [05:01:40]Sock 8.Check first char [05:01:40]Sock 8.First char is OK [05:01:40]request: POST /json_proto HTTP/1.0 [05:01:40]Method: POST [05:01:40]URL: /json_proto [05:01:40]Method is POST - this is cgi request [05:01:40]url: /json_proto [05:01:40]query_string will be loaded in cgi processing [05:01:40]execute_cgi json_proto POST (null) [05:01:40]execute_cgi path=json_proto method=POST [05:01:40]POST find Content-Length [05:01:40]Host: 172.17.39.67:8080 [05:01:40]Content-Length: 678 [05:01:40]Content-Type: application/json [05:01:40] [05:01:40]POST finish read [05:01:40]Found Content-Length = 678 [05:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:40]execute_script... [05:01: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)1318870", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:40]POST & json_proto [05:01:40]process_json_proto [05:01:40]json parsed OK: [05:01:40]protocol is kg_v1.0 [05:01:40]action value=close_receipt [05:01:40]process_action close_receipt [05:01:40]cmd_close_receipt [05:01:40]MH_GetDate [05:01:40]Write to MH i2c: F0 00 00 8E F1 6E [05:01:40]Write i2c OK [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: F0 [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: F0 09 00 [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: F0 09 00 8E F1 00 41 0A 92 66 FA E9 8E 66 91 [05:01:40]GetLastDocTimeStamp 1720846858 [05:01:40]current date 1720846913 [05:01:40]FM_GetShiftState [05:01:40]SAM_PROTO_GetShiftState [05:01:40]wFMCommunicate request_size=4 [05:01:40]MH_SAM_APDU [05:01:40]CAPDU: 80 13 01 00 [05:01:40]Write to MH i2c: E2 08 00 8F F1 80 13 01 00 00 00 00 00 FD [05:01:40]Write i2c OK [05:01:40]MH_I2C_Read... [05:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:40]Read from MH i2c: E2 [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: E2 0E 00 [05:01:40]MH_I2C_Read... [05:01:40]Read from MH i2c: E2 0E 00 8F F1 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F7 [05:01:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:01:40]wFMCommunicate OK [05:01:40]SAM_PROTO_GetShiftState done [05:01:40]FM_GetShiftState done [05:01:40]opened in 1720828979 [05:01:40]opened+sec_in_day 1720915379 [05:01:40]quantity*price = 50056 [05:01:40]sum+1 = 50058 [05:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 18 13.07.2024 05:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162350 ФПД: 18841359492500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050153&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162350&fm=18841359492500&tin=02508201610067®Number=0000000000090858&sum=50000 [05:01:41]StoreToDocumentArchive [05:01:41]shift 462 fd 162350 [05:01:41]save to /storage/0462/doc_00162350 [05:01:41]save last doc name /storage/0462/doc_00162350 to /storage/kkm_last_doc_name [05:01:41]save OK [05:01:41]Clear old archive folders... [05:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:01:41]tlvbuf is 01C44650 [05:01:41]SAM_PROTO_ClearQueue [05:01:41]wFMCommunicate request_size=4 [05:01:41]MH_SAM_APDU [05:01:41]CAPDU: 80 09 00 00 [05:01:41]Write to MH i2c: E2 08 00 9C F1 80 09 00 00 00 00 00 00 FF [05:01:41]Write i2c OK [05:01:41]MH_I2C_Read... [05:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:01:41]Read from MH i2c: E2 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: E2 03 00 [05:01:41]MH_I2C_Read... [05:01:41]Read from MH i2c: E2 03 00 9C F1 00 90 00 01 [05:01:41]RAPDU: 90 00 [05:01:41]wFMCommunicate OK [05:01:41]SAM_PROTO_ClearQueue done [05:01:41]KKMCreateOFDPacket [05:01:41]OFDProtocolAddRootSTLVToBuf [05:01:41]FM_MakeSignedData [05:01:41]FM_MakeSignedData [05:01:41]SAM_PROTO_SignData [05:01:41]wFMCommunicate request_size=4 [05:01:41]MH_SAM_APDU [05:01:41]CAPDU: 80 0D 01 02 [05:01:41]Write to MH i2c: E2 08 00 9D F1 80 0D 01 02 00 00 00 00 07 [05:01:41]Write i2c OK [05:01:41]MH_I2C_Read... [05:01:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:01:42]Read from MH i2c: E2 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 03 00 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 03 00 9D F1 00 90 00 02 [05:01:42]RAPDU: 90 00 [05:01:42]wFMCommunicate OK [05:01:42]wFMCommunicate request_size=255 [05:01:42]MH_SAM_APDU [05:01:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 41 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7A 02 00 35 04 06 00 11 [05:01:42]Write to MH i2c: E2 02 01 9E F1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 41 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7A 02 00 35 04 06 00 11 00 00 A2 [05:01:42]Write i2c OK [05:01:42]MH_I2C_Read... [05:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:42]Read from MH i2c: E2 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 03 00 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 03 00 9E F1 00 90 00 03 [05:01:42]RAPDU: 90 00 [05:01:42]wFMCommunicate OK [05:01:42]wFMCommunicate request_size=10 [05:01:42]MH_SAM_APDU [05:01:42]CAPDU: 80 0D 02 02 05 22 D8 8A 25 94 [05:01:42]Write to MH i2c: E2 0D 00 9F F1 80 0D 02 02 05 00 22 D8 8A 25 94 00 00 51 [05:01:42]Write i2c OK [05:01:42]MH_I2C_Read... [05:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:01:42]Read from MH i2c: E2 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 03 00 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 03 00 9F F1 00 90 00 04 [05:01:42]RAPDU: 90 00 [05:01:42]wFMCommunicate OK [05:01:42]wFMCommunicate request_size=4 [05:01:42]MH_SAM_APDU [05:01:42]CAPDU: 80 0D 03 02 [05:01:42]Write to MH i2c: E2 08 00 A0 F1 80 0D 03 02 00 00 00 00 0C [05:01:42]Write i2c OK [05:01:42]MH_I2C_Read... [05:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:01:42]Read from MH i2c: E2 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 0B 00 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 0B 00 A0 F1 00 84 A9 88 ED 7A 2F 59 35 90 00 E6 [05:01:42]RAPDU: 84 A9 88 ED 7A 2F 59 35 90 00 [05:01:42]wFMCommunicate OK [05:01:42]SAM_PROTO_SignData done [05:01:42]FM_MakeSignedData done [05:01:42]CreateOFDProtocolMessage [05:01:42]wFMCommunicate request_size=4 [05:01:42]MH_SAM_APDU [05:01:42]CAPDU: 80 11 00 00 [05:01:42]Write to MH i2c: E2 08 00 A1 F1 80 11 00 00 00 00 00 00 0C [05:01:42]Write i2c OK [05:01:42]MH_I2C_Read... [05:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:42]Read from MH i2c: E2 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 17 00 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: E2 17 00 A1 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [05:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:01:42]wFMCommunicate OK [05:01:42]CreateOFDProtocolMessage done [05:01:42]OFDSenderStorePacket 162350 [05:01:42]StoreOFDPacket docnum=162350 [05:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DA 4A 07 01 C9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 41 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7A 02 00 35 04 06 00 11 22 D8 8A 25 94 84 A9 88 ED 7A 2F 59 35 [05:01:42]CheckFolder [05:01:42]dirname=/storage/ofd_packets [05:01:42]CheckFolder done [05:01:42]ProducePacketName [05:01:42]name=ofd_packets/00162350 [05:01:42]NVStorageSaveData ofd_packets/00162350 [05:01:42]File name is /storage/ofd_packets/00162350 [05:01:42]Write 301 bytes [05:01:42]NVStorageSaveData done [05:01:42]OFDSenderStorePacket done [05:01:42]KKMCreateOFDPacket done [05:01:42]NVStorageSaveData kkm_last_timestamp [05:01:42]File name is /storage/kkm_last_timestamp [05:01:42]Write 4 bytes [05:01:42]NVStorageSaveData done [05:01:42]ExternCall_PrintAddStr [05:01:42]wPrintStart [05:01:42]Write to MH i2c: 01 00 00 A2 F1 93 [05:01:42]Write i2c OK [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: 01 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: 01 07 00 [05:01:42]MH_I2C_Read... [05:01:42]Read from MH i2c: 01 07 00 A2 F1 00 00 00 00 00 FF 0F A8 [05:01:42]RasterBufferAndPrint [05:01:42]line Счет N : (1)1318870 [05:01:42]line ИНН: 02508201610067 [05:01:42]line Контрольно-Кассовый Чек [05:01:42]line ПРОДАЖА [05:01:42]line ТРК (МРК, ГНК) : 33 [05:01:42]line Товар: 2710124130 [05:01:42]line Аи-92-К-5 [05:01:42]line 7.550 * 66.30 [05:01:42]line = 500.57 [05:01:42]line НДС 12% НСП 1% [05:01:42]line > о реализуемом товаре [05:01:42]line ОКРУГЛЕНИЕ: -0.57 [05:01:42]line ИТОГО: 500.00 [05:01:42]line Внесено: 500.00 [05:01:42]line СДАЧА: 0.00 [05:01:42]line НСП 1% : 4.43 [05:01:42]line НДС 12% : 53.16 [05:01:42]line Наличными: 500.00 [05:01:42]line Безнал.: 0.00 [05:01:42]line Место: АЗС № 140 "Партнер Нефть" [05:01:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:01:42]line СНО: Общий режим [05:01:42]line Чек 18 13.07.2024 05:01 [05:01:42]line Смена: 462 ФФД: 1.0 [05:01:42]line ЗНМ: 0300000129 [05:01:42]line РНМ: 0000000000090858 [05:01:42]line Версия ККМ: 001 [05:01:42]line ФМ: 0000000000874899 [05:01:42]line ФД: 162350 [05:01:42]line ФПД: 18841359492500 [05:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050153&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162350&fm=18841359492500&tin=02508201610067®Number=0000000000090858&sum=50000 [05:01:42]OFD Sender: Processing packet 162350 [packets to send 105, broken 104] [05:01:42]ProducePacketName [05:01:42]name=ofd_packets/00162350 [05:01:42]OFD Sender: To server: pG, [05:01:42]CommunicateWithHost lk.salyk.kg:30040 [05:01:42]ConnectInit lk.salyk.kg [05:01:42]written 0, free lines is 4095 [05:01:43]Write to MH i2c: 01 00 00 CD F1 BE [05:01:43]Write i2c OK [05:01:43]MH_I2C_Read... [05:01:43]Read from MH i2c: 01 [05:01:43]MH_I2C_Read... [05:01:43]Read from MH i2c: 01 07 00 [05:01:43]MH_I2C_Read... [05:01:43]Read from MH i2c: 01 07 00 CD F1 00 00 00 00 00 CD 0C 9E [05:01:43]RasterBufferAndPrint [05:01:43]line [05:01:43]line [05:01:43]line [05:01:43]line [05:01:43]line [05:01:43]written 0, free lines is 3284 [05:01:43]MH_Cut [05:01:43]Write to MH i2c: D1 01 00 D4 F1 01 97 [05:01:43]Write i2c OK [05:01:43]MH_I2C_Read... [05:01:43]Read from MH i2c: D1 [05:01:43]MH_I2C_Read... [05:01:43]Read from MH i2c: D1 01 00 [05:01:43]MH_I2C_Read... [05:01:43]Read from MH i2c: D1 01 00 D4 F1 00 96 [05:01:43]Write to MH i2c: 01 00 00 D5 F1 C6 [05:01:43]Write i2c OK [05:01:43]MH_I2C_Read... [05:01:44]*** Cut start [05:01:44]*** Purtial cut [05:01:44]*** Stage 1: CUTSNS_PIN = 1 [05:01:44]Read from MH i2c: 01 [05:01:44]MH_I2C_Read... [05:01:44]*** Stop cut motor [05:01:44]*** Cut end [05:01:44]Read from MH i2c: 01 07 00 [05:01:44]MH_I2C_Read... [05:01:44]Read from MH i2c: 01 07 00 D5 F1 00 00 00 00 00 FF 0F DB [05:01:44]process_action close_receipt done [05:01:44]requested_data is exist [05:01:44]produce_requested_data [05:01:44]requested_item fm.sn is exist - process it [05:01:44]wFMCommunicate request_size=4 [05:01:44]MH_SAM_APDU [05:01:44]CAPDU: 80 11 00 00 [05:01:44]Write to MH i2c: E2 08 00 D6 F1 80 11 00 00 00 00 00 00 41 [05:01:44]Write i2c OK [05:01:44]MH_I2C_Read... [05:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:01:44]Read from MH i2c: E2 [05:01:44]MH_I2C_Read... [05:01:44]Read from MH i2c: E2 17 00 [05:01:44]MH_I2C_Read... [05:01:44]Read from MH i2c: E2 17 00 D6 F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A1 [05:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:01:44]wFMCommunicate OK [05:01:44]requested_item fd.num is exist - process it [05:01:44]SAM_PROTO_GetFieldsCounters [05:01:44]wFMCommunicate request_size=4 [05:01:44]MH_SAM_APDU [05:01:44]CAPDU: 80 13 00 00 [05:01:44]Write to MH i2c: E2 08 00 D7 F1 80 13 00 00 00 00 00 00 44 [05:01:44]Write i2c OK [05:01:44]MH_I2C_Read... [05:01:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:01:44]Read from MH i2c: E2 [05:01:44]MH_I2C_Read... [05:01:44]Read from MH i2c: E2 62 00 [05:01:44]MH_I2C_Read... [05:01:44]Read from MH i2c: E2 62 00 D7 F1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [05:01:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:01:44]wFMCommunicate OK [05:01:44]SAM_PROTO_GetFieldsCounters done [05:01:44]requested_item shift.num is exist - process it [05:01:44]requested_item shift.opened is exist - process it [05:01:44]req_shift_opened [05:01:44]FM_GetShiftState [05:01:44]SAM_PROTO_GetShiftState [05:01:44]wFMCommunicate request_size=4 [05:01:44]MH_SAM_APDU [05:01:44]CAPDU: 80 13 01 00 [05:01:44]Write to MH i2c: E2 08 00 D8 F1 80 13 01 00 00 00 00 00 46 [05:01:44]Write i2c OK [05:01:44]MH_I2C_Read... [05:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:01:44]Read from MH i2c: E2 [05:01:44]MH_I2C_Read... [05:01:44]Read from MH i2c: E2 0E 00 [05:01:44]MH_I2C_Read... [05:01:44]Read from MH i2c: E2 0E 00 D8 F1 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 40 [05:01:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:01:44]wFMCommunicate OK [05:01:44]SAM_PROTO_GetShiftState done [05:01:44]FM_GetShiftState done [05:01:44]req_shift_opened done [05:01:44]requested_item shift.open_date is exist - process it [05:01:44]req_shift_open_date [05:01:44]req_shift_open_date done [05:01:44]produce_requested_data done [05:01:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162350,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:01:44]process_action_free close_receipt [05:01:44]json_value_free [05:01:44]json_value_free done [05:01:44]process_json_proto returns [05:01:44]Send response to host [05:01:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162350,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:01:44]free response buf [05:01:44]execute_script done [05:01:44]execute_script returns [05:01:44]free content buf [05:01:44]Sock 8.Close socket [05:01:44]Sock 8.Thread stoped [05:01:47]ConnectInit Can't take IP for lk.salyk.kg [05:01:47]CommunicateWithHost connect error [05:01:47]CommunicateWithHost err = -1 [05:01:47]OFD Sender: Server communicate error [05:01:52]OFD Sender: Processing packet 162350 [packets to send 105, broken 104] [05:01:52]ProducePacketName [05:01:52]name=ofd_packets/00162350 [05:01:52]OFD Sender: To server: pG, [05:01:52]CommunicateWithHost lk.salyk.kg:30040 [05:01:52]ConnectInit lk.salyk.kg [05:01:52]Connected sock=8 [05:01:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DA 4A 07 01 C9 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 41 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7A 02 00 35 04 06 00 11 22 D8 8A 25 94 84 A9 88 ED 7A 2F 59 35 [05:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5D 54 47 00 EE 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7A 02 00 F4 03 04 00 60 B6 91 66 B6 04 01 00 00 7B 6F C4 2C A8 8B BB 90 [05:01:53]CommunicateWithHost err = 0 [05:01:53]CheckOFDResponse [05:01:53]1017 (14) - 77093643461234 [05:01:53]1041 (16) - 0000000000874899 [05:01:53]1040 (4) - 162350 [05:01:53]1012 (4) - 12.07.2024 23:04 [05:01:53]1206 (1) - 0 [05:01:53]OFD Sender: Remove packet 162350 [05:01:53]ProducePacketName [05:01:53]name=ofd_packets/00162350 [05:01:53]NVStorageDeleteData [05:01:53]OFD Sender: No OFD packet to send [05:01:58]OFD Sender: No OFD packet to send [05:02:03]OFD Sender: No OFD packet to send [05:02:08]OFD Sender: No OFD packet to send [05:02:13]OFD Sender: No OFD packet to send [05:02:18]OFD Sender: No OFD packet to send [05:02:23]OFD Sender: No OFD packet to send [05:02:25]accept exits with 10 [05:02:25]New connection [05:02:25]New thread 3066862948 created [05:02:25]Thread 3067006308 joined [05:02:25]Waiting for new connection... [05:02:25] Sock 10.Parse request [05:02:25]Sock 10.Check first char [05:02:25]Sock 10.First char is OK [05:02:25]request: POST /json_proto HTTP/1.0 [05:02:25]Method: POST [05:02:25]URL: /json_proto [05:02:25]Method is POST - this is cgi request [05:02:25]url: /json_proto [05:02:25]query_string will be loaded in cgi processing [05:02:25]execute_cgi json_proto POST (null) [05:02:25]execute_cgi path=json_proto method=POST [05:02:25]POST find Content-Length [05:02:25]Host: 172.17.39.67:8080 [05:02:25]Content-Length: 683 [05:02:25]Content-Type: application/json [05:02:25] [05:02:25]POST finish read [05:02:25]Found Content-Length = 683 [05:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:25]execute_script... [05:02: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)1318871", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:25]POST & json_proto [05:02:25]process_json_proto [05:02:25]json parsed OK: [05:02:25]protocol is kg_v1.0 [05:02:25]action value=close_receipt [05:02:25]process_action close_receipt [05:02:25]cmd_close_receipt [05:02:25]MH_GetDate [05:02:25]Write to MH i2c: F0 00 00 D9 F1 B9 [05:02:25]Write i2c OK [05:02:25]MH_I2C_Read... [05:02:25]Read from MH i2c: F0 [05:02:25]MH_I2C_Read... [05:02:25]Read from MH i2c: F0 09 00 [05:02:25]MH_I2C_Read... [05:02:25]Read from MH i2c: F0 09 00 D9 F1 00 6E 0A 92 66 FA E9 8E 66 09 [05:02:25]GetLastDocTimeStamp 1720846913 [05:02:25]current date 1720846958 [05:02:25]FM_GetShiftState [05:02:25]SAM_PROTO_GetShiftState [05:02:25]wFMCommunicate request_size=4 [05:02:25]MH_SAM_APDU [05:02:25]CAPDU: 80 13 01 00 [05:02:25]Write to MH i2c: E2 08 00 DA F1 80 13 01 00 00 00 00 00 48 [05:02:25]Write i2c OK [05:02:25]MH_I2C_Read... [05:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:25]Read from MH i2c: E2 [05:02:25]MH_I2C_Read... [05:02:25]Read from MH i2c: E2 0E 00 [05:02:25]MH_I2C_Read... [05:02:25]Read from MH i2c: E2 0E 00 DA F1 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 42 [05:02:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:02:25]wFMCommunicate OK [05:02:25]SAM_PROTO_GetShiftState done [05:02:25]FM_GetShiftState done [05:02:25]opened in 1720828979 [05:02:25]opened+sec_in_day 1720915379 [05:02:25]quantity*price = 100046 [05:02:25]sum+1 = 100048 [05:02:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 19 13.07.2024 05:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162351 ФПД: 113126022342094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050238&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162351&fm=113126022342094&tin=02508201610067®Number=0000000000090858&sum=100000 [05:02:26]StoreToDocumentArchive [05:02:26]shift 462 fd 162351 [05:02:26]save to /storage/0462/doc_00162351 [05:02:26]save last doc name /storage/0462/doc_00162351 to /storage/kkm_last_doc_name [05:02:26]save OK [05:02:26]Clear old archive folders... [05:02:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:02:26]tlvbuf is 01B0B6C0 [05:02:26]SAM_PROTO_ClearQueue [05:02:26]wFMCommunicate request_size=4 [05:02:26]MH_SAM_APDU [05:02:26]CAPDU: 80 09 00 00 [05:02:26]Write to MH i2c: E2 08 00 E7 F1 80 09 00 00 00 00 00 00 4A [05:02:26]Write i2c OK [05:02:26]MH_I2C_Read... [05:02:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:02:26]Read from MH i2c: E2 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 03 00 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 03 00 E7 F1 00 90 00 4C [05:02:26]RAPDU: 90 00 [05:02:26]wFMCommunicate OK [05:02:26]SAM_PROTO_ClearQueue done [05:02:26]KKMCreateOFDPacket [05:02:26]OFDProtocolAddRootSTLVToBuf [05:02:26]FM_MakeSignedData [05:02:26]FM_MakeSignedData [05:02:26]SAM_PROTO_SignData [05:02:26]wFMCommunicate request_size=4 [05:02:26]MH_SAM_APDU [05:02:26]CAPDU: 80 0D 01 02 [05:02:26]Write to MH i2c: E2 08 00 E8 F1 80 0D 01 02 00 00 00 00 52 [05:02:26]Write i2c OK [05:02:26]MH_I2C_Read... [05:02:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:02:26]Read from MH i2c: E2 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 03 00 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 03 00 E8 F1 00 90 00 4D [05:02:26]RAPDU: 90 00 [05:02:26]wFMCommunicate OK [05:02:26]wFMCommunicate request_size=255 [05:02:26]MH_SAM_APDU [05: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 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 6E 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7A 02 00 35 04 06 00 66 [05:02:26]Write to MH i2c: E2 02 01 E9 F1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 6E 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7A 02 00 35 04 06 00 66 00 00 C1 [05:02:26]Write i2c OK [05:02:26]MH_I2C_Read... [05:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:02:26]Read from MH i2c: E2 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 03 00 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 03 00 E9 F1 00 90 00 4E [05:02:26]RAPDU: 90 00 [05:02:26]wFMCommunicate OK [05:02:26]wFMCommunicate request_size=10 [05:02:26]MH_SAM_APDU [05:02:26]CAPDU: 80 0D 02 02 05 E3 34 60 65 CE [05:02:26]Write to MH i2c: E2 0D 00 EA F1 80 0D 02 02 05 00 E3 34 60 65 CE 00 00 09 [05:02:26]Write i2c OK [05:02:26]MH_I2C_Read... [05:02:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:02:26]Read from MH i2c: E2 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 03 00 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 03 00 EA F1 00 90 00 4F [05:02:26]RAPDU: 90 00 [05:02:26]wFMCommunicate OK [05:02:26]wFMCommunicate request_size=4 [05:02:26]MH_SAM_APDU [05:02:26]CAPDU: 80 0D 03 02 [05:02:26]Write to MH i2c: E2 08 00 EB F1 80 0D 03 02 00 00 00 00 57 [05:02:26]Write i2c OK [05:02:26]MH_I2C_Read... [05:02:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:02:26]Read from MH i2c: E2 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 0B 00 [05:02:26]MH_I2C_Read... [05:02:26]Read from MH i2c: E2 0B 00 EB F1 00 D5 49 95 82 FE FB DD CD 90 00 30 [05:02:26]RAPDU: D5 49 95 82 FE FB DD CD 90 00 [05:02:27]wFMCommunicate OK [05:02:27]SAM_PROTO_SignData done [05:02:27]FM_MakeSignedData done [05:02:27]CreateOFDProtocolMessage [05:02:27]wFMCommunicate request_size=4 [05:02:27]MH_SAM_APDU [05:02:27]CAPDU: 80 11 00 00 [05:02:27]Write to MH i2c: E2 08 00 EC F1 80 11 00 00 00 00 00 00 57 [05:02:27]Write i2c OK [05:02:27]MH_I2C_Read... [05:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:02:27]Read from MH i2c: E2 [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: E2 17 00 [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: E2 17 00 EC F1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [05:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:02:27]wFMCommunicate OK [05:02:27]CreateOFDProtocolMessage done [05:02:27]OFDSenderStorePacket 162351 [05:02:27]StoreOFDPacket docnum=162351 [05:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 01 B3 07 01 24 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 6E 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7A 02 00 35 04 06 00 66 E3 34 60 65 CE D5 49 95 82 FE FB DD CD [05:02:27]CheckFolder [05:02:27]dirname=/storage/ofd_packets [05:02:27]CheckFolder done [05:02:27]ProducePacketName [05:02:27]name=ofd_packets/00162351 [05:02:27]NVStorageSaveData ofd_packets/00162351 [05:02:27]File name is /storage/ofd_packets/00162351 [05:02:27]Write 301 bytes [05:02:27]NVStorageSaveData done [05:02:27]OFDSenderStorePacket done [05:02:27]KKMCreateOFDPacket done [05:02:27]NVStorageSaveData kkm_last_timestamp [05:02:27]File name is /storage/kkm_last_timestamp [05:02:27]Write 4 bytes [05:02:27]NVStorageSaveData done [05:02:27]ExternCall_PrintAddStr [05:02:27]wPrintStart [05:02:27]Write to MH i2c: 01 00 00 ED F1 DE [05:02:27]Write i2c OK [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: 01 [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: 01 07 00 [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: 01 07 00 ED F1 00 00 00 00 00 FF 0F F3 [05:02:27]RasterBufferAndPrint [05:02:27]line Счет N : (1)1318871 [05:02:27]line ИНН: 02508201610067 [05:02:27]line Контрольно-Кассовый Чек [05:02:27]line ПРОДАЖА [05:02:27]line ТРК (МРК, ГНК) : 43 [05:02:27]line Товар: 2710124130 [05:02:27]line Аи-92-К-5 [05:02:27]line 15.090 * 66.30 [05:02:27]line = 1000.47 [05:02:27]line НДС 12% НСП 1% [05:02:27]line > о реализуемом товаре [05:02:27]line ОКРУГЛЕНИЕ: -0.47 [05:02:27]line ИТОГО: 1000.00 [05:02:27]line Внесено: 1000.00 [05:02:27]line СДАЧА: 0.00 [05:02:27]line НСП 1% : 8.85 [05:02:27]line НДС 12% : 106.24 [05:02:27]line Наличными: 1000.00 [05:02:27]line Безнал.: 0.00 [05:02:27]line Место: АЗС № 140 "Партнер Нефть" [05:02:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:02:27]line СНО: Общий режим [05:02:27]line Чек 19 13.07.2024 05:02 [05:02:27]line Смена: 462 ФФД: 1.0 [05:02:27]line ЗНМ: 0300000129 [05:02:27]line РНМ: 0000000000090858 [05:02:27]line Версия ККМ: 001 [05:02:27]line ФМ: 0000000000874899 [05:02:27]line ФД: 162351 [05:02:27]line ФПД: 113126022342094 [05:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050238&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162351&fm=113126022342094&tin=02508201610067®Number=0000000000090858&sum=100000 [05:02:27]OFD Sender: Processing packet 162351 [packets to send 105, broken 104] [05:02:27]ProducePacketName [05:02:27]name=ofd_packets/00162351 [05:02:27]written 0, free lines is 4095 [05:02:27]OFD Sender: To server: pG, [05:02:27]CommunicateWithHost lk.salyk.kg:30040 [05:02:27]ConnectInit lk.salyk.kg [05:02:27]Connected sock=9 [05:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 01 B3 07 01 24 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 13 00 00 00 F4 03 04 00 6E 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7A 02 00 35 04 06 00 66 E3 34 60 65 CE D5 49 95 82 FE FB DD CD [05:02:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CF 7E 47 00 0A 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7A 02 00 F4 03 04 00 83 B6 91 66 B6 04 01 00 00 56 38 DD EE 0D 94 58 A9 [05:02:27]CommunicateWithHost err = 0 [05:02:27]CheckOFDResponse [05:02:27]1017 (14) - 77093643461234 [05:02:27]1041 (16) - 0000000000874899 [05:02:27]1040 (4) - 162351 [05:02:27]1012 (4) - 12.07.2024 23:04 [05:02:27]1206 (1) - 0 [05:02:27]OFD Sender: Remove packet 162351 [05:02:27]ProducePacketName [05:02:27]name=ofd_packets/00162351 [05:02:27]NVStorageDeleteData [05:02:27]Write to MH i2c: 01 00 00 18 F2 0A [05:02:27]Write i2c OK [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: 01 [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: 01 07 00 [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: 01 07 00 18 F2 00 00 00 00 00 D9 0C F6 [05:02:27]RasterBufferAndPrint [05:02:27]line [05:02:27]line [05:02:27]line [05:02:27]line [05:02:27]line [05:02:27]written 0, free lines is 3310 [05:02:27]MH_Cut [05:02:27]Write to MH i2c: D1 01 00 1F F2 01 E3 [05:02:27]Write i2c OK [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: D1 [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: D1 01 00 [05:02:27]MH_I2C_Read... [05:02:27]Read from MH i2c: D1 01 00 1F F2 00 E2 [05:02:27]Write to MH i2c: 01 00 00 20 F2 12 [05:02:27]Write i2c OK [05:02:27]MH_I2C_Read... [05:02:28]OFD Sender: No OFD packet to send [05:02:28]*** Cut start [05:02:28]*** Purtial cut [05:02:28]*** CUTSNS_PIN = 0 [05:02:28]*** Stage 1: CUTSNS_PIN = 1 [05:02:30]Read from MH i2c: 01 [05:02:30]MH_I2C_Read... [05:02:30]*** Stop cut motor [05:02:30]*** Cut end [05:02:30]Read from MH i2c: 01 07 00 [05:02:30]MH_I2C_Read... [05:02:30]Read from MH i2c: 01 07 00 20 F2 00 00 00 00 00 FF 0F 27 [05:02:30]process_action close_receipt done [05:02:30]requested_data is exist [05:02:30]produce_requested_data [05:02:30]requested_item fm.sn is exist - process it [05:02:30]wFMCommunicate request_size=4 [05:02:30]MH_SAM_APDU [05:02:30]CAPDU: 80 11 00 00 [05:02:30]Write to MH i2c: E2 08 00 21 F2 80 11 00 00 00 00 00 00 8D [05:02:30]Write i2c OK [05:02:30]MH_I2C_Read... [05:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:02:30]Read from MH i2c: E2 [05:02:30]MH_I2C_Read... [05:02:30]Read from MH i2c: E2 17 00 [05:02:30]MH_I2C_Read... [05:02:30]Read from MH i2c: E2 17 00 21 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 ED [05:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:02:30]wFMCommunicate OK [05:02:30]requested_item fd.num is exist - process it [05:02:30]SAM_PROTO_GetFieldsCounters [05:02:30]wFMCommunicate request_size=4 [05:02:30]MH_SAM_APDU [05:02:30]CAPDU: 80 13 00 00 [05:02:30]Write to MH i2c: E2 08 00 22 F2 80 13 00 00 00 00 00 00 90 [05:02:30]Write i2c OK [05:02:30]MH_I2C_Read... [05:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:02:30]Read from MH i2c: E2 [05:02:30]MH_I2C_Read... [05:02:30]Read from MH i2c: E2 62 00 [05:02:30]MH_I2C_Read... [05:02:30]Read from MH i2c: E2 62 00 22 F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [05:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:02:30]wFMCommunicate OK [05:02:30]SAM_PROTO_GetFieldsCounters done [05:02:30]requested_item shift.num is exist - process it [05:02:30]requested_item shift.opened is exist - process it [05:02:30]req_shift_opened [05:02:30]FM_GetShiftState [05:02:30]SAM_PROTO_GetShiftState [05:02:30]wFMCommunicate request_size=4 [05:02:30]MH_SAM_APDU [05:02:30]CAPDU: 80 13 01 00 [05:02:30]Write to MH i2c: E2 08 00 23 F2 80 13 01 00 00 00 00 00 92 [05:02:30]Write i2c OK [05:02:30]MH_I2C_Read... [05:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:31]Read from MH i2c: E2 [05:02:31]MH_I2C_Read... [05:02:31]Read from MH i2c: E2 0E 00 [05:02:31]MH_I2C_Read... [05:02:31]Read from MH i2c: E2 0E 00 23 F2 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8C [05:02:31]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:02:31]wFMCommunicate OK [05:02:31]SAM_PROTO_GetShiftState done [05:02:31]FM_GetShiftState done [05:02:31]req_shift_opened done [05:02:31]requested_item shift.open_date is exist - process it [05:02:31]req_shift_open_date [05:02:31]req_shift_open_date done [05:02:31]produce_requested_data done [05:02:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162351,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:02:31]process_action_free close_receipt [05:02:31]json_value_free [05:02:31]json_value_free done [05:02:31]process_json_proto returns [05:02:31]Send response to host [05:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162351,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:02:31]free response buf [05:02:31]execute_script done [05:02:31]execute_script returns [05:02:31]free content buf [05:02:31]Sock 10.Close socket [05:02:31]Sock 10.Thread stoped [05:02:33]OFD Sender: No OFD packet to send [05:02:38]OFD Sender: No OFD packet to send [05:02:39]accept exits with 8 [05:02:39]New connection [05:02:39]New thread 3067006308 created [05:02:39]Thread 3066862948 joined [05:02:39]Waiting for new connection... [05:02:39] Sock 8.Parse request [05:02:39]Sock 8.Check first char [05:02:39]Sock 8.First char is OK [05:02:39]request: POST /json_proto HTTP/1.0 [05:02:39]Method: POST [05:02:39]URL: /json_proto [05:02:39]Method is POST - this is cgi request [05:02:39]url: /json_proto [05:02:39]query_string will be loaded in cgi processing [05:02:39]execute_cgi json_proto POST (null) [05:02:39]execute_cgi path=json_proto method=POST [05:02:39]POST find Content-Length [05:02:39]Host: 172.17.39.67:8080 [05:02:39]Content-Length: 688 [05:02:39]Content-Type: application/json [05:02:39] [05:02:39]POST finish read [05:02:39]Found Content-Length = 688 [05:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:02:39]execute_script... [05:02: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)1318872", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:02:39]POST & json_proto [05:02:39]process_json_proto [05:02:39]json parsed OK: [05:02:39]protocol is kg_v1.0 [05:02:39]action value=close_receipt [05:02:39]process_action close_receipt [05:02:39]cmd_close_receipt [05:02:39]MH_GetDate [05:02:39]Write to MH i2c: F0 00 00 24 F2 05 [05:02:39]Write i2c OK [05:02:39]MH_I2C_Read... [05:02:39]Read from MH i2c: F0 [05:02:39]MH_I2C_Read... [05:02:39]Read from MH i2c: F0 09 00 [05:02:39]MH_I2C_Read... [05:02:39]Read from MH i2c: F0 09 00 24 F2 00 7C 0A 92 66 FA E9 8E 66 63 [05:02:39]GetLastDocTimeStamp 1720846958 [05:02:39]current date 1720846972 [05:02:39]FM_GetShiftState [05:02:39]SAM_PROTO_GetShiftState [05:02:39]wFMCommunicate request_size=4 [05:02:39]MH_SAM_APDU [05:02:39]CAPDU: 80 13 01 00 [05:02:39]Write to MH i2c: E2 08 00 25 F2 80 13 01 00 00 00 00 00 94 [05:02:39]Write i2c OK [05:02:39]MH_I2C_Read... [05:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:39]Read from MH i2c: E2 [05:02:39]MH_I2C_Read... [05:02:39]Read from MH i2c: E2 0E 00 [05:02:39]MH_I2C_Read... [05:02:39]Read from MH i2c: E2 0E 00 25 F2 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8E [05:02:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:02:39]wFMCommunicate OK [05:02:39]SAM_PROTO_GetShiftState done [05:02:39]FM_GetShiftState done [05:02:39]opened in 1720828979 [05:02:39]opened+sec_in_day 1720915379 [05:02:39]quantity*price = 100042 [05:02:39]sum+1 = 100044 [05:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 20 13.07.2024 05:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162352 ФПД: 42111834337586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050252&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162352&fm=42111834337586&tin=02508201610067®Number=0000000000090858&sum=100000 [05:02:40]StoreToDocumentArchive [05:02:40]shift 462 fd 162352 [05:02:40]save to /storage/0462/doc_00162352 [05:02:40]save last doc name /storage/0462/doc_00162352 to /storage/kkm_last_doc_name [05:02:40]save OK [05:02:40]Clear old archive folders... [05:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:02:40]tlvbuf is 01A73370 [05:02:40]SAM_PROTO_ClearQueue [05:02:40]wFMCommunicate request_size=4 [05:02:40]MH_SAM_APDU [05:02:40]CAPDU: 80 09 00 00 [05:02:40]Write to MH i2c: E2 08 00 32 F2 80 09 00 00 00 00 00 00 96 [05:02:40]Write i2c OK [05:02:40]MH_I2C_Read... [05:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:02:40]Read from MH i2c: E2 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 03 00 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 03 00 32 F2 00 90 00 98 [05:02:40]RAPDU: 90 00 [05:02:40]wFMCommunicate OK [05:02:40]SAM_PROTO_ClearQueue done [05:02:40]KKMCreateOFDPacket [05:02:40]OFDProtocolAddRootSTLVToBuf [05:02:40]FM_MakeSignedData [05:02:40]FM_MakeSignedData [05:02:40]SAM_PROTO_SignData [05:02:40]wFMCommunicate request_size=4 [05:02:40]MH_SAM_APDU [05:02:40]CAPDU: 80 0D 01 02 [05:02:40]Write to MH i2c: E2 08 00 33 F2 80 0D 01 02 00 00 00 00 9E [05:02:40]Write i2c OK [05:02:40]MH_I2C_Read... [05:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:02:40]Read from MH i2c: E2 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 03 00 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 03 00 33 F2 00 90 00 99 [05:02:40]RAPDU: 90 00 [05:02:40]wFMCommunicate OK [05:02:40]wFMCommunicate request_size=255 [05:02:40]MH_SAM_APDU [05:02:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 14 00 00 00 F4 03 04 00 7C 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7A 02 00 35 04 06 00 [05:02:40]Write to MH i2c: E2 02 01 34 F2 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 14 00 00 00 F4 03 04 00 7C 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7A 02 00 35 04 06 00 00 00 44 [05:02:40]Write i2c OK [05:02:40]MH_I2C_Read... [05:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:02:40]Read from MH i2c: E2 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 03 00 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 03 00 34 F2 00 90 00 9A [05:02:40]RAPDU: 90 00 [05:02:40]wFMCommunicate OK [05:02:40]wFMCommunicate request_size=11 [05:02:40]MH_SAM_APDU [05:02:40]CAPDU: 80 0D 02 02 06 26 4C EC ED 31 32 [05:02:40]Write to MH i2c: E2 0E 00 35 F2 80 0D 02 02 06 00 26 4C EC ED 31 32 00 00 5B [05:02:40]Write i2c OK [05:02:40]MH_I2C_Read... [05:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:02:40]Read from MH i2c: E2 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 03 00 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 03 00 35 F2 00 90 00 9B [05:02:40]RAPDU: 90 00 [05:02:40]wFMCommunicate OK [05:02:40]wFMCommunicate request_size=4 [05:02:40]MH_SAM_APDU [05:02:40]CAPDU: 80 0D 03 02 [05:02:40]Write to MH i2c: E2 08 00 36 F2 80 0D 03 02 00 00 00 00 A3 [05:02:40]Write i2c OK [05:02:40]MH_I2C_Read... [05:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:02:40]Read from MH i2c: E2 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 0B 00 [05:02:40]MH_I2C_Read... [05:02:40]Read from MH i2c: E2 0B 00 36 F2 00 DD 95 8C 0C FA DF D0 4E 90 00 A5 [05:02:40]RAPDU: DD 95 8C 0C FA DF D0 4E 90 00 [05:02:40]wFMCommunicate OK [05:02:40]SAM_PROTO_SignData done [05:02:40]FM_MakeSignedData done [05:02:40]CreateOFDProtocolMessage [05:02:40]wFMCommunicate request_size=4 [05:02:40]MH_SAM_APDU [05:02:40]CAPDU: 80 11 00 00 [05:02:40]Write to MH i2c: E2 08 00 37 F2 80 11 00 00 00 00 00 00 A3 [05:02:40]Write i2c OK [05:02:40]MH_I2C_Read... [05:02:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:02:41]Read from MH i2c: E2 [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: E2 17 00 [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: E2 17 00 37 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [05:02:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:02:41]wFMCommunicate OK [05:02:41]CreateOFDProtocolMessage done [05:02:41]OFDSenderStorePacket 162352 [05:02:41]StoreOFDPacket docnum=162352 [05:02:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8F 1E 08 01 E1 B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 14 00 00 00 F4 03 04 00 7C 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7A 02 00 35 04 06 00 26 4C EC ED 31 32 DD 95 8C 0C FA DF D0 4E [05:02:41]CheckFolder [05:02:41]dirname=/storage/ofd_packets [05:02:41]CheckFolder done [05:02:41]ProducePacketName [05:02:41]name=ofd_packets/00162352 [05:02:41]NVStorageSaveData ofd_packets/00162352 [05:02:41]File name is /storage/ofd_packets/00162352 [05:02:41]Write 302 bytes [05:02:41]NVStorageSaveData done [05:02:41]OFDSenderStorePacket done [05:02:41]KKMCreateOFDPacket done [05:02:41]NVStorageSaveData kkm_last_timestamp [05:02:41]File name is /storage/kkm_last_timestamp [05:02:41]Write 4 bytes [05:02:41]NVStorageSaveData done [05:02:41]ExternCall_PrintAddStr [05:02:41]wPrintStart [05:02:41]Write to MH i2c: 01 00 00 38 F2 2A [05:02:41]Write i2c OK [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: 01 [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: 01 07 00 [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: 01 07 00 38 F2 00 00 00 00 00 FF 0F 3F [05:02:41]RasterBufferAndPrint [05:02:41]line Счет N : (1)1318872 [05:02:41]line ИНН: 02508201610067 [05:02:41]line Контрольно-Кассовый Чек [05:02:41]line ПРОДАЖА [05:02:41]line ТРК (МРК, ГНК) : 21 [05:02:41]line Товар: 2710194210 [05:02:41]line ДТ(л)-К-5 [05:02:41]line 13.780 * 72.60 [05:02:41]line = 1000.43 [05:02:41]line НДС 12% НСП 1% [05:02:41]line > о реализуемом товаре [05:02:41]line ОКРУГЛЕНИЕ: -0.43 [05:02:41]line ИТОГО: 1000.00 [05:02:41]line Внесено: 1000.00 [05:02:41]line СДАЧА: 0.00 [05:02:41]line НСП 1% : 8.85 [05:02:41]line НДС 12% : 106.24 [05:02:41]line Наличными: 1000.00 [05:02:41]line Безнал.: 0.00 [05:02:41]line Место: АЗС № 140 "Партнер Нефть" [05:02:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:02:41]line СНО: Общий режим [05:02:41]line Чек 20 13.07.2024 05:02 [05:02:41]line Смена: 462 ФФД: 1.0 [05:02:41]line ЗНМ: 0300000129 [05:02:41]line РНМ: 0000000000090858 [05:02:41]line Версия ККМ: 001 [05:02:41]line ФМ: 0000000000874899 [05:02:41]line ФД: 162352 [05:02:41]line ФПД: 42111834337586 [05:02:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050252&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162352&fm=42111834337586&tin=02508201610067®Number=0000000000090858&sum=100000 [05:02:41]written 0, free lines is 4095 [05:02:41]OFD Sender: Processing packet 162352 [packets to send 105, broken 104] [05:02:41]ProducePacketName [05:02:41]name=ofd_packets/00162352 [05:02:41]OFD Sender: To server: pG, [05:02:41]CommunicateWithHost lk.salyk.kg:30040 [05:02:41]ConnectInit lk.salyk.kg [05:02:41]Connected sock=10 [05:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8F 1E 08 01 E1 B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 14 00 00 00 F4 03 04 00 7C 0A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7A 02 00 35 04 06 00 26 4C EC ED 31 32 DD 95 8C 0C FA DF D0 4E [05:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F7 51 47 00 ED 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7A 02 00 F4 03 04 00 91 B6 91 66 B6 04 01 00 00 A3 37 0B 6C 00 18 13 1C [05:02:41]CommunicateWithHost err = 0 [05:02:41]CheckOFDResponse [05:02:41]1017 (14) - 77093643461234 [05:02:41]1041 (16) - 0000000000874899 [05:02:41]1040 (4) - 162352 [05:02:41]1012 (4) - 12.07.2024 23:04 [05:02:41]1206 (1) - 0 [05:02:41]OFD Sender: Remove packet 162352 [05:02:41]ProducePacketName [05:02:41]name=ofd_packets/00162352 [05:02:41]NVStorageDeleteData [05:02:41]Write to MH i2c: 01 00 00 63 F2 55 [05:02:41]Write i2c OK [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: 01 [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: 01 07 00 [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: 01 07 00 63 F2 00 00 00 00 00 F2 0C 5A [05:02:41]RasterBufferAndPrint [05:02:41]line [05:02:41]line [05:02:41]line [05:02:41]line [05:02:41]line [05:02:41]written 0, free lines is 3333 [05:02:41]MH_Cut [05:02:41]Write to MH i2c: D1 01 00 6A F2 01 2E [05:02:41]Write i2c OK [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: D1 [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: D1 01 00 [05:02:41]MH_I2C_Read... [05:02:41]Read from MH i2c: D1 01 00 6A F2 00 2D [05:02:41]Write to MH i2c: 01 00 00 6B F2 5D [05:02:41]Write i2c OK [05:02:41]MH_I2C_Read... [05:02:41]OFD Sender: No OFD packet to send [05:02:42]*** Cut start [05:02:42]*** Purtial cut [05:02:42]*** Stage 1: CUTSNS_PIN = 1 [05:02:42]Read from MH i2c: 01 [05:02:42]MH_I2C_Read... [05:02:42]*** Stop cut motor [05:02:42]*** Cut end [05:02:42]Read from MH i2c: 01 07 00 [05:02:42]MH_I2C_Read... [05:02:42]Read from MH i2c: 01 07 00 6B F2 00 00 00 00 00 FF 0F 72 [05:02:42]process_action close_receipt done [05:02:42]requested_data is exist [05:02:42]produce_requested_data [05:02:42]requested_item fm.sn is exist - process it [05:02:42]wFMCommunicate request_size=4 [05:02:42]MH_SAM_APDU [05:02:42]CAPDU: 80 11 00 00 [05:02:42]Write to MH i2c: E2 08 00 6C F2 80 11 00 00 00 00 00 00 D8 [05:02:42]Write i2c OK [05:02:42]MH_I2C_Read... [05:02:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:02:42]Read from MH i2c: E2 [05:02:42]MH_I2C_Read... [05:02:42]Read from MH i2c: E2 17 00 [05:02:42]MH_I2C_Read... [05:02:42]Read from MH i2c: E2 17 00 6C F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 38 [05:02:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:02:42]wFMCommunicate OK [05:02:42]requested_item fd.num is exist - process it [05:02:42]SAM_PROTO_GetFieldsCounters [05:02:42]wFMCommunicate request_size=4 [05:02:42]MH_SAM_APDU [05:02:42]CAPDU: 80 13 00 00 [05:02:42]Write to MH i2c: E2 08 00 6D F2 80 13 00 00 00 00 00 00 DB [05:02:42]Write i2c OK [05:02:42]MH_I2C_Read... [05:02:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:02:42]Read from MH i2c: E2 [05:02:42]MH_I2C_Read... [05:02:42]Read from MH i2c: E2 62 00 [05:02:42]MH_I2C_Read... [05:02:42]Read from MH i2c: E2 62 00 6D F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 30 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [05:02:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 30 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:02:42]wFMCommunicate OK [05:02:42]SAM_PROTO_GetFieldsCounters done [05:02:42]requested_item shift.num is exist - process it [05:02:42]requested_item shift.opened is exist - process it [05:02:42]req_shift_opened [05:02:42]FM_GetShiftState [05:02:42]SAM_PROTO_GetShiftState [05:02:42]wFMCommunicate request_size=4 [05:02:42]MH_SAM_APDU [05:02:42]CAPDU: 80 13 01 00 [05:02:42]Write to MH i2c: E2 08 00 6E F2 80 13 01 00 00 00 00 00 DD [05:02:42]Write i2c OK [05:02:42]MH_I2C_Read... [05:02:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:42]Read from MH i2c: E2 [05:02:42]MH_I2C_Read... [05:02:42]Read from MH i2c: E2 0E 00 [05:02:42]MH_I2C_Read... [05:02:42]Read from MH i2c: E2 0E 00 6E F2 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D7 [05:02:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:02:42]wFMCommunicate OK [05:02:42]SAM_PROTO_GetShiftState done [05:02:42]FM_GetShiftState done [05:02:42]req_shift_opened done [05:02:42]requested_item shift.open_date is exist - process it [05:02:42]req_shift_open_date [05:02:42]req_shift_open_date done [05:02:42]produce_requested_data done [05:02:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162352,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:02:42]process_action_free close_receipt [05:02:42]json_value_free [05:02:42]json_value_free done [05:02:42]process_json_proto returns [05:02:42]Send response to host [05:02:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162352,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:02:42]free response buf [05:02:42]execute_script done [05:02:42]execute_script returns [05:02:42]free content buf [05:02:42]Sock 8.Close socket [05:02:42]Sock 8.Thread stoped [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:04:57]accept exits with 9 [05:04:57]New connection [05:04:57]New thread 3066862948 created [05:04:57]Thread 3067006308 joined [05:04:57]Waiting for new connection... [05:04:57] Sock 9.Parse request [05:04:57]Sock 9.Check first char [05:04:57]Sock 9.First char is OK [05:04:57]request: POST /json_proto HTTP/1.0 [05:04:57]Method: POST [05:04:57]URL: /json_proto [05:04:57]Method is POST - this is cgi request [05:04:57]url: /json_proto [05:04:57]query_string will be loaded in cgi processing [05:04:57]execute_cgi json_proto POST (null) [05:04:57]execute_cgi path=json_proto method=POST [05:04:57]POST find Content-Length [05:04:57]Host: 172.17.39.67:8080 [05:04:57]Content-Length: 1175 [05:04:57]Content-Type: application/json [05:04:57] [05:04:57]POST finish read [05:04:57]Found Content-Length = 1175 [05:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318873\u000A13.07.2024 05:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1989.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102612\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:57]execute_script... [05:04:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318873\u000A13.07.2024 05:02\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1989.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102612\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:04:57]POST & json_proto [05:04:57]process_json_proto [05:04:57]json parsed OK: [05:04:57]protocol is kg_v1.0 [05:04:57]action value=print_text [05:04:57]process_action print_text [05:04:57]cmd_print_text [05:04:57]ExternCall_PrintAddStr [05:04:57]wPrintStart [05:04:57]Write to MH i2c: 01 00 00 6F F2 61 [05:04:57]Write i2c OK [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: 01 [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: 01 07 00 [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: 01 07 00 6F F2 00 00 00 00 00 FF 0F 76 [05:04:57]RasterBufferAndPrint [05:04:57]line *****ТОВАРНЫЙ ЧЕК***** [05:04:57]line АЗС 140 [05:04:57]line Партнер нефть [05:04:57]line 02508201610067 [05:04:57]line Кассир : Шамбеталиев А. [05:04:57]line Счет N : (1)1318873 [05:04:57]line 13.07.2024 05:02 [05:04:57]line ПРОДАЖА [05:04:57]line ТРК (МРК, ГНК): 53 [05:04:57]line Вид ГСМ : 2710124130 [05:04:57]line Аи-92-К-5 [05:04:57]line 30.000 x 66.30 [05:04:57]line ИТОГ: 1989.00 [05:04:57]line Тип оплаты: Талоны: ТК ГПНА Online [05:04:57]line 30102612 [05:04:57]line ______________________ [05:04:57]line (подпись) [05:04:57]written 0, free lines is 4095 [05:04:57]Write to MH i2c: 01 00 00 84 F2 76 [05:04:57]Write i2c OK [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: 01 [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: 01 07 00 [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: 01 07 00 84 F2 00 00 00 00 00 F6 0D 80 [05:04:57]RasterBufferAndPrint [05:04:57]line [05:04:57]line [05:04:57]line [05:04:57]line [05:04:57]line [05:04:57]written 0, free lines is 3576 [05:04:57]MH_Cut [05:04:57]Write to MH i2c: D1 01 00 8B F2 01 4F [05:04:57]Write i2c OK [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: D1 [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: D1 01 00 [05:04:57]MH_I2C_Read... [05:04:57]Read from MH i2c: D1 01 00 8B F2 00 4E [05:04:57]Write to MH i2c: 01 00 00 8C F2 7E [05:04:57]Write i2c OK [05:04:57]MH_I2C_Read... [05:04:58]*** Cut start [05:04:58]*** Purtial cut [05:04:58]*** CUTSNS_PIN = 0 [05:04:58]*** Stage 1: CUTSNS_PIN = 1 [05:05:00]Read from MH i2c: 01 [05:05:00]MH_I2C_Read... [05:05:00]*** Stop cut motor [05:05:00]*** Cut end [05:05:00]Read from MH i2c: 01 07 00 [05:05:00]MH_I2C_Read... [05:05:00]Read from MH i2c: 01 07 00 8C F2 00 00 00 00 00 FF 0F 93 [05:05:00]process_action print_text done [05:05:00]requested_data is exist [05:05:00]produce_requested_data [05:05:00]requested_item fm.sn is exist - process it [05:05:00]wFMCommunicate request_size=4 [05:05:00]MH_SAM_APDU [05:05:00]CAPDU: 80 11 00 00 [05:05:00]Write to MH i2c: E2 08 00 8D F2 80 11 00 00 00 00 00 00 F9 [05:05:00]Write i2c OK [05:05:00]MH_I2C_Read... [05:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:00]Read from MH i2c: E2 [05:05:00]MH_I2C_Read... [05:05:00]Read from MH i2c: E2 17 00 [05:05:00]MH_I2C_Read... [05:05:00]Read from MH i2c: E2 17 00 8D F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [05:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:05:00]wFMCommunicate OK [05:05:00]requested_item fd.num is exist - process it [05:05:00]SAM_PROTO_GetFieldsCounters [05:05:00]wFMCommunicate request_size=4 [05:05:00]MH_SAM_APDU [05:05:00]CAPDU: 80 13 00 00 [05:05:00]Write to MH i2c: E2 08 00 8E F2 80 13 00 00 00 00 00 00 FC [05:05:00]Write i2c OK [05:05:00]MH_I2C_Read... [05:05:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:00]Read from MH i2c: E2 [05:05:00]MH_I2C_Read... [05:05:00]Read from MH i2c: E2 62 00 [05:05:00]MH_I2C_Read... [05:05:00]Read from MH i2c: E2 62 00 8E F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 30 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [05:05:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 30 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:05:00]wFMCommunicate OK [05:05:00]SAM_PROTO_GetFieldsCounters done [05:05:00]requested_item shift.num is exist - process it [05:05:00]requested_item shift.opened is exist - process it [05:05:00]req_shift_opened [05:05:00]FM_GetShiftState [05:05:00]SAM_PROTO_GetShiftState [05:05:00]wFMCommunicate request_size=4 [05:05:00]MH_SAM_APDU [05:05:00]CAPDU: 80 13 01 00 [05:05:00]Write to MH i2c: E2 08 00 8F F2 80 13 01 00 00 00 00 00 FE [05:05:00]Write i2c OK [05:05:00]MH_I2C_Read... [05:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:00]Read from MH i2c: E2 [05:05:00]MH_I2C_Read... [05:05:00]Read from MH i2c: E2 0E 00 [05:05:00]MH_I2C_Read... [05:05:00]Read from MH i2c: E2 0E 00 8F F2 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F8 [05:05:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:05:00]wFMCommunicate OK [05:05:00]SAM_PROTO_GetShiftState done [05:05:00]FM_GetShiftState done [05:05:00]req_shift_opened done [05:05:00]requested_item shift.open_date is exist - process it [05:05:00]req_shift_open_date [05:05:00]req_shift_open_date done [05:05:00]produce_requested_data done [05:05:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162352,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:05:00]process_action_free print_text [05:05:00]json_value_free [05:05:00]json_value_free done [05:05:00]process_json_proto returns [05:05:00]Send response to host [05:05:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162352,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:05:00]free response buf [05:05:00]execute_script done [05:05:00]execute_script returns [05:05:00]free content buf [05:05:00]Sock 9.Close socket [05:05:00]Sock 9.Thread stoped [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:13]accept exits with 8 [05:05:13]New connection [05:05:13]New thread 3067006308 created [05:05:13]Thread 3066862948 joined [05:05:13]Waiting for new connection... [05:05:13] Sock 8.Parse request [05:05:13]Sock 8.Check first char [05:05:13]Sock 8.First char is OK [05:05:13]request: POST /json_proto HTTP/1.0 [05:05:13]Method: POST [05:05:13]URL: /json_proto [05:05:13]Method is POST - this is cgi request [05:05:13]url: /json_proto [05:05:13]query_string will be loaded in cgi processing [05:05:13]execute_cgi json_proto POST (null) [05:05:13]execute_cgi path=json_proto method=POST [05:05:13]POST find Content-Length [05:05:13]Host: 172.17.39.67:8080 [05:05:13]Content-Length: 674 [05:05:13]Content-Type: application/json [05:05:13] [05:05:13]POST finish read [05:05:13]Found Content-Length = 674 [05:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 1.140, "sum" : 75.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 75.00, "total" : 75.00, "payments": [ { "type": 0, "sum" : 75.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:05:13]execute_script... [05:05:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318874", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 1.140, "sum" : 75.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 75.00, "total" : 75.00, "payments": [ { "type": 0, "sum" : 75.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:05:13]POST & json_proto [05:05:13]process_json_proto [05:05:13]json parsed OK: [05:05:13]protocol is kg_v1.0 [05:05:13]action value=close_receipt [05:05:13]process_action close_receipt [05:05:13]cmd_close_receipt [05:05:13]MH_GetDate [05:05:13]Write to MH i2c: F0 00 00 90 F2 71 [05:05:13]Write i2c OK [05:05:13]MH_I2C_Read... [05:05:13]Read from MH i2c: F0 [05:05:13]MH_I2C_Read... [05:05:13]Read from MH i2c: F0 09 00 [05:05:13]MH_I2C_Read... [05:05:13]Read from MH i2c: F0 09 00 90 F2 00 16 0B 92 66 FA E9 8E 66 6A [05:05:13]GetLastDocTimeStamp 1720846972 [05:05:13]current date 1720847126 [05:05:13]FM_GetShiftState [05:05:13]SAM_PROTO_GetShiftState [05:05:13]wFMCommunicate request_size=4 [05:05:13]MH_SAM_APDU [05:05:13]CAPDU: 80 13 01 00 [05:05:13]Write to MH i2c: E2 08 00 91 F2 80 13 01 00 00 00 00 00 00 [05:05:13]Write i2c OK [05:05:13]MH_I2C_Read... [05:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:13]Read from MH i2c: E2 [05:05:13]MH_I2C_Read... [05:05:13]Read from MH i2c: E2 0E 00 [05:05:13]MH_I2C_Read... [05:05:13]Read from MH i2c: E2 0E 00 91 F2 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FA [05:05:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:05:13]wFMCommunicate OK [05:05:13]SAM_PROTO_GetShiftState done [05:05:13]FM_GetShiftState done [05:05:13]opened in 1720828979 [05:05:13]opened+sec_in_day 1720915379 [05:05:13]quantity*price = 7558 [05:05:13]sum+1 = 7559 [05:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 75.00 Внесено: 75.00 СДАЧА: 0.00 НСП 1% : 0.67 НДС 12% : 8.03 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 21 13.07.2024 05:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162353 ФПД: 348182836542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050526&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162353&fm=348182836542&tin=02508201610067®Number=0000000000090858&sum=7500 [05:05:15]StoreToDocumentArchive [05:05:15]shift 462 fd 162353 [05:05:15]save to /storage/0462/doc_00162353 [05:05:15]save last doc name /storage/0462/doc_00162353 to /storage/kkm_last_doc_name [05:05:15]save OK [05:05:15]Clear old archive folders... [05:05:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:05:15]tlvbuf is 018647B0 [05:05:15]SAM_PROTO_ClearQueue [05:05:15]wFMCommunicate request_size=4 [05:05:15]MH_SAM_APDU [05:05:15]CAPDU: 80 09 00 00 [05:05:15]Write to MH i2c: E2 08 00 9E F2 80 09 00 00 00 00 00 00 02 [05:05:15]Write i2c OK [05:05:15]MH_I2C_Read... [05:05:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:05:15]Read from MH i2c: E2 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 03 00 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 03 00 9E F2 00 90 00 04 [05:05:15]RAPDU: 90 00 [05:05:15]wFMCommunicate OK [05:05:15]SAM_PROTO_ClearQueue done [05:05:15]KKMCreateOFDPacket [05:05:15]OFDProtocolAddRootSTLVToBuf [05:05:15]FM_MakeSignedData [05:05:15]FM_MakeSignedData [05:05:15]SAM_PROTO_SignData [05:05:15]wFMCommunicate request_size=4 [05:05:15]MH_SAM_APDU [05:05:15]CAPDU: 80 0D 01 02 [05:05:15]Write to MH i2c: E2 08 00 9F F2 80 0D 01 02 00 00 00 00 0A [05:05:15]Write i2c OK [05:05:15]MH_I2C_Read... [05:05:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:05:15]Read from MH i2c: E2 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 03 00 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 03 00 9F F2 00 90 00 05 [05:05:15]RAPDU: 90 00 [05:05:15]wFMCommunicate OK [05:05:15]wFMCommunicate request_size=255 [05:05:15]MH_SAM_APDU [05:05:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 04 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 86 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 0B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7A 02 00 35 04 06 00 00 [05:05:15]Write to MH i2c: E2 02 01 A0 F2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 04 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 86 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 0B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7A 02 00 35 04 06 00 00 00 00 25 [05:05:15]Write i2c OK [05:05:15]MH_I2C_Read... [05:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:15]Read from MH i2c: E2 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 03 00 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 03 00 A0 F2 00 90 00 06 [05:05:15]RAPDU: 90 00 [05:05:15]wFMCommunicate OK [05:05:15]wFMCommunicate request_size=10 [05:05:15]MH_SAM_APDU [05:05:15]CAPDU: 80 0D 02 02 05 51 11 50 75 3E [05:05:15]Write to MH i2c: E2 0D 00 A1 F2 80 0D 02 02 05 00 51 11 50 75 3E 00 00 7C [05:05:15]Write i2c OK [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 [05:05:15]MH_I2C_Read... [05:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:15]Read from MH i2c: E2 03 00 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 03 00 A1 F2 00 90 00 07 [05:05:15]RAPDU: 90 00 [05:05:15]wFMCommunicate OK [05:05:15]wFMCommunicate request_size=4 [05:05:15]MH_SAM_APDU [05:05:15]CAPDU: 80 0D 03 02 [05:05:15]Write to MH i2c: E2 08 00 A2 F2 80 0D 03 02 00 00 00 00 0F [05:05:15]Write i2c OK [05:05:15]MH_I2C_Read... [05:05:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:05:15]Read from MH i2c: E2 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 0B 00 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 0B 00 A2 F2 00 EA 60 FD 7E 3C C6 B9 AE 90 00 3E [05:05:15]RAPDU: EA 60 FD 7E 3C C6 B9 AE 90 00 [05:05:15]wFMCommunicate OK [05:05:15]SAM_PROTO_SignData done [05:05:15]FM_MakeSignedData done [05:05:15]CreateOFDProtocolMessage [05:05:15]wFMCommunicate request_size=4 [05:05:15]MH_SAM_APDU [05:05:15]CAPDU: 80 11 00 00 [05:05:15]Write to MH i2c: E2 08 00 A3 F2 80 11 00 00 00 00 00 00 0F [05:05:15]Write i2c OK [05:05:15]MH_I2C_Read... [05:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:15]Read from MH i2c: E2 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 17 00 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: E2 17 00 A3 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6F [05:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:05:15]wFMCommunicate OK [05:05:15]CreateOFDProtocolMessage done [05:05:15]OFDSenderStorePacket 162353 [05:05:15]StoreOFDPacket docnum=162353 [05:05:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BA A8 07 01 67 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 04 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 86 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 0B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7A 02 00 35 04 06 00 00 51 11 50 75 3E EA 60 FD 7E 3C C6 B9 AE [05:05:15]CheckFolder [05:05:15]dirname=/storage/ofd_packets [05:05:15]CheckFolder done [05:05:15]ProducePacketName [05:05:15]name=ofd_packets/00162353 [05:05:15]NVStorageSaveData ofd_packets/00162353 [05:05:15]File name is /storage/ofd_packets/00162353 [05:05:15]Write 301 bytes [05:05:15]NVStorageSaveData done [05:05:15]OFDSenderStorePacket done [05:05:15]KKMCreateOFDPacket done [05:05:15]NVStorageSaveData kkm_last_timestamp [05:05:15]File name is /storage/kkm_last_timestamp [05:05:15]OFD Sender: Processing packet 162353 [packets to send 105, broken 104] [05:05:15]ProducePacketName [05:05:15]name=ofd_packets/00162353 [05:05:15]OFD Sender: To server: pG, [05:05:15]CommunicateWithHost lk.salyk.kg:30040 [05:05:15]ConnectInit lk.salyk.kg [05:05:15]Write 4 bytes [05:05:15]NVStorageSaveData done [05:05:15]ExternCall_PrintAddStr [05:05:15]wPrintStart [05:05:15]Write to MH i2c: 01 00 00 A4 F2 96 [05:05:15]Write i2c OK [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: 01 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: 01 07 00 [05:05:15]MH_I2C_Read... [05:05:15]Read from MH i2c: 01 07 00 A4 F2 00 00 00 00 00 FF 0F AB [05:05:15]RasterBufferAndPrint [05:05:15]line Счет N : (1)1318874 [05:05:15]line ИНН: 02508201610067 [05:05:15]line Контрольно-Кассовый Чек [05:05:15]line ПРОДАЖА [05:05:15]line ТРК (МРК, ГНК) : 63 [05:05:15]line Товар: 2710124130 [05:05:15]line Аи-92-К-5 [05:05:15]line 1.140 * 66.30 [05:05:15]line = 75.58 [05:05:15]line НДС 12% НСП 1% [05:05:15]line > о реализуемом товаре [05:05:15]line ОКРУГЛЕНИЕ: -0.58 [05:05:15]line ИТОГО: 75.00 [05:05:15]line Внесено: 75.00 [05:05:15]line СДАЧА: 0.00 [05:05:15]line НСП 1% : 0.67 [05:05:15]line НДС 12% : 8.03 [05:05:15]line Наличными: 75.00 [05:05:15]line Безнал.: 0.00 [05:05:15]line Место: АЗС № 140 "Партнер Нефть" [05:05:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:05:15]line СНО: Общий режим [05:05:15]line Чек 21 13.07.2024 05:05 [05:05:15]line Смена: 462 ФФД: 1.0 [05:05:15]line ЗНМ: 0300000129 [05:05:15]line РНМ: 0000000000090858 [05:05:15]line Версия ККМ: 001 [05:05:15]line ФМ: 0000000000874899 [05:05:15]line ФД: 162353 [05:05:15]line ФПД: 348182836542 [05:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050526&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162353&fm=348182836542&tin=02508201610067®Number=0000000000090858&sum=7500 [05:05:15]written 0, free lines is 4095 [05:05:15]Connected sock=11 [05:05:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BA A8 07 01 67 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 04 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 86 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 16 0B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7A 02 00 35 04 06 00 00 51 11 50 75 3E EA 60 FD 7E 3C C6 B9 AE [05:05:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E9 37 47 00 19 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7A 02 00 F4 03 04 00 2B B7 91 66 B6 04 01 00 00 C3 47 5E A3 79 0B 9C 1D [05:05:15]CommunicateWithHost err = 0 [05:05:15]CheckOFDResponse [05:05:15]1017 (14) - 77093643461234 [05:05:15]1041 (16) - 0000000000874899 [05:05:15]1040 (4) - 162353 [05:05:15]1012 (4) - 12.07.2024 23:07 [05:05:15]1206 (1) - 0 [05:05:15]OFD Sender: Remove packet 162353 [05:05:15]ProducePacketName [05:05:15]name=ofd_packets/00162353 [05:05:15]NVStorageDeleteData [05:05:16]Write to MH i2c: 01 00 00 CF F2 C1 [05:05:16]Write i2c OK [05:05:16]MH_I2C_Read... [05:05:16]Read from MH i2c: 01 [05:05:16]MH_I2C_Read... [05:05:16]Read from MH i2c: 01 07 00 [05:05:16]MH_I2C_Read... [05:05:16]Read from MH i2c: 01 07 00 CF F2 00 00 00 00 00 D8 0C AC [05:05:16]RasterBufferAndPrint [05:05:16]line [05:05:16]line [05:05:16]line [05:05:16]line [05:05:16]line [05:05:16]written 0, free lines is 3297 [05:05:16]MH_Cut [05:05:16]Write to MH i2c: D1 01 00 D6 F2 01 9A [05:05:16]Write i2c OK [05:05:16]MH_I2C_Read... [05:05:16]Read from MH i2c: D1 [05:05:16]MH_I2C_Read... [05:05:16]Read from MH i2c: D1 01 00 [05:05:16]MH_I2C_Read... [05:05:16]Read from MH i2c: D1 01 00 D6 F2 00 99 [05:05:16]Write to MH i2c: 01 00 00 D7 F2 C9 [05:05:16]Write i2c OK [05:05:16]MH_I2C_Read... [05:05:16]OFD Sender: No OFD packet to send [05:05:16]*** Cut start [05:05:16]*** Purtial cut [05:05:16]*** Stage 1: CUTSNS_PIN = 1 [05:05:17]Read from MH i2c: 01 [05:05:17]MH_I2C_Read... [05:05:17]*** Stop cut motor [05:05:17]*** Cut end [05:05:17]Read from MH i2c: 01 07 00 [05:05:17]MH_I2C_Read... [05:05:17]Read from MH i2c: 01 07 00 D7 F2 00 00 00 00 00 FF 0F DE [05:05:17]process_action close_receipt done [05:05:17]requested_data is exist [05:05:17]produce_requested_data [05:05:17]requested_item fm.sn is exist - process it [05:05:17]wFMCommunicate request_size=4 [05:05:17]MH_SAM_APDU [05:05:17]CAPDU: 80 11 00 00 [05:05:17]Write to MH i2c: E2 08 00 D8 F2 80 11 00 00 00 00 00 00 44 [05:05:17]Write i2c OK [05:05:17]MH_I2C_Read... [05:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:17]Read from MH i2c: E2 [05:05:17]MH_I2C_Read... [05:05:17]Read from MH i2c: E2 17 00 [05:05:17]MH_I2C_Read... [05:05:17]Read from MH i2c: E2 17 00 D8 F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [05:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:05:17]wFMCommunicate OK [05:05:17]requested_item fd.num is exist - process it [05:05:17]SAM_PROTO_GetFieldsCounters [05:05:17]wFMCommunicate request_size=4 [05:05:17]MH_SAM_APDU [05:05:17]CAPDU: 80 13 00 00 [05:05:17]Write to MH i2c: E2 08 00 D9 F2 80 13 00 00 00 00 00 00 47 [05:05:17]Write i2c OK [05:05:17]MH_I2C_Read... [05:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:17]Read from MH i2c: E2 [05:05:17]MH_I2C_Read... [05:05:17]Read from MH i2c: E2 62 00 [05:05:17]MH_I2C_Read... [05:05:17]Read from MH i2c: E2 62 00 D9 F2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 31 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [05:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 31 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:05:17]wFMCommunicate OK [05:05:17]SAM_PROTO_GetFieldsCounters done [05:05:17]requested_item shift.num is exist - process it [05:05:17]requested_item shift.opened is exist - process it [05:05:17]req_shift_opened [05:05:17]FM_GetShiftState [05:05:17]SAM_PROTO_GetShiftState [05:05:17]wFMCommunicate request_size=4 [05:05:17]MH_SAM_APDU [05:05:17]CAPDU: 80 13 01 00 [05:05:17]Write to MH i2c: E2 08 00 DA F2 80 13 01 00 00 00 00 00 49 [05:05:17]Write i2c OK [05:05:17]MH_I2C_Read... [05:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:17]Read from MH i2c: E2 [05:05:17]MH_I2C_Read... [05:05:17]Read from MH i2c: E2 0E 00 [05:05:17]MH_I2C_Read... [05:05:17]Read from MH i2c: E2 0E 00 DA F2 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 43 [05:05:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:05:17]wFMCommunicate OK [05:05:17]SAM_PROTO_GetShiftState done [05:05:17]FM_GetShiftState done [05:05:17]req_shift_opened done [05:05:17]requested_item shift.open_date is exist - process it [05:05:17]req_shift_open_date [05:05:17]req_shift_open_date done [05:05:17]produce_requested_data done [05:05:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162353,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:05:17]process_action_free close_receipt [05:05:17]json_value_free [05:05:17]json_value_free done [05:05:17]process_json_proto returns [05:05:17]Send response to host [05:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162353,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:05:17]free response buf [05:05:17]execute_script done [05:05:17]execute_script returns [05:05:17]free content buf [05:05:17]Sock 8.Close socket [05:05:17]Sock 8.Thread stoped [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:45]accept exits with 9 [05:05:45]New connection [05:05:45]New thread 3066862948 created [05:05:45]Thread 3067006308 joined [05:05:45]Waiting for new connection... [05:05:45] Sock 9.Parse request [05:05:45]Sock 9.Check first char [05:05:45]Sock 9.First char is OK [05:05:45]request: POST /json_proto HTTP/1.0 [05:05:45]Method: POST [05:05:45]URL: /json_proto [05:05:45]Method is POST - this is cgi request [05:05:45]url: /json_proto [05:05:45]query_string will be loaded in cgi processing [05:05:45]execute_cgi json_proto POST (null) [05:05:45]execute_cgi path=json_proto method=POST [05:05:45]POST find Content-Length [05:05:45]Host: 172.17.39.67:8080 [05:05:45]Content-Length: 683 [05:05:45]Content-Type: application/json [05:05:45] [05:05:45]POST finish read [05:05:45]Found Content-Length = 683 [05:05:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:05:45]execute_script... [05:05: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)1318875", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:05:45]POST & json_proto [05:05:45]process_json_proto [05:05:45]json parsed OK: [05:05:45]protocol is kg_v1.0 [05:05:45]action value=close_receipt [05:05:45]process_action close_receipt [05:05:45]cmd_close_receipt [05:05:45]MH_GetDate [05:05:45]Write to MH i2c: F0 00 00 DB F2 BC [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: F0 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: F0 09 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: F0 09 00 DB F2 00 35 0B 92 66 FA E9 8E 66 D4 [05:05:45]GetLastDocTimeStamp 1720847126 [05:05:45]current date 1720847157 [05:05:45]FM_GetShiftState [05:05:45]SAM_PROTO_GetShiftState [05:05:45]wFMCommunicate request_size=4 [05:05:45]MH_SAM_APDU [05:05:45]CAPDU: 80 13 01 00 [05:05:45]Write to MH i2c: E2 08 00 DC F2 80 13 01 00 00 00 00 00 4B [05:05:45]Write i2c OK [05:05:45]MH_I2C_Read... [05:05:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:45]Read from MH i2c: E2 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: E2 0E 00 [05:05:45]MH_I2C_Read... [05:05:45]Read from MH i2c: E2 0E 00 DC F2 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 45 [05:05:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:05:45]wFMCommunicate OK [05:05:45]SAM_PROTO_GetShiftState done [05:05:45]FM_GetShiftState done [05:05:45]opened in 1720828979 [05:05:45]opened+sec_in_day 1720915379 [05:05:45]quantity*price = 70059 [05:05:45]sum+1 = 70060 [05:05: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 22 13.07.2024 05:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162354 ФПД: 5242441523317 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050557&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162354&fm=5242441523317&tin=02508201610067®Number=0000000000090858&sum=70000 [05:05:46]StoreToDocumentArchive [05:05:46]shift 462 fd 162354 [05:05:46]save to /storage/0462/doc_00162354 [05:05:46]save last doc name /storage/0462/doc_00162354 to /storage/kkm_last_doc_name [05:05:46]save OK [05:05:46]Clear old archive folders... [05:05:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:05:46]tlvbuf is 019C0030 [05:05:46]SAM_PROTO_ClearQueue [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 09 00 00 [05:05:46]Write to MH i2c: E2 08 00 E9 F2 80 09 00 00 00 00 00 00 4D [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 E9 F2 00 90 00 4F [05:05:46]RAPDU: 90 00 [05:05:46]wFMCommunicate OK [05:05:46]SAM_PROTO_ClearQueue done [05:05:46]KKMCreateOFDPacket [05:05:46]OFDProtocolAddRootSTLVToBuf [05:05:46]FM_MakeSignedData [05:05:46]FM_MakeSignedData [05:05:46]SAM_PROTO_SignData [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 0D 01 02 [05:05:46]Write to MH i2c: E2 08 00 EA F2 80 0D 01 02 00 00 00 00 55 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 EA F2 00 90 00 50 [05:05:46]RAPDU: 90 00 [05:05:46]wFMCommunicate OK [05:05:46]wFMCommunicate request_size=255 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 00 00 00 F4 03 04 00 35 0B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7A 02 00 35 04 06 00 [05:05:46]Write to MH i2c: E2 02 01 EB F2 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 00 00 00 F4 03 04 00 35 0B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7A 02 00 35 04 06 00 00 00 22 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]OFD Sender: No OFD packet to send [05:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 EB F2 00 90 00 51 [05:05:46]RAPDU: 90 00 [05:05:46]wFMCommunicate OK [05:05:46]wFMCommunicate request_size=11 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 0D 02 02 06 04 C4 99 DD 60 75 [05:05:46]Write to MH i2c: E2 0E 00 EC F2 80 0D 02 02 06 00 04 C4 99 DD 60 75 00 00 77 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 03 00 EC F2 00 90 00 52 [05:05:46]RAPDU: 90 00 [05:05:46]wFMCommunicate OK [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 0D 03 02 [05:05:46]Write to MH i2c: E2 08 00 ED F2 80 0D 03 02 00 00 00 00 5A [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 0B 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 0B 00 ED F2 00 98 15 33 47 8B 7F 5B A4 90 00 8B [05:05:46]RAPDU: 98 15 33 47 8B 7F 5B A4 90 00 [05:05:46]wFMCommunicate OK [05:05:46]SAM_PROTO_SignData done [05:05:46]FM_MakeSignedData done [05:05:46]CreateOFDProtocolMessage [05:05:46]wFMCommunicate request_size=4 [05:05:46]MH_SAM_APDU [05:05:46]CAPDU: 80 11 00 00 [05:05:46]Write to MH i2c: E2 08 00 EE F2 80 11 00 00 00 00 00 00 5A [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:46]Read from MH i2c: E2 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 17 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: E2 17 00 EE F2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BA [05:05:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:05:46]wFMCommunicate OK [05:05:46]CreateOFDProtocolMessage done [05:05:46]OFDSenderStorePacket 162354 [05:05:46]StoreOFDPacket docnum=162354 [05:05:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C3 BF 08 01 15 A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 00 00 00 F4 03 04 00 35 0B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7A 02 00 35 04 06 00 04 C4 99 DD 60 75 98 15 33 47 8B 7F 5B A4 [05:05:46]CheckFolder [05:05:46]dirname=/storage/ofd_packets [05:05:46]CheckFolder done [05:05:46]ProducePacketName [05:05:46]name=ofd_packets/00162354 [05:05:46]NVStorageSaveData ofd_packets/00162354 [05:05:46]File name is /storage/ofd_packets/00162354 [05:05:46]Write 302 bytes [05:05:46]NVStorageSaveData done [05:05:46]OFDSenderStorePacket done [05:05:46]KKMCreateOFDPacket done [05:05:46]NVStorageSaveData kkm_last_timestamp [05:05:46]File name is /storage/kkm_last_timestamp [05:05:46]Write 4 bytes [05:05:46]NVStorageSaveData done [05:05:46]ExternCall_PrintAddStr [05:05:46]wPrintStart [05:05:46]Write to MH i2c: 01 00 00 EF F2 E1 [05:05:46]Write i2c OK [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: 01 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: 01 07 00 [05:05:46]MH_I2C_Read... [05:05:46]Read from MH i2c: 01 07 00 EF F2 00 00 00 00 00 FF 0F F6 [05:05:46]RasterBufferAndPrint [05:05:46]line Счет N : (1)1318875 [05:05:46]line ИНН: 02508201610067 [05:05:46]line Контрольно-Кассовый Чек [05:05:46]line ПРОДАЖА [05:05:46]line ТРК (МРК, ГНК) : 11 [05:05:46]line Товар: 2710194210 [05:05:46]line ДТ(л)-К-5 [05:05:46]line 9.650 * 72.60 [05:05:46]line = 700.59 [05:05:46]line НДС 12% НСП 1% [05:05:46]line > о реализуемом товаре [05:05:46]line ОКРУГЛЕНИЕ: -0.59 [05:05:46]line ИТОГО: 700.00 [05:05:46]line Внесено: 700.00 [05:05:46]line СДАЧА: 0.00 [05:05:46]line НСП 1% : 6.20 [05:05:46]line НДС 12% : 74.40 [05:05:46]line Наличными: 700.00 [05:05:46]line Безнал.: 0.00 [05:05:46]line Место: АЗС № 140 "Партнер Нефть" [05:05:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:05:46]line СНО: Общий режим [05:05:46]line Чек 22 13.07.2024 05:05 [05:05:46]line Смена: 462 ФФД: 1.0 [05:05:46]line ЗНМ: 0300000129 [05:05:46]line РНМ: 0000000000090858 [05:05:46]line Версия ККМ: 001 [05:05:46]line ФМ: 0000000000874899 [05:05:46]line ФД: 162354 [05:05:46]line ФПД: 5242441523317 [05:05:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050557&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162354&fm=5242441523317&tin=02508201610067®Number=0000000000090858&sum=70000 [05:05:47]OFD Sender: Processing packet 162354 [packets to send 105, broken 104] [05:05:47]ProducePacketName [05:05:47]name=ofd_packets/00162354 [05:05:47]OFD Sender: To server: pG, [05:05:47]CommunicateWithHost lk.salyk.kg:30040 [05:05:47]ConnectInit lk.salyk.kg [05:05:47]written 0, free lines is 4095 [05:05:47]Connected sock=10 [05:05:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C3 BF 08 01 15 A0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 00 00 00 F4 03 04 00 35 0B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7A 02 00 35 04 06 00 04 C4 99 DD 60 75 98 15 33 47 8B 7F 5B A4 [05:05:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 86 70 47 00 DF 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7A 02 00 F4 03 04 00 4B B7 91 66 B6 04 01 00 00 98 29 51 8B 74 65 85 C8 [05:05:47]CommunicateWithHost err = 0 [05:05:47]CheckOFDResponse [05:05:47]1017 (14) - 77093643461234 [05:05:47]1041 (16) - 0000000000874899 [05:05:47]1040 (4) - 162354 [05:05:47]1012 (4) - 12.07.2024 23:07 [05:05:47]1206 (1) - 0 [05:05:47]OFD Sender: Remove packet 162354 [05:05:47]ProducePacketName [05:05:47]name=ofd_packets/00162354 [05:05:47]NVStorageDeleteData [05:05:47]Write to MH i2c: 01 00 00 1A F3 0D [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 07 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: 01 07 00 1A F3 00 00 00 00 00 E6 0C 06 [05:05:47]RasterBufferAndPrint [05:05:47]line [05:05:47]line [05:05:47]line [05:05:47]line [05:05:47]line [05:05:47]written 0, free lines is 3311 [05:05:47]MH_Cut [05:05:47]Write to MH i2c: D1 01 00 21 F3 01 E6 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: D1 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: D1 01 00 [05:05:47]MH_I2C_Read... [05:05:47]Read from MH i2c: D1 01 00 21 F3 00 E5 [05:05:47]Write to MH i2c: 01 00 00 22 F3 15 [05:05:47]Write i2c OK [05:05:47]MH_I2C_Read... [05:05:48]OFD Sender: No OFD packet to send [05:05:48]*** Cut start [05:05:48]*** Purtial cut [05:05:48]*** CUTSNS_PIN = 0 [05:05:48]*** Stage 1: CUTSNS_PIN = 1 [05:05:50]Read from MH i2c: 01 [05:05:50]MH_I2C_Read... [05:05:50]*** Stop cut motor [05:05:50]*** Cut end [05:05:50]Read from MH i2c: 01 07 00 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: 01 07 00 22 F3 00 00 00 00 00 FF 0F 2A [05:05:50]process_action close_receipt done [05:05:50]requested_data is exist [05:05:50]produce_requested_data [05:05:50]requested_item fm.sn is exist - process it [05:05:50]wFMCommunicate request_size=4 [05:05:50]MH_SAM_APDU [05:05:50]CAPDU: 80 11 00 00 [05:05:50]Write to MH i2c: E2 08 00 23 F3 80 11 00 00 00 00 00 00 90 [05:05:50]Write i2c OK [05:05:50]MH_I2C_Read... [05:05:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:05:50]Read from MH i2c: E2 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: E2 17 00 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: E2 17 00 23 F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F0 [05:05:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:05:50]wFMCommunicate OK [05:05:50]requested_item fd.num is exist - process it [05:05:50]SAM_PROTO_GetFieldsCounters [05:05:50]wFMCommunicate request_size=4 [05:05:50]MH_SAM_APDU [05:05:50]CAPDU: 80 13 00 00 [05:05:50]Write to MH i2c: E2 08 00 24 F3 80 13 00 00 00 00 00 00 93 [05:05:50]Write i2c OK [05:05:50]MH_I2C_Read... [05:05:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:05:50]Read from MH i2c: E2 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: E2 62 00 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: E2 62 00 24 F3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 32 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [05:05:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 32 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:05:50]wFMCommunicate OK [05:05:50]SAM_PROTO_GetFieldsCounters done [05:05:50]requested_item shift.num is exist - process it [05:05:50]requested_item shift.opened is exist - process it [05:05:50]req_shift_opened [05:05:50]FM_GetShiftState [05:05:50]SAM_PROTO_GetShiftState [05:05:50]wFMCommunicate request_size=4 [05:05:50]MH_SAM_APDU [05:05:50]CAPDU: 80 13 01 00 [05:05:50]Write to MH i2c: E2 08 00 25 F3 80 13 01 00 00 00 00 00 95 [05:05:50]Write i2c OK [05:05:50]MH_I2C_Read... [05:05:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:05:50]Read from MH i2c: E2 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: E2 0E 00 [05:05:50]MH_I2C_Read... [05:05:50]Read from MH i2c: E2 0E 00 25 F3 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8F [05:05:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:05:50]wFMCommunicate OK [05:05:50]SAM_PROTO_GetShiftState done [05:05:50]FM_GetShiftState done [05:05:50]req_shift_opened done [05:05:50]requested_item shift.open_date is exist - process it [05:05:50]req_shift_open_date [05:05:50]req_shift_open_date done [05:05:50]produce_requested_data done [05:05:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162354,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:05:50]process_action_free close_receipt [05:05:50]json_value_free [05:05:50]json_value_free done [05:05:50]process_json_proto returns [05:05:50]Send response to host [05:05:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162354,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:05:50]free response buf [05:05:50]execute_script done [05:05:50]execute_script returns [05:05:50]free content buf [05:05:50]Sock 9.Close socket [05:05:50]Sock 9.Thread stoped [05:05:53]OFD Sender: No OFD packet to send [05:05:58]OFD Sender: No OFD packet to send [05:06:03]OFD Sender: No OFD packet to send [05:06:08]OFD Sender: No OFD packet to send [05:06:13]OFD Sender: No OFD packet to send [05:06:18]OFD Sender: No OFD packet to send [05:06:23]OFD Sender: No OFD packet to send [05:06:28]OFD Sender: No OFD packet to send [05:06:33]OFD Sender: No OFD packet to send [05:06:38]OFD Sender: No OFD packet to send [05:06:43]OFD Sender: No OFD packet to send [05:06:48]OFD Sender: No OFD packet to send [05:06:53]OFD Sender: No OFD packet to send [05:06:58]OFD Sender: No OFD packet to send [05:07:03]OFD Sender: No OFD packet to send [05:07:08]OFD Sender: No OFD packet to send [05:07:13]OFD Sender: No OFD packet to send [05:07:18]OFD Sender: No OFD packet to send [05:07:23]OFD Sender: No OFD packet to send [05:07:28]OFD Sender: No OFD packet to send [05:07:33]OFD Sender: No OFD packet to send [05:07:38]OFD Sender: No OFD packet to send [05:07:43]OFD Sender: No OFD packet to send [05:07:48]OFD Sender: No OFD packet to send [05:07:53]OFD Sender: No OFD packet to send [05:07:58]OFD Sender: No OFD packet to send [05:08:03]OFD Sender: No OFD packet to send [05:08:08]OFD Sender: No OFD packet to send [05:08:13]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:15]accept exits with 8 [05:09:15]New connection [05:09:15]New thread 3067006308 created [05:09:15]Thread 3066862948 joined [05:09:15]Waiting for new connection... [05:09:15] Sock 8.Parse request [05:09:15]Sock 8.Check first char [05:09:15]Sock 8.First char is OK [05:09:15]request: POST /json_proto HTTP/1.0 [05:09:15]Method: POST [05:09:15]URL: /json_proto [05:09:15]Method is POST - this is cgi request [05:09:15]url: /json_proto [05:09:15]query_string will be loaded in cgi processing [05:09:15]execute_cgi json_proto POST (null) [05:09:15]execute_cgi path=json_proto method=POST [05:09:15]POST find Content-Length [05:09:15]Host: 172.17.39.67:8080 [05:09:15]Content-Length: 842 [05:09:15]Content-Type: application/json [05:09:15] [05:09:15]POST finish read [05:09:15]Found Content-Length = 842 [05:09:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:15]execute_script... [05:09:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318876", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:09:15]POST & json_proto [05:09:15]process_json_proto [05:09:15]json parsed OK: [05:09:15]protocol is kg_v1.0 [05:09:15]action value=close_receipt [05:09:15]process_action close_receipt [05:09:15]cmd_close_receipt [05:09:15]MH_GetDate [05:09:15]Write to MH i2c: F0 00 00 26 F3 08 [05:09:15]Write i2c OK [05:09:15]MH_I2C_Read... [05:09:15]Read from MH i2c: F0 [05:09:15]MH_I2C_Read... [05:09:15]Read from MH i2c: F0 09 00 [05:09:15]MH_I2C_Read... [05:09:15]Read from MH i2c: F0 09 00 26 F3 00 07 0C 92 66 FA E9 8E 66 F3 [05:09:15]GetLastDocTimeStamp 1720847157 [05:09:15]current date 1720847367 [05:09:15]FM_GetShiftState [05:09:15]SAM_PROTO_GetShiftState [05:09:15]wFMCommunicate request_size=4 [05:09:15]MH_SAM_APDU [05:09:15]CAPDU: 80 13 01 00 [05:09:15]Write to MH i2c: E2 08 00 27 F3 80 13 01 00 00 00 00 00 97 [05:09:15]Write i2c OK [05:09:15]MH_I2C_Read... [05:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:15]Read from MH i2c: E2 [05:09:15]MH_I2C_Read... [05:09:15]Read from MH i2c: E2 0E 00 [05:09:15]MH_I2C_Read... [05:09:15]Read from MH i2c: E2 0E 00 27 F3 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 91 [05:09:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:09:15]wFMCommunicate OK [05:09:15]SAM_PROTO_GetShiftState done [05:09:15]FM_GetShiftState done [05:09:15]opened in 1720828979 [05:09:15]opened+sec_in_day 1720915379 [05:09:15]quantity*price = 99914 [05:09:15]sum+1 = 99915 [05:09:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.14 НСП 1% : 8.84 НДС 12% : 106.10 Наличными: 0.00 Безнал.: 999.14 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 23 13.07.2024 05:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162355 ФПД: 200402206358793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050927&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162355&fm=200402206358793&tin=02508201610067®Number=0000000000090858&sum=99914 [05:09:16]StoreToDocumentArchive [05:09:16]shift 462 fd 162355 [05:09:16]save to /storage/0462/doc_00162355 [05:09:16]save last doc name /storage/0462/doc_00162355 to /storage/kkm_last_doc_name [05:09:16]save OK [05:09:16]Clear old archive folders... [05:09:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:09:16]tlvbuf is 01950CD0 [05:09:16]SAM_PROTO_ClearQueue [05:09:16]wFMCommunicate request_size=4 [05:09:16]MH_SAM_APDU [05:09:16]CAPDU: 80 09 00 00 [05:09:16]Write to MH i2c: E2 08 00 34 F3 80 09 00 00 00 00 00 00 99 [05:09:16]Write i2c OK [05:09:16]MH_I2C_Read... [05:09:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:09:16]Read from MH i2c: E2 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 03 00 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 03 00 34 F3 00 90 00 9B [05:09:16]RAPDU: 90 00 [05:09:16]wFMCommunicate OK [05:09:16]SAM_PROTO_ClearQueue done [05:09:16]KKMCreateOFDPacket [05:09:16]OFDProtocolAddRootSTLVToBuf [05:09:16]FM_MakeSignedData [05:09:16]FM_MakeSignedData [05:09:16]SAM_PROTO_SignData [05:09:16]wFMCommunicate request_size=4 [05:09:16]MH_SAM_APDU [05:09:16]CAPDU: 80 0D 01 02 [05:09:16]Write to MH i2c: E2 08 00 35 F3 80 0D 01 02 00 00 00 00 A1 [05:09:16]Write i2c OK [05:09:16]MH_I2C_Read... [05:09:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:09:16]Read from MH i2c: E2 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 03 00 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 03 00 35 F3 00 90 00 9C [05:09:16]RAPDU: 90 00 [05:09:16]wFMCommunicate OK [05:09:16]wFMCommunicate request_size=255 [05:09:16]MH_SAM_APDU [05:09:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 07 0C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7A 02 00 35 04 06 00 B6 [05:09:16]Write to MH i2c: E2 02 01 36 F3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 07 0C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7A 02 00 35 04 06 00 B6 00 00 AF [05:09:16]Write i2c OK [05:09:16]MH_I2C_Read... [05:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:16]Read from MH i2c: E2 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 03 00 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 03 00 36 F3 00 90 00 9D [05:09:16]RAPDU: 90 00 [05:09:16]wFMCommunicate OK [05:09:16]wFMCommunicate request_size=10 [05:09:16]MH_SAM_APDU [05:09:16]CAPDU: 80 0D 02 02 05 43 C6 52 7D 09 [05:09:16]Write to MH i2c: E2 0D 00 37 F3 80 0D 02 02 05 00 43 C6 52 7D 09 00 00 8F [05:09:16]Write i2c OK [05:09:16]MH_I2C_Read... [05:09:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:16]Read from MH i2c: E2 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 03 00 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 03 00 37 F3 00 90 00 9E [05:09:16]RAPDU: 90 00 [05:09:16]wFMCommunicate OK [05:09:16]wFMCommunicate request_size=4 [05:09:16]MH_SAM_APDU [05:09:16]CAPDU: 80 0D 03 02 [05:09:16]Write to MH i2c: E2 08 00 38 F3 80 0D 03 02 00 00 00 00 A6 [05:09:16]Write i2c OK [05:09:16]MH_I2C_Read... [05:09:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:09:16]Read from MH i2c: E2 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 0B 00 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 0B 00 38 F3 00 73 8E 72 B1 6F 34 EE E4 90 00 40 [05:09:16]RAPDU: 73 8E 72 B1 6F 34 EE E4 90 00 [05:09:16]wFMCommunicate OK [05:09:16]SAM_PROTO_SignData done [05:09:16]FM_MakeSignedData done [05:09:16]CreateOFDProtocolMessage [05:09:16]wFMCommunicate request_size=4 [05:09:16]MH_SAM_APDU [05:09:16]CAPDU: 80 11 00 00 [05:09:16]Write to MH i2c: E2 08 00 39 F3 80 11 00 00 00 00 00 00 A6 [05:09:16]Write i2c OK [05:09:16]MH_I2C_Read... [05:09:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:16]Read from MH i2c: E2 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 17 00 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: E2 17 00 39 F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 06 [05:09:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:09:16]wFMCommunicate OK [05:09:16]CreateOFDProtocolMessage done [05:09:16]OFDSenderStorePacket 162355 [05:09:16]StoreOFDPacket docnum=162355 [05:09:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 90 D7 07 01 CE 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 07 0C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7A 02 00 35 04 06 00 B6 43 C6 52 7D 09 73 8E 72 B1 6F 34 EE E4 [05:09:16]CheckFolder [05:09:16]dirname=/storage/ofd_packets [05:09:16]CheckFolder done [05:09:16]ProducePacketName [05:09:16]name=ofd_packets/00162355 [05:09:16]NVStorageSaveData ofd_packets/00162355 [05:09:16]File name is /storage/ofd_packets/00162355 [05:09:16]Write 301 bytes [05:09:16]NVStorageSaveData done [05:09:16]OFDSenderStorePacket done [05:09:16]KKMCreateOFDPacket done [05:09:16]NVStorageSaveData kkm_last_timestamp [05:09:16]File name is /storage/kkm_last_timestamp [05:09:16]Write 4 bytes [05:09:16]NVStorageSaveData done [05:09:16]ExternCall_PrintAddStr [05:09:16]wPrintStart [05:09:16]Write to MH i2c: 01 00 00 3A F3 2D [05:09:16]Write i2c OK [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: 01 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: 01 07 00 [05:09:16]MH_I2C_Read... [05:09:16]Read from MH i2c: 01 07 00 3A F3 00 00 00 00 00 FF 0F 42 [05:09:16]RasterBufferAndPrint [05:09:16]line Счет N : (1)1318876 [05:09:16]line ИНН: 02508201610067 [05:09:16]line Контрольно-Кассовый Чек [05:09:16]line ПРОДАЖА [05:09:16]line ТРК (МРК, ГНК) : 43 [05:09:16]line Товар: 2710124130 [05:09:16]line Аи-92-К-5 [05:09:16]line 15.070 * 66.30 [05:09:16]line = 999.14 [05:09:16]line НДС 12% НСП 1% [05:09:16]line > о реализуемом товаре [05:09:16]line ИТОГО: 999.14 [05:09:16]line НСП 1% : 8.84 [05:09:16]line НДС 12% : 106.10 [05:09:16]line Наличными: 0.00 [05:09:16]line Безнал.: 999.14 [05:09:16]line Место: АЗС № 140 "Партнер Нефть" [05:09:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:09:16]line СНО: Общий режим [05:09:16]line Чек 23 13.07.2024 05:09 [05:09:16]line Смена: 462 ФФД: 1.0 [05:09:16]line ЗНМ: 0300000129 [05:09:16]line РНМ: 0000000000090858 [05:09:16]line Версия ККМ: 001 [05:09:16]line Платежная система: АКБ Кыргызстан [05:09:16]line ФМ: 0000000000874899 [05:09:16]line ФД: 162355 [05:09:16]line ФПД: 200402206358793 [05:09:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050927&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162355&fm=200402206358793&tin=02508201610067®Number=0000000000090858&sum=99914 [05:09:17]written 0, free lines is 4095 [05:09:17]OFD Sender: Processing packet 162355 [packets to send 105, broken 104] [05:09:17]ProducePacketName [05:09:17]name=ofd_packets/00162355 [05:09:17]OFD Sender: To server: pG, [05:09:17]CommunicateWithHost lk.salyk.kg:30040 [05:09:17]ConnectInit lk.salyk.kg [05:09:17]Connected sock=10 [05:09:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 90 D7 07 01 CE 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 07 0C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7A 02 00 35 04 06 00 B6 43 C6 52 7D 09 73 8E 72 B1 6F 34 EE E4 [05:09:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1B 78 47 00 84 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7A 02 00 F4 03 04 00 1D B8 91 66 B6 04 01 00 00 8A C8 DF E6 6B 48 31 1B [05:09:17]CommunicateWithHost err = 0 [05:09:17]CheckOFDResponse [05:09:17]1017 (14) - 77093643461234 [05:09:17]1041 (16) - 0000000000874899 [05:09:17]1040 (4) - 162355 [05:09:17]1012 (4) - 12.07.2024 23:11 [05:09:17]1206 (1) - 0 [05:09:17]OFD Sender: Remove packet 162355 [05:09:17]ProducePacketName [05:09:17]name=ofd_packets/00162355 [05:09:17]NVStorageDeleteData [05:09:17]Write to MH i2c: 01 00 00 64 F3 57 [05:09:17]Write i2c OK [05:09:17]MH_I2C_Read... [05:09:17]Read from MH i2c: 01 [05:09:17]MH_I2C_Read... [05:09:17]Read from MH i2c: 01 07 00 [05:09:17]MH_I2C_Read... [05:09:17]Read from MH i2c: 01 07 00 64 F3 00 00 00 00 00 F3 0C 5D [05:09:17]RasterBufferAndPrint [05:09:17]line [05:09:17]line [05:09:17]line [05:09:17]line [05:09:17]line [05:09:17]written 0, free lines is 3324 [05:09:17]MH_Cut [05:09:17]Write to MH i2c: D1 01 00 6B F3 01 30 [05:09:17]Write i2c OK [05:09:17]MH_I2C_Read... [05:09:17]Read from MH i2c: D1 [05:09:17]MH_I2C_Read... [05:09:17]Read from MH i2c: D1 01 00 [05:09:17]MH_I2C_Read... [05:09:17]Read from MH i2c: D1 01 00 6B F3 00 2F [05:09:17]Write to MH i2c: 01 00 00 6C F3 5F [05:09:17]Write i2c OK [05:09:17]MH_I2C_Read... [05:09:17]OFD Sender: No OFD packet to send [05:09:18]*** Cut start [05:09:18]*** Purtial cut [05:09:18]*** Stage 1: CUTSNS_PIN = 1 [05:09:18]Read from MH i2c: 01 [05:09:18]MH_I2C_Read... [05:09:18]*** Stop cut motor [05:09:18]*** Cut end [05:09:18]Read from MH i2c: 01 07 00 [05:09:18]MH_I2C_Read... [05:09:18]Read from MH i2c: 01 07 00 6C F3 00 00 00 00 00 FF 0F 74 [05:09:18]process_action close_receipt done [05:09:18]requested_data is exist [05:09:18]produce_requested_data [05:09:18]requested_item fm.sn is exist - process it [05:09:18]wFMCommunicate request_size=4 [05:09:18]MH_SAM_APDU [05:09:18]CAPDU: 80 11 00 00 [05:09:18]Write to MH i2c: E2 08 00 6D F3 80 11 00 00 00 00 00 00 DA [05:09:18]Write i2c OK [05:09:18]MH_I2C_Read... [05:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:18]Read from MH i2c: E2 [05:09:18]MH_I2C_Read... [05:09:18]Read from MH i2c: E2 17 00 [05:09:18]MH_I2C_Read... [05:09:18]Read from MH i2c: E2 17 00 6D F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3A [05:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:09:18]wFMCommunicate OK [05:09:18]requested_item fd.num is exist - process it [05:09:18]SAM_PROTO_GetFieldsCounters [05:09:18]wFMCommunicate request_size=4 [05:09:18]MH_SAM_APDU [05:09:18]CAPDU: 80 13 00 00 [05:09:18]Write to MH i2c: E2 08 00 6E F3 80 13 00 00 00 00 00 00 DD [05:09:18]Write i2c OK [05:09:18]MH_I2C_Read... [05:09:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:09:18]Read from MH i2c: E2 [05:09:18]MH_I2C_Read... [05:09:18]Read from MH i2c: E2 62 00 [05:09:18]MH_I2C_Read... [05:09:18]Read from MH i2c: E2 62 00 6E F3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 33 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [05:09:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 33 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:09:18]wFMCommunicate OK [05:09:18]SAM_PROTO_GetFieldsCounters done [05:09:18]requested_item shift.num is exist - process it [05:09:18]requested_item shift.opened is exist - process it [05:09:18]req_shift_opened [05:09:18]FM_GetShiftState [05:09:18]SAM_PROTO_GetShiftState [05:09:18]wFMCommunicate request_size=4 [05:09:18]MH_SAM_APDU [05:09:18]CAPDU: 80 13 01 00 [05:09:18]Write to MH i2c: E2 08 00 6F F3 80 13 01 00 00 00 00 00 DF [05:09:18]Write i2c OK [05:09:18]MH_I2C_Read... [05:09:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:18]Read from MH i2c: E2 [05:09:18]MH_I2C_Read... [05:09:18]Read from MH i2c: E2 0E 00 [05:09:18]MH_I2C_Read... [05:09:18]Read from MH i2c: E2 0E 00 6F F3 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D9 [05:09:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:09:18]wFMCommunicate OK [05:09:18]SAM_PROTO_GetShiftState done [05:09:18]FM_GetShiftState done [05:09:18]req_shift_opened done [05:09:18]requested_item shift.open_date is exist - process it [05:09:18]req_shift_open_date [05:09:18]req_shift_open_date done [05:09:18]produce_requested_data done [05:09:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162355,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:09:18]process_action_free close_receipt [05:09:18]json_value_free [05:09:18]json_value_free done [05:09:18]process_json_proto returns [05:09:18]Send response to host [05:09:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162355,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:09:18]free response buf [05:09:18]execute_script done [05:09:18]execute_script returns [05:09:18]free content buf [05:09:18]Sock 8.Close socket [05:09:18]Sock 8.Thread stoped [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:34]accept exits with 9 [05:09:34]New connection [05:09:34]New thread 3066862948 created [05:09:34]Thread 3067006308 joined [05:09:34]Waiting for new connection... [05:09:34] Sock 9.Parse request [05:09:34]Sock 9.Check first char [05:09:34]Sock 9.First char is OK [05:09:34]request: POST /json_proto HTTP/1.0 [05:09:34]Method: POST [05:09:34]URL: /json_proto [05:09:34]Method is POST - this is cgi request [05:09:34]url: /json_proto [05:09:34]query_string will be loaded in cgi processing [05:09:34]execute_cgi json_proto POST (null) [05:09:34]execute_cgi path=json_proto method=POST [05:09:34]POST find Content-Length [05:09:34]Host: 172.17.39.67:8080 [05:09:34]Content-Length: 688 [05:09:34]Content-Type: application/json [05:09:34] [05:09:34]POST finish read [05:09:34]Found Content-Length = 688 [05:09:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:09:34]execute_script... [05:09: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)1318877", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:09:34]POST & json_proto [05:09:34]process_json_proto [05:09:34]json parsed OK: [05:09:34]protocol is kg_v1.0 [05:09:34]action value=close_receipt [05:09:34]process_action close_receipt [05:09:34]cmd_close_receipt [05:09:34]MH_GetDate [05:09:34]Write to MH i2c: F0 00 00 70 F3 52 [05:09:34]Write i2c OK [05:09:34]MH_I2C_Read... [05:09:34]Read from MH i2c: F0 [05:09:34]MH_I2C_Read... [05:09:34]Read from MH i2c: F0 09 00 [05:09:34]MH_I2C_Read... [05:09:34]Read from MH i2c: F0 09 00 70 F3 00 1B 0C 92 66 FA E9 8E 66 51 [05:09:34]GetLastDocTimeStamp 1720847367 [05:09:34]current date 1720847387 [05:09:34]FM_GetShiftState [05:09:34]SAM_PROTO_GetShiftState [05:09:34]wFMCommunicate request_size=4 [05:09:34]MH_SAM_APDU [05:09:34]CAPDU: 80 13 01 00 [05:09:34]Write to MH i2c: E2 08 00 71 F3 80 13 01 00 00 00 00 00 E1 [05:09:34]Write i2c OK [05:09:34]MH_I2C_Read... [05:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:34]Read from MH i2c: E2 [05:09:34]MH_I2C_Read... [05:09:34]Read from MH i2c: E2 0E 00 [05:09:34]MH_I2C_Read... [05:09:34]Read from MH i2c: E2 0E 00 71 F3 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DB [05:09:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:09:34]wFMCommunicate OK [05:09:34]SAM_PROTO_GetShiftState done [05:09:34]FM_GetShiftState done [05:09:34]opened in 1720828979 [05:09:34]opened+sec_in_day 1720915379 [05:09:34]quantity*price = 150064 [05:09:34]sum+1 = 150065 [05:09:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 24 13.07.2024 05:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162356 ФПД: 83654536087037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050947&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162356&fm=83654536087037&tin=02508201610067®Number=0000000000090858&sum=150000 [05:09:36]StoreToDocumentArchive [05:09:36]shift 462 fd 162356 [05:09:36]save to /storage/0462/doc_00162356 [05:09:36]save last doc name /storage/0462/doc_00162356 to /storage/kkm_last_doc_name [05:09:36]save OK [05:09:36]Clear old archive folders... [05:09:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:09:36]tlvbuf is 0179A220 [05:09:36]SAM_PROTO_ClearQueue [05:09:36]wFMCommunicate request_size=4 [05:09:36]MH_SAM_APDU [05:09:36]CAPDU: 80 09 00 00 [05:09:36]Write to MH i2c: E2 08 00 7E F3 80 09 00 00 00 00 00 00 E3 [05:09:36]Write i2c OK [05:09:36]MH_I2C_Read... [05:09:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:09:36]Read from MH i2c: E2 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 03 00 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 03 00 7E F3 00 90 00 E5 [05:09:36]RAPDU: 90 00 [05:09:36]wFMCommunicate OK [05:09:36]SAM_PROTO_ClearQueue done [05:09:36]KKMCreateOFDPacket [05:09:36]OFDProtocolAddRootSTLVToBuf [05:09:36]FM_MakeSignedData [05:09:36]FM_MakeSignedData [05:09:36]SAM_PROTO_SignData [05:09:36]wFMCommunicate request_size=4 [05:09:36]MH_SAM_APDU [05:09:36]CAPDU: 80 0D 01 02 [05:09:36]Write to MH i2c: E2 08 00 7F F3 80 0D 01 02 00 00 00 00 EB [05:09:36]Write i2c OK [05:09:36]MH_I2C_Read... [05:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:09:36]Read from MH i2c: E2 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 03 00 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 03 00 7F F3 00 90 00 E6 [05:09:36]RAPDU: 90 00 [05:09:36]wFMCommunicate OK [05:09:36]wFMCommunicate request_size=255 [05:09:36]MH_SAM_APDU [05:09:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 18 00 00 00 F4 03 04 00 1B 0C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7A 02 00 35 04 06 00 [05:09:36]Write to MH i2c: E2 02 01 80 F3 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 18 00 00 00 F4 03 04 00 1B 0C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7A 02 00 35 04 06 00 00 00 23 [05:09:36]Write i2c OK [05:09:36]MH_I2C_Read... [05:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:36]Read from MH i2c: E2 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 03 00 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 03 00 80 F3 00 90 00 E7 [05:09:36]RAPDU: 90 00 [05:09:36]wFMCommunicate OK [05:09:36]wFMCommunicate request_size=11 [05:09:36]MH_SAM_APDU [05:09:36]CAPDU: 80 0D 02 02 06 4C 15 56 E8 45 FD [05:09:36]Write to MH i2c: E2 0E 00 81 F3 80 0D 02 02 06 00 4C 15 56 E8 45 FD 00 00 DB [05:09:36]Write i2c OK [05:09:36]MH_I2C_Read... [05:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:09:36]Read from MH i2c: E2 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 03 00 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 03 00 81 F3 00 90 00 E8 [05:09:36]RAPDU: 90 00 [05:09:36]wFMCommunicate OK [05:09:36]wFMCommunicate request_size=4 [05:09:36]MH_SAM_APDU [05:09:36]CAPDU: 80 0D 03 02 [05:09:36]Write to MH i2c: E2 08 00 82 F3 80 0D 03 02 00 00 00 00 F0 [05:09:36]Write i2c OK [05:09:36]MH_I2C_Read... [05:09:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:09:36]Read from MH i2c: E2 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 0B 00 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 0B 00 82 F3 00 5A DC D4 29 EE 47 34 81 90 00 0E [05:09:36]RAPDU: 5A DC D4 29 EE 47 34 81 90 00 [05:09:36]wFMCommunicate OK [05:09:36]SAM_PROTO_SignData done [05:09:36]FM_MakeSignedData done [05:09:36]CreateOFDProtocolMessage [05:09:36]wFMCommunicate request_size=4 [05:09:36]MH_SAM_APDU [05:09:36]CAPDU: 80 11 00 00 [05:09:36]Write to MH i2c: E2 08 00 83 F3 80 11 00 00 00 00 00 00 F0 [05:09:36]Write i2c OK [05:09:36]MH_I2C_Read... [05:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:36]Read from MH i2c: E2 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 17 00 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: E2 17 00 83 F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 50 [05:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:09:36]wFMCommunicate OK [05:09:36]CreateOFDProtocolMessage done [05:09:36]OFDSenderStorePacket 162356 [05:09:36]StoreOFDPacket docnum=162356 [05:09:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F3 A1 08 01 ED CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 18 00 00 00 F4 03 04 00 1B 0C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7A 02 00 35 04 06 00 4C 15 56 E8 45 FD 5A DC D4 29 EE 47 34 81 [05:09:36]CheckFolder [05:09:36]dirname=/storage/ofd_packets [05:09:36]CheckFolder done [05:09:36]ProducePacketName [05:09:36]name=ofd_packets/00162356 [05:09:36]NVStorageSaveData ofd_packets/00162356 [05:09:36]File name is /storage/ofd_packets/00162356 [05:09:36]Write 302 bytes [05:09:36]NVStorageSaveData done [05:09:36]OFDSenderStorePacket done [05:09:36]KKMCreateOFDPacket done [05:09:36]NVStorageSaveData kkm_last_timestamp [05:09:36]File name is /storage/kkm_last_timestamp [05:09:36]Write 4 bytes [05:09:36]NVStorageSaveData done [05:09:36]ExternCall_PrintAddStr [05:09:36]wPrintStart [05:09:36]Write to MH i2c: 01 00 00 84 F3 77 [05:09:36]Write i2c OK [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: 01 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: 01 07 00 [05:09:36]MH_I2C_Read... [05:09:36]Read from MH i2c: 01 07 00 84 F3 00 00 00 00 00 FF 0F 8C [05:09:36]RasterBufferAndPrint [05:09:36]line Счет N : (1)1318877 [05:09:36]line ИНН: 02508201610067 [05:09:36]line Контрольно-Кассовый Чек [05:09:36]line ПРОДАЖА [05:09:36]line ТРК (МРК, ГНК) : 21 [05:09:36]line Товар: 2710194210 [05:09:36]line ДТ(л)-К-5 [05:09:36]line 20.670 * 72.60 [05:09:36]line = 1500.64 [05:09:36]line НДС 12% НСП 1% [05:09:36]line > о реализуемом товаре [05:09:36]line ОКРУГЛЕНИЕ: -0.64 [05:09:36]line ИТОГО: 1500.00 [05:09:36]line Внесено: 1500.00 [05:09:36]line СДАЧА: 0.00 [05:09:36]line НСП 1% : 13.28 [05:09:36]line НДС 12% : 159.36 [05:09:36]line Наличными: 1500.00 [05:09:36]line Безнал.: 0.00 [05:09:36]line Место: АЗС № 140 "Партнер Нефть" [05:09:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:09:36]line СНО: Общий режим [05:09:36]line Чек 24 13.07.2024 05:09 [05:09:36]line Смена: 462 ФФД: 1.0 [05:09:36]line ЗНМ: 0300000129 [05:09:36]line РНМ: 0000000000090858 [05:09:36]line Версия ККМ: 001 [05:09:36]line ФМ: 0000000000874899 [05:09:36]line ФД: 162356 [05:09:36]line ФПД: 83654536087037 [05:09:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T050947&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162356&fm=83654536087037&tin=02508201610067®Number=0000000000090858&sum=150000 [05:09:36]OFD Sender: Processing packet 162356 [packets to send 105, broken 104] [05:09:36]ProducePacketName [05:09:36]name=ofd_packets/00162356 [05:09:36]OFD Sender: To server: pG, [05:09:36]CommunicateWithHost lk.salyk.kg:30040 [05:09:36]ConnectInit lk.salyk.kg [05:09:36]written 0, free lines is 4095 [05:09:37]Connected sock=10 [05:09:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F3 A1 08 01 ED CD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 18 00 00 00 F4 03 04 00 1B 0C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7A 02 00 35 04 06 00 4C 15 56 E8 45 FD 5A DC D4 29 EE 47 34 81 [05:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 17 A0 47 00 F6 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7A 02 00 F4 03 04 00 30 B8 91 66 B6 04 01 00 00 A4 60 3B 3F 8C EC 5B B0 [05:09:37]CommunicateWithHost err = 0 [05:09:37]CheckOFDResponse [05:09:37]1017 (14) - 77093643461234 [05:09:37]1041 (16) - 0000000000874899 [05:09:37]1040 (4) - 162356 [05:09:37]1012 (4) - 12.07.2024 23:11 [05:09:37]1206 (1) - 0 [05:09:37]OFD Sender: Remove packet 162356 [05:09:37]ProducePacketName [05:09:37]name=ofd_packets/00162356 [05:09:37]NVStorageDeleteData [05:09:37]Write to MH i2c: 01 00 00 AF F3 A2 [05:09:37]Write i2c OK [05:09:37]MH_I2C_Read... [05:09:37]Read from MH i2c: 01 [05:09:37]MH_I2C_Read... [05:09:37]Read from MH i2c: 01 07 00 [05:09:37]MH_I2C_Read... [05:09:37]Read from MH i2c: 01 07 00 AF F3 00 00 00 00 00 DF 0C 94 [05:09:37]RasterBufferAndPrint [05:09:37]line [05:09:37]line [05:09:37]line [05:09:37]line [05:09:37]line [05:09:37]written 0, free lines is 3301 [05:09:37]MH_Cut [05:09:37]Write to MH i2c: D1 01 00 B6 F3 01 7B [05:09:37]Write i2c OK [05:09:37]MH_I2C_Read... [05:09:37]Read from MH i2c: D1 [05:09:37]MH_I2C_Read... [05:09:37]Read from MH i2c: D1 01 00 [05:09:37]MH_I2C_Read... [05:09:37]Read from MH i2c: D1 01 00 B6 F3 00 7A [05:09:37]Write to MH i2c: 01 00 00 B7 F3 AA [05:09:37]Write i2c OK [05:09:37]MH_I2C_Read... [05:09:37]OFD Sender: No OFD packet to send [05:09:38]*** Cut start [05:09:38]*** Purtial cut [05:09:38]*** CUTSNS_PIN = 0 [05:09:38]*** Stage 1: CUTSNS_PIN = 1 [05:09:40]Read from MH i2c: 01 [05:09:40]MH_I2C_Read... [05:09:40]*** Stop cut motor [05:09:40]*** Cut end [05:09:40]Read from MH i2c: 01 07 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: 01 07 00 B7 F3 00 00 00 00 00 FF 0F BF [05:09:40]process_action close_receipt done [05:09:40]requested_data is exist [05:09:40]produce_requested_data [05:09:40]requested_item fm.sn is exist - process it [05:09:40]wFMCommunicate request_size=4 [05:09:40]MH_SAM_APDU [05:09:40]CAPDU: 80 11 00 00 [05:09:40]Write to MH i2c: E2 08 00 B8 F3 80 11 00 00 00 00 00 00 25 [05:09:40]Write i2c OK [05:09:40]MH_I2C_Read... [05:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:09:40]Read from MH i2c: E2 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 17 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 17 00 B8 F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 85 [05:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:09:40]wFMCommunicate OK [05:09:40]requested_item fd.num is exist - process it [05:09:40]SAM_PROTO_GetFieldsCounters [05:09:40]wFMCommunicate request_size=4 [05:09:40]MH_SAM_APDU [05:09:40]CAPDU: 80 13 00 00 [05:09:40]Write to MH i2c: E2 08 00 B9 F3 80 13 00 00 00 00 00 00 28 [05:09:40]Write i2c OK [05:09:40]MH_I2C_Read... [05:09:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:09:40]Read from MH i2c: E2 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 62 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 62 00 B9 F3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 34 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [05:09:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 34 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:09:40]wFMCommunicate OK [05:09:40]SAM_PROTO_GetFieldsCounters done [05:09:40]requested_item shift.num is exist - process it [05:09:40]requested_item shift.opened is exist - process it [05:09:40]req_shift_opened [05:09:40]FM_GetShiftState [05:09:40]SAM_PROTO_GetShiftState [05:09:40]wFMCommunicate request_size=4 [05:09:40]MH_SAM_APDU [05:09:40]CAPDU: 80 13 01 00 [05:09:40]Write to MH i2c: E2 08 00 BA F3 80 13 01 00 00 00 00 00 2A [05:09:40]Write i2c OK [05:09:40]MH_I2C_Read... [05:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:09:40]Read from MH i2c: E2 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 0E 00 [05:09:40]MH_I2C_Read... [05:09:40]Read from MH i2c: E2 0E 00 BA F3 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 24 [05:09:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:09:40]wFMCommunicate OK [05:09:40]SAM_PROTO_GetShiftState done [05:09:40]FM_GetShiftState done [05:09:40]req_shift_opened done [05:09:40]requested_item shift.open_date is exist - process it [05:09:40]req_shift_open_date [05:09:40]req_shift_open_date done [05:09:40]produce_requested_data done [05:09:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162356,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:09:40]process_action_free close_receipt [05:09:40]json_value_free [05:09:40]json_value_free done [05:09:40]process_json_proto returns [05:09:40]Send response to host [05:09:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162356,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:09:40]free response buf [05:09:40]execute_script done [05:09:40]execute_script returns [05:09:40]free content buf [05:09:40]Sock 9.Close socket [05:09:40]Sock 9.Thread stoped [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15: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:26]accept exits with 8 [05:18:26]New connection [05:18:26]New thread 3067006308 created [05:18:26]Thread 3066862948 joined [05:18:26]Waiting for new connection... [05:18:26] Sock 8.Parse request [05:18:26]Sock 8.Check first char [05:18:26]Sock 8.First char is OK [05:18:26]request: POST /json_proto HTTP/1.0 [05:18:26]Method: POST [05:18:26]URL: /json_proto [05:18:26]Method is POST - this is cgi request [05:18:26]url: /json_proto [05:18:26]query_string will be loaded in cgi processing [05:18:26]execute_cgi json_proto POST (null) [05:18:26]execute_cgi path=json_proto method=POST [05:18:26]POST find Content-Length [05:18:26]Host: 172.17.39.67:8080 [05:18:26]Content-Length: 678 [05:18:26]Content-Type: application/json [05:18:26] [05:18:26]POST finish read [05:18:26]Found Content-Length = 678 [05:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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:18:26]execute_script... [05:18: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)1318878", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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:18:26]POST & json_proto [05:18:26]process_json_proto [05:18:26]json parsed OK: [05:18:26]protocol is kg_v1.0 [05:18:26]action value=close_receipt [05:18:26]process_action close_receipt [05:18:26]cmd_close_receipt [05:18:26]MH_GetDate [05:18:26]Write to MH i2c: F0 00 00 BB F3 9D [05:18:26]Write i2c OK [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: F0 [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: F0 09 00 [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: F0 09 00 BB F3 00 2F 0E 92 66 FA E9 8E 66 B2 [05:18:26]GetLastDocTimeStamp 1720847387 [05:18:26]current date 1720847919 [05:18:26]FM_GetShiftState [05:18:26]SAM_PROTO_GetShiftState [05:18:26]wFMCommunicate request_size=4 [05:18:26]MH_SAM_APDU [05:18:26]CAPDU: 80 13 01 00 [05:18:26]Write to MH i2c: E2 08 00 BC F3 80 13 01 00 00 00 00 00 2C [05:18:26]Write i2c OK [05:18:26]MH_I2C_Read... [05:18:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:26]Read from MH i2c: E2 [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: E2 0E 00 [05:18:26]MH_I2C_Read... [05:18:26]Read from MH i2c: E2 0E 00 BC F3 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 26 [05:18:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:18:26]wFMCommunicate OK [05:18:26]SAM_PROTO_GetShiftState done [05:18:26]FM_GetShiftState done [05:18:26]opened in 1720828979 [05:18:26]opened+sec_in_day 1720915379 [05:18:26]quantity*price = 30033 [05:18:26]sum+1 = 30035 [05:18:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 25 13.07.2024 05:18 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162357 ФПД: 167144887956441 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T051839&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162357&fm=167144887956441&tin=02508201610067®Number=0000000000090858&sum=30000 [05:18:27]StoreToDocumentArchive [05:18:27]shift 462 fd 162357 [05:18:27]save to /storage/0462/doc_00162357 [05:18:27]save last doc name /storage/0462/doc_00162357 to /storage/kkm_last_doc_name [05:18:27]save OK [05:18:27]Clear old archive folders... [05:18:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:18:27]tlvbuf is 019BFDE0 [05:18:27]SAM_PROTO_ClearQueue [05:18:27]wFMCommunicate request_size=4 [05:18:27]MH_SAM_APDU [05:18:27]CAPDU: 80 09 00 00 [05:18:27]Write to MH i2c: E2 08 00 C9 F3 80 09 00 00 00 00 00 00 2E [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:18:27]Read from MH i2c: E2 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 03 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 03 00 C9 F3 00 90 00 30 [05:18:27]RAPDU: 90 00 [05:18:27]wFMCommunicate OK [05:18:27]SAM_PROTO_ClearQueue done [05:18:27]KKMCreateOFDPacket [05:18:27]OFDProtocolAddRootSTLVToBuf [05:18:27]FM_MakeSignedData [05:18:27]FM_MakeSignedData [05:18:27]SAM_PROTO_SignData [05:18:27]wFMCommunicate request_size=4 [05:18:27]MH_SAM_APDU [05:18:27]CAPDU: 80 0D 01 02 [05:18:27]Write to MH i2c: E2 08 00 CA F3 80 0D 01 02 00 00 00 00 36 [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:18:27]Read from MH i2c: E2 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 03 00 [05:18:27]MH_I2C_Read... [05:18:27]Read from MH i2c: E2 03 00 CA F3 00 90 00 31 [05:18:27]RAPDU: 90 00 [05:18:27]wFMCommunicate OK [05:18:27]wFMCommunicate request_size=255 [05:18:27]MH_SAM_APDU [05:18:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 19 00 00 00 F4 03 04 00 2F 0E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7A 02 00 35 04 06 00 98 [05:18:27]Write to MH i2c: E2 02 01 CB F3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 19 00 00 00 F4 03 04 00 2F 0E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7A 02 00 35 04 06 00 98 00 00 17 [05:18:27]Write i2c OK [05:18:27]MH_I2C_Read... [05:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:28]Read from MH i2c: E2 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 03 00 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 03 00 CB F3 00 90 00 32 [05:18:28]RAPDU: 90 00 [05:18:28]wFMCommunicate OK [05:18:28]wFMCommunicate request_size=10 [05:18:28]MH_SAM_APDU [05:18:28]CAPDU: 80 0D 02 02 05 04 73 AC 33 D9 [05:18:28]Write to MH i2c: E2 0D 00 CC F3 80 0D 02 02 05 00 04 73 AC 33 D9 00 00 72 [05:18:28]Write i2c OK [05:18:28]MH_I2C_Read... [05:18:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:18:28]Read from MH i2c: E2 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 03 00 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 03 00 CC F3 00 90 00 33 [05:18:28]RAPDU: 90 00 [05:18:28]wFMCommunicate OK [05:18:28]wFMCommunicate request_size=4 [05:18:28]MH_SAM_APDU [05:18:28]CAPDU: 80 0D 03 02 [05:18:28]Write to MH i2c: E2 08 00 CD F3 80 0D 03 02 00 00 00 00 3B [05:18:28]Write i2c OK [05:18:28]MH_I2C_Read... [05:18:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:18:28]Read from MH i2c: E2 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 0B 00 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 0B 00 CD F3 00 57 77 DA 38 98 3A 88 57 90 00 CD [05:18:28]RAPDU: 57 77 DA 38 98 3A 88 57 90 00 [05:18:28]wFMCommunicate OK [05:18:28]SAM_PROTO_SignData done [05:18:28]FM_MakeSignedData done [05:18:28]CreateOFDProtocolMessage [05:18:28]wFMCommunicate request_size=4 [05:18:28]MH_SAM_APDU [05:18:28]CAPDU: 80 11 00 00 [05:18:28]Write to MH i2c: E2 08 00 CE F3 80 11 00 00 00 00 00 00 3B [05:18:28]Write i2c OK [05:18:28]MH_I2C_Read... [05:18:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:28]Read from MH i2c: E2 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 17 00 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: E2 17 00 CE F3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9B [05:18:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:18:28]wFMCommunicate OK [05:18:28]CreateOFDProtocolMessage done [05:18:28]OFDSenderStorePacket 162357 [05:18:28]StoreOFDPacket docnum=162357 [05:18:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3F EB 07 01 11 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 19 00 00 00 F4 03 04 00 2F 0E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7A 02 00 35 04 06 00 98 04 73 AC 33 D9 57 77 DA 38 98 3A 88 57 [05:18:28]CheckFolder [05:18:28]dirname=/storage/ofd_packets [05:18:28]CheckFolder done [05:18:28]ProducePacketName [05:18:28]name=ofd_packets/00162357 [05:18:28]NVStorageSaveData ofd_packets/00162357 [05:18:28]File name is /storage/ofd_packets/00162357 [05:18:28]Write 301 bytes [05:18:28]NVStorageSaveData done [05:18:28]OFDSenderStorePacket done [05:18:28]KKMCreateOFDPacket done [05:18:28]NVStorageSaveData kkm_last_timestamp [05:18:28]File name is /storage/kkm_last_timestamp [05:18:28]Write 4 bytes [05:18:28]NVStorageSaveData done [05:18:28]ExternCall_PrintAddStr [05:18:28]wPrintStart [05:18:28]Write to MH i2c: 01 00 00 CF F3 C2 [05:18:28]Write i2c OK [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: 01 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: 01 07 00 [05:18:28]MH_I2C_Read... [05:18:28]Read from MH i2c: 01 07 00 CF F3 00 00 00 00 00 FF 0F D7 [05:18:28]RasterBufferAndPrint [05:18:28]line Счет N : (1)1318878 [05:18:28]line ИНН: 02508201610067 [05:18:28]line Контрольно-Кассовый Чек [05:18:28]line ПРОДАЖА [05:18:28]line ТРК (МРК, ГНК) : 33 [05:18:28]line Товар: 2710124130 [05:18:28]line Аи-92-К-5 [05:18:28]line 4.530 * 66.30 [05:18:28]line = 300.34 [05:18:28]line НДС 12% НСП 1% [05:18:28]line > о реализуемом товаре [05:18:28]line ОКРУГЛЕНИЕ: -0.34 [05:18:28]line ИТОГО: 300.00 [05:18:28]line Внесено: 300.00 [05:18:28]line СДАЧА: 0.00 [05:18:28]line НСП 1% : 2.66 [05:18:28]line НДС 12% : 31.89 [05:18:28]line Наличными: 300.00 [05:18:28]line Безнал.: 0.00 [05:18:28]line Место: АЗС № 140 "Партнер Нефть" [05:18:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:18:28]line СНО: Общий режим [05:18:28]line Чек 25 13.07.2024 05:18 [05:18:28]line Смена: 462 ФФД: 1.0 [05:18:28]line ЗНМ: 0300000129 [05:18:28]line РНМ: 0000000000090858 [05:18:28]line Версия ККМ: 001 [05:18:28]line ФМ: 0000000000874899 [05:18:28]line ФД: 162357 [05:18:28]line ФПД: 167144887956441 [05:18:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T051839&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162357&fm=167144887956441&tin=02508201610067®Number=0000000000090858&sum=30000 [05:18:28]OFD Sender: Processing packet 162357 [packets to send 105, broken 104] [05:18:28]ProducePacketName [05:18:28]name=ofd_packets/00162357 [05:18:28]OFD Sender: To server: pG, [05:18:28]CommunicateWithHost lk.salyk.kg:30040 [05:18:28]ConnectInit lk.salyk.kg [05:18:28]written 0, free lines is 4095 [05:18:28]Connected sock=11 [05:18:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3F EB 07 01 11 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 19 00 00 00 F4 03 04 00 2F 0E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7A 02 00 35 04 06 00 98 04 73 AC 33 D9 57 77 DA 38 98 3A 88 57 [05:18:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9C DB 47 00 1A 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7A 02 00 F4 03 04 00 44 BA 91 66 B6 04 01 00 00 74 6E 83 5E B9 94 E4 F2 [05:18:28]CommunicateWithHost err = 0 [05:18:28]CheckOFDResponse [05:18:28]1017 (14) - 77093643461234 [05:18:28]1041 (16) - 0000000000874899 [05:18:28]1040 (4) - 162357 [05:18:28]1012 (4) - 12.07.2024 23:20 [05:18:28]1206 (1) - 0 [05:18:28]OFD Sender: Remove packet 162357 [05:18:28]ProducePacketName [05:18:28]name=ofd_packets/00162357 [05:18:28]NVStorageDeleteData [05:18:29]Write to MH i2c: 01 00 00 FA F3 ED [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: 01 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: 01 07 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: 01 07 00 FA F3 00 00 00 00 00 F3 0C F3 [05:18:29]RasterBufferAndPrint [05:18:29]line [05:18:29]line [05:18:29]line [05:18:29]line [05:18:29]line [05:18:29]written 0, free lines is 3321 [05:18:29]MH_Cut [05:18:29]Write to MH i2c: D1 01 00 01 F4 01 C7 [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: D1 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: D1 01 00 [05:18:29]MH_I2C_Read... [05:18:29]Read from MH i2c: D1 01 00 01 F4 00 C6 [05:18:29]Write to MH i2c: 01 00 00 02 F4 F6 [05:18:29]Write i2c OK [05:18:29]MH_I2C_Read... [05:18:29]OFD Sender: No OFD packet to send [05:18:29]*** Cut start [05:18:29]*** Purtial cut [05:18:29]*** Stage 1: CUTSNS_PIN = 1 [05:18:30]Read from MH i2c: 01 [05:18:30]MH_I2C_Read... [05:18:30]*** Stop cut motor [05:18:30]*** Cut end [05:18:30]Read from MH i2c: 01 07 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: 01 07 00 02 F4 00 00 00 00 00 FF 0F 0B [05:18:30]process_action close_receipt done [05:18:30]requested_data is exist [05:18:30]produce_requested_data [05:18:30]requested_item fm.sn is exist - process it [05:18:30]wFMCommunicate request_size=4 [05:18:30]MH_SAM_APDU [05:18:30]CAPDU: 80 11 00 00 [05:18:30]Write to MH i2c: E2 08 00 03 F4 80 11 00 00 00 00 00 00 71 [05:18:30]Write i2c OK [05:18:30]MH_I2C_Read... [05:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:18:30]Read from MH i2c: E2 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 17 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 17 00 03 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [05:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:18:30]wFMCommunicate OK [05:18:30]requested_item fd.num is exist - process it [05:18:30]SAM_PROTO_GetFieldsCounters [05:18:30]wFMCommunicate request_size=4 [05:18:30]MH_SAM_APDU [05:18:30]CAPDU: 80 13 00 00 [05:18:30]Write to MH i2c: E2 08 00 04 F4 80 13 00 00 00 00 00 00 74 [05:18:30]Write i2c OK [05:18:30]MH_I2C_Read... [05:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:18:30]Read from MH i2c: E2 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 62 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 62 00 04 F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [05:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:18:30]wFMCommunicate OK [05:18:30]SAM_PROTO_GetFieldsCounters done [05:18:30]requested_item shift.num is exist - process it [05:18:30]requested_item shift.opened is exist - process it [05:18:30]req_shift_opened [05:18:30]FM_GetShiftState [05:18:30]SAM_PROTO_GetShiftState [05:18:30]wFMCommunicate request_size=4 [05:18:30]MH_SAM_APDU [05:18:30]CAPDU: 80 13 01 00 [05:18:30]Write to MH i2c: E2 08 00 05 F4 80 13 01 00 00 00 00 00 76 [05:18:30]Write i2c OK [05:18:30]MH_I2C_Read... [05:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:18:30]Read from MH i2c: E2 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 0E 00 [05:18:30]MH_I2C_Read... [05:18:30]Read from MH i2c: E2 0E 00 05 F4 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 70 [05:18:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:18:30]wFMCommunicate OK [05:18:30]SAM_PROTO_GetShiftState done [05:18:30]FM_GetShiftState done [05:18:30]req_shift_opened done [05:18:30]requested_item shift.open_date is exist - process it [05:18:30]req_shift_open_date [05:18:30]req_shift_open_date done [05:18:30]produce_requested_data done [05:18:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162357,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:18:30]process_action_free close_receipt [05:18:30]json_value_free [05:18:30]json_value_free done [05:18:30]process_json_proto returns [05:18:30]Send response to host [05:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162357,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:18:30]free response buf [05:18:30]execute_script done [05:18:30]execute_script returns [05:18:30]free content buf [05:18:30]Sock 8.Close socket [05:18:30]Sock 8.Thread stoped [05:18:34]OFD Sender: No OFD packet to send [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:10]accept exits with 9 [05:23:10]New connection [05:23:10]New thread 3066862948 created [05:23:10]Thread 3067006308 joined [05:23:10]Waiting for new connection... [05:23:10] Sock 9.Parse request [05:23:10]Sock 9.Check first char [05:23:10]Sock 9.First char is OK [05:23:10]request: POST /json_proto HTTP/1.0 [05:23:10]Method: POST [05:23:10]URL: /json_proto [05:23:10]Method is POST - this is cgi request [05:23:10]url: /json_proto [05:23:10]query_string will be loaded in cgi processing [05:23:10]execute_cgi json_proto POST (null) [05:23:10]execute_cgi path=json_proto method=POST [05:23:10]POST find Content-Length [05:23:10]Host: 172.17.39.67:8080 [05:23:10]Content-Length: 683 [05:23:10]Content-Type: application/json [05:23:10] [05:23:10]POST finish read [05:23:10]Found Content-Length = 683 [05:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:23:10]execute_script... [05:23: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)1318879", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:23:10]POST & json_proto [05:23:10]process_json_proto [05:23:10]json parsed OK: [05:23:10]protocol is kg_v1.0 [05:23:10]action value=close_receipt [05:23:10]process_action close_receipt [05:23:10]cmd_close_receipt [05:23:10]MH_GetDate [05:23:10]Write to MH i2c: F0 00 00 06 F4 E9 [05:23:10]Write i2c OK [05:23:10]MH_I2C_Read... [05:23:10]Read from MH i2c: F0 [05:23:10]MH_I2C_Read... [05:23:10]Read from MH i2c: F0 09 00 [05:23:10]MH_I2C_Read... [05:23:10]Read from MH i2c: F0 09 00 06 F4 00 4B 0F 92 66 FA E9 8E 66 1B [05:23:10]GetLastDocTimeStamp 1720847919 [05:23:10]current date 1720848203 [05:23:10]FM_GetShiftState [05:23:10]SAM_PROTO_GetShiftState [05:23:10]wFMCommunicate request_size=4 [05:23:10]MH_SAM_APDU [05:23:10]CAPDU: 80 13 01 00 [05:23:10]Write to MH i2c: E2 08 00 07 F4 80 13 01 00 00 00 00 00 78 [05:23:10]Write i2c OK [05:23:10]MH_I2C_Read... [05:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:10]Read from MH i2c: E2 [05:23:10]MH_I2C_Read... [05:23:10]Read from MH i2c: E2 0E 00 [05:23:10]MH_I2C_Read... [05:23:10]Read from MH i2c: E2 0E 00 07 F4 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 72 [05:23:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:23:10]wFMCommunicate OK [05:23:10]SAM_PROTO_GetShiftState done [05:23:10]FM_GetShiftState done [05:23:10]opened in 1720828979 [05:23:10]opened+sec_in_day 1720915379 [05:23:10]quantity*price = 60040 [05:23:10]sum+1 = 60041 [05:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 26 13.07.2024 05:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162358 ФПД: 48375841271053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052323&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162358&fm=48375841271053&tin=02508201610067®Number=0000000000090858&sum=60000 [05:23:11]StoreToDocumentArchive [05:23:11]shift 462 fd 162358 [05:23:11]save to /storage/0462/doc_00162358 [05:23:11]save last doc name /storage/0462/doc_00162358 to /storage/kkm_last_doc_name [05:23:11]save OK [05:23:11]Clear old archive folders... [05:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:23:11]tlvbuf is 019BFD30 [05:23:11]SAM_PROTO_ClearQueue [05:23:11]wFMCommunicate request_size=4 [05:23:11]MH_SAM_APDU [05:23:11]CAPDU: 80 09 00 00 [05:23:11]Write to MH i2c: E2 08 00 14 F4 80 09 00 00 00 00 00 00 7A [05:23:11]Write i2c OK [05:23:11]MH_I2C_Read... [05:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:23:11]Read from MH i2c: E2 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 03 00 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 03 00 14 F4 00 90 00 7C [05:23:11]RAPDU: 90 00 [05:23:11]wFMCommunicate OK [05:23:11]SAM_PROTO_ClearQueue done [05:23:11]KKMCreateOFDPacket [05:23:11]OFDProtocolAddRootSTLVToBuf [05:23:11]FM_MakeSignedData [05:23:11]FM_MakeSignedData [05:23:11]SAM_PROTO_SignData [05:23:11]wFMCommunicate request_size=4 [05:23:11]MH_SAM_APDU [05:23:11]CAPDU: 80 0D 01 02 [05:23:11]Write to MH i2c: E2 08 00 15 F4 80 0D 01 02 00 00 00 00 82 [05:23:11]Write i2c OK [05:23:11]MH_I2C_Read... [05:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:23:11]Read from MH i2c: E2 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 03 00 [05:23:11]MH_I2C_Read... [05:23:11]Read from MH i2c: E2 03 00 15 F4 00 90 00 7D [05:23:11]RAPDU: 90 00 [05:23:11]wFMCommunicate OK [05:23:11]wFMCommunicate request_size=255 [05:23:11]MH_SAM_APDU [05:23:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 4B 0F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7A 02 00 35 04 06 00 [05:23:11]Write to MH i2c: E2 02 01 16 F4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 4B 0F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7A 02 00 35 04 06 00 00 00 C7 [05:23:11]Write i2c OK [05:23:11]MH_I2C_Read... [05:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:12]Read from MH i2c: E2 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: E2 03 00 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: E2 03 00 16 F4 00 90 00 7E [05:23:12]RAPDU: 90 00 [05:23:12]wFMCommunicate OK [05:23:12]wFMCommunicate request_size=11 [05:23:12]MH_SAM_APDU [05:23:12]CAPDU: 80 0D 02 02 06 2B FF 60 D5 AD 0D [05:23:12]Write to MH i2c: E2 0E 00 17 F4 80 0D 02 02 06 00 2B FF 60 D5 AD 0D 00 00 AA [05:23:12]Write i2c OK [05:23:12]MH_I2C_Read... [05:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:23:12]Read from MH i2c: E2 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: E2 03 00 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: E2 03 00 17 F4 00 90 00 7F [05:23:12]RAPDU: 90 00 [05:23:12]wFMCommunicate OK [05:23:12]wFMCommunicate request_size=4 [05:23:12]MH_SAM_APDU [05:23:12]CAPDU: 80 0D 03 02 [05:23:12]Write to MH i2c: E2 08 00 18 F4 80 0D 03 02 00 00 00 00 87 [05:23:12]Write i2c OK [05:23:12]MH_I2C_Read... [05:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:23:12]Read from MH i2c: E2 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: E2 0B 00 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: E2 0B 00 18 F4 00 47 18 2D DB B6 74 2F F0 90 00 38 [05:23:12]RAPDU: 47 18 2D DB B6 74 2F F0 90 00 [05:23:12]wFMCommunicate OK [05:23:12]SAM_PROTO_SignData done [05:23:12]FM_MakeSignedData done [05:23:12]CreateOFDProtocolMessage [05:23:12]wFMCommunicate request_size=4 [05:23:12]MH_SAM_APDU [05:23:12]CAPDU: 80 11 00 00 [05:23:12]Write to MH i2c: E2 08 00 19 F4 80 11 00 00 00 00 00 00 87 [05:23:12]Write i2c OK [05:23:12]MH_I2C_Read... [05:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:12]Read from MH i2c: E2 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: E2 17 00 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: E2 17 00 19 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E7 [05:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:23:12]wFMCommunicate OK [05:23:12]CreateOFDProtocolMessage done [05:23:12]OFDSenderStorePacket 162358 [05:23:12]StoreOFDPacket docnum=162358 [05:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A5 8A 08 01 46 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 4B 0F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7A 02 00 35 04 06 00 2B FF 60 D5 AD 0D 47 18 2D DB B6 74 2F F0 [05:23:12]CheckFolder [05:23:12]dirname=/storage/ofd_packets [05:23:12]CheckFolder done [05:23:12]ProducePacketName [05:23:12]name=ofd_packets/00162358 [05:23:12]NVStorageSaveData ofd_packets/00162358 [05:23:12]File name is /storage/ofd_packets/00162358 [05:23:12]Write 302 bytes [05:23:12]NVStorageSaveData done [05:23:12]OFDSenderStorePacket done [05:23:12]KKMCreateOFDPacket done [05:23:12]NVStorageSaveData kkm_last_timestamp [05:23:12]File name is /storage/kkm_last_timestamp [05:23:12]Write 4 bytes [05:23:12]NVStorageSaveData done [05:23:12]ExternCall_PrintAddStr [05:23:12]wPrintStart [05:23:12]Write to MH i2c: 01 00 00 1A F4 0E [05:23:12]Write i2c OK [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: 01 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: 01 07 00 [05:23:12]MH_I2C_Read... [05:23:12]Read from MH i2c: 01 07 00 1A F4 00 00 00 00 00 FF 0F 23 [05:23:12]RasterBufferAndPrint [05:23:12]line Счет N : (1)1318879 [05:23:12]line ИНН: 02508201610067 [05:23:12]line Контрольно-Кассовый Чек [05:23:12]line ПРОДАЖА [05:23:12]line ТРК (МРК, ГНК) : 21 [05:23:12]line Товар: 2710194210 [05:23:12]line ДТ(л)-К-5 [05:23:12]line 8.270 * 72.60 [05:23:12]line = 600.40 [05:23:12]line НДС 12% НСП 1% [05:23:12]line > о реализуемом товаре [05:23:12]line ОКРУГЛЕНИЕ: -0.40 [05:23:12]line ИТОГО: 600.00 [05:23:12]line Внесено: 600.00 [05:23:12]line СДАЧА: 0.00 [05:23:12]line НСП 1% : 5.31 [05:23:12]line НДС 12% : 63.76 [05:23:12]line Наличными: 600.00 [05:23:12]line Безнал.: 0.00 [05:23:12]line Место: АЗС № 140 "Партнер Нефть" [05:23:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:23:12]line СНО: Общий режим [05:23:12]line Чек 26 13.07.2024 05:23 [05:23:12]line Смена: 462 ФФД: 1.0 [05:23:12]line ЗНМ: 0300000129 [05:23:12]line РНМ: 0000000000090858 [05:23:12]line Версия ККМ: 001 [05:23:12]line ФМ: 0000000000874899 [05:23:12]line ФД: 162358 [05:23:12]line ФПД: 48375841271053 [05:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052323&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162358&fm=48375841271053&tin=02508201610067®Number=0000000000090858&sum=60000 [05:23:12]OFD Sender: Processing packet 162358 [packets to send 105, broken 104] [05:23:12]ProducePacketName [05:23:12]name=ofd_packets/00162358 [05:23:12]OFD Sender: To server: pG, [05:23:12]CommunicateWithHost lk.salyk.kg:30040 [05:23:12]ConnectInit lk.salyk.kg [05:23:12]written 0, free lines is 4095 [05:23:12]Connected sock=10 [05:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A5 8A 08 01 46 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 4B 0F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7A 02 00 35 04 06 00 2B FF 60 D5 AD 0D 47 18 2D DB B6 74 2F F0 [05:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A3 12 47 00 80 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7A 02 00 F4 03 04 00 60 BB 91 66 B6 04 01 00 00 AC 02 E2 84 64 3C 3D 08 [05:23:13]CommunicateWithHost err = 0 [05:23:13]CheckOFDResponse [05:23:13]1017 (14) - 77093643461234 [05:23:13]1041 (16) - 0000000000874899 [05:23:13]1040 (4) - 162358 [05:23:13]1012 (4) - 12.07.2024 23:25 [05:23:13]1206 (1) - 0 [05:23:13]OFD Sender: Remove packet 162358 [05:23:13]ProducePacketName [05:23:13]name=ofd_packets/00162358 [05:23:13]NVStorageDeleteData [05:23:13]Write to MH i2c: 01 00 00 45 F4 39 [05:23:13]Write i2c OK [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: 01 [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: 01 07 00 [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: 01 07 00 45 F4 00 00 00 00 00 DF 0C 2B [05:23:13]RasterBufferAndPrint [05:23:13]line [05:23:13]line [05:23:13]line [05:23:13]line [05:23:13]line [05:23:13]written 0, free lines is 3301 [05:23:13]MH_Cut [05:23:13]Write to MH i2c: D1 01 00 4C F4 01 12 [05:23:13]Write i2c OK [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: D1 [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: D1 01 00 [05:23:13]MH_I2C_Read... [05:23:13]Read from MH i2c: D1 01 00 4C F4 00 11 [05:23:13]Write to MH i2c: 01 00 00 4D F4 41 [05:23:13]Write i2c OK [05:23:13]MH_I2C_Read... [05:23:13]OFD Sender: No OFD packet to send [05:23:13]*** Cut start [05:23:13]*** Purtial cut [05:23:13]*** CUTSNS_PIN = 0 [05:23:14]*** Stage 1: CUTSNS_PIN = 1 [05:23:15]Read from MH i2c: 01 [05:23:15]MH_I2C_Read... [05:23:15]*** Stop cut motor [05:23:15]*** Cut end [05:23:15]Read from MH i2c: 01 07 00 [05:23:15]MH_I2C_Read... [05:23:15]Read from MH i2c: 01 07 00 4D F4 00 00 00 00 00 FF 0F 56 [05:23:15]process_action close_receipt done [05:23:15]requested_data is exist [05:23:15]produce_requested_data [05:23:15]requested_item fm.sn is exist - process it [05:23:15]wFMCommunicate request_size=4 [05:23:15]MH_SAM_APDU [05:23:15]CAPDU: 80 11 00 00 [05:23:15]Write to MH i2c: E2 08 00 4E F4 80 11 00 00 00 00 00 00 BC [05:23:15]Write i2c OK [05:23:15]MH_I2C_Read... [05:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:23:16]Read from MH i2c: E2 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 17 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 17 00 4E F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1C [05:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:23:16]wFMCommunicate OK [05:23:16]requested_item fd.num is exist - process it [05:23:16]SAM_PROTO_GetFieldsCounters [05:23:16]wFMCommunicate request_size=4 [05:23:16]MH_SAM_APDU [05:23:16]CAPDU: 80 13 00 00 [05:23:16]Write to MH i2c: E2 08 00 4F F4 80 13 00 00 00 00 00 00 BF [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:23:16]Read from MH i2c: E2 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 62 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 62 00 4F F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 36 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [05:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 36 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:23:16]wFMCommunicate OK [05:23:16]SAM_PROTO_GetFieldsCounters done [05:23:16]requested_item shift.num is exist - process it [05:23:16]requested_item shift.opened is exist - process it [05:23:16]req_shift_opened [05:23:16]FM_GetShiftState [05:23:16]SAM_PROTO_GetShiftState [05:23:16]wFMCommunicate request_size=4 [05:23:16]MH_SAM_APDU [05:23:16]CAPDU: 80 13 01 00 [05:23:16]Write to MH i2c: E2 08 00 50 F4 80 13 01 00 00 00 00 00 C1 [05:23:16]Write i2c OK [05:23:16]MH_I2C_Read... [05:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:23:16]Read from MH i2c: E2 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 0E 00 [05:23:16]MH_I2C_Read... [05:23:16]Read from MH i2c: E2 0E 00 50 F4 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BB [05:23:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:23:16]wFMCommunicate OK [05:23:16]SAM_PROTO_GetShiftState done [05:23:16]FM_GetShiftState done [05:23:16]req_shift_opened done [05:23:16]requested_item shift.open_date is exist - process it [05:23:16]req_shift_open_date [05:23:16]req_shift_open_date done [05:23:16]produce_requested_data done [05:23:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162358,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:23:16]process_action_free close_receipt [05:23:16]json_value_free [05:23:16]json_value_free done [05:23:16]process_json_proto returns [05:23:16]Send response to host [05:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162358,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:23:16]free response buf [05:23:16]execute_script done [05:23:16]execute_script returns [05:23:16]free content buf [05:23:16]Sock 9.Close socket [05:23:16]Sock 9.Thread stoped [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:00]accept exits with 8 [05:25:00]New connection [05:25:00]New thread 3067006308 created [05:25:00]Thread 3066862948 joined [05:25:00]Waiting for new connection... [05:25:00] Sock 8.Parse request [05:25:00]Sock 8.Check first char [05:25:00]Sock 8.First char is OK [05:25:00]request: POST /json_proto HTTP/1.0 [05:25:00]Method: POST [05:25:00]URL: /json_proto [05:25:00]Method is POST - this is cgi request [05:25:00]url: /json_proto [05:25:00]query_string will be loaded in cgi processing [05:25:00]execute_cgi json_proto POST (null) [05:25:00]execute_cgi path=json_proto method=POST [05:25:00]POST find Content-Length [05:25:00]Host: 172.17.39.67:8080 [05:25:00]Content-Length: 683 [05:25:00]Content-Type: application/json [05:25:00] [05:25:00]POST finish read [05:25:00]Found Content-Length = 683 [05:25:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:25:00]execute_script... [05:25:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318880", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:25:00]POST & json_proto [05:25:00]process_json_proto [05:25:00]json parsed OK: [05:25:00]protocol is kg_v1.0 [05:25:00]action value=close_receipt [05:25:00]process_action close_receipt [05:25:00]cmd_close_receipt [05:25:00]MH_GetDate [05:25:00]Write to MH i2c: F0 00 00 51 F4 34 [05:25:00]Write i2c OK [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: F0 [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: F0 09 00 [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: F0 09 00 51 F4 00 B9 0F 92 66 FA E9 8E 66 D4 [05:25:00]GetLastDocTimeStamp 1720848203 [05:25:00]current date 1720848313 [05:25:00]FM_GetShiftState [05:25:00]SAM_PROTO_GetShiftState [05:25:00]wFMCommunicate request_size=4 [05:25:00]MH_SAM_APDU [05:25:00]CAPDU: 80 13 01 00 [05:25:00]Write to MH i2c: E2 08 00 52 F4 80 13 01 00 00 00 00 00 C3 [05:25:00]Write i2c OK [05:25:00]MH_I2C_Read... [05:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:00]Read from MH i2c: E2 [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: E2 0E 00 [05:25:00]MH_I2C_Read... [05:25:00]Read from MH i2c: E2 0E 00 52 F4 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BD [05:25:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:25:00]wFMCommunicate OK [05:25:00]SAM_PROTO_GetShiftState done [05:25:00]FM_GetShiftState done [05:25:00]opened in 1720828979 [05:25:00]opened+sec_in_day 1720915379 [05:25:00]quantity*price = 70059 [05:25:00]sum+1 = 70060 [05:25:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 27 13.07.2024 05:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162359 ФПД: 115531108675733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052513&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162359&fm=115531108675733&tin=02508201610067®Number=0000000000090858&sum=70000 [05:25:02]StoreToDocumentArchive [05:25:02]shift 462 fd 162359 [05:25:02]save to /storage/0462/doc_00162359 [05:25:02]save last doc name /storage/0462/doc_00162359 to /storage/kkm_last_doc_name [05:25:02]save OK [05:25:02]Clear old archive folders... [05:25:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:25:02]tlvbuf is 0197C480 [05:25:02]SAM_PROTO_ClearQueue [05:25:02]wFMCommunicate request_size=4 [05:25:02]MH_SAM_APDU [05:25:02]CAPDU: 80 09 00 00 [05:25:02]Write to MH i2c: E2 08 00 5F F4 80 09 00 00 00 00 00 00 C5 [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:02]Read from MH i2c: E2 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 03 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 03 00 5F F4 00 90 00 C7 [05:25:02]RAPDU: 90 00 [05:25:02]wFMCommunicate OK [05:25:02]SAM_PROTO_ClearQueue done [05:25:02]KKMCreateOFDPacket [05:25:02]OFDProtocolAddRootSTLVToBuf [05:25:02]FM_MakeSignedData [05:25:02]FM_MakeSignedData [05:25:02]SAM_PROTO_SignData [05:25:02]wFMCommunicate request_size=4 [05:25:02]MH_SAM_APDU [05:25:02]CAPDU: 80 0D 01 02 [05:25:02]Write to MH i2c: E2 08 00 60 F4 80 0D 01 02 00 00 00 00 CD [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:02]Read from MH i2c: E2 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 03 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 03 00 60 F4 00 90 00 C8 [05:25:02]RAPDU: 90 00 [05:25:02]wFMCommunicate OK [05:25:02]wFMCommunicate request_size=255 [05:25:02]MH_SAM_APDU [05:25:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1B 00 00 00 F4 03 04 00 B9 0F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7A 02 00 35 04 06 00 [05:25:02]Write to MH i2c: E2 02 01 61 F4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1B 00 00 00 F4 03 04 00 B9 0F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7A 02 00 35 04 06 00 00 00 2C [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:02]Read from MH i2c: E2 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 03 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 03 00 61 F4 00 90 00 C9 [05:25:02]RAPDU: 90 00 [05:25:02]wFMCommunicate OK [05:25:02]wFMCommunicate request_size=11 [05:25:02]MH_SAM_APDU [05:25:02]CAPDU: 80 0D 02 02 06 69 13 2E B1 70 95 [05:25:02]Write to MH i2c: E2 0E 00 62 F4 80 0D 02 02 06 00 69 13 2E B1 70 95 00 00 3C [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:02]Read from MH i2c: E2 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 03 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 03 00 62 F4 00 90 00 CA [05:25:02]RAPDU: 90 00 [05:25:02]wFMCommunicate OK [05:25:02]wFMCommunicate request_size=4 [05:25:02]MH_SAM_APDU [05:25:02]CAPDU: 80 0D 03 02 [05:25:02]Write to MH i2c: E2 08 00 63 F4 80 0D 03 02 00 00 00 00 D2 [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:02]Read from MH i2c: E2 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 0B 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 0B 00 63 F4 00 36 45 DF 7A 73 B5 1D D1 90 00 BD [05:25:02]RAPDU: 36 45 DF 7A 73 B5 1D D1 90 00 [05:25:02]wFMCommunicate OK [05:25:02]SAM_PROTO_SignData done [05:25:02]FM_MakeSignedData done [05:25:02]CreateOFDProtocolMessage [05:25:02]wFMCommunicate request_size=4 [05:25:02]MH_SAM_APDU [05:25:02]CAPDU: 80 11 00 00 [05:25:02]Write to MH i2c: E2 08 00 64 F4 80 11 00 00 00 00 00 00 D2 [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:02]Read from MH i2c: E2 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 17 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: E2 17 00 64 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 32 [05:25:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:25:02]wFMCommunicate OK [05:25:02]CreateOFDProtocolMessage done [05:25:02]OFDSenderStorePacket 162359 [05:25:02]StoreOFDPacket docnum=162359 [05:25:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 83 39 08 01 1C DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1B 00 00 00 F4 03 04 00 B9 0F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7A 02 00 35 04 06 00 69 13 2E B1 70 95 36 45 DF 7A 73 B5 1D D1 [05:25:02]CheckFolder [05:25:02]dirname=/storage/ofd_packets [05:25:02]CheckFolder done [05:25:02]ProducePacketName [05:25:02]name=ofd_packets/00162359 [05:25:02]NVStorageSaveData ofd_packets/00162359 [05:25:02]File name is /storage/ofd_packets/00162359 [05:25:02]Write 302 bytes [05:25:02]NVStorageSaveData done [05:25:02]OFDSenderStorePacket done [05:25:02]KKMCreateOFDPacket done [05:25:02]NVStorageSaveData kkm_last_timestamp [05:25:02]File name is /storage/kkm_last_timestamp [05:25:02]Write 4 bytes [05:25:02]NVStorageSaveData done [05:25:02]ExternCall_PrintAddStr [05:25:02]wPrintStart [05:25:02]Write to MH i2c: 01 00 00 65 F4 59 [05:25:02]Write i2c OK [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: 01 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: 01 07 00 [05:25:02]MH_I2C_Read... [05:25:02]Read from MH i2c: 01 07 00 65 F4 00 00 00 00 00 FF 0F 6E [05:25:02]RasterBufferAndPrint [05:25:02]line Счет N : (1)1318880 [05:25:02]line ИНН: 02508201610067 [05:25:02]line Контрольно-Кассовый Чек [05:25:02]line ПРОДАЖА [05:25:02]line ТРК (МРК, ГНК) : 31 [05:25:02]line Товар: 2710194210 [05:25:02]line ДТ(л)-К-5 [05:25:02]line 9.650 * 72.60 [05:25:02]line = 700.59 [05:25:02]line НДС 12% НСП 1% [05:25:02]line > о реализуемом товаре [05:25:02]line ОКРУГЛЕНИЕ: -0.59 [05:25:02]line ИТОГО: 700.00 [05:25:02]line Внесено: 700.00 [05:25:02]line СДАЧА: 0.00 [05:25:02]line НСП 1% : 6.20 [05:25:02]line НДС 12% : 74.40 [05:25:02]line Наличными: 700.00 [05:25:02]line Безнал.: 0.00 [05:25:02]line Место: АЗС № 140 "Партнер Нефть" [05:25:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:25:02]line СНО: Общий режим [05:25:02]line Чек 27 13.07.2024 05:25 [05:25:02]line Смена: 462 ФФД: 1.0 [05:25:02]line ЗНМ: 0300000129 [05:25:02]line РНМ: 0000000000090858 [05:25:02]line Версия ККМ: 001 [05:25:02]line ФМ: 0000000000874899 [05:25:02]line ФД: 162359 [05:25:02]line ФПД: 115531108675733 [05:25:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052513&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162359&fm=115531108675733&tin=02508201610067®Number=0000000000090858&sum=70000 [05:25:02]OFD Sender: Processing packet 162359 [packets to send 105, broken 104] [05:25:02]ProducePacketName [05:25:02]name=ofd_packets/00162359 [05:25:02]OFD Sender: To server: pG, [05:25:02]CommunicateWithHost lk.salyk.kg:30040 [05:25:02]ConnectInit lk.salyk.kg [05:25:02]written 0, free lines is 4095 [05:25:03]Connected sock=10 [05:25:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 83 39 08 01 1C DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1B 00 00 00 F4 03 04 00 B9 0F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7A 02 00 35 04 06 00 69 13 2E B1 70 95 36 45 DF 7A 73 B5 1D D1 [05:25:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 64 0D 47 00 5D 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7A 02 00 F4 03 04 00 CE BB 91 66 B6 04 01 00 00 DF E8 3C 0F C7 2C 5A 4B [05:25:03]CommunicateWithHost err = 0 [05:25:03]CheckOFDResponse [05:25:03]1017 (14) - 77093643461234 [05:25:03]1041 (16) - 0000000000874899 [05:25:03]1040 (4) - 162359 [05:25:03]1012 (4) - 12.07.2024 23:27 [05:25:03]1206 (1) - 0 [05:25:03]OFD Sender: Remove packet 162359 [05:25:03]ProducePacketName [05:25:03]name=ofd_packets/00162359 [05:25:03]NVStorageDeleteData [05:25:03]Write to MH i2c: 01 00 00 90 F4 84 [05:25:03]Write i2c OK [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: 01 [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: 01 07 00 [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: 01 07 00 90 F4 00 00 00 00 00 DD 0C 74 [05:25:03]RasterBufferAndPrint [05:25:03]line [05:25:03]line [05:25:03]line [05:25:03]line [05:25:03]line [05:25:03]written 0, free lines is 3301 [05:25:03]MH_Cut [05:25:03]Write to MH i2c: D1 01 00 97 F4 01 5D [05:25:03]Write i2c OK [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: D1 [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: D1 01 00 [05:25:03]MH_I2C_Read... [05:25:03]Read from MH i2c: D1 01 00 97 F4 00 5C [05:25:03]Write to MH i2c: 01 00 00 98 F4 8C [05:25:03]Write i2c OK [05:25:03]MH_I2C_Read... [05:25:03]OFD Sender: No OFD packet to send [05:25:04]*** Cut start [05:25:04]*** Purtial cut [05:25:04]*** Stage 1: CUTSNS_PIN = 1 [05:25:04]Read from MH i2c: 01 [05:25:04]MH_I2C_Read... [05:25:04]*** Stop cut motor [05:25:04]*** Cut end [05:25:04]Read from MH i2c: 01 07 00 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: 01 07 00 98 F4 00 00 00 00 00 FF 0F A1 [05:25:04]process_action close_receipt done [05:25:04]requested_data is exist [05:25:04]produce_requested_data [05:25:04]requested_item fm.sn is exist - process it [05:25:04]wFMCommunicate request_size=4 [05:25:04]MH_SAM_APDU [05:25:04]CAPDU: 80 11 00 00 [05:25:04]Write to MH i2c: E2 08 00 99 F4 80 11 00 00 00 00 00 00 07 [05:25:04]Write i2c OK [05:25:04]MH_I2C_Read... [05:25:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:04]Read from MH i2c: E2 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 17 00 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 17 00 99 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 67 [05:25:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:25:04]wFMCommunicate OK [05:25:04]requested_item fd.num is exist - process it [05:25:04]SAM_PROTO_GetFieldsCounters [05:25:04]wFMCommunicate request_size=4 [05:25:04]MH_SAM_APDU [05:25:04]CAPDU: 80 13 00 00 [05:25:04]Write to MH i2c: E2 08 00 9A F4 80 13 00 00 00 00 00 00 0A [05:25:04]Write i2c OK [05:25:04]MH_I2C_Read... [05:25:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:04]Read from MH i2c: E2 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 62 00 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 62 00 9A F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 37 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [05:25:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 37 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:25:04]wFMCommunicate OK [05:25:04]SAM_PROTO_GetFieldsCounters done [05:25:04]requested_item shift.num is exist - process it [05:25:04]requested_item shift.opened is exist - process it [05:25:04]req_shift_opened [05:25:04]FM_GetShiftState [05:25:04]SAM_PROTO_GetShiftState [05:25:04]wFMCommunicate request_size=4 [05:25:04]MH_SAM_APDU [05:25:04]CAPDU: 80 13 01 00 [05:25:04]Write to MH i2c: E2 08 00 9B F4 80 13 01 00 00 00 00 00 0C [05:25:04]Write i2c OK [05:25:04]MH_I2C_Read... [05:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:04]Read from MH i2c: E2 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 0E 00 [05:25:04]MH_I2C_Read... [05:25:04]Read from MH i2c: E2 0E 00 9B F4 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 06 [05:25:04]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:25:04]wFMCommunicate OK [05:25:04]SAM_PROTO_GetShiftState done [05:25:04]FM_GetShiftState done [05:25:04]req_shift_opened done [05:25:04]requested_item shift.open_date is exist - process it [05:25:04]req_shift_open_date [05:25:04]req_shift_open_date done [05:25:04]produce_requested_data done [05:25:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162359,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:25:04]process_action_free close_receipt [05:25:04]json_value_free [05:25:04]json_value_free done [05:25:04]process_json_proto returns [05:25:04]Send response to host [05:25:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162359,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:25:04]free response buf [05:25:04]execute_script done [05:25:04]execute_script returns [05:25:04]free content buf [05:25:04]Sock 8.Close socket [05:25:04]Sock 8.Thread stoped [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:11]recv_with_timeout no data received [05:27:12]accept exits with 9 [05:27:12]New connection [05:27:12]New thread 3066862948 created [05:27:12]Thread 3067006308 joined [05:27:12]Waiting for new connection... [05:27:12] Sock 9.Parse request [05:27:12]Sock 9.Check first char [05:27:12]Sock 9.First char is OK [05:27:12]request: POST /json_proto HTTP/1.0 [05:27:12]Method: POST [05:27:12]URL: /json_proto [05:27:12]Method is POST - this is cgi request [05:27:12]url: /json_proto [05:27:12]query_string will be loaded in cgi processing [05:27:12]execute_cgi json_proto POST (null) [05:27:12]execute_cgi path=json_proto method=POST [05:27:12]POST find Content-Length [05:27:12]Host: 172.17.39.67:8080 [05:27:12]Content-Length: 684 [05:27:12]Content-Type: application/json [05:27:12] [05:27:12]POST finish read [05:27:12]Found Content-Length = 684 [05:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:27:12]execute_script... [05:27: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)1318881", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:27:12]POST & json_proto [05:27:12]process_json_proto [05:27:12]json parsed OK: [05:27:12]protocol is kg_v1.0 [05:27:12]action value=close_receipt [05:27:12]process_action close_receipt [05:27:12]cmd_close_receipt [05:27:12]MH_GetDate [05:27:12]Write to MH i2c: F0 00 00 9C F4 7F [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: F0 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: F0 09 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: F0 09 00 9C F4 00 3C 10 92 66 FA E9 8E 66 A3 [05:27:12]GetLastDocTimeStamp 1720848313 [05:27:12]current date 1720848444 [05:27:12]FM_GetShiftState [05:27:12]SAM_PROTO_GetShiftState [05:27:12]wFMCommunicate request_size=4 [05:27:12]MH_SAM_APDU [05:27:12]CAPDU: 80 13 01 00 [05:27:12]Write to MH i2c: E2 08 00 9D F4 80 13 01 00 00 00 00 00 0E [05:27:12]Write i2c OK [05:27:12]MH_I2C_Read... [05:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:12]Read from MH i2c: E2 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 0E 00 [05:27:12]MH_I2C_Read... [05:27:12]Read from MH i2c: E2 0E 00 9D F4 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 08 [05:27:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:27:12]wFMCommunicate OK [05:27:12]SAM_PROTO_GetShiftState done [05:27:12]FM_GetShiftState done [05:27:12]opened in 1720828979 [05:27:12]opened+sec_in_day 1720915379 [05:27:12]quantity*price = 80005 [05:27:12]sum+1 = 80006 [05:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 28 13.07.2024 05:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162360 ФПД: 111262149991681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052724&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162360&fm=111262149991681&tin=02508201610067®Number=0000000000090858&sum=80000 [05:27:13]StoreToDocumentArchive [05:27:13]shift 462 fd 162360 [05:27:13]save to /storage/0462/doc_00162360 [05:27:13]save last doc name /storage/0462/doc_00162360 to /storage/kkm_last_doc_name [05:27:13]save OK [05:27:13]Clear old archive folders... [05:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:27:13]tlvbuf is 01C68490 [05:27:13]SAM_PROTO_ClearQueue [05:27:13]wFMCommunicate request_size=4 [05:27:13]MH_SAM_APDU [05:27:13]CAPDU: 80 09 00 00 [05:27:13]Write to MH i2c: E2 08 00 AA F4 80 09 00 00 00 00 00 00 10 [05:27:13]Write i2c OK [05:27:13]MH_I2C_Read... [05:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:27:13]Read from MH i2c: E2 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 03 00 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 03 00 AA F4 00 90 00 12 [05:27:13]RAPDU: 90 00 [05:27:13]wFMCommunicate OK [05:27:13]SAM_PROTO_ClearQueue done [05:27:13]KKMCreateOFDPacket [05:27:13]OFDProtocolAddRootSTLVToBuf [05:27:13]FM_MakeSignedData [05:27:13]FM_MakeSignedData [05:27:13]SAM_PROTO_SignData [05:27:13]wFMCommunicate request_size=4 [05:27:13]MH_SAM_APDU [05:27:13]CAPDU: 80 0D 01 02 [05:27:13]Write to MH i2c: E2 08 00 AB F4 80 0D 01 02 00 00 00 00 18 [05:27:13]Write i2c OK [05:27:13]MH_I2C_Read... [05:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:27:13]Read from MH i2c: E2 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 03 00 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 03 00 AB F4 00 90 00 13 [05:27:13]RAPDU: 90 00 [05:27:13]wFMCommunicate OK [05:27:13]wFMCommunicate request_size=255 [05:27:13]MH_SAM_APDU [05:27:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1C 00 00 00 F4 03 04 00 3C 10 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7A 02 00 35 04 06 00 [05:27:13]Write to MH i2c: E2 02 01 AC F4 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1C 00 00 00 F4 03 04 00 3C 10 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7A 02 00 35 04 06 00 00 00 48 [05:27:13]Write i2c OK [05:27:13]MH_I2C_Read... [05:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:13]Read from MH i2c: E2 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 03 00 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 03 00 AC F4 00 90 00 14 [05:27:13]RAPDU: 90 00 [05:27:13]wFMCommunicate OK [05:27:13]wFMCommunicate request_size=11 [05:27:13]MH_SAM_APDU [05:27:13]CAPDU: 80 0D 02 02 06 65 31 3C ED 5D 01 [05:27:13]Write to MH i2c: E2 0E 00 AD F4 80 0D 02 02 06 00 65 31 3C ED 5D 01 00 00 44 [05:27:13]Write i2c OK [05:27:13]MH_I2C_Read... [05:27:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:13]Read from MH i2c: E2 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 03 00 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 03 00 AD F4 00 90 00 15 [05:27:13]RAPDU: 90 00 [05:27:13]wFMCommunicate OK [05:27:13]wFMCommunicate request_size=4 [05:27:13]MH_SAM_APDU [05:27:13]CAPDU: 80 0D 03 02 [05:27:13]Write to MH i2c: E2 08 00 AE F4 80 0D 03 02 00 00 00 00 1D [05:27:13]Write i2c OK [05:27:13]MH_I2C_Read... [05:27:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:27:13]Read from MH i2c: E2 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 0B 00 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 0B 00 AE F4 00 FC 47 76 DC 1A CF DC 32 90 00 AA [05:27:13]RAPDU: FC 47 76 DC 1A CF DC 32 90 00 [05:27:13]wFMCommunicate OK [05:27:13]SAM_PROTO_SignData done [05:27:13]FM_MakeSignedData done [05:27:13]CreateOFDProtocolMessage [05:27:13]wFMCommunicate request_size=4 [05:27:13]MH_SAM_APDU [05:27:13]CAPDU: 80 11 00 00 [05:27:13]Write to MH i2c: E2 08 00 AF F4 80 11 00 00 00 00 00 00 1D [05:27:13]Write i2c OK [05:27:13]MH_I2C_Read... [05:27:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:13]Read from MH i2c: E2 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 17 00 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: E2 17 00 AF F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7D [05:27:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:27:13]wFMCommunicate OK [05:27:13]CreateOFDProtocolMessage done [05:27:13]OFDSenderStorePacket 162360 [05:27:13]StoreOFDPacket docnum=162360 [05:27:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 64 28 08 01 B3 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1C 00 00 00 F4 03 04 00 3C 10 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7A 02 00 35 04 06 00 65 31 3C ED 5D 01 FC 47 76 DC 1A CF DC 32 [05:27:13]CheckFolder [05:27:13]dirname=/storage/ofd_packets [05:27:13]CheckFolder done [05:27:13]ProducePacketName [05:27:13]name=ofd_packets/00162360 [05:27:13]NVStorageSaveData ofd_packets/00162360 [05:27:13]File name is /storage/ofd_packets/00162360 [05:27:13]Write 302 bytes [05:27:13]NVStorageSaveData done [05:27:13]OFDSenderStorePacket done [05:27:13]KKMCreateOFDPacket done [05:27:13]NVStorageSaveData kkm_last_timestamp [05:27:13]File name is /storage/kkm_last_timestamp [05:27:13]Write 4 bytes [05:27:13]NVStorageSaveData done [05:27:13]ExternCall_PrintAddStr [05:27:13]wPrintStart [05:27:13]Write to MH i2c: 01 00 00 B0 F4 A4 [05:27:13]Write i2c OK [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: 01 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: 01 07 00 [05:27:13]MH_I2C_Read... [05:27:13]Read from MH i2c: 01 07 00 B0 F4 00 00 00 00 00 FF 0F B9 [05:27:13]RasterBufferAndPrint [05:27:13]line Счет N : (1)1318881 [05:27:13]line ИНН: 02508201610067 [05:27:13]line Контрольно-Кассовый Чек [05:27:13]line ПРОДАЖА [05:27:13]line ТРК (МРК, ГНК) : 41 [05:27:13]line Товар: 2710194210 [05:27:13]line ДТ(л)-К-5 [05:27:13]line 11.020 * 72.60 [05:27:13]line = 800.05 [05:27:13]line НДС 12% НСП 1% [05:27:13]line > о реализуемом товаре [05:27:13]line ОКРУГЛЕНИЕ: -0.05 [05:27:13]line ИТОГО: 800.00 [05:27:13]line Внесено: 800.00 [05:27:13]line СДАЧА: 0.00 [05:27:13]line НСП 1% : 7.08 [05:27:13]line НДС 12% : 84.96 [05:27:13]line Наличными: 800.00 [05:27:13]line Безнал.: 0.00 [05:27:13]line Место: АЗС № 140 "Партнер Нефть" [05:27:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:27:13]line СНО: Общий режим [05:27:13]line Чек 28 13.07.2024 05:27 [05:27:13]line Смена: 462 ФФД: 1.0 [05:27:13]line ЗНМ: 0300000129 [05:27:13]line РНМ: 0000000000090858 [05:27:13]line Версия ККМ: 001 [05:27:13]line ФМ: 0000000000874899 [05:27:13]line ФД: 162360 [05:27:13]line ФПД: 111262149991681 [05:27:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052724&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162360&fm=111262149991681&tin=02508201610067®Number=0000000000090858&sum=80000 [05:27:14]OFD Sender: Processing packet 162360 [packets to send 105, broken 104] [05:27:14]ProducePacketName [05:27:14]name=ofd_packets/00162360 [05:27:14]OFD Sender: To server: pG, [05:27:14]CommunicateWithHost lk.salyk.kg:30040 [05:27:14]ConnectInit lk.salyk.kg [05:27:14]written 0, free lines is 4095 [05:27:14]Write to MH i2c: 01 00 00 DB F4 CF [05:27:14]Write i2c OK [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: 01 [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: 01 07 00 [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: 01 07 00 DB F4 00 00 00 00 00 D1 0C B3 [05:27:14]RasterBufferAndPrint [05:27:14]line [05:27:14]line [05:27:14]line [05:27:14]line [05:27:14]line [05:27:14]written 0, free lines is 3287 [05:27:14]MH_Cut [05:27:14]Write to MH i2c: D1 01 00 E2 F4 01 A8 [05:27:14]Write i2c OK [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: D1 [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: D1 01 00 [05:27:14]MH_I2C_Read... [05:27:14]Read from MH i2c: D1 01 00 E2 F4 00 A7 [05:27:14]Write to MH i2c: 01 00 00 E3 F4 D7 [05:27:14]Write i2c OK [05:27:14]MH_I2C_Read... [05:27:15]*** Cut start [05:27:15]*** Purtial cut [05:27:15]*** CUTSNS_PIN = 0 [05:27:15]*** Stage 1: CUTSNS_PIN = 1 [05:27:17]Read from MH i2c: 01 [05:27:17]MH_I2C_Read... [05:27:17]*** Stop cut motor [05:27:17]*** Cut end [05:27:17]Read from MH i2c: 01 07 00 [05:27:17]MH_I2C_Read... [05:27:17]Read from MH i2c: 01 07 00 E3 F4 00 00 00 00 00 FF 0F EC [05:27:17]process_action close_receipt done [05:27:17]requested_data is exist [05:27:17]produce_requested_data [05:27:17]requested_item fm.sn is exist - process it [05:27:17]wFMCommunicate request_size=4 [05:27:17]MH_SAM_APDU [05:27:17]CAPDU: 80 11 00 00 [05:27:17]Write to MH i2c: E2 08 00 E4 F4 80 11 00 00 00 00 00 00 52 [05:27:17]Write i2c OK [05:27:17]MH_I2C_Read... [05:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:17]Read from MH i2c: E2 [05:27:17]MH_I2C_Read... [05:27:17]Read from MH i2c: E2 17 00 [05:27:17]MH_I2C_Read... [05:27:17]Read from MH i2c: E2 17 00 E4 F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B2 [05:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:27:17]wFMCommunicate OK [05:27:17]requested_item fd.num is exist - process it [05:27:17]SAM_PROTO_GetFieldsCounters [05:27:17]wFMCommunicate request_size=4 [05:27:17]MH_SAM_APDU [05:27:17]CAPDU: 80 13 00 00 [05:27:17]Write to MH i2c: E2 08 00 E5 F4 80 13 00 00 00 00 00 00 55 [05:27:17]Write i2c OK [05:27:17]MH_I2C_Read... [05:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:27:17]Read from MH i2c: E2 [05:27:17]MH_I2C_Read... [05:27:17]Read from MH i2c: E2 62 00 [05:27:17]MH_I2C_Read... [05:27:17]Read from MH i2c: E2 62 00 E5 F4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 38 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [05:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 38 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:27:17]wFMCommunicate OK [05:27:17]SAM_PROTO_GetFieldsCounters done [05:27:17]requested_item shift.num is exist - process it [05:27:17]requested_item shift.opened is exist - process it [05:27:17]req_shift_opened [05:27:17]FM_GetShiftState [05:27:17]SAM_PROTO_GetShiftState [05:27:17]wFMCommunicate request_size=4 [05:27:17]MH_SAM_APDU [05:27:17]CAPDU: 80 13 01 00 [05:27:17]Write to MH i2c: E2 08 00 E6 F4 80 13 01 00 00 00 00 00 57 [05:27:17]Write i2c OK [05:27:17]MH_I2C_Read... [05:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:17]Read from MH i2c: E2 [05:27:17]MH_I2C_Read... [05:27:17]Read from MH i2c: E2 0E 00 [05:27:17]MH_I2C_Read... [05:27:17]Read from MH i2c: E2 0E 00 E6 F4 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 51 [05:27:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:27:17]wFMCommunicate OK [05:27:17]SAM_PROTO_GetShiftState done [05:27:17]FM_GetShiftState done [05:27:17]req_shift_opened done [05:27:17]requested_item shift.open_date is exist - process it [05:27:17]req_shift_open_date [05:27:17]req_shift_open_date done [05:27:17]produce_requested_data done [05:27:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162360,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:27:17]process_action_free close_receipt [05:27:17]json_value_free [05:27:17]json_value_free done [05:27:17]process_json_proto returns [05:27:17]Send response to host [05:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162360,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:27:17]free response buf [05:27:17]execute_script done [05:27:17]execute_script returns [05:27:17]free content buf [05:27:17]Sock 9.Close socket [05:27:17]Sock 9.Thread stoped [05:27:19]ConnectInit Can't take IP for lk.salyk.kg [05:27:19]CommunicateWithHost connect error [05:27:19]CommunicateWithHost err = -1 [05:27:19]OFD Sender: Server communicate error [05:27:24]OFD Sender: Processing packet 162360 [packets to send 105, broken 104] [05:27:24]ProducePacketName [05:27:24]name=ofd_packets/00162360 [05:27:24]OFD Sender: To server: pG, [05:27:24]CommunicateWithHost lk.salyk.kg:30040 [05:27:24]ConnectInit lk.salyk.kg [05:27:29]ConnectInit Can't take IP for lk.salyk.kg [05:27:29]CommunicateWithHost connect error [05:27:29]CommunicateWithHost err = -1 [05:27:29]OFD Sender: Server communicate error [05:27:34]OFD Sender: Processing packet 162360 [packets to send 105, broken 104] [05:27:34]ProducePacketName [05:27:34]name=ofd_packets/00162360 [05:27:34]OFD Sender: To server: pG, [05:27:34]CommunicateWithHost lk.salyk.kg:30040 [05:27:34]ConnectInit lk.salyk.kg [05:27:34]Connected sock=9 [05:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 64 28 08 01 B3 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1C 00 00 00 F4 03 04 00 3C 10 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7A 02 00 35 04 06 00 65 31 3C ED 5D 01 FC 47 76 DC 1A CF DC 32 [05:27:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 03 27 47 00 15 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7A 02 00 F4 03 04 00 66 BC 91 66 B6 04 01 00 00 FB F8 25 4B DD 76 B7 F9 [05:27:34]CommunicateWithHost err = 0 [05:27:34]CheckOFDResponse [05:27:34]1017 (14) - 77093643461234 [05:27:34]1041 (16) - 0000000000874899 [05:27:34]1040 (4) - 162360 [05:27:34]1012 (4) - 12.07.2024 23:29 [05:27:34]1206 (1) - 0 [05:27:34]OFD Sender: Remove packet 162360 [05:27:34]ProducePacketName [05:27:34]name=ofd_packets/00162360 [05:27:34]NVStorageDeleteData [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:48]accept exits with 8 [05:27:48]New connection [05:27:48]New thread 3067006308 created [05:27:48]Thread 3066862948 joined [05:27:48]Waiting for new connection... [05:27:48] Sock 8.Parse request [05:27:48]Sock 8.Check first char [05:27:48]Sock 8.First char is OK [05:27:48]request: POST /json_proto HTTP/1.0 [05:27:48]Method: POST [05:27:48]URL: /json_proto [05:27:48]Method is POST - this is cgi request [05:27:48]url: /json_proto [05:27:48]query_string will be loaded in cgi processing [05:27:48]execute_cgi json_proto POST (null) [05:27:48]execute_cgi path=json_proto method=POST [05:27:48]POST find Content-Length [05:27:48]Host: 172.17.39.67:8080 [05:27:48]Content-Length: 842 [05:27:48]Content-Type: application/json [05:27:48] [05:27:48]POST finish read [05:27:48]Found Content-Length = 842 [05:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:48]execute_script... [05:27: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)1318882", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:27:48]POST & json_proto [05:27:48]process_json_proto [05:27:48]json parsed OK: [05:27:48]protocol is kg_v1.0 [05:27:48]action value=close_receipt [05:27:48]process_action close_receipt [05:27:48]cmd_close_receipt [05:27:48]MH_GetDate [05:27:48]Write to MH i2c: F0 00 00 E7 F4 CA [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: F0 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: F0 09 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: F0 09 00 E7 F4 00 60 10 92 66 FA E9 8E 66 12 [05:27:48]GetLastDocTimeStamp 1720848444 [05:27:48]current date 1720848480 [05:27:48]FM_GetShiftState [05:27:48]SAM_PROTO_GetShiftState [05:27:48]wFMCommunicate request_size=4 [05:27:48]MH_SAM_APDU [05:27:48]CAPDU: 80 13 01 00 [05:27:48]Write to MH i2c: E2 08 00 E8 F4 80 13 01 00 00 00 00 00 59 [05:27:48]Write i2c OK [05:27:48]MH_I2C_Read... [05:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:48]Read from MH i2c: E2 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 0E 00 [05:27:48]MH_I2C_Read... [05:27:48]Read from MH i2c: E2 0E 00 E8 F4 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 53 [05:27:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:27:48]wFMCommunicate OK [05:27:48]SAM_PROTO_GetShiftState done [05:27:48]FM_GetShiftState done [05:27:48]opened in 1720828979 [05:27:48]opened+sec_in_day 1720915379 [05:27:48]quantity*price = 66300 [05:27:48]sum+1 = 66301 [05:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 29 13.07.2024 05:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162361 ФПД: 124833743377912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052800&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162361&fm=124833743377912&tin=02508201610067®Number=0000000000090858&sum=66300 [05:27:49]StoreToDocumentArchive [05:27:49]shift 462 fd 162361 [05:27:49]save to /storage/0462/doc_00162361 [05:27:49]save last doc name /storage/0462/doc_00162361 to /storage/kkm_last_doc_name [05:27:49]save OK [05:27:49]Clear old archive folders... [05:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:27:49]tlvbuf is 01A97F50 [05:27:49]SAM_PROTO_ClearQueue [05:27:49]wFMCommunicate request_size=4 [05:27:49]MH_SAM_APDU [05:27:49]CAPDU: 80 09 00 00 [05:27:49]Write to MH i2c: E2 08 00 F5 F4 80 09 00 00 00 00 00 00 5B [05:27:49]Write i2c OK [05:27:49]MH_I2C_Read... [05:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:27:49]Read from MH i2c: E2 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 03 00 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 03 00 F5 F4 00 90 00 5D [05:27:49]RAPDU: 90 00 [05:27:49]wFMCommunicate OK [05:27:49]SAM_PROTO_ClearQueue done [05:27:49]KKMCreateOFDPacket [05:27:49]OFDProtocolAddRootSTLVToBuf [05:27:49]FM_MakeSignedData [05:27:49]FM_MakeSignedData [05:27:49]SAM_PROTO_SignData [05:27:49]wFMCommunicate request_size=4 [05:27:49]MH_SAM_APDU [05:27:49]CAPDU: 80 0D 01 02 [05:27:49]Write to MH i2c: E2 08 00 F6 F4 80 0D 01 02 00 00 00 00 63 [05:27:49]Write i2c OK [05:27:49]MH_I2C_Read... [05:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:27:49]Read from MH i2c: E2 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 03 00 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 03 00 F6 F4 00 90 00 5E [05:27:49]RAPDU: 90 00 [05:27:49]wFMCommunicate OK [05:27:49]wFMCommunicate request_size=255 [05:27:49]MH_SAM_APDU [05:27:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 10 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7A 02 00 35 04 06 00 71 [05:27:49]Write to MH i2c: E2 02 01 F7 F4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 10 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7A 02 00 35 04 06 00 71 00 00 15 [05:27:49]Write i2c OK [05:27:49]MH_I2C_Read... [05:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:49]Read from MH i2c: E2 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 03 00 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 03 00 F7 F4 00 90 00 5F [05:27:49]RAPDU: 90 00 [05:27:49]wFMCommunicate OK [05:27:49]wFMCommunicate request_size=10 [05:27:49]MH_SAM_APDU [05:27:49]CAPDU: 80 0D 02 02 05 89 1E EE 15 F8 [05:27:49]Write to MH i2c: E2 0D 00 F8 F4 80 0D 02 02 05 00 89 1E EE 15 F8 00 00 12 [05:27:49]Write i2c OK [05:27:49]MH_I2C_Read... [05:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:27:49]Read from MH i2c: E2 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 03 00 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 03 00 F8 F4 00 90 00 60 [05:27:49]RAPDU: 90 00 [05:27:49]wFMCommunicate OK [05:27:49]wFMCommunicate request_size=4 [05:27:49]MH_SAM_APDU [05:27:49]CAPDU: 80 0D 03 02 [05:27:49]Write to MH i2c: E2 08 00 F9 F4 80 0D 03 02 00 00 00 00 68 [05:27:49]Write i2c OK [05:27:49]MH_I2C_Read... [05:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:27:49]Read from MH i2c: E2 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 0B 00 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 0B 00 F9 F4 00 DF 7C 09 DB 2A 22 06 64 90 00 5E [05:27:49]RAPDU: DF 7C 09 DB 2A 22 06 64 90 00 [05:27:49]wFMCommunicate OK [05:27:49]SAM_PROTO_SignData done [05:27:49]FM_MakeSignedData done [05:27:49]CreateOFDProtocolMessage [05:27:49]wFMCommunicate request_size=4 [05:27:49]MH_SAM_APDU [05:27:49]CAPDU: 80 11 00 00 [05:27:49]Write to MH i2c: E2 08 00 FA F4 80 11 00 00 00 00 00 00 68 [05:27:49]Write i2c OK [05:27:49]MH_I2C_Read... [05:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:49]Read from MH i2c: E2 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 17 00 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: E2 17 00 FA F4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C8 [05:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:27:49]wFMCommunicate OK [05:27:49]CreateOFDProtocolMessage done [05:27:49]OFDSenderStorePacket 162361 [05:27:49]StoreOFDPacket docnum=162361 [05:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 02 57 07 01 E3 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 10 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7A 02 00 35 04 06 00 71 89 1E EE 15 F8 DF 7C 09 DB 2A 22 06 64 [05:27:49]CheckFolder [05:27:49]dirname=/storage/ofd_packets [05:27:49]CheckFolder done [05:27:49]ProducePacketName [05:27:49]name=ofd_packets/00162361 [05:27:49]NVStorageSaveData ofd_packets/00162361 [05:27:49]File name is /storage/ofd_packets/00162361 [05:27:49]Write 301 bytes [05:27:49]NVStorageSaveData done [05:27:49]OFDSenderStorePacket done [05:27:49]KKMCreateOFDPacket done [05:27:49]NVStorageSaveData kkm_last_timestamp [05:27:49]File name is /storage/kkm_last_timestamp [05:27:49]Write 4 bytes [05:27:49]NVStorageSaveData done [05:27:49]ExternCall_PrintAddStr [05:27:49]wPrintStart [05:27:49]Write to MH i2c: 01 00 00 FB F4 EF [05:27:49]Write i2c OK [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: 01 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: 01 07 00 [05:27:49]MH_I2C_Read... [05:27:49]Read from MH i2c: 01 07 00 FB F4 00 00 00 00 00 FF 0F 04 [05:27:49]RasterBufferAndPrint [05:27:49]line Счет N : (1)1318882 [05:27:49]line ИНН: 02508201610067 [05:27:49]line Контрольно-Кассовый Чек [05:27:49]line ПРОДАЖА [05:27:49]line ТРК (МРК, ГНК) : 63 [05:27:49]line Товар: 2710124130 [05:27:49]line Аи-92-К-5 [05:27:49]line 10.000 * 66.30 [05:27:49]line = 663.00 [05:27:49]line НДС 12% НСП 1% [05:27:49]line > о реализуемом товаре [05:27:49]line ИТОГО: 663.00 [05:27:49]line НСП 1% : 5.87 [05:27:49]line НДС 12% : 70.41 [05:27:49]line Наличными: 0.00 [05:27:49]line Безнал.: 663.00 [05:27:49]line Место: АЗС № 140 "Партнер Нефть" [05:27:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:27:49]line СНО: Общий режим [05:27:49]line Чек 29 13.07.2024 05:28 [05:27:49]line Смена: 462 ФФД: 1.0 [05:27:49]line ЗНМ: 0300000129 [05:27:49]line РНМ: 0000000000090858 [05:27:49]line Версия ККМ: 001 [05:27:49]line Платежная система: АКБ Кыргызстан [05:27:49]line ФМ: 0000000000874899 [05:27:49]line ФД: 162361 [05:27:49]line ФПД: 124833743377912 [05:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T052800&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162361&fm=124833743377912&tin=02508201610067®Number=0000000000090858&sum=66300 [05:27:49]OFD Sender: Processing packet 162361 [packets to send 105, broken 104] [05:27:49]ProducePacketName [05:27:49]name=ofd_packets/00162361 [05:27:49]OFD Sender: To server: pG, [05:27:49]CommunicateWithHost lk.salyk.kg:30040 [05:27:49]ConnectInit lk.salyk.kg [05:27:49]written 0, free lines is 4095 [05:27:50]Connected sock=10 [05:27:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 02 57 07 01 E3 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 60 10 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7A 02 00 35 04 06 00 71 89 1E EE 15 F8 DF 7C 09 DB 2A 22 06 64 [05:27:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 27 27 47 00 75 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7A 02 00 F4 03 04 00 76 BC 91 66 B6 04 01 00 00 F1 2B 7B 46 DE C2 8E DD [05:27:50]CommunicateWithHost err = 0 [05:27:50]CheckOFDResponse [05:27:50]1017 (14) - 77093643461234 [05:27:50]1041 (16) - 0000000000874899 [05:27:50]1040 (4) - 162361 [05:27:50]1012 (4) - 12.07.2024 23:29 [05:27:50]1206 (1) - 0 [05:27:50]OFD Sender: Remove packet 162361 [05:27:50]ProducePacketName [05:27:50]name=ofd_packets/00162361 [05:27:50]NVStorageDeleteData [05:27:50]Write to MH i2c: 01 00 00 25 F5 1A [05:27:50]Write i2c OK [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: 01 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: 01 07 00 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: 01 07 00 25 F5 00 00 00 00 00 F8 0C 25 [05:27:50]RasterBufferAndPrint [05:27:50]line [05:27:50]line [05:27:50]line [05:27:50]line [05:27:50]line [05:27:50]written 0, free lines is 3336 [05:27:50]MH_Cut [05:27:50]Write to MH i2c: D1 01 00 2C F5 01 F3 [05:27:50]Write i2c OK [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: D1 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: D1 01 00 [05:27:50]MH_I2C_Read... [05:27:50]Read from MH i2c: D1 01 00 2C F5 00 F2 [05:27:50]Write to MH i2c: 01 00 00 2D F5 22 [05:27:50]Write i2c OK [05:27:50]MH_I2C_Read... [05:27:50]OFD Sender: No OFD packet to send [05:27:51]*** Cut start [05:27:51]*** Purtial cut [05:27:51]*** Stage 1: CUTSNS_PIN = 1 [05:27:51]Read from MH i2c: 01 [05:27:51]MH_I2C_Read... [05:27:51]*** Stop cut motor [05:27:51]*** Cut end [05:27:51]Read from MH i2c: 01 07 00 [05:27:51]MH_I2C_Read... [05:27:51]Read from MH i2c: 01 07 00 2D F5 00 00 00 00 00 FF 0F 37 [05:27:51]process_action close_receipt done [05:27:51]requested_data is exist [05:27:51]produce_requested_data [05:27:51]requested_item fm.sn is exist - process it [05:27:51]wFMCommunicate request_size=4 [05:27:51]MH_SAM_APDU [05:27:51]CAPDU: 80 11 00 00 [05:27:51]Write to MH i2c: E2 08 00 2E F5 80 11 00 00 00 00 00 00 9D [05:27:51]Write i2c OK [05:27:51]MH_I2C_Read... [05:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:27:51]Read from MH i2c: E2 [05:27:51]MH_I2C_Read... [05:27:51]Read from MH i2c: E2 17 00 [05:27:51]MH_I2C_Read... [05:27:51]Read from MH i2c: E2 17 00 2E F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FD [05:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:27:51]wFMCommunicate OK [05:27:51]requested_item fd.num is exist - process it [05:27:51]SAM_PROTO_GetFieldsCounters [05:27:51]wFMCommunicate request_size=4 [05:27:51]MH_SAM_APDU [05:27:51]CAPDU: 80 13 00 00 [05:27:51]Write to MH i2c: E2 08 00 2F F5 80 13 00 00 00 00 00 00 A0 [05:27:51]Write i2c OK [05:27:51]MH_I2C_Read... [05:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:27:51]Read from MH i2c: E2 [05:27:51]MH_I2C_Read... [05:27:51]Read from MH i2c: E2 62 00 [05:27:51]MH_I2C_Read... [05:27:51]Read from MH i2c: E2 62 00 2F F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 39 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [05:27:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 39 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:27:51]wFMCommunicate OK [05:27:51]SAM_PROTO_GetFieldsCounters done [05:27:51]requested_item shift.num is exist - process it [05:27:51]requested_item shift.opened is exist - process it [05:27:51]req_shift_opened [05:27:51]FM_GetShiftState [05:27:51]SAM_PROTO_GetShiftState [05:27:51]wFMCommunicate request_size=4 [05:27:51]MH_SAM_APDU [05:27:51]CAPDU: 80 13 01 00 [05:27:51]Write to MH i2c: E2 08 00 30 F5 80 13 01 00 00 00 00 00 A2 [05:27:51]Write i2c OK [05:27:51]MH_I2C_Read... [05:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:27:51]Read from MH i2c: E2 [05:27:51]MH_I2C_Read... [05:27:51]Read from MH i2c: E2 0E 00 [05:27:51]MH_I2C_Read... [05:27:51]Read from MH i2c: E2 0E 00 30 F5 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9C [05:27:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:27:51]wFMCommunicate OK [05:27:51]SAM_PROTO_GetShiftState done [05:27:51]FM_GetShiftState done [05:27:51]req_shift_opened done [05:27:51]requested_item shift.open_date is exist - process it [05:27:51]req_shift_open_date [05:27:51]req_shift_open_date done [05:27:51]produce_requested_data done [05:27:51]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162361,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:27:51]process_action_free close_receipt [05:27:51]json_value_free [05:27:51]json_value_free done [05:27:51]process_json_proto returns [05:27:51]Send response to host [05:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162361,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:27:51]free response buf [05:27:51]execute_script done [05:27:51]execute_script returns [05:27:51]free content buf [05:27:51]Sock 8.Close socket [05:27:51]Sock 8.Thread stoped [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:13]recv_with_timeout no data received [05:30:15]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:49]accept exits with 9 [05:30:49]New connection [05:30:49]New thread 3066862948 created [05:30:49]Thread 3067006308 joined [05:30:49]Waiting for new connection... [05:30:49] Sock 9.Parse request [05:30:49]Sock 9.Check first char [05:30:49]Sock 9.First char is OK [05:30:49]request: POST /json_proto HTTP/1.0 [05:30:49]Method: POST [05:30:49]URL: /json_proto [05:30:49]Method is POST - this is cgi request [05:30:49]url: /json_proto [05:30:49]query_string will be loaded in cgi processing [05:30:49]execute_cgi json_proto POST (null) [05:30:49]execute_cgi path=json_proto method=POST [05:30:49]POST find Content-Length [05:30:49]Host: 172.17.39.67:8080 [05:30:49]Content-Length: 683 [05:30:49]Content-Type: application/json [05:30:49] [05:30:49]POST finish read [05:30:49]Found Content-Length = 683 [05:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.920, "sum" : 720.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:49]execute_script... [05:30: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)1318883", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.920, "sum" : 720.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:49]POST & json_proto [05:30:49]process_json_proto [05:30:49]json parsed OK: [05:30:49]protocol is kg_v1.0 [05:30:49]action value=close_receipt [05:30:49]process_action close_receipt [05:30:49]cmd_close_receipt [05:30:49]MH_GetDate [05:30:49]Write to MH i2c: F0 00 00 31 F5 15 [05:30:49]Write i2c OK [05:30:49]MH_I2C_Read... [05:30:49]Read from MH i2c: F0 [05:30:49]MH_I2C_Read... [05:30:49]Read from MH i2c: F0 09 00 [05:30:49]MH_I2C_Read... [05:30:49]Read from MH i2c: F0 09 00 31 F5 00 16 11 92 66 FA E9 8E 66 14 [05:30:49]GetLastDocTimeStamp 1720848480 [05:30:49]current date 1720848662 [05:30:49]FM_GetShiftState [05:30:49]SAM_PROTO_GetShiftState [05:30:49]wFMCommunicate request_size=4 [05:30:49]MH_SAM_APDU [05:30:49]CAPDU: 80 13 01 00 [05:30:49]Write to MH i2c: E2 08 00 32 F5 80 13 01 00 00 00 00 00 A4 [05:30:49]Write i2c OK [05:30:49]MH_I2C_Read... [05:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:49]Read from MH i2c: E2 [05:30:49]MH_I2C_Read... [05:30:49]Read from MH i2c: E2 0E 00 [05:30:49]MH_I2C_Read... [05:30:49]Read from MH i2c: E2 0E 00 32 F5 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9E [05:30:49]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:30:49]wFMCommunicate OK [05:30:49]SAM_PROTO_GetShiftState done [05:30:49]FM_GetShiftState done [05:30:49]opened in 1720828979 [05:30:49]opened+sec_in_day 1720915379 [05:30:49]quantity*price = 72019 [05:30:49]sum+1 = 72020 [05:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.37 НДС 12% : 76.48 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 30 13.07.2024 05:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162362 ФПД: 92029063915849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053102&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162362&fm=92029063915849&tin=02508201610067®Number=0000000000090858&sum=72000 [05:30:50]StoreToDocumentArchive [05:30:50]shift 462 fd 162362 [05:30:50]save to /storage/0462/doc_00162362 [05:30:50]save last doc name /storage/0462/doc_00162362 to /storage/kkm_last_doc_name [05:30:50]save OK [05:30:50]Clear old archive folders... [05:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:30:50]tlvbuf is 016FF0C0 [05:30:50]SAM_PROTO_ClearQueue [05:30:50]wFMCommunicate request_size=4 [05:30:50]MH_SAM_APDU [05:30:50]CAPDU: 80 09 00 00 [05:30:50]Write to MH i2c: E2 08 00 3F F5 80 09 00 00 00 00 00 00 A6 [05:30:50]Write i2c OK [05:30:50]MH_I2C_Read... [05:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:50]Read from MH i2c: E2 [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: E2 03 00 [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: E2 03 00 3F F5 00 90 00 A8 [05:30:50]RAPDU: 90 00 [05:30:50]wFMCommunicate OK [05:30:50]SAM_PROTO_ClearQueue done [05:30:50]KKMCreateOFDPacket [05:30:50]OFDProtocolAddRootSTLVToBuf [05:30:50]FM_MakeSignedData [05:30:50]FM_MakeSignedData [05:30:50]SAM_PROTO_SignData [05:30:50]wFMCommunicate request_size=4 [05:30:50]MH_SAM_APDU [05:30:50]CAPDU: 80 0D 01 02 [05:30:50]Write to MH i2c: E2 08 00 40 F5 80 0D 01 02 00 00 00 00 AE [05:30:50]Write i2c OK [05:30:50]MH_I2C_Read... [05:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:50]Read from MH i2c: E2 [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: E2 03 00 [05:30:50]MH_I2C_Read... [05:30:50]Read from MH i2c: E2 03 00 40 F5 00 90 00 A9 [05:30:50]RAPDU: 90 00 [05:30:50]wFMCommunicate OK [05:30:50]wFMCommunicate request_size=255 [05:30:50]MH_SAM_APDU [05:30:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 16 11 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7A 02 00 35 04 06 00 [05:30:50]Write to MH i2c: E2 02 01 41 F5 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 16 11 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7A 02 00 35 04 06 00 00 00 C2 [05:30:50]Write i2c OK [05:30:50]MH_I2C_Read... [05:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:51]Read from MH i2c: E2 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 03 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 03 00 41 F5 00 90 00 AA [05:30:51]RAPDU: 90 00 [05:30:51]wFMCommunicate OK [05:30:51]wFMCommunicate request_size=11 [05:30:51]MH_SAM_APDU [05:30:51]CAPDU: 80 0D 02 02 06 53 B3 2F A9 E9 49 [05:30:51]Write to MH i2c: E2 0E 00 42 F5 80 0D 02 02 06 00 53 B3 2F A9 E9 49 00 00 CD [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:51]OFD Sender: No OFD packet to send [05:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:51]Read from MH i2c: E2 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 03 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 03 00 42 F5 00 90 00 AB [05:30:51]RAPDU: 90 00 [05:30:51]wFMCommunicate OK [05:30:51]wFMCommunicate request_size=4 [05:30:51]MH_SAM_APDU [05:30:51]CAPDU: 80 0D 03 02 [05:30:51]Write to MH i2c: E2 08 00 43 F5 80 0D 03 02 00 00 00 00 B3 [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:51]Read from MH i2c: E2 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 0B 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 0B 00 43 F5 00 CE 10 68 C5 68 76 C7 95 90 00 F9 [05:30:51]RAPDU: CE 10 68 C5 68 76 C7 95 90 00 [05:30:51]wFMCommunicate OK [05:30:51]SAM_PROTO_SignData done [05:30:51]FM_MakeSignedData done [05:30:51]CreateOFDProtocolMessage [05:30:51]wFMCommunicate request_size=4 [05:30:51]MH_SAM_APDU [05:30:51]CAPDU: 80 11 00 00 [05:30:51]Write to MH i2c: E2 08 00 44 F5 80 11 00 00 00 00 00 00 B3 [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:51]Read from MH i2c: E2 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 17 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: E2 17 00 44 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 13 [05:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:30:51]wFMCommunicate OK [05:30:51]CreateOFDProtocolMessage done [05:30:51]OFDSenderStorePacket 162362 [05:30:51]StoreOFDPacket docnum=162362 [05:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F3 A8 08 01 A1 CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 16 11 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7A 02 00 35 04 06 00 53 B3 2F A9 E9 49 CE 10 68 C5 68 76 C7 95 [05:30:51]CheckFolder [05:30:51]dirname=/storage/ofd_packets [05:30:51]CheckFolder done [05:30:51]ProducePacketName [05:30:51]name=ofd_packets/00162362 [05:30:51]NVStorageSaveData ofd_packets/00162362 [05:30:51]File name is /storage/ofd_packets/00162362 [05:30:51]Write 302 bytes [05:30:51]NVStorageSaveData done [05:30:51]OFDSenderStorePacket done [05:30:51]KKMCreateOFDPacket done [05:30:51]NVStorageSaveData kkm_last_timestamp [05:30:51]File name is /storage/kkm_last_timestamp [05:30:51]Write 4 bytes [05:30:51]NVStorageSaveData done [05:30:51]ExternCall_PrintAddStr [05:30:51]wPrintStart [05:30:51]Write to MH i2c: 01 00 00 45 F5 3A [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: 01 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: 01 07 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: 01 07 00 45 F5 00 00 00 00 00 FF 0F 4F [05:30:51]RasterBufferAndPrint [05:30:51]line Счет N : (1)1318883 [05:30:51]line ИНН: 02508201610067 [05:30:51]line Контрольно-Кассовый Чек [05:30:51]line ПРОДАЖА [05:30:51]line ТРК (МРК, ГНК) : 21 [05:30:51]line Товар: 2710194210 [05:30:51]line ДТ(л)-К-5 [05:30:51]line 9.920 * 72.60 [05:30:51]line = 720.19 [05:30:51]line НДС 12% НСП 1% [05:30:51]line > о реализуемом товаре [05:30:51]line ОКРУГЛЕНИЕ: -0.19 [05:30:51]line ИТОГО: 720.00 [05:30:51]line Внесено: 720.00 [05:30:51]line СДАЧА: 0.00 [05:30:51]line НСП 1% : 6.37 [05:30:51]line НДС 12% : 76.48 [05:30:51]line Наличными: 720.00 [05:30:51]line Безнал.: 0.00 [05:30:51]line Место: АЗС № 140 "Партнер Нефть" [05:30:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:30:51]line СНО: Общий режим [05:30:51]line Чек 30 13.07.2024 05:31 [05:30:51]line Смена: 462 ФФД: 1.0 [05:30:51]line ЗНМ: 0300000129 [05:30:51]line РНМ: 0000000000090858 [05:30:51]line Версия ККМ: 001 [05:30:51]line ФМ: 0000000000874899 [05:30:51]line ФД: 162362 [05:30:51]line ФПД: 92029063915849 [05:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053102&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162362&fm=92029063915849&tin=02508201610067®Number=0000000000090858&sum=72000 [05:30:51]written 0, free lines is 4095 [05:30:51]OFD Sender: Processing packet 162362 [packets to send 105, broken 104] [05:30:51]ProducePacketName [05:30:51]name=ofd_packets/00162362 [05:30:51]OFD Sender: To server: pG, [05:30:51]CommunicateWithHost lk.salyk.kg:30040 [05:30:51]ConnectInit lk.salyk.kg [05:30:51]Connected sock=8 [05:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F3 A8 08 01 A1 CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 26 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 53 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 16 11 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7A 02 00 35 04 06 00 53 B3 2F A9 E9 49 CE 10 68 C5 68 76 C7 95 [05:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D0 3D 47 00 8F 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 34 38 39 39 10 04 04 00 3A 7A 02 00 F4 03 04 00 2B BD 91 66 B6 04 01 00 00 0D 6D 30 79 76 41 E5 15 [05:30:51]CommunicateWithHost err = 0 [05:30:51]CheckOFDResponse [05:30:51]1017 (14) - 77093643461234 [05:30:51]1041 (16) - 0000000000874899 [05:30:51]1040 (4) - 162362 [05:30:51]1012 (4) - 12.07.2024 23:32 [05:30:51]1206 (1) - 0 [05:30:51]OFD Sender: Remove packet 162362 [05:30:51]ProducePacketName [05:30:51]name=ofd_packets/00162362 [05:30:51]NVStorageDeleteData [05:30:51]Write to MH i2c: 01 00 00 70 F5 65 [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: 01 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: 01 07 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: 01 07 00 70 F5 00 00 00 00 00 E5 0C 5D [05:30:51]RasterBufferAndPrint [05:30:51]line [05:30:51]line [05:30:51]line [05:30:51]line [05:30:51]line [05:30:51]written 0, free lines is 3310 [05:30:51]MH_Cut [05:30:51]Write to MH i2c: D1 01 00 77 F5 01 3E [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: D1 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: D1 01 00 [05:30:51]MH_I2C_Read... [05:30:51]Read from MH i2c: D1 01 00 77 F5 00 3D [05:30:51]Write to MH i2c: 01 00 00 78 F5 6D [05:30:51]Write i2c OK [05:30:51]MH_I2C_Read... [05:30:52]OFD Sender: No OFD packet to send [05:30:52]*** Cut start [05:30:52]*** Purtial cut [05:30:52]*** CUTSNS_PIN = 0 [05:30:52]*** Stage 1: CUTSNS_PIN = 1 [05:30:54]Read from MH i2c: 01 [05:30:54]MH_I2C_Read... [05:30:54]*** Stop cut motor [05:30:54]*** Cut end [05:30:54]Read from MH i2c: 01 07 00 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: 01 07 00 78 F5 00 00 00 00 00 FF 0F 82 [05:30:54]process_action close_receipt done [05:30:54]requested_data is exist [05:30:54]produce_requested_data [05:30:54]requested_item fm.sn is exist - process it [05:30:54]wFMCommunicate request_size=4 [05:30:54]MH_SAM_APDU [05:30:54]CAPDU: 80 11 00 00 [05:30:54]Write to MH i2c: E2 08 00 79 F5 80 11 00 00 00 00 00 00 E8 [05:30:54]Write i2c OK [05:30:54]MH_I2C_Read... [05:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:54]Read from MH i2c: E2 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 17 00 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 17 00 79 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 48 [05:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:30:54]wFMCommunicate OK [05:30:54]requested_item fd.num is exist - process it [05:30:54]SAM_PROTO_GetFieldsCounters [05:30:54]wFMCommunicate request_size=4 [05:30:54]MH_SAM_APDU [05:30:54]CAPDU: 80 13 00 00 [05:30:54]Write to MH i2c: E2 08 00 7A F5 80 13 00 00 00 00 00 00 EB [05:30:54]Write i2c OK [05:30:54]MH_I2C_Read... [05:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:54]Read from MH i2c: E2 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 62 00 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 62 00 7A F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [05:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:30:54]wFMCommunicate OK [05:30:54]SAM_PROTO_GetFieldsCounters done [05:30:54]requested_item shift.num is exist - process it [05:30:54]requested_item shift.opened is exist - process it [05:30:54]req_shift_opened [05:30:54]FM_GetShiftState [05:30:54]SAM_PROTO_GetShiftState [05:30:54]wFMCommunicate request_size=4 [05:30:54]MH_SAM_APDU [05:30:54]CAPDU: 80 13 01 00 [05:30:54]Write to MH i2c: E2 08 00 7B F5 80 13 01 00 00 00 00 00 ED [05:30:54]Write i2c OK [05:30:54]MH_I2C_Read... [05:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:54]Read from MH i2c: E2 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 0E 00 [05:30:54]MH_I2C_Read... [05:30:54]Read from MH i2c: E2 0E 00 7B F5 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E7 [05:30:54]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:30:54]wFMCommunicate OK [05:30:54]SAM_PROTO_GetShiftState done [05:30:54]FM_GetShiftState done [05:30:54]req_shift_opened done [05:30:54]requested_item shift.open_date is exist - process it [05:30:54]req_shift_open_date [05:30:54]req_shift_open_date done [05:30:54]produce_requested_data done [05:30:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162362,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:30:54]process_action_free close_receipt [05:30:54]json_value_free [05:30:54]json_value_free done [05:30:54]process_json_proto returns [05:30:54]Send response to host [05:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162362,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:30:54]free response buf [05:30:54]execute_script done [05:30:54]execute_script returns [05:30:54]free content buf [05:30:54]Sock 9.Close socket [05:30:54]Sock 9.Thread stoped [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:36:58]accept exits with 10 [05:36:58]New connection [05:36:58]New thread 3067006308 created [05:36:58]Thread 3066862948 joined [05:36:58]Waiting for new connection... [05:36:58] Sock 10.Parse request [05:36:58]Sock 10.Check first char [05:36:58]Sock 10.First char is OK [05:36:58]request: POST /json_proto HTTP/1.0 [05:36:58]Method: POST [05:36:58]URL: /json_proto [05:36:58]Method is POST - this is cgi request [05:36:58]url: /json_proto [05:36:58]query_string will be loaded in cgi processing [05:36:58]execute_cgi json_proto POST (null) [05:36:58]execute_cgi path=json_proto method=POST [05:36:58]POST find Content-Length [05:36:58]Host: 172.17.39.67:8080 [05:36:58]Content-Length: 678 [05:36:58]Content-Type: application/json [05:36:58] [05:36:58]POST finish read [05:36:58]Found Content-Length = 678 [05:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:58]execute_script... [05:36:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318884", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:36:58]POST & json_proto [05:36:58]process_json_proto [05:36:58]json parsed OK: [05:36:58]protocol is kg_v1.0 [05:36:58]action value=close_receipt [05:36:58]process_action close_receipt [05:36:58]cmd_close_receipt [05:36:58]MH_GetDate [05:36:58]Write to MH i2c: F0 00 00 7C F5 60 [05:36:58]Write i2c OK [05:36:58]MH_I2C_Read... [05:36:58]Read from MH i2c: F0 [05:36:58]MH_I2C_Read... [05:36:58]Read from MH i2c: F0 09 00 [05:36:58]MH_I2C_Read... [05:36:58]Read from MH i2c: F0 09 00 7C F5 00 87 12 92 66 FA E9 8E 66 D1 [05:36:58]GetLastDocTimeStamp 1720848662 [05:36:58]current date 1720849031 [05:36:58]FM_GetShiftState [05:36:58]SAM_PROTO_GetShiftState [05:36:58]wFMCommunicate request_size=4 [05:36:58]MH_SAM_APDU [05:36:58]CAPDU: 80 13 01 00 [05:36:58]Write to MH i2c: E2 08 00 7D F5 80 13 01 00 00 00 00 00 EF [05:36:58]Write i2c OK [05:36:58]MH_I2C_Read... [05:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:36:58]Read from MH i2c: E2 [05:36:58]MH_I2C_Read... [05:36:58]Read from MH i2c: E2 0E 00 [05:36:58]MH_I2C_Read... [05:36:58]Read from MH i2c: E2 0E 00 7D F5 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E9 [05:36:58]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:36:58]wFMCommunicate OK [05:36:58]SAM_PROTO_GetShiftState done [05:36:58]FM_GetShiftState done [05:36:58]opened in 1720828979 [05:36:58]opened+sec_in_day 1720915379 [05:36:58]quantity*price = 50056 [05:36:58]sum+1 = 50058 [05:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 31 13.07.2024 05:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162363 ФПД: 98178329975012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053711&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162363&fm=98178329975012&tin=02508201610067®Number=0000000000090858&sum=50000 [05:36:59]StoreToDocumentArchive [05:36:59]shift 462 fd 162363 [05:36:59]save to /storage/0462/doc_00162363 [05:36:59]save last doc name /storage/0462/doc_00162363 to /storage/kkm_last_doc_name [05:36:59]save OK [05:36:59]Clear old archive folders... [05:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:36:59]tlvbuf is 01747930 [05:36:59]SAM_PROTO_ClearQueue [05:36:59]wFMCommunicate request_size=4 [05:36:59]MH_SAM_APDU [05:36:59]CAPDU: 80 09 00 00 [05:36:59]Write to MH i2c: E2 08 00 8A F5 80 09 00 00 00 00 00 00 F1 [05:36:59]Write i2c OK [05:36:59]MH_I2C_Read... [05:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:36:59]Read from MH i2c: E2 [05:36:59]MH_I2C_Read... [05:36:59]Read from MH i2c: E2 03 00 [05:36:59]MH_I2C_Read... [05:36:59]Read from MH i2c: E2 03 00 8A F5 00 90 00 F3 [05:36:59]RAPDU: 90 00 [05:36:59]wFMCommunicate OK [05:36:59]SAM_PROTO_ClearQueue done [05:36:59]KKMCreateOFDPacket [05:36:59]OFDProtocolAddRootSTLVToBuf [05:36:59]FM_MakeSignedData [05:36:59]FM_MakeSignedData [05:36:59]SAM_PROTO_SignData [05:36:59]wFMCommunicate request_size=4 [05:36:59]MH_SAM_APDU [05:36:59]CAPDU: 80 0D 01 02 [05:36:59]Write to MH i2c: E2 08 00 8B F5 80 0D 01 02 00 00 00 00 F9 [05:36:59]Write i2c OK [05:36:59]MH_I2C_Read... [05:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:36:59]Read from MH i2c: E2 [05:36:59]MH_I2C_Read... [05:36:59]Read from MH i2c: E2 03 00 [05:36:59]MH_I2C_Read... [05:36:59]Read from MH i2c: E2 03 00 8B F5 00 90 00 F4 [05:36:59]RAPDU: 90 00 [05:36:59]wFMCommunicate OK [05:36:59]wFMCommunicate request_size=255 [05:36:59]MH_SAM_APDU [05:36:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 87 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7A 02 00 35 04 06 00 59 [05:36:59]Write to MH i2c: E2 02 01 8C F5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 87 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7A 02 00 35 04 06 00 59 00 00 44 [05:36:59]Write i2c OK [05:36:59]MH_I2C_Read... [05:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:00]Read from MH i2c: E2 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: E2 03 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: E2 03 00 8C F5 00 90 00 F5 [05:37:00]RAPDU: 90 00 [05:37:00]wFMCommunicate OK [05:37:00]wFMCommunicate request_size=10 [05:37:00]MH_SAM_APDU [05:37:00]CAPDU: 80 0D 02 02 05 4A EC 7B 98 E4 [05:37:00]Write to MH i2c: E2 0D 00 8D F5 80 0D 02 02 05 00 4A EC 7B 98 E4 00 00 33 [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: E2 [05:37:00]MH_I2C_Read... [05:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:00]Read from MH i2c: E2 03 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: E2 03 00 8D F5 00 90 00 F6 [05:37:00]RAPDU: 90 00 [05:37:00]wFMCommunicate OK [05:37:00]wFMCommunicate request_size=4 [05:37:00]MH_SAM_APDU [05:37:00]CAPDU: 80 0D 03 02 [05:37:00]Write to MH i2c: E2 08 00 8E F5 80 0D 03 02 00 00 00 00 FE [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:37:00]Read from MH i2c: E2 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: E2 0B 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: E2 0B 00 8E F5 00 E9 F6 24 0C A5 E1 29 F5 90 00 B2 [05:37:00]RAPDU: E9 F6 24 0C A5 E1 29 F5 90 00 [05:37:00]wFMCommunicate OK [05:37:00]SAM_PROTO_SignData done [05:37:00]FM_MakeSignedData done [05:37:00]CreateOFDProtocolMessage [05:37:00]wFMCommunicate request_size=4 [05:37:00]MH_SAM_APDU [05:37:00]CAPDU: 80 11 00 00 [05:37:00]Write to MH i2c: E2 08 00 8F F5 80 11 00 00 00 00 00 00 FE [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:00]Read from MH i2c: E2 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: E2 17 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: E2 17 00 8F F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5E [05:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:37:00]wFMCommunicate OK [05:37:00]CreateOFDProtocolMessage done [05:37:00]OFDSenderStorePacket 162363 [05:37:00]StoreOFDPacket docnum=162363 [05:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B1 18 07 01 78 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 87 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7A 02 00 35 04 06 00 59 4A EC 7B 98 E4 E9 F6 24 0C A5 E1 29 F5 [05:37:00]CheckFolder [05:37:00]dirname=/storage/ofd_packets [05:37:00]CheckFolder done [05:37:00]ProducePacketName [05:37:00]name=ofd_packets/00162363 [05:37:00]NVStorageSaveData ofd_packets/00162363 [05:37:00]File name is /storage/ofd_packets/00162363 [05:37:00]Write 301 bytes [05:37:00]NVStorageSaveData done [05:37:00]OFDSenderStorePacket done [05:37:00]KKMCreateOFDPacket done [05:37:00]NVStorageSaveData kkm_last_timestamp [05:37:00]File name is /storage/kkm_last_timestamp [05:37:00]Write 4 bytes [05:37:00]NVStorageSaveData done [05:37:00]ExternCall_PrintAddStr [05:37:00]wPrintStart [05:37:00]Write to MH i2c: 01 00 00 90 F5 85 [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 07 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 07 00 90 F5 00 00 00 00 00 FF 0F 9A [05:37:00]RasterBufferAndPrint [05:37:00]line Счет N : (1)1318884 [05:37:00]line ИНН: 02508201610067 [05:37:00]line Контрольно-Кассовый Чек [05:37:00]line ПРОДАЖА [05:37:00]line ТРК (МРК, ГНК) : 43 [05:37:00]line Товар: 2710124130 [05:37:00]line Аи-92-К-5 [05:37:00]line 7.550 * 66.30 [05:37:00]line = 500.57 [05:37:00]line НДС 12% НСП 1% [05:37:00]line > о реализуемом товаре [05:37:00]line ОКРУГЛЕНИЕ: -0.57 [05:37:00]line ИТОГО: 500.00 [05:37:00]line Внесено: 500.00 [05:37:00]line СДАЧА: 0.00 [05:37:00]line НСП 1% : 4.43 [05:37:00]line НДС 12% : 53.16 [05:37:00]line Наличными: 500.00 [05:37:00]line Безнал.: 0.00 [05:37:00]line Место: АЗС № 140 "Партнер Нефть" [05:37:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:37:00]line СНО: Общий режим [05:37:00]line Чек 31 13.07.2024 05:37 [05:37:00]line Смена: 462 ФФД: 1.0 [05:37:00]line ЗНМ: 0300000129 [05:37:00]line РНМ: 0000000000090858 [05:37:00]line Версия ККМ: 001 [05:37:00]line ФМ: 0000000000874899 [05:37:00]line ФД: 162363 [05:37:00]line ФПД: 98178329975012 [05:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053711&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162363&fm=98178329975012&tin=02508201610067®Number=0000000000090858&sum=50000 [05:37:00]written 0, free lines is 4095 [05:37:00]OFD Sender: Processing packet 162363 [packets to send 105, broken 104] [05:37:00]ProducePacketName [05:37:00]name=ofd_packets/00162363 [05:37:00]OFD Sender: To server: pG, [05:37:00]CommunicateWithHost lk.salyk.kg:30040 [05:37:00]ConnectInit lk.salyk.kg [05:37:00]Connected sock=9 [05:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B1 18 07 01 78 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 87 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7A 02 00 35 04 06 00 59 4A EC 7B 98 E4 E9 F6 24 0C A5 E1 29 F5 [05:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CE F2 47 00 52 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7A 02 00 F4 03 04 00 9C BE 91 66 B6 04 01 00 00 DE 1F 0D A9 AF C4 CE E6 [05:37:00]CommunicateWithHost err = 0 [05:37:00]CheckOFDResponse [05:37:00]1017 (14) - 77093643461234 [05:37:00]1041 (16) - 0000000000874899 [05:37:00]1040 (4) - 162363 [05:37:00]1012 (4) - 12.07.2024 23:39 [05:37:00]1206 (1) - 0 [05:37:00]OFD Sender: Remove packet 162363 [05:37:00]ProducePacketName [05:37:00]name=ofd_packets/00162363 [05:37:00]NVStorageDeleteData [05:37:00]Write to MH i2c: 01 00 00 BB F5 B0 [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 07 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: 01 07 00 BB F5 00 00 00 00 00 E8 0C AB [05:37:00]RasterBufferAndPrint [05:37:00]line [05:37:00]line [05:37:00]line [05:37:00]line [05:37:00]line [05:37:00]written 0, free lines is 3310 [05:37:00]MH_Cut [05:37:00]Write to MH i2c: D1 01 00 C2 F5 01 89 [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: D1 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: D1 01 00 [05:37:00]MH_I2C_Read... [05:37:00]Read from MH i2c: D1 01 00 C2 F5 00 88 [05:37:00]Write to MH i2c: 01 00 00 C3 F5 B8 [05:37:00]Write i2c OK [05:37:00]MH_I2C_Read... [05:37:01]OFD Sender: No OFD packet to send [05:37:01]*** Cut start [05:37:01]*** Purtial cut [05:37:01]*** Stage 1: CUTSNS_PIN = 1 [05:37:01]Read from MH i2c: 01 [05:37:01]MH_I2C_Read... [05:37:01]*** Stop cut motor [05:37:01]*** Cut end [05:37:01]Read from MH i2c: 01 07 00 [05:37:01]MH_I2C_Read... [05:37:01]Read from MH i2c: 01 07 00 C3 F5 00 00 00 00 00 FF 0F CD [05:37:01]process_action close_receipt done [05:37:01]requested_data is exist [05:37:01]produce_requested_data [05:37:01]requested_item fm.sn is exist - process it [05:37:01]wFMCommunicate request_size=4 [05:37:01]MH_SAM_APDU [05:37:01]CAPDU: 80 11 00 00 [05:37:01]Write to MH i2c: E2 08 00 C4 F5 80 11 00 00 00 00 00 00 33 [05:37:01]Write i2c OK [05:37:01]MH_I2C_Read... [05:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:01]Read from MH i2c: E2 [05:37:01]MH_I2C_Read... [05:37:01]Read from MH i2c: E2 17 00 [05:37:01]MH_I2C_Read... [05:37:01]Read from MH i2c: E2 17 00 C4 F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 93 [05:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:37:01]wFMCommunicate OK [05:37:01]requested_item fd.num is exist - process it [05:37:01]SAM_PROTO_GetFieldsCounters [05:37:01]wFMCommunicate request_size=4 [05:37:01]MH_SAM_APDU [05:37:01]CAPDU: 80 13 00 00 [05:37:01]Write to MH i2c: E2 08 00 C5 F5 80 13 00 00 00 00 00 00 36 [05:37:01]Write i2c OK [05:37:01]MH_I2C_Read... [05:37:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:37:01]Read from MH i2c: E2 [05:37:01]MH_I2C_Read... [05:37:01]Read from MH i2c: E2 62 00 [05:37:01]MH_I2C_Read... [05:37:01]Read from MH i2c: E2 62 00 C5 F5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [05:37:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:37:02]wFMCommunicate OK [05:37:02]SAM_PROTO_GetFieldsCounters done [05:37:02]requested_item shift.num is exist - process it [05:37:02]requested_item shift.opened is exist - process it [05:37:02]req_shift_opened [05:37:02]FM_GetShiftState [05:37:02]SAM_PROTO_GetShiftState [05:37:02]wFMCommunicate request_size=4 [05:37:02]MH_SAM_APDU [05:37:02]CAPDU: 80 13 01 00 [05:37:02]Write to MH i2c: E2 08 00 C6 F5 80 13 01 00 00 00 00 00 38 [05:37:02]Write i2c OK [05:37:02]MH_I2C_Read... [05:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:02]Read from MH i2c: E2 [05:37:02]MH_I2C_Read... [05:37:02]Read from MH i2c: E2 0E 00 [05:37:02]MH_I2C_Read... [05:37:02]Read from MH i2c: E2 0E 00 C6 F5 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 32 [05:37:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:37:02]wFMCommunicate OK [05:37:02]SAM_PROTO_GetShiftState done [05:37:02]FM_GetShiftState done [05:37:02]req_shift_opened done [05:37:02]requested_item shift.open_date is exist - process it [05:37:02]req_shift_open_date [05:37:02]req_shift_open_date done [05:37:02]produce_requested_data done [05:37:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162363,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:37:02]process_action_free close_receipt [05:37:02]json_value_free [05:37:02]json_value_free done [05:37:02]process_json_proto returns [05:37:02]Send response to host [05:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162363,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:37:02]free response buf [05:37:02]execute_script done [05:37:02]execute_script returns [05:37:02]free content buf [05:37:02]Sock 10.Close socket [05:37:02]Sock 10.Thread stoped [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]accept exits with 8 [05:37:21]New connection [05:37:21]New thread 3066862948 created [05:37:21] Sock 8.Parse request [05:37:21]Thread 3067006308 joined [05:37:21]Sock 8.Check first char [05:37:21]Waiting for new connection... [05:37:21]Sock 8.First char is OK [05:37:21]request: POST /json_proto HTTP/1.0 [05:37:21]Method: POST [05:37:21]URL: /json_proto [05:37:21]Method is POST - this is cgi request [05:37:21]url: /json_proto [05:37:21]query_string will be loaded in cgi processing [05:37:21]execute_cgi json_proto POST (null) [05:37:21]execute_cgi path=json_proto method=POST [05:37:21]POST find Content-Length [05:37:21]Host: 172.17.39.67:8080 [05:37:21]Content-Length: 678 [05:37:21]Content-Type: application/json [05:37:21] [05:37:21]POST finish read [05:37:21]Found Content-Length = 678 [05:37:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:21]execute_script... [05:37: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)1318885", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:21]POST & json_proto [05:37:21]process_json_proto [05:37:21]json parsed OK: [05:37:21]protocol is kg_v1.0 [05:37:21]action value=close_receipt [05:37:21]process_action close_receipt [05:37:21]cmd_close_receipt [05:37:21]MH_GetDate [05:37:21]Write to MH i2c: F0 00 00 C7 F5 AB [05:37:21]Write i2c OK [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: F0 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: F0 09 00 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: F0 09 00 C7 F5 00 9D 12 92 66 FA E9 8E 66 32 [05:37:21]GetLastDocTimeStamp 1720849031 [05:37:21]current date 1720849053 [05:37:21]FM_GetShiftState [05:37:21]SAM_PROTO_GetShiftState [05:37:21]wFMCommunicate request_size=4 [05:37:21]MH_SAM_APDU [05:37:21]CAPDU: 80 13 01 00 [05:37:21]Write to MH i2c: E2 08 00 C8 F5 80 13 01 00 00 00 00 00 3A [05:37:21]Write i2c OK [05:37:21]MH_I2C_Read... [05:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:21]Read from MH i2c: E2 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 0E 00 [05:37:21]MH_I2C_Read... [05:37:21]Read from MH i2c: E2 0E 00 C8 F5 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 34 [05:37:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:37:21]wFMCommunicate OK [05:37:21]SAM_PROTO_GetShiftState done [05:37:21]FM_GetShiftState done [05:37:21]opened in 1720828979 [05:37:21]opened+sec_in_day 1720915379 [05:37:21]quantity*price = 50056 [05:37:21]sum+1 = 50058 [05:37:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 32 13.07.2024 05:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162364 ФПД: 79050721409889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053733&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162364&fm=79050721409889&tin=02508201610067®Number=0000000000090858&sum=50000 [05:37:22]StoreToDocumentArchive [05:37:22]shift 462 fd 162364 [05:37:22]save to /storage/0462/doc_00162364 [05:37:22]save last doc name /storage/0462/doc_00162364 to /storage/kkm_last_doc_name [05:37:22]save OK [05:37:22]Clear old archive folders... [05:37:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:37:22]tlvbuf is 019C0540 [05:37:22]SAM_PROTO_ClearQueue [05:37:22]wFMCommunicate request_size=4 [05:37:22]MH_SAM_APDU [05:37:22]CAPDU: 80 09 00 00 [05:37:22]Write to MH i2c: E2 08 00 D5 F5 80 09 00 00 00 00 00 00 3C [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:37:22]Read from MH i2c: E2 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 03 00 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 03 00 D5 F5 00 90 00 3E [05:37:22]RAPDU: 90 00 [05:37:22]wFMCommunicate OK [05:37:22]SAM_PROTO_ClearQueue done [05:37:22]KKMCreateOFDPacket [05:37:22]OFDProtocolAddRootSTLVToBuf [05:37:22]FM_MakeSignedData [05:37:22]FM_MakeSignedData [05:37:22]SAM_PROTO_SignData [05:37:22]wFMCommunicate request_size=4 [05:37:22]MH_SAM_APDU [05:37:22]CAPDU: 80 0D 01 02 [05:37:22]Write to MH i2c: E2 08 00 D6 F5 80 0D 01 02 00 00 00 00 44 [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:37:22]Read from MH i2c: E2 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 03 00 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 03 00 D6 F5 00 90 00 3F [05:37:22]RAPDU: 90 00 [05:37:22]wFMCommunicate OK [05:37:22]wFMCommunicate request_size=255 [05:37:22]MH_SAM_APDU [05:37:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9D 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7A 02 00 35 04 06 00 47 [05:37:22]Write to MH i2c: E2 02 01 D7 F5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9D 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7A 02 00 35 04 06 00 47 00 00 95 [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:22]Read from MH i2c: E2 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 03 00 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 03 00 D7 F5 00 90 00 40 [05:37:22]RAPDU: 90 00 [05:37:22]wFMCommunicate OK [05:37:22]wFMCommunicate request_size=10 [05:37:22]MH_SAM_APDU [05:37:22]CAPDU: 80 0D 02 02 05 E5 6E 2B 3B 61 [05:37:22]Write to MH i2c: E2 0D 00 D8 F5 80 0D 02 02 05 00 E5 6E 2B 3B 61 00 00 6B [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:22]Read from MH i2c: E2 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 03 00 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 03 00 D8 F5 00 90 00 41 [05:37:22]RAPDU: 90 00 [05:37:22]wFMCommunicate OK [05:37:22]wFMCommunicate request_size=4 [05:37:22]MH_SAM_APDU [05:37:22]CAPDU: 80 0D 03 02 [05:37:22]Write to MH i2c: E2 08 00 D9 F5 80 0D 03 02 00 00 00 00 49 [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:37:22]Read from MH i2c: E2 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 0B 00 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 0B 00 D9 F5 00 92 56 6E 1C 93 16 F6 7D 90 00 D8 [05:37:22]RAPDU: 92 56 6E 1C 93 16 F6 7D 90 00 [05:37:22]wFMCommunicate OK [05:37:22]SAM_PROTO_SignData done [05:37:22]FM_MakeSignedData done [05:37:22]CreateOFDProtocolMessage [05:37:22]wFMCommunicate request_size=4 [05:37:22]MH_SAM_APDU [05:37:22]CAPDU: 80 11 00 00 [05:37:22]Write to MH i2c: E2 08 00 DA F5 80 11 00 00 00 00 00 00 49 [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:22]Read from MH i2c: E2 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 17 00 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: E2 17 00 DA F5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A9 [05:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:37:22]wFMCommunicate OK [05:37:22]CreateOFDProtocolMessage done [05:37:22]OFDSenderStorePacket 162364 [05:37:22]StoreOFDPacket docnum=162364 [05:37:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 07 FB 07 01 CE 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9D 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7A 02 00 35 04 06 00 47 E5 6E 2B 3B 61 92 56 6E 1C 93 16 F6 7D [05:37:22]CheckFolder [05:37:22]dirname=/storage/ofd_packets [05:37:22]CheckFolder done [05:37:22]ProducePacketName [05:37:22]name=ofd_packets/00162364 [05:37:22]NVStorageSaveData ofd_packets/00162364 [05:37:22]File name is /storage/ofd_packets/00162364 [05:37:22]Write 301 bytes [05:37:22]NVStorageSaveData done [05:37:22]OFDSenderStorePacket done [05:37:22]KKMCreateOFDPacket done [05:37:22]NVStorageSaveData kkm_last_timestamp [05:37:22]File name is /storage/kkm_last_timestamp [05:37:22]Write 4 bytes [05:37:22]NVStorageSaveData done [05:37:22]ExternCall_PrintAddStr [05:37:22]wPrintStart [05:37:22]Write to MH i2c: 01 00 00 DB F5 D0 [05:37:22]OFD Sender: Processing packet 162364 [packets to send 105, broken 104] [05:37:22]ProducePacketName [05:37:22]name=ofd_packets/00162364 [05:37:22]OFD Sender: To server: pG, [05:37:22]CommunicateWithHost lk.salyk.kg:30040 [05:37:22]ConnectInit lk.salyk.kg [05:37:22]Write i2c OK [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: 01 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: 01 07 00 [05:37:22]MH_I2C_Read... [05:37:22]Read from MH i2c: 01 07 00 DB F5 00 00 00 00 00 FF 0F E5 [05:37:22]RasterBufferAndPrint [05:37:22]line Счет N : (1)1318885 [05:37:22]line ИНН: 02508201610067 [05:37:22]line Контрольно-Кассовый Чек [05:37:22]line ПРОДАЖА [05:37:22]line ТРК (МРК, ГНК) : 33 [05:37:22]line Товар: 2710124130 [05:37:22]line Аи-92-К-5 [05:37:22]line 7.550 * 66.30 [05:37:22]line = 500.57 [05:37:22]line НДС 12% НСП 1% [05:37:22]line > о реализуемом товаре [05:37:22]line ОКРУГЛЕНИЕ: -0.57 [05:37:22]line ИТОГО: 500.00 [05:37:22]line Внесено: 500.00 [05:37:22]line СДАЧА: 0.00 [05:37:22]line НСП 1% : 4.43 [05:37:22]line НДС 12% : 53.16 [05:37:22]line Наличными: 500.00 [05:37:22]line Безнал.: 0.00 [05:37:22]line Место: АЗС № 140 "Партнер Нефть" [05:37:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:37:22]line СНО: Общий режим [05:37:22]line Чек 32 13.07.2024 05:37 [05:37:22]line Смена: 462 ФФД: 1.0 [05:37:22]line ЗНМ: 0300000129 [05:37:22]line РНМ: 0000000000090858 [05:37:22]line Версия ККМ: 001 [05:37:22]line ФМ: 0000000000874899 [05:37:22]line ФД: 162364 [05:37:22]line ФПД: 79050721409889 [05:37:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053733&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162364&fm=79050721409889&tin=02508201610067®Number=0000000000090858&sum=50000 [05:37:22]written 0, free lines is 4095 [05:37:22]Connected sock=10 [05:37:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 07 FB 07 01 CE 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 9D 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7A 02 00 35 04 06 00 47 E5 6E 2B 3B 61 92 56 6E 1C 93 16 F6 7D [05:37:23]Write to MH i2c: 01 00 00 06 F6 FC [05:37:23]Write i2c OK [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: 01 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: 01 07 00 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: 01 07 00 06 F6 00 00 00 00 00 E7 0C F6 [05:37:23]RasterBufferAndPrint [05:37:23]line [05:37:23]line [05:37:23]line [05:37:23]line [05:37:23]line [05:37:23]written 0, free lines is 3312 [05:37:23]MH_Cut [05:37:23]Write to MH i2c: D1 01 00 0D F6 01 D5 [05:37:23]Write i2c OK [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: D1 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: D1 01 00 [05:37:23]MH_I2C_Read... [05:37:23]Read from MH i2c: D1 01 00 0D F6 00 D4 [05:37:23]Write to MH i2c: 01 00 00 0E F6 04 [05:37:23]Write i2c OK [05:37:23]MH_I2C_Read... [05:37:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6E 62 47 00 F5 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7A 02 00 F4 03 04 00 B3 BE 91 66 B6 04 01 00 00 AB 6B 21 A9 47 6B 39 B9 [05:37:23]CommunicateWithHost err = 0 [05:37:23]CheckOFDResponse [05:37:23]1017 (14) - 77093643461234 [05:37:23]1041 (16) - 0000000000874899 [05:37:23]1040 (4) - 162364 [05:37:23]1012 (4) - 12.07.2024 23:39 [05:37:23]1206 (1) - 0 [05:37:23]OFD Sender: Remove packet 162364 [05:37:23]ProducePacketName [05:37:23]name=ofd_packets/00162364 [05:37:23]NVStorageDeleteData [05:37:23]OFD Sender: No OFD packet to send [05:37:24]*** Cut start [05:37:24]*** Purtial cut [05:37:24]*** CUTSNS_PIN = 0 [05:37:24]*** Stage 1: CUTSNS_PIN = 1 [05:37:26]Read from MH i2c: 01 [05:37:26]MH_I2C_Read... [05:37:26]*** Stop cut motor [05:37:26]*** Cut end [05:37:26]Read from MH i2c: 01 07 00 [05:37:26]MH_I2C_Read... [05:37:26]Read from MH i2c: 01 07 00 0E F6 00 00 00 00 00 FF 0F 19 [05:37:26]process_action close_receipt done [05:37:26]requested_data is exist [05:37:26]produce_requested_data [05:37:26]requested_item fm.sn is exist - process it [05:37:26]wFMCommunicate request_size=4 [05:37:26]MH_SAM_APDU [05:37:26]CAPDU: 80 11 00 00 [05:37:26]Write to MH i2c: E2 08 00 0F F6 80 11 00 00 00 00 00 00 7F [05:37:26]Write i2c OK [05:37:26]MH_I2C_Read... [05:37:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:26]Read from MH i2c: E2 [05:37:26]MH_I2C_Read... [05:37:26]Read from MH i2c: E2 17 00 [05:37:26]MH_I2C_Read... [05:37:26]Read from MH i2c: E2 17 00 0F F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DF [05:37:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:37:26]wFMCommunicate OK [05:37:26]requested_item fd.num is exist - process it [05:37:26]SAM_PROTO_GetFieldsCounters [05:37:26]wFMCommunicate request_size=4 [05:37:26]MH_SAM_APDU [05:37:26]CAPDU: 80 13 00 00 [05:37:26]Write to MH i2c: E2 08 00 10 F6 80 13 00 00 00 00 00 00 82 [05:37:26]Write i2c OK [05:37:26]MH_I2C_Read... [05:37:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:37:26]Read from MH i2c: E2 [05:37:26]MH_I2C_Read... [05:37:26]Read from MH i2c: E2 62 00 [05:37:26]MH_I2C_Read... [05:37:26]Read from MH i2c: E2 62 00 10 F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [05: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:37:26]wFMCommunicate OK [05:37:26]SAM_PROTO_GetFieldsCounters done [05:37:26]requested_item shift.num is exist - process it [05:37:26]requested_item shift.opened is exist - process it [05:37:26]req_shift_opened [05:37:26]FM_GetShiftState [05:37:26]SAM_PROTO_GetShiftState [05:37:26]wFMCommunicate request_size=4 [05:37:26]MH_SAM_APDU [05:37:26]CAPDU: 80 13 01 00 [05:37:26]Write to MH i2c: E2 08 00 11 F6 80 13 01 00 00 00 00 00 84 [05:37:26]Write i2c OK [05:37:26]MH_I2C_Read... [05:37:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:26]Read from MH i2c: E2 [05:37:26]MH_I2C_Read... [05:37:26]Read from MH i2c: E2 0E 00 [05:37:26]MH_I2C_Read... [05:37:26]Read from MH i2c: E2 0E 00 11 F6 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7E [05:37:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:37:26]wFMCommunicate OK [05:37:26]SAM_PROTO_GetShiftState done [05:37:26]FM_GetShiftState done [05:37:26]req_shift_opened done [05:37:26]requested_item shift.open_date is exist - process it [05:37:26]req_shift_open_date [05:37:26]req_shift_open_date done [05:37:26]produce_requested_data done [05:37:26]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162364,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:37:26]process_action_free close_receipt [05:37:26]json_value_free [05:37:26]json_value_free done [05:37:26]process_json_proto returns [05:37:26]Send response to host [05:37:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162364,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:37:26]free response buf [05:37:26]execute_script done [05:37:26]execute_script returns [05:37:26]free content buf [05:37:26]Sock 8.Close socket [05:37:26]Sock 8.Thread stoped [05:37:28]OFD Sender: No OFD packet to send [05:37:33]OFD Sender: No OFD packet to send [05:37:38]OFD Sender: No OFD packet to send [05:37:43]OFD Sender: No OFD packet to send [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:00]accept exits with 9 [05:38:00]New connection [05:38:00]New thread 3067006308 created [05:38:00]Thread 3066862948 joined [05:38:00]Waiting for new connection... [05:38:00] Sock 9.Parse request [05:38:00]Sock 9.Check first char [05:38:00]Sock 9.First char is OK [05:38:00]request: POST /json_proto HTTP/1.0 [05:38:00]Method: POST [05:38:00]URL: /json_proto [05:38:00]Method is POST - this is cgi request [05:38:00]url: /json_proto [05:38:00]query_string will be loaded in cgi processing [05:38:00]execute_cgi json_proto POST (null) [05:38:00]execute_cgi path=json_proto method=POST [05:38:00]POST find Content-Length [05:38:00]Host: 172.17.39.67:8080 [05:38:00]Content-Length: 688 [05:38:00]Content-Type: application/json [05:38:00] [05:38:00]POST finish read [05:38:00]Found Content-Length = 688 [05:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:38:00]execute_script... [05:38:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318886", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [05:38:00]POST & json_proto [05:38:00]process_json_proto [05:38:00]json parsed OK: [05:38:00]protocol is kg_v1.0 [05:38:00]action value=close_receipt [05:38:00]process_action close_receipt [05:38:00]cmd_close_receipt [05:38:00]MH_GetDate [05:38:00]Write to MH i2c: F0 00 00 12 F6 F7 [05:38:00]Write i2c OK [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: F0 [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: F0 09 00 [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: F0 09 00 12 F6 00 C5 12 92 66 FA E9 8E 66 A6 [05:38:00]GetLastDocTimeStamp 1720849053 [05:38:00]current date 1720849093 [05:38:00]FM_GetShiftState [05:38:00]SAM_PROTO_GetShiftState [05:38:00]wFMCommunicate request_size=4 [05:38:00]MH_SAM_APDU [05:38:00]CAPDU: 80 13 01 00 [05:38:00]Write to MH i2c: E2 08 00 13 F6 80 13 01 00 00 00 00 00 86 [05:38:00]Write i2c OK [05:38:00]MH_I2C_Read... [05:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:00]Read from MH i2c: E2 [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: E2 0E 00 [05:38:00]MH_I2C_Read... [05:38:00]Read from MH i2c: E2 0E 00 13 F6 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 80 [05:38:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:38:00]wFMCommunicate OK [05:38:00]SAM_PROTO_GetShiftState done [05:38:00]FM_GetShiftState done [05:38:00]opened in 1720828979 [05:38:00]opened+sec_in_day 1720915379 [05:38:00]quantity*price = 100042 [05:38:00]sum+1 = 100044 [05:38:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 33 13.07.2024 05:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162365 ФПД: 104942161928457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053813&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162365&fm=104942161928457&tin=02508201610067®Number=0000000000090858&sum=100000 [05:38:01]StoreToDocumentArchive [05:38:01]shift 462 fd 162365 [05:38:01]save to /storage/0462/doc_00162365 [05:38:01]save last doc name /storage/0462/doc_00162365 to /storage/kkm_last_doc_name [05:38:01]save OK [05:38:01]Clear old archive folders... [05:38:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:38:01]tlvbuf is 01A1CF20 [05:38:01]SAM_PROTO_ClearQueue [05:38:01]wFMCommunicate request_size=4 [05:38:01]MH_SAM_APDU [05:38:01]CAPDU: 80 09 00 00 [05:38:01]Write to MH i2c: E2 08 00 20 F6 80 09 00 00 00 00 00 00 88 [05:38:01]Write i2c OK [05:38:01]MH_I2C_Read... [05:38:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:38:01]Read from MH i2c: E2 [05:38:01]MH_I2C_Read... [05:38:01]Read from MH i2c: E2 03 00 [05:38:01]MH_I2C_Read... [05:38:01]Read from MH i2c: E2 03 00 20 F6 00 90 00 8A [05:38:01]RAPDU: 90 00 [05:38:01]wFMCommunicate OK [05:38:01]SAM_PROTO_ClearQueue done [05:38:01]KKMCreateOFDPacket [05:38:01]OFDProtocolAddRootSTLVToBuf [05:38:01]FM_MakeSignedData [05:38:01]FM_MakeSignedData [05:38:01]SAM_PROTO_SignData [05:38:01]wFMCommunicate request_size=4 [05:38:01]MH_SAM_APDU [05:38:01]CAPDU: 80 0D 01 02 [05:38:01]Write to MH i2c: E2 08 00 21 F6 80 0D 01 02 00 00 00 00 90 [05:38:01]Write i2c OK [05:38:01]MH_I2C_Read... [05:38:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:38:01]Read from MH i2c: E2 [05:38:01]MH_I2C_Read... [05:38:01]Read from MH i2c: E2 03 00 [05:38:01]MH_I2C_Read... [05:38:01]Read from MH i2c: E2 03 00 21 F6 00 90 00 8B [05:38:01]RAPDU: 90 00 [05:38:01]wFMCommunicate OK [05:38:01]wFMCommunicate request_size=255 [05:38:01]MH_SAM_APDU [05:38:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 21 00 00 00 F4 03 04 00 C5 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7A 02 00 35 04 06 00 [05:38:01]Write to MH i2c: E2 02 01 22 F6 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 21 00 00 00 F4 03 04 00 C5 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7A 02 00 35 04 06 00 00 00 A1 [05:38:01]Write i2c OK [05:38:01]MH_I2C_Read... [05:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:02]Read from MH i2c: E2 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 03 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 03 00 22 F6 00 90 00 8C [05:38:02]RAPDU: 90 00 [05:38:02]wFMCommunicate OK [05:38:02]wFMCommunicate request_size=11 [05:38:02]MH_SAM_APDU [05:38:02]CAPDU: 80 0D 02 02 06 5F 71 C0 48 A1 09 [05:38:02]Write to MH i2c: E2 0E 00 23 F6 80 0D 02 02 06 00 5F 71 C0 48 A1 09 00 00 21 [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:02]Read from MH i2c: E2 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 03 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 03 00 23 F6 00 90 00 8D [05:38:02]RAPDU: 90 00 [05:38:02]wFMCommunicate OK [05:38:02]wFMCommunicate request_size=4 [05:38:02]MH_SAM_APDU [05:38:02]CAPDU: 80 0D 03 02 [05:38:02]Write to MH i2c: E2 08 00 24 F6 80 0D 03 02 00 00 00 00 95 [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:38:02]Read from MH i2c: E2 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 0B 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 0B 00 24 F6 00 45 C9 3E 87 2A 12 9C 92 90 00 D3 [05:38:02]RAPDU: 45 C9 3E 87 2A 12 9C 92 90 00 [05:38:02]wFMCommunicate OK [05:38:02]SAM_PROTO_SignData done [05:38:02]FM_MakeSignedData done [05:38:02]CreateOFDProtocolMessage [05:38:02]wFMCommunicate request_size=4 [05:38:02]MH_SAM_APDU [05:38:02]CAPDU: 80 11 00 00 [05:38:02]Write to MH i2c: E2 08 00 25 F6 80 11 00 00 00 00 00 00 95 [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:02]Read from MH i2c: E2 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 17 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: E2 17 00 25 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F5 [05:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:38:02]wFMCommunicate OK [05:38:02]CreateOFDProtocolMessage done [05:38:02]OFDSenderStorePacket 162365 [05:38:02]StoreOFDPacket docnum=162365 [05:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 30 7C 08 01 48 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 21 00 00 00 F4 03 04 00 C5 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7A 02 00 35 04 06 00 5F 71 C0 48 A1 09 45 C9 3E 87 2A 12 9C 92 [05:38:02]CheckFolder [05:38:02]dirname=/storage/ofd_packets [05:38:02]CheckFolder done [05:38:02]ProducePacketName [05:38:02]name=ofd_packets/00162365 [05:38:02]NVStorageSaveData ofd_packets/00162365 [05:38:02]File name is /storage/ofd_packets/00162365 [05:38:02]Write 302 bytes [05:38:02]NVStorageSaveData done [05:38:02]OFDSenderStorePacket done [05:38:02]KKMCreateOFDPacket done [05:38:02]NVStorageSaveData kkm_last_timestamp [05:38:02]File name is /storage/kkm_last_timestamp [05:38:02]Write 4 bytes [05:38:02]NVStorageSaveData done [05:38:02]ExternCall_PrintAddStr [05:38:02]wPrintStart [05:38:02]Write to MH i2c: 01 00 00 26 F6 1C [05:38:02]Write i2c OK [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 07 00 [05:38:02]MH_I2C_Read... [05:38:02]Read from MH i2c: 01 07 00 26 F6 00 00 00 00 00 FF 0F 31 [05:38:02]RasterBufferAndPrint [05:38:02]line Счет N : (1)1318886 [05:38:02]line ИНН: 02508201610067 [05:38:02]line Контрольно-Кассовый Чек [05:38:02]line ПРОДАЖА [05:38:02]line ТРК (МРК, ГНК) : 11 [05:38:02]line Товар: 2710194210 [05:38:02]line ДТ(л)-К-5 [05:38:02]line 13.780 * 72.60 [05:38:02]line = 1000.43 [05:38:02]line НДС 12% НСП 1% [05:38:02]line > о реализуемом товаре [05:38:02]line ОКРУГЛЕНИЕ: -0.43 [05:38:02]line ИТОГО: 1000.00 [05:38:02]line Внесено: 1000.00 [05:38:02]line СДАЧА: 0.00 [05:38:02]line НСП 1% : 8.85 [05:38:02]line НДС 12% : 106.24 [05:38:02]line Наличными: 1000.00 [05:38:02]line Безнал.: 0.00 [05:38:02]line Место: АЗС № 140 "Партнер Нефть" [05:38:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:38:02]line СНО: Общий режим [05:38:02]line Чек 33 13.07.2024 05:38 [05:38:02]line Смена: 462 ФФД: 1.0 [05:38:02]line ЗНМ: 0300000129 [05:38:02]line РНМ: 0000000000090858 [05:38:02]line Версия ККМ: 001 [05:38:02]line ФМ: 0000000000874899 [05:38:02]line ФД: 162365 [05:38:02]line ФПД: 104942161928457 [05:38:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053813&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162365&fm=104942161928457&tin=02508201610067®Number=0000000000090858&sum=100000 [05:38:02]OFD Sender: Processing packet 162365 [packets to send 105, broken 104] [05:38:02]ProducePacketName [05:38:02]name=ofd_packets/00162365 [05:38:02]OFD Sender: To server: pG, [05:38:02]CommunicateWithHost lk.salyk.kg:30040 [05:38:02]ConnectInit lk.salyk.kg [05:38:02]written 0, free lines is 4095 [05:38:02]Connected sock=10 [05:38:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 30 7C 08 01 48 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 21 00 00 00 F4 03 04 00 C5 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7A 02 00 35 04 06 00 5F 71 C0 48 A1 09 45 C9 3E 87 2A 12 9C 92 [05:38:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4B E2 47 00 90 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7A 02 00 F4 03 04 00 DA BE 91 66 B6 04 01 00 00 16 46 B1 A5 6E EE A8 51 [05:38:02]CommunicateWithHost err = 0 [05:38:02]CheckOFDResponse [05:38:02]1017 (14) - 77093643461234 [05:38:02]1041 (16) - 0000000000874899 [05:38:02]1040 (4) - 162365 [05:38:02]1012 (4) - 12.07.2024 23:40 [05:38:02]1206 (1) - 0 [05:38:02]OFD Sender: Remove packet 162365 [05:38:02]ProducePacketName [05:38:02]name=ofd_packets/00162365 [05:38:02]NVStorageDeleteData [05:38:03]Write to MH i2c: 01 00 00 51 F6 47 [05:38:03]Write i2c OK [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: 01 [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: 01 07 00 [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: 01 07 00 51 F6 00 00 00 00 00 E0 0C 3A [05:38:03]RasterBufferAndPrint [05:38:03]line [05:38:03]line [05:38:03]line [05:38:03]line [05:38:03]line [05:38:03]written 0, free lines is 3305 [05:38:03]MH_Cut [05:38:03]Write to MH i2c: D1 01 00 58 F6 01 20 [05:38:03]Write i2c OK [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: D1 [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: D1 01 00 [05:38:03]MH_I2C_Read... [05:38:03]Read from MH i2c: D1 01 00 58 F6 00 1F [05:38:03]Write to MH i2c: 01 00 00 59 F6 4F [05:38:03]Write i2c OK [05:38:03]MH_I2C_Read... [05:38:03]OFD Sender: No OFD packet to send [05:38:03]*** Cut start [05:38:03]*** Purtial cut [05:38:03]*** Stage 1: CUTSNS_PIN = 1 [05:38:04]Read from MH i2c: 01 [05:38:04]MH_I2C_Read... [05:38:04]*** Stop cut motor [05:38:04]*** Cut end [05:38:04]Read from MH i2c: 01 07 00 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: 01 07 00 59 F6 00 00 00 00 00 FF 0F 64 [05:38:04]process_action close_receipt done [05:38:04]requested_data is exist [05:38:04]produce_requested_data [05:38:04]requested_item fm.sn is exist - process it [05:38:04]wFMCommunicate request_size=4 [05:38:04]MH_SAM_APDU [05:38:04]CAPDU: 80 11 00 00 [05:38:04]Write to MH i2c: E2 08 00 5A F6 80 11 00 00 00 00 00 00 CA [05:38:04]Write i2c OK [05:38:04]MH_I2C_Read... [05:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:04]Read from MH i2c: E2 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 17 00 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 17 00 5A F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2A [05:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:38:04]wFMCommunicate OK [05:38:04]requested_item fd.num is exist - process it [05:38:04]SAM_PROTO_GetFieldsCounters [05:38:04]wFMCommunicate request_size=4 [05:38:04]MH_SAM_APDU [05:38:04]CAPDU: 80 13 00 00 [05:38:04]Write to MH i2c: E2 08 00 5B F6 80 13 00 00 00 00 00 00 CD [05:38:04]Write i2c OK [05:38:04]MH_I2C_Read... [05:38:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:38:04]Read from MH i2c: E2 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 62 00 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 62 00 5B F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [05:38:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:38:04]wFMCommunicate OK [05:38:04]SAM_PROTO_GetFieldsCounters done [05:38:04]requested_item shift.num is exist - process it [05:38:04]requested_item shift.opened is exist - process it [05:38:04]req_shift_opened [05:38:04]FM_GetShiftState [05:38:04]SAM_PROTO_GetShiftState [05:38:04]wFMCommunicate request_size=4 [05:38:04]MH_SAM_APDU [05:38:04]CAPDU: 80 13 01 00 [05:38:04]Write to MH i2c: E2 08 00 5C F6 80 13 01 00 00 00 00 00 CF [05:38:04]Write i2c OK [05:38:04]MH_I2C_Read... [05:38:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:04]Read from MH i2c: E2 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 0E 00 [05:38:04]MH_I2C_Read... [05:38:04]Read from MH i2c: E2 0E 00 5C F6 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C9 [05:38:04]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:38:04]wFMCommunicate OK [05:38:04]SAM_PROTO_GetShiftState done [05:38:04]FM_GetShiftState done [05:38:04]req_shift_opened done [05:38:04]requested_item shift.open_date is exist - process it [05:38:04]req_shift_open_date [05:38:04]req_shift_open_date done [05:38:04]produce_requested_data done [05:38:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162365,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:38:04]process_action_free close_receipt [05:38:04]json_value_free [05:38:04]json_value_free done [05:38:04]process_json_proto returns [05:38:04]Send response to host [05:38:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162365,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:38:04]free response buf [05:38:04]execute_script done [05:38:04]execute_script returns [05:38:04]free content buf [05:38:04]Sock 9.Close socket [05:38:04]Sock 9.Thread stoped [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:47]accept exits with 8 [05:38:47]New connection [05:38:47]New thread 3066862948 created [05:38:47]Thread 3067006308 joined [05:38:47]Waiting for new connection... [05:38:47] Sock 8.Parse request [05:38:47]Sock 8.Check first char [05:38:47]Sock 8.First char is OK [05:38:47]request: POST /json_proto HTTP/1.0 [05:38:47]Method: POST [05:38:47]URL: /json_proto [05:38:47]Method is POST - this is cgi request [05:38:47]url: /json_proto [05:38:47]query_string will be loaded in cgi processing [05:38:47]execute_cgi json_proto POST (null) [05:38:47]execute_cgi path=json_proto method=POST [05:38:47]POST find Content-Length [05:38:47]Host: 172.17.39.67:8080 [05:38:47]Content-Length: 678 [05:38:47]Content-Type: application/json [05:38:47] [05:38:47]POST finish read [05:38:47]Found Content-Length = 678 [05:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:47]execute_script... [05:38: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)1318887", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:38:47]POST & json_proto [05:38:47]process_json_proto [05:38:47]json parsed OK: [05:38:47]protocol is kg_v1.0 [05:38:47]action value=close_receipt [05:38:47]process_action close_receipt [05:38:47]cmd_close_receipt [05:38:47]MH_GetDate [05:38:47]Write to MH i2c: F0 00 00 5D F6 42 [05:38:47]Write i2c OK [05:38:47]MH_I2C_Read... [05:38:47]Read from MH i2c: F0 [05:38:47]MH_I2C_Read... [05:38:47]Read from MH i2c: F0 09 00 [05:38:47]MH_I2C_Read... [05:38:47]Read from MH i2c: F0 09 00 5D F6 00 F4 12 92 66 FA E9 8E 66 20 [05:38:47]GetLastDocTimeStamp 1720849093 [05:38:47]current date 1720849140 [05:38:47]FM_GetShiftState [05:38:47]SAM_PROTO_GetShiftState [05:38:47]wFMCommunicate request_size=4 [05:38:47]MH_SAM_APDU [05:38:47]CAPDU: 80 13 01 00 [05:38:47]Write to MH i2c: E2 08 00 5E F6 80 13 01 00 00 00 00 00 D1 [05:38:47]Write i2c OK [05:38:47]MH_I2C_Read... [05:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:47]Read from MH i2c: E2 [05:38:47]MH_I2C_Read... [05:38:47]Read from MH i2c: E2 0E 00 [05:38:47]MH_I2C_Read... [05:38:47]Read from MH i2c: E2 0E 00 5E F6 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CB [05:38:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:38:47]wFMCommunicate OK [05:38:47]SAM_PROTO_GetShiftState done [05:38:47]FM_GetShiftState done [05:38:47]opened in 1720828979 [05:38:47]opened+sec_in_day 1720915379 [05:38:47]quantity*price = 50056 [05:38:47]sum+1 = 50058 [05:38:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 34 13.07.2024 05:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162366 ФПД: 151155396592782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053900&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162366&fm=151155396592782&tin=02508201610067®Number=0000000000090858&sum=50000 [05:38:48]StoreToDocumentArchive [05:38:48]shift 462 fd 162366 [05:38:48]save to /storage/0462/doc_00162366 [05:38:48]save last doc name /storage/0462/doc_00162366 to /storage/kkm_last_doc_name [05:38:48]save OK [05:38:48]Clear old archive folders... [05:38:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:38:48]tlvbuf is 01841C40 [05:38:48]SAM_PROTO_ClearQueue [05:38:48]wFMCommunicate request_size=4 [05:38:48]MH_SAM_APDU [05:38:48]CAPDU: 80 09 00 00 [05:38:48]Write to MH i2c: E2 08 00 6B F6 80 09 00 00 00 00 00 00 D3 [05:38:48]Write i2c OK [05:38:48]MH_I2C_Read... [05:38:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:38:48]Read from MH i2c: E2 [05:38:48]MH_I2C_Read... [05:38:48]Read from MH i2c: E2 03 00 [05:38:48]MH_I2C_Read... [05:38:48]Read from MH i2c: E2 03 00 6B F6 00 90 00 D5 [05:38:48]RAPDU: 90 00 [05:38:48]wFMCommunicate OK [05:38:48]SAM_PROTO_ClearQueue done [05:38:48]KKMCreateOFDPacket [05:38:48]OFDProtocolAddRootSTLVToBuf [05:38:48]FM_MakeSignedData [05:38:48]FM_MakeSignedData [05:38:48]SAM_PROTO_SignData [05:38:48]wFMCommunicate request_size=4 [05:38:48]MH_SAM_APDU [05:38:48]CAPDU: 80 0D 01 02 [05:38:48]Write to MH i2c: E2 08 00 6C F6 80 0D 01 02 00 00 00 00 DB [05:38:48]Write i2c OK [05:38:48]MH_I2C_Read... [05:38:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:38:48]Read from MH i2c: E2 [05:38:48]MH_I2C_Read... [05:38:48]Read from MH i2c: E2 03 00 [05:38:48]MH_I2C_Read... [05:38:48]Read from MH i2c: E2 03 00 6C F6 00 90 00 D6 [05:38:48]RAPDU: 90 00 [05:38:48]wFMCommunicate OK [05:38:48]wFMCommunicate request_size=255 [05:38:48]MH_SAM_APDU [05:38:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F4 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7A 02 00 35 04 06 00 89 [05:38:48]Write to MH i2c: E2 02 01 6D F6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F4 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7A 02 00 35 04 06 00 89 00 00 C9 [05:38:48]Write i2c OK [05:38:48]MH_I2C_Read... [05:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:48]Read from MH i2c: E2 [05:38:48]MH_I2C_Read... [05:38:48]Read from MH i2c: E2 03 00 [05:38:48]MH_I2C_Read... [05:38:48]Read from MH i2c: E2 03 00 6D F6 00 90 00 D7 [05:38:48]RAPDU: 90 00 [05:38:48]wFMCommunicate OK [05:38:48]wFMCommunicate request_size=10 [05:38:48]MH_SAM_APDU [05:38:48]CAPDU: 80 0D 02 02 05 79 9B B8 44 8E [05:38:48]Write to MH i2c: E2 0D 00 6E F6 80 0D 02 02 05 00 79 9B B8 44 8E 00 00 86 [05:38:48]Write i2c OK [05:38:48]MH_I2C_Read... [05:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:38:49]Read from MH i2c: E2 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: E2 03 00 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: E2 03 00 6E F6 00 90 00 D8 [05:38:49]RAPDU: 90 00 [05:38:49]wFMCommunicate OK [05:38:49]wFMCommunicate request_size=4 [05:38:49]MH_SAM_APDU [05:38:49]CAPDU: 80 0D 03 02 [05:38:49]Write to MH i2c: E2 08 00 6F F6 80 0D 03 02 00 00 00 00 E0 [05:38:49]Write i2c OK [05:38:49]MH_I2C_Read... [05:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:38:49]Read from MH i2c: E2 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: E2 0B 00 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: E2 0B 00 6F F6 00 EA 63 E5 6B B1 4A 4A 22 90 00 E5 [05:38:49]RAPDU: EA 63 E5 6B B1 4A 4A 22 90 00 [05:38:49]wFMCommunicate OK [05:38:49]SAM_PROTO_SignData done [05:38:49]FM_MakeSignedData done [05:38:49]CreateOFDProtocolMessage [05:38:49]wFMCommunicate request_size=4 [05:38:49]MH_SAM_APDU [05:38:49]CAPDU: 80 11 00 00 [05:38:49]Write to MH i2c: E2 08 00 70 F6 80 11 00 00 00 00 00 00 E0 [05:38:49]Write i2c OK [05:38:49]MH_I2C_Read... [05:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:49]Read from MH i2c: E2 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: E2 17 00 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: E2 17 00 70 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 40 [05:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:38:49]wFMCommunicate OK [05:38:49]CreateOFDProtocolMessage done [05:38:49]OFDSenderStorePacket 162366 [05:38:49]StoreOFDPacket docnum=162366 [05:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7F F2 07 01 63 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F4 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7A 02 00 35 04 06 00 89 79 9B B8 44 8E EA 63 E5 6B B1 4A 4A 22 [05:38:49]CheckFolder [05:38:49]dirname=/storage/ofd_packets [05:38:49]CheckFolder done [05:38:49]ProducePacketName [05:38:49]name=ofd_packets/00162366 [05:38:49]NVStorageSaveData ofd_packets/00162366 [05:38:49]File name is /storage/ofd_packets/00162366 [05:38:49]Write 301 bytes [05:38:49]NVStorageSaveData done [05:38:49]OFDSenderStorePacket done [05:38:49]KKMCreateOFDPacket done [05:38:49]NVStorageSaveData kkm_last_timestamp [05:38:49]File name is /storage/kkm_last_timestamp [05:38:49]Write 4 bytes [05:38:49]NVStorageSaveData done [05:38:49]ExternCall_PrintAddStr [05:38:49]wPrintStart [05:38:49]Write to MH i2c: 01 00 00 71 F6 67 [05:38:49]Write i2c OK [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: 01 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: 01 07 00 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: 01 07 00 71 F6 00 00 00 00 00 FF 0F 7C [05:38:49]RasterBufferAndPrint [05:38:49]line Счет N : (1)1318887 [05:38:49]line ИНН: 02508201610067 [05:38:49]line Контрольно-Кассовый Чек [05:38:49]line ПРОДАЖА [05:38:49]line ТРК (МРК, ГНК) : 63 [05:38:49]line Товар: 2710124130 [05:38:49]line Аи-92-К-5 [05:38:49]line 7.550 * 66.30 [05:38:49]line = 500.57 [05:38:49]line НДС 12% НСП 1% [05:38:49]line > о реализуемом товаре [05:38:49]line ОКРУГЛЕНИЕ: -0.57 [05:38:49]line ИТОГО: 500.00 [05:38:49]line Внесено: 500.00 [05:38:49]line СДАЧА: 0.00 [05:38:49]line НСП 1% : 4.43 [05:38:49]line НДС 12% : 53.16 [05:38:49]line Наличными: 500.00 [05:38:49]line Безнал.: 0.00 [05:38:49]line Место: АЗС № 140 "Партнер Нефть" [05:38:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:38:49]line СНО: Общий режим [05:38:49]line Чек 34 13.07.2024 05:39 [05:38:49]line Смена: 462 ФФД: 1.0 [05:38:49]line ЗНМ: 0300000129 [05:38:49]line РНМ: 0000000000090858 [05:38:49]line Версия ККМ: 001 [05:38:49]line ФМ: 0000000000874899 [05:38:49]line ФД: 162366 [05:38:49]line ФПД: 151155396592782 [05:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T053900&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162366&fm=151155396592782&tin=02508201610067®Number=0000000000090858&sum=50000 [05:38:49]written 0, free lines is 4095 [05:38:49]OFD Sender: Processing packet 162366 [packets to send 105, broken 104] [05:38:49]ProducePacketName [05:38:49]name=ofd_packets/00162366 [05:38:49]OFD Sender: To server: pG, [05:38:49]CommunicateWithHost lk.salyk.kg:30040 [05:38:49]ConnectInit lk.salyk.kg [05:38:49]Connected sock=10 [05:38:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7F F2 07 01 63 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 F4 12 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7A 02 00 35 04 06 00 89 79 9B B8 44 8E EA 63 E5 6B B1 4A 4A 22 [05:38:49]Write to MH i2c: 01 00 00 9C F6 92 [05:38:49]Write i2c OK [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: 01 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: 01 07 00 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: 01 07 00 9C F6 00 00 00 00 00 E9 0C 8E [05:38:49]RasterBufferAndPrint [05:38:49]line [05:38:49]line [05:38:49]line [05:38:49]line [05:38:49]line [05:38:49]written 0, free lines is 3311 [05:38:49]MH_Cut [05:38:49]Write to MH i2c: D1 01 00 A3 F6 01 6B [05:38:49]Write i2c OK [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: D1 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: D1 01 00 [05:38:49]MH_I2C_Read... [05:38:49]Read from MH i2c: D1 01 00 A3 F6 00 6A [05:38:49]Write to MH i2c: 01 00 00 A4 F6 9A [05:38:49]Write i2c OK [05:38:49]MH_I2C_Read... [05:38:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2A 5B 47 00 43 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7A 02 00 F4 03 04 00 09 BF 91 66 B6 04 01 00 00 1E C5 01 0A 9C 11 6C DF [05:38:49]CommunicateWithHost err = 0 [05:38:49]CheckOFDResponse [05:38:49]1017 (14) - 77093643461234 [05:38:49]1041 (16) - 0000000000874899 [05:38:49]1040 (4) - 162366 [05:38:49]1012 (4) - 12.07.2024 23:40 [05:38:49]1206 (1) - 0 [05:38:49]OFD Sender: Remove packet 162366 [05:38:49]ProducePacketName [05:38:49]name=ofd_packets/00162366 [05:38:49]NVStorageDeleteData [05:38:50]OFD Sender: No OFD packet to send [05:38:50]*** Cut start [05:38:50]*** Purtial cut [05:38:50]*** CUTSNS_PIN = 0 [05:38:50]*** Stage 1: CUTSNS_PIN = 1 [05:38:52]Read from MH i2c: 01 [05:38:52]MH_I2C_Read... [05:38:52]*** Stop cut motor [05:38:52]*** Cut end [05:38:52]Read from MH i2c: 01 07 00 [05:38:52]MH_I2C_Read... [05:38:52]Read from MH i2c: 01 07 00 A4 F6 00 00 00 00 00 FF 0F AF [05:38:52]process_action close_receipt done [05:38:52]requested_data is exist [05:38:52]produce_requested_data [05:38:52]requested_item fm.sn is exist - process it [05:38:52]wFMCommunicate request_size=4 [05:38:52]MH_SAM_APDU [05:38:52]CAPDU: 80 11 00 00 [05:38:52]Write to MH i2c: E2 08 00 A5 F6 80 11 00 00 00 00 00 00 15 [05:38:52]Write i2c OK [05:38:52]MH_I2C_Read... [05:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:38:52]Read from MH i2c: E2 [05:38:52]MH_I2C_Read... [05:38:52]Read from MH i2c: E2 17 00 [05:38:52]MH_I2C_Read... [05:38:52]Read from MH i2c: E2 17 00 A5 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 75 [05:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:38:52]wFMCommunicate OK [05:38:52]requested_item fd.num is exist - process it [05:38:52]SAM_PROTO_GetFieldsCounters [05:38:52]wFMCommunicate request_size=4 [05:38:52]MH_SAM_APDU [05:38:52]CAPDU: 80 13 00 00 [05:38:52]Write to MH i2c: E2 08 00 A6 F6 80 13 00 00 00 00 00 00 18 [05:38:52]Write i2c OK [05:38:52]MH_I2C_Read... [05:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:38:52]Read from MH i2c: E2 [05:38:52]MH_I2C_Read... [05:38:52]Read from MH i2c: E2 62 00 [05:38:52]MH_I2C_Read... [05:38:52]Read from MH i2c: E2 62 00 A6 F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [05:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:38:52]wFMCommunicate OK [05:38:52]SAM_PROTO_GetFieldsCounters done [05:38:52]requested_item shift.num is exist - process it [05:38:52]requested_item shift.opened is exist - process it [05:38:52]req_shift_opened [05:38:52]FM_GetShiftState [05:38:52]SAM_PROTO_GetShiftState [05:38:52]wFMCommunicate request_size=4 [05:38:52]MH_SAM_APDU [05:38:52]CAPDU: 80 13 01 00 [05:38:52]Write to MH i2c: E2 08 00 A7 F6 80 13 01 00 00 00 00 00 1A [05:38:52]Write i2c OK [05:38:52]MH_I2C_Read... [05:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:52]Read from MH i2c: E2 [05:38:52]MH_I2C_Read... [05:38:52]Read from MH i2c: E2 0E 00 [05:38:52]MH_I2C_Read... [05:38:52]Read from MH i2c: E2 0E 00 A7 F6 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 14 [05:38:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:38:52]wFMCommunicate OK [05:38:52]SAM_PROTO_GetShiftState done [05:38:52]FM_GetShiftState done [05:38:52]req_shift_opened done [05:38:52]requested_item shift.open_date is exist - process it [05:38:52]req_shift_open_date [05:38:52]req_shift_open_date done [05:38:52]produce_requested_data done [05:38:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162366,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:38:52]process_action_free close_receipt [05:38:52]json_value_free [05:38:52]json_value_free done [05:38:52]process_json_proto returns [05:38:52]Send response to host [05:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162366,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:38:52]free response buf [05:38:52]execute_script done [05:38:52]execute_script returns [05:38:52]free content buf [05:38:52]Sock 8.Close socket [05:38:52]Sock 8.Thread stoped [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:05]OFD Sender: No OFD packet to send [05:41:10]OFD Sender: No OFD packet to send [05:41:15]OFD Sender: No OFD packet to send [05:41:20]OFD Sender: No OFD packet to send [05:41:25]OFD Sender: No OFD packet to send [05:41:30]OFD Sender: No OFD packet to send [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:55]OFD Sender: No OFD packet to send [05:42:00]OFD Sender: No OFD packet to send [05:42:05]OFD Sender: No OFD packet to send [05:42:10]OFD Sender: No OFD packet to send [05:42:15]OFD Sender: No OFD packet to send [05:42:20]OFD Sender: No OFD packet to send [05:42:25]OFD Sender: No OFD packet to send [05:42:30]OFD Sender: No OFD packet to send [05:42:35]OFD Sender: No OFD packet to send [05:42:40]OFD Sender: No OFD packet to send [05:42:45]OFD Sender: No OFD packet to send [05:42:50]OFD Sender: No OFD packet to send [05:42:55]OFD Sender: No OFD packet to send [05:43:00]OFD Sender: No OFD packet to send [05:43:05]OFD Sender: No OFD packet to send [05:43:10]OFD Sender: No OFD packet to send [05:43:15]OFD Sender: No OFD packet to send [05:43:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:43:57]accept exits with 9 [05:43:57]New connection [05:43:57]New thread 3067006308 created [05:43:57]Thread 3066862948 joined [05:43:57]Waiting for new connection... [05:43:57] Sock 9.Parse request [05:43:57]Sock 9.Check first char [05:43:57]Sock 9.First char is OK [05:43:57]request: POST /json_proto HTTP/1.0 [05:43:57]Method: POST [05:43:57]URL: /json_proto [05:43:57]Method is POST - this is cgi request [05:43:57]url: /json_proto [05:43:57]query_string will be loaded in cgi processing [05:43:57]execute_cgi json_proto POST (null) [05:43:57]execute_cgi path=json_proto method=POST [05:43:57]POST find Content-Length [05:43:57]Host: 172.17.39.67:8080 [05:43:57]Content-Length: 679 [05:43:57]Content-Type: application/json [05:43:57] [05:43:57]POST finish read [05:43:57]Found Content-Length = 679 [05:43:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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" ] } } [05:43:57]execute_script... [05:43: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)1318888", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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" ] } } [05:43:57]POST & json_proto [05:43:57]process_json_proto [05:43:57]json parsed OK: [05:43:57]protocol is kg_v1.0 [05:43:57]action value=close_receipt [05:43:57]process_action close_receipt [05:43:57]cmd_close_receipt [05:43:57]MH_GetDate [05:43:57]Write to MH i2c: F0 00 00 A8 F6 8D [05:43:57]Write i2c OK [05:43:57]MH_I2C_Read... [05:43:57]Read from MH i2c: F0 [05:43:57]MH_I2C_Read... [05:43:57]Read from MH i2c: F0 09 00 [05:43:57]MH_I2C_Read... [05:43:57]Read from MH i2c: F0 09 00 A8 F6 00 2A 14 92 66 FA E9 8E 66 A3 [05:43:57]GetLastDocTimeStamp 1720849140 [05:43:57]current date 1720849450 [05:43:57]FM_GetShiftState [05:43:57]SAM_PROTO_GetShiftState [05:43:57]wFMCommunicate request_size=4 [05:43:57]MH_SAM_APDU [05:43:57]CAPDU: 80 13 01 00 [05:43:57]Write to MH i2c: E2 08 00 A9 F6 80 13 01 00 00 00 00 00 1C [05:43:57]Write i2c OK [05:43:57]MH_I2C_Read... [05:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:57]Read from MH i2c: E2 [05:43:57]MH_I2C_Read... [05:43:57]Read from MH i2c: E2 0E 00 [05:43:57]MH_I2C_Read... [05:43:57]Read from MH i2c: E2 0E 00 A9 F6 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 16 [05:43:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:43:57]wFMCommunicate OK [05:43:57]SAM_PROTO_GetShiftState done [05:43:57]FM_GetShiftState done [05:43:57]opened in 1720828979 [05:43:57]opened+sec_in_day 1720915379 [05:43:57]quantity*price = 70012 [05:43:57]sum+1 = 70014 [05:43:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 35 13.07.2024 05:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162367 ФПД: 58375077675538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T054410&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162367&fm=58375077675538&tin=02508201610067®Number=0000000000090858&sum=70000 [05:43:58]StoreToDocumentArchive [05:43:58]shift 462 fd 162367 [05:43:58]save to /storage/0462/doc_00162367 [05:43:58]save last doc name /storage/0462/doc_00162367 to /storage/kkm_last_doc_name [05:43:58]save OK [05:43:58]Clear old archive folders... [05:43:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:43:58]tlvbuf is 01C68CF0 [05:43:58]SAM_PROTO_ClearQueue [05:43:58]wFMCommunicate request_size=4 [05:43:58]MH_SAM_APDU [05:43:58]CAPDU: 80 09 00 00 [05:43:58]Write to MH i2c: E2 08 00 B6 F6 80 09 00 00 00 00 00 00 1E [05:43:58]Write i2c OK [05:43:58]MH_I2C_Read... [05:43:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:43:58]Read from MH i2c: E2 [05:43:58]MH_I2C_Read... [05:43:58]Read from MH i2c: E2 03 00 [05:43:58]MH_I2C_Read... [05:43:58]Read from MH i2c: E2 03 00 B6 F6 00 90 00 20 [05:43:58]RAPDU: 90 00 [05:43:58]wFMCommunicate OK [05:43:58]SAM_PROTO_ClearQueue done [05:43:58]KKMCreateOFDPacket [05:43:58]OFDProtocolAddRootSTLVToBuf [05:43:58]FM_MakeSignedData [05:43:58]FM_MakeSignedData [05:43:58]SAM_PROTO_SignData [05:43:58]wFMCommunicate request_size=4 [05:43:58]MH_SAM_APDU [05:43:58]CAPDU: 80 0D 01 02 [05:43:58]Write to MH i2c: E2 08 00 B7 F6 80 0D 01 02 00 00 00 00 26 [05:43:58]Write i2c OK [05:43:58]MH_I2C_Read... [05:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:43:59]Read from MH i2c: E2 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 03 00 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 03 00 B7 F6 00 90 00 21 [05:43:59]RAPDU: 90 00 [05:43:59]wFMCommunicate OK [05:43:59]wFMCommunicate request_size=255 [05:43:59]MH_SAM_APDU [05:43:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2A 14 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7A 02 00 35 04 06 00 35 [05:43:59]Write to MH i2c: E2 02 01 B8 F6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2A 14 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7A 02 00 35 04 06 00 35 00 00 EB [05:43:59]Write i2c OK [05:43:59]MH_I2C_Read... [05:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:59]Read from MH i2c: E2 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 03 00 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 03 00 B8 F6 00 90 00 22 [05:43:59]RAPDU: 90 00 [05:43:59]wFMCommunicate OK [05:43:59]wFMCommunicate request_size=10 [05:43:59]MH_SAM_APDU [05:43:59]CAPDU: 80 0D 02 02 05 17 81 C4 C2 12 [05:43:59]Write to MH i2c: E2 0D 00 B9 F6 80 0D 02 02 05 00 17 81 C4 C2 12 00 00 63 [05:43:59]Write i2c OK [05:43:59]MH_I2C_Read... [05:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:43:59]Read from MH i2c: E2 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 03 00 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 03 00 B9 F6 00 90 00 23 [05:43:59]RAPDU: 90 00 [05:43:59]wFMCommunicate OK [05:43:59]wFMCommunicate request_size=4 [05:43:59]MH_SAM_APDU [05:43:59]CAPDU: 80 0D 03 02 [05:43:59]Write to MH i2c: E2 08 00 BA F6 80 0D 03 02 00 00 00 00 2B [05:43:59]Write i2c OK [05:43:59]MH_I2C_Read... [05:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:43:59]Read from MH i2c: E2 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 0B 00 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 0B 00 BA F6 00 2A CC D6 9E 2D EF 36 22 90 00 0A [05:43:59]RAPDU: 2A CC D6 9E 2D EF 36 22 90 00 [05:43:59]wFMCommunicate OK [05:43:59]SAM_PROTO_SignData done [05:43:59]FM_MakeSignedData done [05:43:59]CreateOFDProtocolMessage [05:43:59]wFMCommunicate request_size=4 [05:43:59]MH_SAM_APDU [05:43:59]CAPDU: 80 11 00 00 [05:43:59]Write to MH i2c: E2 08 00 BB F6 80 11 00 00 00 00 00 00 2B [05:43:59]Write i2c OK [05:43:59]MH_I2C_Read... [05:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:59]Read from MH i2c: E2 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 17 00 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: E2 17 00 BB F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8B [05:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:43:59]wFMCommunicate OK [05:43:59]CreateOFDProtocolMessage done [05:43:59]OFDSenderStorePacket 162367 [05:43:59]StoreOFDPacket docnum=162367 [05:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 76 51 07 01 7D 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2A 14 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7A 02 00 35 04 06 00 35 17 81 C4 C2 12 2A CC D6 9E 2D EF 36 22 [05:43:59]CheckFolder [05:43:59]dirname=/storage/ofd_packets [05:43:59]CheckFolder done [05:43:59]ProducePacketName [05:43:59]name=ofd_packets/00162367 [05:43:59]NVStorageSaveData ofd_packets/00162367 [05:43:59]File name is /storage/ofd_packets/00162367 [05:43:59]Write 301 bytes [05:43:59]NVStorageSaveData done [05:43:59]OFDSenderStorePacket done [05:43:59]KKMCreateOFDPacket done [05:43:59]NVStorageSaveData kkm_last_timestamp [05:43:59]File name is /storage/kkm_last_timestamp [05:43:59]Write 4 bytes [05:43:59]NVStorageSaveData done [05:43:59]ExternCall_PrintAddStr [05:43:59]wPrintStart [05:43:59]Write to MH i2c: 01 00 00 BC F6 B2 [05:43:59]Write i2c OK [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: 01 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: 01 07 00 [05:43:59]MH_I2C_Read... [05:43:59]Read from MH i2c: 01 07 00 BC F6 00 00 00 00 00 FF 0F C7 [05:43:59]RasterBufferAndPrint [05:43:59]line Счет N : (1)1318888 [05:43:59]line ИНН: 02508201610067 [05:43:59]line Контрольно-Кассовый Чек [05:43:59]line ПРОДАЖА [05:43:59]line ТРК (МРК, ГНК) : 33 [05:43:59]line Товар: 2710124130 [05:43:59]line Аи-92-К-5 [05:43:59]line 10.560 * 66.30 [05:43:59]line = 700.13 [05:43:59]line НДС 12% НСП 1% [05:43:59]line > о реализуемом товаре [05:43:59]line ОКРУГЛЕНИЕ: -0.13 [05:43:59]line ИТОГО: 700.00 [05:43:59]line Внесено: 700.00 [05:43:59]line СДАЧА: 0.00 [05:43:59]line НСП 1% : 6.20 [05:43:59]line НДС 12% : 74.35 [05:43:59]line Наличными: 700.00 [05:43:59]line Безнал.: 0.00 [05:43:59]line Место: АЗС № 140 "Партнер Нефть" [05:43:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:43:59]line СНО: Общий режим [05:43:59]line Чек 35 13.07.2024 05:44 [05:43:59]line Смена: 462 ФФД: 1.0 [05:43:59]line ЗНМ: 0300000129 [05:43:59]line РНМ: 0000000000090858 [05:43:59]line Версия ККМ: 001 [05:43:59]line ФМ: 0000000000874899 [05:43:59]line ФД: 162367 [05:43:59]line ФПД: 58375077675538 [05:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T054410&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162367&fm=58375077675538&tin=02508201610067®Number=0000000000090858&sum=70000 [05:43:59]OFD Sender: Processing packet 162367 [packets to send 105, broken 104] [05:43:59]ProducePacketName [05:43:59]name=ofd_packets/00162367 [05:43:59]OFD Sender: To server: pG, [05:43:59]CommunicateWithHost lk.salyk.kg:30040 [05:43:59]ConnectInit lk.salyk.kg [05:43:59]written 0, free lines is 4095 [05:43:59]Connected sock=10 [05:43:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 76 51 07 01 7D 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 2A 14 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7A 02 00 35 04 06 00 35 17 81 C4 C2 12 2A CC D6 9E 2D EF 36 22 [05:44:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E0 08 47 00 A1 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 34 38 39 39 10 04 04 00 3F 7A 02 00 F4 03 04 00 3F C0 91 66 B6 04 01 00 00 B8 CE AE 8B 45 A2 A3 98 [05:44:00]CommunicateWithHost err = 0 [05:44:00]CheckOFDResponse [05:44:00]1017 (14) - 77093643461234 [05:44:00]1041 (16) - 0000000000874899 [05:44:00]1040 (4) - 162367 [05:44:00]1012 (4) - 12.07.2024 23:46 [05:44:00]1206 (1) - 0 [05:44:00]OFD Sender: Remove packet 162367 [05:44:00]ProducePacketName [05:44:00]name=ofd_packets/00162367 [05:44:00]NVStorageDeleteData [05:44:00]Write to MH i2c: 01 00 00 E7 F6 DD [05:44:00]Write i2c OK [05:44:00]MH_I2C_Read... [05:44:00]Read from MH i2c: 01 [05:44:00]MH_I2C_Read... [05:44:00]Read from MH i2c: 01 07 00 [05:44:00]MH_I2C_Read... [05:44:00]Read from MH i2c: 01 07 00 E7 F6 00 00 00 00 00 EE 0C DE [05:44:00]RasterBufferAndPrint [05:44:00]line [05:44:00]line [05:44:00]line [05:44:00]line [05:44:00]line [05:44:00]written 0, free lines is 3319 [05:44:00]MH_Cut [05:44:00]Write to MH i2c: D1 01 00 EE F6 01 B6 [05:44:00]Write i2c OK [05:44:00]MH_I2C_Read... [05:44:00]Read from MH i2c: D1 [05:44:00]MH_I2C_Read... [05:44:00]Read from MH i2c: D1 01 00 [05:44:00]MH_I2C_Read... [05:44:00]Read from MH i2c: D1 01 00 EE F6 00 B5 [05:44:00]Write to MH i2c: 01 00 00 EF F6 E5 [05:44:00]Write i2c OK [05:44:00]MH_I2C_Read... [05:44:00]OFD Sender: No OFD packet to send [05:44:01]*** Cut start [05:44:01]*** Purtial cut [05:44:01]*** Stage 1: CUTSNS_PIN = 1 [05:44:01]Read from MH i2c: 01 [05:44:01]MH_I2C_Read... [05:44:01]*** Stop cut motor [05:44:01]*** Cut end [05:44:01]Read from MH i2c: 01 07 00 [05:44:01]MH_I2C_Read... [05:44:01]Read from MH i2c: 01 07 00 EF F6 00 00 00 00 00 FF 0F FA [05:44:01]process_action close_receipt done [05:44:01]requested_data is exist [05:44:01]produce_requested_data [05:44:01]requested_item fm.sn is exist - process it [05:44:01]wFMCommunicate request_size=4 [05:44:01]MH_SAM_APDU [05:44:01]CAPDU: 80 11 00 00 [05:44:01]Write to MH i2c: E2 08 00 F0 F6 80 11 00 00 00 00 00 00 60 [05:44:01]Write i2c OK [05:44:01]MH_I2C_Read... [05:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:01]Read from MH i2c: E2 [05:44:01]MH_I2C_Read... [05:44:01]Read from MH i2c: E2 17 00 [05:44:01]MH_I2C_Read... [05:44:01]Read from MH i2c: E2 17 00 F0 F6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C0 [05:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:44:01]wFMCommunicate OK [05:44:01]requested_item fd.num is exist - process it [05:44:01]SAM_PROTO_GetFieldsCounters [05:44:01]wFMCommunicate request_size=4 [05:44:01]MH_SAM_APDU [05:44:01]CAPDU: 80 13 00 00 [05:44:01]Write to MH i2c: E2 08 00 F1 F6 80 13 00 00 00 00 00 00 63 [05:44:01]Write i2c OK [05:44:01]MH_I2C_Read... [05:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:44:01]Read from MH i2c: E2 [05:44:01]MH_I2C_Read... [05:44:01]Read from MH i2c: E2 62 00 [05:44:01]MH_I2C_Read... [05:44:01]Read from MH i2c: E2 62 00 F1 F6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [05:44:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:44:01]wFMCommunicate OK [05:44:01]SAM_PROTO_GetFieldsCounters done [05:44:01]requested_item shift.num is exist - process it [05:44:01]requested_item shift.opened is exist - process it [05:44:01]req_shift_opened [05:44:01]FM_GetShiftState [05:44:01]SAM_PROTO_GetShiftState [05:44:01]wFMCommunicate request_size=4 [05:44:01]MH_SAM_APDU [05:44:01]CAPDU: 80 13 01 00 [05:44:01]Write to MH i2c: E2 08 00 F2 F6 80 13 01 00 00 00 00 00 65 [05:44:01]Write i2c OK [05:44:01]MH_I2C_Read... [05:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:01]Read from MH i2c: E2 [05:44:01]MH_I2C_Read... [05:44:01]Read from MH i2c: E2 0E 00 [05:44:01]MH_I2C_Read... [05:44:01]Read from MH i2c: E2 0E 00 F2 F6 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5F [05:44:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:44:01]wFMCommunicate OK [05:44:01]SAM_PROTO_GetShiftState done [05:44:01]FM_GetShiftState done [05:44:01]req_shift_opened done [05:44:01]requested_item shift.open_date is exist - process it [05:44:01]req_shift_open_date [05:44:01]req_shift_open_date done [05:44:01]produce_requested_data done [05:44:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162367,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:44:01]process_action_free close_receipt [05:44:01]json_value_free [05:44:01]json_value_free done [05:44:01]process_json_proto returns [05:44:01]Send response to host [05:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162367,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:44:01]free response buf [05:44:01]execute_script done [05:44:01]execute_script returns [05:44:01]free content buf [05:44:01]Sock 9.Close socket [05:44:01]Sock 9.Thread stoped [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:55]accept exits with 8 [05:49:55]New connection [05:49:55]New thread 3066862948 created [05:49:55]Thread 3067006308 joined [05:49:55]Waiting for new connection... [05:49:55] Sock 8.Parse request [05:49:55]Sock 8.Check first char [05:49:55]Sock 8.First char is OK [05:49:55]request: POST /json_proto HTTP/1.0 [05:49:55]Method: POST [05:49:55]URL: /json_proto [05:49:55]Method is POST - this is cgi request [05:49:55]url: /json_proto [05:49:55]query_string will be loaded in cgi processing [05:49:55]execute_cgi json_proto POST (null) [05:49:55]execute_cgi path=json_proto method=POST [05:49:55]POST find Content-Length [05:49:55]Host: 172.17.39.67:8080 [05:49:55]Content-Length: 671 [05:49:55]Content-Type: application/json [05:49:55] [05:49:55]POST finish read [05:49:55]Found Content-Length = 671 [05:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 5.950, "sum" : 400.44, "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" ] } } [05:49:55]execute_script... [05:49: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)1318890", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 5.950, "sum" : 400.44, "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" ] } } [05:49:55]POST & json_proto [05:49:55]process_json_proto [05:49:55]json parsed OK: [05:49:55]protocol is kg_v1.0 [05:49:55]action value=close_receipt [05:49:55]process_action close_receipt [05:49:55]cmd_close_receipt [05:49:55]MH_GetDate [05:49:55]Write to MH i2c: F0 00 00 F3 F6 D8 [05:49:55]Write i2c OK [05:49:55]MH_I2C_Read... [05:49:55]Read from MH i2c: F0 [05:49:55]MH_I2C_Read... [05:49:55]Read from MH i2c: F0 09 00 [05:49:55]MH_I2C_Read... [05:49:55]Read from MH i2c: F0 09 00 F3 F6 00 90 15 92 66 FA E9 8E 66 55 [05:49:55]GetLastDocTimeStamp 1720849450 [05:49:55]current date 1720849808 [05:49:55]FM_GetShiftState [05:49:55]SAM_PROTO_GetShiftState [05:49:55]wFMCommunicate request_size=4 [05:49:55]MH_SAM_APDU [05:49:55]CAPDU: 80 13 01 00 [05:49:55]Write to MH i2c: E2 08 00 F4 F6 80 13 01 00 00 00 00 00 67 [05:49:55]Write i2c OK [05:49:55]MH_I2C_Read... [05:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:55]Read from MH i2c: E2 [05:49:55]MH_I2C_Read... [05:49:55]Read from MH i2c: E2 0E 00 [05:49:55]MH_I2C_Read... [05:49:55]Read from MH i2c: E2 0E 00 F4 F6 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 61 [05:49:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:49:55]wFMCommunicate OK [05:49:55]SAM_PROTO_GetShiftState done [05:49:55]FM_GetShiftState done [05:49:55]opened in 1720828979 [05:49:55]opened+sec_in_day 1720915379 [05:49:55]quantity*price = 40043 [05:49:55]sum+1 = 40045 [05:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 36 13.07.2024 05:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162368 ФПД: 179575314278213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055008&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162368&fm=179575314278213&tin=02508201610067®Number=0000000000090858&sum=40000 [05:49:56]StoreToDocumentArchive [05:49:56]shift 462 fd 162368 [05:49:56]save to /storage/0462/doc_00162368 [05:49:56]save last doc name /storage/0462/doc_00162368 to /storage/kkm_last_doc_name [05:49:56]save OK [05:49:56]Clear old archive folders... [05:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:49:56]tlvbuf is 018647B0 [05:49:56]SAM_PROTO_ClearQueue [05:49:56]wFMCommunicate request_size=4 [05:49:56]MH_SAM_APDU [05:49:56]CAPDU: 80 09 00 00 [05:49:56]Write to MH i2c: E2 08 00 01 F7 80 09 00 00 00 00 00 00 6A [05:49:56]Write i2c OK [05:49:56]MH_I2C_Read... [05:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:56]Read from MH i2c: E2 [05:49:56]MH_I2C_Read... [05:49:56]Read from MH i2c: E2 03 00 [05:49:56]MH_I2C_Read... [05:49:56]Read from MH i2c: E2 03 00 01 F7 00 90 00 6C [05:49:56]RAPDU: 90 00 [05:49:56]wFMCommunicate OK [05:49:56]SAM_PROTO_ClearQueue done [05:49:56]KKMCreateOFDPacket [05:49:56]OFDProtocolAddRootSTLVToBuf [05:49:56]FM_MakeSignedData [05:49:56]FM_MakeSignedData [05:49:56]SAM_PROTO_SignData [05:49:56]wFMCommunicate request_size=4 [05:49:56]MH_SAM_APDU [05:49:56]CAPDU: 80 0D 01 02 [05:49:56]Write to MH i2c: E2 08 00 02 F7 80 0D 01 02 00 00 00 00 72 [05:49:56]Write i2c OK [05:49:56]MH_I2C_Read... [05:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:56]Read from MH i2c: E2 [05:49:56]MH_I2C_Read... [05:49:56]Read from MH i2c: E2 03 00 [05:49:56]MH_I2C_Read... [05:49:56]Read from MH i2c: E2 03 00 02 F7 00 90 00 6D [05:49:56]RAPDU: 90 00 [05:49:56]wFMCommunicate OK [05:49:56]wFMCommunicate request_size=255 [05:49:56]MH_SAM_APDU [05:49:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 6C 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 9C 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 24 00 00 00 F4 03 04 00 90 15 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7A 02 00 35 04 06 00 [05:49:56]Write to MH i2c: E2 02 01 03 F7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 6C 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 9C 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 24 00 00 00 F4 03 04 00 90 15 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7A 02 00 35 04 06 00 00 00 8C [05:49:56]Write i2c OK [05:49:56]MH_I2C_Read... [05:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:57]Read from MH i2c: E2 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: E2 03 00 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: E2 03 00 03 F7 00 90 00 6E [05:49:57]RAPDU: 90 00 [05:49:57]wFMCommunicate OK [05:49:57]wFMCommunicate request_size=11 [05:49:57]MH_SAM_APDU [05:49:57]CAPDU: 80 0D 02 02 06 A3 52 A2 D1 67 45 [05:49:57]Write to MH i2c: E2 0E 00 04 F7 80 0D 02 02 06 00 A3 52 A2 D1 67 45 00 00 95 [05:49:57]Write i2c OK [05:49:57]MH_I2C_Read... [05:49:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:57]Read from MH i2c: E2 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: E2 03 00 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: E2 03 00 04 F7 00 90 00 6F [05:49:57]RAPDU: 90 00 [05:49:57]wFMCommunicate OK [05:49:57]wFMCommunicate request_size=4 [05:49:57]MH_SAM_APDU [05:49:57]CAPDU: 80 0D 03 02 [05:49:57]Write to MH i2c: E2 08 00 05 F7 80 0D 03 02 00 00 00 00 77 [05:49:57]Write i2c OK [05:49:57]MH_I2C_Read... [05:49:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:57]Read from MH i2c: E2 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: E2 0B 00 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: E2 0B 00 05 F7 00 DF 51 F4 4C EB 30 5B EF 90 00 4D [05:49:57]RAPDU: DF 51 F4 4C EB 30 5B EF 90 00 [05:49:57]wFMCommunicate OK [05:49:57]SAM_PROTO_SignData done [05:49:57]FM_MakeSignedData done [05:49:57]CreateOFDProtocolMessage [05:49:57]wFMCommunicate request_size=4 [05:49:57]MH_SAM_APDU [05:49:57]CAPDU: 80 11 00 00 [05:49:57]Write to MH i2c: E2 08 00 06 F7 80 11 00 00 00 00 00 00 77 [05:49:57]Write i2c OK [05:49:57]MH_I2C_Read... [05:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:57]Read from MH i2c: E2 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: E2 17 00 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: E2 17 00 06 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D7 [05:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:49:57]wFMCommunicate OK [05:49:57]CreateOFDProtocolMessage done [05:49:57]OFDSenderStorePacket 162368 [05:49:57]StoreOFDPacket docnum=162368 [05:49:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 68 AA 08 01 93 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 6C 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 9C 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 24 00 00 00 F4 03 04 00 90 15 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7A 02 00 35 04 06 00 A3 52 A2 D1 67 45 DF 51 F4 4C EB 30 5B EF [05:49:57]CheckFolder [05:49:57]dirname=/storage/ofd_packets [05:49:57]CheckFolder done [05:49:57]ProducePacketName [05:49:57]name=ofd_packets/00162368 [05:49:57]NVStorageSaveData ofd_packets/00162368 [05:49:57]File name is /storage/ofd_packets/00162368 [05:49:57]Write 302 bytes [05:49:57]NVStorageSaveData done [05:49:57]OFDSenderStorePacket done [05:49:57]KKMCreateOFDPacket done [05:49:57]NVStorageSaveData kkm_last_timestamp [05:49:57]File name is /storage/kkm_last_timestamp [05:49:57]Write 4 bytes [05:49:57]NVStorageSaveData done [05:49:57]ExternCall_PrintAddStr [05:49:57]wPrintStart [05:49:57]Write to MH i2c: 01 00 00 07 F7 FE [05:49:57]Write i2c OK [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: 01 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: 01 07 00 [05:49:57]MH_I2C_Read... [05:49:57]Read from MH i2c: 01 07 00 07 F7 00 00 00 00 00 FF 0F 13 [05:49:57]RasterBufferAndPrint [05:49:57]line Счет N : (1)1318890 [05:49:57]line ИНН: 02508201610067 [05:49:57]line Контрольно-Кассовый Чек [05:49:57]line ПРОДАЖА [05:49:57]line ТРК (МРК, ГНК) : 52 [05:49:57]line Товар: 2710124130 [05:49:57]line Super-92-К-5 [05:49:57]line 5.950 * 67.30 [05:49:57]line = 400.44 [05:49:57]line НДС 12% НСП 1% [05:49:57]line > о реализуемом товаре [05:49:57]line ОКРУГЛЕНИЕ: -0.44 [05:49:57]line ИТОГО: 400.00 [05:49:57]line Внесено: 400.00 [05:49:57]line СДАЧА: 0.00 [05:49:57]line НСП 1% : 3.54 [05:49:57]line НДС 12% : 42.52 [05:49:57]line Наличными: 400.00 [05:49:57]line Безнал.: 0.00 [05:49:57]line Место: АЗС № 140 "Партнер Нефть" [05:49:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:49:57]line СНО: Общий режим [05:49:57]line Чек 36 13.07.2024 05:50 [05:49:57]line Смена: 462 ФФД: 1.0 [05:49:57]line ЗНМ: 0300000129 [05:49:57]line РНМ: 0000000000090858 [05:49:57]line Версия ККМ: 001 [05:49:57]line ФМ: 0000000000874899 [05:49:57]line ФД: 162368 [05:49:57]line ФПД: 179575314278213 [05:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055008&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162368&fm=179575314278213&tin=02508201610067®Number=0000000000090858&sum=40000 [05:49:57]OFD Sender: Processing packet 162368 [packets to send 105, broken 104] [05:49:57]ProducePacketName [05:49:57]name=ofd_packets/00162368 [05:49:57]OFD Sender: To server: pG, [05:49:57]CommunicateWithHost lk.salyk.kg:30040 [05:49:57]ConnectInit lk.salyk.kg [05:49:57]written 0, free lines is 4095 [05:49:57]Connected sock=10 [05:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 68 AA 08 01 93 C1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 6C 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 9C 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 24 00 00 00 F4 03 04 00 90 15 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7A 02 00 35 04 06 00 A3 52 A2 D1 67 45 DF 51 F4 4C EB 30 5B EF [05:49:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 89 A8 47 00 6C F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7A 02 00 F4 03 04 00 A5 C1 91 66 B6 04 01 00 00 FD C5 55 7B E0 33 75 26 [05:49:57]CommunicateWithHost err = 0 [05:49:57]CheckOFDResponse [05:49:57]1017 (14) - 77093643461234 [05:49:57]1041 (16) - 0000000000874899 [05:49:57]1040 (4) - 162368 [05:49:57]1012 (4) - 12.07.2024 23:52 [05:49:57]1206 (1) - 0 [05:49:57]OFD Sender: Remove packet 162368 [05:49:57]ProducePacketName [05:49:57]name=ofd_packets/00162368 [05:49:57]NVStorageDeleteData [05:49:58]Write to MH i2c: 01 00 00 32 F7 29 [05:49:58]Write i2c OK [05:49:58]MH_I2C_Read... [05:49:58]Read from MH i2c: 01 [05:49:58]MH_I2C_Read... [05:49:58]Read from MH i2c: 01 07 00 [05:49:58]MH_I2C_Read... [05:49:58]Read from MH i2c: 01 07 00 32 F7 00 00 00 00 00 EB 0C 27 [05:49:58]RasterBufferAndPrint [05:49:58]line [05:49:58]line [05:49:58]line [05:49:58]line [05:49:58]line [05:49:58]written 0, free lines is 3316 [05:49:58]MH_Cut [05:49:58]Write to MH i2c: D1 01 00 39 F7 01 02 [05:49:58]Write i2c OK [05:49:58]MH_I2C_Read... [05:49:58]Read from MH i2c: D1 [05:49:58]MH_I2C_Read... [05:49:58]Read from MH i2c: D1 01 00 [05:49:58]MH_I2C_Read... [05:49:58]Read from MH i2c: D1 01 00 39 F7 00 01 [05:49:58]Write to MH i2c: 01 00 00 3A F7 31 [05:49:58]Write i2c OK [05:49:58]MH_I2C_Read... [05:49:58]OFD Sender: No OFD packet to send [05:49:58]*** Cut start [05:49:58]*** Purtial cut [05:49:58]*** CUTSNS_PIN = 0 [05:49:59]*** Stage 1: CUTSNS_PIN = 1 [05:50:00]Read from MH i2c: 01 [05:50:00]MH_I2C_Read... [05:50:00]*** Stop cut motor [05:50:00]*** Cut end [05:50:00]Read from MH i2c: 01 07 00 [05:50:00]MH_I2C_Read... [05:50:00]Read from MH i2c: 01 07 00 3A F7 00 00 00 00 00 FF 0F 46 [05:50:00]process_action close_receipt done [05:50:00]requested_data is exist [05:50:00]produce_requested_data [05:50:00]requested_item fm.sn is exist - process it [05:50:00]wFMCommunicate request_size=4 [05:50:00]MH_SAM_APDU [05:50:00]CAPDU: 80 11 00 00 [05:50:00]Write to MH i2c: E2 08 00 3B F7 80 11 00 00 00 00 00 00 AC [05:50:00]Write i2c OK [05:50:00]MH_I2C_Read... [05:50:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:00]Read from MH i2c: E2 [05:50:00]MH_I2C_Read... [05:50:00]Read from MH i2c: E2 17 00 [05:50:00]MH_I2C_Read... [05:50:00]Read from MH i2c: E2 17 00 3B F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0C [05:50:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:50:00]wFMCommunicate OK [05:50:00]requested_item fd.num is exist - process it [05:50:00]SAM_PROTO_GetFieldsCounters [05:50:00]wFMCommunicate request_size=4 [05:50:00]MH_SAM_APDU [05:50:00]CAPDU: 80 13 00 00 [05:50:00]Write to MH i2c: E2 08 00 3C F7 80 13 00 00 00 00 00 00 AF [05:50:00]Write i2c OK [05:50:00]MH_I2C_Read... [05:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:50:01]Read from MH i2c: E2 [05:50:01]MH_I2C_Read... [05:50:01]Read from MH i2c: E2 62 00 [05:50:01]MH_I2C_Read... [05:50:01]Read from MH i2c: E2 62 00 3C F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 40 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [05:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 40 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:50:01]wFMCommunicate OK [05:50:01]SAM_PROTO_GetFieldsCounters done [05:50:01]requested_item shift.num is exist - process it [05:50:01]requested_item shift.opened is exist - process it [05:50:01]req_shift_opened [05:50:01]FM_GetShiftState [05:50:01]SAM_PROTO_GetShiftState [05:50:01]wFMCommunicate request_size=4 [05:50:01]MH_SAM_APDU [05:50:01]CAPDU: 80 13 01 00 [05:50:01]Write to MH i2c: E2 08 00 3D F7 80 13 01 00 00 00 00 00 B1 [05:50:01]Write i2c OK [05:50:01]MH_I2C_Read... [05:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:01]Read from MH i2c: E2 [05:50:01]MH_I2C_Read... [05:50:01]Read from MH i2c: E2 0E 00 [05:50:01]MH_I2C_Read... [05:50:01]Read from MH i2c: E2 0E 00 3D F7 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AB [05:50:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:50:01]wFMCommunicate OK [05:50:01]SAM_PROTO_GetShiftState done [05:50:01]FM_GetShiftState done [05:50:01]req_shift_opened done [05:50:01]requested_item shift.open_date is exist - process it [05:50:01]req_shift_open_date [05:50:01]req_shift_open_date done [05:50:01]produce_requested_data done [05:50:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162368,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:50:01]process_action_free close_receipt [05:50:01]json_value_free [05:50:01]json_value_free done [05:50:01]process_json_proto returns [05:50:01]Send response to host [05:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162368,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:50:01]free response buf [05:50:01]execute_script done [05:50:01]execute_script returns [05:50:01]free content buf [05:50:01]Sock 8.Close socket [05:50:01]Sock 8.Thread stoped [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]accept exits with 9 [05:50:33]New connection [05:50:33]New thread 3067006308 created [05:50:33]Thread 3066862948 joined [05:50:33]Waiting for new connection... [05:50:33] Sock 9.Parse request [05:50:33]Sock 9.Check first char [05:50:33]Sock 9.First char is OK [05:50:33]request: POST /json_proto HTTP/1.0 [05:50:33]Method: POST [05:50:33]URL: /json_proto [05:50:33]Method is POST - this is cgi request [05:50:33]url: /json_proto [05:50:33]query_string will be loaded in cgi processing [05:50:33]execute_cgi json_proto POST (null) [05:50:33]execute_cgi path=json_proto method=POST [05:50:33]POST find Content-Length [05:50:33]Host: 172.17.39.67:8080 [05:50:33]Content-Length: 809 [05:50:33]Content-Type: application/json [05:50:33] [05:50:33]POST finish read [05:50:33]Found Content-Length = 809 [05:50:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.310, "sum" : 2999.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2999.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:33]execute_script... [05:50:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318889", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.310, "sum" : 2999.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2999.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:33]POST & json_proto [05:50:33]process_json_proto [05:50:33]json parsed OK: [05:50:33]protocol is kg_v1.0 [05:50:33]action value=close_receipt [05:50:33]process_action close_receipt [05:50:33]cmd_close_receipt [05:50:33]MH_GetDate [05:50:33]Write to MH i2c: F0 00 00 3E F7 24 [05:50:33]Write i2c OK [05:50:33]MH_I2C_Read... [05:50:33]Read from MH i2c: F0 [05:50:33]MH_I2C_Read... [05:50:33]Read from MH i2c: F0 09 00 [05:50:33]MH_I2C_Read... [05:50:33]Read from MH i2c: F0 09 00 3E F7 00 B5 15 92 66 FA E9 8E 66 C6 [05:50:33]GetLastDocTimeStamp 1720849808 [05:50:33]current date 1720849845 [05:50:33]FM_GetShiftState [05:50:33]SAM_PROTO_GetShiftState [05:50:33]wFMCommunicate request_size=4 [05:50:33]MH_SAM_APDU [05:50:33]CAPDU: 80 13 01 00 [05:50:33]Write to MH i2c: E2 08 00 3F F7 80 13 01 00 00 00 00 00 B3 [05:50:33]Write i2c OK [05:50:33]MH_I2C_Read... [05:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:33]Read from MH i2c: E2 [05:50:33]MH_I2C_Read... [05:50:33]Read from MH i2c: E2 0E 00 [05:50:33]MH_I2C_Read... [05:50:33]Read from MH i2c: E2 0E 00 3F F7 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AD [05:50:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:50:33]wFMCommunicate OK [05:50:33]SAM_PROTO_GetShiftState done [05:50:33]FM_GetShiftState done [05:50:33]opened in 1720828979 [05:50:33]opened+sec_in_day 1720915379 [05:50:33]quantity*price = 299910 [05:50:33]sum+1 = 299912 [05:50:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2999.11 НСП 1% : 26.54 НДС 12% : 318.49 Наличными: 0.00 Безнал.: 2999.11 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 37 13.07.2024 05:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162369 ФПД: 53755905549765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055046&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162369&fm=53755905549765&tin=02508201610067®Number=0000000000090858&sum=299911 [05:50:34]StoreToDocumentArchive [05:50:34]shift 462 fd 162369 [05:50:34]save to /storage/0462/doc_00162369 [05:50:34]save last doc name /storage/0462/doc_00162369 to /storage/kkm_last_doc_name [05:50:34]save OK [05:50:34]Clear old archive folders... [05:50:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:50:34]tlvbuf is 01A1CF80 [05:50:34]SAM_PROTO_ClearQueue [05:50:34]wFMCommunicate request_size=4 [05:50:34]MH_SAM_APDU [05:50:34]CAPDU: 80 09 00 00 [05:50:34]Write to MH i2c: E2 08 00 4C F7 80 09 00 00 00 00 00 00 B5 [05:50:34]Write i2c OK [05:50:34]MH_I2C_Read... [05:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:50:34]Read from MH i2c: E2 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 03 00 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 03 00 4C F7 00 90 00 B7 [05:50:34]RAPDU: 90 00 [05:50:34]wFMCommunicate OK [05:50:34]SAM_PROTO_ClearQueue done [05:50:34]KKMCreateOFDPacket [05:50:34]OFDProtocolAddRootSTLVToBuf [05:50:34]FM_MakeSignedData [05:50:34]FM_MakeSignedData [05:50:34]SAM_PROTO_SignData [05:50:34]wFMCommunicate request_size=4 [05:50:34]MH_SAM_APDU [05:50:34]CAPDU: 80 0D 01 02 [05:50:34]Write to MH i2c: E2 08 00 4D F7 80 0D 01 02 00 00 00 00 BD [05:50:34]Write i2c OK [05:50:34]MH_I2C_Read... [05:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:50:34]Read from MH i2c: E2 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 03 00 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 03 00 4D F7 00 90 00 B8 [05:50:34]RAPDU: 90 00 [05:50:34]wFMCommunicate OK [05:50:34]wFMCommunicate request_size=255 [05:50:34]MH_SAM_APDU [05:50:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 87 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B6 15 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7A 02 00 35 04 06 00 [05:50:34]Write to MH i2c: E2 02 01 4E F7 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 87 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B6 15 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7A 02 00 35 04 06 00 00 00 A6 [05:50:34]Write i2c OK [05:50:34]MH_I2C_Read... [05:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:34]Read from MH i2c: E2 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 03 00 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 03 00 4E F7 00 90 00 B9 [05:50:34]RAPDU: 90 00 [05:50:34]wFMCommunicate OK [05:50:34]wFMCommunicate request_size=11 [05:50:34]MH_SAM_APDU [05:50:34]CAPDU: 80 0D 02 02 06 30 E4 05 A7 A5 C5 [05:50:34]Write to MH i2c: E2 0E 00 4F F7 80 0D 02 02 06 00 30 E4 05 A7 A5 C5 00 00 F6 [05:50:34]Write i2c OK [05:50:34]MH_I2C_Read... [05:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:34]Read from MH i2c: E2 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 03 00 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 03 00 4F F7 00 90 00 BA [05:50:34]RAPDU: 90 00 [05:50:34]wFMCommunicate OK [05:50:34]wFMCommunicate request_size=4 [05:50:34]MH_SAM_APDU [05:50:34]CAPDU: 80 0D 03 02 [05:50:34]Write to MH i2c: E2 08 00 50 F7 80 0D 03 02 00 00 00 00 C2 [05:50:34]Write i2c OK [05:50:34]MH_I2C_Read... [05:50:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:50:34]Read from MH i2c: E2 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 0B 00 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 0B 00 50 F7 00 94 45 87 63 A6 BE 11 B5 90 00 B0 [05:50:34]RAPDU: 94 45 87 63 A6 BE 11 B5 90 00 [05:50:34]wFMCommunicate OK [05:50:34]SAM_PROTO_SignData done [05:50:34]FM_MakeSignedData done [05:50:34]CreateOFDProtocolMessage [05:50:34]wFMCommunicate request_size=4 [05:50:34]MH_SAM_APDU [05:50:34]CAPDU: 80 11 00 00 [05:50:34]Write to MH i2c: E2 08 00 51 F7 80 11 00 00 00 00 00 00 C2 [05:50:34]Write i2c OK [05:50:34]MH_I2C_Read... [05:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:34]Read from MH i2c: E2 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 17 00 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: E2 17 00 51 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 22 [05:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:50:34]wFMCommunicate OK [05:50:34]CreateOFDProtocolMessage done [05:50:34]OFDSenderStorePacket 162369 [05:50:34]StoreOFDPacket docnum=162369 [05:50:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 ED D5 08 01 7D 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 87 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B6 15 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7A 02 00 35 04 06 00 30 E4 05 A7 A5 C5 94 45 87 63 A6 BE 11 B5 [05:50:34]CheckFolder [05:50:34]dirname=/storage/ofd_packets [05:50:34]CheckFolder done [05:50:34]ProducePacketName [05:50:34]name=ofd_packets/00162369 [05:50:34]NVStorageSaveData ofd_packets/00162369 [05:50:34]File name is /storage/ofd_packets/00162369 [05:50:34]Write 302 bytes [05:50:34]NVStorageSaveData done [05:50:34]OFDSenderStorePacket done [05:50:34]KKMCreateOFDPacket done [05:50:34]NVStorageSaveData kkm_last_timestamp [05:50:34]File name is /storage/kkm_last_timestamp [05:50:34]Write 4 bytes [05:50:34]NVStorageSaveData done [05:50:34]ExternCall_PrintAddStr [05:50:34]wPrintStart [05:50:34]Write to MH i2c: 01 00 00 52 F7 49 [05:50:34]Write i2c OK [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: 01 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: 01 07 00 [05:50:34]MH_I2C_Read... [05:50:34]Read from MH i2c: 01 07 00 52 F7 00 00 00 00 00 FF 0F 5E [05:50:34]RasterBufferAndPrint [05:50:34]line Счет N : (1)1318889 [05:50:34]line ИНН: 02508201610067 [05:50:34]line Контрольно-Кассовый Чек [05:50:34]line ПРОДАЖА [05:50:34]line ТРК (МРК, ГНК) : 31 [05:50:34]line Товар: 2710194210 [05:50:34]line ДТ(л)-К-5 [05:50:34]line 41.310 * 72.60 [05:50:34]line = 2999.11 [05:50:34]line НДС 12% НСП 1% [05:50:34]line > о реализуемом товаре [05:50:34]line ИТОГО: 2999.11 [05:50:34]line НСП 1% : 26.54 [05:50:34]line НДС 12% : 318.49 [05:50:34]line Наличными: 0.00 [05:50:34]line Безнал.: 2999.11 [05:50:34]line Место: АЗС № 140 "Партнер Нефть" [05:50:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:50:34]line СНО: Общий режим [05:50:34]line Чек 37 13.07.2024 05:50 [05:50:34]line Смена: 462 ФФД: 1.0 [05:50:34]line ЗНМ: 0300000129 [05:50:34]line РНМ: 0000000000090858 [05:50:34]line Версия ККМ: 001 [05:50:34]line Платежная система: O! деньги [05:50:34]line ФМ: 0000000000874899 [05:50:34]line ФД: 162369 [05:50:34]line ФПД: 53755905549765 [05:50:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055046&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162369&fm=53755905549765&tin=02508201610067®Number=0000000000090858&sum=299911 [05:50:35]written 0, free lines is 4095 [05:50:35]OFD Sender: Processing packet 162369 [packets to send 105, broken 104] [05:50:35]ProducePacketName [05:50:35]name=ofd_packets/00162369 [05:50:35]OFD Sender: To server: pG, [05:50:35]CommunicateWithHost lk.salyk.kg:30040 [05:50:35]ConnectInit lk.salyk.kg [05:50:35]Connected sock=10 [05:50:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 ED D5 08 01 7D 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 87 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 B6 15 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7A 02 00 35 04 06 00 30 E4 05 A7 A5 C5 94 45 87 63 A6 BE 11 B5 [05:50:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A1 D5 47 00 6F 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 34 38 39 39 10 04 04 00 41 7A 02 00 F4 03 04 00 CB C1 91 66 B6 04 01 00 00 1A E2 7E EC 74 73 1E 94 [05:50:35]CommunicateWithHost err = 0 [05:50:35]CheckOFDResponse [05:50:35]1017 (14) - 77093643461234 [05:50:35]1041 (16) - 0000000000874899 [05:50:35]1040 (4) - 162369 [05:50:35]1012 (4) - 12.07.2024 23:52 [05:50:35]1206 (1) - 0 [05:50:35]OFD Sender: Remove packet 162369 [05:50:35]ProducePacketName [05:50:35]name=ofd_packets/00162369 [05:50:35]NVStorageDeleteData [05:50:35]Write to MH i2c: 01 00 00 7C F7 73 [05:50:35]Write i2c OK [05:50:35]MH_I2C_Read... [05:50:35]Read from MH i2c: 01 [05:50:35]MH_I2C_Read... [05:50:35]Read from MH i2c: 01 07 00 [05:50:35]MH_I2C_Read... [05:50:35]Read from MH i2c: 01 07 00 7C F7 00 00 00 00 00 FB 0C 81 [05:50:35]RasterBufferAndPrint [05:50:35]line [05:50:35]line [05:50:35]line [05:50:35]line [05:50:35]line [05:50:35]written 0, free lines is 3332 [05:50:35]MH_Cut [05:50:35]Write to MH i2c: D1 01 00 83 F7 01 4C [05:50:35]Write i2c OK [05:50:35]MH_I2C_Read... [05:50:35]Read from MH i2c: D1 [05:50:35]MH_I2C_Read... [05:50:35]Read from MH i2c: D1 01 00 [05:50:35]MH_I2C_Read... [05:50:35]Read from MH i2c: D1 01 00 83 F7 00 4B [05:50:35]Write to MH i2c: 01 00 00 84 F7 7B [05:50:35]Write i2c OK [05:50:35]MH_I2C_Read... [05:50:35]OFD Sender: No OFD packet to send [05:50:36]*** Cut start [05:50:36]*** Purtial cut [05:50:36]*** Stage 1: CUTSNS_PIN = 1 [05:50:36]Read from MH i2c: 01 [05:50:36]MH_I2C_Read... [05:50:36]*** Stop cut motor [05:50:36]*** Cut end [05:50:36]Read from MH i2c: 01 07 00 [05:50:36]MH_I2C_Read... [05:50:36]Read from MH i2c: 01 07 00 84 F7 00 00 00 00 00 FF 0F 90 [05:50:36]process_action close_receipt done [05:50:36]requested_data is exist [05:50:36]produce_requested_data [05:50:36]requested_item fm.sn is exist - process it [05:50:36]wFMCommunicate request_size=4 [05:50:36]MH_SAM_APDU [05:50:36]CAPDU: 80 11 00 00 [05:50:36]Write to MH i2c: E2 08 00 85 F7 80 11 00 00 00 00 00 00 F6 [05:50:36]Write i2c OK [05:50:36]MH_I2C_Read... [05:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:36]Read from MH i2c: E2 [05:50:36]MH_I2C_Read... [05:50:36]Read from MH i2c: E2 17 00 [05:50:36]MH_I2C_Read... [05:50:36]Read from MH i2c: E2 17 00 85 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 56 [05:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:50:36]wFMCommunicate OK [05:50:36]requested_item fd.num is exist - process it [05:50:36]SAM_PROTO_GetFieldsCounters [05:50:36]wFMCommunicate request_size=4 [05:50:36]MH_SAM_APDU [05:50:36]CAPDU: 80 13 00 00 [05:50:36]Write to MH i2c: E2 08 00 86 F7 80 13 00 00 00 00 00 00 F9 [05:50:36]Write i2c OK [05:50:36]MH_I2C_Read... [05:50:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:50:36]Read from MH i2c: E2 [05:50:36]MH_I2C_Read... [05:50:36]Read from MH i2c: E2 62 00 [05:50:36]MH_I2C_Read... [05:50:36]Read from MH i2c: E2 62 00 86 F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 41 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [05:50:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 41 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:50:36]wFMCommunicate OK [05:50:36]SAM_PROTO_GetFieldsCounters done [05:50:36]requested_item shift.num is exist - process it [05:50:36]requested_item shift.opened is exist - process it [05:50:36]req_shift_opened [05:50:36]FM_GetShiftState [05:50:36]SAM_PROTO_GetShiftState [05:50:36]wFMCommunicate request_size=4 [05:50:36]MH_SAM_APDU [05:50:36]CAPDU: 80 13 01 00 [05:50:36]Write to MH i2c: E2 08 00 87 F7 80 13 01 00 00 00 00 00 FB [05:50:36]Write i2c OK [05:50:36]MH_I2C_Read... [05:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:36]Read from MH i2c: E2 [05:50:36]MH_I2C_Read... [05:50:36]Read from MH i2c: E2 0E 00 [05:50:36]MH_I2C_Read... [05:50:36]Read from MH i2c: E2 0E 00 87 F7 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F5 [05:50:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:50:36]wFMCommunicate OK [05:50:36]SAM_PROTO_GetShiftState done [05:50:36]FM_GetShiftState done [05:50:36]req_shift_opened done [05:50:36]requested_item shift.open_date is exist - process it [05:50:36]req_shift_open_date [05:50:36]req_shift_open_date done [05:50:36]produce_requested_data done [05:50:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162369,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:50:36]process_action_free close_receipt [05:50:36]json_value_free [05:50:36]json_value_free done [05:50:36]process_json_proto returns [05:50:36]Send response to host [05:50:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162369,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:50:36]free response buf [05:50:36]execute_script done [05:50:36]execute_script returns [05:50:36]free content buf [05:50:36]Sock 9.Close socket [05:50:36]Sock 9.Thread stoped [05:50:40]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:35]accept exits with 8 [05:57:35]New connection [05:57:35]New thread 3066862948 created [05:57:35]Thread 3067006308 joined [05:57:35]Waiting for new connection... [05:57:35] Sock 8.Parse request [05:57:35]Sock 8.Check first char [05:57:35]Sock 8.First char is OK [05:57:35]request: POST /json_proto HTTP/1.0 [05:57:35]Method: POST [05:57:35]URL: /json_proto [05:57:35]Method is POST - this is cgi request [05:57:35]url: /json_proto [05:57:35]query_string will be loaded in cgi processing [05:57:35]execute_cgi json_proto POST (null) [05:57:35]execute_cgi path=json_proto method=POST [05:57:35]POST find Content-Length [05:57:35]Host: 172.17.39.67:8080 [05:57:35]Content-Length: 678 [05:57:35]Content-Type: application/json [05:57:35] [05:57:35]POST finish read [05:57:35]Found Content-Length = 678 [05:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.620, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:35]execute_script... [05:57: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)1318891", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.620, "sum" : 240.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:35]POST & json_proto [05:57:35]process_json_proto [05:57:35]json parsed OK: [05:57:35]protocol is kg_v1.0 [05:57:35]action value=close_receipt [05:57:35]process_action close_receipt [05:57:35]cmd_close_receipt [05:57:35]MH_GetDate [05:57:35]Write to MH i2c: F0 00 00 88 F7 6E [05:57:35]Write i2c OK [05:57:35]MH_I2C_Read... [05:57:35]Read from MH i2c: F0 [05:57:35]MH_I2C_Read... [05:57:35]Read from MH i2c: F0 09 00 [05:57:35]MH_I2C_Read... [05:57:35]Read from MH i2c: F0 09 00 88 F7 00 5C 17 92 66 FA E9 8E 66 B9 [05:57:35]GetLastDocTimeStamp 1720849846 [05:57:35]current date 1720850268 [05:57:35]FM_GetShiftState [05:57:35]SAM_PROTO_GetShiftState [05:57:35]wFMCommunicate request_size=4 [05:57:35]MH_SAM_APDU [05:57:35]CAPDU: 80 13 01 00 [05:57:35]Write to MH i2c: E2 08 00 89 F7 80 13 01 00 00 00 00 00 FD [05:57:35]Write i2c OK [05:57:35]MH_I2C_Read... [05:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:35]Read from MH i2c: E2 [05:57:35]MH_I2C_Read... [05:57:35]Read from MH i2c: E2 0E 00 [05:57:35]MH_I2C_Read... [05:57:35]Read from MH i2c: E2 0E 00 89 F7 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F7 [05:57:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:57:35]wFMCommunicate OK [05:57:35]SAM_PROTO_GetShiftState done [05:57:35]FM_GetShiftState done [05:57:35]opened in 1720828979 [05:57:35]opened+sec_in_day 1720915379 [05:57:35]quantity*price = 24000 [05:57:35]sum+1 = 24002 [05:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 38 13.07.2024 05:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162370 ФПД: 190517105657103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055748&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162370&fm=190517105657103&tin=02508201610067®Number=0000000000090858&sum=24000 [05:57:36]StoreToDocumentArchive [05:57:36]shift 462 fd 162370 [05:57:36]save to /storage/0462/doc_00162370 [05:57:36]save last doc name /storage/0462/doc_00162370 to /storage/kkm_last_doc_name [05:57:36]save OK [05:57:36]Clear old archive folders... [05:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:57:36]tlvbuf is 01B6A580 [05:57:36]SAM_PROTO_ClearQueue [05:57:36]wFMCommunicate request_size=4 [05:57:36]MH_SAM_APDU [05:57:36]CAPDU: 80 09 00 00 [05:57:36]Write to MH i2c: E2 08 00 96 F7 80 09 00 00 00 00 00 00 FF [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:57:36]Read from MH i2c: E2 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 96 F7 00 90 00 01 [05:57:36]RAPDU: 90 00 [05:57:36]wFMCommunicate OK [05:57:36]SAM_PROTO_ClearQueue done [05:57:36]KKMCreateOFDPacket [05:57:36]OFDProtocolAddRootSTLVToBuf [05:57:36]FM_MakeSignedData [05:57:36]FM_MakeSignedData [05:57:36]SAM_PROTO_SignData [05:57:36]wFMCommunicate request_size=4 [05:57:36]MH_SAM_APDU [05:57:36]CAPDU: 80 0D 01 02 [05:57:36]Write to MH i2c: E2 08 00 97 F7 80 0D 01 02 00 00 00 00 07 [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:57:36]Read from MH i2c: E2 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 97 F7 00 90 00 02 [05:57:36]RAPDU: 90 00 [05:57:36]wFMCommunicate OK [05:57:36]wFMCommunicate request_size=255 [05:57:36]MH_SAM_APDU [05:57:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5C 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7A 02 00 35 04 06 00 AD [05:57:36]Write to MH i2c: E2 02 01 98 F7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5C 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7A 02 00 35 04 06 00 AD 00 00 49 [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:36]Read from MH i2c: E2 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 [05:57:36]MH_I2C_Read... [05:57:36]Read from MH i2c: E2 03 00 98 F7 00 90 00 03 [05:57:36]RAPDU: 90 00 [05:57:36]wFMCommunicate OK [05:57:36]wFMCommunicate request_size=10 [05:57:36]MH_SAM_APDU [05:57:36]CAPDU: 80 0D 02 02 05 46 38 68 05 0F [05:57:36]Write to MH i2c: E2 0D 00 99 F7 80 0D 02 02 05 00 46 38 68 05 0F 00 00 0E [05:57:36]Write i2c OK [05:57:36]MH_I2C_Read... [05:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:57:37]Read from MH i2c: E2 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: E2 03 00 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: E2 03 00 99 F7 00 90 00 04 [05:57:37]RAPDU: 90 00 [05:57:37]wFMCommunicate OK [05:57:37]wFMCommunicate request_size=4 [05:57:37]MH_SAM_APDU [05:57:37]CAPDU: 80 0D 03 02 [05:57:37]Write to MH i2c: E2 08 00 9A F7 80 0D 03 02 00 00 00 00 0C [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:57:37]Read from MH i2c: E2 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: E2 0B 00 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: E2 0B 00 9A F7 00 01 39 45 B7 0E C2 92 22 90 00 C7 [05:57:37]RAPDU: 01 39 45 B7 0E C2 92 22 90 00 [05:57:37]wFMCommunicate OK [05:57:37]SAM_PROTO_SignData done [05:57:37]FM_MakeSignedData done [05:57:37]CreateOFDProtocolMessage [05:57:37]wFMCommunicate request_size=4 [05:57:37]MH_SAM_APDU [05:57:37]CAPDU: 80 11 00 00 [05:57:37]Write to MH i2c: E2 08 00 9B F7 80 11 00 00 00 00 00 00 0C [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:37]Read from MH i2c: E2 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: E2 17 00 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: E2 17 00 9B F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [05:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:57:37]wFMCommunicate OK [05:57:37]CreateOFDProtocolMessage done [05:57:37]OFDSenderStorePacket 162370 [05:57:37]StoreOFDPacket docnum=162370 [05:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 0A 07 01 48 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5C 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7A 02 00 35 04 06 00 AD 46 38 68 05 0F 01 39 45 B7 0E C2 92 22 [05:57:37]CheckFolder [05:57:37]dirname=/storage/ofd_packets [05:57:37]CheckFolder done [05:57:37]ProducePacketName [05:57:37]name=ofd_packets/00162370 [05:57:37]NVStorageSaveData ofd_packets/00162370 [05:57:37]File name is /storage/ofd_packets/00162370 [05:57:37]Write 301 bytes [05:57:37]NVStorageSaveData done [05:57:37]OFDSenderStorePacket done [05:57:37]KKMCreateOFDPacket done [05:57:37]NVStorageSaveData kkm_last_timestamp [05:57:37]File name is /storage/kkm_last_timestamp [05:57:37]Write 4 bytes [05:57:37]NVStorageSaveData done [05:57:37]ExternCall_PrintAddStr [05:57:37]wPrintStart [05:57:37]Write to MH i2c: 01 00 00 9C F7 93 [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 07 00 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 07 00 9C F7 00 00 00 00 00 FF 0F A8 [05:57:37]RasterBufferAndPrint [05:57:37]line Счет N : (1)1318891 [05:57:37]line ИНН: 02508201610067 [05:57:37]line Контрольно-Кассовый Чек [05:57:37]line ПРОДАЖА [05:57:37]line ТРК (МРК, ГНК) : 53 [05:57:37]line Товар: 2710124130 [05:57:37]line Аи-92-К-5 [05:57:37]line 3.620 * 66.30 [05:57:37]line = 240.01 [05:57:37]line НДС 12% НСП 1% [05:57:37]line > о реализуемом товаре [05:57:37]line ОКРУГЛЕНИЕ: -0.01 [05:57:37]line ИТОГО: 240.00 [05:57:37]line Внесено: 240.00 [05:57:37]line СДАЧА: 0.00 [05:57:37]line НСП 1% : 2.12 [05:57:37]line НДС 12% : 25.49 [05:57:37]line Наличными: 240.00 [05:57:37]line Безнал.: 0.00 [05:57:37]line Место: АЗС № 140 "Партнер Нефть" [05:57:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:57:37]line СНО: Общий режим [05:57:37]line Чек 38 13.07.2024 05:57 [05:57:37]line Смена: 462 ФФД: 1.0 [05:57:37]line ЗНМ: 0300000129 [05:57:37]line РНМ: 0000000000090858 [05:57:37]line Версия ККМ: 001 [05:57:37]line ФМ: 0000000000874899 [05:57:37]line ФД: 162370 [05:57:37]line ФПД: 190517105657103 [05:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055748&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162370&fm=190517105657103&tin=02508201610067®Number=0000000000090858&sum=24000 [05:57:37]OFD Sender: Processing packet 162370 [packets to send 105, broken 104] [05:57:37]ProducePacketName [05:57:37]name=ofd_packets/00162370 [05:57:37]OFD Sender: To server: pG, [05:57:37]CommunicateWithHost lk.salyk.kg:30040 [05:57:37]ConnectInit lk.salyk.kg [05:57:37]written 0, free lines is 4095 [05:57:37]Connected sock=10 [05:57:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 0A 07 01 48 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 0E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C1 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 5C 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7A 02 00 35 04 06 00 AD 46 38 68 05 0F 01 39 45 B7 0E C2 92 22 [05:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 36 F9 47 00 AC 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7A 02 00 F4 03 04 00 71 C3 91 66 B6 04 01 00 00 C9 AB 04 E0 C0 81 84 CF [05:57:37]CommunicateWithHost err = 0 [05:57:37]CheckOFDResponse [05:57:37]1017 (14) - 77093643461234 [05:57:37]1041 (16) - 0000000000874899 [05:57:37]1040 (4) - 162370 [05:57:37]1012 (4) - 12.07.2024 23:59 [05:57:37]1206 (1) - 0 [05:57:37]OFD Sender: Remove packet 162370 [05:57:37]ProducePacketName [05:57:37]name=ofd_packets/00162370 [05:57:37]NVStorageDeleteData [05:57:37]Write to MH i2c: 01 00 00 C7 F7 BE [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 07 00 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: 01 07 00 C7 F7 00 00 00 00 00 D7 0C A8 [05:57:37]RasterBufferAndPrint [05:57:37]line [05:57:37]line [05:57:37]line [05:57:37]line [05:57:37]line [05:57:37]written 0, free lines is 3295 [05:57:37]MH_Cut [05:57:37]Write to MH i2c: D1 01 00 CE F7 01 97 [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: D1 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: D1 01 00 [05:57:37]MH_I2C_Read... [05:57:37]Read from MH i2c: D1 01 00 CE F7 00 96 [05:57:37]Write to MH i2c: 01 00 00 CF F7 C6 [05:57:37]Write i2c OK [05:57:37]MH_I2C_Read... [05:57:38]OFD Sender: No OFD packet to send [05:57:38]*** Cut start [05:57:38]*** Purtial cut [05:57:38]*** CUTSNS_PIN = 0 [05:57:38]*** Stage 1: CUTSNS_PIN = 1 [05:57:40]Read from MH i2c: 01 [05:57:40]MH_I2C_Read... [05:57:40]*** Stop cut motor [05:57:40]*** Cut end [05:57:40]Read from MH i2c: 01 07 00 [05:57:40]MH_I2C_Read... [05:57:40]Read from MH i2c: 01 07 00 CF F7 00 00 00 00 00 FF 0F DB [05:57:40]process_action close_receipt done [05:57:40]requested_data is exist [05:57:40]produce_requested_data [05:57:40]requested_item fm.sn is exist - process it [05:57:40]wFMCommunicate request_size=4 [05:57:40]MH_SAM_APDU [05:57:40]CAPDU: 80 11 00 00 [05:57:40]Write to MH i2c: E2 08 00 D0 F7 80 11 00 00 00 00 00 00 41 [05:57:40]Write i2c OK [05:57:40]MH_I2C_Read... [05:57:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:57:40]Read from MH i2c: E2 [05:57:40]MH_I2C_Read... [05:57:40]Read from MH i2c: E2 17 00 [05:57:40]MH_I2C_Read... [05:57:40]Read from MH i2c: E2 17 00 D0 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A1 [05:57:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:57:40]wFMCommunicate OK [05:57:40]requested_item fd.num is exist - process it [05:57:40]SAM_PROTO_GetFieldsCounters [05:57:40]wFMCommunicate request_size=4 [05:57:40]MH_SAM_APDU [05:57:40]CAPDU: 80 13 00 00 [05:57:40]Write to MH i2c: E2 08 00 D1 F7 80 13 00 00 00 00 00 00 44 [05:57:40]Write i2c OK [05:57:40]MH_I2C_Read... [05:57:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:57:40]Read from MH i2c: E2 [05:57:40]MH_I2C_Read... [05:57:40]Read from MH i2c: E2 62 00 [05:57:40]MH_I2C_Read... [05:57:40]Read from MH i2c: E2 62 00 D1 F7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 42 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [05:57:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 42 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:57:40]wFMCommunicate OK [05:57:40]SAM_PROTO_GetFieldsCounters done [05:57:40]requested_item shift.num is exist - process it [05:57:40]requested_item shift.opened is exist - process it [05:57:40]req_shift_opened [05:57:40]FM_GetShiftState [05:57:40]SAM_PROTO_GetShiftState [05:57:40]wFMCommunicate request_size=4 [05:57:40]MH_SAM_APDU [05:57:40]CAPDU: 80 13 01 00 [05:57:40]Write to MH i2c: E2 08 00 D2 F7 80 13 01 00 00 00 00 00 46 [05:57:40]Write i2c OK [05:57:40]MH_I2C_Read... [05:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:40]Read from MH i2c: E2 [05:57:40]MH_I2C_Read... [05:57:40]Read from MH i2c: E2 0E 00 [05:57:40]MH_I2C_Read... [05:57:40]Read from MH i2c: E2 0E 00 D2 F7 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 40 [05:57:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:57:40]wFMCommunicate OK [05:57:40]SAM_PROTO_GetShiftState done [05:57:40]FM_GetShiftState done [05:57:40]req_shift_opened done [05:57:40]requested_item shift.open_date is exist - process it [05:57:40]req_shift_open_date [05:57:40]req_shift_open_date done [05:57:40]produce_requested_data done [05:57:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162370,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:57:40]process_action_free close_receipt [05:57:40]json_value_free [05:57:40]json_value_free done [05:57:40]process_json_proto returns [05:57:40]Send response to host [05:57:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162370,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:57:40]free response buf [05:57:40]execute_script done [05:57:40]execute_script returns [05:57:40]free content buf [05:57:40]Sock 8.Close socket [05:57:40]Sock 8.Thread stoped [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:57:59]accept exits with 9 [05:57:59]New connection [05:57:59]New thread 3067006308 created [05:57:59]Thread 3066862948 joined [05:57:59]Waiting for new connection... [05:57:59] Sock 9.Parse request [05:57:59]Sock 9.Check first char [05:57:59]Sock 9.First char is OK [05:57:59]request: POST /json_proto HTTP/1.0 [05:57:59]Method: POST [05:57:59]URL: /json_proto [05:57:59]Method is POST - this is cgi request [05:57:59]url: /json_proto [05:57:59]query_string will be loaded in cgi processing [05:57:59]execute_cgi json_proto POST (null) [05:57:59]execute_cgi path=json_proto method=POST [05:57:59]POST find Content-Length [05:57:59]Host: 172.17.39.67:8080 [05:57:59]Content-Length: 678 [05:57:59]Content-Type: application/json [05:57:59] [05:57:59]POST finish read [05:57:59]Found Content-Length = 678 [05:57:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 2.120, "sum" : 140.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:59]execute_script... [05:57: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)1318893", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 2.120, "sum" : 140.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:57:59]POST & json_proto [05:57:59]process_json_proto [05:57:59]json parsed OK: [05:57:59]protocol is kg_v1.0 [05:57:59]action value=close_receipt [05:57:59]process_action close_receipt [05:57:59]cmd_close_receipt [05:57:59]MH_GetDate [05:57:59]Write to MH i2c: F0 00 00 D3 F7 B9 [05:57:59]Write i2c OK [05:57:59]MH_I2C_Read... [05:57:59]Read from MH i2c: F0 [05:57:59]MH_I2C_Read... [05:57:59]Read from MH i2c: F0 09 00 [05:57:59]MH_I2C_Read... [05:57:59]Read from MH i2c: F0 09 00 D3 F7 00 74 17 92 66 FA E9 8E 66 1C [05:57:59]GetLastDocTimeStamp 1720850268 [05:57:59]current date 1720850292 [05:57:59]FM_GetShiftState [05:57:59]SAM_PROTO_GetShiftState [05:57:59]wFMCommunicate request_size=4 [05:57:59]MH_SAM_APDU [05:57:59]CAPDU: 80 13 01 00 [05:57:59]Write to MH i2c: E2 08 00 D4 F7 80 13 01 00 00 00 00 00 48 [05:57:59]Write i2c OK [05:57:59]MH_I2C_Read... [05:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:57:59]Read from MH i2c: E2 [05:57:59]MH_I2C_Read... [05:57:59]Read from MH i2c: E2 0E 00 [05:57:59]MH_I2C_Read... [05:57:59]Read from MH i2c: E2 0E 00 D4 F7 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 42 [05:57:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:57:59]wFMCommunicate OK [05:57:59]SAM_PROTO_GetShiftState done [05:57:59]FM_GetShiftState done [05:57:59]opened in 1720828979 [05:57:59]opened+sec_in_day 1720915379 [05:57:59]quantity*price = 14055 [05:57:59]sum+1 = 14057 [05:57:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.93 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 39 13.07.2024 05:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162371 ФПД: 130219770472299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055812&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162371&fm=130219770472299&tin=02508201610067®Number=0000000000090858&sum=14000 [05:58:00]StoreToDocumentArchive [05:58:00]shift 462 fd 162371 [05:58:00]save to /storage/0462/doc_00162371 [05:58:00]save last doc name /storage/0462/doc_00162371 to /storage/kkm_last_doc_name [05:58:00]save OK [05:58:00]Clear old archive folders... [05:58:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:58:00]tlvbuf is 017F4F80 [05:58:00]SAM_PROTO_ClearQueue [05:58:00]wFMCommunicate request_size=4 [05:58:00]MH_SAM_APDU [05:58:00]CAPDU: 80 09 00 00 [05:58:00]Write to MH i2c: E2 08 00 E1 F7 80 09 00 00 00 00 00 00 4A [05:58:00]Write i2c OK [05:58:00]MH_I2C_Read... [05:58:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:00]Read from MH i2c: E2 [05:58:00]MH_I2C_Read... [05:58:00]Read from MH i2c: E2 03 00 [05:58:00]MH_I2C_Read... [05:58:00]Read from MH i2c: E2 03 00 E1 F7 00 90 00 4C [05:58:00]RAPDU: 90 00 [05:58:00]wFMCommunicate OK [05:58:00]SAM_PROTO_ClearQueue done [05:58:00]KKMCreateOFDPacket [05:58:00]OFDProtocolAddRootSTLVToBuf [05:58:00]FM_MakeSignedData [05:58:00]FM_MakeSignedData [05:58:00]SAM_PROTO_SignData [05:58:00]wFMCommunicate request_size=4 [05:58:00]MH_SAM_APDU [05:58:00]CAPDU: 80 0D 01 02 [05:58:00]Write to MH i2c: E2 08 00 E2 F7 80 0D 01 02 00 00 00 00 52 [05:58:00]Write i2c OK [05:58:00]MH_I2C_Read... [05:58:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:00]Read from MH i2c: E2 [05:58:00]MH_I2C_Read... [05:58:00]Read from MH i2c: E2 03 00 [05:58:00]MH_I2C_Read... [05:58:00]Read from MH i2c: E2 03 00 E2 F7 00 90 00 4D [05:58:00]RAPDU: 90 00 [05:58:00]wFMCommunicate OK [05:58:00]wFMCommunicate request_size=255 [05:58:00]MH_SAM_APDU [05:58:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 74 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7A 02 00 35 04 06 00 76 [05:58:00]Write to MH i2c: E2 02 01 E3 F7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 74 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7A 02 00 35 04 06 00 76 00 00 AB [05:58:00]Write i2c OK [05:58:00]MH_I2C_Read... [05:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:01]Read from MH i2c: E2 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 03 00 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 03 00 E3 F7 00 90 00 4E [05:58:01]RAPDU: 90 00 [05:58:01]wFMCommunicate OK [05:58:01]wFMCommunicate request_size=10 [05:58:01]MH_SAM_APDU [05:58:01]CAPDU: 80 0D 02 02 05 6F 27 29 67 6B [05:58:01]Write to MH i2c: E2 0D 00 E4 F7 80 0D 02 02 05 00 6F 27 29 67 6B 00 00 F0 [05:58:01]Write i2c OK [05:58:01]MH_I2C_Read... [05:58:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:01]Read from MH i2c: E2 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 03 00 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 03 00 E4 F7 00 90 00 4F [05:58:01]RAPDU: 90 00 [05:58:01]wFMCommunicate OK [05:58:01]wFMCommunicate request_size=4 [05:58:01]MH_SAM_APDU [05:58:01]CAPDU: 80 0D 03 02 [05:58:01]Write to MH i2c: E2 08 00 E5 F7 80 0D 03 02 00 00 00 00 57 [05:58:01]Write i2c OK [05:58:01]MH_I2C_Read... [05:58:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:01]Read from MH i2c: E2 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 0B 00 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 0B 00 E5 F7 00 27 1E B3 DB 2F C9 9B 9C 90 00 5A [05:58:01]RAPDU: 27 1E B3 DB 2F C9 9B 9C 90 00 [05:58:01]wFMCommunicate OK [05:58:01]SAM_PROTO_SignData done [05:58:01]FM_MakeSignedData done [05:58:01]CreateOFDProtocolMessage [05:58:01]wFMCommunicate request_size=4 [05:58:01]MH_SAM_APDU [05:58:01]CAPDU: 80 11 00 00 [05:58:01]Write to MH i2c: E2 08 00 E6 F7 80 11 00 00 00 00 00 00 57 [05:58:01]Write i2c OK [05:58:01]MH_I2C_Read... [05:58:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:01]Read from MH i2c: E2 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 17 00 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: E2 17 00 E6 F7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [05:58:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:58:01]wFMCommunicate OK [05:58:01]CreateOFDProtocolMessage done [05:58:01]OFDSenderStorePacket 162371 [05:58:01]StoreOFDPacket docnum=162371 [05:58:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 79 9D 07 01 9E EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 74 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7A 02 00 35 04 06 00 76 6F 27 29 67 6B 27 1E B3 DB 2F C9 9B 9C [05:58:01]CheckFolder [05:58:01]dirname=/storage/ofd_packets [05:58:01]CheckFolder done [05:58:01]ProducePacketName [05:58:01]name=ofd_packets/00162371 [05:58:01]NVStorageSaveData ofd_packets/00162371 [05:58:01]File name is /storage/ofd_packets/00162371 [05:58:01]Write 301 bytes [05:58:01]NVStorageSaveData done [05:58:01]OFDSenderStorePacket done [05:58:01]KKMCreateOFDPacket done [05:58:01]NVStorageSaveData kkm_last_timestamp [05:58:01]File name is /storage/kkm_last_timestamp [05:58:01]Write 4 bytes [05:58:01]NVStorageSaveData done [05:58:01]ExternCall_PrintAddStr [05:58:01]wPrintStart [05:58:01]Write to MH i2c: 01 00 00 E7 F7 DE [05:58:01]Write i2c OK [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: 01 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: 01 07 00 [05:58:01]MH_I2C_Read... [05:58:01]Read from MH i2c: 01 07 00 E7 F7 00 00 00 00 00 FF 0F F3 [05:58:01]RasterBufferAndPrint [05:58:01]line Счет N : (1)1318893 [05:58:01]line ИНН: 02508201610067 [05:58:01]line Контрольно-Кассовый Чек [05:58:01]line ПРОДАЖА [05:58:01]line ТРК (МРК, ГНК) : 53 [05:58:01]line Товар: 2710124130 [05:58:01]line Аи-92-К-5 [05:58:01]line 2.120 * 66.30 [05:58:01]line = 140.56 [05:58:01]line НДС 12% НСП 1% [05:58:01]line > о реализуемом товаре [05:58:01]line ОКРУГЛЕНИЕ: -0.56 [05:58:01]line ИТОГО: 140.00 [05:58:01]line Внесено: 140.00 [05:58:01]line СДАЧА: 0.00 [05:58:01]line НСП 1% : 1.24 [05:58:01]line НДС 12% : 14.93 [05:58:01]line Наличными: 140.00 [05:58:01]line Безнал.: 0.00 [05:58:01]line Место: АЗС № 140 "Партнер Нефть" [05:58:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:58:01]line СНО: Общий режим [05:58:01]line Чек 39 13.07.2024 05:58 [05:58:01]line Смена: 462 ФФД: 1.0 [05:58:01]line ЗНМ: 0300000129 [05:58:01]line РНМ: 0000000000090858 [05:58:01]line Версия ККМ: 001 [05:58:01]line ФМ: 0000000000874899 [05:58:01]line ФД: 162371 [05:58:01]line ФПД: 130219770472299 [05:58:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055812&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162371&fm=130219770472299&tin=02508201610067®Number=0000000000090858&sum=14000 [05:58:01]OFD Sender: Processing packet 162371 [packets to send 105, broken 104] [05:58:01]ProducePacketName [05:58:01]name=ofd_packets/00162371 [05:58:01]OFD Sender: To server: pG, [05:58:01]CommunicateWithHost lk.salyk.kg:30040 [05:58:01]ConnectInit lk.salyk.kg [05:58:01]written 0, free lines is 4095 [05:58:01]Connected sock=10 [05:58:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 79 9D 07 01 9E EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 08 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E8 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 74 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7A 02 00 35 04 06 00 76 6F 27 29 67 6B 27 1E B3 DB 2F C9 9B 9C [05:58:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 92 25 47 00 2C 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7A 02 00 F4 03 04 00 89 C3 91 66 B6 04 01 00 00 75 C1 13 69 3C 89 9A 58 [05:58:01]CommunicateWithHost err = 0 [05:58:01]CheckOFDResponse [05:58:01]1017 (14) - 77093643461234 [05:58:01]1041 (16) - 0000000000874899 [05:58:01]1040 (4) - 162371 [05:58:01]1012 (4) - 13.07.2024 00:00 [05:58:01]1206 (1) - 0 [05:58:01]OFD Sender: Remove packet 162371 [05:58:01]ProducePacketName [05:58:01]name=ofd_packets/00162371 [05:58:01]NVStorageDeleteData [05:58:02]Write to MH i2c: 01 00 00 12 F8 0A [05:58:02]Write i2c OK [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: 01 [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: 01 07 00 [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: 01 07 00 12 F8 00 00 00 00 00 E5 0C 02 [05:58:02]RasterBufferAndPrint [05:58:02]line [05:58:02]line [05:58:02]line [05:58:02]line [05:58:02]line [05:58:02]written 0, free lines is 3310 [05:58:02]MH_Cut [05:58:02]Write to MH i2c: D1 01 00 19 F8 01 E3 [05:58:02]Write i2c OK [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: D1 [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: D1 01 00 [05:58:02]MH_I2C_Read... [05:58:02]Read from MH i2c: D1 01 00 19 F8 00 E2 [05:58:02]Write to MH i2c: 01 00 00 1A F8 12 [05:58:02]Write i2c OK [05:58:02]MH_I2C_Read... [05:58:02]OFD Sender: No OFD packet to send [05:58:02]*** Cut start [05:58:02]*** Purtial cut [05:58:02]*** Stage 1: CUTSNS_PIN = 1 [05:58:03]Read from MH i2c: 01 [05:58:03]MH_I2C_Read... [05:58:03]*** Stop cut motor [05:58:03]*** Cut end [05:58:03]Read from MH i2c: 01 07 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: 01 07 00 1A F8 00 00 00 00 00 FF 0F 27 [05:58:03]process_action close_receipt done [05:58:03]requested_data is exist [05:58:03]produce_requested_data [05:58:03]requested_item fm.sn is exist - process it [05:58:03]wFMCommunicate request_size=4 [05:58:03]MH_SAM_APDU [05:58:03]CAPDU: 80 11 00 00 [05:58:03]Write to MH i2c: E2 08 00 1B F8 80 11 00 00 00 00 00 00 8D [05:58:03]Write i2c OK [05:58:03]MH_I2C_Read... [05:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:03]Read from MH i2c: E2 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 17 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 17 00 1B F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 ED [05:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:58:03]wFMCommunicate OK [05:58:03]requested_item fd.num is exist - process it [05:58:03]SAM_PROTO_GetFieldsCounters [05:58:03]wFMCommunicate request_size=4 [05:58:03]MH_SAM_APDU [05:58:03]CAPDU: 80 13 00 00 [05:58:03]Write to MH i2c: E2 08 00 1C F8 80 13 00 00 00 00 00 00 90 [05:58:03]Write i2c OK [05:58:03]MH_I2C_Read... [05:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:03]Read from MH i2c: E2 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 62 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 62 00 1C F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 43 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [05:58:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 43 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:58:03]wFMCommunicate OK [05:58:03]SAM_PROTO_GetFieldsCounters done [05:58:03]requested_item shift.num is exist - process it [05:58:03]requested_item shift.opened is exist - process it [05:58:03]req_shift_opened [05:58:03]FM_GetShiftState [05:58:03]SAM_PROTO_GetShiftState [05:58:03]wFMCommunicate request_size=4 [05:58:03]MH_SAM_APDU [05:58:03]CAPDU: 80 13 01 00 [05:58:03]Write to MH i2c: E2 08 00 1D F8 80 13 01 00 00 00 00 00 92 [05:58:03]Write i2c OK [05:58:03]MH_I2C_Read... [05:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:03]Read from MH i2c: E2 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 0E 00 [05:58:03]MH_I2C_Read... [05:58:03]Read from MH i2c: E2 0E 00 1D F8 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8C [05:58:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:58:03]wFMCommunicate OK [05:58:03]SAM_PROTO_GetShiftState done [05:58:03]FM_GetShiftState done [05:58:03]req_shift_opened done [05:58:03]requested_item shift.open_date is exist - process it [05:58:03]req_shift_open_date [05:58:03]req_shift_open_date done [05:58:03]produce_requested_data done [05:58:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162371,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:58:03]process_action_free close_receipt [05:58:03]json_value_free [05:58:03]json_value_free done [05:58:03]process_json_proto returns [05:58:03]Send response to host [05:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162371,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:58:03]free response buf [05:58:03]execute_script done [05:58:03]execute_script returns [05:58:03]free content buf [05:58:03]Sock 9.Close socket [05:58:03]Sock 9.Thread stoped [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]accept exits with 8 [05:58:27]New connection [05:58:27]New thread 3066862948 created [05:58:27]Thread 3067006308 joined [05:58:27]Waiting for new connection... [05:58:27] Sock 8.Parse request [05:58:27]Sock 8.Check first char [05:58:27]Sock 8.First char is OK [05:58:27]request: POST /json_proto HTTP/1.0 [05:58:27]Method: POST [05:58:27]URL: /json_proto [05:58:27]Method is POST - this is cgi request [05:58:27]url: /json_proto [05:58:27]query_string will be loaded in cgi processing [05:58:27]execute_cgi json_proto POST (null) [05:58:27]execute_cgi path=json_proto method=POST [05:58:27]POST find Content-Length [05:58:27]Host: 172.17.39.67:8080 [05:58:27]Content-Length: 678 [05:58:27]Content-Type: application/json [05:58:27] [05:58:27]POST finish read [05:58:27]Found Content-Length = 678 [05:58:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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" ] } } [05:58:27]execute_script... [05:58: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)1318892", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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" ] } } [05:58:27]POST & json_proto [05:58:27]process_json_proto [05:58:27]json parsed OK: [05:58:27]protocol is kg_v1.0 [05:58:27]action value=close_receipt [05:58:27]process_action close_receipt [05:58:27]cmd_close_receipt [05:58:27]MH_GetDate [05:58:27]Write to MH i2c: F0 00 00 1E F8 05 [05:58:27]Write i2c OK [05:58:27]MH_I2C_Read... [05:58:27]Read from MH i2c: F0 [05:58:27]MH_I2C_Read... [05:58:27]Read from MH i2c: F0 09 00 [05:58:27]MH_I2C_Read... [05:58:27]Read from MH i2c: F0 09 00 1E F8 00 8F 17 92 66 FA E9 8E 66 83 [05:58:27]GetLastDocTimeStamp 1720850292 [05:58:27]current date 1720850319 [05:58:27]FM_GetShiftState [05:58:27]SAM_PROTO_GetShiftState [05:58:27]wFMCommunicate request_size=4 [05:58:27]MH_SAM_APDU [05:58:27]CAPDU: 80 13 01 00 [05:58:27]Write to MH i2c: E2 08 00 1F F8 80 13 01 00 00 00 00 00 94 [05:58:27]Write i2c OK [05:58:27]MH_I2C_Read... [05:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:27]Read from MH i2c: E2 [05:58:27]MH_I2C_Read... [05:58:27]Read from MH i2c: E2 0E 00 [05:58:27]MH_I2C_Read... [05:58:27]Read from MH i2c: E2 0E 00 1F F8 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8E [05:58:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:58:27]wFMCommunicate OK [05:58:27]SAM_PROTO_GetShiftState done [05:58:27]FM_GetShiftState done [05:58:27]opened in 1720828979 [05:58:27]opened+sec_in_day 1720915379 [05:58:27]quantity*price = 40045 [05:58:27]sum+1 = 40046 [05:58:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 40 13.07.2024 05:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162372 ФПД: 249810441090504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055840&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162372&fm=249810441090504&tin=02508201610067®Number=0000000000090858&sum=40000 [05:58:28]StoreToDocumentArchive [05:58:28]shift 462 fd 162372 [05:58:28]save to /storage/0462/doc_00162372 [05:58:28]save last doc name /storage/0462/doc_00162372 to /storage/kkm_last_doc_name [05:58:28]save OK [05:58:28]Clear old archive folders... [05:58:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:58:28]tlvbuf is 019C0500 [05:58:28]SAM_PROTO_ClearQueue [05:58:28]wFMCommunicate request_size=4 [05:58:28]MH_SAM_APDU [05:58:28]CAPDU: 80 09 00 00 [05:58:28]Write to MH i2c: E2 08 00 2C F8 80 09 00 00 00 00 00 00 96 [05:58:28]Write i2c OK [05:58:28]MH_I2C_Read... [05:58:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:58:28]Read from MH i2c: E2 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 03 00 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 03 00 2C F8 00 90 00 98 [05:58:28]RAPDU: 90 00 [05:58:28]wFMCommunicate OK [05:58:28]SAM_PROTO_ClearQueue done [05:58:28]KKMCreateOFDPacket [05:58:28]OFDProtocolAddRootSTLVToBuf [05:58:28]FM_MakeSignedData [05:58:28]FM_MakeSignedData [05:58:28]SAM_PROTO_SignData [05:58:28]wFMCommunicate request_size=4 [05:58:28]MH_SAM_APDU [05:58:28]CAPDU: 80 0D 01 02 [05:58:28]Write to MH i2c: E2 08 00 2D F8 80 0D 01 02 00 00 00 00 9E [05:58:28]Write i2c OK [05:58:28]MH_I2C_Read... [05:58:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:58:28]Read from MH i2c: E2 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 03 00 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 03 00 2D F8 00 90 00 99 [05:58:28]RAPDU: 90 00 [05:58:28]wFMCommunicate OK [05:58:28]wFMCommunicate request_size=255 [05:58:28]MH_SAM_APDU [05:58:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 28 00 00 00 F4 03 04 00 90 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7A 02 00 35 04 06 00 E3 [05:58:28]Write to MH i2c: E2 02 01 2E F8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 28 00 00 00 F4 03 04 00 90 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7A 02 00 35 04 06 00 E3 00 00 72 [05:58:28]Write i2c OK [05:58:28]MH_I2C_Read... [05:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:28]Read from MH i2c: E2 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 03 00 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 03 00 2E F8 00 90 00 9A [05:58:28]RAPDU: 90 00 [05:58:28]wFMCommunicate OK [05:58:28]wFMCommunicate request_size=10 [05:58:28]MH_SAM_APDU [05:58:28]CAPDU: 80 0D 02 02 05 33 86 9A 35 C8 [05:58:28]Write to MH i2c: E2 0D 00 2F F8 80 0D 02 02 05 00 33 86 9A 35 C8 00 00 FB [05:58:28]Write i2c OK [05:58:28]MH_I2C_Read... [05:58:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:58:28]Read from MH i2c: E2 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 03 00 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 03 00 2F F8 00 90 00 9B [05:58:28]RAPDU: 90 00 [05:58:28]wFMCommunicate OK [05:58:28]wFMCommunicate request_size=4 [05:58:28]MH_SAM_APDU [05:58:28]CAPDU: 80 0D 03 02 [05:58:28]Write to MH i2c: E2 08 00 30 F8 80 0D 03 02 00 00 00 00 A3 [05:58:28]Write i2c OK [05:58:28]MH_I2C_Read... [05:58:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:58:28]Read from MH i2c: E2 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 0B 00 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 0B 00 30 F8 00 27 49 69 C4 F8 4A CB 59 90 00 A7 [05:58:28]RAPDU: 27 49 69 C4 F8 4A CB 59 90 00 [05:58:28]wFMCommunicate OK [05:58:28]SAM_PROTO_SignData done [05:58:28]FM_MakeSignedData done [05:58:28]CreateOFDProtocolMessage [05:58:28]wFMCommunicate request_size=4 [05:58:28]MH_SAM_APDU [05:58:28]CAPDU: 80 11 00 00 [05:58:28]Write to MH i2c: E2 08 00 31 F8 80 11 00 00 00 00 00 00 A3 [05:58:28]Write i2c OK [05:58:28]MH_I2C_Read... [05:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:28]Read from MH i2c: E2 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 17 00 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: E2 17 00 31 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [05:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:58:28]wFMCommunicate OK [05:58:28]CreateOFDProtocolMessage done [05:58:28]OFDSenderStorePacket 162372 [05:58:28]StoreOFDPacket docnum=162372 [05:58:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 89 89 07 01 71 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 28 00 00 00 F4 03 04 00 90 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7A 02 00 35 04 06 00 E3 33 86 9A 35 C8 27 49 69 C4 F8 4A CB 59 [05:58:28]CheckFolder [05:58:28]dirname=/storage/ofd_packets [05:58:28]CheckFolder done [05:58:28]ProducePacketName [05:58:28]name=ofd_packets/00162372 [05:58:28]NVStorageSaveData ofd_packets/00162372 [05:58:28]File name is /storage/ofd_packets/00162372 [05:58:28]Write 301 bytes [05:58:28]NVStorageSaveData done [05:58:28]OFDSenderStorePacket done [05:58:28]KKMCreateOFDPacket done [05:58:28]NVStorageSaveData kkm_last_timestamp [05:58:28]File name is /storage/kkm_last_timestamp [05:58:28]Write 4 bytes [05:58:28]NVStorageSaveData done [05:58:28]ExternCall_PrintAddStr [05:58:28]wPrintStart [05:58:28]Write to MH i2c: 01 00 00 32 F8 2A [05:58:28]Write i2c OK [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: 01 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: 01 07 00 [05:58:28]MH_I2C_Read... [05:58:28]Read from MH i2c: 01 07 00 32 F8 00 00 00 00 00 FF 0F 3F [05:58:28]RasterBufferAndPrint [05:58:28]line Счет N : (1)1318892 [05:58:28]line ИНН: 02508201610067 [05:58:28]line Контрольно-Кассовый Чек [05:58:28]line ПРОДАЖА [05:58:28]line ТРК (МРК, ГНК) : 43 [05:58:28]line Товар: 2710124130 [05:58:28]line Аи-92-К-5 [05:58:28]line 6.040 * 66.30 [05:58:28]line = 400.45 [05:58:28]line НДС 12% НСП 1% [05:58:28]line > о реализуемом товаре [05:58:28]line ОКРУГЛЕНИЕ: -0.45 [05:58:28]line ИТОГО: 400.00 [05:58:28]line Внесено: 400.00 [05:58:28]line СДАЧА: 0.00 [05:58:28]line НСП 1% : 3.54 [05:58:28]line НДС 12% : 42.53 [05:58:28]line Наличными: 400.00 [05:58:28]line Безнал.: 0.00 [05:58:28]line Место: АЗС № 140 "Партнер Нефть" [05:58:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:58:28]line СНО: Общий режим [05:58:28]line Чек 40 13.07.2024 05:58 [05:58:28]line Смена: 462 ФФД: 1.0 [05:58:28]line ЗНМ: 0300000129 [05:58:28]line РНМ: 0000000000090858 [05:58:28]line Версия ККМ: 001 [05:58:28]line ФМ: 0000000000874899 [05:58:28]line ФД: 162372 [05:58:28]line ФПД: 249810441090504 [05:58:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T055840&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162372&fm=249810441090504&tin=02508201610067®Number=0000000000090858&sum=40000 [05:58:29]OFD Sender: Processing packet 162372 [packets to send 105, broken 104] [05:58:29]ProducePacketName [05:58:29]name=ofd_packets/00162372 [05:58:29]OFD Sender: To server: pG, [05:58:29]CommunicateWithHost lk.salyk.kg:30040 [05:58:29]ConnectInit lk.salyk.kg [05:58:29]written 0, free lines is 4095 [05:58:29]Connected sock=10 [05:58:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 89 89 07 01 71 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 28 00 00 00 F4 03 04 00 90 17 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7A 02 00 35 04 06 00 E3 33 86 9A 35 C8 27 49 69 C4 F8 4A CB 59 [05:58:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4F AD 47 00 26 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 34 38 39 39 10 04 04 00 44 7A 02 00 F4 03 04 00 A5 C3 91 66 B6 04 01 00 00 9A 44 95 8D FE DF C6 97 [05:58:29]CommunicateWithHost err = 0 [05:58:29]CheckOFDResponse [05:58:29]1017 (14) - 77093643461234 [05:58:29]1041 (16) - 0000000000874899 [05:58:29]1040 (4) - 162372 [05:58:29]1012 (4) - 13.07.2024 00:00 [05:58:29]1206 (1) - 0 [05:58:29]OFD Sender: Remove packet 162372 [05:58:29]ProducePacketName [05:58:29]name=ofd_packets/00162372 [05:58:29]NVStorageDeleteData [05:58:29]Write to MH i2c: 01 00 00 5D F8 55 [05:58:29]Write i2c OK [05:58:29]MH_I2C_Read... [05:58:29]Read from MH i2c: 01 [05:58:29]MH_I2C_Read... [05:58:29]Read from MH i2c: 01 07 00 [05:58:29]MH_I2C_Read... [05:58:29]Read from MH i2c: 01 07 00 5D F8 00 00 00 00 00 EB 0C 53 [05:58:29]RasterBufferAndPrint [05:58:29]line [05:58:29]line [05:58:29]line [05:58:29]line [05:58:29]line [05:58:29]written 0, free lines is 3316 [05:58:29]MH_Cut [05:58:29]Write to MH i2c: D1 01 00 64 F8 01 2E [05:58:29]Write i2c OK [05:58:29]MH_I2C_Read... [05:58:29]Read from MH i2c: D1 [05:58:29]MH_I2C_Read... [05:58:29]Read from MH i2c: D1 01 00 [05:58:29]MH_I2C_Read... [05:58:29]Read from MH i2c: D1 01 00 64 F8 00 2D [05:58:29]Write to MH i2c: 01 00 00 65 F8 5D [05:58:29]Write i2c OK [05:58:29]MH_I2C_Read... [05:58:29]OFD Sender: No OFD packet to send [05:58:30]*** Cut start [05:58:30]*** Purtial cut [05:58:30]*** CUTSNS_PIN = 0 [05:58:30]*** Stage 1: CUTSNS_PIN = 1 [05:58:32]Read from MH i2c: 01 [05:58:32]MH_I2C_Read... [05:58:32]*** Stop cut motor [05:58:32]*** Cut end [05:58:32]Read from MH i2c: 01 07 00 [05:58:32]MH_I2C_Read... [05:58:32]Read from MH i2c: 01 07 00 65 F8 00 00 00 00 00 FF 0F 72 [05:58:32]process_action close_receipt done [05:58:32]requested_data is exist [05:58:32]produce_requested_data [05:58:32]requested_item fm.sn is exist - process it [05:58:32]wFMCommunicate request_size=4 [05:58:32]MH_SAM_APDU [05:58:32]CAPDU: 80 11 00 00 [05:58:32]Write to MH i2c: E2 08 00 66 F8 80 11 00 00 00 00 00 00 D8 [05:58:32]Write i2c OK [05:58:32]MH_I2C_Read... [05:58:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:58:32]Read from MH i2c: E2 [05:58:32]MH_I2C_Read... [05:58:32]Read from MH i2c: E2 17 00 [05:58:32]MH_I2C_Read... [05:58:32]Read from MH i2c: E2 17 00 66 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 38 [05:58:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [05:58:32]wFMCommunicate OK [05:58:32]requested_item fd.num is exist - process it [05:58:32]SAM_PROTO_GetFieldsCounters [05:58:32]wFMCommunicate request_size=4 [05:58:32]MH_SAM_APDU [05:58:32]CAPDU: 80 13 00 00 [05:58:32]Write to MH i2c: E2 08 00 67 F8 80 13 00 00 00 00 00 00 DB [05:58:32]Write i2c OK [05:58:32]MH_I2C_Read... [05:58:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:58:32]Read from MH i2c: E2 [05:58:32]MH_I2C_Read... [05:58:32]Read from MH i2c: E2 62 00 [05:58:32]MH_I2C_Read... [05:58:32]Read from MH i2c: E2 62 00 67 F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 44 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [05:58:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 44 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:58:32]wFMCommunicate OK [05:58:32]SAM_PROTO_GetFieldsCounters done [05:58:32]requested_item shift.num is exist - process it [05:58:32]requested_item shift.opened is exist - process it [05:58:32]req_shift_opened [05:58:32]FM_GetShiftState [05:58:32]SAM_PROTO_GetShiftState [05:58:32]wFMCommunicate request_size=4 [05:58:32]MH_SAM_APDU [05:58:32]CAPDU: 80 13 01 00 [05:58:32]Write to MH i2c: E2 08 00 68 F8 80 13 01 00 00 00 00 00 DD [05:58:32]Write i2c OK [05:58:32]MH_I2C_Read... [05:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:58:32]Read from MH i2c: E2 [05:58:32]MH_I2C_Read... [05:58:32]Read from MH i2c: E2 0E 00 [05:58:32]MH_I2C_Read... [05:58:32]Read from MH i2c: E2 0E 00 68 F8 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D7 [05:58:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [05:58:32]wFMCommunicate OK [05:58:32]SAM_PROTO_GetShiftState done [05:58:32]FM_GetShiftState done [05:58:32]req_shift_opened done [05:58:32]requested_item shift.open_date is exist - process it [05:58:32]req_shift_open_date [05:58:32]req_shift_open_date done [05:58:32]produce_requested_data done [05:58:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162372,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [05:58:32]process_action_free close_receipt [05:58:32]json_value_free [05:58:32]json_value_free done [05:58:32]process_json_proto returns [05:58:32]Send response to host [05:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162372,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [05:58:32]free response buf [05:58:32]execute_script done [05:58:32]execute_script returns [05:58:32]free content buf [05:58:32]Sock 8.Close socket [05:58:32]Sock 8.Thread stoped [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:18]accept exits with 9 [06:05:18]New connection [06:05:18]New thread 3067006308 created [06:05:18]Thread 3066862948 joined [06:05:18]Waiting for new connection... [06:05:18] Sock 9.Parse request [06:05:18]Sock 9.Check first char [06:05:18]Sock 9.First char is OK [06:05:18]request: POST /json_proto HTTP/1.0 [06:05:18]Method: POST [06:05:18]URL: /json_proto [06:05:18]Method is POST - this is cgi request [06:05:18]url: /json_proto [06:05:18]query_string will be loaded in cgi processing [06:05:18]execute_cgi json_proto POST (null) [06:05:18]execute_cgi path=json_proto method=POST [06:05:18]POST find Content-Length [06:05:18]Host: 172.17.39.67:8080 [06:05:18]Content-Length: 683 [06:05:18]Content-Type: application/json [06:05:18] [06:05:18]POST finish read [06:05:18]Found Content-Length = 683 [06:05:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.990, "sum" : 725.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 725.00, "total" : 725.00, "payments": [ { "type": 0, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:18]execute_script... [06:05:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318895", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.990, "sum" : 725.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 725.00, "total" : 725.00, "payments": [ { "type": 0, "sum" : 725.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:05:18]POST & json_proto [06:05:18]process_json_proto [06:05:18]json parsed OK: [06:05:18]protocol is kg_v1.0 [06:05:18]action value=close_receipt [06:05:18]process_action close_receipt [06:05:18]cmd_close_receipt [06:05:18]MH_GetDate [06:05:18]Write to MH i2c: F0 00 00 69 F8 50 [06:05:18]Write i2c OK [06:05:18]MH_I2C_Read... [06:05:18]Read from MH i2c: F0 [06:05:18]MH_I2C_Read... [06:05:18]Read from MH i2c: F0 09 00 [06:05:18]MH_I2C_Read... [06:05:18]Read from MH i2c: F0 09 00 69 F8 00 2B 19 92 66 FA E9 8E 66 6C [06:05:18]GetLastDocTimeStamp 1720850320 [06:05:18]current date 1720850731 [06:05:18]FM_GetShiftState [06:05:18]SAM_PROTO_GetShiftState [06:05:18]wFMCommunicate request_size=4 [06:05:18]MH_SAM_APDU [06:05:18]CAPDU: 80 13 01 00 [06:05:18]Write to MH i2c: E2 08 00 6A F8 80 13 01 00 00 00 00 00 DF [06:05:18]Write i2c OK [06:05:18]MH_I2C_Read... [06:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:18]Read from MH i2c: E2 [06:05:18]MH_I2C_Read... [06:05:18]Read from MH i2c: E2 0E 00 [06:05:18]MH_I2C_Read... [06:05:18]Read from MH i2c: E2 0E 00 6A F8 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D9 [06:05:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:05:18]wFMCommunicate OK [06:05:18]SAM_PROTO_GetShiftState done [06:05:18]FM_GetShiftState done [06:05:18]opened in 1720828979 [06:05:18]opened+sec_in_day 1720915379 [06:05:18]quantity*price = 72527 [06:05:18]sum+1 = 72528 [06:05:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 725.00 Внесено: 725.00 СДАЧА: 0.00 НСП 1% : 6.42 НДС 12% : 77.02 Наличными: 725.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 41 13.07.2024 06:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162373 ФПД: 230349037171019 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060531&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162373&fm=230349037171019&tin=02508201610067®Number=0000000000090858&sum=72500 [06:05:20]StoreToDocumentArchive [06:05:20]shift 462 fd 162373 [06:05:20]save to /storage/0462/doc_00162373 [06:05:20]save last doc name /storage/0462/doc_00162373 to /storage/kkm_last_doc_name [06:05:20]save OK [06:05:20]Clear old archive folders... [06:05:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:05:20]tlvbuf is 01C130E0 [06:05:20]SAM_PROTO_ClearQueue [06:05:20]wFMCommunicate request_size=4 [06:05:20]MH_SAM_APDU [06:05:20]CAPDU: 80 09 00 00 [06:05:20]Write to MH i2c: E2 08 00 77 F8 80 09 00 00 00 00 00 00 E1 [06:05:20]Write i2c OK [06:05:20]MH_I2C_Read... [06:05:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:05:20]Read from MH i2c: E2 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 03 00 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 03 00 77 F8 00 90 00 E3 [06:05:20]RAPDU: 90 00 [06:05:20]wFMCommunicate OK [06:05:20]SAM_PROTO_ClearQueue done [06:05:20]KKMCreateOFDPacket [06:05:20]OFDProtocolAddRootSTLVToBuf [06:05:20]FM_MakeSignedData [06:05:20]FM_MakeSignedData [06:05:20]SAM_PROTO_SignData [06:05:20]wFMCommunicate request_size=4 [06:05:20]MH_SAM_APDU [06:05:20]CAPDU: 80 0D 01 02 [06:05:20]Write to MH i2c: E2 08 00 78 F8 80 0D 01 02 00 00 00 00 E9 [06:05:20]Write i2c OK [06:05:20]MH_I2C_Read... [06:05:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:05:20]Read from MH i2c: E2 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 03 00 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 03 00 78 F8 00 90 00 E4 [06:05:20]RAPDU: 90 00 [06:05:20]wFMCommunicate OK [06:05:20]wFMCommunicate request_size=255 [06:05:20]MH_SAM_APDU [06:05:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4F 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 2B 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7A 02 00 35 04 06 00 [06:05:20]Write to MH i2c: E2 02 01 79 F8 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4F 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 2B 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7A 02 00 35 04 06 00 00 00 9D [06:05:20]Write i2c OK [06:05:20]MH_I2C_Read... [06:05:20]OFD Sender: No OFD packet to send [06:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:20]Read from MH i2c: E2 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 03 00 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 03 00 79 F8 00 90 00 E5 [06:05:20]RAPDU: 90 00 [06:05:20]wFMCommunicate OK [06:05:20]wFMCommunicate request_size=11 [06:05:20]MH_SAM_APDU [06:05:20]CAPDU: 80 0D 02 02 06 D1 80 50 88 F1 4B [06:05:20]Write to MH i2c: E2 0E 00 7A F8 80 0D 02 02 06 00 D1 80 50 88 F1 4B 00 00 5D [06:05:20]Write i2c OK [06:05:20]MH_I2C_Read... [06:05:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:05:20]Read from MH i2c: E2 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 03 00 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 03 00 7A F8 00 90 00 E6 [06:05:20]RAPDU: 90 00 [06:05:20]wFMCommunicate OK [06:05:20]wFMCommunicate request_size=4 [06:05:20]MH_SAM_APDU [06:05:20]CAPDU: 80 0D 03 02 [06:05:20]Write to MH i2c: E2 08 00 7B F8 80 0D 03 02 00 00 00 00 EE [06:05:20]Write i2c OK [06:05:20]MH_I2C_Read... [06:05:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:05:20]Read from MH i2c: E2 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 0B 00 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 0B 00 7B F8 00 F7 EB 49 4C AA B2 B7 16 90 00 8F [06:05:20]RAPDU: F7 EB 49 4C AA B2 B7 16 90 00 [06:05:20]wFMCommunicate OK [06:05:20]SAM_PROTO_SignData done [06:05:20]FM_MakeSignedData done [06:05:20]CreateOFDProtocolMessage [06:05:20]wFMCommunicate request_size=4 [06:05:20]MH_SAM_APDU [06:05:20]CAPDU: 80 11 00 00 [06:05:20]Write to MH i2c: E2 08 00 7C F8 80 11 00 00 00 00 00 00 EE [06:05:20]Write i2c OK [06:05:20]MH_I2C_Read... [06:05:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:20]Read from MH i2c: E2 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 17 00 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: E2 17 00 7C F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [06:05:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:05:20]wFMCommunicate OK [06:05:20]CreateOFDProtocolMessage done [06:05:20]OFDSenderStorePacket 162373 [06:05:20]StoreOFDPacket docnum=162373 [06:05:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 6A 08 01 10 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4F 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 2B 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7A 02 00 35 04 06 00 D1 80 50 88 F1 4B F7 EB 49 4C AA B2 B7 16 [06:05:20]CheckFolder [06:05:20]dirname=/storage/ofd_packets [06:05:20]CheckFolder done [06:05:20]ProducePacketName [06:05:20]name=ofd_packets/00162373 [06:05:20]NVStorageSaveData ofd_packets/00162373 [06:05:20]File name is /storage/ofd_packets/00162373 [06:05:20]Write 302 bytes [06:05:20]NVStorageSaveData done [06:05:20]OFDSenderStorePacket done [06:05:20]KKMCreateOFDPacket done [06:05:20]NVStorageSaveData kkm_last_timestamp [06:05:20]File name is /storage/kkm_last_timestamp [06:05:20]Write 4 bytes [06:05:20]NVStorageSaveData done [06:05:20]ExternCall_PrintAddStr [06:05:20]wPrintStart [06:05:20]Write to MH i2c: 01 00 00 7D F8 75 [06:05:20]Write i2c OK [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: 01 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: 01 07 00 [06:05:20]MH_I2C_Read... [06:05:20]Read from MH i2c: 01 07 00 7D F8 00 00 00 00 00 FF 0F 8A [06:05:20]RasterBufferAndPrint [06:05:20]line Счет N : (1)1318895 [06:05:20]line ИНН: 02508201610067 [06:05:20]line Контрольно-Кассовый Чек [06:05:20]line ПРОДАЖА [06:05:20]line ТРК (МРК, ГНК) : 21 [06:05:20]line Товар: 2710194210 [06:05:20]line ДТ(л)-К-5 [06:05:20]line 9.990 * 72.60 [06:05:20]line = 725.27 [06:05:20]line НДС 12% НСП 1% [06:05:20]line > о реализуемом товаре [06:05:20]line ОКРУГЛЕНИЕ: -0.27 [06:05:20]line ИТОГО: 725.00 [06:05:20]line Внесено: 725.00 [06:05:20]line СДАЧА: 0.00 [06:05:20]line НСП 1% : 6.42 [06:05:20]line НДС 12% : 77.02 [06:05:20]line Наличными: 725.00 [06:05:20]line Безнал.: 0.00 [06:05:20]line Место: АЗС № 140 "Партнер Нефть" [06:05:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:05:20]line СНО: Общий режим [06:05:20]line Чек 41 13.07.2024 06:05 [06:05:20]line Смена: 462 ФФД: 1.0 [06:05:20]line ЗНМ: 0300000129 [06:05:20]line РНМ: 0000000000090858 [06:05:20]line Версия ККМ: 001 [06:05:20]line ФМ: 0000000000874899 [06:05:20]line ФД: 162373 [06:05:20]line ФПД: 230349037171019 [06:05:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060531&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162373&fm=230349037171019&tin=02508201610067®Number=0000000000090858&sum=72500 [06:05:20]OFD Sender: Processing packet 162373 [packets to send 105, broken 104] [06:05:20]ProducePacketName [06:05:20]name=ofd_packets/00162373 [06:05:20]OFD Sender: To server: pG, [06:05:20]CommunicateWithHost lk.salyk.kg:30040 [06:05:20]ConnectInit lk.salyk.kg [06:05:20]written 0, free lines is 4095 [06:05:21]Write to MH i2c: 01 00 00 A8 F8 A0 [06:05:21]Write i2c OK [06:05:21]MH_I2C_Read... [06:05:21]Read from MH i2c: 01 [06:05:21]MH_I2C_Read... [06:05:21]Read from MH i2c: 01 07 00 [06:05:21]MH_I2C_Read... [06:05:21]Read from MH i2c: 01 07 00 A8 F8 00 00 00 00 00 D6 0C 89 [06:05:21]RasterBufferAndPrint [06:05:21]line [06:05:21]line [06:05:21]line [06:05:21]line [06:05:21]line [06:05:21]written 0, free lines is 3293 [06:05:21]MH_Cut [06:05:21]Write to MH i2c: D1 01 00 AF F8 01 79 [06:05:21]Write i2c OK [06:05:21]MH_I2C_Read... [06:05:21]Read from MH i2c: D1 [06:05:21]MH_I2C_Read... [06:05:21]Read from MH i2c: D1 01 00 [06:05:21]MH_I2C_Read... [06:05:21]Read from MH i2c: D1 01 00 AF F8 00 78 [06:05:21]Write to MH i2c: 01 00 00 B0 F8 A8 [06:05:21]Write i2c OK [06:05:21]MH_I2C_Read... [06:05:22]*** Cut start [06:05:22]*** Purtial cut [06:05:22]*** Stage 1: CUTSNS_PIN = 1 [06:05:22]Read from MH i2c: 01 [06:05:22]MH_I2C_Read... [06:05:22]*** Stop cut motor [06:05:22]*** Cut end [06:05:22]Read from MH i2c: 01 07 00 [06:05:22]MH_I2C_Read... [06:05:22]Read from MH i2c: 01 07 00 B0 F8 00 00 00 00 00 FF 0F BD [06:05:22]process_action close_receipt done [06:05:22]requested_data is exist [06:05:22]produce_requested_data [06:05:22]requested_item fm.sn is exist - process it [06:05:22]wFMCommunicate request_size=4 [06:05:22]MH_SAM_APDU [06:05:22]CAPDU: 80 11 00 00 [06:05:22]Write to MH i2c: E2 08 00 B1 F8 80 11 00 00 00 00 00 00 23 [06:05:22]Write i2c OK [06:05:22]MH_I2C_Read... [06:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:05:22]Read from MH i2c: E2 [06:05:22]MH_I2C_Read... [06:05:22]Read from MH i2c: E2 17 00 [06:05:22]MH_I2C_Read... [06:05:22]Read from MH i2c: E2 17 00 B1 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [06:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:05:22]wFMCommunicate OK [06:05:22]requested_item fd.num is exist - process it [06:05:22]SAM_PROTO_GetFieldsCounters [06:05:22]wFMCommunicate request_size=4 [06:05:22]MH_SAM_APDU [06:05:22]CAPDU: 80 13 00 00 [06:05:22]Write to MH i2c: E2 08 00 B2 F8 80 13 00 00 00 00 00 00 26 [06:05:22]Write i2c OK [06:05:22]MH_I2C_Read... [06:05:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:05:22]Read from MH i2c: E2 [06:05:22]MH_I2C_Read... [06:05:22]Read from MH i2c: E2 62 00 [06:05:22]MH_I2C_Read... [06:05:22]Read from MH i2c: E2 62 00 B2 F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [06:05:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:05:22]wFMCommunicate OK [06:05:22]SAM_PROTO_GetFieldsCounters done [06:05:22]requested_item shift.num is exist - process it [06:05:22]requested_item shift.opened is exist - process it [06:05:22]req_shift_opened [06:05:22]FM_GetShiftState [06:05:22]SAM_PROTO_GetShiftState [06:05:22]wFMCommunicate request_size=4 [06:05:22]MH_SAM_APDU [06:05:22]CAPDU: 80 13 01 00 [06:05:22]Write to MH i2c: E2 08 00 B3 F8 80 13 01 00 00 00 00 00 28 [06:05:22]Write i2c OK [06:05:22]MH_I2C_Read... [06:05:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:05:22]Read from MH i2c: E2 [06:05:22]MH_I2C_Read... [06:05:22]Read from MH i2c: E2 0E 00 [06:05:22]MH_I2C_Read... [06:05:22]Read from MH i2c: E2 0E 00 B3 F8 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 22 [06:05:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:05:22]wFMCommunicate OK [06:05:22]SAM_PROTO_GetShiftState done [06:05:22]FM_GetShiftState done [06:05:22]req_shift_opened done [06:05:22]requested_item shift.open_date is exist - process it [06:05:22]req_shift_open_date [06:05:22]req_shift_open_date done [06:05:22]produce_requested_data done [06:05:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162373,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:05:22]process_action_free close_receipt [06:05:22]json_value_free [06:05:22]json_value_free done [06:05:22]process_json_proto returns [06:05:22]Send response to host [06:05:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162373,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:05:22]free response buf [06:05:22]execute_script done [06:05:22]execute_script returns [06:05:22]free content buf [06:05:22]Sock 9.Close socket [06:05:22]Sock 9.Thread stoped [06:06:05]accept exits with 8 [06:06:05]New connection [06:06:05]New thread 3066862948 created [06:06:05]Thread 3067006308 joined [06:06:05]Waiting for new connection... [06:06:05] Sock 8.Parse request [06:06:05]Sock 8.Check first char [06:06:05]Sock 8.First char is OK [06:06:05]request: POST /json_proto HTTP/1.0 [06:06:05]Method: POST [06:06:05]URL: /json_proto [06:06:05]Method is POST - this is cgi request [06:06:05]url: /json_proto [06:06:05]query_string will be loaded in cgi processing [06:06:05]execute_cgi json_proto POST (null) [06:06:05]execute_cgi path=json_proto method=POST [06:06:05]POST find Content-Length [06:06:05]Host: 172.17.39.67:8080 [06:06:05]Content-Length: 678 [06:06:05]Content-Type: application/json [06:06:05] [06:06:05]POST finish read [06:06:05]Found Content-Length = 678 [06:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [06:06:05]execute_script... [06:06: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)1318894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [06:06:05]POST & json_proto [06:06:05]process_json_proto [06:06:05]json parsed OK: [06:06:05]protocol is kg_v1.0 [06:06:05]action value=close_receipt [06:06:05]process_action close_receipt [06:06:05]cmd_close_receipt [06:06:05]MH_GetDate [06:06:05]Write to MH i2c: F0 00 00 B4 F8 9B [06:06:05]Write i2c OK [06:06:05]MH_I2C_Read... [06:06:05]Read from MH i2c: F0 [06:06:05]MH_I2C_Read... [06:06:05]Read from MH i2c: F0 09 00 [06:06:05]MH_I2C_Read... [06:06:05]Read from MH i2c: F0 09 00 B4 F8 00 5A 19 92 66 FA E9 8E 66 E6 [06:06:05]GetLastDocTimeStamp 1720850731 [06:06:05]current date 1720850778 [06:06:05]FM_GetShiftState [06:06:05]SAM_PROTO_GetShiftState [06:06:05]wFMCommunicate request_size=4 [06:06:05]MH_SAM_APDU [06:06:05]CAPDU: 80 13 01 00 [06:06:05]Write to MH i2c: E2 08 00 B5 F8 80 13 01 00 00 00 00 00 2A [06:06:05]Write i2c OK [06:06:05]MH_I2C_Read... [06:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:05]Read from MH i2c: E2 [06:06:05]MH_I2C_Read... [06:06:05]Read from MH i2c: E2 0E 00 [06:06:05]MH_I2C_Read... [06:06:05]Read from MH i2c: E2 0E 00 B5 F8 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 24 [06:06:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:06:05]wFMCommunicate OK [06:06:05]SAM_PROTO_GetShiftState done [06:06:05]FM_GetShiftState done [06:06:05]opened in 1720828979 [06:06:05]opened+sec_in_day 1720915379 [06:06:05]quantity*price = 30033 [06:06:05]sum+1 = 30035 [06:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 42 13.07.2024 06:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162374 ФПД: 120126146338146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060618&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162374&fm=120126146338146&tin=02508201610067®Number=0000000000090858&sum=30000 [06:06:06]StoreToDocumentArchive [06:06:06]shift 462 fd 162374 [06:06:06]save to /storage/0462/doc_00162374 [06:06:06]save last doc name /storage/0462/doc_00162374 to /storage/kkm_last_doc_name [06:06:06]save OK [06:06:06]Clear old archive folders... [06:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:06:06]tlvbuf is 0197CE90 [06:06:06]SAM_PROTO_ClearQueue [06:06:06]wFMCommunicate request_size=4 [06:06:06]MH_SAM_APDU [06:06:06]CAPDU: 80 09 00 00 [06:06:06]Write to MH i2c: E2 08 00 C2 F8 80 09 00 00 00 00 00 00 2C [06:06:06]Write i2c OK [06:06:06]MH_I2C_Read... [06:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:06:06]Read from MH i2c: E2 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 03 00 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 03 00 C2 F8 00 90 00 2E [06:06:06]RAPDU: 90 00 [06:06:06]wFMCommunicate OK [06:06:06]SAM_PROTO_ClearQueue done [06:06:06]KKMCreateOFDPacket [06:06:06]OFDProtocolAddRootSTLVToBuf [06:06:06]FM_MakeSignedData [06:06:06]FM_MakeSignedData [06:06:06]SAM_PROTO_SignData [06:06:06]wFMCommunicate request_size=4 [06:06:06]MH_SAM_APDU [06:06:06]CAPDU: 80 0D 01 02 [06:06:06]Write to MH i2c: E2 08 00 C3 F8 80 0D 01 02 00 00 00 00 34 [06:06:06]Write i2c OK [06:06:06]MH_I2C_Read... [06:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:06:06]Read from MH i2c: E2 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 03 00 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 03 00 C3 F8 00 90 00 2F [06:06:06]RAPDU: 90 00 [06:06:06]wFMCommunicate OK [06:06:06]wFMCommunicate request_size=255 [06:06:06]MH_SAM_APDU [06:06:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 2A 00 00 00 F4 03 04 00 5A 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7A 02 00 35 04 06 00 6D [06:06:06]Write to MH i2c: E2 02 01 C4 F8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 2A 00 00 00 F4 03 04 00 5A 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7A 02 00 35 04 06 00 6D 00 00 42 [06:06:06]Write i2c OK [06:06:06]MH_I2C_Read... [06:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:06]Read from MH i2c: E2 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 03 00 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 03 00 C4 F8 00 90 00 30 [06:06:06]RAPDU: 90 00 [06:06:06]wFMCommunicate OK [06:06:06]wFMCommunicate request_size=10 [06:06:06]MH_SAM_APDU [06:06:06]CAPDU: 80 0D 02 02 05 41 0C 47 DD 62 [06:06:06]Write to MH i2c: E2 0D 00 C5 F8 80 0D 02 02 05 00 41 0C 47 DD 62 00 00 14 [06:06:06]Write i2c OK [06:06:06]MH_I2C_Read... [06:06:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:06:06]Read from MH i2c: E2 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 03 00 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 03 00 C5 F8 00 90 00 31 [06:06:06]RAPDU: 90 00 [06:06:06]wFMCommunicate OK [06:06:06]wFMCommunicate request_size=4 [06:06:06]MH_SAM_APDU [06:06:06]CAPDU: 80 0D 03 02 [06:06:06]Write to MH i2c: E2 08 00 C6 F8 80 0D 03 02 00 00 00 00 39 [06:06:06]Write i2c OK [06:06:06]MH_I2C_Read... [06:06:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:06:06]Read from MH i2c: E2 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 0B 00 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 0B 00 C6 F8 00 A8 F6 11 D4 52 B1 64 21 90 00 45 [06:06:06]RAPDU: A8 F6 11 D4 52 B1 64 21 90 00 [06:06:06]wFMCommunicate OK [06:06:06]SAM_PROTO_SignData done [06:06:06]FM_MakeSignedData done [06:06:06]CreateOFDProtocolMessage [06:06:06]wFMCommunicate request_size=4 [06:06:06]MH_SAM_APDU [06:06:06]CAPDU: 80 11 00 00 [06:06:06]Write to MH i2c: E2 08 00 C7 F8 80 11 00 00 00 00 00 00 39 [06:06:06]Write i2c OK [06:06:06]MH_I2C_Read... [06:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:06]Read from MH i2c: E2 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 17 00 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: E2 17 00 C7 F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [06:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:06:06]wFMCommunicate OK [06:06:06]CreateOFDProtocolMessage done [06:06:06]OFDSenderStorePacket 162374 [06:06:06]StoreOFDPacket docnum=162374 [06:06:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 66 24 07 01 FB 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 2A 00 00 00 F4 03 04 00 5A 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7A 02 00 35 04 06 00 6D 41 0C 47 DD 62 A8 F6 11 D4 52 B1 64 21 [06:06:06]CheckFolder [06:06:06]dirname=/storage/ofd_packets [06:06:06]CheckFolder done [06:06:06]ProducePacketName [06:06:06]name=ofd_packets/00162374 [06:06:06]NVStorageSaveData ofd_packets/00162374 [06:06:06]File name is /storage/ofd_packets/00162374 [06:06:06]Write 301 bytes [06:06:06]NVStorageSaveData done [06:06:06]OFDSenderStorePacket done [06:06:06]KKMCreateOFDPacket done [06:06:06]NVStorageSaveData kkm_last_timestamp [06:06:06]File name is /storage/kkm_last_timestamp [06:06:06]Write 4 bytes [06:06:06]NVStorageSaveData done [06:06:06]ExternCall_PrintAddStr [06:06:06]wPrintStart [06:06:06]Write to MH i2c: 01 00 00 C8 F8 C0 [06:06:06]Write i2c OK [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: 01 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: 01 07 00 [06:06:06]MH_I2C_Read... [06:06:06]Read from MH i2c: 01 07 00 C8 F8 00 00 00 00 00 FF 0F D5 [06:06:06]RasterBufferAndPrint [06:06:06]line Счет N : (1)1318894 [06:06:06]line ИНН: 02508201610067 [06:06:06]line Контрольно-Кассовый Чек [06:06:06]line ПРОДАЖА [06:06:06]line ТРК (МРК, ГНК) : 33 [06:06:06]line Товар: 2710124130 [06:06:06]line Аи-92-К-5 [06:06:06]line 4.530 * 66.30 [06:06:06]line = 300.34 [06:06:06]line НДС 12% НСП 1% [06:06:06]line > о реализуемом товаре [06:06:06]line ОКРУГЛЕНИЕ: -0.34 [06:06:06]line ИТОГО: 300.00 [06:06:06]line Внесено: 300.00 [06:06:06]line СДАЧА: 0.00 [06:06:06]line НСП 1% : 2.66 [06:06:06]line НДС 12% : 31.89 [06:06:06]line Наличными: 300.00 [06:06:06]line Безнал.: 0.00 [06:06:06]line Место: АЗС № 140 "Партнер Нефть" [06:06:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:06:06]line СНО: Общий режим [06:06:06]line Чек 42 13.07.2024 06:06 [06:06:06]line Смена: 462 ФФД: 1.0 [06:06:06]line ЗНМ: 0300000129 [06:06:06]line РНМ: 0000000000090858 [06:06:06]line Версия ККМ: 001 [06:06:06]line ФМ: 0000000000874899 [06:06:06]line ФД: 162374 [06:06:06]line ФПД: 120126146338146 [06:06:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060618&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162374&fm=120126146338146&tin=02508201610067®Number=0000000000090858&sum=30000 [06:06:07]written 0, free lines is 4095 [06:06:07]Write to MH i2c: 01 00 00 F3 F8 EB [06:06:07]Write i2c OK [06:06:07]MH_I2C_Read... [06:06:07]Read from MH i2c: 01 [06:06:07]MH_I2C_Read... [06:06:07]Read from MH i2c: 01 07 00 [06:06:07]MH_I2C_Read... [06:06:07]Read from MH i2c: 01 07 00 F3 F8 00 00 00 00 00 DC 0C DA [06:06:07]RasterBufferAndPrint [06:06:07]line [06:06:07]line [06:06:07]line [06:06:07]line [06:06:07]line [06:06:07]written 0, free lines is 3297 [06:06:07]MH_Cut [06:06:07]Write to MH i2c: D1 01 00 FA F8 01 C4 [06:06:07]Write i2c OK [06:06:07]MH_I2C_Read... [06:06:07]Read from MH i2c: D1 [06:06:07]MH_I2C_Read... [06:06:07]Read from MH i2c: D1 01 00 [06:06:07]MH_I2C_Read... [06:06:07]Read from MH i2c: D1 01 00 FA F8 00 C3 [06:06:07]Write to MH i2c: 01 00 00 FB F8 F3 [06:06:07]Write i2c OK [06:06:07]MH_I2C_Read... [06:06:08]*** Cut start [06:06:08]*** Purtial cut [06:06:08]*** CUTSNS_PIN = 0 [06:06:08]*** Stage 1: CUTSNS_PIN = 1 [06:06:10]Read from MH i2c: 01 [06:06:10]MH_I2C_Read... [06:06:10]*** Stop cut motor [06:06:10]*** Cut end [06:06:10]Read from MH i2c: 01 07 00 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: 01 07 00 FB F8 00 00 00 00 00 FF 0F 08 [06:06:10]process_action close_receipt done [06:06:10]requested_data is exist [06:06:10]produce_requested_data [06:06:10]requested_item fm.sn is exist - process it [06:06:10]wFMCommunicate request_size=4 [06:06:10]MH_SAM_APDU [06:06:10]CAPDU: 80 11 00 00 [06:06:10]Write to MH i2c: E2 08 00 FC F8 80 11 00 00 00 00 00 00 6E [06:06:10]Write i2c OK [06:06:10]MH_I2C_Read... [06:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:06:10]Read from MH i2c: E2 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: E2 17 00 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: E2 17 00 FC F8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [06:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:06:10]wFMCommunicate OK [06:06:10]requested_item fd.num is exist - process it [06:06:10]SAM_PROTO_GetFieldsCounters [06:06:10]wFMCommunicate request_size=4 [06:06:10]MH_SAM_APDU [06:06:10]CAPDU: 80 13 00 00 [06:06:10]Write to MH i2c: E2 08 00 FD F8 80 13 00 00 00 00 00 00 71 [06:06:10]Write i2c OK [06:06:10]MH_I2C_Read... [06:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:06:10]Read from MH i2c: E2 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: E2 62 00 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: E2 62 00 FD F8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 46 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [06:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 46 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:06:10]wFMCommunicate OK [06:06:10]SAM_PROTO_GetFieldsCounters done [06:06:10]requested_item shift.num is exist - process it [06:06:10]requested_item shift.opened is exist - process it [06:06:10]req_shift_opened [06:06:10]FM_GetShiftState [06:06:10]SAM_PROTO_GetShiftState [06:06:10]wFMCommunicate request_size=4 [06:06:10]MH_SAM_APDU [06:06:10]CAPDU: 80 13 01 00 [06:06:10]Write to MH i2c: E2 08 00 FE F8 80 13 01 00 00 00 00 00 73 [06:06:10]Write i2c OK [06:06:10]MH_I2C_Read... [06:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:10]Read from MH i2c: E2 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: E2 0E 00 [06:06:10]MH_I2C_Read... [06:06:10]Read from MH i2c: E2 0E 00 FE F8 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6D [06:06:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:06:10]wFMCommunicate OK [06:06:10]SAM_PROTO_GetShiftState done [06:06:10]FM_GetShiftState done [06:06:10]req_shift_opened done [06:06:10]requested_item shift.open_date is exist - process it [06:06:10]req_shift_open_date [06:06:10]req_shift_open_date done [06:06:10]produce_requested_data done [06:06:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162374,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:06:10]process_action_free close_receipt [06:06:10]json_value_free [06:06:10]json_value_free done [06:06:10]process_json_proto returns [06:06:10]Send response to host [06:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162374,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:06:10]free response buf [06:06:10]execute_script done [06:06:10]execute_script returns [06:06:10]free content buf [06:06:10]Sock 8.Close socket [06:06:10]Sock 8.Thread stoped [06:07:32]ConnectInit Can't connect to host [06:07:32]CommunicateWithHost connect error [06:07:32]CommunicateWithHost err = -1 [06:07:32]OFD Sender: Server communicate error [06:07:32]OFD Sender: Processing packet 162373 [packets to send 106, broken 104] [06:07:32]ProducePacketName [06:07:32]name=ofd_packets/00162373 [06:07:32]OFD Sender: To server: pG, [06:07:32]CommunicateWithHost lk.salyk.kg:30040 [06:07:32]ConnectInit lk.salyk.kg [06:07:32]Connected sock=8 [06:07:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 6A 08 01 10 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4F 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1E 00 00 00 00 07 04 06 00 34 1B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 2B 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7A 02 00 35 04 06 00 D1 80 50 88 F1 4B F7 EB 49 4C AA B2 B7 16 [06:07:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C2 A7 47 00 0E 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7A 02 00 F4 03 04 00 C4 C5 91 66 B6 04 01 00 00 B3 98 DA 2E 8B 17 BC A2 [06:07:32]CommunicateWithHost err = 0 [06:07:32]CheckOFDResponse [06:07:32]1017 (14) - 77093643461234 [06:07:32]1041 (16) - 0000000000874899 [06:07:32]1040 (4) - 162373 [06:07:32]1012 (4) - 13.07.2024 00:09 [06:07:32]1206 (1) - 0 [06:07:32]OFD Sender: Remove packet 162373 [06:07:32]ProducePacketName [06:07:32]name=ofd_packets/00162373 [06:07:32]NVStorageDeleteData [06:07:33]OFD Sender: Processing packet 162374 [packets to send 105, broken 104] [06:07:33]ProducePacketName [06:07:33]name=ofd_packets/00162374 [06:07:33]OFD Sender: To server: pG, [06:07:33]CommunicateWithHost lk.salyk.kg:30040 [06:07:33]ConnectInit lk.salyk.kg [06:07:33]Connected sock=8 [06:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 66 24 07 01 FB 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 2A 00 00 00 F4 03 04 00 5A 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7A 02 00 35 04 06 00 6D 41 0C 47 DD 62 A8 F6 11 D4 52 B1 64 21 [06:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9E 5B 47 00 DE 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7A 02 00 F4 03 04 00 C5 C5 91 66 B6 04 01 00 00 24 B7 C5 C7 9D 94 80 A5 [06:07:33]CommunicateWithHost err = 0 [06:07:33]CheckOFDResponse [06:07:33]1017 (14) - 77093643461234 [06:07:33]1041 (16) - 0000000000874899 [06:07:33]1040 (4) - 162374 [06:07:33]1012 (4) - 13.07.2024 00:09 [06:07:33]1206 (1) - 0 [06:07:33]OFD Sender: Remove packet 162374 [06:07:33]ProducePacketName [06:07:33]name=ofd_packets/00162374 [06:07:33]NVStorageDeleteData [06:07:33]OFD Sender: No OFD packet to send [06:07:35]accept exits with 9 [06:07:35]New connection [06:07:35]New thread 3067006308 created [06:07:35]Thread 3066862948 joined [06:07:35]Waiting for new connection... [06:07:35] Sock 9.Parse request [06:07:35]Sock 9.Check first char [06:07:35]Sock 9.First char is OK [06:07:35]request: POST /json_proto HTTP/1.0 [06:07:35]Method: POST [06:07:35]URL: /json_proto [06:07:35]Method is POST - this is cgi request [06:07:35]url: /json_proto [06:07:35]query_string will be loaded in cgi processing [06:07:35]execute_cgi json_proto POST (null) [06:07:35]execute_cgi path=json_proto method=POST [06:07:35]POST find Content-Length [06:07:35]Host: 172.17.39.67:8080 [06:07:35]Content-Length: 678 [06:07:35]Content-Type: application/json [06:07:35] [06:07:35]POST finish read [06:07:35]Found Content-Length = 678 [06:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:35]execute_script... [06:07: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)1318896", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:07:35]POST & json_proto [06:07:35]process_json_proto [06:07:35]json parsed OK: [06:07:35]protocol is kg_v1.0 [06:07:35]action value=close_receipt [06:07:35]process_action close_receipt [06:07:35]cmd_close_receipt [06:07:35]MH_GetDate [06:07:35]Write to MH i2c: F0 00 00 FF F8 E6 [06:07:35]Write i2c OK [06:07:35]MH_I2C_Read... [06:07:35]Read from MH i2c: F0 [06:07:35]MH_I2C_Read... [06:07:35]Read from MH i2c: F0 09 00 [06:07:35]MH_I2C_Read... [06:07:35]Read from MH i2c: F0 09 00 FF F8 00 B4 19 92 66 FA E9 8E 66 8B [06:07:35]GetLastDocTimeStamp 1720850778 [06:07:35]current date 1720850868 [06:07:35]FM_GetShiftState [06:07:35]SAM_PROTO_GetShiftState [06:07:35]wFMCommunicate request_size=4 [06:07:35]MH_SAM_APDU [06:07:35]CAPDU: 80 13 01 00 [06:07:35]Write to MH i2c: E2 08 00 00 F9 80 13 01 00 00 00 00 00 76 [06:07:35]Write i2c OK [06:07:35]MH_I2C_Read... [06:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:35]Read from MH i2c: E2 [06:07:35]MH_I2C_Read... [06:07:35]Read from MH i2c: E2 0E 00 [06:07:35]MH_I2C_Read... [06:07:35]Read from MH i2c: E2 0E 00 00 F9 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 70 [06:07:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:07:35]wFMCommunicate OK [06:07:35]SAM_PROTO_GetShiftState done [06:07:35]FM_GetShiftState done [06:07:35]opened in 1720828979 [06:07:35]opened+sec_in_day 1720915379 [06:07:35]quantity*price = 65040 [06:07:35]sum+1 = 65041 [06:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 43 13.07.2024 06:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162375 ФПД: 224740487430053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060748&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162375&fm=224740487430053&tin=02508201610067®Number=0000000000090858&sum=65000 [06:07:36]StoreToDocumentArchive [06:07:36]shift 462 fd 162375 [06:07:36]save to /storage/0462/doc_00162375 [06:07:36]save last doc name /storage/0462/doc_00162375 to /storage/kkm_last_doc_name [06:07:36]save OK [06:07:36]Clear old archive folders... [06:07:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:07:36]tlvbuf is 0197C860 [06:07:36]SAM_PROTO_ClearQueue [06:07:36]wFMCommunicate request_size=4 [06:07:36]MH_SAM_APDU [06:07:36]CAPDU: 80 09 00 00 [06:07:36]Write to MH i2c: E2 08 00 0D F9 80 09 00 00 00 00 00 00 78 [06:07:36]Write i2c OK [06:07:36]MH_I2C_Read... [06:07:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:36]Read from MH i2c: E2 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 03 00 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 03 00 0D F9 00 90 00 7A [06:07:36]RAPDU: 90 00 [06:07:36]wFMCommunicate OK [06:07:36]SAM_PROTO_ClearQueue done [06:07:36]KKMCreateOFDPacket [06:07:36]OFDProtocolAddRootSTLVToBuf [06:07:36]FM_MakeSignedData [06:07:36]FM_MakeSignedData [06:07:36]SAM_PROTO_SignData [06:07:36]wFMCommunicate request_size=4 [06:07:36]MH_SAM_APDU [06:07:36]CAPDU: 80 0D 01 02 [06:07:36]Write to MH i2c: E2 08 00 0E F9 80 0D 01 02 00 00 00 00 80 [06:07:36]Write i2c OK [06:07:36]MH_I2C_Read... [06:07:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:36]Read from MH i2c: E2 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 03 00 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 03 00 0E F9 00 90 00 7B [06:07:36]RAPDU: 90 00 [06:07:36]wFMCommunicate OK [06:07:36]wFMCommunicate request_size=255 [06:07:36]MH_SAM_APDU [06:07:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7A 02 00 35 04 06 00 CC [06:07:36]Write to MH i2c: E2 02 01 0F F9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7A 02 00 35 04 06 00 CC 00 00 90 [06:07:36]Write i2c OK [06:07:36]MH_I2C_Read... [06:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:36]Read from MH i2c: E2 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 03 00 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 03 00 0F F9 00 90 00 7C [06:07:36]RAPDU: 90 00 [06:07:36]wFMCommunicate OK [06:07:36]wFMCommunicate request_size=10 [06:07:36]MH_SAM_APDU [06:07:36]CAPDU: 80 0D 02 02 05 66 78 EB 7F A5 [06:07:36]Write to MH i2c: E2 0D 00 10 F9 80 0D 02 02 05 00 66 78 EB 7F A5 00 00 7A [06:07:36]Write i2c OK [06:07:36]MH_I2C_Read... [06:07:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:36]Read from MH i2c: E2 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 03 00 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 03 00 10 F9 00 90 00 7D [06:07:36]RAPDU: 90 00 [06:07:36]wFMCommunicate OK [06:07:36]wFMCommunicate request_size=4 [06:07:36]MH_SAM_APDU [06:07:36]CAPDU: 80 0D 03 02 [06:07:36]Write to MH i2c: E2 08 00 11 F9 80 0D 03 02 00 00 00 00 85 [06:07:36]Write i2c OK [06:07:36]MH_I2C_Read... [06:07:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:36]Read from MH i2c: E2 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 0B 00 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 0B 00 11 F9 00 D7 B5 F2 2F 60 DD 21 5E 90 00 EF [06:07:36]RAPDU: D7 B5 F2 2F 60 DD 21 5E 90 00 [06:07:36]wFMCommunicate OK [06:07:36]SAM_PROTO_SignData done [06:07:36]FM_MakeSignedData done [06:07:36]CreateOFDProtocolMessage [06:07:36]wFMCommunicate request_size=4 [06:07:36]MH_SAM_APDU [06:07:36]CAPDU: 80 11 00 00 [06:07:36]Write to MH i2c: E2 08 00 12 F9 80 11 00 00 00 00 00 00 85 [06:07:36]Write i2c OK [06:07:36]MH_I2C_Read... [06:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:36]Read from MH i2c: E2 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 17 00 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: E2 17 00 12 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E5 [06:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:07:36]wFMCommunicate OK [06:07:36]CreateOFDProtocolMessage done [06:07:36]OFDSenderStorePacket 162375 [06:07:36]StoreOFDPacket docnum=162375 [06:07:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 15 D0 07 01 79 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7A 02 00 35 04 06 00 CC 66 78 EB 7F A5 D7 B5 F2 2F 60 DD 21 5E [06:07:36]CheckFolder [06:07:36]dirname=/storage/ofd_packets [06:07:36]CheckFolder done [06:07:36]ProducePacketName [06:07:36]name=ofd_packets/00162375 [06:07:36]NVStorageSaveData ofd_packets/00162375 [06:07:36]File name is /storage/ofd_packets/00162375 [06:07:36]Write 301 bytes [06:07:36]NVStorageSaveData done [06:07:36]OFDSenderStorePacket done [06:07:36]KKMCreateOFDPacket done [06:07:36]NVStorageSaveData kkm_last_timestamp [06:07:36]File name is /storage/kkm_last_timestamp [06:07:36]Write 4 bytes [06:07:36]NVStorageSaveData done [06:07:36]ExternCall_PrintAddStr [06:07:36]wPrintStart [06:07:36]Write to MH i2c: 01 00 00 13 F9 0C [06:07:36]Write i2c OK [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: 01 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: 01 07 00 [06:07:36]MH_I2C_Read... [06:07:36]Read from MH i2c: 01 07 00 13 F9 00 00 00 00 00 FF 0F 21 [06:07:36]RasterBufferAndPrint [06:07:36]line Счет N : (1)1318896 [06:07:36]line ИНН: 02508201610067 [06:07:36]line Контрольно-Кассовый Чек [06:07:36]line ПРОДАЖА [06:07:36]line ТРК (МРК, ГНК) : 43 [06:07:36]line Товар: 2710124130 [06:07:36]line Аи-92-К-5 [06:07:36]line 9.810 * 66.30 [06:07:36]line = 650.40 [06:07:36]line НДС 12% НСП 1% [06:07:36]line > о реализуемом товаре [06:07:36]line ОКРУГЛЕНИЕ: -0.40 [06:07:36]line ИТОГО: 650.00 [06:07:36]line Внесено: 650.00 [06:07:36]line СДАЧА: 0.00 [06:07:36]line НСП 1% : 5.76 [06:07:36]line НДС 12% : 69.07 [06:07:36]line Наличными: 650.00 [06:07:36]line Безнал.: 0.00 [06:07:36]line Место: АЗС № 140 "Партнер Нефть" [06:07:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:07:36]line СНО: Общий режим [06:07:36]line Чек 43 13.07.2024 06:07 [06:07:36]line Смена: 462 ФФД: 1.0 [06:07:36]line ЗНМ: 0300000129 [06:07:36]line РНМ: 0000000000090858 [06:07:36]line Версия ККМ: 001 [06:07:36]line ФМ: 0000000000874899 [06:07:36]line ФД: 162375 [06:07:36]line ФПД: 224740487430053 [06:07:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060748&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162375&fm=224740487430053&tin=02508201610067®Number=0000000000090858&sum=65000 [06:07:36]written 0, free lines is 4095 [06:07:36]OFD Sender: Processing packet 162375 [packets to send 105, broken 104] [06:07:36]ProducePacketName [06:07:36]name=ofd_packets/00162375 [06:07:36]OFD Sender: To server: pG, [06:07:36]CommunicateWithHost lk.salyk.kg:30040 [06:07:36]ConnectInit lk.salyk.kg [06:07:36]Connected sock=10 [06:07:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 15 D0 07 01 79 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 B4 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7A 02 00 35 04 06 00 CC 66 78 EB 7F A5 D7 B5 F2 2F 60 DD 21 5E [06:07:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FE 8F 47 00 DD B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7A 02 00 F4 03 04 00 C8 C5 91 66 B6 04 01 00 00 53 41 C2 37 3C D3 18 AB [06:07:37]CommunicateWithHost err = 0 [06:07:37]CheckOFDResponse [06:07:37]1017 (14) - 77093643461234 [06:07:37]1041 (16) - 0000000000874899 [06:07:37]1040 (4) - 162375 [06:07:37]1012 (4) - 13.07.2024 00:09 [06:07:37]1206 (1) - 0 [06:07:37]OFD Sender: Remove packet 162375 [06:07:37]ProducePacketName [06:07:37]name=ofd_packets/00162375 [06:07:37]NVStorageDeleteData [06:07:37]Write to MH i2c: 01 00 00 3E F9 37 [06:07:37]Write i2c OK [06:07:37]MH_I2C_Read... [06:07:37]Read from MH i2c: 01 [06:07:37]MH_I2C_Read... [06:07:37]Read from MH i2c: 01 07 00 [06:07:37]MH_I2C_Read... [06:07:37]Read from MH i2c: 01 07 00 3E F9 00 00 00 00 00 E8 0C 32 [06:07:37]RasterBufferAndPrint [06:07:37]line [06:07:37]line [06:07:37]line [06:07:37]line [06:07:37]line [06:07:37]written 0, free lines is 3313 [06:07:37]MH_Cut [06:07:37]Write to MH i2c: D1 01 00 45 F9 01 10 [06:07:37]Write i2c OK [06:07:37]MH_I2C_Read... [06:07:37]Read from MH i2c: D1 [06:07:37]MH_I2C_Read... [06:07:37]Read from MH i2c: D1 01 00 [06:07:37]MH_I2C_Read... [06:07:37]Read from MH i2c: D1 01 00 45 F9 00 0F [06:07:37]Write to MH i2c: 01 00 00 46 F9 3F [06:07:37]Write i2c OK [06:07:37]MH_I2C_Read... [06:07:37]OFD Sender: No OFD packet to send [06:07:38]*** Cut start [06:07:38]*** Purtial cut [06:07:38]*** Stage 1: CUTSNS_PIN = 1 [06:07:38]Read from MH i2c: 01 [06:07:38]MH_I2C_Read... [06:07:38]*** Stop cut motor [06:07:38]*** Cut end [06:07:38]Read from MH i2c: 01 07 00 [06:07:38]MH_I2C_Read... [06:07:38]Read from MH i2c: 01 07 00 46 F9 00 00 00 00 00 FF 0F 54 [06:07:38]process_action close_receipt done [06:07:38]requested_data is exist [06:07:38]produce_requested_data [06:07:38]requested_item fm.sn is exist - process it [06:07:38]wFMCommunicate request_size=4 [06:07:38]MH_SAM_APDU [06:07:38]CAPDU: 80 11 00 00 [06:07:38]Write to MH i2c: E2 08 00 47 F9 80 11 00 00 00 00 00 00 BA [06:07:38]Write i2c OK [06:07:38]MH_I2C_Read... [06:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:38]Read from MH i2c: E2 [06:07:38]MH_I2C_Read... [06:07:38]Read from MH i2c: E2 17 00 [06:07:38]MH_I2C_Read... [06:07:38]Read from MH i2c: E2 17 00 47 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [06:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:07:38]wFMCommunicate OK [06:07:38]requested_item fd.num is exist - process it [06:07:38]SAM_PROTO_GetFieldsCounters [06:07:38]wFMCommunicate request_size=4 [06:07:38]MH_SAM_APDU [06:07:38]CAPDU: 80 13 00 00 [06:07:38]Write to MH i2c: E2 08 00 48 F9 80 13 00 00 00 00 00 00 BD [06:07:38]Write i2c OK [06:07:38]MH_I2C_Read... [06:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:38]Read from MH i2c: E2 [06:07:38]MH_I2C_Read... [06:07:38]Read from MH i2c: E2 62 00 [06:07:38]MH_I2C_Read... [06:07:38]Read from MH i2c: E2 62 00 48 F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 47 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [06:07:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 47 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:07:38]wFMCommunicate OK [06:07:38]SAM_PROTO_GetFieldsCounters done [06:07:38]requested_item shift.num is exist - process it [06:07:38]requested_item shift.opened is exist - process it [06:07:38]req_shift_opened [06:07:38]FM_GetShiftState [06:07:38]SAM_PROTO_GetShiftState [06:07:38]wFMCommunicate request_size=4 [06:07:38]MH_SAM_APDU [06:07:38]CAPDU: 80 13 01 00 [06:07:38]Write to MH i2c: E2 08 00 49 F9 80 13 01 00 00 00 00 00 BF [06:07:38]Write i2c OK [06:07:38]MH_I2C_Read... [06:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:38]Read from MH i2c: E2 [06:07:38]MH_I2C_Read... [06:07:38]Read from MH i2c: E2 0E 00 [06:07:38]MH_I2C_Read... [06:07:38]Read from MH i2c: E2 0E 00 49 F9 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B9 [06:07:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:07:38]wFMCommunicate OK [06:07:38]SAM_PROTO_GetShiftState done [06:07:38]FM_GetShiftState done [06:07:38]req_shift_opened done [06:07:38]requested_item shift.open_date is exist - process it [06:07:38]req_shift_open_date [06:07:38]req_shift_open_date done [06:07:38]produce_requested_data done [06:07:38]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162375,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:07:38]process_action_free close_receipt [06:07:38]json_value_free [06:07:38]json_value_free done [06:07:38]process_json_proto returns [06:07:38]Send response to host [06:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162375,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:07:38]free response buf [06:07:38]execute_script done [06:07:38]execute_script returns [06:07:38]free content buf [06:07:38]Sock 9.Close socket [06:07:38]Sock 9.Thread stoped [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:14]accept exits with 8 [06:08:14]New connection [06:08:14]New thread 3066862948 created [06:08:14]Thread 3067006308 joined [06:08:14]Waiting for new connection... [06:08:14] Sock 8.Parse request [06:08:14]Sock 8.Check first char [06:08:14]Sock 8.First char is OK [06:08:14]request: POST /json_proto HTTP/1.0 [06:08:14]Method: POST [06:08:14]URL: /json_proto [06:08:14]Method is POST - this is cgi request [06:08:14]url: /json_proto [06:08:14]query_string will be loaded in cgi processing [06:08:14]execute_cgi json_proto POST (null) [06:08:14]execute_cgi path=json_proto method=POST [06:08:14]POST find Content-Length [06:08:14]Host: 172.17.39.67:8080 [06:08:14]Content-Length: 678 [06:08:14]Content-Type: application/json [06:08:14] [06:08:14]POST finish read [06:08:14]Found Content-Length = 678 [06:08:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [06:08:14]execute_script... [06: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)1318897", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [06:08:14]POST & json_proto [06:08:14]process_json_proto [06:08:14]json parsed OK: [06:08:14]protocol is kg_v1.0 [06:08:14]action value=close_receipt [06:08:14]process_action close_receipt [06:08:14]cmd_close_receipt [06:08:14]MH_GetDate [06:08:14]Write to MH i2c: F0 00 00 4A F9 32 [06:08:14]Write i2c OK [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: F0 [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: F0 09 00 [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: F0 09 00 4A F9 00 DB 19 92 66 FA E9 8E 66 FE [06:08:14]GetLastDocTimeStamp 1720850868 [06:08:14]current date 1720850907 [06:08:14]FM_GetShiftState [06:08:14]SAM_PROTO_GetShiftState [06:08:14]wFMCommunicate request_size=4 [06:08:14]MH_SAM_APDU [06:08:14]CAPDU: 80 13 01 00 [06:08:14]Write to MH i2c: E2 08 00 4B F9 80 13 01 00 00 00 00 00 C1 [06:08:14]Write i2c OK [06:08:14]MH_I2C_Read... [06:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:14]Read from MH i2c: E2 [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: E2 0E 00 [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: E2 0E 00 4B F9 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BB [06:08:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:08:14]wFMCommunicate OK [06:08:14]SAM_PROTO_GetShiftState done [06:08:14]FM_GetShiftState done [06:08:14]opened in 1720828979 [06:08:14]opened+sec_in_day 1720915379 [06:08:14]quantity*price = 30033 [06:08:14]sum+1 = 30035 [06:08:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 44 13.07.2024 06:08 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162376 ФПД: 11052469901462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060827&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162376&fm=11052469901462&tin=02508201610067®Number=0000000000090858&sum=30000 [06:08:15]StoreToDocumentArchive [06:08:15]shift 462 fd 162376 [06:08:15]save to /storage/0462/doc_00162376 [06:08:15]save last doc name /storage/0462/doc_00162376 to /storage/kkm_last_doc_name [06:08:15]save OK [06:08:15]Clear old archive folders... [06:08:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:08:15]tlvbuf is 01B9E820 [06:08:15]SAM_PROTO_ClearQueue [06:08:15]wFMCommunicate request_size=4 [06:08:15]MH_SAM_APDU [06:08:15]CAPDU: 80 09 00 00 [06:08:15]Write to MH i2c: E2 08 00 58 F9 80 09 00 00 00 00 00 00 C3 [06:08:15]Write i2c OK [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 [06:08:15]MH_I2C_Read... [06:08:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:15]Read from MH i2c: E2 03 00 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 03 00 58 F9 00 90 00 C5 [06:08:15]RAPDU: 90 00 [06:08:15]wFMCommunicate OK [06:08:15]SAM_PROTO_ClearQueue done [06:08:15]KKMCreateOFDPacket [06:08:15]OFDProtocolAddRootSTLVToBuf [06:08:15]FM_MakeSignedData [06:08:15]FM_MakeSignedData [06:08:15]SAM_PROTO_SignData [06:08:15]wFMCommunicate request_size=4 [06:08:15]MH_SAM_APDU [06:08:15]CAPDU: 80 0D 01 02 [06:08:15]Write to MH i2c: E2 08 00 59 F9 80 0D 01 02 00 00 00 00 CB [06:08:15]Write i2c OK [06:08:15]MH_I2C_Read... [06:08:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:15]Read from MH i2c: E2 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 03 00 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 03 00 59 F9 00 90 00 C6 [06:08:15]RAPDU: 90 00 [06:08:15]wFMCommunicate OK [06:08:15]wFMCommunicate request_size=255 [06:08:15]MH_SAM_APDU [06:08:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 DB 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7A 02 00 35 04 06 00 0A [06:08:15]Write to MH i2c: E2 02 01 5A F9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 DB 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7A 02 00 35 04 06 00 0A 00 00 FB [06:08:15]Write i2c OK [06:08:15]MH_I2C_Read... [06:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:15]Read from MH i2c: E2 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 03 00 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 03 00 5A F9 00 90 00 C7 [06:08:15]RAPDU: 90 00 [06:08:15]wFMCommunicate OK [06:08:15]wFMCommunicate request_size=10 [06:08:15]MH_SAM_APDU [06:08:15]CAPDU: 80 0D 02 02 05 0D 5A 8A D8 96 [06:08:15]Write to MH i2c: E2 0D 00 5B F9 80 0D 02 02 05 00 0D 5A 8A D8 96 00 00 37 [06:08:15]Write i2c OK [06:08:15]MH_I2C_Read... [06:08:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:15]Read from MH i2c: E2 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 03 00 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 03 00 5B F9 00 90 00 C8 [06:08:15]RAPDU: 90 00 [06:08:15]wFMCommunicate OK [06:08:15]wFMCommunicate request_size=4 [06:08:15]MH_SAM_APDU [06:08:15]CAPDU: 80 0D 03 02 [06:08:15]Write to MH i2c: E2 08 00 5C F9 80 0D 03 02 00 00 00 00 D0 [06:08:15]Write i2c OK [06:08:15]MH_I2C_Read... [06:08:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:15]Read from MH i2c: E2 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 0B 00 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 0B 00 5C F9 00 50 B0 07 08 37 3F D6 B2 90 00 DE [06:08:15]RAPDU: 50 B0 07 08 37 3F D6 B2 90 00 [06:08:15]wFMCommunicate OK [06:08:15]SAM_PROTO_SignData done [06:08:15]FM_MakeSignedData done [06:08:15]CreateOFDProtocolMessage [06:08:15]wFMCommunicate request_size=4 [06:08:15]MH_SAM_APDU [06:08:15]CAPDU: 80 11 00 00 [06:08:15]Write to MH i2c: E2 08 00 5D F9 80 11 00 00 00 00 00 00 D0 [06:08:15]Write i2c OK [06:08:15]MH_I2C_Read... [06:08:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:15]Read from MH i2c: E2 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 17 00 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: E2 17 00 5D F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [06:08:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:08:15]wFMCommunicate OK [06:08:15]CreateOFDProtocolMessage done [06:08:15]OFDSenderStorePacket 162376 [06:08:15]StoreOFDPacket docnum=162376 [06:08:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 78 A0 07 01 05 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 DB 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7A 02 00 35 04 06 00 0A 0D 5A 8A D8 96 50 B0 07 08 37 3F D6 B2 [06:08:15]CheckFolder [06:08:15]dirname=/storage/ofd_packets [06:08:15]CheckFolder done [06:08:15]ProducePacketName [06:08:15]name=ofd_packets/00162376 [06:08:15]NVStorageSaveData ofd_packets/00162376 [06:08:15]File name is /storage/ofd_packets/00162376 [06:08:15]Write 301 bytes [06:08:15]NVStorageSaveData done [06:08:15]OFDSenderStorePacket done [06:08:15]KKMCreateOFDPacket done [06:08:15]NVStorageSaveData kkm_last_timestamp [06:08:15]File name is /storage/kkm_last_timestamp [06:08:15]Write 4 bytes [06:08:15]NVStorageSaveData done [06:08:15]ExternCall_PrintAddStr [06:08:15]wPrintStart [06:08:15]Write to MH i2c: 01 00 00 5E F9 57 [06:08:15]Write i2c OK [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: 01 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: 01 07 00 [06:08:15]MH_I2C_Read... [06:08:15]Read from MH i2c: 01 07 00 5E F9 00 00 00 00 00 FF 0F 6C [06:08:15]RasterBufferAndPrint [06:08:15]line Счет N : (1)1318897 [06:08:15]line ИНН: 02508201610067 [06:08:15]line Контрольно-Кассовый Чек [06:08:15]line ПРОДАЖА [06:08:15]line ТРК (МРК, ГНК) : 53 [06:08:15]line Товар: 2710124130 [06:08:15]line Аи-92-К-5 [06:08:15]line 4.530 * 66.30 [06:08:15]line = 300.34 [06:08:15]line НДС 12% НСП 1% [06:08:15]line > о реализуемом товаре [06:08:15]line ОКРУГЛЕНИЕ: -0.34 [06:08:15]line ИТОГО: 300.00 [06:08:15]line Внесено: 300.00 [06:08:15]line СДАЧА: 0.00 [06:08:15]line НСП 1% : 2.66 [06:08:15]line НДС 12% : 31.89 [06:08:15]line Наличными: 300.00 [06:08:15]line Безнал.: 0.00 [06:08:15]line Место: АЗС № 140 "Партнер Нефть" [06:08:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:08:15]line СНО: Общий режим [06:08:15]line Чек 44 13.07.2024 06:08 [06:08:15]line Смена: 462 ФФД: 1.0 [06:08:15]line ЗНМ: 0300000129 [06:08:15]line РНМ: 0000000000090858 [06:08:15]line Версия ККМ: 001 [06:08:15]line ФМ: 0000000000874899 [06:08:15]line ФД: 162376 [06:08:15]line ФПД: 11052469901462 [06:08:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T060827&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162376&fm=11052469901462&tin=02508201610067®Number=0000000000090858&sum=30000 [06:08:15]written 0, free lines is 4095 [06:08:15]OFD Sender: Processing packet 162376 [packets to send 105, broken 104] [06:08:15]ProducePacketName [06:08:15]name=ofd_packets/00162376 [06:08:15]OFD Sender: To server: pG, [06:08:15]CommunicateWithHost lk.salyk.kg:30040 [06:08:15]ConnectInit lk.salyk.kg [06:08:16]Connected sock=10 [06:08:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 78 A0 07 01 05 C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 DB 19 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7A 02 00 35 04 06 00 0A 0D 5A 8A D8 96 50 B0 07 08 37 3F D6 B2 [06:08:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 19 DC 47 00 47 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7A 02 00 F4 03 04 00 F0 C5 91 66 B6 04 01 00 00 F0 C6 0E 49 78 D5 59 4F [06:08:16]CommunicateWithHost err = 0 [06:08:16]CheckOFDResponse [06:08:16]1017 (14) - 77093643461234 [06:08:16]1041 (16) - 0000000000874899 [06:08:16]1040 (4) - 162376 [06:08:16]1012 (4) - 13.07.2024 00:10 [06:08:16]1206 (1) - 0 [06:08:16]OFD Sender: Remove packet 162376 [06:08:16]ProducePacketName [06:08:16]name=ofd_packets/00162376 [06:08:16]NVStorageDeleteData [06:08:16]Write to MH i2c: 01 00 00 89 F9 82 [06:08:16]Write i2c OK [06:08:16]MH_I2C_Read... [06:08:16]Read from MH i2c: 01 [06:08:16]MH_I2C_Read... [06:08:16]Read from MH i2c: 01 07 00 [06:08:16]MH_I2C_Read... [06:08:16]Read from MH i2c: 01 07 00 89 F9 00 00 00 00 00 E8 0C 7D [06:08:16]RasterBufferAndPrint [06:08:16]line [06:08:16]line [06:08:16]line [06:08:16]line [06:08:16]line [06:08:16]written 0, free lines is 3310 [06:08:16]MH_Cut [06:08:16]Write to MH i2c: D1 01 00 90 F9 01 5B [06:08:16]Write i2c OK [06:08:16]MH_I2C_Read... [06:08:16]Read from MH i2c: D1 [06:08:16]MH_I2C_Read... [06:08:16]Read from MH i2c: D1 01 00 [06:08:16]MH_I2C_Read... [06:08:16]Read from MH i2c: D1 01 00 90 F9 00 5A [06:08:16]Write to MH i2c: 01 00 00 91 F9 8A [06:08:16]Write i2c OK [06:08:16]MH_I2C_Read... [06:08:16]OFD Sender: No OFD packet to send [06:08:17]*** Cut start [06:08:17]*** Purtial cut [06:08:17]*** CUTSNS_PIN = 0 [06:08:17]*** Stage 1: CUTSNS_PIN = 1 [06:08:19]Read from MH i2c: 01 [06:08:19]MH_I2C_Read... [06:08:19]*** Stop cut motor [06:08:19]*** Cut end [06:08:19]Read from MH i2c: 01 07 00 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: 01 07 00 91 F9 00 00 00 00 00 FF 0F 9F [06:08:19]process_action close_receipt done [06:08:19]requested_data is exist [06:08:19]produce_requested_data [06:08:19]requested_item fm.sn is exist - process it [06:08:19]wFMCommunicate request_size=4 [06:08:19]MH_SAM_APDU [06:08:19]CAPDU: 80 11 00 00 [06:08:19]Write to MH i2c: E2 08 00 92 F9 80 11 00 00 00 00 00 00 05 [06:08:19]Write i2c OK [06:08:19]MH_I2C_Read... [06:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:19]Read from MH i2c: E2 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: E2 17 00 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: E2 17 00 92 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 65 [06:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:08:19]wFMCommunicate OK [06:08:19]requested_item fd.num is exist - process it [06:08:19]SAM_PROTO_GetFieldsCounters [06:08:19]wFMCommunicate request_size=4 [06:08:19]MH_SAM_APDU [06:08:19]CAPDU: 80 13 00 00 [06:08:19]Write to MH i2c: E2 08 00 93 F9 80 13 00 00 00 00 00 00 08 [06:08:19]Write i2c OK [06:08:19]MH_I2C_Read... [06:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:19]Read from MH i2c: E2 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: E2 62 00 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: E2 62 00 93 F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 48 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [06: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 48 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:08:19]wFMCommunicate OK [06:08:19]SAM_PROTO_GetFieldsCounters done [06:08:19]requested_item shift.num is exist - process it [06:08:19]requested_item shift.opened is exist - process it [06:08:19]req_shift_opened [06:08:19]FM_GetShiftState [06:08:19]SAM_PROTO_GetShiftState [06:08:19]wFMCommunicate request_size=4 [06:08:19]MH_SAM_APDU [06:08:19]CAPDU: 80 13 01 00 [06:08:19]Write to MH i2c: E2 08 00 94 F9 80 13 01 00 00 00 00 00 0A [06:08:19]Write i2c OK [06:08:19]MH_I2C_Read... [06:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:19]Read from MH i2c: E2 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: E2 0E 00 [06:08:19]MH_I2C_Read... [06:08:19]Read from MH i2c: E2 0E 00 94 F9 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 04 [06:08:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:08:19]wFMCommunicate OK [06:08:19]SAM_PROTO_GetShiftState done [06:08:19]FM_GetShiftState done [06:08:19]req_shift_opened done [06:08:19]requested_item shift.open_date is exist - process it [06:08:19]req_shift_open_date [06:08:19]req_shift_open_date done [06:08:19]produce_requested_data done [06:08:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162376,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:08:19]process_action_free close_receipt [06:08:19]json_value_free [06:08:19]json_value_free done [06:08:19]process_json_proto returns [06:08:19]Send response to host [06:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162376,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:08:19]free response buf [06:08:19]execute_script done [06:08:19]execute_script returns [06:08:19]free content buf [06:08:19]Sock 8.Close socket [06:08:19]Sock 8.Thread stoped [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]accept exits with 9 [06:11:41]New connection [06:11:41]New thread 3067006308 created [06:11:41]Thread 3066862948 joined [06:11:41]Waiting for new connection... [06:11:41] Sock 9.Parse request [06:11:41]Sock 9.Check first char [06:11:41]Sock 9.First char is OK [06:11:41]request: POST /json_proto HTTP/1.0 [06:11:41]Method: POST [06:11:41]URL: /json_proto [06:11:41]Method is POST - this is cgi request [06:11:41]url: /json_proto [06:11:41]query_string will be loaded in cgi processing [06:11:41]execute_cgi json_proto POST (null) [06:11:41]execute_cgi path=json_proto method=POST [06:11:41]POST find Content-Length [06:11:41]Host: 172.17.39.67:8080 [06:11:41]Content-Length: 683 [06:11:41]Content-Type: application/json [06:11:41] [06:11:41]POST finish read [06:11:41]Found Content-Length = 683 [06:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [06:11:41]execute_script... [06:11:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318898", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [06:11:41]POST & json_proto [06:11:41]process_json_proto [06:11:41]json parsed OK: [06:11:41]protocol is kg_v1.0 [06:11:41]action value=close_receipt [06:11:41]process_action close_receipt [06:11:41]cmd_close_receipt [06:11:41]MH_GetDate [06:11:41]Write to MH i2c: F0 00 00 95 F9 7D [06:11:41]Write i2c OK [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: F0 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: F0 09 00 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: F0 09 00 95 F9 00 AA 1A 92 66 FA E9 8E 66 19 [06:11:41]GetLastDocTimeStamp 1720850907 [06:11:41]current date 1720851114 [06:11:41]FM_GetShiftState [06:11:41]SAM_PROTO_GetShiftState [06:11:41]wFMCommunicate request_size=4 [06:11:41]MH_SAM_APDU [06:11:41]CAPDU: 80 13 01 00 [06:11:41]Write to MH i2c: E2 08 00 96 F9 80 13 01 00 00 00 00 00 0C [06:11:41]Write i2c OK [06:11:41]MH_I2C_Read... [06:11:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:41]Read from MH i2c: E2 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: E2 0E 00 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: E2 0E 00 96 F9 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 06 [06:11:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:11:41]wFMCommunicate OK [06:11:41]SAM_PROTO_GetShiftState done [06:11:41]FM_GetShiftState done [06:11:41]opened in 1720828979 [06:11:41]opened+sec_in_day 1720915379 [06:11:41]quantity*price = 150064 [06:11:41]sum+1 = 150066 [06:11:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 45 13.07.2024 06:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162377 ФПД: 179139776220499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T061154&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162377&fm=179139776220499&tin=02508201610067®Number=0000000000090858&sum=150000 [06:11:42]StoreToDocumentArchive [06:11:42]shift 462 fd 162377 [06:11:42]save to /storage/0462/doc_00162377 [06:11:42]save last doc name /storage/0462/doc_00162377 to /storage/kkm_last_doc_name [06:11:42]save OK [06:11:42]Clear old archive folders... [06:11:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:11:42]tlvbuf is 01A190E0 [06:11:42]SAM_PROTO_ClearQueue [06:11:42]wFMCommunicate request_size=4 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 09 00 00 [06:11:42]Write to MH i2c: E2 08 00 A3 F9 80 09 00 00 00 00 00 00 0E [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 A3 F9 00 90 00 10 [06:11:42]RAPDU: 90 00 [06:11:42]wFMCommunicate OK [06:11:42]SAM_PROTO_ClearQueue done [06:11:42]KKMCreateOFDPacket [06:11:42]OFDProtocolAddRootSTLVToBuf [06:11:42]FM_MakeSignedData [06:11:42]FM_MakeSignedData [06:11:42]SAM_PROTO_SignData [06:11:42]wFMCommunicate request_size=4 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 0D 01 02 [06:11:42]Write to MH i2c: E2 08 00 A4 F9 80 0D 01 02 00 00 00 00 16 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 A4 F9 00 90 00 11 [06:11:42]RAPDU: 90 00 [06:11:42]wFMCommunicate OK [06:11:42]wFMCommunicate request_size=255 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 2D 00 00 00 F4 03 04 00 AA 1A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7A 02 00 35 04 06 00 A2 [06:11:42]Write to MH i2c: E2 02 01 A5 F9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 2D 00 00 00 F4 03 04 00 AA 1A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7A 02 00 35 04 06 00 A2 00 00 40 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 A5 F9 00 90 00 12 [06:11:42]RAPDU: 90 00 [06:11:42]wFMCommunicate OK [06:11:42]wFMCommunicate request_size=10 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 0D 02 02 05 ED 3A BA 0D 53 [06:11:42]Write to MH i2c: E2 0D 00 A6 F9 80 0D 02 02 05 00 ED 3A BA 0D 53 00 00 64 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:43]Read from MH i2c: E2 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 03 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 03 00 A6 F9 00 90 00 13 [06:11:43]RAPDU: 90 00 [06:11:43]wFMCommunicate OK [06:11:43]wFMCommunicate request_size=4 [06:11:43]MH_SAM_APDU [06:11:43]CAPDU: 80 0D 03 02 [06:11:43]Write to MH i2c: E2 08 00 A7 F9 80 0D 03 02 00 00 00 00 1B [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:43]Read from MH i2c: E2 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 0B 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 0B 00 A7 F9 00 0A 04 AD 34 D1 E2 AD E5 90 00 50 [06:11:43]RAPDU: 0A 04 AD 34 D1 E2 AD E5 90 00 [06:11:43]wFMCommunicate OK [06:11:43]SAM_PROTO_SignData done [06:11:43]FM_MakeSignedData done [06:11:43]CreateOFDProtocolMessage [06:11:43]wFMCommunicate request_size=4 [06:11:43]MH_SAM_APDU [06:11:43]CAPDU: 80 11 00 00 [06:11:43]Write to MH i2c: E2 08 00 A8 F9 80 11 00 00 00 00 00 00 1B [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:43]Read from MH i2c: E2 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 17 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: E2 17 00 A8 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [06:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:11:43]wFMCommunicate OK [06:11:43]CreateOFDProtocolMessage done [06:11:43]OFDSenderStorePacket 162377 [06:11:43]StoreOFDPacket docnum=162377 [06:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C9 44 07 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 2D 00 00 00 F4 03 04 00 AA 1A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7A 02 00 35 04 06 00 A2 ED 3A BA 0D 53 0A 04 AD 34 D1 E2 AD E5 [06:11:43]CheckFolder [06:11:43]dirname=/storage/ofd_packets [06:11:43]CheckFolder done [06:11:43]ProducePacketName [06:11:43]name=ofd_packets/00162377 [06:11:43]NVStorageSaveData ofd_packets/00162377 [06:11:43]File name is /storage/ofd_packets/00162377 [06:11:43]Write 301 bytes [06:11:43]NVStorageSaveData done [06:11:43]OFDSenderStorePacket done [06:11:43]KKMCreateOFDPacket done [06:11:43]NVStorageSaveData kkm_last_timestamp [06:11:43]File name is /storage/kkm_last_timestamp [06:11:43]Write 4 bytes [06:11:43]NVStorageSaveData done [06:11:43]ExternCall_PrintAddStr [06:11:43]wPrintStart [06:11:43]Write to MH i2c: 01 00 00 A9 F9 A2 [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 07 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 07 00 A9 F9 00 00 00 00 00 FF 0F B7 [06:11:43]RasterBufferAndPrint [06:11:43]line Счет N : (1)1318898 [06:11:43]line ИНН: 02508201610067 [06:11:43]line Контрольно-Кассовый Чек [06:11:43]line ПРОДАЖА [06:11:43]line ТРК (МРК, ГНК) : 64 [06:11:43]line Товар: 2710124500 [06:11:43]line Аи-95-К-5 [06:11:43]line 20.170 * 74.40 [06:11:43]line = 1500.65 [06:11:43]line НДС 12% НСП 1% [06:11:43]line > о реализуемом товаре [06:11:43]line ОКРУГЛЕНИЕ: -0.65 [06:11:43]line ИТОГО: 1500.00 [06:11:43]line Внесено: 1500.00 [06:11:43]line СДАЧА: 0.00 [06:11:43]line НСП 1% : 13.28 [06:11:43]line НДС 12% : 159.36 [06:11:43]line Наличными: 1500.00 [06:11:43]line Безнал.: 0.00 [06:11:43]line Место: АЗС № 140 "Партнер Нефть" [06:11:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:11:43]line СНО: Общий режим [06:11:43]line Чек 45 13.07.2024 06:11 [06:11:43]line Смена: 462 ФФД: 1.0 [06:11:43]line ЗНМ: 0300000129 [06:11:43]line РНМ: 0000000000090858 [06:11:43]line Версия ККМ: 001 [06:11:43]line ФМ: 0000000000874899 [06:11:43]line ФД: 162377 [06:11:43]line ФПД: 179139776220499 [06:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T061154&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162377&fm=179139776220499&tin=02508201610067®Number=0000000000090858&sum=150000 [06:11:43]OFD Sender: Processing packet 162377 [packets to send 105, broken 104] [06:11:43]ProducePacketName [06:11:43]name=ofd_packets/00162377 [06:11:43]OFD Sender: To server: pG, [06:11:43]CommunicateWithHost lk.salyk.kg:30040 [06:11:43]ConnectInit lk.salyk.kg [06:11:43]written 0, free lines is 4095 [06:11:43]Connected sock=10 [06:11:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C9 44 07 01 4D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 2D 00 00 00 F4 03 04 00 AA 1A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7A 02 00 35 04 06 00 A2 ED 3A BA 0D 53 0A 04 AD 34 D1 E2 AD E5 [06:11:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 58 47 00 A4 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7A 02 00 F4 03 04 00 BF C6 91 66 B6 04 01 00 00 EC 1A DC BE 3C 23 ED 0D [06:11:43]CommunicateWithHost err = 0 [06:11:43]CheckOFDResponse [06:11:43]1017 (14) - 77093643461234 [06:11:43]1041 (16) - 0000000000874899 [06:11:43]1040 (4) - 162377 [06:11:43]1012 (4) - 13.07.2024 00:13 [06:11:43]1206 (1) - 0 [06:11:43]OFD Sender: Remove packet 162377 [06:11:43]ProducePacketName [06:11:43]name=ofd_packets/00162377 [06:11:43]NVStorageDeleteData [06:11:43]Write to MH i2c: 01 00 00 D4 F9 CD [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 07 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 07 00 D4 F9 00 00 00 00 00 F1 0C D1 [06:11:43]RasterBufferAndPrint [06:11:43]line [06:11:43]line [06:11:43]line [06:11:43]line [06:11:43]line [06:11:43]written 0, free lines is 3322 [06:11:43]MH_Cut [06:11:43]Write to MH i2c: D1 01 00 DB F9 01 A6 [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: D1 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: D1 01 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: D1 01 00 DB F9 00 A5 [06:11:43]Write to MH i2c: 01 00 00 DC F9 D5 [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:44]OFD Sender: No OFD packet to send [06:11:44]*** Cut start [06:11:44]*** Purtial cut [06:11:44]*** Stage 1: CUTSNS_PIN = 1 [06:11:44]Read from MH i2c: 01 [06:11:44]MH_I2C_Read... [06:11:44]*** Stop cut motor [06:11:44]*** Cut end [06:11:44]Read from MH i2c: 01 07 00 [06:11:44]MH_I2C_Read... [06:11:44]Read from MH i2c: 01 07 00 DC F9 00 00 00 00 00 FF 0F EA [06:11:44]process_action close_receipt done [06:11:44]requested_data is exist [06:11:44]produce_requested_data [06:11:44]requested_item fm.sn is exist - process it [06:11:44]wFMCommunicate request_size=4 [06:11:44]MH_SAM_APDU [06:11:44]CAPDU: 80 11 00 00 [06:11:44]Write to MH i2c: E2 08 00 DD F9 80 11 00 00 00 00 00 00 50 [06:11:44]Write i2c OK [06:11:44]MH_I2C_Read... [06:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:45]Read from MH i2c: E2 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 17 00 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 17 00 DD F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B0 [06:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:11:45]wFMCommunicate OK [06:11:45]requested_item fd.num is exist - process it [06:11:45]SAM_PROTO_GetFieldsCounters [06:11:45]wFMCommunicate request_size=4 [06:11:45]MH_SAM_APDU [06:11:45]CAPDU: 80 13 00 00 [06:11:45]Write to MH i2c: E2 08 00 DE F9 80 13 00 00 00 00 00 00 53 [06:11:45]Write i2c OK [06:11:45]MH_I2C_Read... [06:11:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:45]Read from MH i2c: E2 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 62 00 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 62 00 DE F9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 49 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [06:11:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 49 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:11:45]wFMCommunicate OK [06:11:45]SAM_PROTO_GetFieldsCounters done [06:11:45]requested_item shift.num is exist - process it [06:11:45]requested_item shift.opened is exist - process it [06:11:45]req_shift_opened [06:11:45]FM_GetShiftState [06:11:45]SAM_PROTO_GetShiftState [06:11:45]wFMCommunicate request_size=4 [06:11:45]MH_SAM_APDU [06:11:45]CAPDU: 80 13 01 00 [06:11:45]Write to MH i2c: E2 08 00 DF F9 80 13 01 00 00 00 00 00 55 [06:11:45]Write i2c OK [06:11:45]MH_I2C_Read... [06:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:45]Read from MH i2c: E2 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 0E 00 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 0E 00 DF F9 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4F [06:11:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:11:45]wFMCommunicate OK [06:11:45]SAM_PROTO_GetShiftState done [06:11:45]FM_GetShiftState done [06:11:45]req_shift_opened done [06:11:45]requested_item shift.open_date is exist - process it [06:11:45]req_shift_open_date [06:11:45]req_shift_open_date done [06:11:45]produce_requested_data done [06:11:45]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162377,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:11:45]process_action_free close_receipt [06:11:45]json_value_free [06:11:45]json_value_free done [06:11:45]process_json_proto returns [06:11:45]Send response to host [06:11:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162377,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:11:45]free response buf [06:11:45]execute_script done [06:11:45]execute_script returns [06:11:45]free content buf [06:11:45]Sock 9.Close socket [06:11:45]Sock 9.Thread stoped [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:15]accept exits with 8 [06:13:15]New connection [06:13:15]New thread 3066862948 created [06:13:15]Thread 3067006308 joined [06:13:15]Waiting for new connection... [06:13:15] Sock 8.Parse request [06:13:15]Sock 8.Check first char [06:13:15]Sock 8.First char is OK [06:13:15]request: POST /json_proto HTTP/1.0 [06:13:15]Method: POST [06:13:15]URL: /json_proto [06:13:15]Method is POST - this is cgi request [06:13:15]url: /json_proto [06:13:15]query_string will be loaded in cgi processing [06:13:15]execute_cgi json_proto POST (null) [06:13:15]execute_cgi path=json_proto method=POST [06:13:15]POST find Content-Length [06:13:15]Host: 172.17.39.67:8080 [06:13:15]Content-Length: 683 [06:13:15]Content-Type: application/json [06:13:15] [06:13:15]POST finish read [06:13:15]Found Content-Length = 683 [06:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.890, "sum" : 1385.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1385.00, "total" : 1385.00, "payments": [ { "type": 0, "sum" : 1385.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:15]execute_script... [06:13:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318900", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.890, "sum" : 1385.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1385.00, "total" : 1385.00, "payments": [ { "type": 0, "sum" : 1385.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:15]POST & json_proto [06:13:15]process_json_proto [06:13:15]json parsed OK: [06:13:15]protocol is kg_v1.0 [06:13:15]action value=close_receipt [06:13:15]process_action close_receipt [06:13:15]cmd_close_receipt [06:13:15]MH_GetDate [06:13:15]Write to MH i2c: F0 00 00 E0 F9 C8 [06:13:15]Write i2c OK [06:13:15]MH_I2C_Read... [06:13:15]Read from MH i2c: F0 [06:13:15]MH_I2C_Read... [06:13:15]Read from MH i2c: F0 09 00 [06:13:15]MH_I2C_Read... [06:13:15]Read from MH i2c: F0 09 00 E0 F9 00 08 1B 92 66 FA E9 8E 66 C3 [06:13:15]GetLastDocTimeStamp 1720851114 [06:13:15]current date 1720851208 [06:13:15]FM_GetShiftState [06:13:15]SAM_PROTO_GetShiftState [06:13:15]wFMCommunicate request_size=4 [06:13:15]MH_SAM_APDU [06:13:15]CAPDU: 80 13 01 00 [06:13:15]Write to MH i2c: E2 08 00 E1 F9 80 13 01 00 00 00 00 00 57 [06:13:15]Write i2c OK [06:13:15]MH_I2C_Read... [06:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:15]Read from MH i2c: E2 [06:13:15]MH_I2C_Read... [06:13:15]Read from MH i2c: E2 0E 00 [06:13:15]MH_I2C_Read... [06:13:15]Read from MH i2c: E2 0E 00 E1 F9 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 51 [06:13:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:13:15]wFMCommunicate OK [06:13:15]SAM_PROTO_GetShiftState done [06:13:15]FM_GetShiftState done [06:13:15]opened in 1720828979 [06:13:15]opened+sec_in_day 1720915379 [06:13:15]quantity*price = 138500 [06:13:15]sum+1 = 138502 [06:13:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1385.00 Внесено: 1385.00 СДАЧА: 0.00 НСП 1% : 12.26 НДС 12% : 147.08 Наличными: 1385.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 46 13.07.2024 06:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162378 ФПД: 184490774129882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T061328&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162378&fm=184490774129882&tin=02508201610067®Number=0000000000090858&sum=138500 [06:13:16]StoreToDocumentArchive [06:13:16]shift 462 fd 162378 [06:13:16]save to /storage/0462/doc_00162378 [06:13:16]save last doc name /storage/0462/doc_00162378 to /storage/kkm_last_doc_name [06:13:16]save OK [06:13:16]Clear old archive folders... [06:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:13:16]tlvbuf is 01C58B40 [06:13:16]SAM_PROTO_ClearQueue [06:13:16]wFMCommunicate request_size=4 [06:13:16]MH_SAM_APDU [06:13:16]CAPDU: 80 09 00 00 [06:13:16]Write to MH i2c: E2 08 00 EE F9 80 09 00 00 00 00 00 00 59 [06:13:16]Write i2c OK [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 [06:13:16]MH_I2C_Read... [06:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:13:16]Read from MH i2c: E2 03 00 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 03 00 EE F9 00 90 00 5B [06:13:16]RAPDU: 90 00 [06:13:16]wFMCommunicate OK [06:13:16]SAM_PROTO_ClearQueue done [06:13:16]KKMCreateOFDPacket [06:13:16]OFDProtocolAddRootSTLVToBuf [06:13:16]FM_MakeSignedData [06:13:16]FM_MakeSignedData [06:13:16]SAM_PROTO_SignData [06:13:16]wFMCommunicate request_size=4 [06:13:16]MH_SAM_APDU [06:13:16]CAPDU: 80 0D 01 02 [06:13:16]Write to MH i2c: E2 08 00 EF F9 80 0D 01 02 00 00 00 00 61 [06:13:16]Write i2c OK [06:13:16]MH_I2C_Read... [06:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:13:16]Read from MH i2c: E2 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 03 00 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 03 00 EF F9 00 90 00 5C [06:13:16]RAPDU: 90 00 [06:13:16]wFMCommunicate OK [06:13:16]wFMCommunicate request_size=255 [06:13:16]MH_SAM_APDU [06:13:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 1D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 1D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 39 00 00 00 00 07 04 06 00 04 1D 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 08 1B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7A 02 00 35 04 06 00 A7 [06:13:16]Write to MH i2c: E2 02 01 F0 F9 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 1D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 1D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 39 00 00 00 00 07 04 06 00 04 1D 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 08 1B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7A 02 00 35 04 06 00 A7 00 00 D1 [06:13:16]Write i2c OK [06:13:16]MH_I2C_Read... [06:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:13:16]Read from MH i2c: E2 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 03 00 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 03 00 F0 F9 00 90 00 5D [06:13:16]RAPDU: 90 00 [06:13:16]wFMCommunicate OK [06:13:16]wFMCommunicate request_size=10 [06:13:16]MH_SAM_APDU [06:13:16]CAPDU: 80 0D 02 02 05 CB 1B 0E 6C DA [06:13:16]Write to MH i2c: E2 0D 00 F1 F9 80 0D 02 02 05 00 CB 1B 0E 6C DA 00 00 A8 [06:13:16]Write i2c OK [06:13:16]MH_I2C_Read... [06:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:13:16]Read from MH i2c: E2 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 03 00 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 03 00 F1 F9 00 90 00 5E [06:13:16]RAPDU: 90 00 [06:13:16]wFMCommunicate OK [06:13:16]wFMCommunicate request_size=4 [06:13:16]MH_SAM_APDU [06:13:16]CAPDU: 80 0D 03 02 [06:13:16]Write to MH i2c: E2 08 00 F2 F9 80 0D 03 02 00 00 00 00 66 [06:13:16]Write i2c OK [06:13:16]MH_I2C_Read... [06:13:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:13:16]Read from MH i2c: E2 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 0B 00 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 0B 00 F2 F9 00 FE DF 16 69 51 53 B3 93 90 00 AD [06:13:16]RAPDU: FE DF 16 69 51 53 B3 93 90 00 [06:13:16]wFMCommunicate OK [06:13:16]SAM_PROTO_SignData done [06:13:16]FM_MakeSignedData done [06:13:16]CreateOFDProtocolMessage [06:13:16]wFMCommunicate request_size=4 [06:13:16]MH_SAM_APDU [06:13:16]CAPDU: 80 11 00 00 [06:13:16]Write to MH i2c: E2 08 00 F3 F9 80 11 00 00 00 00 00 00 66 [06:13:16]Write i2c OK [06:13:16]MH_I2C_Read... [06:13:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:16]Read from MH i2c: E2 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 17 00 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: E2 17 00 F3 F9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C6 [06:13:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:13:16]wFMCommunicate OK [06:13:16]CreateOFDProtocolMessage done [06:13:16]OFDSenderStorePacket 162378 [06:13:16]StoreOFDPacket docnum=162378 [06:13:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3E D9 07 01 C0 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 1D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 1D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 39 00 00 00 00 07 04 06 00 04 1D 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 08 1B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7A 02 00 35 04 06 00 A7 CB 1B 0E 6C DA FE DF 16 69 51 53 B3 93 [06:13:16]CheckFolder [06:13:16]dirname=/storage/ofd_packets [06:13:16]CheckFolder done [06:13:16]ProducePacketName [06:13:16]name=ofd_packets/00162378 [06:13:16]NVStorageSaveData ofd_packets/00162378 [06:13:16]File name is /storage/ofd_packets/00162378 [06:13:16]Write 301 bytes [06:13:16]NVStorageSaveData done [06:13:16]OFDSenderStorePacket done [06:13:16]KKMCreateOFDPacket done [06:13:16]NVStorageSaveData kkm_last_timestamp [06:13:16]File name is /storage/kkm_last_timestamp [06:13:16]Write 4 bytes [06:13:16]NVStorageSaveData done [06:13:16]ExternCall_PrintAddStr [06:13:16]wPrintStart [06:13:16]Write to MH i2c: 01 00 00 F4 F9 ED [06:13:16]Write i2c OK [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: 01 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: 01 07 00 [06:13:16]MH_I2C_Read... [06:13:16]Read from MH i2c: 01 07 00 F4 F9 00 00 00 00 00 FF 0F 02 [06:13:16]RasterBufferAndPrint [06:13:16]line Счет N : (1)1318900 [06:13:16]line ИНН: 02508201610067 [06:13:16]line Контрольно-Кассовый Чек [06:13:16]line ПРОДАЖА [06:13:16]line ТРК (МРК, ГНК) : 63 [06:13:16]line Товар: 2710124130 [06:13:16]line Аи-92-К-5 [06:13:16]line 20.890 * 66.30 [06:13:16]line = 1385.01 [06:13:16]line НДС 12% НСП 1% [06:13:16]line > о реализуемом товаре [06:13:16]line ОКРУГЛЕНИЕ: -0.01 [06:13:16]line ИТОГО: 1385.00 [06:13:16]line Внесено: 1385.00 [06:13:16]line СДАЧА: 0.00 [06:13:16]line НСП 1% : 12.26 [06:13:16]line НДС 12% : 147.08 [06:13:16]line Наличными: 1385.00 [06:13:16]line Безнал.: 0.00 [06:13:16]line Место: АЗС № 140 "Партнер Нефть" [06:13:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:13:16]line СНО: Общий режим [06:13:16]line Чек 46 13.07.2024 06:13 [06:13:16]line Смена: 462 ФФД: 1.0 [06:13:16]line ЗНМ: 0300000129 [06:13:16]line РНМ: 0000000000090858 [06:13:16]line Версия ККМ: 001 [06:13:16]line ФМ: 0000000000874899 [06:13:16]line ФД: 162378 [06:13:16]line ФПД: 184490774129882 [06:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T061328&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162378&fm=184490774129882&tin=02508201610067®Number=0000000000090858&sum=138500 [06:13:17]OFD Sender: Processing packet 162378 [packets to send 105, broken 104] [06:13:17]ProducePacketName [06:13:17]name=ofd_packets/00162378 [06:13:17]OFD Sender: To server: pG, [06:13:17]CommunicateWithHost lk.salyk.kg:30040 [06:13:17]ConnectInit lk.salyk.kg [06:13:17]written 0, free lines is 4095 [06:13:17]Connected sock=10 [06:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3E D9 07 01 C0 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 51 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 1D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 1D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CA 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 39 00 00 00 00 07 04 06 00 04 1D 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 08 1B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7A 02 00 35 04 06 00 A7 CB 1B 0E 6C DA FE DF 16 69 51 53 B3 93 [06:13:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 34 45 47 00 3C 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7A 02 00 F4 03 04 00 1D C7 91 66 B6 04 01 00 00 C2 10 4F 83 A0 17 6E 07 [06:13:17]CommunicateWithHost err = 0 [06:13:17]CheckOFDResponse [06:13:17]1017 (14) - 77093643461234 [06:13:17]1041 (16) - 0000000000874899 [06:13:17]1040 (4) - 162378 [06:13:17]1012 (4) - 13.07.2024 00:15 [06:13:17]1206 (1) - 0 [06:13:17]OFD Sender: Remove packet 162378 [06:13:17]ProducePacketName [06:13:17]name=ofd_packets/00162378 [06:13:17]NVStorageDeleteData [06:13:17]Write to MH i2c: 01 00 00 1F FA 19 [06:13:17]Write i2c OK [06:13:17]MH_I2C_Read... [06:13:17]Read from MH i2c: 01 [06:13:17]MH_I2C_Read... [06:13:17]Read from MH i2c: 01 07 00 [06:13:17]MH_I2C_Read... [06:13:17]Read from MH i2c: 01 07 00 1F FA 00 00 00 00 00 F7 0C 23 [06:13:17]RasterBufferAndPrint [06:13:17]line [06:13:17]line [06:13:17]line [06:13:17]line [06:13:17]line [06:13:17]written 0, free lines is 3328 [06:13:17]MH_Cut [06:13:17]Write to MH i2c: D1 01 00 26 FA 01 F2 [06:13:17]Write i2c OK [06:13:17]MH_I2C_Read... [06:13:17]Read from MH i2c: D1 [06:13:17]MH_I2C_Read... [06:13:17]Read from MH i2c: D1 01 00 [06:13:17]MH_I2C_Read... [06:13:17]Read from MH i2c: D1 01 00 26 FA 00 F1 [06:13:17]Write to MH i2c: 01 00 00 27 FA 21 [06:13:17]Write i2c OK [06:13:17]MH_I2C_Read... [06:13:17]OFD Sender: No OFD packet to send [06:13:18]*** Cut start [06:13:18]*** Purtial cut [06:13:18]*** CUTSNS_PIN = 0 [06:13:18]*** Stage 1: CUTSNS_PIN = 1 [06:13:20]Read from MH i2c: 01 [06:13:20]MH_I2C_Read... [06:13:20]*** Stop cut motor [06:13:20]*** Cut end [06:13:20]Read from MH i2c: 01 07 00 [06:13:20]MH_I2C_Read... [06:13:20]Read from MH i2c: 01 07 00 27 FA 00 00 00 00 00 FF 0F 36 [06:13:20]process_action close_receipt done [06:13:20]requested_data is exist [06:13:20]produce_requested_data [06:13:20]requested_item fm.sn is exist - process it [06:13:20]wFMCommunicate request_size=4 [06:13:20]MH_SAM_APDU [06:13:20]CAPDU: 80 11 00 00 [06:13:20]Write to MH i2c: E2 08 00 28 FA 80 11 00 00 00 00 00 00 9C [06:13:20]Write i2c OK [06:13:20]MH_I2C_Read... [06:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:20]Read from MH i2c: E2 [06:13:20]MH_I2C_Read... [06:13:20]Read from MH i2c: E2 17 00 [06:13:20]MH_I2C_Read... [06:13:20]Read from MH i2c: E2 17 00 28 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FC [06:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:13:20]wFMCommunicate OK [06:13:20]requested_item fd.num is exist - process it [06:13:20]SAM_PROTO_GetFieldsCounters [06:13:20]wFMCommunicate request_size=4 [06:13:20]MH_SAM_APDU [06:13:20]CAPDU: 80 13 00 00 [06:13:20]Write to MH i2c: E2 08 00 29 FA 80 13 00 00 00 00 00 00 9F [06:13:20]Write i2c OK [06:13:20]MH_I2C_Read... [06:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:13:20]Read from MH i2c: E2 [06:13:20]MH_I2C_Read... [06:13:20]Read from MH i2c: E2 62 00 [06:13:20]MH_I2C_Read... [06:13:20]Read from MH i2c: E2 62 00 29 FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [06:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:13:20]wFMCommunicate OK [06:13:20]SAM_PROTO_GetFieldsCounters done [06:13:20]requested_item shift.num is exist - process it [06:13:20]requested_item shift.opened is exist - process it [06:13:20]req_shift_opened [06:13:20]FM_GetShiftState [06:13:20]SAM_PROTO_GetShiftState [06:13:20]wFMCommunicate request_size=4 [06:13:20]MH_SAM_APDU [06:13:20]CAPDU: 80 13 01 00 [06:13:20]Write to MH i2c: E2 08 00 2A FA 80 13 01 00 00 00 00 00 A1 [06:13:20]Write i2c OK [06:13:20]MH_I2C_Read... [06:13:20]Read from MH i2c: E2 [06:13:20]MH_I2C_Read... [06:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:20]Read from MH i2c: E2 0E 00 [06:13:20]MH_I2C_Read... [06:13:20]Read from MH i2c: E2 0E 00 2A FA 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9B [06:13:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:13:20]wFMCommunicate OK [06:13:20]SAM_PROTO_GetShiftState done [06:13:20]FM_GetShiftState done [06:13:20]req_shift_opened done [06:13:20]requested_item shift.open_date is exist - process it [06:13:20]req_shift_open_date [06:13:20]req_shift_open_date done [06:13:20]produce_requested_data done [06:13:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162378,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:13:20]process_action_free close_receipt [06:13:20]json_value_free [06:13:20]json_value_free done [06:13:20]process_json_proto returns [06:13:20]Send response to host [06:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162378,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:13:20]free response buf [06:13:20]execute_script done [06:13:20]execute_script returns [06:13:20]free content buf [06:13:20]Sock 8.Close socket [06:13:20]Sock 8.Thread stoped [06:13:22]OFD Sender: No OFD packet to send [06:13:27]OFD Sender: No OFD packet to send [06:13:32]OFD Sender: No OFD packet to send [06:13:37]OFD Sender: No OFD packet to send [06:13:42]OFD Sender: No OFD packet to send [06:13:47]OFD Sender: No OFD packet to send [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:38]accept exits with 9 [06:23:38]New connection [06:23:38]New thread 3067006308 created [06:23:38]Thread 3066862948 joined [06:23:38]Waiting for new connection... [06:23:38] Sock 9.Parse request [06:23:38]Sock 9.Check first char [06:23:38]Sock 9.First char is OK [06:23:38]request: POST /json_proto HTTP/1.0 [06:23:38]Method: POST [06:23:38]URL: /json_proto [06:23:38]Method is POST - this is cgi request [06:23:38]url: /json_proto [06:23:38]query_string will be loaded in cgi processing [06:23:38]execute_cgi json_proto POST (null) [06:23:38]execute_cgi path=json_proto method=POST [06:23:38]POST find Content-Length [06:23:38]Host: 172.17.39.67:8080 [06:23:38]Content-Length: 684 [06:23:38]Content-Type: application/json [06:23:38] [06:23:38]POST finish read [06:23:38]Found Content-Length = 684 [06:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.200, "sum" : 740.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:38]execute_script... [06:23: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)1318901", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.200, "sum" : 740.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 740.00, "total" : 740.00, "payments": [ { "type": 0, "sum" : 740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:23:38]POST & json_proto [06:23:38]process_json_proto [06:23:38]json parsed OK: [06:23:38]protocol is kg_v1.0 [06:23:38]action value=close_receipt [06:23:38]process_action close_receipt [06:23:38]cmd_close_receipt [06:23:38]MH_GetDate [06:23:38]Write to MH i2c: F0 00 00 2B FA 14 [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: F0 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: F0 09 00 [06:23:38]MH_I2C_Read... [06:23:38]Read from MH i2c: F0 09 00 2B FA 00 77 1D 92 66 FA E9 8E 66 80 [06:23:38]GetLastDocTimeStamp 1720851208 [06:23:38]current date 1720851831 [06:23:38]FM_GetShiftState [06:23:38]SAM_PROTO_GetShiftState [06:23:38]wFMCommunicate request_size=4 [06:23:38]MH_SAM_APDU [06:23:38]CAPDU: 80 13 01 00 [06:23:38]Write to MH i2c: E2 08 00 2C FA 80 13 01 00 00 00 00 00 A3 [06:23:38]Write i2c OK [06:23:38]MH_I2C_Read... [06:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:39]Read from MH i2c: E2 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: E2 0E 00 [06:23:39]MH_I2C_Read... [06:23:39]Read from MH i2c: E2 0E 00 2C FA 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9D [06:23:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:23:39]wFMCommunicate OK [06:23:39]SAM_PROTO_GetShiftState done [06:23:39]FM_GetShiftState done [06:23:39]opened in 1720828979 [06:23:39]opened+sec_in_day 1720915379 [06:23:39]quantity*price = 74052 [06:23:39]sum+1 = 74053 [06:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 740.00 Внесено: 740.00 СДАЧА: 0.00 НСП 1% : 6.55 НДС 12% : 78.64 Наличными: 740.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 47 13.07.2024 06:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162379 ФПД: 244994760407711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T062351&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162379&fm=244994760407711&tin=02508201610067®Number=0000000000090858&sum=74000 [06:23:40]StoreToDocumentArchive [06:23:40]shift 462 fd 162379 [06:23:40]save to /storage/0462/doc_00162379 [06:23:40]save last doc name /storage/0462/doc_00162379 to /storage/kkm_last_doc_name [06:23:40]save OK [06:23:40]Clear old archive folders... [06:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:23:40]tlvbuf is 01B6A580 [06:23:40]SAM_PROTO_ClearQueue [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 09 00 00 [06:23:40]Write to MH i2c: E2 08 00 39 FA 80 09 00 00 00 00 00 00 A5 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 39 FA 00 90 00 A7 [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]SAM_PROTO_ClearQueue done [06:23:40]KKMCreateOFDPacket [06:23:40]OFDProtocolAddRootSTLVToBuf [06:23:40]FM_MakeSignedData [06:23:40]FM_MakeSignedData [06:23:40]SAM_PROTO_SignData [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 01 02 [06:23:40]Write to MH i2c: E2 08 00 3A FA 80 0D 01 02 00 00 00 00 AD [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 3A FA 00 90 00 A8 [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]wFMCommunicate request_size=255 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D8 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 44 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 77 1D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7A 02 00 35 04 06 00 [06:23:40]Write to MH i2c: E2 02 01 3B FA 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D8 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 44 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 77 1D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7A 02 00 35 04 06 00 00 00 FD [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 3B FA 00 90 00 A9 [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]wFMCommunicate request_size=11 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 02 02 06 DE D2 49 AA 7A 9F [06:23:40]Write to MH i2c: E2 0E 00 3C FA 80 0D 02 02 06 00 DE D2 49 AA 7A 9F 00 00 78 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 03 00 3C FA 00 90 00 AA [06:23:40]RAPDU: 90 00 [06:23:40]wFMCommunicate OK [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 0D 03 02 [06:23:40]Write to MH i2c: E2 08 00 3D FA 80 0D 03 02 00 00 00 00 B2 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 0B 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 0B 00 3D FA 00 C4 03 62 C6 F5 6E 95 21 90 00 BB [06:23:40]RAPDU: C4 03 62 C6 F5 6E 95 21 90 00 [06:23:40]wFMCommunicate OK [06:23:40]SAM_PROTO_SignData done [06:23:40]FM_MakeSignedData done [06:23:40]CreateOFDProtocolMessage [06:23:40]wFMCommunicate request_size=4 [06:23:40]MH_SAM_APDU [06:23:40]CAPDU: 80 11 00 00 [06:23:40]Write to MH i2c: E2 08 00 3E FA 80 11 00 00 00 00 00 00 B2 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:40]Read from MH i2c: E2 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 17 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: E2 17 00 3E FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 12 [06:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:23:40]wFMCommunicate OK [06:23:40]CreateOFDProtocolMessage done [06:23:40]OFDSenderStorePacket 162379 [06:23:40]StoreOFDPacket docnum=162379 [06:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 13 C5 08 01 C8 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D8 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 44 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 77 1D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7A 02 00 35 04 06 00 DE D2 49 AA 7A 9F C4 03 62 C6 F5 6E 95 21 [06:23:40]CheckFolder [06:23:40]dirname=/storage/ofd_packets [06:23:40]CheckFolder done [06:23:40]ProducePacketName [06:23:40]name=ofd_packets/00162379 [06:23:40]NVStorageSaveData ofd_packets/00162379 [06:23:40]File name is /storage/ofd_packets/00162379 [06:23:40]Write 302 bytes [06:23:40]NVStorageSaveData done [06:23:40]OFDSenderStorePacket done [06:23:40]KKMCreateOFDPacket done [06:23:40]NVStorageSaveData kkm_last_timestamp [06:23:40]File name is /storage/kkm_last_timestamp [06:23:40]Write 4 bytes [06:23:40]NVStorageSaveData done [06:23:40]ExternCall_PrintAddStr [06:23:40]wPrintStart [06:23:40]Write to MH i2c: 01 00 00 3F FA 39 [06:23:40]Write i2c OK [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 [06:23:40]MH_I2C_Read... [06:23:40]Read from MH i2c: 01 07 00 3F FA 00 00 00 00 00 FF 0F 4E [06:23:40]RasterBufferAndPrint [06:23:40]line Счет N : (1)1318901 [06:23:40]line ИНН: 02508201610067 [06:23:40]line Контрольно-Кассовый Чек [06:23:40]line ПРОДАЖА [06:23:40]line ТРК (МРК, ГНК) : 61 [06:23:40]line Товар: 2710194210 [06:23:40]line ДТ(л)-К-5 [06:23:40]line 10.200 * 72.60 [06:23:40]line = 740.52 [06:23:40]line НДС 12% НСП 1% [06:23:40]line > о реализуемом товаре [06:23:40]line ОКРУГЛЕНИЕ: -0.52 [06:23:40]line ИТОГО: 740.00 [06:23:40]line Внесено: 740.00 [06:23:40]line СДАЧА: 0.00 [06:23:40]line НСП 1% : 6.55 [06:23:40]line НДС 12% : 78.64 [06:23:40]line Наличными: 740.00 [06:23:40]line Безнал.: 0.00 [06:23:40]line Место: АЗС № 140 "Партнер Нефть" [06:23:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:23:40]line СНО: Общий режим [06:23:40]line Чек 47 13.07.2024 06:23 [06:23:40]line Смена: 462 ФФД: 1.0 [06:23:40]line ЗНМ: 0300000129 [06:23:40]line РНМ: 0000000000090858 [06:23:40]line Версия ККМ: 001 [06:23:40]line ФМ: 0000000000874899 [06:23:40]line ФД: 162379 [06:23:40]line ФПД: 244994760407711 [06:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T062351&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162379&fm=244994760407711&tin=02508201610067®Number=0000000000090858&sum=74000 [06:23:41]OFD Sender: Processing packet 162379 [packets to send 105, broken 104] [06:23:41]ProducePacketName [06:23:41]name=ofd_packets/00162379 [06:23:41]OFD Sender: To server: pG, [06:23:41]CommunicateWithHost lk.salyk.kg:30040 [06:23:41]ConnectInit lk.salyk.kg [06:23:41]written 0, free lines is 4095 [06:23:41]Connected sock=10 [06:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 13 C5 08 01 C8 2C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D8 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 44 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 1E 00 00 00 00 07 04 06 00 10 21 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 77 1D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7A 02 00 35 04 06 00 DE D2 49 AA 7A 9F C4 03 62 C6 F5 6E 95 21 [06:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 36 E2 47 00 0B 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7A 02 00 F4 03 04 00 8D C9 91 66 B6 04 01 00 00 40 78 7A 6E C1 AE 00 BE [06:23:41]CommunicateWithHost err = 0 [06:23:41]CheckOFDResponse [06:23:41]1017 (14) - 77093643461234 [06:23:41]1041 (16) - 0000000000874899 [06:23:41]1040 (4) - 162379 [06:23:41]1012 (4) - 13.07.2024 00:25 [06:23:41]1206 (1) - 0 [06:23:41]OFD Sender: Remove packet 162379 [06:23:41]ProducePacketName [06:23:41]name=ofd_packets/00162379 [06:23:41]NVStorageDeleteData [06:23:41]Write to MH i2c: 01 00 00 6A FA 64 [06:23:41]Write i2c OK [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: 01 [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: 01 07 00 [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: 01 07 00 6A FA 00 00 00 00 00 DC 0C 53 [06:23:41]RasterBufferAndPrint [06:23:41]line [06:23:41]line [06:23:41]line [06:23:41]line [06:23:41]line [06:23:41]written 0, free lines is 3300 [06:23:41]MH_Cut [06:23:41]Write to MH i2c: D1 01 00 71 FA 01 3D [06:23:41]Write i2c OK [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: D1 [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: D1 01 00 [06:23:41]MH_I2C_Read... [06:23:41]Read from MH i2c: D1 01 00 71 FA 00 3C [06:23:41]Write to MH i2c: 01 00 00 72 FA 6C [06:23:41]Write i2c OK [06:23:41]MH_I2C_Read... [06:23:41]OFD Sender: No OFD packet to send [06:23:42]*** Cut start [06:23:42]*** Purtial cut [06:23:42]*** Stage 1: CUTSNS_PIN = 1 [06:23:42]Read from MH i2c: 01 [06:23:42]MH_I2C_Read... [06:23:42]*** Stop cut motor [06:23:42]*** Cut end [06:23:42]Read from MH i2c: 01 07 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: 01 07 00 72 FA 00 00 00 00 00 FF 0F 81 [06:23:42]process_action close_receipt done [06:23:42]requested_data is exist [06:23:42]produce_requested_data [06:23:42]requested_item fm.sn is exist - process it [06:23:42]wFMCommunicate request_size=4 [06:23:42]MH_SAM_APDU [06:23:42]CAPDU: 80 11 00 00 [06:23:42]Write to MH i2c: E2 08 00 73 FA 80 11 00 00 00 00 00 00 E7 [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:23:42]Read from MH i2c: E2 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 17 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 17 00 73 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 47 [06:23:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:23:42]wFMCommunicate OK [06:23:42]requested_item fd.num is exist - process it [06:23:42]SAM_PROTO_GetFieldsCounters [06:23:42]wFMCommunicate request_size=4 [06:23:42]MH_SAM_APDU [06:23:42]CAPDU: 80 13 00 00 [06:23:42]Write to MH i2c: E2 08 00 74 FA 80 13 00 00 00 00 00 00 EA [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:23:42]Read from MH i2c: E2 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 62 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 62 00 74 FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [06:23:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:23:42]wFMCommunicate OK [06:23:42]SAM_PROTO_GetFieldsCounters done [06:23:42]requested_item shift.num is exist - process it [06:23:42]requested_item shift.opened is exist - process it [06:23:42]req_shift_opened [06:23:42]FM_GetShiftState [06:23:42]SAM_PROTO_GetShiftState [06:23:42]wFMCommunicate request_size=4 [06:23:42]MH_SAM_APDU [06:23:42]CAPDU: 80 13 01 00 [06:23:42]Write to MH i2c: E2 08 00 75 FA 80 13 01 00 00 00 00 00 EC [06:23:42]Write i2c OK [06:23:42]MH_I2C_Read... [06:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:23:42]Read from MH i2c: E2 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 0E 00 [06:23:42]MH_I2C_Read... [06:23:42]Read from MH i2c: E2 0E 00 75 FA 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E6 [06:23:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:23:42]wFMCommunicate OK [06:23:42]SAM_PROTO_GetShiftState done [06:23:42]FM_GetShiftState done [06:23:42]req_shift_opened done [06:23:42]requested_item shift.open_date is exist - process it [06:23:42]req_shift_open_date [06:23:42]req_shift_open_date done [06:23:42]produce_requested_data done [06:23:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162379,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:23:42]process_action_free close_receipt [06:23:42]json_value_free [06:23:42]json_value_free done [06:23:42]process_json_proto returns [06:23:42]Send response to host [06:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162379,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:23:42]free response buf [06:23:42]execute_script done [06:23:42]execute_script returns [06:23:42]free content buf [06:23:42]Sock 9.Close socket [06:23:42]Sock 9.Thread stoped [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:36]accept exits with 8 [06:38:36]New connection [06:38:36]New thread 3066862948 created [06:38:36]Thread 3067006308 joined [06:38:36]Waiting for new connection... [06:38:36] Sock 8.Parse request [06:38:36]Sock 8.Check first char [06:38:36]Sock 8.First char is OK [06:38:36]request: POST /json_proto HTTP/1.0 [06:38:36]Method: POST [06:38:36]URL: /json_proto [06:38:36]Method is POST - this is cgi request [06:38:36]url: /json_proto [06:38:36]query_string will be loaded in cgi processing [06:38:36]execute_cgi json_proto POST (null) [06:38:36]execute_cgi path=json_proto method=POST [06:38:36]POST find Content-Length [06:38:36]Host: 172.17.39.67:8080 [06:38:36]Content-Length: 678 [06:38:36]Content-Type: application/json [06:38:36] [06:38:36]POST finish read [06:38:36]Found Content-Length = 678 [06:38:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:36]execute_script... [06:38:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:36]POST & json_proto [06:38:36]process_json_proto [06:38:36]json parsed OK: [06:38:36]protocol is kg_v1.0 [06:38:36]action value=close_receipt [06:38:36]process_action close_receipt [06:38:36]cmd_close_receipt [06:38:36]MH_GetDate [06:38:36]Write to MH i2c: F0 00 00 76 FA 5F [06:38:36]Write i2c OK [06:38:36]MH_I2C_Read... [06:38:36]Read from MH i2c: F0 [06:38:36]MH_I2C_Read... [06:38:36]Read from MH i2c: F0 09 00 [06:38:36]MH_I2C_Read... [06:38:36]Read from MH i2c: F0 09 00 76 FA 00 F9 20 92 66 FA E9 8E 66 50 [06:38:36]GetLastDocTimeStamp 1720851831 [06:38:36]current date 1720852729 [06:38:36]FM_GetShiftState [06:38:36]SAM_PROTO_GetShiftState [06:38:36]wFMCommunicate request_size=4 [06:38:36]MH_SAM_APDU [06:38:36]CAPDU: 80 13 01 00 [06:38:36]Write to MH i2c: E2 08 00 77 FA 80 13 01 00 00 00 00 00 EE [06:38:36]Write i2c OK [06:38:36]MH_I2C_Read... [06:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:36]Read from MH i2c: E2 [06:38:36]MH_I2C_Read... [06:38:36]Read from MH i2c: E2 0E 00 [06:38:36]MH_I2C_Read... [06:38:36]Read from MH i2c: E2 0E 00 77 FA 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E8 [06:38:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:38:36]wFMCommunicate OK [06:38:36]SAM_PROTO_GetShiftState done [06:38:36]FM_GetShiftState done [06:38:36]opened in 1720828979 [06:38:36]opened+sec_in_day 1720915379 [06:38:36]quantity*price = 50056 [06:38:36]sum+1 = 50058 [06:38:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 48 13.07.2024 06:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162380 ФПД: 101732283657040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T063849&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162380&fm=101732283657040&tin=02508201610067®Number=0000000000090858&sum=50000 [06:38:37]StoreToDocumentArchive [06:38:37]shift 462 fd 162380 [06:38:37]save to /storage/0462/doc_00162380 [06:38:37]save last doc name /storage/0462/doc_00162380 to /storage/kkm_last_doc_name [06:38:37]save OK [06:38:37]Clear old archive folders... [06:38:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:38:37]tlvbuf is 019515A0 [06:38:37]SAM_PROTO_ClearQueue [06:38:37]wFMCommunicate request_size=4 [06:38:37]MH_SAM_APDU [06:38:37]CAPDU: 80 09 00 00 [06:38:37]Write to MH i2c: E2 08 00 84 FA 80 09 00 00 00 00 00 00 F0 [06:38:37]Write i2c OK [06:38:37]MH_I2C_Read... [06:38:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:37]Read from MH i2c: E2 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 03 00 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 03 00 84 FA 00 90 00 F2 [06:38:37]RAPDU: 90 00 [06:38:37]wFMCommunicate OK [06:38:37]SAM_PROTO_ClearQueue done [06:38:37]KKMCreateOFDPacket [06:38:37]OFDProtocolAddRootSTLVToBuf [06:38:37]FM_MakeSignedData [06:38:37]FM_MakeSignedData [06:38:37]SAM_PROTO_SignData [06:38:37]wFMCommunicate request_size=4 [06:38:37]MH_SAM_APDU [06:38:37]CAPDU: 80 0D 01 02 [06:38:37]Write to MH i2c: E2 08 00 85 FA 80 0D 01 02 00 00 00 00 F8 [06:38:37]Write i2c OK [06:38:37]MH_I2C_Read... [06:38:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:37]Read from MH i2c: E2 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 03 00 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 03 00 85 FA 00 90 00 F3 [06:38:37]RAPDU: 90 00 [06:38:37]wFMCommunicate OK [06:38:37]wFMCommunicate request_size=255 [06:38:37]MH_SAM_APDU [06:38:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F9 20 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7A 02 00 35 04 06 00 5C [06:38:37]Write to MH i2c: E2 02 01 86 FA 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F9 20 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7A 02 00 35 04 06 00 5C 00 00 E8 [06:38:37]Write i2c OK [06:38:37]MH_I2C_Read... [06:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:37]Read from MH i2c: E2 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 03 00 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 03 00 86 FA 00 90 00 F4 [06:38:37]RAPDU: 90 00 [06:38:37]wFMCommunicate OK [06:38:37]wFMCommunicate request_size=10 [06:38:37]MH_SAM_APDU [06:38:37]CAPDU: 80 0D 02 02 05 86 64 A1 2B 50 [06:38:37]Write to MH i2c: E2 0D 00 87 FA 80 0D 02 02 05 00 86 64 A1 2B 50 00 00 0B [06:38:37]Write i2c OK [06:38:37]MH_I2C_Read... [06:38:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:37]Read from MH i2c: E2 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 03 00 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 03 00 87 FA 00 90 00 F5 [06:38:37]RAPDU: 90 00 [06:38:37]wFMCommunicate OK [06:38:37]wFMCommunicate request_size=4 [06:38:37]MH_SAM_APDU [06:38:37]CAPDU: 80 0D 03 02 [06:38:37]Write to MH i2c: E2 08 00 88 FA 80 0D 03 02 00 00 00 00 FD [06:38:37]Write i2c OK [06:38:37]MH_I2C_Read... [06:38:37]OFD Sender: No OFD packet to send [06:38:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:37]Read from MH i2c: E2 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 0B 00 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 0B 00 88 FA 00 C7 81 2B 79 88 E7 3F B1 90 00 49 [06:38:37]RAPDU: C7 81 2B 79 88 E7 3F B1 90 00 [06:38:37]wFMCommunicate OK [06:38:37]SAM_PROTO_SignData done [06:38:37]FM_MakeSignedData done [06:38:37]CreateOFDProtocolMessage [06:38:37]wFMCommunicate request_size=4 [06:38:37]MH_SAM_APDU [06:38:37]CAPDU: 80 11 00 00 [06:38:37]Write to MH i2c: E2 08 00 89 FA 80 11 00 00 00 00 00 00 FD [06:38:37]Write i2c OK [06:38:37]MH_I2C_Read... [06:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:37]Read from MH i2c: E2 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 17 00 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: E2 17 00 89 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5D [06:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:38:37]wFMCommunicate OK [06:38:37]CreateOFDProtocolMessage done [06:38:37]OFDSenderStorePacket 162380 [06:38:37]StoreOFDPacket docnum=162380 [06:38:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 10 BC 07 01 E6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F9 20 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7A 02 00 35 04 06 00 5C 86 64 A1 2B 50 C7 81 2B 79 88 E7 3F B1 [06:38:37]CheckFolder [06:38:37]dirname=/storage/ofd_packets [06:38:37]CheckFolder done [06:38:37]ProducePacketName [06:38:37]name=ofd_packets/00162380 [06:38:37]NVStorageSaveData ofd_packets/00162380 [06:38:37]File name is /storage/ofd_packets/00162380 [06:38:37]Write 301 bytes [06:38:37]NVStorageSaveData done [06:38:37]OFDSenderStorePacket done [06:38:37]KKMCreateOFDPacket done [06:38:37]NVStorageSaveData kkm_last_timestamp [06:38:37]File name is /storage/kkm_last_timestamp [06:38:37]Write 4 bytes [06:38:37]NVStorageSaveData done [06:38:37]ExternCall_PrintAddStr [06:38:37]wPrintStart [06:38:37]Write to MH i2c: 01 00 00 8A FA 84 [06:38:37]Write i2c OK [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: 01 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: 01 07 00 [06:38:37]MH_I2C_Read... [06:38:37]Read from MH i2c: 01 07 00 8A FA 00 00 00 00 00 FF 0F 99 [06:38:37]RasterBufferAndPrint [06:38:37]line Счет N : (1)1318902 [06:38:37]line ИНН: 02508201610067 [06:38:37]line Контрольно-Кассовый Чек [06:38:37]line ПРОДАЖА [06:38:37]line ТРК (МРК, ГНК) : 33 [06:38:37]line Товар: 2710124130 [06:38:37]line Аи-92-К-5 [06:38:37]line 7.550 * 66.30 [06:38:37]line = 500.57 [06:38:37]line НДС 12% НСП 1% [06:38:37]line > о реализуемом товаре [06:38:37]line ОКРУГЛЕНИЕ: -0.57 [06:38:37]line ИТОГО: 500.00 [06:38:37]line Внесено: 500.00 [06:38:37]line СДАЧА: 0.00 [06:38:37]line НСП 1% : 4.43 [06:38:37]line НДС 12% : 53.16 [06:38:37]line Наличными: 500.00 [06:38:37]line Безнал.: 0.00 [06:38:37]line Место: АЗС № 140 "Партнер Нефть" [06:38:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:38:37]line СНО: Общий режим [06:38:37]line Чек 48 13.07.2024 06:38 [06:38:37]line Смена: 462 ФФД: 1.0 [06:38:37]line ЗНМ: 0300000129 [06:38:37]line РНМ: 0000000000090858 [06:38:37]line Версия ККМ: 001 [06:38:37]line ФМ: 0000000000874899 [06:38:37]line ФД: 162380 [06:38:37]line ФПД: 101732283657040 [06:38:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T063849&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162380&fm=101732283657040&tin=02508201610067®Number=0000000000090858&sum=50000 [06:38:38]OFD Sender: Processing packet 162380 [packets to send 105, broken 104] [06:38:38]ProducePacketName [06:38:38]name=ofd_packets/00162380 [06:38:38]OFD Sender: To server: pG, [06:38:38]CommunicateWithHost lk.salyk.kg:30040 [06:38:38]ConnectInit lk.salyk.kg [06:38:38]written 0, free lines is 4095 [06:38:38]Connected sock=10 [06:38:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 10 BC 07 01 E6 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 F9 20 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7A 02 00 35 04 06 00 5C 86 64 A1 2B 50 C7 81 2B 79 88 E7 3F B1 [06:38:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CA 24 47 00 E7 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7A 02 00 F4 03 04 00 0E CD 91 66 B6 04 01 00 00 11 6D DA 9B A4 D7 9A C8 [06:38:38]CommunicateWithHost err = 0 [06:38:38]CheckOFDResponse [06:38:38]1017 (14) - 77093643461234 [06:38:38]1041 (16) - 0000000000874899 [06:38:38]1040 (4) - 162380 [06:38:38]1012 (4) - 13.07.2024 00:40 [06:38:38]1206 (1) - 0 [06:38:38]OFD Sender: Remove packet 162380 [06:38:38]ProducePacketName [06:38:38]name=ofd_packets/00162380 [06:38:38]NVStorageDeleteData [06:38:38]Write to MH i2c: 01 00 00 B5 FA AF [06:38:38]Write i2c OK [06:38:38]MH_I2C_Read... [06:38:38]Read from MH i2c: 01 [06:38:38]MH_I2C_Read... [06:38:38]Read from MH i2c: 01 07 00 [06:38:38]MH_I2C_Read... [06:38:38]Read from MH i2c: 01 07 00 B5 FA 00 00 00 00 00 EB 0C AD [06:38:38]RasterBufferAndPrint [06:38:38]line [06:38:38]line [06:38:38]line [06:38:38]line [06:38:38]line [06:38:38]written 0, free lines is 3316 [06:38:38]MH_Cut [06:38:38]Write to MH i2c: D1 01 00 BC FA 01 88 [06:38:38]Write i2c OK [06:38:38]MH_I2C_Read... [06:38:38]Read from MH i2c: D1 [06:38:38]MH_I2C_Read... [06:38:38]Read from MH i2c: D1 01 00 [06:38:38]MH_I2C_Read... [06:38:38]Read from MH i2c: D1 01 00 BC FA 00 87 [06:38:38]Write to MH i2c: 01 00 00 BD FA B7 [06:38:38]Write i2c OK [06:38:38]MH_I2C_Read... [06:38:39]OFD Sender: No OFD packet to send [06:38:39]*** Cut start [06:38:39]*** Purtial cut [06:38:39]*** CUTSNS_PIN = 0 [06:38:39]*** Stage 1: CUTSNS_PIN = 1 [06:38:41]Read from MH i2c: 01 [06:38:41]MH_I2C_Read... [06:38:41]*** Stop cut motor [06:38:41]*** Cut end [06:38:41]Read from MH i2c: 01 07 00 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: 01 07 00 BD FA 00 00 00 00 00 FF 0F CC [06:38:41]process_action close_receipt done [06:38:41]requested_data is exist [06:38:41]produce_requested_data [06:38:41]requested_item fm.sn is exist - process it [06:38:41]wFMCommunicate request_size=4 [06:38:41]MH_SAM_APDU [06:38:41]CAPDU: 80 11 00 00 [06:38:41]Write to MH i2c: E2 08 00 BE FA 80 11 00 00 00 00 00 00 32 [06:38:41]Write i2c OK [06:38:41]MH_I2C_Read... [06:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:41]Read from MH i2c: E2 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: E2 17 00 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: E2 17 00 BE FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 92 [06:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:38:41]wFMCommunicate OK [06:38:41]requested_item fd.num is exist - process it [06:38:41]SAM_PROTO_GetFieldsCounters [06:38:41]wFMCommunicate request_size=4 [06:38:41]MH_SAM_APDU [06:38:41]CAPDU: 80 13 00 00 [06:38:41]Write to MH i2c: E2 08 00 BF FA 80 13 00 00 00 00 00 00 35 [06:38:41]Write i2c OK [06:38:41]MH_I2C_Read... [06:38:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:41]Read from MH i2c: E2 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: E2 62 00 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: E2 62 00 BF FA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [06:38:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:41]wFMCommunicate OK [06:38:41]SAM_PROTO_GetFieldsCounters done [06:38:41]requested_item shift.num is exist - process it [06:38:41]requested_item shift.opened is exist - process it [06:38:41]req_shift_opened [06:38:41]FM_GetShiftState [06:38:41]SAM_PROTO_GetShiftState [06:38:41]wFMCommunicate request_size=4 [06:38:41]MH_SAM_APDU [06:38:41]CAPDU: 80 13 01 00 [06:38:41]Write to MH i2c: E2 08 00 C0 FA 80 13 01 00 00 00 00 00 37 [06:38:41]Write i2c OK [06:38:41]MH_I2C_Read... [06:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:41]Read from MH i2c: E2 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: E2 0E 00 [06:38:41]MH_I2C_Read... [06:38:41]Read from MH i2c: E2 0E 00 C0 FA 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 31 [06:38:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:38:41]wFMCommunicate OK [06:38:41]SAM_PROTO_GetShiftState done [06:38:41]FM_GetShiftState done [06:38:41]req_shift_opened done [06:38:41]requested_item shift.open_date is exist - process it [06:38:41]req_shift_open_date [06:38:41]req_shift_open_date done [06:38:41]produce_requested_data done [06:38:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162380,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:38:41]process_action_free close_receipt [06:38:41]json_value_free [06:38:41]json_value_free done [06:38:41]process_json_proto returns [06:38:41]Send response to host [06:38:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162380,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:38:41]free response buf [06:38:41]execute_script done [06:38:41]execute_script returns [06:38:41]free content buf [06:38:41]Sock 8.Close socket [06:38:41]Sock 8.Thread stoped [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:52]accept exits with 9 [06:41:52]New connection [06:41:52]New thread 3067006308 created [06:41:52]Thread 3066862948 joined [06:41:52]Waiting for new connection... [06:41:52] Sock 9.Parse request [06:41:52]Sock 9.Check first char [06:41:52]Sock 9.First char is OK [06:41:52]request: POST /json_proto HTTP/1.0 [06:41:52]Method: POST [06:41:52]URL: /json_proto [06:41:52]Method is POST - this is cgi request [06:41:52]url: /json_proto [06:41:52]query_string will be loaded in cgi processing [06:41:52]execute_cgi json_proto POST (null) [06:41:52]execute_cgi path=json_proto method=POST [06:41:52]POST find Content-Length [06:41:52]Host: 172.17.39.67:8080 [06:41:52]Content-Length: 676 [06:41:52]Content-Type: application/json [06:41:52] [06:41:52]POST finish read [06:41:52]Found Content-Length = 676 [06:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:52]execute_script... [06:41: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)1318905", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:52]POST & json_proto [06:41:52]process_json_proto [06:41:52]json parsed OK: [06:41:52]protocol is kg_v1.0 [06:41:52]action value=close_receipt [06:41:52]process_action close_receipt [06:41:52]cmd_close_receipt [06:41:52]MH_GetDate [06:41:52]Write to MH i2c: F0 00 00 C1 FA AA [06:41:52]Write i2c OK [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: F0 [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: F0 09 00 [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: F0 09 00 C1 FA 00 BD 21 92 66 FA E9 8E 66 60 [06:41:52]GetLastDocTimeStamp 1720852729 [06:41:52]current date 1720852925 [06:41:52]FM_GetShiftState [06:41:52]SAM_PROTO_GetShiftState [06:41:52]wFMCommunicate request_size=4 [06:41:52]MH_SAM_APDU [06:41:52]CAPDU: 80 13 01 00 [06:41:52]Write to MH i2c: E2 08 00 C2 FA 80 13 01 00 00 00 00 00 39 [06:41:52]Write i2c OK [06:41:52]MH_I2C_Read... [06:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:52]Read from MH i2c: E2 [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: E2 0E 00 [06:41:52]MH_I2C_Read... [06:41:52]Read from MH i2c: E2 0E 00 C2 FA 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 33 [06:41:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:41:52]wFMCommunicate OK [06:41:52]SAM_PROTO_GetShiftState done [06:41:52]FM_GetShiftState done [06:41:52]opened in 1720828979 [06:41:52]opened+sec_in_day 1720915379 [06:41:52]quantity*price = 100007 [06:41:52]sum+1 = 100009 [06:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 49 13.07.2024 06:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162381 ФПД: 104364510616824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064205&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162381&fm=104364510616824&tin=02508201610067®Number=0000000000090858&sum=100000 [06:41:53]StoreToDocumentArchive [06:41:53]shift 462 fd 162381 [06:41:53]save to /storage/0462/doc_00162381 [06:41:53]save last doc name /storage/0462/doc_00162381 to /storage/kkm_last_doc_name [06:41:53]save OK [06:41:53]Clear old archive folders... [06:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:41:53]tlvbuf is 01951000 [06:41:53]SAM_PROTO_ClearQueue [06:41:53]wFMCommunicate request_size=4 [06:41:53]MH_SAM_APDU [06:41:53]CAPDU: 80 09 00 00 [06:41:53]Write to MH i2c: E2 08 00 CF FA 80 09 00 00 00 00 00 00 3B [06:41:53]Write i2c OK [06:41:53]MH_I2C_Read... [06:41:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:53]Read from MH i2c: E2 [06:41:53]MH_I2C_Read... [06:41:53]Read from MH i2c: E2 03 00 [06:41:53]MH_I2C_Read... [06:41:53]Read from MH i2c: E2 03 00 CF FA 00 90 00 3D [06:41:53]RAPDU: 90 00 [06:41:53]wFMCommunicate OK [06:41:53]SAM_PROTO_ClearQueue done [06:41:53]KKMCreateOFDPacket [06:41:53]OFDProtocolAddRootSTLVToBuf [06:41:53]FM_MakeSignedData [06:41:53]FM_MakeSignedData [06:41:53]SAM_PROTO_SignData [06:41:53]wFMCommunicate request_size=4 [06:41:53]MH_SAM_APDU [06:41:53]CAPDU: 80 0D 01 02 [06:41:53]Write to MH i2c: E2 08 00 D0 FA 80 0D 01 02 00 00 00 00 43 [06:41:53]Write i2c OK [06:41:53]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 D0 FA 00 90 00 3E [06:41:54]RAPDU: 90 00 [06:41:54]wFMCommunicate OK [06:41:54]wFMCommunicate request_size=255 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BD 21 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7A 02 00 35 04 06 00 [06:41:54]Write to MH i2c: E2 02 01 D1 FA 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BD 21 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7A 02 00 35 04 06 00 00 00 6C [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 D1 FA 00 90 00 3F [06:41:54]RAPDU: 90 00 [06:41:54]wFMCommunicate OK [06:41:54]wFMCommunicate request_size=11 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 0D 02 02 06 5E EB 41 95 1C F8 [06:41:54]Write to MH i2c: E2 0E 00 D2 FA 80 0D 02 02 06 00 5E EB 41 95 1C F8 00 00 85 [06:41:54]OFD Sender: No OFD packet to send [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 03 00 D2 FA 00 90 00 40 [06:41:54]RAPDU: 90 00 [06:41:54]wFMCommunicate OK [06:41:54]wFMCommunicate request_size=4 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 0D 03 02 [06:41:54]Write to MH i2c: E2 08 00 D3 FA 80 0D 03 02 00 00 00 00 48 [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 0B 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 0B 00 D3 FA 00 BF E3 FB B2 BD 83 53 C9 90 00 F4 [06:41:54]RAPDU: BF E3 FB B2 BD 83 53 C9 90 00 [06:41:54]wFMCommunicate OK [06:41:54]SAM_PROTO_SignData done [06:41:54]FM_MakeSignedData done [06:41:54]CreateOFDProtocolMessage [06:41:54]wFMCommunicate request_size=4 [06:41:54]MH_SAM_APDU [06:41:54]CAPDU: 80 11 00 00 [06:41:54]Write to MH i2c: E2 08 00 D4 FA 80 11 00 00 00 00 00 00 48 [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:54]Read from MH i2c: E2 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 17 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: E2 17 00 D4 FA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A8 [06:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:41:54]wFMCommunicate OK [06:41:54]CreateOFDProtocolMessage done [06:41:54]OFDSenderStorePacket 162381 [06:41:54]StoreOFDPacket docnum=162381 [06:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C8 81 08 01 E1 E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BD 21 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7A 02 00 35 04 06 00 5E EB 41 95 1C F8 BF E3 FB B2 BD 83 53 C9 [06:41:54]CheckFolder [06:41:54]dirname=/storage/ofd_packets [06:41:54]CheckFolder done [06:41:54]ProducePacketName [06:41:54]name=ofd_packets/00162381 [06:41:54]NVStorageSaveData ofd_packets/00162381 [06:41:54]File name is /storage/ofd_packets/00162381 [06:41:54]Write 302 bytes [06:41:54]NVStorageSaveData done [06:41:54]OFDSenderStorePacket done [06:41:54]KKMCreateOFDPacket done [06:41:54]NVStorageSaveData kkm_last_timestamp [06:41:54]File name is /storage/kkm_last_timestamp [06:41:54]Write 4 bytes [06:41:54]NVStorageSaveData done [06:41:54]ExternCall_PrintAddStr [06:41:54]wPrintStart [06:41:54]Write to MH i2c: 01 00 00 D5 FA CF [06:41:54]Write i2c OK [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: 01 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: 01 07 00 [06:41:54]MH_I2C_Read... [06:41:54]Read from MH i2c: 01 07 00 D5 FA 00 00 00 00 00 FF 0F E4 [06:41:54]RasterBufferAndPrint [06:41:54]line Счет N : (1)1318905 [06:41:54]line ИНН: 02508201610067 [06:41:54]line Контрольно-Кассовый Чек [06:41:54]line ПРОДАЖА [06:41:54]line ТРК (МРК, ГНК) : 52 [06:41:54]line Товар: 2710124130 [06:41:54]line Super-92-К-5 [06:41:54]line 14.860 * 67.30 [06:41:54]line = 1000.08 [06:41:54]line НДС 12% НСП 1% [06:41:54]line > о реализуемом товаре [06:41:54]line ОКРУГЛЕНИЕ: -0.08 [06:41:54]line ИТОГО: 1000.00 [06:41:54]line Внесено: 1000.00 [06:41:54]line СДАЧА: 0.00 [06:41:54]line НСП 1% : 8.85 [06:41:54]line НДС 12% : 106.20 [06:41:54]line Наличными: 1000.00 [06:41:54]line Безнал.: 0.00 [06:41:54]line Место: АЗС № 140 "Партнер Нефть" [06:41:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:41:54]line СНО: Общий режим [06:41:54]line Чек 49 13.07.2024 06:42 [06:41:54]line Смена: 462 ФФД: 1.0 [06:41:54]line ЗНМ: 0300000129 [06:41:54]line РНМ: 0000000000090858 [06:41:54]line Версия ККМ: 001 [06:41:54]line ФМ: 0000000000874899 [06:41:54]line ФД: 162381 [06:41:54]line ФПД: 104364510616824 [06:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064205&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162381&fm=104364510616824&tin=02508201610067®Number=0000000000090858&sum=100000 [06:41:54]OFD Sender: Processing packet 162381 [packets to send 105, broken 104] [06:41:54]ProducePacketName [06:41:54]name=ofd_packets/00162381 [06:41:54]OFD Sender: To server: pG, [06:41:54]CommunicateWithHost lk.salyk.kg:30040 [06:41:54]ConnectInit lk.salyk.kg [06:41:54]written 0, free lines is 4095 [06:41:54]Connected sock=11 [06:41:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C8 81 08 01 E1 E3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 BD 21 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7A 02 00 35 04 06 00 5E EB 41 95 1C F8 BF E3 FB B2 BD 83 53 C9 [06:41:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3B 23 47 00 39 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 34 38 39 39 10 04 04 00 4D 7A 02 00 F4 03 04 00 D2 CD 91 66 B6 04 01 00 00 33 D5 7D 81 09 9F 46 61 [06:41:55]CommunicateWithHost err = 0 [06:41:55]CheckOFDResponse [06:41:55]1017 (14) - 77093643461234 [06:41:55]1041 (16) - 0000000000874899 [06:41:55]1040 (4) - 162381 [06:41:55]1012 (4) - 13.07.2024 00:44 [06:41:55]1206 (1) - 0 [06:41:55]OFD Sender: Remove packet 162381 [06:41:55]ProducePacketName [06:41:55]name=ofd_packets/00162381 [06:41:55]NVStorageDeleteData [06:41:55]Write to MH i2c: 01 00 00 00 FB FB [06:41:55]Write i2c OK [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: 01 [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: 01 07 00 [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: 01 07 00 00 FB 00 00 00 00 00 EA 0C F8 [06:41:55]RasterBufferAndPrint [06:41:55]line [06:41:55]line [06:41:55]line [06:41:55]line [06:41:55]line [06:41:55]written 0, free lines is 3312 [06:41:55]MH_Cut [06:41:55]Write to MH i2c: D1 01 00 07 FB 01 D4 [06:41:55]Write i2c OK [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: D1 [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: D1 01 00 [06:41:55]MH_I2C_Read... [06:41:55]Read from MH i2c: D1 01 00 07 FB 00 D3 [06:41:55]Write to MH i2c: 01 00 00 08 FB 03 [06:41:55]Write i2c OK [06:41:55]MH_I2C_Read... [06:41:55]OFD Sender: No OFD packet to send [06:41:56]*** Cut start [06:41:56]*** Purtial cut [06:41:56]*** Stage 1: CUTSNS_PIN = 1 [06:41:56]Read from MH i2c: 01 [06:41:56]MH_I2C_Read... [06:41:56]*** Stop cut motor [06:41:56]*** Cut end [06:41:56]Read from MH i2c: 01 07 00 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: 01 07 00 08 FB 00 00 00 00 00 FF 0F 18 [06:41:56]process_action close_receipt done [06:41:56]requested_data is exist [06:41:56]produce_requested_data [06:41:56]requested_item fm.sn is exist - process it [06:41:56]wFMCommunicate request_size=4 [06:41:56]MH_SAM_APDU [06:41:56]CAPDU: 80 11 00 00 [06:41:56]Write to MH i2c: E2 08 00 09 FB 80 11 00 00 00 00 00 00 7E [06:41:56]Write i2c OK [06:41:56]MH_I2C_Read... [06:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:56]Read from MH i2c: E2 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 17 00 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 17 00 09 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DE [06:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:41:56]wFMCommunicate OK [06:41:56]requested_item fd.num is exist - process it [06:41:56]SAM_PROTO_GetFieldsCounters [06:41:56]wFMCommunicate request_size=4 [06:41:56]MH_SAM_APDU [06:41:56]CAPDU: 80 13 00 00 [06:41:56]Write to MH i2c: E2 08 00 0A FB 80 13 00 00 00 00 00 00 81 [06:41:56]Write i2c OK [06:41:56]MH_I2C_Read... [06:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:56]Read from MH i2c: E2 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 62 00 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 62 00 0A FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [06:41:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:56]wFMCommunicate OK [06:41:56]SAM_PROTO_GetFieldsCounters done [06:41:56]requested_item shift.num is exist - process it [06:41:56]requested_item shift.opened is exist - process it [06:41:56]req_shift_opened [06:41:56]FM_GetShiftState [06:41:56]SAM_PROTO_GetShiftState [06:41:56]wFMCommunicate request_size=4 [06:41:56]MH_SAM_APDU [06:41:56]CAPDU: 80 13 01 00 [06:41:56]Write to MH i2c: E2 08 00 0B FB 80 13 01 00 00 00 00 00 83 [06:41:56]Write i2c OK [06:41:56]MH_I2C_Read... [06:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:56]Read from MH i2c: E2 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 0E 00 [06:41:56]MH_I2C_Read... [06:41:56]Read from MH i2c: E2 0E 00 0B FB 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7D [06:41:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:41:56]wFMCommunicate OK [06:41:56]SAM_PROTO_GetShiftState done [06:41:56]FM_GetShiftState done [06:41:56]req_shift_opened done [06:41:56]requested_item shift.open_date is exist - process it [06:41:56]req_shift_open_date [06:41:56]req_shift_open_date done [06:41:56]produce_requested_data done [06:41:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162381,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:41:56]process_action_free close_receipt [06:41:56]json_value_free [06:41:56]json_value_free done [06:41:56]process_json_proto returns [06:41:56]Send response to host [06:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162381,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:41:56]free response buf [06:41:56]execute_script done [06:41:56]execute_script returns [06:41:56]free content buf [06:41:56]Sock 9.Close socket [06:41:56]Sock 9.Thread stoped [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:07]accept exits with 8 [06:44:07]New connection [06:44:07]New thread 3066862948 created [06:44:07]Thread 3067006308 joined [06:44:07]Waiting for new connection... [06:44:07] Sock 8.Parse request [06:44:07]Sock 8.Check first char [06:44:07]Sock 8.First char is OK [06:44:07]request: POST /json_proto HTTP/1.0 [06:44:07]Method: POST [06:44:07]URL: /json_proto [06:44:07]Method is POST - this is cgi request [06:44:07]url: /json_proto [06:44:07]query_string will be loaded in cgi processing [06:44:07]execute_cgi json_proto POST (null) [06:44:07]execute_cgi path=json_proto method=POST [06:44:07]POST find Content-Length [06:44:07]Host: 172.17.39.67:8080 [06:44:07]Content-Length: 678 [06:44:07]Content-Type: application/json [06:44:07] [06:44:07]POST finish read [06:44:07]Found Content-Length = 678 [06:44:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:07]execute_script... [06:44: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)1318906", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:07]POST & json_proto [06:44:07]process_json_proto [06:44:07]json parsed OK: [06:44:07]protocol is kg_v1.0 [06:44:07]action value=close_receipt [06:44:07]process_action close_receipt [06:44:07]cmd_close_receipt [06:44:07]MH_GetDate [06:44:07]Write to MH i2c: F0 00 00 0C FB F6 [06:44:07]Write i2c OK [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: F0 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: F0 09 00 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: F0 09 00 0C FB 00 44 22 92 66 FA E9 8E 66 34 [06:44:07]GetLastDocTimeStamp 1720852925 [06:44:07]current date 1720853060 [06:44:07]FM_GetShiftState [06:44:07]SAM_PROTO_GetShiftState [06:44:07]wFMCommunicate request_size=4 [06:44:07]MH_SAM_APDU [06:44:07]CAPDU: 80 13 01 00 [06:44:07]Write to MH i2c: E2 08 00 0D FB 80 13 01 00 00 00 00 00 85 [06:44:07]Write i2c OK [06:44:07]MH_I2C_Read... [06:44:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:07]Read from MH i2c: E2 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 0E 00 [06:44:07]MH_I2C_Read... [06:44:07]Read from MH i2c: E2 0E 00 0D FB 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7F [06:44:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:44:07]wFMCommunicate OK [06:44:07]SAM_PROTO_GetShiftState done [06:44:07]FM_GetShiftState done [06:44:07]opened in 1720828979 [06:44:07]opened+sec_in_day 1720915379 [06:44:07]quantity*price = 60001 [06:44:07]sum+1 = 60003 [06:44:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 50 13.07.2024 06:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162382 ФПД: 21821988566250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064420&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162382&fm=21821988566250&tin=02508201610067®Number=0000000000090858&sum=60000 [06:44:08]StoreToDocumentArchive [06:44:08]shift 462 fd 162382 [06:44:08]save to /storage/0462/doc_00162382 [06:44:08]save last doc name /storage/0462/doc_00162382 to /storage/kkm_last_doc_name [06:44:08]save OK [06:44:08]Clear old archive folders... [06:44:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:44:08]tlvbuf is 019C0130 [06:44:08]SAM_PROTO_ClearQueue [06:44:08]wFMCommunicate request_size=4 [06:44:08]MH_SAM_APDU [06:44:08]CAPDU: 80 09 00 00 [06:44:08]Write to MH i2c: E2 08 00 1A FB 80 09 00 00 00 00 00 00 87 [06:44:08]Write i2c OK [06:44:08]MH_I2C_Read... [06:44:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:08]Read from MH i2c: E2 [06:44:08]MH_I2C_Read... [06:44:08]Read from MH i2c: E2 03 00 [06:44:08]MH_I2C_Read... [06:44:08]Read from MH i2c: E2 03 00 1A FB 00 90 00 89 [06:44:08]RAPDU: 90 00 [06:44:09]wFMCommunicate OK [06:44:09]SAM_PROTO_ClearQueue done [06:44:09]KKMCreateOFDPacket [06:44:09]OFDProtocolAddRootSTLVToBuf [06:44:09]FM_MakeSignedData [06:44:09]FM_MakeSignedData [06:44:09]SAM_PROTO_SignData [06:44:09]wFMCommunicate request_size=4 [06:44:09]MH_SAM_APDU [06:44:09]CAPDU: 80 0D 01 02 [06:44:09]Write to MH i2c: E2 08 00 1B FB 80 0D 01 02 00 00 00 00 8F [06:44:09]Write i2c OK [06:44:09]MH_I2C_Read... [06:44:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:09]Read from MH i2c: E2 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 03 00 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 03 00 1B FB 00 90 00 8A [06:44:09]RAPDU: 90 00 [06:44:09]wFMCommunicate OK [06:44:09]wFMCommunicate request_size=255 [06:44:09]MH_SAM_APDU [06:44:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 32 00 00 00 F4 03 04 00 44 22 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7A 02 00 35 04 06 00 13 [06:44:09]Write to MH i2c: E2 02 01 1C FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 32 00 00 00 F4 03 04 00 44 22 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7A 02 00 35 04 06 00 13 00 00 54 [06:44:09]Write i2c OK [06:44:09]MH_I2C_Read... [06:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:09]Read from MH i2c: E2 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 03 00 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 03 00 1C FB 00 90 00 8B [06:44:09]RAPDU: 90 00 [06:44:09]wFMCommunicate OK [06:44:09]wFMCommunicate request_size=10 [06:44:09]MH_SAM_APDU [06:44:09]CAPDU: 80 0D 02 02 05 D8 D3 E0 74 EA [06:44:09]Write to MH i2c: E2 0D 00 1D FB 80 0D 02 02 05 00 D8 D3 E0 74 EA 00 00 85 [06:44:09]Write i2c OK [06:44:09]MH_I2C_Read... [06:44:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:09]Read from MH i2c: E2 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 03 00 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 03 00 1D FB 00 90 00 8C [06:44:09]RAPDU: 90 00 [06:44:09]wFMCommunicate OK [06:44:09]wFMCommunicate request_size=4 [06:44:09]MH_SAM_APDU [06:44:09]CAPDU: 80 0D 03 02 [06:44:09]Write to MH i2c: E2 08 00 1E FB 80 0D 03 02 00 00 00 00 94 [06:44:09]Write i2c OK [06:44:09]MH_I2C_Read... [06:44:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:09]Read from MH i2c: E2 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 0B 00 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 0B 00 1E FB 00 9C F6 D8 2A EF C7 AA 5B 90 00 E4 [06:44:09]RAPDU: 9C F6 D8 2A EF C7 AA 5B 90 00 [06:44:09]wFMCommunicate OK [06:44:09]SAM_PROTO_SignData done [06:44:09]FM_MakeSignedData done [06:44:09]CreateOFDProtocolMessage [06:44:09]wFMCommunicate request_size=4 [06:44:09]MH_SAM_APDU [06:44:09]CAPDU: 80 11 00 00 [06:44:09]Write to MH i2c: E2 08 00 1F FB 80 11 00 00 00 00 00 00 94 [06:44:09]Write i2c OK [06:44:09]MH_I2C_Read... [06:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:09]Read from MH i2c: E2 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 17 00 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: E2 17 00 1F FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F4 [06:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:44:09]wFMCommunicate OK [06:44:09]CreateOFDProtocolMessage done [06:44:09]OFDSenderStorePacket 162382 [06:44:09]StoreOFDPacket docnum=162382 [06:44:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B7 8E 07 01 33 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 32 00 00 00 F4 03 04 00 44 22 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7A 02 00 35 04 06 00 13 D8 D3 E0 74 EA 9C F6 D8 2A EF C7 AA 5B [06:44:09]CheckFolder [06:44:09]dirname=/storage/ofd_packets [06:44:09]CheckFolder done [06:44:09]ProducePacketName [06:44:09]name=ofd_packets/00162382 [06:44:09]NVStorageSaveData ofd_packets/00162382 [06:44:09]File name is /storage/ofd_packets/00162382 [06:44:09]Write 301 bytes [06:44:09]NVStorageSaveData done [06:44:09]OFDSenderStorePacket done [06:44:09]KKMCreateOFDPacket done [06:44:09]NVStorageSaveData kkm_last_timestamp [06:44:09]File name is /storage/kkm_last_timestamp [06:44:09]Write 4 bytes [06:44:09]NVStorageSaveData done [06:44:09]ExternCall_PrintAddStr [06:44:09]wPrintStart [06:44:09]Write to MH i2c: 01 00 00 20 FB 1B [06:44:09]Write i2c OK [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: 01 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: 01 07 00 [06:44:09]MH_I2C_Read... [06:44:09]Read from MH i2c: 01 07 00 20 FB 00 00 00 00 00 FF 0F 30 [06:44:09]RasterBufferAndPrint [06:44:09]line Счет N : (1)1318906 [06:44:09]line ИНН: 02508201610067 [06:44:09]line Контрольно-Кассовый Чек [06:44:09]line ПРОДАЖА [06:44:09]line ТРК (МРК, ГНК) : 63 [06:44:09]line Товар: 2710124130 [06:44:09]line Аи-92-К-5 [06:44:09]line 9.050 * 66.30 [06:44:09]line = 600.02 [06:44:09]line НДС 12% НСП 1% [06:44:09]line > о реализуемом товаре [06:44:09]line ОКРУГЛЕНИЕ: -0.02 [06:44:09]line ИТОГО: 600.00 [06:44:09]line Внесено: 600.00 [06:44:09]line СДАЧА: 0.00 [06:44:09]line НСП 1% : 5.31 [06:44:09]line НДС 12% : 63.72 [06:44:09]line Наличными: 600.00 [06:44:09]line Безнал.: 0.00 [06:44:09]line Место: АЗС № 140 "Партнер Нефть" [06:44:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:44:09]line СНО: Общий режим [06:44:09]line Чек 50 13.07.2024 06:44 [06:44:09]line Смена: 462 ФФД: 1.0 [06:44:09]line ЗНМ: 0300000129 [06:44:09]line РНМ: 0000000000090858 [06:44:09]line Версия ККМ: 001 [06:44:09]line ФМ: 0000000000874899 [06:44:09]line ФД: 162382 [06:44:09]line ФПД: 21821988566250 [06:44:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064420&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162382&fm=21821988566250&tin=02508201610067®Number=0000000000090858&sum=60000 [06:44:09]OFD Sender: Processing packet 162382 [packets to send 105, broken 104] [06:44:09]ProducePacketName [06:44:09]name=ofd_packets/00162382 [06:44:09]OFD Sender: To server: pG, [06:44:09]CommunicateWithHost lk.salyk.kg:30040 [06:44:09]ConnectInit lk.salyk.kg [06:44:09]written 0, free lines is 4095 [06:44:09]Connected sock=10 [06:44:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B7 8E 07 01 33 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 32 00 00 00 F4 03 04 00 44 22 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7A 02 00 35 04 06 00 13 D8 D3 E0 74 EA 9C F6 D8 2A EF C7 AA 5B [06:44:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EF A4 47 00 A1 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7A 02 00 F4 03 04 00 59 CE 91 66 B6 04 01 00 00 1C 49 9C A9 84 E4 9F 4E [06:44:10]CommunicateWithHost err = 0 [06:44:10]CheckOFDResponse [06:44:10]1017 (14) - 77093643461234 [06:44:10]1041 (16) - 0000000000874899 [06:44:10]1040 (4) - 162382 [06:44:10]1012 (4) - 13.07.2024 00:46 [06:44:10]1206 (1) - 0 [06:44:10]OFD Sender: Remove packet 162382 [06:44:10]ProducePacketName [06:44:10]name=ofd_packets/00162382 [06:44:10]NVStorageDeleteData [06:44:10]Write to MH i2c: 01 00 00 4B FB 46 [06:44:10]Write i2c OK [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: 01 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: 01 07 00 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: 01 07 00 4B FB 00 00 00 00 00 F1 0C 4A [06:44:10]RasterBufferAndPrint [06:44:10]line [06:44:10]line [06:44:10]line [06:44:10]line [06:44:10]line [06:44:10]written 0, free lines is 3322 [06:44:10]MH_Cut [06:44:10]Write to MH i2c: D1 01 00 52 FB 01 1F [06:44:10]Write i2c OK [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: D1 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: D1 01 00 [06:44:10]MH_I2C_Read... [06:44:10]Read from MH i2c: D1 01 00 52 FB 00 1E [06:44:10]Write to MH i2c: 01 00 00 53 FB 4E [06:44:10]Write i2c OK [06:44:10]MH_I2C_Read... [06:44:10]OFD Sender: No OFD packet to send [06:44:11]*** Cut start [06:44:11]*** Purtial cut [06:44:11]*** CUTSNS_PIN = 0 [06:44:11]*** Stage 1: CUTSNS_PIN = 1 [06:44:13]Read from MH i2c: 01 [06:44:13]MH_I2C_Read... [06:44:13]*** Stop cut motor [06:44:13]*** Cut end [06:44:13]Read from MH i2c: 01 07 00 [06:44:13]MH_I2C_Read... [06:44:13]Read from MH i2c: 01 07 00 53 FB 00 00 00 00 00 FF 0F 63 [06:44:13]process_action close_receipt done [06:44:13]requested_data is exist [06:44:13]produce_requested_data [06:44:13]requested_item fm.sn is exist - process it [06:44:13]wFMCommunicate request_size=4 [06:44:13]MH_SAM_APDU [06:44:13]CAPDU: 80 11 00 00 [06:44:13]Write to MH i2c: E2 08 00 54 FB 80 11 00 00 00 00 00 00 C9 [06:44:13]Write i2c OK [06:44:13]MH_I2C_Read... [06:44:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:13]Read from MH i2c: E2 [06:44:13]MH_I2C_Read... [06:44:13]Read from MH i2c: E2 17 00 [06:44:13]MH_I2C_Read... [06:44:13]Read from MH i2c: E2 17 00 54 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 29 [06:44:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:44:13]wFMCommunicate OK [06:44:13]requested_item fd.num is exist - process it [06:44:13]SAM_PROTO_GetFieldsCounters [06:44:13]wFMCommunicate request_size=4 [06:44:13]MH_SAM_APDU [06:44:13]CAPDU: 80 13 00 00 [06:44:13]Write to MH i2c: E2 08 00 55 FB 80 13 00 00 00 00 00 00 CC [06:44:13]Write i2c OK [06:44:13]MH_I2C_Read... [06:44:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:13]Read from MH i2c: E2 [06:44:13]MH_I2C_Read... [06:44:13]Read from MH i2c: E2 62 00 [06:44:13]MH_I2C_Read... [06:44:13]Read from MH i2c: E2 62 00 55 FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [06:44:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:44:13]wFMCommunicate OK [06:44:13]SAM_PROTO_GetFieldsCounters done [06:44:13]requested_item shift.num is exist - process it [06:44:13]requested_item shift.opened is exist - process it [06:44:13]req_shift_opened [06:44:13]FM_GetShiftState [06:44:13]SAM_PROTO_GetShiftState [06:44:13]wFMCommunicate request_size=4 [06:44:13]MH_SAM_APDU [06:44:13]CAPDU: 80 13 01 00 [06:44:13]Write to MH i2c: E2 08 00 56 FB 80 13 01 00 00 00 00 00 CE [06:44:13]Write i2c OK [06:44:13]MH_I2C_Read... [06:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:13]Read from MH i2c: E2 [06:44:13]MH_I2C_Read... [06:44:13]Read from MH i2c: E2 0E 00 [06:44:13]MH_I2C_Read... [06:44:13]Read from MH i2c: E2 0E 00 56 FB 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C8 [06:44:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:44:13]wFMCommunicate OK [06:44:13]SAM_PROTO_GetShiftState done [06:44:13]FM_GetShiftState done [06:44:13]req_shift_opened done [06:44:13]requested_item shift.open_date is exist - process it [06:44:13]req_shift_open_date [06:44:13]req_shift_open_date done [06:44:13]produce_requested_data done [06:44:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162382,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:44:13]process_action_free close_receipt [06:44:13]json_value_free [06:44:13]json_value_free done [06:44:13]process_json_proto returns [06:44:13]Send response to host [06:44:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162382,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:44:13]free response buf [06:44:13]execute_script done [06:44:13]execute_script returns [06:44:13]free content buf [06:44:13]Sock 8.Close socket [06:44:13]Sock 8.Thread stoped [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:23]accept exits with 9 [06:46:23]New connection [06:46:23]New thread 3067006308 created [06:46:23]Thread 3066862948 joined [06:46:23]Waiting for new connection... [06:46:23] Sock 9.Parse request [06:46:23]Sock 9.Check first char [06:46:23]Sock 9.First char is OK [06:46:23]request: POST /json_proto HTTP/1.0 [06:46:23]Method: POST [06:46:23]URL: /json_proto [06:46:23]Method is POST - this is cgi request [06:46:23]url: /json_proto [06:46:23]query_string will be loaded in cgi processing [06:46:23]execute_cgi json_proto POST (null) [06:46:23]execute_cgi path=json_proto method=POST [06:46:23]POST find Content-Length [06:46:23]Host: 172.17.39.67:8080 [06:46:23]Content-Length: 683 [06:46:23]Content-Type: application/json [06:46:23] [06:46:23]POST finish read [06:46:23]Found Content-Length = 683 [06:46:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:23]execute_script... [06:46:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318907", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:23]POST & json_proto [06:46:23]process_json_proto [06:46:23]json parsed OK: [06:46:23]protocol is kg_v1.0 [06:46:23]action value=close_receipt [06:46:23]process_action close_receipt [06:46:23]cmd_close_receipt [06:46:23]MH_GetDate [06:46:23]Write to MH i2c: F0 00 00 57 FB 41 [06:46:23]Write i2c OK [06:46:23]MH_I2C_Read... [06:46:23]Read from MH i2c: F0 [06:46:23]MH_I2C_Read... [06:46:23]Read from MH i2c: F0 09 00 [06:46:23]MH_I2C_Read... [06:46:23]Read from MH i2c: F0 09 00 57 FB 00 CC 22 92 66 FA E9 8E 66 07 [06:46:23]GetLastDocTimeStamp 1720853060 [06:46:23]current date 1720853196 [06:46:23]FM_GetShiftState [06:46:23]SAM_PROTO_GetShiftState [06:46:23]wFMCommunicate request_size=4 [06:46:23]MH_SAM_APDU [06:46:23]CAPDU: 80 13 01 00 [06:46:23]Write to MH i2c: E2 08 00 58 FB 80 13 01 00 00 00 00 00 D0 [06:46:23]Write i2c OK [06:46:23]MH_I2C_Read... [06:46:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:23]Read from MH i2c: E2 [06:46:23]MH_I2C_Read... [06:46:23]Read from MH i2c: E2 0E 00 [06:46:23]MH_I2C_Read... [06:46:23]Read from MH i2c: E2 0E 00 58 FB 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CA [06:46:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:46:23]wFMCommunicate OK [06:46:23]SAM_PROTO_GetShiftState done [06:46:23]FM_GetShiftState done [06:46:23]opened in 1720828979 [06:46:23]opened+sec_in_day 1720915379 [06:46:23]quantity*price = 100046 [06:46:23]sum+1 = 100048 [06:46:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 51 13.07.2024 06:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162383 ФПД: 221202937774752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064636&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162383&fm=221202937774752&tin=02508201610067®Number=0000000000090858&sum=100000 [06:46:25]StoreToDocumentArchive [06:46:25]shift 462 fd 162383 [06:46:25]save to /storage/0462/doc_00162383 [06:46:25]save last doc name /storage/0462/doc_00162383 to /storage/kkm_last_doc_name [06:46:25]save OK [06:46:25]Clear old archive folders... [06:46:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:46:25]tlvbuf is 01898F40 [06:46:25]SAM_PROTO_ClearQueue [06:46:25]wFMCommunicate request_size=4 [06:46:25]MH_SAM_APDU [06:46:25]CAPDU: 80 09 00 00 [06:46:25]Write to MH i2c: E2 08 00 65 FB 80 09 00 00 00 00 00 00 D2 [06:46:25]Write i2c OK [06:46:25]MH_I2C_Read... [06:46:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:25]Read from MH i2c: E2 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 03 00 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 03 00 65 FB 00 90 00 D4 [06:46:25]RAPDU: 90 00 [06:46:25]wFMCommunicate OK [06:46:25]SAM_PROTO_ClearQueue done [06:46:25]KKMCreateOFDPacket [06:46:25]OFDProtocolAddRootSTLVToBuf [06:46:25]FM_MakeSignedData [06:46:25]FM_MakeSignedData [06:46:25]SAM_PROTO_SignData [06:46:25]wFMCommunicate request_size=4 [06:46:25]MH_SAM_APDU [06:46:25]CAPDU: 80 0D 01 02 [06:46:25]Write to MH i2c: E2 08 00 66 FB 80 0D 01 02 00 00 00 00 DA [06:46:25]Write i2c OK [06:46:25]MH_I2C_Read... [06:46:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:25]Read from MH i2c: E2 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 03 00 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 03 00 66 FB 00 90 00 D5 [06:46:25]RAPDU: 90 00 [06:46:25]wFMCommunicate OK [06:46:25]wFMCommunicate request_size=255 [06:46:25]MH_SAM_APDU [06:46:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 00 00 00 F4 03 04 00 CC 22 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7A 02 00 35 04 06 00 C9 [06:46:25]Write to MH i2c: E2 02 01 67 FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 00 00 00 F4 03 04 00 CC 22 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7A 02 00 35 04 06 00 C9 00 00 62 [06:46:25]Write i2c OK [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 [06:46:25]MH_I2C_Read... [06:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:25]Read from MH i2c: E2 03 00 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 03 00 67 FB 00 90 00 D6 [06:46:25]RAPDU: 90 00 [06:46:25]wFMCommunicate OK [06:46:25]wFMCommunicate request_size=10 [06:46:25]MH_SAM_APDU [06:46:25]CAPDU: 80 0D 02 02 05 2E D2 87 82 A0 [06:46:25]Write to MH i2c: E2 0D 00 68 FB 80 0D 02 02 05 00 2E D2 87 82 A0 00 00 90 [06:46:25]Write i2c OK [06:46:25]MH_I2C_Read... [06:46:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:25]Read from MH i2c: E2 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 03 00 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 03 00 68 FB 00 90 00 D7 [06:46:25]RAPDU: 90 00 [06:46:25]wFMCommunicate OK [06:46:25]wFMCommunicate request_size=4 [06:46:25]MH_SAM_APDU [06:46:25]CAPDU: 80 0D 03 02 [06:46:25]Write to MH i2c: E2 08 00 69 FB 80 0D 03 02 00 00 00 00 DF [06:46:25]Write i2c OK [06:46:25]MH_I2C_Read... [06:46:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:25]Read from MH i2c: E2 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 0B 00 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 0B 00 69 FB 00 00 DF 7C FB 3D 7D 53 E5 90 00 28 [06:46:25]RAPDU: 00 DF 7C FB 3D 7D 53 E5 90 00 [06:46:25]wFMCommunicate OK [06:46:25]SAM_PROTO_SignData done [06:46:25]FM_MakeSignedData done [06:46:25]CreateOFDProtocolMessage [06:46:25]wFMCommunicate request_size=4 [06:46:25]MH_SAM_APDU [06:46:25]CAPDU: 80 11 00 00 [06:46:25]Write to MH i2c: E2 08 00 6A FB 80 11 00 00 00 00 00 00 DF [06:46:25]Write i2c OK [06:46:25]MH_I2C_Read... [06:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:25]Read from MH i2c: E2 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 17 00 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: E2 17 00 6A FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3F [06:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:46:25]wFMCommunicate OK [06:46:25]CreateOFDProtocolMessage done [06:46:25]OFDSenderStorePacket 162383 [06:46:25]StoreOFDPacket docnum=162383 [06:46:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D3 E9 07 01 D7 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 00 00 00 F4 03 04 00 CC 22 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7A 02 00 35 04 06 00 C9 2E D2 87 82 A0 00 DF 7C FB 3D 7D 53 E5 [06:46:25]CheckFolder [06:46:25]dirname=/storage/ofd_packets [06:46:25]CheckFolder done [06:46:25]ProducePacketName [06:46:25]name=ofd_packets/00162383 [06:46:25]NVStorageSaveData ofd_packets/00162383 [06:46:25]File name is /storage/ofd_packets/00162383 [06:46:25]Write 301 bytes [06:46:25]NVStorageSaveData done [06:46:25]OFDSenderStorePacket done [06:46:25]KKMCreateOFDPacket done [06:46:25]NVStorageSaveData kkm_last_timestamp [06:46:25]File name is /storage/kkm_last_timestamp [06:46:25]Write 4 bytes [06:46:25]NVStorageSaveData done [06:46:25]ExternCall_PrintAddStr [06:46:25]wPrintStart [06:46:25]Write to MH i2c: 01 00 00 6B FB 66 [06:46:25]Write i2c OK [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: 01 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: 01 07 00 [06:46:25]MH_I2C_Read... [06:46:25]Read from MH i2c: 01 07 00 6B FB 00 00 00 00 00 FF 0F 7B [06:46:25]RasterBufferAndPrint [06:46:25]line Счет N : (1)1318907 [06:46:25]line ИНН: 02508201610067 [06:46:25]line Контрольно-Кассовый Чек [06:46:25]line ПРОДАЖА [06:46:25]line ТРК (МРК, ГНК) : 43 [06:46:25]line Товар: 2710124130 [06:46:25]line Аи-92-К-5 [06:46:25]line 15.090 * 66.30 [06:46:25]line = 1000.47 [06:46:25]line НДС 12% НСП 1% [06:46:25]line > о реализуемом товаре [06:46:25]line ОКРУГЛЕНИЕ: -0.47 [06:46:25]line ИТОГО: 1000.00 [06:46:25]line Внесено: 1000.00 [06:46:25]line СДАЧА: 0.00 [06:46:25]line НСП 1% : 8.85 [06:46:25]line НДС 12% : 106.24 [06:46:25]line Наличными: 1000.00 [06:46:25]line Безнал.: 0.00 [06:46:25]line Место: АЗС № 140 "Партнер Нефть" [06:46:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:46:25]line СНО: Общий режим [06:46:25]line Чек 51 13.07.2024 06:46 [06:46:25]line Смена: 462 ФФД: 1.0 [06:46:25]line ЗНМ: 0300000129 [06:46:25]line РНМ: 0000000000090858 [06:46:25]line Версия ККМ: 001 [06:46:25]line ФМ: 0000000000874899 [06:46:25]line ФД: 162383 [06:46:25]line ФПД: 221202937774752 [06:46:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064636&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162383&fm=221202937774752&tin=02508201610067®Number=0000000000090858&sum=100000 [06:46:25]OFD Sender: Processing packet 162383 [packets to send 105, broken 104] [06:46:25]ProducePacketName [06:46:25]name=ofd_packets/00162383 [06:46:25]OFD Sender: To server: pG, [06:46:25]CommunicateWithHost lk.salyk.kg:30040 [06:46:25]ConnectInit lk.salyk.kg [06:46:25]written 0, free lines is 4095 [06:46:25]Connected sock=10 [06:46:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D3 E9 07 01 D7 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 33 00 00 00 F4 03 04 00 CC 22 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7A 02 00 35 04 06 00 C9 2E D2 87 82 A0 00 DF 7C FB 3D 7D 53 E5 [06:46:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B2 36 47 00 13 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7A 02 00 F4 03 04 00 E2 CE 91 66 B6 04 01 00 00 EC 82 53 EB D6 0D 9F 0D [06:46:26]CommunicateWithHost err = 0 [06:46:26]CheckOFDResponse [06:46:26]1017 (14) - 77093643461234 [06:46:26]1041 (16) - 0000000000874899 [06:46:26]1040 (4) - 162383 [06:46:26]1012 (4) - 13.07.2024 00:48 [06:46:26]1206 (1) - 0 [06:46:26]OFD Sender: Remove packet 162383 [06:46:26]ProducePacketName [06:46:26]name=ofd_packets/00162383 [06:46:26]NVStorageDeleteData [06:46:26]Write to MH i2c: 01 00 00 96 FB 91 [06:46:26]Write i2c OK [06:46:26]MH_I2C_Read... [06:46:26]Read from MH i2c: 01 [06:46:26]MH_I2C_Read... [06:46:26]Read from MH i2c: 01 07 00 [06:46:26]MH_I2C_Read... [06:46:26]Read from MH i2c: 01 07 00 96 FB 00 00 00 00 00 EA 0C 8E [06:46:26]RasterBufferAndPrint [06:46:26]line [06:46:26]line [06:46:26]line [06:46:26]line [06:46:26]line [06:46:26]written 0, free lines is 3315 [06:46:26]MH_Cut [06:46:26]Write to MH i2c: D1 01 00 9D FB 01 6A [06:46:26]Write i2c OK [06:46:26]MH_I2C_Read... [06:46:26]Read from MH i2c: D1 [06:46:26]MH_I2C_Read... [06:46:26]Read from MH i2c: D1 01 00 [06:46:26]MH_I2C_Read... [06:46:26]Read from MH i2c: D1 01 00 9D FB 00 69 [06:46:26]Write to MH i2c: 01 00 00 9E FB 99 [06:46:26]Write i2c OK [06:46:26]MH_I2C_Read... [06:46:26]OFD Sender: No OFD packet to send [06:46:27]*** Cut start [06:46:27]*** Purtial cut [06:46:27]*** Stage 1: CUTSNS_PIN = 1 [06:46:27]Read from MH i2c: 01 [06:46:27]MH_I2C_Read... [06:46:27]*** Stop cut motor [06:46:27]*** Cut end [06:46:27]Read from MH i2c: 01 07 00 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: 01 07 00 9E FB 00 00 00 00 00 FF 0F AE [06:46:27]process_action close_receipt done [06:46:27]requested_data is exist [06:46:27]produce_requested_data [06:46:27]requested_item fm.sn is exist - process it [06:46:27]wFMCommunicate request_size=4 [06:46:27]MH_SAM_APDU [06:46:27]CAPDU: 80 11 00 00 [06:46:27]Write to MH i2c: E2 08 00 9F FB 80 11 00 00 00 00 00 00 14 [06:46:27]Write i2c OK [06:46:27]MH_I2C_Read... [06:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:27]Read from MH i2c: E2 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: E2 17 00 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: E2 17 00 9F FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 74 [06:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:46:27]wFMCommunicate OK [06:46:27]requested_item fd.num is exist - process it [06:46:27]SAM_PROTO_GetFieldsCounters [06:46:27]wFMCommunicate request_size=4 [06:46:27]MH_SAM_APDU [06:46:27]CAPDU: 80 13 00 00 [06:46:27]Write to MH i2c: E2 08 00 A0 FB 80 13 00 00 00 00 00 00 17 [06:46:27]Write i2c OK [06:46:27]MH_I2C_Read... [06:46:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:46:27]Read from MH i2c: E2 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: E2 62 00 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: E2 62 00 A0 FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [06:46:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:46:27]wFMCommunicate OK [06:46:27]SAM_PROTO_GetFieldsCounters done [06:46:27]requested_item shift.num is exist - process it [06:46:27]requested_item shift.opened is exist - process it [06:46:27]req_shift_opened [06:46:27]FM_GetShiftState [06:46:27]SAM_PROTO_GetShiftState [06:46:27]wFMCommunicate request_size=4 [06:46:27]MH_SAM_APDU [06:46:27]CAPDU: 80 13 01 00 [06:46:27]Write to MH i2c: E2 08 00 A1 FB 80 13 01 00 00 00 00 00 19 [06:46:27]Write i2c OK [06:46:27]MH_I2C_Read... [06:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:27]Read from MH i2c: E2 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: E2 0E 00 [06:46:27]MH_I2C_Read... [06:46:27]Read from MH i2c: E2 0E 00 A1 FB 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 13 [06:46:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:46:27]wFMCommunicate OK [06:46:27]SAM_PROTO_GetShiftState done [06:46:27]FM_GetShiftState done [06:46:27]req_shift_opened done [06:46:27]requested_item shift.open_date is exist - process it [06:46:27]req_shift_open_date [06:46:27]req_shift_open_date done [06:46:27]produce_requested_data done [06:46:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162383,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:46:27]process_action_free close_receipt [06:46:27]json_value_free [06:46:27]json_value_free done [06:46:27]process_json_proto returns [06:46:27]Send response to host [06:46:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162383,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:46:27]free response buf [06:46:27]execute_script done [06:46:27]execute_script returns [06:46:27]free content buf [06:46:27]Sock 9.Close socket [06:46:27]Sock 9.Thread stoped [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:23]accept exits with 8 [06:49:23]New connection [06:49:23]New thread 3066862948 created [06:49:23]Thread 3067006308 joined [06:49:23]Waiting for new connection... [06:49:23] Sock 8.Parse request [06:49:23]Sock 8.Check first char [06:49:23]Sock 8.First char is OK [06:49:23]request: POST /json_proto HTTP/1.0 [06:49:23]Method: POST [06:49:23]URL: /json_proto [06:49:23]Method is POST - this is cgi request [06:49:23]url: /json_proto [06:49:23]query_string will be loaded in cgi processing [06:49:23]execute_cgi json_proto POST (null) [06:49:23]execute_cgi path=json_proto method=POST [06:49:23]POST find Content-Length [06:49:23]Host: 172.17.39.67:8080 [06:49:23]Content-Length: 672 [06:49:23]Content-Type: application/json [06:49:23] [06:49:23]POST finish read [06:49:23]Found Content-Length = 672 [06:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "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" ] } } [06:49:23]execute_script... [06:49: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)1318908", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "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" ] } } [06:49:23]POST & json_proto [06:49:23]process_json_proto [06:49:23]json parsed OK: [06:49:23]protocol is kg_v1.0 [06:49:23]action value=close_receipt [06:49:23]process_action close_receipt [06:49:23]cmd_close_receipt [06:49:23]MH_GetDate [06:49:23]Write to MH i2c: F0 00 00 A2 FB 8C [06:49:23]Write i2c OK [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: F0 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: F0 09 00 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: F0 09 00 A2 FB 00 80 23 92 66 FA E9 8E 66 07 [06:49:23]GetLastDocTimeStamp 1720853196 [06:49:23]current date 1720853376 [06:49:23]FM_GetShiftState [06:49:23]SAM_PROTO_GetShiftState [06:49:23]wFMCommunicate request_size=4 [06:49:23]MH_SAM_APDU [06:49:23]CAPDU: 80 13 01 00 [06:49:23]Write to MH i2c: E2 08 00 A3 FB 80 13 01 00 00 00 00 00 1B [06:49:23]Write i2c OK [06:49:23]MH_I2C_Read... [06:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:23]Read from MH i2c: E2 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: E2 0E 00 [06:49:23]MH_I2C_Read... [06:49:23]Read from MH i2c: E2 0E 00 A3 FB 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 15 [06:49:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:49:23]wFMCommunicate OK [06:49:23]SAM_PROTO_GetShiftState done [06:49:23]FM_GetShiftState done [06:49:23]opened in 1720828979 [06:49:23]opened+sec_in_day 1720915379 [06:49:23]quantity*price = 70059 [06:49:23]sum+1 = 70060 [06:49:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 52 13.07.2024 06:49 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162384 ФПД: 160849715972215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064936&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162384&fm=160849715972215&tin=02508201610067®Number=0000000000090858&sum=70000 [06:49:24]StoreToDocumentArchive [06:49:24]shift 462 fd 162384 [06:49:24]save to /storage/0462/doc_00162384 [06:49:24]save last doc name /storage/0462/doc_00162384 to /storage/kkm_last_doc_name [06:49:24]save OK [06:49:24]Clear old archive folders... [06:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:49:24]tlvbuf is 017D2440 [06:49:24]SAM_PROTO_ClearQueue [06:49:24]wFMCommunicate request_size=4 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 09 00 00 [06:49:24]Write to MH i2c: E2 08 00 B0 FB 80 09 00 00 00 00 00 00 1D [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 B0 FB 00 90 00 1F [06:49:24]RAPDU: 90 00 [06:49:24]wFMCommunicate OK [06:49:24]SAM_PROTO_ClearQueue done [06:49:24]KKMCreateOFDPacket [06:49:24]OFDProtocolAddRootSTLVToBuf [06:49:24]FM_MakeSignedData [06:49:24]FM_MakeSignedData [06:49:24]SAM_PROTO_SignData [06:49:24]wFMCommunicate request_size=4 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 0D 01 02 [06:49:24]Write to MH i2c: E2 08 00 B1 FB 80 0D 01 02 00 00 00 00 25 [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 B1 FB 00 90 00 20 [06:49:24]RAPDU: 90 00 [06:49:24]wFMCommunicate OK [06:49:24]wFMCommunicate request_size=255 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 34 00 00 00 F4 03 04 00 80 23 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7A 02 00 35 04 06 00 [06:49:24]Write to MH i2c: E2 02 01 B2 FB 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 34 00 00 00 F4 03 04 00 80 23 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7A 02 00 35 04 06 00 00 00 67 [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:24]Read from MH i2c: E2 03 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 B2 FB 00 90 00 21 [06:49:24]RAPDU: 90 00 [06:49:24]wFMCommunicate OK [06:49:24]wFMCommunicate request_size=11 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 0D 02 02 06 92 4A BE 2E C8 77 [06:49:24]Write to MH i2c: E2 0E 00 B3 FB 80 0D 02 02 06 00 92 4A BE 2E C8 77 00 00 3B [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 03 00 B3 FB 00 90 00 22 [06:49:24]RAPDU: 90 00 [06:49:24]wFMCommunicate OK [06:49:24]wFMCommunicate request_size=4 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 0D 03 02 [06:49:24]Write to MH i2c: E2 08 00 B4 FB 80 0D 03 02 00 00 00 00 2A [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 0B 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 0B 00 B4 FB 00 54 C4 4C 10 30 DE 16 63 90 00 26 [06:49:24]RAPDU: 54 C4 4C 10 30 DE 16 63 90 00 [06:49:24]wFMCommunicate OK [06:49:24]SAM_PROTO_SignData done [06:49:24]FM_MakeSignedData done [06:49:24]CreateOFDProtocolMessage [06:49:24]wFMCommunicate request_size=4 [06:49:24]MH_SAM_APDU [06:49:24]CAPDU: 80 11 00 00 [06:49:24]Write to MH i2c: E2 08 00 B5 FB 80 11 00 00 00 00 00 00 2A [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:24]Read from MH i2c: E2 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 17 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: E2 17 00 B5 FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8A [06:49:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:49:24]wFMCommunicate OK [06:49:24]CreateOFDProtocolMessage done [06:49:24]OFDSenderStorePacket 162384 [06:49:24]StoreOFDPacket docnum=162384 [06:49:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B6 9F 08 01 BD 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 34 00 00 00 F4 03 04 00 80 23 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7A 02 00 35 04 06 00 92 4A BE 2E C8 77 54 C4 4C 10 30 DE 16 63 [06:49:24]CheckFolder [06:49:24]dirname=/storage/ofd_packets [06:49:24]CheckFolder done [06:49:24]ProducePacketName [06:49:24]name=ofd_packets/00162384 [06:49:24]NVStorageSaveData ofd_packets/00162384 [06:49:24]File name is /storage/ofd_packets/00162384 [06:49:24]Write 302 bytes [06:49:24]NVStorageSaveData done [06:49:24]OFDSenderStorePacket done [06:49:24]KKMCreateOFDPacket done [06:49:24]NVStorageSaveData kkm_last_timestamp [06:49:24]File name is /storage/kkm_last_timestamp [06:49:24]Write 4 bytes [06:49:24]NVStorageSaveData done [06:49:24]ExternCall_PrintAddStr [06:49:24]wPrintStart [06:49:24]Write to MH i2c: 01 00 00 B6 FB B1 [06:49:24]Write i2c OK [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: 01 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: 01 07 00 [06:49:24]MH_I2C_Read... [06:49:24]Read from MH i2c: 01 07 00 B6 FB 00 00 00 00 00 FF 0F C6 [06:49:24]RasterBufferAndPrint [06:49:24]line Счет N : (1)1318908 [06:49:24]line ИНН: 02508201610067 [06:49:24]line Контрольно-Кассовый Чек [06:49:24]line ПРОДАЖА [06:49:24]line ТРК (МРК, ГНК) : 52 [06:49:24]line Товар: 2710124130 [06:49:24]line Super-92-К-5 [06:49:24]line 10.410 * 67.30 [06:49:24]line = 700.59 [06:49:24]line НДС 12% НСП 1% [06:49:24]line > о реализуемом товаре [06:49:24]line ОКРУГЛЕНИЕ: -0.59 [06:49:24]line ИТОГО: 700.00 [06:49:24]line Внесено: 700.00 [06:49:24]line СДАЧА: 0.00 [06:49:24]line НСП 1% : 6.20 [06:49:24]line НДС 12% : 74.40 [06:49:24]line Наличными: 700.00 [06:49:24]line Безнал.: 0.00 [06:49:24]line Место: АЗС № 140 "Партнер Нефть" [06:49:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:49:24]line СНО: Общий режим [06:49:24]line Чек 52 13.07.2024 06:49 [06:49:24]line Смена: 462 ФФД: 1.0 [06:49:24]line ЗНМ: 0300000129 [06:49:24]line РНМ: 0000000000090858 [06:49:24]line Версия ККМ: 001 [06:49:24]line ФМ: 0000000000874899 [06:49:24]line ФД: 162384 [06:49:24]line ФПД: 160849715972215 [06:49:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T064936&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162384&fm=160849715972215&tin=02508201610067®Number=0000000000090858&sum=70000 [06:49:25]OFD Sender: Processing packet 162384 [packets to send 105, broken 104] [06:49:25]ProducePacketName [06:49:25]name=ofd_packets/00162384 [06:49:25]OFD Sender: To server: pG, [06:49:25]CommunicateWithHost lk.salyk.kg:30040 [06:49:25]ConnectInit lk.salyk.kg [06:49:25]written 0, free lines is 4095 [06:49:25]Connected sock=10 [06:49:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B6 9F 08 01 BD 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 34 00 00 00 F4 03 04 00 80 23 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7A 02 00 35 04 06 00 92 4A BE 2E C8 77 54 C4 4C 10 30 DE 16 63 [06:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 01 A8 47 00 5B 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7A 02 00 F4 03 04 00 95 CF 91 66 B6 04 01 00 00 64 17 F4 E7 44 B9 FF 1C [06:49:25]CommunicateWithHost err = 0 [06:49:25]CheckOFDResponse [06:49:25]1017 (14) - 77093643461234 [06:49:25]1041 (16) - 0000000000874899 [06:49:25]1040 (4) - 162384 [06:49:25]1012 (4) - 13.07.2024 00:51 [06:49:25]1206 (1) - 0 [06:49:25]OFD Sender: Remove packet 162384 [06:49:25]ProducePacketName [06:49:25]name=ofd_packets/00162384 [06:49:25]NVStorageDeleteData [06:49:25]Write to MH i2c: 01 00 00 E1 FB DC [06:49:25]Write i2c OK [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: 01 [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: 01 07 00 [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: 01 07 00 E1 FB 00 00 00 00 00 EB 0C DA [06:49:25]RasterBufferAndPrint [06:49:25]line [06:49:25]line [06:49:25]line [06:49:25]line [06:49:25]line [06:49:25]written 0, free lines is 3316 [06:49:25]MH_Cut [06:49:25]Write to MH i2c: D1 01 00 E8 FB 01 B5 [06:49:25]Write i2c OK [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: D1 [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: D1 01 00 [06:49:25]MH_I2C_Read... [06:49:25]Read from MH i2c: D1 01 00 E8 FB 00 B4 [06:49:25]Write to MH i2c: 01 00 00 E9 FB E4 [06:49:25]Write i2c OK [06:49:25]MH_I2C_Read... [06:49:26]OFD Sender: No OFD packet to send [06:49:26]*** Cut start [06:49:26]*** Purtial cut [06:49:26]*** CUTSNS_PIN = 0 [06:49:26]*** Stage 1: CUTSNS_PIN = 1 [06:49:28]Read from MH i2c: 01 [06:49:28]MH_I2C_Read... [06:49:28]*** Stop cut motor [06:49:28]*** Cut end [06:49:28]Read from MH i2c: 01 07 00 [06:49:28]MH_I2C_Read... [06:49:28]Read from MH i2c: 01 07 00 E9 FB 00 00 00 00 00 FF 0F F9 [06:49:28]process_action close_receipt done [06:49:28]requested_data is exist [06:49:28]produce_requested_data [06:49:28]requested_item fm.sn is exist - process it [06:49:28]wFMCommunicate request_size=4 [06:49:28]MH_SAM_APDU [06:49:28]CAPDU: 80 11 00 00 [06:49:28]Write to MH i2c: E2 08 00 EA FB 80 11 00 00 00 00 00 00 5F [06:49:28]Write i2c OK [06:49:28]MH_I2C_Read... [06:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:28]Read from MH i2c: E2 [06:49:28]MH_I2C_Read... [06:49:28]Read from MH i2c: E2 17 00 [06:49:28]MH_I2C_Read... [06:49:28]Read from MH i2c: E2 17 00 EA FB 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BF [06:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:49:28]wFMCommunicate OK [06:49:28]requested_item fd.num is exist - process it [06:49:28]SAM_PROTO_GetFieldsCounters [06:49:28]wFMCommunicate request_size=4 [06:49:28]MH_SAM_APDU [06:49:28]CAPDU: 80 13 00 00 [06:49:28]Write to MH i2c: E2 08 00 EB FB 80 13 00 00 00 00 00 00 62 [06:49:28]Write i2c OK [06:49:28]MH_I2C_Read... [06:49:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:28]Read from MH i2c: E2 [06:49:28]MH_I2C_Read... [06:49:28]Read from MH i2c: E2 62 00 [06:49:28]MH_I2C_Read... [06:49:28]Read from MH i2c: E2 62 00 EB FB 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 50 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [06:49:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 50 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:49:28]wFMCommunicate OK [06:49:28]SAM_PROTO_GetFieldsCounters done [06:49:28]requested_item shift.num is exist - process it [06:49:28]requested_item shift.opened is exist - process it [06:49:28]req_shift_opened [06:49:28]FM_GetShiftState [06:49:28]SAM_PROTO_GetShiftState [06:49:28]wFMCommunicate request_size=4 [06:49:28]MH_SAM_APDU [06:49:28]CAPDU: 80 13 01 00 [06:49:28]Write to MH i2c: E2 08 00 EC FB 80 13 01 00 00 00 00 00 64 [06:49:28]Write i2c OK [06:49:28]MH_I2C_Read... [06:49:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:28]Read from MH i2c: E2 [06:49:28]MH_I2C_Read... [06:49:28]Read from MH i2c: E2 0E 00 [06:49:28]MH_I2C_Read... [06:49:28]Read from MH i2c: E2 0E 00 EC FB 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5E [06:49:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:49:28]wFMCommunicate OK [06:49:28]SAM_PROTO_GetShiftState done [06:49:28]FM_GetShiftState done [06:49:28]req_shift_opened done [06:49:28]requested_item shift.open_date is exist - process it [06:49:28]req_shift_open_date [06:49:28]req_shift_open_date done [06:49:28]produce_requested_data done [06:49:28]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162384,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:49:28]process_action_free close_receipt [06:49:28]json_value_free [06:49:28]json_value_free done [06:49:28]process_json_proto returns [06:49:28]Send response to host [06:49:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162384,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:49:28]free response buf [06:49:28]execute_script done [06:49:28]execute_script returns [06:49:28]free content buf [06:49:28]Sock 8.Close socket [06:49:28]Sock 8.Thread stoped [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:03]accept exits with 9 [06:54:03]New connection [06:54:03]New thread 3067006308 created [06:54:03]Thread 3066862948 joined [06:54:03]Waiting for new connection... [06:54:03] Sock 9.Parse request [06:54:03]Sock 9.Check first char [06:54:03]Sock 9.First char is OK [06:54:03]request: POST /json_proto HTTP/1.0 [06:54:03]Method: POST [06:54:03]URL: /json_proto [06:54:03]Method is POST - this is cgi request [06:54:03]url: /json_proto [06:54:03]query_string will be loaded in cgi processing [06:54:03]execute_cgi json_proto POST (null) [06:54:03]execute_cgi path=json_proto method=POST [06:54:03]POST find Content-Length [06:54:03]Host: 172.17.39.67:8080 [06:54:03]Content-Length: 683 [06:54:03]Content-Type: application/json [06:54:03] [06:54:03]POST finish read [06:54:03]Found Content-Length = 683 [06:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:03]execute_script... [06:54: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)1318909", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:54:03]POST & json_proto [06:54:03]process_json_proto [06:54:03]json parsed OK: [06:54:03]protocol is kg_v1.0 [06:54:03]action value=close_receipt [06:54:03]process_action close_receipt [06:54:03]cmd_close_receipt [06:54:03]MH_GetDate [06:54:03]Write to MH i2c: F0 00 00 ED FB D7 [06:54:03]Write i2c OK [06:54:03]MH_I2C_Read... [06:54:03]Read from MH i2c: F0 [06:54:03]MH_I2C_Read... [06:54:03]Read from MH i2c: F0 09 00 [06:54:03]MH_I2C_Read... [06:54:03]Read from MH i2c: F0 09 00 ED FB 00 98 24 92 66 FA E9 8E 66 6B [06:54:03]GetLastDocTimeStamp 1720853376 [06:54:03]current date 1720853656 [06:54:03]FM_GetShiftState [06:54:03]SAM_PROTO_GetShiftState [06:54:03]wFMCommunicate request_size=4 [06:54:03]MH_SAM_APDU [06:54:03]CAPDU: 80 13 01 00 [06:54:03]Write to MH i2c: E2 08 00 EE FB 80 13 01 00 00 00 00 00 66 [06:54:03]Write i2c OK [06:54:03]MH_I2C_Read... [06:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:03]Read from MH i2c: E2 [06:54:03]MH_I2C_Read... [06:54:03]Read from MH i2c: E2 0E 00 [06:54:03]MH_I2C_Read... [06:54:03]Read from MH i2c: E2 0E 00 EE FB 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 60 [06:54:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:54:03]wFMCommunicate OK [06:54:03]SAM_PROTO_GetShiftState done [06:54:03]FM_GetShiftState done [06:54:03]opened in 1720828979 [06:54:03]opened+sec_in_day 1720915379 [06:54:03]quantity*price = 100046 [06:54:03]sum+1 = 100048 [06:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 53 13.07.2024 06:54 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162385 ФПД: 63477812737271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T065416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162385&fm=63477812737271&tin=02508201610067®Number=0000000000090858&sum=100000 [06:54:04]StoreToDocumentArchive [06:54:04]shift 462 fd 162385 [06:54:04]save to /storage/0462/doc_00162385 [06:54:04]save last doc name /storage/0462/doc_00162385 to /storage/kkm_last_doc_name [06:54:04]save OK [06:54:04]Clear old archive folders... [06:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:54:04]tlvbuf is 019C0690 [06:54:04]SAM_PROTO_ClearQueue [06:54:04]wFMCommunicate request_size=4 [06:54:04]MH_SAM_APDU [06:54:04]CAPDU: 80 09 00 00 [06:54:04]Write to MH i2c: E2 08 00 FB FB 80 09 00 00 00 00 00 00 68 [06:54:04]Write i2c OK [06:54:04]MH_I2C_Read... [06:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:54:04]Read from MH i2c: E2 [06:54:04]MH_I2C_Read... [06:54:04]Read from MH i2c: E2 03 00 [06:54:04]MH_I2C_Read... [06:54:04]Read from MH i2c: E2 03 00 FB FB 00 90 00 6A [06:54:04]RAPDU: 90 00 [06:54:04]wFMCommunicate OK [06:54:04]SAM_PROTO_ClearQueue done [06:54:04]KKMCreateOFDPacket [06:54:04]OFDProtocolAddRootSTLVToBuf [06:54:04]FM_MakeSignedData [06:54:04]FM_MakeSignedData [06:54:04]SAM_PROTO_SignData [06:54:04]wFMCommunicate request_size=4 [06:54:04]MH_SAM_APDU [06:54:04]CAPDU: 80 0D 01 02 [06:54:04]Write to MH i2c: E2 08 00 FC FB 80 0D 01 02 00 00 00 00 70 [06:54:04]Write i2c OK [06:54:04]MH_I2C_Read... [06:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:54:04]Read from MH i2c: E2 [06:54:04]MH_I2C_Read... [06:54:04]Read from MH i2c: E2 03 00 [06:54:04]MH_I2C_Read... [06:54:04]Read from MH i2c: E2 03 00 FC FB 00 90 00 6B [06:54:04]RAPDU: 90 00 [06:54:04]wFMCommunicate OK [06:54:04]wFMCommunicate request_size=255 [06:54:04]MH_SAM_APDU [06:54:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 35 00 00 00 F4 03 04 00 98 24 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7A 02 00 35 04 06 00 39 [06:54:04]Write to MH i2c: E2 02 01 FD FB 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 35 00 00 00 F4 03 04 00 98 24 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7A 02 00 35 04 06 00 39 00 00 3A [06:54:04]Write i2c OK [06:54:04]MH_I2C_Read... [06:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:54:05]Read from MH i2c: E2 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: E2 03 00 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: E2 03 00 FD FB 00 90 00 6C [06:54:05]RAPDU: 90 00 [06:54:05]wFMCommunicate OK [06:54:05]wFMCommunicate request_size=10 [06:54:05]MH_SAM_APDU [06:54:05]CAPDU: 80 0D 02 02 05 BB 94 7A B4 F7 [06:54:05]Write to MH i2c: E2 0D 00 FE FB 80 0D 02 02 05 00 BB 94 7A B4 F7 00 00 F1 [06:54:05]Write i2c OK [06:54:05]MH_I2C_Read... [06:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:54:05]Read from MH i2c: E2 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: E2 03 00 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: E2 03 00 FE FB 00 90 00 6D [06:54:05]RAPDU: 90 00 [06:54:05]wFMCommunicate OK [06:54:05]wFMCommunicate request_size=4 [06:54:05]MH_SAM_APDU [06:54:05]CAPDU: 80 0D 03 02 [06:54:05]Write to MH i2c: E2 08 00 FF FB 80 0D 03 02 00 00 00 00 75 [06:54:05]Write i2c OK [06:54:05]MH_I2C_Read... [06:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:54:05]Read from MH i2c: E2 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: E2 0B 00 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: E2 0B 00 FF FB 00 4D 06 E5 79 6F 13 31 8F 90 00 69 [06:54:05]RAPDU: 4D 06 E5 79 6F 13 31 8F 90 00 [06:54:05]wFMCommunicate OK [06:54:05]SAM_PROTO_SignData done [06:54:05]FM_MakeSignedData done [06:54:05]CreateOFDProtocolMessage [06:54:05]wFMCommunicate request_size=4 [06:54:05]MH_SAM_APDU [06:54:05]CAPDU: 80 11 00 00 [06:54:05]Write to MH i2c: E2 08 00 00 FC 80 11 00 00 00 00 00 00 76 [06:54:05]Write i2c OK [06:54:05]MH_I2C_Read... [06:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:54:05]Read from MH i2c: E2 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: E2 17 00 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: E2 17 00 00 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D6 [06:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:54:05]wFMCommunicate OK [06:54:05]CreateOFDProtocolMessage done [06:54:05]OFDSenderStorePacket 162385 [06:54:05]StoreOFDPacket docnum=162385 [06:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1F 08 07 01 E2 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 35 00 00 00 F4 03 04 00 98 24 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7A 02 00 35 04 06 00 39 BB 94 7A B4 F7 4D 06 E5 79 6F 13 31 8F [06:54:05]CheckFolder [06:54:05]dirname=/storage/ofd_packets [06:54:05]CheckFolder done [06:54:05]ProducePacketName [06:54:05]name=ofd_packets/00162385 [06:54:05]NVStorageSaveData ofd_packets/00162385 [06:54:05]File name is /storage/ofd_packets/00162385 [06:54:05]Write 301 bytes [06:54:05]NVStorageSaveData done [06:54:05]OFDSenderStorePacket done [06:54:05]KKMCreateOFDPacket done [06:54:05]NVStorageSaveData kkm_last_timestamp [06:54:05]File name is /storage/kkm_last_timestamp [06:54:05]Write 4 bytes [06:54:05]NVStorageSaveData done [06:54:05]ExternCall_PrintAddStr [06:54:05]wPrintStart [06:54:05]Write to MH i2c: 01 00 00 01 FC FD [06:54:05]Write i2c OK [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: 01 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: 01 07 00 [06:54:05]MH_I2C_Read... [06:54:05]Read from MH i2c: 01 07 00 01 FC 00 00 00 00 00 FF 0F 12 [06:54:05]RasterBufferAndPrint [06:54:05]line Счет N : (1)1318909 [06:54:05]line ИНН: 02508201610067 [06:54:05]line Контрольно-Кассовый Чек [06:54:05]line ПРОДАЖА [06:54:05]line ТРК (МРК, ГНК) : 43 [06:54:05]line Товар: 2710124130 [06:54:05]line Аи-92-К-5 [06:54:05]line 15.090 * 66.30 [06:54:05]line = 1000.47 [06:54:05]line НДС 12% НСП 1% [06:54:05]line > о реализуемом товаре [06:54:05]line ОКРУГЛЕНИЕ: -0.47 [06:54:05]line ИТОГО: 1000.00 [06:54:05]line Внесено: 1000.00 [06:54:05]line СДАЧА: 0.00 [06:54:05]line НСП 1% : 8.85 [06:54:05]line НДС 12% : 106.24 [06:54:05]line Наличными: 1000.00 [06:54:05]line Безнал.: 0.00 [06:54:05]line Место: АЗС № 140 "Партнер Нефть" [06:54:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:54:05]line СНО: Общий режим [06:54:05]line Чек 53 13.07.2024 06:54 [06:54:05]line Смена: 462 ФФД: 1.0 [06:54:05]line ЗНМ: 0300000129 [06:54:05]line РНМ: 0000000000090858 [06:54:05]line Версия ККМ: 001 [06:54:05]line ФМ: 0000000000874899 [06:54:05]line ФД: 162385 [06:54:05]line ФПД: 63477812737271 [06:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T065416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162385&fm=63477812737271&tin=02508201610067®Number=0000000000090858&sum=100000 [06:54:05]OFD Sender: Processing packet 162385 [packets to send 105, broken 104] [06:54:05]ProducePacketName [06:54:05]name=ofd_packets/00162385 [06:54:05]OFD Sender: To server: pG, [06:54:05]CommunicateWithHost lk.salyk.kg:30040 [06:54:05]ConnectInit lk.salyk.kg [06:54:05]written 0, free lines is 4095 [06:54:05]Connected sock=10 [06:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1F 08 07 01 E2 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 35 00 00 00 F4 03 04 00 98 24 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7A 02 00 35 04 06 00 39 BB 94 7A B4 F7 4D 06 E5 79 6F 13 31 8F [06:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7C A7 47 00 4A 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7A 02 00 F4 03 04 00 AD D0 91 66 B6 04 01 00 00 34 F6 BF A0 11 D6 77 24 [06:54:05]CommunicateWithHost err = 0 [06:54:05]CheckOFDResponse [06:54:05]1017 (14) - 77093643461234 [06:54:05]1041 (16) - 0000000000874899 [06:54:05]1040 (4) - 162385 [06:54:05]1012 (4) - 13.07.2024 00:56 [06:54:05]1206 (1) - 0 [06:54:05]OFD Sender: Remove packet 162385 [06:54:05]ProducePacketName [06:54:05]name=ofd_packets/00162385 [06:54:05]NVStorageDeleteData [06:54:06]Write to MH i2c: 01 00 00 2C FC 28 [06:54:06]Write i2c OK [06:54:06]MH_I2C_Read... [06:54:06]Read from MH i2c: 01 [06:54:06]MH_I2C_Read... [06:54:06]Read from MH i2c: 01 07 00 [06:54:06]MH_I2C_Read... [06:54:06]Read from MH i2c: 01 07 00 2C FC 00 00 00 00 00 EE 0C 29 [06:54:06]RasterBufferAndPrint [06:54:06]line [06:54:06]line [06:54:06]line [06:54:06]line [06:54:06]line [06:54:06]written 0, free lines is 3319 [06:54:06]MH_Cut [06:54:06]Write to MH i2c: D1 01 00 33 FC 01 01 [06:54:06]Write i2c OK [06:54:06]MH_I2C_Read... [06:54:06]Read from MH i2c: D1 [06:54:06]MH_I2C_Read... [06:54:06]Read from MH i2c: D1 01 00 [06:54:06]MH_I2C_Read... [06:54:06]Read from MH i2c: D1 01 00 33 FC 00 00 [06:54:06]Write to MH i2c: 01 00 00 34 FC 30 [06:54:06]Write i2c OK [06:54:06]MH_I2C_Read... [06:54:06]OFD Sender: No OFD packet to send [06:54:06]*** Cut start [06:54:06]*** Purtial cut [06:54:06]*** Stage 1: CUTSNS_PIN = 1 [06:54:07]Read from MH i2c: 01 [06:54:07]MH_I2C_Read... [06:54:07]*** Stop cut motor [06:54:07]*** Cut end [06:54:07]Read from MH i2c: 01 07 00 [06:54:07]MH_I2C_Read... [06:54:07]Read from MH i2c: 01 07 00 34 FC 00 00 00 00 00 FF 0F 45 [06:54:07]process_action close_receipt done [06:54:07]requested_data is exist [06:54:07]produce_requested_data [06:54:07]requested_item fm.sn is exist - process it [06:54:07]wFMCommunicate request_size=4 [06:54:07]MH_SAM_APDU [06:54:07]CAPDU: 80 11 00 00 [06:54:07]Write to MH i2c: E2 08 00 35 FC 80 11 00 00 00 00 00 00 AB [06:54:07]Write i2c OK [06:54:07]MH_I2C_Read... [06:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:54:07]Read from MH i2c: E2 [06:54:07]MH_I2C_Read... [06:54:07]Read from MH i2c: E2 17 00 [06:54:07]MH_I2C_Read... [06:54:07]Read from MH i2c: E2 17 00 35 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [06:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:54:07]wFMCommunicate OK [06:54:07]requested_item fd.num is exist - process it [06:54:07]SAM_PROTO_GetFieldsCounters [06:54:07]wFMCommunicate request_size=4 [06:54:07]MH_SAM_APDU [06:54:07]CAPDU: 80 13 00 00 [06:54:07]Write to MH i2c: E2 08 00 36 FC 80 13 00 00 00 00 00 00 AE [06:54:07]Write i2c OK [06:54:07]MH_I2C_Read... [06:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:54:07]Read from MH i2c: E2 [06:54:07]MH_I2C_Read... [06:54:07]Read from MH i2c: E2 62 00 [06:54:07]MH_I2C_Read... [06:54:07]Read from MH i2c: E2 62 00 36 FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 51 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [06:54:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 51 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:54:07]wFMCommunicate OK [06:54:07]SAM_PROTO_GetFieldsCounters done [06:54:07]requested_item shift.num is exist - process it [06:54:07]requested_item shift.opened is exist - process it [06:54:07]req_shift_opened [06:54:07]FM_GetShiftState [06:54:07]SAM_PROTO_GetShiftState [06:54:07]wFMCommunicate request_size=4 [06:54:07]MH_SAM_APDU [06:54:07]CAPDU: 80 13 01 00 [06:54:07]Write to MH i2c: E2 08 00 37 FC 80 13 01 00 00 00 00 00 B0 [06:54:07]Write i2c OK [06:54:07]MH_I2C_Read... [06:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:54:07]Read from MH i2c: E2 [06:54:07]MH_I2C_Read... [06:54:07]Read from MH i2c: E2 0E 00 [06:54:07]MH_I2C_Read... [06:54:07]Read from MH i2c: E2 0E 00 37 FC 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AA [06:54:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:54:07]wFMCommunicate OK [06:54:07]SAM_PROTO_GetShiftState done [06:54:07]FM_GetShiftState done [06:54:07]req_shift_opened done [06:54:07]requested_item shift.open_date is exist - process it [06:54:07]req_shift_open_date [06:54:07]req_shift_open_date done [06:54:07]produce_requested_data done [06:54:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162385,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:54:07]process_action_free close_receipt [06:54:07]json_value_free [06:54:07]json_value_free done [06:54:07]process_json_proto returns [06:54:07]Send response to host [06:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162385,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:54:07]free response buf [06:54:07]execute_script done [06:54:07]execute_script returns [06:54:07]free content buf [06:54:07]Sock 9.Close socket [06:54:07]Sock 9.Thread stoped [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:03]accept exits with 8 [06:58:03]New connection [06:58:03]New thread 3066862948 created [06:58:03]Thread 3067006308 joined [06:58:03]Waiting for new connection... [06:58:03] Sock 8.Parse request [06:58:03]Sock 8.Check first char [06:58:03]Sock 8.First char is OK [06:58:03]request: POST /json_proto HTTP/1.0 [06:58:03]Method: POST [06:58:03]URL: /json_proto [06:58:03]Method is POST - this is cgi request [06:58:03]url: /json_proto [06:58:03]query_string will be loaded in cgi processing [06:58:03]execute_cgi json_proto POST (null) [06:58:03]execute_cgi path=json_proto method=POST [06:58:03]POST find Content-Length [06:58:03]Host: 172.17.39.67:8080 [06:58:03]Content-Length: 684 [06:58:03]Content-Type: application/json [06:58:03] [06:58:03]POST finish read [06:58:03]Found Content-Length = 684 [06:58:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [06:58:03]execute_script... [06:58: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)1318910", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [06:58:03]POST & json_proto [06:58:03]process_json_proto [06:58:03]json parsed OK: [06:58:03]protocol is kg_v1.0 [06:58:03]action value=close_receipt [06:58:03]process_action close_receipt [06:58:03]cmd_close_receipt [06:58:03]MH_GetDate [06:58:03]Write to MH i2c: F0 00 00 38 FC 23 [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 09 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: F0 09 00 38 FC 00 88 25 92 66 FA E9 8E 66 A8 [06:58:03]GetLastDocTimeStamp 1720853656 [06:58:03]current date 1720853896 [06:58:03]FM_GetShiftState [06:58:03]SAM_PROTO_GetShiftState [06:58:03]wFMCommunicate request_size=4 [06:58:03]MH_SAM_APDU [06:58:03]CAPDU: 80 13 01 00 [06:58:03]Write to MH i2c: E2 08 00 39 FC 80 13 01 00 00 00 00 00 B2 [06:58:03]Write i2c OK [06:58:03]MH_I2C_Read... [06:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:03]Read from MH i2c: E2 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: E2 0E 00 [06:58:03]MH_I2C_Read... [06:58:03]Read from MH i2c: E2 0E 00 39 FC 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AC [06:58:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:58:03]wFMCommunicate OK [06:58:03]SAM_PROTO_GetShiftState done [06:58:03]FM_GetShiftState done [06:58:03]opened in 1720828979 [06:58:03]opened+sec_in_day 1720915379 [06:58:03]quantity*price = 87047 [06:58:03]sum+1 = 87048 [06:58:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.44 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 54 13.07.2024 06:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162386 ФПД: 104392654880139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T065816&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162386&fm=104392654880139&tin=02508201610067®Number=0000000000090858&sum=87000 [06:58:04]StoreToDocumentArchive [06:58:04]shift 462 fd 162386 [06:58:04]save to /storage/0462/doc_00162386 [06:58:04]save last doc name /storage/0462/doc_00162386 to /storage/kkm_last_doc_name [06:58:04]save OK [06:58:04]Clear old archive folders... [06:58:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:58:04]tlvbuf is 01950C70 [06:58:04]SAM_PROTO_ClearQueue [06:58:04]wFMCommunicate request_size=4 [06:58:04]MH_SAM_APDU [06:58:04]CAPDU: 80 09 00 00 [06:58:04]Write to MH i2c: E2 08 00 46 FC 80 09 00 00 00 00 00 00 B4 [06:58:04]Write i2c OK [06:58:04]MH_I2C_Read... [06:58:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:04]Read from MH i2c: E2 [06:58:04]MH_I2C_Read... [06:58:04]Read from MH i2c: E2 03 00 [06:58:04]MH_I2C_Read... [06:58:04]Read from MH i2c: E2 03 00 46 FC 00 90 00 B6 [06:58:04]RAPDU: 90 00 [06:58:04]wFMCommunicate OK [06:58:04]SAM_PROTO_ClearQueue done [06:58:04]KKMCreateOFDPacket [06:58:04]OFDProtocolAddRootSTLVToBuf [06:58:04]FM_MakeSignedData [06:58:04]FM_MakeSignedData [06:58:04]SAM_PROTO_SignData [06:58:04]wFMCommunicate request_size=4 [06:58:04]MH_SAM_APDU [06:58:04]CAPDU: 80 0D 01 02 [06:58:04]Write to MH i2c: E2 08 00 47 FC 80 0D 01 02 00 00 00 00 BC [06:58:04]Write i2c OK [06:58:04]MH_I2C_Read... [06:58:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:04]Read from MH i2c: E2 [06:58:04]MH_I2C_Read... [06:58:04]Read from MH i2c: E2 03 00 [06:58:04]MH_I2C_Read... [06:58:04]Read from MH i2c: E2 03 00 47 FC 00 90 00 B7 [06:58:04]RAPDU: 90 00 [06:58:04]wFMCommunicate OK [06:58:04]wFMCommunicate request_size=255 [06:58:04]MH_SAM_APDU [06:58:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 36 00 00 00 F4 03 04 00 88 25 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7A 02 00 35 04 06 00 [06:58:04]Write to MH i2c: E2 02 01 48 FC 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 36 00 00 00 F4 03 04 00 88 25 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7A 02 00 35 04 06 00 00 00 00 [06:58:04]Write i2c OK [06:58:04]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 48 FC 00 90 00 B8 [06:58:05]RAPDU: 90 00 [06:58:05]wFMCommunicate OK [06:58:05]wFMCommunicate request_size=11 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 0D 02 02 06 5E F1 CF 1C 7D 8B [06:58:05]Write to MH i2c: E2 0E 00 49 FC 80 0D 02 02 06 00 5E F1 CF 1C 7D 8B 00 00 0D [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 03 00 49 FC 00 90 00 B9 [06:58:05]RAPDU: 90 00 [06:58:05]wFMCommunicate OK [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 0D 03 02 [06:58:05]Write to MH i2c: E2 08 00 4A FC 80 0D 03 02 00 00 00 00 C1 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 0B 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 0B 00 4A FC 00 83 02 4F 23 9E FE 1D 42 90 00 B4 [06:58:05]RAPDU: 83 02 4F 23 9E FE 1D 42 90 00 [06:58:05]wFMCommunicate OK [06:58:05]SAM_PROTO_SignData done [06:58:05]FM_MakeSignedData done [06:58:05]CreateOFDProtocolMessage [06:58:05]wFMCommunicate request_size=4 [06:58:05]MH_SAM_APDU [06:58:05]CAPDU: 80 11 00 00 [06:58:05]Write to MH i2c: E2 08 00 4B FC 80 11 00 00 00 00 00 00 C1 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:05]Read from MH i2c: E2 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 17 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: E2 17 00 4B FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [06:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:58:05]wFMCommunicate OK [06:58:05]CreateOFDProtocolMessage done [06:58:05]OFDSenderStorePacket 162386 [06:58:05]StoreOFDPacket docnum=162386 [06:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CA F4 08 01 07 91 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 36 00 00 00 F4 03 04 00 88 25 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7A 02 00 35 04 06 00 5E F1 CF 1C 7D 8B 83 02 4F 23 9E FE 1D 42 [06:58:05]CheckFolder [06:58:05]dirname=/storage/ofd_packets [06:58:05]CheckFolder done [06:58:05]ProducePacketName [06:58:05]name=ofd_packets/00162386 [06:58:05]NVStorageSaveData ofd_packets/00162386 [06:58:05]File name is /storage/ofd_packets/00162386 [06:58:05]Write 302 bytes [06:58:05]NVStorageSaveData done [06:58:05]OFDSenderStorePacket done [06:58:05]KKMCreateOFDPacket done [06:58:05]NVStorageSaveData kkm_last_timestamp [06:58:05]File name is /storage/kkm_last_timestamp [06:58:05]Write 4 bytes [06:58:05]NVStorageSaveData done [06:58:05]ExternCall_PrintAddStr [06:58:05]wPrintStart [06:58:05]Write to MH i2c: 01 00 00 4C FC 48 [06:58:05]Write i2c OK [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 07 00 [06:58:05]MH_I2C_Read... [06:58:05]Read from MH i2c: 01 07 00 4C FC 00 00 00 00 00 FF 0F 5D [06:58:05]RasterBufferAndPrint [06:58:05]line Счет N : (1)1318910 [06:58:05]line ИНН: 02508201610067 [06:58:05]line Контрольно-Кассовый Чек [06:58:05]line ПРОДАЖА [06:58:05]line ТРК (МРК, ГНК) : 21 [06:58:05]line Товар: 2710194210 [06:58:05]line ДТ(л)-К-5 [06:58:05]line 11.990 * 72.60 [06:58:05]line = 870.47 [06:58:05]line НДС 12% НСП 1% [06:58:05]line > о реализуемом товаре [06:58:05]line ОКРУГЛЕНИЕ: -0.47 [06:58:05]line ИТОГО: 870.00 [06:58:05]line Внесено: 870.00 [06:58:05]line СДАЧА: 0.00 [06:58:05]line НСП 1% : 7.70 [06:58:05]line НДС 12% : 92.44 [06:58:05]line Наличными: 870.00 [06:58:05]line Безнал.: 0.00 [06:58:05]line Место: АЗС № 140 "Партнер Нефть" [06:58:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:58:05]line СНО: Общий режим [06:58:05]line Чек 54 13.07.2024 06:58 [06:58:05]line Смена: 462 ФФД: 1.0 [06:58:05]line ЗНМ: 0300000129 [06:58:05]line РНМ: 0000000000090858 [06:58:05]line Версия ККМ: 001 [06:58:05]line ФМ: 0000000000874899 [06:58:05]line ФД: 162386 [06:58:05]line ФПД: 104392654880139 [06:58:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T065816&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162386&fm=104392654880139&tin=02508201610067®Number=0000000000090858&sum=87000 [06:58:05]OFD Sender: Processing packet 162386 [packets to send 105, broken 104] [06:58:05]ProducePacketName [06:58:05]name=ofd_packets/00162386 [06:58:05]OFD Sender: To server: pG, [06:58:05]CommunicateWithHost lk.salyk.kg:30040 [06:58:05]ConnectInit lk.salyk.kg [06:58:05]written 0, free lines is 4095 [06:58:05]Connected sock=11 [06:58:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CA F4 08 01 07 91 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 36 00 00 00 F4 03 04 00 88 25 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7A 02 00 35 04 06 00 5E F1 CF 1C 7D 8B 83 02 4F 23 9E FE 1D 42 [06:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EC 97 47 00 BE 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7A 02 00 F4 03 04 00 9D D1 91 66 B6 04 01 00 00 6B A2 D2 58 F3 EC 3E 0C [06:58:05]CommunicateWithHost err = 0 [06:58:05]CheckOFDResponse [06:58:05]1017 (14) - 77093643461234 [06:58:05]1041 (16) - 0000000000874899 [06:58:05]1040 (4) - 162386 [06:58:05]1012 (4) - 13.07.2024 01:00 [06:58:05]1206 (1) - 0 [06:58:05]OFD Sender: Remove packet 162386 [06:58:05]ProducePacketName [06:58:05]name=ofd_packets/00162386 [06:58:05]NVStorageDeleteData [06:58:06]Write to MH i2c: 01 00 00 77 FC 73 [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 07 00 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: 01 07 00 77 FC 00 00 00 00 00 EB 0C 71 [06:58:06]RasterBufferAndPrint [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]line [06:58:06]written 0, free lines is 3313 [06:58:06]MH_Cut [06:58:06]Write to MH i2c: D1 01 00 7E FC 01 4C [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 01 00 [06:58:06]MH_I2C_Read... [06:58:06]Read from MH i2c: D1 01 00 7E FC 00 4B [06:58:06]Write to MH i2c: 01 00 00 7F FC 7B [06:58:06]Write i2c OK [06:58:06]MH_I2C_Read... [06:58:06]OFD Sender: No OFD packet to send [06:58:06]*** Cut start [06:58:06]*** Purtial cut [06:58:06]*** CUTSNS_PIN = 0 [06:58:06]*** Stage 1: CUTSNS_PIN = 1 [06:58:08]Read from MH i2c: 01 [06:58:08]MH_I2C_Read... [06:58:08]*** Stop cut motor [06:58:08]*** Cut end [06:58:08]Read from MH i2c: 01 07 00 [06:58:08]MH_I2C_Read... [06:58:08]Read from MH i2c: 01 07 00 7F FC 00 00 00 00 00 FF 0F 90 [06:58:08]process_action close_receipt done [06:58:08]requested_data is exist [06:58:08]produce_requested_data [06:58:08]requested_item fm.sn is exist - process it [06:58:08]wFMCommunicate request_size=4 [06:58:08]MH_SAM_APDU [06:58:08]CAPDU: 80 11 00 00 [06:58:08]Write to MH i2c: E2 08 00 80 FC 80 11 00 00 00 00 00 00 F6 [06:58:08]Write i2c OK [06:58:08]MH_I2C_Read... [06:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:08]Read from MH i2c: E2 [06:58:08]MH_I2C_Read... [06:58:08]Read from MH i2c: E2 17 00 [06:58:08]MH_I2C_Read... [06:58:08]Read from MH i2c: E2 17 00 80 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 56 [06:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [06:58:08]wFMCommunicate OK [06:58:08]requested_item fd.num is exist - process it [06:58:08]SAM_PROTO_GetFieldsCounters [06:58:08]wFMCommunicate request_size=4 [06:58:08]MH_SAM_APDU [06:58:08]CAPDU: 80 13 00 00 [06:58:08]Write to MH i2c: E2 08 00 81 FC 80 13 00 00 00 00 00 00 F9 [06:58:08]Write i2c OK [06:58:08]MH_I2C_Read... [06:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:09]Read from MH i2c: E2 [06:58:09]MH_I2C_Read... [06:58:09]Read from MH i2c: E2 62 00 [06:58:09]MH_I2C_Read... [06:58:09]Read from MH i2c: E2 62 00 81 FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 52 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [06:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 52 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:58:09]wFMCommunicate OK [06:58:09]SAM_PROTO_GetFieldsCounters done [06:58:09]requested_item shift.num is exist - process it [06:58:09]requested_item shift.opened is exist - process it [06:58:09]req_shift_opened [06:58:09]FM_GetShiftState [06:58:09]SAM_PROTO_GetShiftState [06:58:09]wFMCommunicate request_size=4 [06:58:09]MH_SAM_APDU [06:58:09]CAPDU: 80 13 01 00 [06:58:09]Write to MH i2c: E2 08 00 82 FC 80 13 01 00 00 00 00 00 FB [06:58:09]Write i2c OK [06:58:09]MH_I2C_Read... [06:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:09]Read from MH i2c: E2 [06:58:09]MH_I2C_Read... [06:58:09]Read from MH i2c: E2 0E 00 [06:58:09]MH_I2C_Read... [06:58:09]Read from MH i2c: E2 0E 00 82 FC 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F5 [06:58:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [06:58:09]wFMCommunicate OK [06:58:09]SAM_PROTO_GetShiftState done [06:58:09]FM_GetShiftState done [06:58:09]req_shift_opened done [06:58:09]requested_item shift.open_date is exist - process it [06:58:09]req_shift_open_date [06:58:09]req_shift_open_date done [06:58:09]produce_requested_data done [06:58:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162386,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [06:58:09]process_action_free close_receipt [06:58:09]json_value_free [06:58:09]json_value_free done [06:58:09]process_json_proto returns [06:58:09]Send response to host [06:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162386,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [06:58:09]free response buf [06:58:09]execute_script done [06:58:09]execute_script returns [06:58:09]free content buf [06:58:09]Sock 8.Close socket [06:58:09]Sock 8.Thread stoped [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:41]accept exits with 9 [07:00:41]New connection [07:00:41]New thread 3067006308 created [07:00:41]Thread 3066862948 joined [07:00:41]Waiting for new connection... [07:00:41] Sock 9.Parse request [07:00:41]Sock 9.Check first char [07:00:41]Sock 9.First char is OK [07:00:41]request: POST /json_proto HTTP/1.0 [07:00:41]Method: POST [07:00:41]URL: /json_proto [07:00:41]Method is POST - this is cgi request [07:00:41]url: /json_proto [07:00:41]query_string will be loaded in cgi processing [07:00:41]execute_cgi json_proto POST (null) [07:00:41]execute_cgi path=json_proto method=POST [07:00:41]POST find Content-Length [07:00:41]Host: 172.17.39.67:8080 [07:00:41]Content-Length: 678 [07:00:41]Content-Type: application/json [07:00:41] [07:00:41]POST finish read [07:00:41]Found Content-Length = 678 [07:00:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.090, "sum" : 470.07, "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" ] } } [07:00:41]execute_script... [07:00:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318911", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.090, "sum" : 470.07, "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" ] } } [07:00:41]POST & json_proto [07:00:41]process_json_proto [07:00:41]json parsed OK: [07:00:41]protocol is kg_v1.0 [07:00:41]action value=close_receipt [07:00:41]process_action close_receipt [07:00:41]cmd_close_receipt [07:00:41]MH_GetDate [07:00:41]Write to MH i2c: F0 00 00 83 FC 6E [07:00:41]Write i2c OK [07:00:41]MH_I2C_Read... [07:00:41]Read from MH i2c: F0 [07:00:41]MH_I2C_Read... [07:00:41]Read from MH i2c: F0 09 00 [07:00:41]MH_I2C_Read... [07:00:41]Read from MH i2c: F0 09 00 83 FC 00 26 26 92 66 FA E9 8E 66 92 [07:00:41]GetLastDocTimeStamp 1720853896 [07:00:41]current date 1720854054 [07:00:41]FM_GetShiftState [07:00:41]SAM_PROTO_GetShiftState [07:00:41]wFMCommunicate request_size=4 [07:00:41]MH_SAM_APDU [07:00:41]CAPDU: 80 13 01 00 [07:00:41]Write to MH i2c: E2 08 00 84 FC 80 13 01 00 00 00 00 00 FD [07:00:41]Write i2c OK [07:00:41]MH_I2C_Read... [07:00:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:41]Read from MH i2c: E2 [07:00:41]MH_I2C_Read... [07:00:41]Read from MH i2c: E2 0E 00 [07:00:41]MH_I2C_Read... [07:00:41]Read from MH i2c: E2 0E 00 84 FC 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F7 [07:00:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:00:41]wFMCommunicate OK [07:00:41]SAM_PROTO_GetShiftState done [07:00:41]FM_GetShiftState done [07:00:41]opened in 1720828979 [07:00:41]opened+sec_in_day 1720915379 [07:00:41]quantity*price = 47006 [07:00:41]sum+1 = 47008 [07:00:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.92 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 55 13.07.2024 07:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162387 ФПД: 212227876400977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070054&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162387&fm=212227876400977&tin=02508201610067®Number=0000000000090858&sum=47000 [07:00:42]StoreToDocumentArchive [07:00:42]shift 462 fd 162387 [07:00:42]save to /storage/0462/doc_00162387 [07:00:42]save last doc name /storage/0462/doc_00162387 to /storage/kkm_last_doc_name [07:00:42]save OK [07:00:42]Clear old archive folders... [07:00:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:00:42]tlvbuf is 01747160 [07:00:42]SAM_PROTO_ClearQueue [07:00:42]wFMCommunicate request_size=4 [07:00:42]MH_SAM_APDU [07:00:42]CAPDU: 80 09 00 00 [07:00:42]Write to MH i2c: E2 08 00 91 FC 80 09 00 00 00 00 00 00 FF [07:00:42]Write i2c OK [07:00:42]MH_I2C_Read... [07:00:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:00:42]Read from MH i2c: E2 [07:00:42]MH_I2C_Read... [07:00:42]Read from MH i2c: E2 03 00 [07:00:42]MH_I2C_Read... [07:00:42]Read from MH i2c: E2 03 00 91 FC 00 90 00 01 [07:00:42]RAPDU: 90 00 [07:00:42]wFMCommunicate OK [07:00:42]SAM_PROTO_ClearQueue done [07:00:42]KKMCreateOFDPacket [07:00:42]OFDProtocolAddRootSTLVToBuf [07:00:42]FM_MakeSignedData [07:00:42]FM_MakeSignedData [07:00:42]SAM_PROTO_SignData [07:00:42]wFMCommunicate request_size=4 [07:00:42]MH_SAM_APDU [07:00:42]CAPDU: 80 0D 01 02 [07:00:42]Write to MH i2c: E2 08 00 92 FC 80 0D 01 02 00 00 00 00 07 [07:00:42]Write i2c OK [07:00:42]MH_I2C_Read... [07:00:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:00:42]Read from MH i2c: E2 [07:00:42]MH_I2C_Read... [07:00:42]Read from MH i2c: E2 03 00 [07:00:42]MH_I2C_Read... [07:00:42]Read from MH i2c: E2 03 00 92 FC 00 90 00 02 [07:00:42]RAPDU: 90 00 [07:00:42]wFMCommunicate OK [07:00:42]wFMCommunicate request_size=255 [07:00:42]MH_SAM_APDU [07:00:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 1B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9F 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 80 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 37 00 00 00 F4 03 04 00 26 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7A 02 00 35 04 06 00 C1 [07:00:42]Write to MH i2c: E2 02 01 93 FC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 1B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9F 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 80 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 37 00 00 00 F4 03 04 00 26 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7A 02 00 35 04 06 00 C1 00 00 F1 [07:00:42]Write i2c OK [07:00:42]MH_I2C_Read... [07:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:43]Read from MH i2c: E2 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: E2 03 00 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: E2 03 00 93 FC 00 90 00 03 [07:00:43]RAPDU: 90 00 [07:00:43]wFMCommunicate OK [07:00:43]wFMCommunicate request_size=10 [07:00:43]MH_SAM_APDU [07:00:43]CAPDU: 80 0D 02 02 05 05 27 2F 2F 51 [07:00:43]Write to MH i2c: E2 0D 00 94 FC 80 0D 02 02 05 00 05 27 2F 2F 51 00 00 EF [07:00:43]Write i2c OK [07:00:43]MH_I2C_Read... [07:00:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:00:43]Read from MH i2c: E2 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: E2 03 00 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: E2 03 00 94 FC 00 90 00 04 [07:00:43]RAPDU: 90 00 [07:00:43]wFMCommunicate OK [07:00:43]wFMCommunicate request_size=4 [07:00:43]MH_SAM_APDU [07:00:43]CAPDU: 80 0D 03 02 [07:00:43]Write to MH i2c: E2 08 00 95 FC 80 0D 03 02 00 00 00 00 0C [07:00:43]Write i2c OK [07:00:43]MH_I2C_Read... [07:00:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:00:43]Read from MH i2c: E2 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: E2 0B 00 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: E2 0B 00 95 FC 00 B5 19 89 F3 B1 F0 AE 93 90 00 39 [07:00:43]RAPDU: B5 19 89 F3 B1 F0 AE 93 90 00 [07:00:43]wFMCommunicate OK [07:00:43]SAM_PROTO_SignData done [07:00:43]FM_MakeSignedData done [07:00:43]CreateOFDProtocolMessage [07:00:43]wFMCommunicate request_size=4 [07:00:43]MH_SAM_APDU [07:00:43]CAPDU: 80 11 00 00 [07:00:43]Write to MH i2c: E2 08 00 96 FC 80 11 00 00 00 00 00 00 0C [07:00:43]Write i2c OK [07:00:43]MH_I2C_Read... [07:00:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:43]Read from MH i2c: E2 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: E2 17 00 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: E2 17 00 96 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [07:00:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:00:43]wFMCommunicate OK [07:00:43]CreateOFDProtocolMessage done [07:00:43]OFDSenderStorePacket 162387 [07:00:43]StoreOFDPacket docnum=162387 [07:00:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C4 D9 07 01 D5 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 1B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9F 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 80 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 37 00 00 00 F4 03 04 00 26 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7A 02 00 35 04 06 00 C1 05 27 2F 2F 51 B5 19 89 F3 B1 F0 AE 93 [07:00:43]CheckFolder [07:00:43]dirname=/storage/ofd_packets [07:00:43]CheckFolder done [07:00:43]ProducePacketName [07:00:43]name=ofd_packets/00162387 [07:00:43]NVStorageSaveData ofd_packets/00162387 [07:00:43]File name is /storage/ofd_packets/00162387 [07:00:43]Write 301 bytes [07:00:43]NVStorageSaveData done [07:00:43]OFDSenderStorePacket done [07:00:43]KKMCreateOFDPacket done [07:00:43]NVStorageSaveData kkm_last_timestamp [07:00:43]File name is /storage/kkm_last_timestamp [07:00:43]Write 4 bytes [07:00:43]NVStorageSaveData done [07:00:43]ExternCall_PrintAddStr [07:00:43]wPrintStart [07:00:43]Write to MH i2c: 01 00 00 97 FC 93 [07:00:43]Write i2c OK [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: 01 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: 01 07 00 [07:00:43]MH_I2C_Read... [07:00:43]Read from MH i2c: 01 07 00 97 FC 00 00 00 00 00 FF 0F A8 [07:00:43]RasterBufferAndPrint [07:00:43]line Счет N : (1)1318911 [07:00:43]line ИНН: 02508201610067 [07:00:43]line Контрольно-Кассовый Чек [07:00:43]line ПРОДАЖА [07:00:43]line ТРК (МРК, ГНК) : 43 [07:00:43]line Товар: 2710124130 [07:00:43]line Аи-92-К-5 [07:00:43]line 7.090 * 66.30 [07:00:43]line = 470.07 [07:00:43]line НДС 12% НСП 1% [07:00:43]line > о реализуемом товаре [07:00:43]line ОКРУГЛЕНИЕ: -0.07 [07:00:43]line ИТОГО: 470.00 [07:00:43]line Внесено: 470.00 [07:00:43]line СДАЧА: 0.00 [07:00:43]line НСП 1% : 4.16 [07:00:43]line НДС 12% : 49.92 [07:00:43]line Наличными: 470.00 [07:00:43]line Безнал.: 0.00 [07:00:43]line Место: АЗС № 140 "Партнер Нефть" [07:00:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:00:43]line СНО: Общий режим [07:00:43]line Чек 55 13.07.2024 07:00 [07:00:43]line Смена: 462 ФФД: 1.0 [07:00:43]line ЗНМ: 0300000129 [07:00:43]line РНМ: 0000000000090858 [07:00:43]line Версия ККМ: 001 [07:00:43]line ФМ: 0000000000874899 [07:00:43]line ФД: 162387 [07:00:43]line ФПД: 212227876400977 [07:00:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070054&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162387&fm=212227876400977&tin=02508201610067®Number=0000000000090858&sum=47000 [07:00:43]OFD Sender: Processing packet 162387 [packets to send 105, broken 104] [07:00:43]ProducePacketName [07:00:43]name=ofd_packets/00162387 [07:00:43]OFD Sender: To server: pG, [07:00:43]CommunicateWithHost lk.salyk.kg:30040 [07:00:43]written 0, free lines is 4095 [07:00:43]ConnectInit lk.salyk.kg [07:00:43]Connected sock=10 [07:00:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C4 D9 07 01 D5 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 1B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9F 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 80 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 37 00 00 00 F4 03 04 00 26 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7A 02 00 35 04 06 00 C1 05 27 2F 2F 51 B5 19 89 F3 B1 F0 AE 93 [07:00:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 52 32 47 00 EB 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7A 02 00 F4 03 04 00 3B D2 91 66 B6 04 01 00 00 E1 C3 38 9E 4D FA F3 43 [07:00:43]CommunicateWithHost err = 0 [07:00:43]CheckOFDResponse [07:00:43]1017 (14) - 77093643461234 [07:00:43]1041 (16) - 0000000000874899 [07:00:43]1040 (4) - 162387 [07:00:43]1012 (4) - 13.07.2024 01:02 [07:00:43]1206 (1) - 0 [07:00:43]OFD Sender: Remove packet 162387 [07:00:43]ProducePacketName [07:00:43]name=ofd_packets/00162387 [07:00:43]NVStorageDeleteData [07:00:44]Write to MH i2c: 01 00 00 C2 FC BE [07:00:44]Write i2c OK [07:00:44]MH_I2C_Read... [07:00:44]Read from MH i2c: 01 [07:00:44]MH_I2C_Read... [07:00:44]Read from MH i2c: 01 07 00 [07:00:44]MH_I2C_Read... [07:00:44]Read from MH i2c: 01 07 00 C2 FC 00 00 00 00 00 DF 0C B0 [07:00:44]RasterBufferAndPrint [07:00:44]line [07:00:44]line [07:00:44]line [07:00:44]line [07:00:44]line [07:00:44]written 0, free lines is 3301 [07:00:44]MH_Cut [07:00:44]Write to MH i2c: D1 01 00 C9 FC 01 97 [07:00:44]Write i2c OK [07:00:44]MH_I2C_Read... [07:00:44]Read from MH i2c: D1 [07:00:44]MH_I2C_Read... [07:00:44]Read from MH i2c: D1 01 00 [07:00:44]MH_I2C_Read... [07:00:44]Read from MH i2c: D1 01 00 C9 FC 00 96 [07:00:44]Write to MH i2c: 01 00 00 CA FC C6 [07:00:44]Write i2c OK [07:00:44]MH_I2C_Read... [07:00:44]OFD Sender: No OFD packet to send [07:00:44]*** Cut start [07:00:44]*** Purtial cut [07:00:44]*** Stage 1: CUTSNS_PIN = 1 [07:00:45]Read from MH i2c: 01 [07:00:45]MH_I2C_Read... [07:00:45]*** Stop cut motor [07:00:45]*** Cut end [07:00:45]Read from MH i2c: 01 07 00 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: 01 07 00 CA FC 00 00 00 00 00 FF 0F DB [07:00:45]process_action close_receipt done [07:00:45]requested_data is exist [07:00:45]produce_requested_data [07:00:45]requested_item fm.sn is exist - process it [07:00:45]wFMCommunicate request_size=4 [07:00:45]MH_SAM_APDU [07:00:45]CAPDU: 80 11 00 00 [07:00:45]Write to MH i2c: E2 08 00 CB FC 80 11 00 00 00 00 00 00 41 [07:00:45]Write i2c OK [07:00:45]MH_I2C_Read... [07:00:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:45]Read from MH i2c: E2 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: E2 17 00 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: E2 17 00 CB FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A1 [07:00:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:00:45]wFMCommunicate OK [07:00:45]requested_item fd.num is exist - process it [07:00:45]SAM_PROTO_GetFieldsCounters [07:00:45]wFMCommunicate request_size=4 [07:00:45]MH_SAM_APDU [07:00:45]CAPDU: 80 13 00 00 [07:00:45]Write to MH i2c: E2 08 00 CC FC 80 13 00 00 00 00 00 00 44 [07:00:45]Write i2c OK [07:00:45]MH_I2C_Read... [07:00:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:45]Read from MH i2c: E2 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: E2 62 00 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: E2 62 00 CC FC 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 53 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [07:00:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 53 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:00:45]wFMCommunicate OK [07:00:45]SAM_PROTO_GetFieldsCounters done [07:00:45]requested_item shift.num is exist - process it [07:00:45]requested_item shift.opened is exist - process it [07:00:45]req_shift_opened [07:00:45]FM_GetShiftState [07:00:45]SAM_PROTO_GetShiftState [07:00:45]wFMCommunicate request_size=4 [07:00:45]MH_SAM_APDU [07:00:45]CAPDU: 80 13 01 00 [07:00:45]Write to MH i2c: E2 08 00 CD FC 80 13 01 00 00 00 00 00 46 [07:00:45]Write i2c OK [07:00:45]MH_I2C_Read... [07:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:45]Read from MH i2c: E2 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: E2 0E 00 [07:00:45]MH_I2C_Read... [07:00:45]Read from MH i2c: E2 0E 00 CD FC 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 40 [07:00:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:00:45]wFMCommunicate OK [07:00:45]SAM_PROTO_GetShiftState done [07:00:45]FM_GetShiftState done [07:00:45]req_shift_opened done [07:00:45]requested_item shift.open_date is exist - process it [07:00:45]req_shift_open_date [07:00:45]req_shift_open_date done [07:00:45]produce_requested_data done [07:00:45]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162387,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:00:45]process_action_free close_receipt [07:00:45]json_value_free [07:00:45]json_value_free done [07:00:45]process_json_proto returns [07:00:45]Send response to host [07:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162387,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:00:45]free response buf [07:00:45]execute_script done [07:00:45]execute_script returns [07:00:45]free content buf [07:00:45]Sock 9.Close socket [07:00:45]Sock 9.Thread stoped [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:18]accept exits with 8 [07:01:18]New connection [07:01:18]New thread 3066862948 created [07:01:18]Thread 3067006308 joined [07:01:18]Waiting for new connection... [07:01:18] Sock 8.Parse request [07:01:18]Sock 8.Check first char [07:01:18]Sock 8.First char is OK [07:01:18]request: POST /json_proto HTTP/1.0 [07:01:18]Method: POST [07:01:18]URL: /json_proto [07:01:18]Method is POST - this is cgi request [07:01:18]url: /json_proto [07:01:18]query_string will be loaded in cgi processing [07:01:18]execute_cgi json_proto POST (null) [07:01:18]execute_cgi path=json_proto method=POST [07:01:18]POST find Content-Length [07:01:18]Host: 172.17.39.67:8080 [07:01:18]Content-Length: 679 [07:01:18]Content-Type: application/json [07:01:18] [07:01:18]POST finish read [07:01:18]Found Content-Length = 679 [07:01:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.040, "sum" : 665.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:18]execute_script... [07:01: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)1318912", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.040, "sum" : 665.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:18]POST & json_proto [07:01:18]process_json_proto [07:01:18]json parsed OK: [07:01:18]protocol is kg_v1.0 [07:01:18]action value=close_receipt [07:01:18]process_action close_receipt [07:01:18]cmd_close_receipt [07:01:18]MH_GetDate [07:01:18]Write to MH i2c: F0 00 00 CE FC B9 [07:01:18]Write i2c OK [07:01:18]MH_I2C_Read... [07:01:18]Read from MH i2c: F0 [07:01:18]MH_I2C_Read... [07:01:18]Read from MH i2c: F0 09 00 [07:01:18]MH_I2C_Read... [07:01:18]Read from MH i2c: F0 09 00 CE FC 00 4B 26 92 66 FA E9 8E 66 02 [07:01:18]GetLastDocTimeStamp 1720854054 [07:01:18]current date 1720854091 [07:01:18]FM_GetShiftState [07:01:18]SAM_PROTO_GetShiftState [07:01:18]wFMCommunicate request_size=4 [07:01:18]MH_SAM_APDU [07:01:18]CAPDU: 80 13 01 00 [07:01:18]Write to MH i2c: E2 08 00 CF FC 80 13 01 00 00 00 00 00 48 [07:01:18]Write i2c OK [07:01:18]MH_I2C_Read... [07:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:18]Read from MH i2c: E2 [07:01:18]MH_I2C_Read... [07:01:18]Read from MH i2c: E2 0E 00 [07:01:18]MH_I2C_Read... [07:01:18]Read from MH i2c: E2 0E 00 CF FC 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 42 [07:01:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:01:18]wFMCommunicate OK [07:01:18]SAM_PROTO_GetShiftState done [07:01:18]FM_GetShiftState done [07:01:18]opened in 1720828979 [07:01:18]opened+sec_in_day 1720915379 [07:01:18]quantity*price = 66565 [07:01:18]sum+1 = 66566 [07:01:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.69 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 56 13.07.2024 07:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162388 ФПД: 15590676761233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070131&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162388&fm=15590676761233&tin=02508201610067®Number=0000000000090858&sum=66500 [07:01:19]StoreToDocumentArchive [07:01:19]shift 462 fd 162388 [07:01:19]save to /storage/0462/doc_00162388 [07:01:19]save last doc name /storage/0462/doc_00162388 to /storage/kkm_last_doc_name [07:01:19]save OK [07:01:19]Clear old archive folders... [07:01:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:19]tlvbuf is 019BFBD0 [07:01:19]SAM_PROTO_ClearQueue [07:01:19]wFMCommunicate request_size=4 [07:01:19]MH_SAM_APDU [07:01:19]CAPDU: 80 09 00 00 [07:01:19]Write to MH i2c: E2 08 00 DC FC 80 09 00 00 00 00 00 00 4A [07:01:19]Write i2c OK [07:01:19]MH_I2C_Read... [07:01:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:19]Read from MH i2c: E2 [07:01:19]MH_I2C_Read... [07:01:19]Read from MH i2c: E2 03 00 [07:01:19]MH_I2C_Read... [07:01:19]Read from MH i2c: E2 03 00 DC FC 00 90 00 4C [07:01:19]RAPDU: 90 00 [07:01:19]wFMCommunicate OK [07:01:19]SAM_PROTO_ClearQueue done [07:01:19]KKMCreateOFDPacket [07:01:19]OFDProtocolAddRootSTLVToBuf [07:01:19]FM_MakeSignedData [07:01:19]FM_MakeSignedData [07:01:19]SAM_PROTO_SignData [07:01:19]wFMCommunicate request_size=4 [07:01:19]MH_SAM_APDU [07:01:19]CAPDU: 80 0D 01 02 [07:01:19]Write to MH i2c: E2 08 00 DD FC 80 0D 01 02 00 00 00 00 52 [07:01:19]Write i2c OK [07:01:19]MH_I2C_Read... [07:01:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:19]Read from MH i2c: E2 [07:01:19]MH_I2C_Read... [07:01:19]Read from MH i2c: E2 03 00 [07:01:19]MH_I2C_Read... [07:01:19]Read from MH i2c: E2 03 00 DD FC 00 90 00 4D [07:01:19]RAPDU: 90 00 [07:01:19]wFMCommunicate OK [07:01:19]wFMCommunicate request_size=255 [07:01:19]MH_SAM_APDU [07:01:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7A 02 00 35 04 06 00 0E [07:01:19]Write to MH i2c: E2 02 01 DE FC 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7A 02 00 35 04 06 00 0E 00 00 BB [07:01:19]Write i2c OK [07:01:19]MH_I2C_Read... [07:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:19]Read from MH i2c: E2 [07:01:19]MH_I2C_Read... [07:01:19]Read from MH i2c: E2 03 00 [07:01:19]MH_I2C_Read... [07:01:19]Read from MH i2c: E2 03 00 DE FC 00 90 00 4E [07:01:19]RAPDU: 90 00 [07:01:19]wFMCommunicate OK [07:01:19]wFMCommunicate request_size=10 [07:01:19]MH_SAM_APDU [07:01:19]CAPDU: 80 0D 02 02 05 2D FC C0 0A 91 [07:01:19]Write to MH i2c: E2 0D 00 DF FC 80 0D 02 02 05 00 2D FC C0 0A 91 00 00 E3 [07:01:19]Write i2c OK [07:01:19]MH_I2C_Read... [07:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:19]Read from MH i2c: E2 [07:01:19]MH_I2C_Read... [07:01:19]Read from MH i2c: E2 03 00 [07:01:19]MH_I2C_Read... [07:01:19]Read from MH i2c: E2 03 00 DF FC 00 90 00 4F [07:01:19]RAPDU: 90 00 [07:01:19]wFMCommunicate OK [07:01:19]wFMCommunicate request_size=4 [07:01:19]MH_SAM_APDU [07:01:19]CAPDU: 80 0D 03 02 [07:01:19]Write to MH i2c: E2 08 00 E0 FC 80 0D 03 02 00 00 00 00 57 [07:01:19]Write i2c OK [07:01:19]MH_I2C_Read... [07:01:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:20]Read from MH i2c: E2 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: E2 0B 00 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: E2 0B 00 E0 FC 00 59 11 BE 2A 10 26 D9 A0 90 00 59 [07:01:20]RAPDU: 59 11 BE 2A 10 26 D9 A0 90 00 [07:01:20]wFMCommunicate OK [07:01:20]SAM_PROTO_SignData done [07:01:20]FM_MakeSignedData done [07:01:20]CreateOFDProtocolMessage [07:01:20]wFMCommunicate request_size=4 [07:01:20]MH_SAM_APDU [07:01:20]CAPDU: 80 11 00 00 [07:01:20]Write to MH i2c: E2 08 00 E1 FC 80 11 00 00 00 00 00 00 57 [07:01:20]Write i2c OK [07:01:20]MH_I2C_Read... [07:01:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:20]Read from MH i2c: E2 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: E2 17 00 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: E2 17 00 E1 FC 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [07:01:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:01:20]wFMCommunicate OK [07:01:20]CreateOFDProtocolMessage done [07:01:20]OFDSenderStorePacket 162388 [07:01:20]StoreOFDPacket docnum=162388 [07:01:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C7 40 07 01 50 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7A 02 00 35 04 06 00 0E 2D FC C0 0A 91 59 11 BE 2A 10 26 D9 A0 [07:01:20]CheckFolder [07:01:20]dirname=/storage/ofd_packets [07:01:20]CheckFolder done [07:01:20]ProducePacketName [07:01:20]name=ofd_packets/00162388 [07:01:20]NVStorageSaveData ofd_packets/00162388 [07:01:20]File name is /storage/ofd_packets/00162388 [07:01:20]Write 301 bytes [07:01:20]NVStorageSaveData done [07:01:20]OFDSenderStorePacket done [07:01:20]KKMCreateOFDPacket done [07:01:20]NVStorageSaveData kkm_last_timestamp [07:01:20]File name is /storage/kkm_last_timestamp [07:01:20]Write 4 bytes [07:01:20]NVStorageSaveData done [07:01:20]ExternCall_PrintAddStr [07:01:20]wPrintStart [07:01:20]Write to MH i2c: 01 00 00 E2 FC DE [07:01:20]Write i2c OK [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: 01 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: 01 07 00 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: 01 07 00 E2 FC 00 00 00 00 00 FF 0F F3 [07:01:20]RasterBufferAndPrint [07:01:20]line Счет N : (1)1318912 [07:01:20]line ИНН: 02508201610067 [07:01:20]line Контрольно-Кассовый Чек [07:01:20]line ПРОДАЖА [07:01:20]line ТРК (МРК, ГНК) : 63 [07:01:20]line Товар: 2710124130 [07:01:20]line Аи-92-К-5 [07:01:20]line 10.040 * 66.30 [07:01:20]line = 665.65 [07:01:20]line НДС 12% НСП 1% [07:01:20]line > о реализуемом товаре [07:01:20]line ОКРУГЛЕНИЕ: -0.65 [07:01:20]line ИТОГО: 665.00 [07:01:20]line Внесено: 665.00 [07:01:20]line СДАЧА: 0.00 [07:01:20]line НСП 1% : 5.89 [07:01:20]line НДС 12% : 70.69 [07:01:20]line Наличными: 665.00 [07:01:20]line Безнал.: 0.00 [07:01:20]line Место: АЗС № 140 "Партнер Нефть" [07:01:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:01:20]line СНО: Общий режим [07:01:20]line Чек 56 13.07.2024 07:01 [07:01:20]line Смена: 462 ФФД: 1.0 [07:01:20]line ЗНМ: 0300000129 [07:01:20]line РНМ: 0000000000090858 [07:01:20]line Версия ККМ: 001 [07:01:20]line ФМ: 0000000000874899 [07:01:20]line ФД: 162388 [07:01:20]line ФПД: 15590676761233 [07:01:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070131&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162388&fm=15590676761233&tin=02508201610067®Number=0000000000090858&sum=66500 [07:01:20]OFD Sender: Processing packet 162388 [packets to send 105, broken 104] [07:01:20]ProducePacketName [07:01:20]name=ofd_packets/00162388 [07:01:20]OFD Sender: To server: pG, [07:01:20]CommunicateWithHost lk.salyk.kg:30040 [07:01:20]ConnectInit lk.salyk.kg [07:01:20]written 0, free lines is 4095 [07:01:20]Connected sock=10 [07: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 34 38 39 39 0F 01 00 00 C7 40 07 01 50 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 05 04 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7A 02 00 35 04 06 00 0E 2D FC C0 0A 91 59 11 BE 2A 10 26 D9 A0 [07:01:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2D 14 47 00 51 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7A 02 00 F4 03 04 00 60 D2 91 66 B6 04 01 00 00 87 B7 BA 8A E4 9C 60 B2 [07:01:20]CommunicateWithHost err = 0 [07:01:20]CheckOFDResponse [07:01:20]1017 (14) - 77093643461234 [07:01:20]1041 (16) - 0000000000874899 [07:01:20]1040 (4) - 162388 [07:01:20]1012 (4) - 13.07.2024 01:03 [07:01:20]1206 (1) - 0 [07:01:20]OFD Sender: Remove packet 162388 [07:01:20]ProducePacketName [07:01:20]name=ofd_packets/00162388 [07:01:20]NVStorageDeleteData [07:01:20]Write to MH i2c: 01 00 00 0D FD 0A [07:01:20]Write i2c OK [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: 01 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: 01 07 00 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: 01 07 00 0D FD 00 00 00 00 00 E5 0C 02 [07:01:20]RasterBufferAndPrint [07:01:20]line [07:01:20]line [07:01:20]line [07:01:20]line [07:01:20]line [07:01:20]written 0, free lines is 3307 [07:01:20]MH_Cut [07:01:20]Write to MH i2c: D1 01 00 14 FD 01 E3 [07:01:20]Write i2c OK [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: D1 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: D1 01 00 [07:01:20]MH_I2C_Read... [07:01:20]Read from MH i2c: D1 01 00 14 FD 00 E2 [07:01:20]Write to MH i2c: 01 00 00 15 FD 12 [07:01:20]Write i2c OK [07:01:20]MH_I2C_Read... [07:01:21]OFD Sender: No OFD packet to send [07:01:21]*** Cut start [07:01:21]*** Purtial cut [07:01:21]*** CUTSNS_PIN = 0 [07:01:21]*** Stage 1: CUTSNS_PIN = 1 [07:01:23]Read from MH i2c: 01 [07:01:23]MH_I2C_Read... [07:01:23]*** Stop cut motor [07:01:23]*** Cut end [07:01:23]Read from MH i2c: 01 07 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: 01 07 00 15 FD 00 00 00 00 00 FF 0F 27 [07:01:23]process_action close_receipt done [07:01:23]requested_data is exist [07:01:23]produce_requested_data [07:01:23]requested_item fm.sn is exist - process it [07:01:23]wFMCommunicate request_size=4 [07:01:23]MH_SAM_APDU [07:01:23]CAPDU: 80 11 00 00 [07:01:23]Write to MH i2c: E2 08 00 16 FD 80 11 00 00 00 00 00 00 8D [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:23]Read from MH i2c: E2 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 17 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 17 00 16 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 ED [07:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:01:23]wFMCommunicate OK [07:01:23]requested_item fd.num is exist - process it [07:01:23]SAM_PROTO_GetFieldsCounters [07:01:23]wFMCommunicate request_size=4 [07:01:23]MH_SAM_APDU [07:01:23]CAPDU: 80 13 00 00 [07:01:23]Write to MH i2c: E2 08 00 17 FD 80 13 00 00 00 00 00 00 90 [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:01:23]Read from MH i2c: E2 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 62 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 62 00 17 FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 54 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [07:01:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 54 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:01:23]wFMCommunicate OK [07:01:23]SAM_PROTO_GetFieldsCounters done [07:01:23]requested_item shift.num is exist - process it [07:01:23]requested_item shift.opened is exist - process it [07:01:23]req_shift_opened [07:01:23]FM_GetShiftState [07:01:23]SAM_PROTO_GetShiftState [07:01:23]wFMCommunicate request_size=4 [07:01:23]MH_SAM_APDU [07:01:23]CAPDU: 80 13 01 00 [07:01:23]Write to MH i2c: E2 08 00 18 FD 80 13 01 00 00 00 00 00 92 [07:01:23]Write i2c OK [07:01:23]MH_I2C_Read... [07:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:23]Read from MH i2c: E2 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 0E 00 [07:01:23]MH_I2C_Read... [07:01:23]Read from MH i2c: E2 0E 00 18 FD 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8C [07:01:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:01:23]wFMCommunicate OK [07:01:23]SAM_PROTO_GetShiftState done [07:01:23]FM_GetShiftState done [07:01:23]req_shift_opened done [07:01:23]requested_item shift.open_date is exist - process it [07:01:23]req_shift_open_date [07:01:23]req_shift_open_date done [07:01:23]produce_requested_data done [07:01:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162388,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:01:23]process_action_free close_receipt [07:01:23]json_value_free [07:01:23]json_value_free done [07:01:23]process_json_proto returns [07:01:23]Send response to host [07:01:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162388,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:01:23]free response buf [07:01:23]execute_script done [07:01:23]execute_script returns [07:01:23]free content buf [07:01:23]Sock 8.Close socket [07:01:23]Sock 8.Thread stoped [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:01:57]accept exits with 9 [07:01:57]New connection [07:01:57]New thread 3067006308 created [07:01:57]Thread 3066862948 joined [07:01:57]Waiting for new connection... [07:01:57] Sock 9.Parse request [07:01:57]Sock 9.Check first char [07:01:57]Sock 9.First char is OK [07:01:57]request: POST /json_proto HTTP/1.0 [07:01:57]Method: POST [07:01:57]URL: /json_proto [07:01:57]Method is POST - this is cgi request [07:01:57]url: /json_proto [07:01:57]query_string will be loaded in cgi processing [07:01:57]execute_cgi json_proto POST (null) [07:01:57]execute_cgi path=json_proto method=POST [07:01:57]POST find Content-Length [07:01:57]Host: 172.17.39.67:8080 [07:01:57]Content-Length: 678 [07:01:57]Content-Type: application/json [07:01:57] [07:01:57]POST finish read [07:01:57]Found Content-Length = 678 [07:01:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.130, "sum" : 340.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:57]execute_script... [07:01:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318913", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.130, "sum" : 340.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:01:57]POST & json_proto [07:01:57]process_json_proto [07:01:57]json parsed OK: [07:01:57]protocol is kg_v1.0 [07:01:57]action value=close_receipt [07:01:57]process_action close_receipt [07:01:57]cmd_close_receipt [07:01:57]MH_GetDate [07:01:57]Write to MH i2c: F0 00 00 19 FD 05 [07:01:57]Write i2c OK [07:01:57]MH_I2C_Read... [07:01:57]Read from MH i2c: F0 [07:01:57]MH_I2C_Read... [07:01:57]Read from MH i2c: F0 09 00 [07:01:57]MH_I2C_Read... [07:01:57]Read from MH i2c: F0 09 00 19 FD 00 72 26 92 66 FA E9 8E 66 75 [07:01:57]GetLastDocTimeStamp 1720854091 [07:01:57]current date 1720854130 [07:01:57]FM_GetShiftState [07:01:57]SAM_PROTO_GetShiftState [07:01:57]wFMCommunicate request_size=4 [07:01:57]MH_SAM_APDU [07:01:57]CAPDU: 80 13 01 00 [07:01:57]Write to MH i2c: E2 08 00 1A FD 80 13 01 00 00 00 00 00 94 [07:01:57]Write i2c OK [07:01:57]MH_I2C_Read... [07:01:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:01:57]Read from MH i2c: E2 [07:01:57]MH_I2C_Read... [07:01:57]Read from MH i2c: E2 0E 00 [07:01:57]MH_I2C_Read... [07:01:57]Read from MH i2c: E2 0E 00 1A FD 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8E [07:01:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:01:57]wFMCommunicate OK [07:01:57]SAM_PROTO_GetShiftState done [07:01:57]FM_GetShiftState done [07:01:57]opened in 1720828979 [07:01:57]opened+sec_in_day 1720915379 [07:01:57]quantity*price = 34011 [07:01:57]sum+1 = 34013 [07:01:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.12 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 57 13.07.2024 07:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162389 ФПД: 176535894829669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070210&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162389&fm=176535894829669&tin=02508201610067®Number=0000000000090858&sum=34000 [07:01:58]StoreToDocumentArchive [07:01:58]shift 462 fd 162389 [07:01:58]save to /storage/0462/doc_00162389 [07:01:58]save last doc name /storage/0462/doc_00162389 to /storage/kkm_last_doc_name [07:01:58]save OK [07:01:58]Clear old archive folders... [07:01:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:01:58]tlvbuf is 017F4EA0 [07:01:58]SAM_PROTO_ClearQueue [07:01:58]wFMCommunicate request_size=4 [07:01:58]MH_SAM_APDU [07:01:58]CAPDU: 80 09 00 00 [07:01:58]Write to MH i2c: E2 08 00 27 FD 80 09 00 00 00 00 00 00 96 [07:01:58]Write i2c OK [07:01:58]MH_I2C_Read... [07:01:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:01:58]Read from MH i2c: E2 [07:01:58]MH_I2C_Read... [07:01:58]Read from MH i2c: E2 03 00 [07:01:58]MH_I2C_Read... [07:01:58]Read from MH i2c: E2 03 00 27 FD 00 90 00 98 [07:01:58]RAPDU: 90 00 [07:01:58]wFMCommunicate OK [07:01:58]SAM_PROTO_ClearQueue done [07:01:58]KKMCreateOFDPacket [07:01:58]OFDProtocolAddRootSTLVToBuf [07:01:58]FM_MakeSignedData [07:01:58]FM_MakeSignedData [07:01:58]SAM_PROTO_SignData [07:01:58]wFMCommunicate request_size=4 [07:01:58]MH_SAM_APDU [07:01:58]CAPDU: 80 0D 01 02 [07:01:58]Write to MH i2c: E2 08 00 28 FD 80 0D 01 02 00 00 00 00 9E [07:01:58]Write i2c OK [07:01:58]MH_I2C_Read... [07:01:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:01:58]Read from MH i2c: E2 [07:01:58]MH_I2C_Read... [07:01:58]Read from MH i2c: E2 03 00 [07:01:58]MH_I2C_Read... [07:01:58]Read from MH i2c: E2 03 00 28 FD 00 90 00 99 [07:01:58]RAPDU: 90 00 [07:01:58]wFMCommunicate OK [07:01:58]wFMCommunicate request_size=255 [07:01:58]MH_SAM_APDU [07:01:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 72 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7A 02 00 35 04 06 00 A0 [07:01:58]Write to MH i2c: E2 02 01 29 FD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 72 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7A 02 00 35 04 06 00 A0 00 00 40 [07:01:58]Write i2c OK [07:01:58]MH_I2C_Read... [07:01:58]Read from MH i2c: E2 [07:01:58]MH_I2C_Read... [07:01:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:58]Read from MH i2c: E2 03 00 [07:01:58]MH_I2C_Read... [07:01:58]Read from MH i2c: E2 03 00 29 FD 00 90 00 9A [07:01:58]RAPDU: 90 00 [07:01:58]wFMCommunicate OK [07:01:58]wFMCommunicate request_size=10 [07:01:58]MH_SAM_APDU [07:01:58]CAPDU: 80 0D 02 02 05 8E F7 4D 2A 65 [07:01:58]Write to MH i2c: E2 0D 00 2A FD 80 0D 02 02 05 00 8E F7 4D 2A 65 00 00 0C [07:01:58]Write i2c OK [07:01:58]MH_I2C_Read... [07:01:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:01:59]Read from MH i2c: E2 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: E2 03 00 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: E2 03 00 2A FD 00 90 00 9B [07:01:59]RAPDU: 90 00 [07:01:59]wFMCommunicate OK [07:01:59]wFMCommunicate request_size=4 [07:01:59]MH_SAM_APDU [07:01:59]CAPDU: 80 0D 03 02 [07:01:59]Write to MH i2c: E2 08 00 2B FD 80 0D 03 02 00 00 00 00 A3 [07:01:59]Write i2c OK [07:01:59]MH_I2C_Read... [07:01:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:01:59]Read from MH i2c: E2 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: E2 0B 00 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: E2 0B 00 2B FD 00 DF 79 63 CB F0 26 20 86 90 00 E6 [07:01:59]RAPDU: DF 79 63 CB F0 26 20 86 90 00 [07:01:59]wFMCommunicate OK [07:01:59]SAM_PROTO_SignData done [07:01:59]FM_MakeSignedData done [07:01:59]CreateOFDProtocolMessage [07:01:59]wFMCommunicate request_size=4 [07:01:59]MH_SAM_APDU [07:01:59]CAPDU: 80 11 00 00 [07:01:59]Write to MH i2c: E2 08 00 2C FD 80 11 00 00 00 00 00 00 A3 [07:01:59]Write i2c OK [07:01:59]MH_I2C_Read... [07:01:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:01:59]Read from MH i2c: E2 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: E2 17 00 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: E2 17 00 2C FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [07:01:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:01:59]wFMCommunicate OK [07:01:59]CreateOFDProtocolMessage done [07:01:59]OFDSenderStorePacket 162389 [07:01:59]StoreOFDPacket docnum=162389 [07:01:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 89 3B 07 01 4C 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 72 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7A 02 00 35 04 06 00 A0 8E F7 4D 2A 65 DF 79 63 CB F0 26 20 86 [07:01:59]CheckFolder [07:01:59]dirname=/storage/ofd_packets [07:01:59]CheckFolder done [07:01:59]ProducePacketName [07:01:59]name=ofd_packets/00162389 [07:01:59]NVStorageSaveData ofd_packets/00162389 [07:01:59]File name is /storage/ofd_packets/00162389 [07:01:59]Write 301 bytes [07:01:59]NVStorageSaveData done [07:01:59]OFDSenderStorePacket done [07:01:59]KKMCreateOFDPacket done [07:01:59]NVStorageSaveData kkm_last_timestamp [07:01:59]File name is /storage/kkm_last_timestamp [07:01:59]Write 4 bytes [07:01:59]NVStorageSaveData done [07:01:59]ExternCall_PrintAddStr [07:01:59]wPrintStart [07:01:59]Write to MH i2c: 01 00 00 2D FD 2A [07:01:59]Write i2c OK [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: 01 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: 01 07 00 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: 01 07 00 2D FD 00 00 00 00 00 FF 0F 3F [07:01:59]RasterBufferAndPrint [07:01:59]line Счет N : (1)1318913 [07:01:59]line ИНН: 02508201610067 [07:01:59]line Контрольно-Кассовый Чек [07:01:59]line ПРОДАЖА [07:01:59]line ТРК (МРК, ГНК) : 33 [07:01:59]line Товар: 2710124130 [07:01:59]line Аи-92-К-5 [07:01:59]line 5.130 * 66.30 [07:01:59]line = 340.12 [07:01:59]line НДС 12% НСП 1% [07:01:59]line > о реализуемом товаре [07:01:59]line ОКРУГЛЕНИЕ: -0.12 [07:01:59]line ИТОГО: 340.00 [07:01:59]line Внесено: 340.00 [07:01:59]line СДАЧА: 0.00 [07:01:59]line НСП 1% : 3.01 [07:01:59]line НДС 12% : 36.12 [07:01:59]line Наличными: 340.00 [07:01:59]line Безнал.: 0.00 [07:01:59]line Место: АЗС № 140 "Партнер Нефть" [07:01:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:01:59]line СНО: Общий режим [07:01:59]line Чек 57 13.07.2024 07:02 [07:01:59]line Смена: 462 ФФД: 1.0 [07:01:59]line ЗНМ: 0300000129 [07:01:59]line РНМ: 0000000000090858 [07:01:59]line Версия ККМ: 001 [07:01:59]line ФМ: 0000000000874899 [07:01:59]line ФД: 162389 [07:01:59]line ФПД: 176535894829669 [07:01:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070210&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162389&fm=176535894829669&tin=02508201610067®Number=0000000000090858&sum=34000 [07:01:59]OFD Sender: Processing packet 162389 [packets to send 105, broken 104] [07:01:59]ProducePacketName [07:01:59]name=ofd_packets/00162389 [07:01:59]OFD Sender: To server: pG, [07:01:59]CommunicateWithHost lk.salyk.kg:30040 [07:01:59]ConnectInit lk.salyk.kg [07:01:59]written 0, free lines is 4095 [07:01:59]Connected sock=10 [07:01:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 89 3B 07 01 4C 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DC 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 72 26 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7A 02 00 35 04 06 00 A0 8E F7 4D 2A 65 DF 79 63 CB F0 26 20 86 [07:01:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 91 4A 47 00 9C B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7A 02 00 F4 03 04 00 87 D2 91 66 B6 04 01 00 00 FF 0D 21 7D F4 5B 86 7B [07:01:59]CommunicateWithHost err = 0 [07:01:59]CheckOFDResponse [07:01:59]1017 (14) - 77093643461234 [07:01:59]1041 (16) - 0000000000874899 [07:01:59]1040 (4) - 162389 [07:01:59]1012 (4) - 13.07.2024 01:04 [07:01:59]1206 (1) - 0 [07:01:59]OFD Sender: Remove packet 162389 [07:01:59]ProducePacketName [07:01:59]name=ofd_packets/00162389 [07:01:59]NVStorageDeleteData [07:01:59]Write to MH i2c: 01 00 00 58 FD 55 [07:01:59]Write i2c OK [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: 01 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: 01 07 00 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: 01 07 00 58 FD 00 00 00 00 00 E8 0C 50 [07:01:59]RasterBufferAndPrint [07:01:59]line [07:01:59]line [07:01:59]line [07:01:59]line [07:01:59]line [07:01:59]written 0, free lines is 3310 [07:01:59]MH_Cut [07:01:59]Write to MH i2c: D1 01 00 5F FD 01 2E [07:01:59]Write i2c OK [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: D1 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: D1 01 00 [07:01:59]MH_I2C_Read... [07:01:59]Read from MH i2c: D1 01 00 5F FD 00 2D [07:01:59]Write to MH i2c: 01 00 00 60 FD 5D [07:01:59]Write i2c OK [07:01:59]MH_I2C_Read... [07:02:00]OFD Sender: No OFD packet to send [07:02:00]*** Cut start [07:02:00]*** Purtial cut [07:02:00]*** Stage 1: CUTSNS_PIN = 1 [07:02:00]Read from MH i2c: 01 [07:02:00]MH_I2C_Read... [07:02:00]*** Stop cut motor [07:02:00]*** Cut end [07:02:00]Read from MH i2c: 01 07 00 [07:02:00]MH_I2C_Read... [07:02:00]Read from MH i2c: 01 07 00 60 FD 00 00 00 00 00 FF 0F 72 [07:02:00]process_action close_receipt done [07:02:00]requested_data is exist [07:02:00]produce_requested_data [07:02:00]requested_item fm.sn is exist - process it [07:02:00]wFMCommunicate request_size=4 [07:02:00]MH_SAM_APDU [07:02:00]CAPDU: 80 11 00 00 [07:02:00]Write to MH i2c: E2 08 00 61 FD 80 11 00 00 00 00 00 00 D8 [07:02:00]Write i2c OK [07:02:00]MH_I2C_Read... [07:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:02:00]Read from MH i2c: E2 [07:02:00]MH_I2C_Read... [07:02:00]Read from MH i2c: E2 17 00 [07:02:00]MH_I2C_Read... [07:02:00]Read from MH i2c: E2 17 00 61 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 38 [07:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:02:00]wFMCommunicate OK [07:02:00]requested_item fd.num is exist - process it [07:02:00]SAM_PROTO_GetFieldsCounters [07:02:00]wFMCommunicate request_size=4 [07:02:00]MH_SAM_APDU [07:02:00]CAPDU: 80 13 00 00 [07:02:00]Write to MH i2c: E2 08 00 62 FD 80 13 00 00 00 00 00 00 DB [07:02:00]Write i2c OK [07:02:00]MH_I2C_Read... [07:02:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:02:01]Read from MH i2c: E2 [07:02:01]MH_I2C_Read... [07:02:01]Read from MH i2c: E2 62 00 [07:02:01]MH_I2C_Read... [07:02:01]Read from MH i2c: E2 62 00 62 FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 55 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [07:02:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 55 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:02:01]wFMCommunicate OK [07:02:01]SAM_PROTO_GetFieldsCounters done [07:02:01]requested_item shift.num is exist - process it [07:02:01]requested_item shift.opened is exist - process it [07:02:01]req_shift_opened [07:02:01]FM_GetShiftState [07:02:01]SAM_PROTO_GetShiftState [07:02:01]wFMCommunicate request_size=4 [07:02:01]MH_SAM_APDU [07:02:01]CAPDU: 80 13 01 00 [07:02:01]Write to MH i2c: E2 08 00 63 FD 80 13 01 00 00 00 00 00 DD [07:02:01]Write i2c OK [07:02:01]MH_I2C_Read... [07:02:01]Read from MH i2c: E2 [07:02:01]MH_I2C_Read... [07:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:02:01]Read from MH i2c: E2 0E 00 [07:02:01]MH_I2C_Read... [07:02:01]Read from MH i2c: E2 0E 00 63 FD 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D7 [07:02:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:02:01]wFMCommunicate OK [07:02:01]SAM_PROTO_GetShiftState done [07:02:01]FM_GetShiftState done [07:02:01]req_shift_opened done [07:02:01]requested_item shift.open_date is exist - process it [07:02:01]req_shift_open_date [07:02:01]req_shift_open_date done [07:02:01]produce_requested_data done [07:02:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162389,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:02:01]process_action_free close_receipt [07:02:01]json_value_free [07:02:01]json_value_free done [07:02:01]process_json_proto returns [07:02:01]Send response to host [07:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162389,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:02:01]free response buf [07:02:01]execute_script done [07:02:01]execute_script returns [07:02:01]free content buf [07:02:01]Sock 9.Close socket [07:02:01]Sock 9.Thread stoped [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:20]OFD Sender: No OFD packet to send [07:04:25]OFD Sender: No OFD packet to send [07:04:30]OFD Sender: No OFD packet to send [07:04:35]OFD Sender: No OFD packet to send [07:04:40]OFD Sender: No OFD packet to send [07:04:45]OFD Sender: No OFD packet to send [07:04:50]OFD Sender: No OFD packet to send [07:04:55]OFD Sender: No OFD packet to send [07:05:00]OFD Sender: No OFD packet to send [07:05:05]OFD Sender: No OFD packet to send [07:05:10]OFD Sender: No OFD packet to send [07:05:15]OFD Sender: No OFD packet to send [07:05:20]OFD Sender: No OFD packet to send [07:05:25]OFD Sender: No OFD packet to send [07:05:30]OFD Sender: No OFD packet to send [07:05:35]OFD Sender: No OFD packet to send [07:05:40]OFD Sender: No OFD packet to send [07:05:45]OFD Sender: No OFD packet to send [07:05:50]OFD Sender: No OFD packet to send [07:05:55]OFD Sender: No OFD packet to send [07:06:00]OFD Sender: No OFD packet to send [07:06:05]OFD Sender: No OFD packet to send [07:06:08]accept exits with 8 [07:06:08]New connection [07:06:08]New thread 3066862948 created [07:06:08]Thread 3067006308 joined [07:06:08]Waiting for new connection... [07:06:08] Sock 8.Parse request [07:06:08]Sock 8.Check first char [07:06:08]Sock 8.First char is OK [07:06:08]request: POST /json_proto HTTP/1.0 [07:06:08]Method: POST [07:06:08]URL: /json_proto [07:06:08]Method is POST - this is cgi request [07:06:08]url: /json_proto [07:06:08]query_string will be loaded in cgi processing [07:06:08]execute_cgi json_proto POST (null) [07:06:08]execute_cgi path=json_proto method=POST [07:06:08]POST find Content-Length [07:06:08]Host: 172.17.39.67:8080 [07:06:08]Content-Length: 671 [07:06:08]Content-Type: application/json [07:06:08] [07:06:08]POST finish read [07:06:08]Found Content-Length = 671 [07:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:08]execute_script... [07:06: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)1318914", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:08]POST & json_proto [07:06:08]process_json_proto [07:06:08]json parsed OK: [07:06:08]protocol is kg_v1.0 [07:06:08]action value=close_receipt [07:06:08]process_action close_receipt [07:06:08]cmd_close_receipt [07:06:08]MH_GetDate [07:06:08]Write to MH i2c: F0 00 00 64 FD 50 [07:06:08]Write i2c OK [07:06:08]MH_I2C_Read... [07:06:08]Read from MH i2c: F0 [07:06:08]MH_I2C_Read... [07:06:08]Read from MH i2c: F0 09 00 [07:06:08]MH_I2C_Read... [07:06:08]Read from MH i2c: F0 09 00 64 FD 00 6E 27 92 66 FA E9 8E 66 BD [07:06:08]GetLastDocTimeStamp 1720854130 [07:06:08]current date 1720854382 [07:06:08]FM_GetShiftState [07:06:08]SAM_PROTO_GetShiftState [07:06:08]wFMCommunicate request_size=4 [07:06:08]MH_SAM_APDU [07:06:08]CAPDU: 80 13 01 00 [07:06:08]Write to MH i2c: E2 08 00 65 FD 80 13 01 00 00 00 00 00 DF [07:06:08]Write i2c OK [07:06:08]MH_I2C_Read... [07:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:09]Read from MH i2c: E2 [07:06:09]MH_I2C_Read... [07:06:09]Read from MH i2c: E2 0E 00 [07:06:09]MH_I2C_Read... [07:06:09]Read from MH i2c: E2 0E 00 65 FD 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D9 [07:06:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:06:09]wFMCommunicate OK [07:06:09]SAM_PROTO_GetShiftState done [07:06:09]FM_GetShiftState done [07:06:09]opened in 1720828979 [07:06:09]opened+sec_in_day 1720915379 [07:06:09]quantity*price = 50003 [07:06:09]sum+1 = 50005 [07:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 58 13.07.2024 07:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162390 ФПД: 14982332799034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070622&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162390&fm=14982332799034&tin=02508201610067®Number=0000000000090858&sum=50000 [07:06:10]StoreToDocumentArchive [07:06:10]shift 462 fd 162390 [07:06:10]save to /storage/0462/doc_00162390 [07:06:10]save last doc name /storage/0462/doc_00162390 to /storage/kkm_last_doc_name [07:06:10]save OK [07:06:10]Clear old archive folders... [07:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:06:10]tlvbuf is 01950CB0 [07:06:10]SAM_PROTO_ClearQueue [07:06:10]wFMCommunicate request_size=4 [07:06:10]MH_SAM_APDU [07:06:10]CAPDU: 80 09 00 00 [07:06:10]Write to MH i2c: E2 08 00 72 FD 80 09 00 00 00 00 00 00 E1 [07:06:10]Write i2c OK [07:06:10]MH_I2C_Read... [07:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:10]Read from MH i2c: E2 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 03 00 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 03 00 72 FD 00 90 00 E3 [07:06:10]RAPDU: 90 00 [07:06:10]wFMCommunicate OK [07:06:10]SAM_PROTO_ClearQueue done [07:06:10]KKMCreateOFDPacket [07:06:10]OFDProtocolAddRootSTLVToBuf [07:06:10]FM_MakeSignedData [07:06:10]FM_MakeSignedData [07:06:10]SAM_PROTO_SignData [07:06:10]wFMCommunicate request_size=4 [07:06:10]MH_SAM_APDU [07:06:10]CAPDU: 80 0D 01 02 [07:06:10]Write to MH i2c: E2 08 00 73 FD 80 0D 01 02 00 00 00 00 E9 [07:06:10]Write i2c OK [07:06:10]MH_I2C_Read... [07:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:10]Read from MH i2c: E2 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 03 00 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 03 00 73 FD 00 90 00 E4 [07:06:10]RAPDU: 90 00 [07:06:10]wFMCommunicate OK [07:06:10]wFMCommunicate request_size=255 [07:06:10]MH_SAM_APDU [07:06:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 6E 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7A 02 00 35 04 06 00 [07:06:10]Write to MH i2c: E2 02 01 74 FD 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 6E 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7A 02 00 35 04 06 00 00 00 E8 [07:06:10]Write i2c OK [07:06:10]MH_I2C_Read... [07:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:10]Read from MH i2c: E2 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 03 00 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 03 00 74 FD 00 90 00 E5 [07:06:10]RAPDU: 90 00 [07:06:10]wFMCommunicate OK [07:06:10]wFMCommunicate request_size=11 [07:06:10]MH_SAM_APDU [07:06:10]CAPDU: 80 0D 02 02 06 0D A0 58 9F D8 3A [07:06:10]Write to MH i2c: E2 0E 00 75 FD 80 0D 02 02 06 00 0D A0 58 9F D8 3A 00 00 AE [07:06:10]Write i2c OK [07:06:10]MH_I2C_Read... [07:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:10]Read from MH i2c: E2 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 03 00 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 03 00 75 FD 00 90 00 E6 [07:06:10]RAPDU: 90 00 [07:06:10]wFMCommunicate OK [07:06:10]wFMCommunicate request_size=4 [07:06:10]MH_SAM_APDU [07:06:10]CAPDU: 80 0D 03 02 [07:06:10]Write to MH i2c: E2 08 00 76 FD 80 0D 03 02 00 00 00 00 EE [07:06:10]Write i2c OK [07:06:10]MH_I2C_Read... [07:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:10]OFD Sender: No OFD packet to send [07:06:10]Read from MH i2c: E2 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 0B 00 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 0B 00 76 FD 00 AE F9 F3 51 73 54 42 D5 90 00 B8 [07:06:10]RAPDU: AE F9 F3 51 73 54 42 D5 90 00 [07:06:10]wFMCommunicate OK [07:06:10]SAM_PROTO_SignData done [07:06:10]FM_MakeSignedData done [07:06:10]CreateOFDProtocolMessage [07:06:10]wFMCommunicate request_size=4 [07:06:10]MH_SAM_APDU [07:06:10]CAPDU: 80 11 00 00 [07:06:10]Write to MH i2c: E2 08 00 77 FD 80 11 00 00 00 00 00 00 EE [07:06:10]Write i2c OK [07:06:10]MH_I2C_Read... [07:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:10]Read from MH i2c: E2 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 17 00 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: E2 17 00 77 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [07:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:06:10]wFMCommunicate OK [07:06:10]CreateOFDProtocolMessage done [07:06:10]OFDSenderStorePacket 162390 [07:06:10]StoreOFDPacket docnum=162390 [07:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 31 84 08 01 4A 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 6E 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7A 02 00 35 04 06 00 0D A0 58 9F D8 3A AE F9 F3 51 73 54 42 D5 [07:06:10]CheckFolder [07:06:10]dirname=/storage/ofd_packets [07:06:10]CheckFolder done [07:06:10]ProducePacketName [07:06:10]name=ofd_packets/00162390 [07:06:10]NVStorageSaveData ofd_packets/00162390 [07:06:10]File name is /storage/ofd_packets/00162390 [07:06:10]Write 302 bytes [07:06:10]NVStorageSaveData done [07:06:10]OFDSenderStorePacket done [07:06:10]KKMCreateOFDPacket done [07:06:10]NVStorageSaveData kkm_last_timestamp [07:06:10]File name is /storage/kkm_last_timestamp [07:06:10]Write 4 bytes [07:06:10]NVStorageSaveData done [07:06:10]ExternCall_PrintAddStr [07:06:10]wPrintStart [07:06:10]Write to MH i2c: 01 00 00 78 FD 75 [07:06:10]Write i2c OK [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: 01 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: 01 07 00 [07:06:10]MH_I2C_Read... [07:06:10]Read from MH i2c: 01 07 00 78 FD 00 00 00 00 00 FF 0F 8A [07:06:10]RasterBufferAndPrint [07:06:10]line Счет N : (1)1318914 [07:06:10]line ИНН: 02508201610067 [07:06:10]line Контрольно-Кассовый Чек [07:06:10]line ПРОДАЖА [07:06:10]line ТРК (МРК, ГНК) : 42 [07:06:10]line Товар: 2710124130 [07:06:10]line Super-92-К-5 [07:06:10]line 7.430 * 67.30 [07:06:10]line = 500.04 [07:06:10]line НДС 12% НСП 1% [07:06:10]line > о реализуемом товаре [07:06:10]line ОКРУГЛЕНИЕ: -0.04 [07:06:10]line ИТОГО: 500.00 [07:06:10]line Внесено: 500.00 [07:06:10]line СДАЧА: 0.00 [07:06:10]line НСП 1% : 4.42 [07:06:10]line НДС 12% : 53.10 [07:06:10]line Наличными: 500.00 [07:06:10]line Безнал.: 0.00 [07:06:10]line Место: АЗС № 140 "Партнер Нефть" [07:06:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:06:10]line СНО: Общий режим [07:06:10]line Чек 58 13.07.2024 07:06 [07:06:10]line Смена: 462 ФФД: 1.0 [07:06:10]line ЗНМ: 0300000129 [07:06:10]line РНМ: 0000000000090858 [07:06:10]line Версия ККМ: 001 [07:06:10]line ФМ: 0000000000874899 [07:06:10]line ФД: 162390 [07:06:10]line ФПД: 14982332799034 [07:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070622&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162390&fm=14982332799034&tin=02508201610067®Number=0000000000090858&sum=50000 [07:06:11]OFD Sender: Processing packet 162390 [packets to send 105, broken 104] [07:06:11]ProducePacketName [07:06:11]name=ofd_packets/00162390 [07:06:11]OFD Sender: To server: pG, [07:06:11]CommunicateWithHost lk.salyk.kg:30040 [07:06:11]ConnectInit lk.salyk.kg [07:06:11]written 0, free lines is 4095 [07:06:11]Connected sock=10 [07:06:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 31 84 08 01 4A 9E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 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 6E 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7A 02 00 35 04 06 00 0D A0 58 9F D8 3A AE F9 F3 51 73 54 42 D5 [07:06:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D9 1A 47 00 01 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7A 02 00 F4 03 04 00 83 D3 91 66 B6 04 01 00 00 03 5A 17 C3 42 79 59 73 [07:06:11]CommunicateWithHost err = 0 [07:06:11]CheckOFDResponse [07:06:11]1017 (14) - 77093643461234 [07:06:11]1041 (16) - 0000000000874899 [07:06:11]1040 (4) - 162390 [07:06:11]1012 (4) - 13.07.2024 01:08 [07:06:11]1206 (1) - 0 [07:06:11]OFD Sender: Remove packet 162390 [07:06:11]ProducePacketName [07:06:11]name=ofd_packets/00162390 [07:06:11]NVStorageDeleteData [07:06:11]Write to MH i2c: 01 00 00 A3 FD A0 [07:06:11]Write i2c OK [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: 01 [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: 01 07 00 [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: 01 07 00 A3 FD 00 00 00 00 00 EB 0C 9E [07:06:11]RasterBufferAndPrint [07:06:11]line [07:06:11]line [07:06:11]line [07:06:11]line [07:06:11]line [07:06:11]written 0, free lines is 3313 [07:06:11]MH_Cut [07:06:11]Write to MH i2c: D1 01 00 AA FD 01 79 [07:06:11]Write i2c OK [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: D1 [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: D1 01 00 [07:06:11]MH_I2C_Read... [07:06:11]Read from MH i2c: D1 01 00 AA FD 00 78 [07:06:11]Write to MH i2c: 01 00 00 AB FD A8 [07:06:11]Write i2c OK [07:06:11]MH_I2C_Read... [07:06:11]OFD Sender: No OFD packet to send [07:06:12]*** Cut start [07:06:12]*** Purtial cut [07:06:12]*** CUTSNS_PIN = 0 [07:06:12]*** Stage 1: CUTSNS_PIN = 1 [07:06:14]Read from MH i2c: 01 [07:06:14]MH_I2C_Read... [07:06:14]*** Stop cut motor [07:06:14]*** Cut end [07:06:14]Read from MH i2c: 01 07 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: 01 07 00 AB FD 00 00 00 00 00 FF 0F BD [07:06:14]process_action close_receipt done [07:06:14]requested_data is exist [07:06:14]produce_requested_data [07:06:14]requested_item fm.sn is exist - process it [07:06:14]wFMCommunicate request_size=4 [07:06:14]MH_SAM_APDU [07:06:14]CAPDU: 80 11 00 00 [07:06:14]Write to MH i2c: E2 08 00 AC FD 80 11 00 00 00 00 00 00 23 [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:14]Read from MH i2c: E2 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: E2 17 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: E2 17 00 AC FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [07:06:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:06:14]wFMCommunicate OK [07:06:14]requested_item fd.num is exist - process it [07:06:14]SAM_PROTO_GetFieldsCounters [07:06:14]wFMCommunicate request_size=4 [07:06:14]MH_SAM_APDU [07:06:14]CAPDU: 80 13 00 00 [07:06:14]Write to MH i2c: E2 08 00 AD FD 80 13 00 00 00 00 00 00 26 [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:14]Read from MH i2c: E2 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: E2 62 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: E2 62 00 AD FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [07: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:14]wFMCommunicate OK [07:06:14]SAM_PROTO_GetFieldsCounters done [07:06:14]requested_item shift.num is exist - process it [07:06:14]requested_item shift.opened is exist - process it [07:06:14]req_shift_opened [07:06:14]FM_GetShiftState [07:06:14]SAM_PROTO_GetShiftState [07:06:14]wFMCommunicate request_size=4 [07:06:14]MH_SAM_APDU [07:06:14]CAPDU: 80 13 01 00 [07:06:14]Write to MH i2c: E2 08 00 AE FD 80 13 01 00 00 00 00 00 28 [07:06:14]Write i2c OK [07:06:14]MH_I2C_Read... [07:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:14]Read from MH i2c: E2 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: E2 0E 00 [07:06:14]MH_I2C_Read... [07:06:14]Read from MH i2c: E2 0E 00 AE FD 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 22 [07:06:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:06:14]wFMCommunicate OK [07:06:14]SAM_PROTO_GetShiftState done [07:06:14]FM_GetShiftState done [07:06:14]req_shift_opened done [07:06:14]requested_item shift.open_date is exist - process it [07:06:14]req_shift_open_date [07:06:14]req_shift_open_date done [07:06:14]produce_requested_data done [07:06:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162390,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:06:14]process_action_free close_receipt [07:06:14]json_value_free [07:06:14]json_value_free done [07:06:14]process_json_proto returns [07:06:14]Send response to host [07:06:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162390,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:06:14]free response buf [07:06:14]execute_script done [07:06:14]execute_script returns [07:06:14]free content buf [07:06:14]Sock 8.Close socket [07:06:14]Sock 8.Thread stoped [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]accept exits with 9 [07:07:31]New connection [07:07:31]New thread 3067006308 created [07:07:31]Thread 3066862948 joined [07:07:31]Waiting for new connection... [07:07:31] Sock 9.Parse request [07:07:31]Sock 9.Check first char [07:07:31]Sock 9.First char is OK [07:07:31]request: POST /json_proto HTTP/1.0 [07:07:31]Method: POST [07:07:31]URL: /json_proto [07:07:31]Method is POST - this is cgi request [07:07:31]url: /json_proto [07:07:31]query_string will be loaded in cgi processing [07:07:31]execute_cgi json_proto POST (null) [07:07:31]execute_cgi path=json_proto method=POST [07:07:31]POST find Content-Length [07:07:31]Host: 172.17.39.67:8080 [07:07:31]Content-Length: 678 [07:07:31]Content-Type: application/json [07:07:31] [07:07:31]POST finish read [07:07:31]Found Content-Length = 678 [07:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:31]execute_script... [07:07: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)1318915", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:31]POST & json_proto [07:07:31]process_json_proto [07:07:31]json parsed OK: [07:07:31]protocol is kg_v1.0 [07:07:31]action value=close_receipt [07:07:31]process_action close_receipt [07:07:31]cmd_close_receipt [07:07:31]MH_GetDate [07:07:31]Write to MH i2c: F0 00 00 AF FD 9B [07:07:31]Write i2c OK [07:07:31]MH_I2C_Read... [07:07:31]Read from MH i2c: F0 [07:07:31]MH_I2C_Read... [07:07:31]Read from MH i2c: F0 09 00 [07:07:31]MH_I2C_Read... [07:07:31]Read from MH i2c: F0 09 00 AF FD 00 C0 27 92 66 FA E9 8E 66 5A [07:07:31]GetLastDocTimeStamp 1720854382 [07:07:31]current date 1720854464 [07:07:31]FM_GetShiftState [07:07:31]SAM_PROTO_GetShiftState [07:07:31]wFMCommunicate request_size=4 [07:07:31]MH_SAM_APDU [07:07:31]CAPDU: 80 13 01 00 [07:07:31]Write to MH i2c: E2 08 00 B0 FD 80 13 01 00 00 00 00 00 2A [07:07:31]Write i2c OK [07:07:31]MH_I2C_Read... [07:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:31]Read from MH i2c: E2 [07:07:31]MH_I2C_Read... [07:07:31]Read from MH i2c: E2 0E 00 [07:07:31]MH_I2C_Read... [07:07:31]Read from MH i2c: E2 0E 00 B0 FD 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 24 [07:07:31]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:07:31]wFMCommunicate OK [07:07:31]SAM_PROTO_GetShiftState done [07:07:31]FM_GetShiftState done [07:07:31]opened in 1720828979 [07:07:31]opened+sec_in_day 1720915379 [07:07:31]quantity*price = 50056 [07:07:31]sum+1 = 50058 [07:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 59 13.07.2024 07:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162391 ФПД: 211036771783418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070744&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162391&fm=211036771783418&tin=02508201610067®Number=0000000000090858&sum=50000 [07:07:32]StoreToDocumentArchive [07:07:32]shift 462 fd 162391 [07:07:32]save to /storage/0462/doc_00162391 [07:07:32]save last doc name /storage/0462/doc_00162391 to /storage/kkm_last_doc_name [07:07:32]save OK [07:07:32]Clear old archive folders... [07:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:07:32]tlvbuf is 01C8BCA0 [07:07:32]SAM_PROTO_ClearQueue [07:07:32]wFMCommunicate request_size=4 [07:07:32]MH_SAM_APDU [07:07:32]CAPDU: 80 09 00 00 [07:07:32]Write to MH i2c: E2 08 00 BD FD 80 09 00 00 00 00 00 00 2C [07:07:32]Write i2c OK [07:07:32]MH_I2C_Read... [07:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:32]Read from MH i2c: E2 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 03 00 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 03 00 BD FD 00 90 00 2E [07:07:32]RAPDU: 90 00 [07:07:32]wFMCommunicate OK [07:07:32]SAM_PROTO_ClearQueue done [07:07:32]KKMCreateOFDPacket [07:07:32]OFDProtocolAddRootSTLVToBuf [07:07:32]FM_MakeSignedData [07:07:32]FM_MakeSignedData [07:07:32]SAM_PROTO_SignData [07:07:32]wFMCommunicate request_size=4 [07:07:32]MH_SAM_APDU [07:07:32]CAPDU: 80 0D 01 02 [07:07:32]Write to MH i2c: E2 08 00 BE FD 80 0D 01 02 00 00 00 00 34 [07:07:32]Write i2c OK [07:07:32]MH_I2C_Read... [07:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:32]Read from MH i2c: E2 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 03 00 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 03 00 BE FD 00 90 00 2F [07:07:32]RAPDU: 90 00 [07:07:32]wFMCommunicate OK [07:07:32]wFMCommunicate request_size=255 [07:07:32]MH_SAM_APDU [07:07:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C0 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7A 02 00 35 04 06 00 BF [07:07:32]Write to MH i2c: E2 02 01 BF FD 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C0 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7A 02 00 35 04 06 00 BF 00 00 6B [07:07:32]Write i2c OK [07:07:32]MH_I2C_Read... [07:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:32]Read from MH i2c: E2 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 03 00 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 03 00 BF FD 00 90 00 30 [07:07:32]RAPDU: 90 00 [07:07:32]wFMCommunicate OK [07:07:32]wFMCommunicate request_size=10 [07:07:32]MH_SAM_APDU [07:07:32]CAPDU: 80 0D 02 02 05 EF D3 D1 12 FA [07:07:32]Write to MH i2c: E2 0D 00 C0 FD 80 0D 02 02 05 00 EF D3 D1 12 FA 00 00 E0 [07:07:32]Write i2c OK [07:07:32]MH_I2C_Read... [07:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:32]Read from MH i2c: E2 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 03 00 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 03 00 C0 FD 00 90 00 31 [07:07:32]RAPDU: 90 00 [07:07:32]wFMCommunicate OK [07:07:32]wFMCommunicate request_size=4 [07:07:32]MH_SAM_APDU [07:07:32]CAPDU: 80 0D 03 02 [07:07:32]Write to MH i2c: E2 08 00 C1 FD 80 0D 03 02 00 00 00 00 39 [07:07:32]Write i2c OK [07:07:32]MH_I2C_Read... [07:07:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:32]Read from MH i2c: E2 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 0B 00 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 0B 00 C1 FD 00 04 63 02 A3 DB C8 26 F2 90 00 01 [07:07:32]RAPDU: 04 63 02 A3 DB C8 26 F2 90 00 [07:07:32]wFMCommunicate OK [07:07:32]SAM_PROTO_SignData done [07:07:32]FM_MakeSignedData done [07:07:32]CreateOFDProtocolMessage [07:07:32]wFMCommunicate request_size=4 [07:07:32]MH_SAM_APDU [07:07:32]CAPDU: 80 11 00 00 [07:07:32]Write to MH i2c: E2 08 00 C2 FD 80 11 00 00 00 00 00 00 39 [07:07:32]Write i2c OK [07:07:32]MH_I2C_Read... [07:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:32]Read from MH i2c: E2 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 17 00 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: E2 17 00 C2 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [07:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:07:32]wFMCommunicate OK [07:07:32]CreateOFDProtocolMessage done [07:07:32]OFDSenderStorePacket 162391 [07:07:32]StoreOFDPacket docnum=162391 [07:07:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 50 9C 07 01 17 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C0 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7A 02 00 35 04 06 00 BF EF D3 D1 12 FA 04 63 02 A3 DB C8 26 F2 [07:07:32]CheckFolder [07:07:32]dirname=/storage/ofd_packets [07:07:32]CheckFolder done [07:07:32]ProducePacketName [07:07:32]name=ofd_packets/00162391 [07:07:32]NVStorageSaveData ofd_packets/00162391 [07:07:32]File name is /storage/ofd_packets/00162391 [07:07:32]Write 301 bytes [07:07:32]NVStorageSaveData done [07:07:32]OFDSenderStorePacket done [07:07:32]KKMCreateOFDPacket done [07:07:32]NVStorageSaveData kkm_last_timestamp [07:07:32]File name is /storage/kkm_last_timestamp [07:07:32]Write 4 bytes [07:07:32]NVStorageSaveData done [07:07:32]ExternCall_PrintAddStr [07:07:32]wPrintStart [07:07:32]Write to MH i2c: 01 00 00 C3 FD C0 [07:07:32]Write i2c OK [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: 01 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: 01 07 00 [07:07:32]MH_I2C_Read... [07:07:32]Read from MH i2c: 01 07 00 C3 FD 00 00 00 00 00 FF 0F D5 [07:07:32]RasterBufferAndPrint [07:07:32]line Счет N : (1)1318915 [07:07:32]line ИНН: 02508201610067 [07:07:32]line Контрольно-Кассовый Чек [07:07:32]line ПРОДАЖА [07:07:32]line ТРК (МРК, ГНК) : 33 [07:07:32]line Товар: 2710124130 [07:07:32]line Аи-92-К-5 [07:07:32]line 7.550 * 66.30 [07:07:32]line = 500.57 [07:07:32]line НДС 12% НСП 1% [07:07:32]line > о реализуемом товаре [07:07:32]line ОКРУГЛЕНИЕ: -0.57 [07:07:32]line ИТОГО: 500.00 [07:07:32]line Внесено: 500.00 [07:07:32]line СДАЧА: 0.00 [07:07:32]line НСП 1% : 4.43 [07:07:32]line НДС 12% : 53.16 [07:07:32]line Наличными: 500.00 [07:07:32]line Безнал.: 0.00 [07:07:32]line Место: АЗС № 140 "Партнер Нефть" [07:07:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:07:32]line СНО: Общий режим [07:07:32]line Чек 59 13.07.2024 07:07 [07:07:32]line Смена: 462 ФФД: 1.0 [07:07:32]line ЗНМ: 0300000129 [07:07:32]line РНМ: 0000000000090858 [07:07:32]line Версия ККМ: 001 [07:07:32]line ФМ: 0000000000874899 [07:07:32]line ФД: 162391 [07:07:32]line ФПД: 211036771783418 [07:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070744&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162391&fm=211036771783418&tin=02508201610067®Number=0000000000090858&sum=50000 [07:07:33]OFD Sender: Processing packet 162391 [packets to send 105, broken 104] [07:07:33]ProducePacketName [07:07:33]name=ofd_packets/00162391 [07:07:33]OFD Sender: To server: pG, [07:07:33]CommunicateWithHost lk.salyk.kg:30040 [07:07:33]ConnectInit lk.salyk.kg [07:07:33]written 0, free lines is 4095 [07:07:33]Connected sock=10 [07:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 50 9C 07 01 17 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 C0 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7A 02 00 35 04 06 00 BF EF D3 D1 12 FA 04 63 02 A3 DB C8 26 F2 [07:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7B 7E 47 00 97 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7A 02 00 F4 03 04 00 D5 D3 91 66 B6 04 01 00 00 4F 0C 05 76 47 52 F6 72 [07:07:33]CommunicateWithHost err = 0 [07:07:33]CheckOFDResponse [07:07:33]1017 (14) - 77093643461234 [07:07:33]1041 (16) - 0000000000874899 [07:07:33]1040 (4) - 162391 [07:07:33]1012 (4) - 13.07.2024 01:09 [07:07:33]1206 (1) - 0 [07:07:33]OFD Sender: Remove packet 162391 [07:07:33]ProducePacketName [07:07:33]name=ofd_packets/00162391 [07:07:33]NVStorageDeleteData [07:07:33]Write to MH i2c: 01 00 00 EE FD EB [07:07:33]Write i2c OK [07:07:33]MH_I2C_Read... [07:07:33]Read from MH i2c: 01 [07:07:33]MH_I2C_Read... [07:07:33]Read from MH i2c: 01 07 00 [07:07:33]MH_I2C_Read... [07:07:33]Read from MH i2c: 01 07 00 EE FD 00 00 00 00 00 E5 0C E3 [07:07:33]RasterBufferAndPrint [07:07:33]line [07:07:33]line [07:07:33]line [07:07:33]line [07:07:33]line [07:07:33]written 0, free lines is 3310 [07:07:33]MH_Cut [07:07:33]Write to MH i2c: D1 01 00 F5 FD 01 C4 [07:07:33]Write i2c OK [07:07:33]MH_I2C_Read... [07:07:33]Read from MH i2c: D1 [07:07:33]MH_I2C_Read... [07:07:33]Read from MH i2c: D1 01 00 [07:07:33]MH_I2C_Read... [07:07:33]Read from MH i2c: D1 01 00 F5 FD 00 C3 [07:07:33]Write to MH i2c: 01 00 00 F6 FD F3 [07:07:33]Write i2c OK [07:07:33]MH_I2C_Read... [07:07:33]OFD Sender: No OFD packet to send [07:07:34]*** Cut start [07:07:34]*** Purtial cut [07:07:34]*** Stage 1: CUTSNS_PIN = 1 [07:07:34]Read from MH i2c: 01 [07:07:34]MH_I2C_Read... [07:07:34]*** Stop cut motor [07:07:34]*** Cut end [07:07:34]Read from MH i2c: 01 07 00 [07:07:34]MH_I2C_Read... [07:07:34]Read from MH i2c: 01 07 00 F6 FD 00 00 00 00 00 FF 0F 08 [07:07:34]process_action close_receipt done [07:07:34]requested_data is exist [07:07:34]produce_requested_data [07:07:34]requested_item fm.sn is exist - process it [07:07:34]wFMCommunicate request_size=4 [07:07:34]MH_SAM_APDU [07:07:34]CAPDU: 80 11 00 00 [07:07:34]Write to MH i2c: E2 08 00 F7 FD 80 11 00 00 00 00 00 00 6E [07:07:34]Write i2c OK [07:07:34]MH_I2C_Read... [07:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:34]Read from MH i2c: E2 [07:07:34]MH_I2C_Read... [07:07:34]Read from MH i2c: E2 17 00 [07:07:34]MH_I2C_Read... [07:07:34]Read from MH i2c: E2 17 00 F7 FD 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [07:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:07:34]wFMCommunicate OK [07:07:34]requested_item fd.num is exist - process it [07:07:34]SAM_PROTO_GetFieldsCounters [07:07:34]wFMCommunicate request_size=4 [07:07:34]MH_SAM_APDU [07:07:34]CAPDU: 80 13 00 00 [07:07:34]Write to MH i2c: E2 08 00 F8 FD 80 13 00 00 00 00 00 00 71 [07:07:34]Write i2c OK [07:07:34]MH_I2C_Read... [07:07:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:34]Read from MH i2c: E2 [07:07:34]MH_I2C_Read... [07:07:34]Read from MH i2c: E2 62 00 [07:07:34]MH_I2C_Read... [07:07:34]Read from MH i2c: E2 62 00 F8 FD 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 57 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [07:07:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 57 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:34]wFMCommunicate OK [07:07:34]SAM_PROTO_GetFieldsCounters done [07:07:34]requested_item shift.num is exist - process it [07:07:34]requested_item shift.opened is exist - process it [07:07:34]req_shift_opened [07:07:34]FM_GetShiftState [07:07:34]SAM_PROTO_GetShiftState [07:07:34]wFMCommunicate request_size=4 [07:07:34]MH_SAM_APDU [07:07:34]CAPDU: 80 13 01 00 [07:07:34]Write to MH i2c: E2 08 00 F9 FD 80 13 01 00 00 00 00 00 73 [07:07:34]Write i2c OK [07:07:34]MH_I2C_Read... [07:07:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:34]Read from MH i2c: E2 [07:07:34]MH_I2C_Read... [07:07:34]Read from MH i2c: E2 0E 00 [07:07:34]MH_I2C_Read... [07:07:34]Read from MH i2c: E2 0E 00 F9 FD 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6D [07:07:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:07:34]wFMCommunicate OK [07:07:34]SAM_PROTO_GetShiftState done [07:07:34]FM_GetShiftState done [07:07:34]req_shift_opened done [07:07:34]requested_item shift.open_date is exist - process it [07:07:34]req_shift_open_date [07:07:34]req_shift_open_date done [07:07:34]produce_requested_data done [07:07:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162391,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:07:34]process_action_free close_receipt [07:07:34]json_value_free [07:07:34]json_value_free done [07:07:34]process_json_proto returns [07:07:34]Send response to host [07:07:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162391,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:07:34]free response buf [07:07:34]execute_script done [07:07:34]execute_script returns [07:07:34]free content buf [07:07:34]Sock 9.Close socket [07:07:34]Sock 9.Thread stoped [07:07:38]OFD Sender: No OFD packet to send [07:07:43]accept exits with 8 [07:07:43]New connection [07:07:43]New thread 3066862948 created [07:07:43]Thread 3067006308 joined [07:07:43]Waiting for new connection... [07:07:43] Sock 8.Parse request [07:07:43]Sock 8.Check first char [07:07:43]Sock 8.First char is OK [07:07:43]request: POST /json_proto HTTP/1.0 [07:07:43]Method: POST [07:07:43]URL: /json_proto [07:07:43]Method is POST - this is cgi request [07:07:43]url: /json_proto [07:07:43]query_string will be loaded in cgi processing [07:07:43]execute_cgi json_proto POST (null) [07:07:43]execute_cgi path=json_proto method=POST [07:07:43]POST find Content-Length [07:07:43]Host: 172.17.39.67:8080 [07:07:43]Content-Length: 678 [07:07:43]Content-Type: application/json [07:07:43] [07:07:43]POST finish read [07:07:43]Found Content-Length = 678 [07:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:43]execute_script... [07:07:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318916", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:43]POST & json_proto [07:07:43]process_json_proto [07:07:43]json parsed OK: [07:07:43]protocol is kg_v1.0 [07:07:43]action value=close_receipt [07:07:43]process_action close_receipt [07:07:43]cmd_close_receipt [07:07:43]MH_GetDate [07:07:43]Write to MH i2c: F0 00 00 FA FD E6 [07:07:43]Write i2c OK [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: F0 [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: F0 09 00 [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: F0 09 00 FA FD 00 CC 27 92 66 FA E9 8E 66 B1 [07:07:43]GetLastDocTimeStamp 1720854464 [07:07:43]current date 1720854476 [07:07:43]FM_GetShiftState [07:07:43]SAM_PROTO_GetShiftState [07:07:43]wFMCommunicate request_size=4 [07:07:43]MH_SAM_APDU [07:07:43]CAPDU: 80 13 01 00 [07:07:43]Write to MH i2c: E2 08 00 FB FD 80 13 01 00 00 00 00 00 75 [07:07:43]Write i2c OK [07:07:43]MH_I2C_Read... [07:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:43]Read from MH i2c: E2 [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: E2 0E 00 [07:07:43]MH_I2C_Read... [07:07:43]Read from MH i2c: E2 0E 00 FB FD 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6F [07:07:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:07:43]wFMCommunicate OK [07:07:43]SAM_PROTO_GetShiftState done [07:07:43]FM_GetShiftState done [07:07:43]opened in 1720828979 [07:07:43]opened+sec_in_day 1720915379 [07:07:43]quantity*price = 50056 [07:07:43]sum+1 = 50058 [07:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 60 13.07.2024 07:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162392 ФПД: 264737259362770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070756&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162392&fm=264737259362770&tin=02508201610067®Number=0000000000090858&sum=50000 [07:07:44]StoreToDocumentArchive [07:07:44]shift 462 fd 162392 [07:07:44]save to /storage/0462/doc_00162392 [07:07:44]save last doc name /storage/0462/doc_00162392 to /storage/kkm_last_doc_name [07:07:44]save OK [07:07:44]Clear old archive folders... [07:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:07:44]tlvbuf is 01747930 [07:07:44]SAM_PROTO_ClearQueue [07:07:44]wFMCommunicate request_size=4 [07:07:44]MH_SAM_APDU [07:07:44]CAPDU: 80 09 00 00 [07:07:44]Write to MH i2c: E2 08 00 08 FE 80 09 00 00 00 00 00 00 78 [07:07:44]Write i2c OK [07:07:44]MH_I2C_Read... [07:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:44]Read from MH i2c: E2 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 03 00 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 03 00 08 FE 00 90 00 7A [07:07:44]RAPDU: 90 00 [07:07:44]wFMCommunicate OK [07:07:44]SAM_PROTO_ClearQueue done [07:07:44]KKMCreateOFDPacket [07:07:44]OFDProtocolAddRootSTLVToBuf [07:07:44]FM_MakeSignedData [07:07:44]FM_MakeSignedData [07:07:44]SAM_PROTO_SignData [07:07:44]wFMCommunicate request_size=4 [07:07:44]MH_SAM_APDU [07:07:44]CAPDU: 80 0D 01 02 [07:07:44]Write to MH i2c: E2 08 00 09 FE 80 0D 01 02 00 00 00 00 80 [07:07:44]Write i2c OK [07:07:44]MH_I2C_Read... [07:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:44]Read from MH i2c: E2 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 03 00 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 03 00 09 FE 00 90 00 7B [07:07:44]RAPDU: 90 00 [07:07:44]wFMCommunicate OK [07:07:44]wFMCommunicate request_size=255 [07:07:44]MH_SAM_APDU [07:07:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 CC 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7A 02 00 35 04 06 00 F0 [07:07:44]Write to MH i2c: E2 02 01 0A FE 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 CC 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7A 02 00 35 04 06 00 F0 00 00 F6 [07:07:44]Write i2c OK [07:07:44]MH_I2C_Read... [07:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:44]Read from MH i2c: E2 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 03 00 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 03 00 0A FE 00 90 00 7C [07:07:44]RAPDU: 90 00 [07:07:44]wFMCommunicate OK [07:07:44]wFMCommunicate request_size=10 [07:07:44]MH_SAM_APDU [07:07:44]CAPDU: 80 0D 02 02 05 C6 F2 4D 99 D2 [07:07:44]Write to MH i2c: E2 0D 00 0B FE 80 0D 02 02 05 00 C6 F2 4D 99 D2 00 00 FD [07:07:44]Write i2c OK [07:07:44]MH_I2C_Read... [07:07:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:44]Read from MH i2c: E2 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 03 00 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 03 00 0B FE 00 90 00 7D [07:07:44]RAPDU: 90 00 [07:07:44]wFMCommunicate OK [07:07:44]wFMCommunicate request_size=4 [07:07:44]MH_SAM_APDU [07:07:44]CAPDU: 80 0D 03 02 [07:07:44]Write to MH i2c: E2 08 00 0C FE 80 0D 03 02 00 00 00 00 85 [07:07:44]Write i2c OK [07:07:44]MH_I2C_Read... [07:07:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:44]Read from MH i2c: E2 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 0B 00 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 0B 00 0C FE 00 C7 D0 6D 8A 8D 28 47 29 90 00 39 [07:07:44]RAPDU: C7 D0 6D 8A 8D 28 47 29 90 00 [07:07:44]wFMCommunicate OK [07:07:44]SAM_PROTO_SignData done [07:07:44]FM_MakeSignedData done [07:07:44]CreateOFDProtocolMessage [07:07:44]wFMCommunicate request_size=4 [07:07:44]MH_SAM_APDU [07:07:44]CAPDU: 80 11 00 00 [07:07:44]Write to MH i2c: E2 08 00 0D FE 80 11 00 00 00 00 00 00 85 [07:07:44]Write i2c OK [07:07:44]MH_I2C_Read... [07:07:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:44]Read from MH i2c: E2 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 17 00 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: E2 17 00 0D FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E5 [07:07:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:07:44]wFMCommunicate OK [07:07:44]CreateOFDProtocolMessage done [07:07:44]OFDSenderStorePacket 162392 [07:07:44]StoreOFDPacket docnum=162392 [07:07:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 88 07 01 07 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 CC 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7A 02 00 35 04 06 00 F0 C6 F2 4D 99 D2 C7 D0 6D 8A 8D 28 47 29 [07:07:44]CheckFolder [07:07:44]dirname=/storage/ofd_packets [07:07:44]CheckFolder done [07:07:44]ProducePacketName [07:07:44]name=ofd_packets/00162392 [07:07:44]NVStorageSaveData ofd_packets/00162392 [07:07:44]File name is /storage/ofd_packets/00162392 [07:07:44]Write 301 bytes [07:07:44]NVStorageSaveData done [07:07:44]OFDSenderStorePacket done [07:07:44]KKMCreateOFDPacket done [07:07:44]NVStorageSaveData kkm_last_timestamp [07:07:44]File name is /storage/kkm_last_timestamp [07:07:44]Write 4 bytes [07:07:44]NVStorageSaveData done [07:07:44]ExternCall_PrintAddStr [07:07:44]wPrintStart [07:07:44]Write to MH i2c: 01 00 00 0E FE 0C [07:07:44]Write i2c OK [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: 01 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: 01 07 00 [07:07:44]MH_I2C_Read... [07:07:44]Read from MH i2c: 01 07 00 0E FE 00 00 00 00 00 FF 0F 21 [07:07:44]RasterBufferAndPrint [07:07:44]line Счет N : (1)1318916 [07:07:44]line ИНН: 02508201610067 [07:07:44]line Контрольно-Кассовый Чек [07:07:44]line ПРОДАЖА [07:07:44]line ТРК (МРК, ГНК) : 53 [07:07:44]line Товар: 2710124130 [07:07:44]line Аи-92-К-5 [07:07:44]line 7.550 * 66.30 [07:07:44]line = 500.57 [07:07:44]line НДС 12% НСП 1% [07:07:44]line > о реализуемом товаре [07:07:44]line ОКРУГЛЕНИЕ: -0.57 [07:07:44]line ИТОГО: 500.00 [07:07:44]line Внесено: 500.00 [07:07:44]line СДАЧА: 0.00 [07:07:44]line НСП 1% : 4.43 [07:07:44]line НДС 12% : 53.16 [07:07:44]line Наличными: 500.00 [07:07:44]line Безнал.: 0.00 [07:07:44]line Место: АЗС № 140 "Партнер Нефть" [07:07:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:07:44]line СНО: Общий режим [07:07:44]line Чек 60 13.07.2024 07:07 [07:07:44]line Смена: 462 ФФД: 1.0 [07:07:44]line ЗНМ: 0300000129 [07:07:44]line РНМ: 0000000000090858 [07:07:44]line Версия ККМ: 001 [07:07:44]line ФМ: 0000000000874899 [07:07:44]line ФД: 162392 [07:07:44]line ФПД: 264737259362770 [07:07:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070756&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162392&fm=264737259362770&tin=02508201610067®Number=0000000000090858&sum=50000 [07:07:44]written 0, free lines is 4095 [07:07:45]OFD Sender: Processing packet 162392 [packets to send 105, broken 104] [07:07:45]ProducePacketName [07:07:45]name=ofd_packets/00162392 [07:07:45]OFD Sender: To server: pG, [07:07:45]CommunicateWithHost lk.salyk.kg:30040 [07:07:45]ConnectInit lk.salyk.kg [07:07:45]Connected sock=10 [07:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 88 07 01 07 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 CC 27 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7A 02 00 35 04 06 00 F0 C6 F2 4D 99 D2 C7 D0 6D 8A 8D 28 47 29 [07:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DE AF 47 00 59 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7A 02 00 F4 03 04 00 E1 D3 91 66 B6 04 01 00 00 D8 BD DC E7 5B 5A 3D 77 [07:07:45]CommunicateWithHost err = 0 [07:07:45]CheckOFDResponse [07:07:45]1017 (14) - 77093643461234 [07:07:45]1041 (16) - 0000000000874899 [07:07:45]1040 (4) - 162392 [07:07:45]1012 (4) - 13.07.2024 01:09 [07:07:45]1206 (1) - 0 [07:07:45]OFD Sender: Remove packet 162392 [07:07:45]ProducePacketName [07:07:45]name=ofd_packets/00162392 [07:07:45]NVStorageDeleteData [07:07:45]Write to MH i2c: 01 00 00 39 FE 37 [07:07:45]Write i2c OK [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: 01 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: 01 07 00 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: 01 07 00 39 FE 00 00 00 00 00 EE 0C 38 [07:07:45]RasterBufferAndPrint [07:07:45]line [07:07:45]line [07:07:45]line [07:07:45]line [07:07:45]line [07:07:45]written 0, free lines is 3319 [07:07:45]MH_Cut [07:07:45]Write to MH i2c: D1 01 00 40 FE 01 10 [07:07:45]Write i2c OK [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: D1 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: D1 01 00 [07:07:45]MH_I2C_Read... [07:07:45]Read from MH i2c: D1 01 00 40 FE 00 0F [07:07:45]Write to MH i2c: 01 00 00 41 FE 3F [07:07:45]Write i2c OK [07:07:45]MH_I2C_Read... [07:07:45]OFD Sender: No OFD packet to send [07:07:46]*** Cut start [07:07:46]*** Purtial cut [07:07:46]*** CUTSNS_PIN = 0 [07:07:46]*** Stage 1: CUTSNS_PIN = 1 [07:07:48]Read from MH i2c: 01 [07:07:48]MH_I2C_Read... [07:07:48]*** Stop cut motor [07:07:48]*** Cut end [07:07:48]Read from MH i2c: 01 07 00 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: 01 07 00 41 FE 00 00 00 00 00 FF 0F 54 [07:07:48]process_action close_receipt done [07:07:48]requested_data is exist [07:07:48]produce_requested_data [07:07:48]requested_item fm.sn is exist - process it [07:07:48]wFMCommunicate request_size=4 [07:07:48]MH_SAM_APDU [07:07:48]CAPDU: 80 11 00 00 [07:07:48]Write to MH i2c: E2 08 00 42 FE 80 11 00 00 00 00 00 00 BA [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:48]Read from MH i2c: E2 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: E2 17 00 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: E2 17 00 42 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [07:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:07:48]wFMCommunicate OK [07:07:48]requested_item fd.num is exist - process it [07:07:48]SAM_PROTO_GetFieldsCounters [07:07:48]wFMCommunicate request_size=4 [07:07:48]MH_SAM_APDU [07:07:48]CAPDU: 80 13 00 00 [07:07:48]Write to MH i2c: E2 08 00 43 FE 80 13 00 00 00 00 00 00 BD [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:48]Read from MH i2c: E2 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: E2 62 00 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: E2 62 00 43 FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 58 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [07:07:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 58 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:48]wFMCommunicate OK [07:07:48]SAM_PROTO_GetFieldsCounters done [07:07:48]requested_item shift.num is exist - process it [07:07:48]requested_item shift.opened is exist - process it [07:07:48]req_shift_opened [07:07:48]FM_GetShiftState [07:07:48]SAM_PROTO_GetShiftState [07:07:48]wFMCommunicate request_size=4 [07:07:48]MH_SAM_APDU [07:07:48]CAPDU: 80 13 01 00 [07:07:48]Write to MH i2c: E2 08 00 44 FE 80 13 01 00 00 00 00 00 BF [07:07:48]Write i2c OK [07:07:48]MH_I2C_Read... [07:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:48]Read from MH i2c: E2 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: E2 0E 00 [07:07:48]MH_I2C_Read... [07:07:48]Read from MH i2c: E2 0E 00 44 FE 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B9 [07:07:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:07:48]wFMCommunicate OK [07:07:48]SAM_PROTO_GetShiftState done [07:07:48]FM_GetShiftState done [07:07:48]req_shift_opened done [07:07:48]requested_item shift.open_date is exist - process it [07:07:48]req_shift_open_date [07:07:48]req_shift_open_date done [07:07:48]produce_requested_data done [07:07:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162392,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:07:48]process_action_free close_receipt [07:07:48]json_value_free [07:07:48]json_value_free done [07:07:48]process_json_proto returns [07:07:48]Send response to host [07:07:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162392,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:07:48]free response buf [07:07:48]execute_script done [07:07:48]execute_script returns [07:07:48]free content buf [07:07:48]Sock 8.Close socket [07:07:48]Sock 8.Thread stoped [07:07:50]OFD Sender: No OFD packet to send [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:01]accept exits with 9 [07:09:01]New connection [07:09:01]New thread 3067006308 created [07:09:01]Thread 3066862948 joined [07:09:01]Waiting for new connection... [07:09:01] Sock 9.Parse request [07:09:01]Sock 9.Check first char [07:09:01]Sock 9.First char is OK [07:09:01]request: POST /json_proto HTTP/1.0 [07:09:01]Method: POST [07:09:01]URL: /json_proto [07:09:01]Method is POST - this is cgi request [07:09:01]url: /json_proto [07:09:01]query_string will be loaded in cgi processing [07:09:01]execute_cgi json_proto POST (null) [07:09:01]execute_cgi path=json_proto method=POST [07:09:01]POST find Content-Length [07:09:01]Host: 172.17.39.67:8080 [07:09:01]Content-Length: 671 [07:09:01]Content-Type: application/json [07:09:01] [07:09:01]POST finish read [07:09:01]Found Content-Length = 671 [07:09:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 5.950, "sum" : 400.44, "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" ] } } [07:09:01]execute_script... [07:09: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)1318917", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 5.950, "sum" : 400.44, "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" ] } } [07:09:01]POST & json_proto [07:09:01]process_json_proto [07:09:01]json parsed OK: [07:09:01]protocol is kg_v1.0 [07:09:01]action value=close_receipt [07:09:01]process_action close_receipt [07:09:01]cmd_close_receipt [07:09:01]MH_GetDate [07:09:01]Write to MH i2c: F0 00 00 45 FE 32 [07:09:01]Write i2c OK [07:09:01]MH_I2C_Read... [07:09:01]Read from MH i2c: F0 [07:09:01]MH_I2C_Read... [07:09:01]Read from MH i2c: F0 09 00 [07:09:01]MH_I2C_Read... [07:09:01]Read from MH i2c: F0 09 00 45 FE 00 1A 28 92 66 FA E9 8E 66 4C [07:09:01]GetLastDocTimeStamp 1720854476 [07:09:01]current date 1720854554 [07:09:01]FM_GetShiftState [07:09:01]SAM_PROTO_GetShiftState [07:09:01]wFMCommunicate request_size=4 [07:09:01]MH_SAM_APDU [07:09:01]CAPDU: 80 13 01 00 [07:09:01]Write to MH i2c: E2 08 00 46 FE 80 13 01 00 00 00 00 00 C1 [07:09:01]Write i2c OK [07:09:01]MH_I2C_Read... [07:09:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:01]Read from MH i2c: E2 [07:09:01]MH_I2C_Read... [07:09:01]Read from MH i2c: E2 0E 00 [07:09:01]MH_I2C_Read... [07:09:01]Read from MH i2c: E2 0E 00 46 FE 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BB [07:09:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:09:01]wFMCommunicate OK [07:09:01]SAM_PROTO_GetShiftState done [07:09:01]FM_GetShiftState done [07:09:01]opened in 1720828979 [07:09:01]opened+sec_in_day 1720915379 [07:09:01]quantity*price = 40043 [07:09:01]sum+1 = 40045 [07:09:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 61 13.07.2024 07:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162393 ФПД: 232325257069796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070914&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162393&fm=232325257069796&tin=02508201610067®Number=0000000000090858&sum=40000 [07:09:02]StoreToDocumentArchive [07:09:02]shift 462 fd 162393 [07:09:02]save to /storage/0462/doc_00162393 [07:09:02]save last doc name /storage/0462/doc_00162393 to /storage/kkm_last_doc_name [07:09:02]save OK [07:09:02]Clear old archive folders... [07:09:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:09:02]tlvbuf is 01C68DD0 [07:09:02]SAM_PROTO_ClearQueue [07:09:02]wFMCommunicate request_size=4 [07:09:02]MH_SAM_APDU [07:09:02]CAPDU: 80 09 00 00 [07:09:02]Write to MH i2c: E2 08 00 53 FE 80 09 00 00 00 00 00 00 C3 [07:09:02]Write i2c OK [07:09:02]MH_I2C_Read... [07:09:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:02]Read from MH i2c: E2 [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: E2 03 00 [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: E2 03 00 53 FE 00 90 00 C5 [07:09:02]RAPDU: 90 00 [07:09:02]wFMCommunicate OK [07:09:02]SAM_PROTO_ClearQueue done [07:09:02]KKMCreateOFDPacket [07:09:02]OFDProtocolAddRootSTLVToBuf [07:09:02]FM_MakeSignedData [07:09:02]FM_MakeSignedData [07:09:02]SAM_PROTO_SignData [07:09:02]wFMCommunicate request_size=4 [07:09:02]MH_SAM_APDU [07:09:02]CAPDU: 80 0D 01 02 [07:09:02]Write to MH i2c: E2 08 00 54 FE 80 0D 01 02 00 00 00 00 CB [07:09:02]Write i2c OK [07:09:02]MH_I2C_Read... [07:09:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:02]Read from MH i2c: E2 [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: E2 03 00 [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: E2 03 00 54 FE 00 90 00 C6 [07:09:02]RAPDU: 90 00 [07:09:02]wFMCommunicate OK [07:09:02]wFMCommunicate request_size=255 [07:09:02]MH_SAM_APDU [07:09:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 6C 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1A 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7A 02 00 35 04 06 00 [07:09:02]Write to MH i2c: E2 02 01 55 FE 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 6C 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1A 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7A 02 00 35 04 06 00 00 00 B4 [07:09:02]Write i2c OK [07:09:02]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 55 FE 00 90 00 C7 [07:09:03]RAPDU: 90 00 [07:09:03]wFMCommunicate OK [07:09:03]wFMCommunicate request_size=11 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 0D 02 02 06 D3 4C 70 6B 84 E4 [07:09:03]Write to MH i2c: E2 0E 00 56 FE 80 0D 02 02 06 00 D3 4C 70 6B 84 E4 00 00 3C [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 56 FE 00 90 00 C8 [07:09:03]RAPDU: 90 00 [07:09:03]wFMCommunicate OK [07:09:03]wFMCommunicate request_size=4 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 0D 03 02 [07:09:03]Write to MH i2c: E2 08 00 57 FE 80 0D 03 02 00 00 00 00 D0 [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 0B 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 0B 00 57 FE 00 9E 60 9D B6 5F A6 E5 5E 90 00 6A [07:09:03]RAPDU: 9E 60 9D B6 5F A6 E5 5E 90 00 [07:09:03]wFMCommunicate OK [07:09:03]SAM_PROTO_SignData done [07:09:03]FM_MakeSignedData done [07:09:03]CreateOFDProtocolMessage [07:09:03]wFMCommunicate request_size=4 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 11 00 00 [07:09:03]Write to MH i2c: E2 08 00 58 FE 80 11 00 00 00 00 00 00 D0 [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 17 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 17 00 58 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [07:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:09:03]wFMCommunicate OK [07:09:03]CreateOFDProtocolMessage done [07:09:03]OFDSenderStorePacket 162393 [07:09:03]StoreOFDPacket docnum=162393 [07:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 10 FC 08 01 93 DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 6C 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1A 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7A 02 00 35 04 06 00 D3 4C 70 6B 84 E4 9E 60 9D B6 5F A6 E5 5E [07:09:03]CheckFolder [07:09:03]dirname=/storage/ofd_packets [07:09:03]CheckFolder done [07:09:03]ProducePacketName [07:09:03]name=ofd_packets/00162393 [07:09:03]NVStorageSaveData ofd_packets/00162393 [07:09:03]File name is /storage/ofd_packets/00162393 [07:09:03]Write 302 bytes [07:09:03]NVStorageSaveData done [07:09:03]OFDSenderStorePacket done [07:09:03]KKMCreateOFDPacket done [07:09:03]NVStorageSaveData kkm_last_timestamp [07:09:03]File name is /storage/kkm_last_timestamp [07:09:03]Write 4 bytes [07:09:03]NVStorageSaveData done [07:09:03]ExternCall_PrintAddStr [07:09:03]wPrintStart [07:09:03]Write to MH i2c: 01 00 00 59 FE 57 [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: 01 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: 01 07 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: 01 07 00 59 FE 00 00 00 00 00 FF 0F 6C [07:09:03]RasterBufferAndPrint [07:09:03]line Счет N : (1)1318917 [07:09:03]line ИНН: 02508201610067 [07:09:03]line Контрольно-Кассовый Чек [07:09:03]line ПРОДАЖА [07:09:03]line ТРК (МРК, ГНК) : 62 [07:09:03]line Товар: 2710124130 [07:09:03]line Super-92-К-5 [07:09:03]line 5.950 * 67.30 [07:09:03]line = 400.44 [07:09:03]line НДС 12% НСП 1% [07:09:03]line > о реализуемом товаре [07:09:03]line ОКРУГЛЕНИЕ: -0.44 [07:09:03]line ИТОГО: 400.00 [07:09:03]line Внесено: 400.00 [07:09:03]line СДАЧА: 0.00 [07:09:03]line НСП 1% : 3.54 [07:09:03]line НДС 12% : 42.52 [07:09:03]line Наличными: 400.00 [07:09:03]line Безнал.: 0.00 [07:09:03]line Место: АЗС № 140 "Партнер Нефть" [07:09:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:09:03]line СНО: Общий режим [07:09:03]line Чек 61 13.07.2024 07:09 [07:09:03]line Смена: 462 ФФД: 1.0 [07:09:03]line ЗНМ: 0300000129 [07:09:03]line РНМ: 0000000000090858 [07:09:03]line Версия ККМ: 001 [07:09:03]line ФМ: 0000000000874899 [07:09:03]line ФД: 162393 [07:09:03]line ФПД: 232325257069796 [07:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T070914&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162393&fm=232325257069796&tin=02508201610067®Number=0000000000090858&sum=40000 [07:09:03]OFD Sender: Processing packet 162393 [packets to send 105, broken 104] [07:09:03]ProducePacketName [07:09:03]name=ofd_packets/00162393 [07:09:03]OFD Sender: To server: pG, [07:09:03]CommunicateWithHost lk.salyk.kg:30040 [07:09:03]ConnectInit lk.salyk.kg [07:09:03]written 0, free lines is 4095 [07:09:03]Connected sock=10 [07:09:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 10 FC 08 01 93 DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 17 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 6C 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 9C 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1A 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7A 02 00 35 04 06 00 D3 4C 70 6B 84 E4 9E 60 9D B6 5F A6 E5 5E [07:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CD E6 47 00 BE 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7A 02 00 F4 03 04 00 2F D4 91 66 B6 04 01 00 00 C4 F0 62 E7 32 84 EA 42 [07:09:03]CommunicateWithHost err = 0 [07:09:03]CheckOFDResponse [07:09:03]1017 (14) - 77093643461234 [07:09:03]1041 (16) - 0000000000874899 [07:09:03]1040 (4) - 162393 [07:09:03]1012 (4) - 13.07.2024 01:11 [07:09:03]1206 (1) - 0 [07:09:03]OFD Sender: Remove packet 162393 [07:09:03]ProducePacketName [07:09:03]name=ofd_packets/00162393 [07:09:03]NVStorageDeleteData [07:09:04]Write to MH i2c: 01 00 00 84 FE 82 [07:09:04]Write i2c OK [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: 01 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: 01 07 00 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: 01 07 00 84 FE 00 00 00 00 00 F6 0C 8B [07:09:04]RasterBufferAndPrint [07:09:04]line [07:09:04]line [07:09:04]line [07:09:04]line [07:09:04]line [07:09:04]written 0, free lines is 3324 [07:09:04]MH_Cut [07:09:04]Write to MH i2c: D1 01 00 8B FE 01 5B [07:09:04]Write i2c OK [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: D1 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: D1 01 00 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: D1 01 00 8B FE 00 5A [07:09:04]Write to MH i2c: 01 00 00 8C FE 8A [07:09:04]Write i2c OK [07:09:04]MH_I2C_Read... [07:09:04]OFD Sender: No OFD packet to send [07:09:04]*** Cut start [07:09:04]*** Purtial cut [07:09:04]*** Stage 1: CUTSNS_PIN = 1 [07:09:05]Read from MH i2c: 01 [07:09:05]MH_I2C_Read... [07:09:05]*** Stop cut motor [07:09:05]*** Cut end [07:09:05]Read from MH i2c: 01 07 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: 01 07 00 8C FE 00 00 00 00 00 FF 0F 9F [07:09:05]process_action close_receipt done [07:09:05]requested_data is exist [07:09:05]produce_requested_data [07:09:05]requested_item fm.sn is exist - process it [07:09:05]wFMCommunicate request_size=4 [07:09:05]MH_SAM_APDU [07:09:05]CAPDU: 80 11 00 00 [07:09:05]Write to MH i2c: E2 08 00 8D FE 80 11 00 00 00 00 00 00 05 [07:09:05]Write i2c OK [07:09:05]MH_I2C_Read... [07:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:05]Read from MH i2c: E2 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 17 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 17 00 8D FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 65 [07:09:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:09:05]wFMCommunicate OK [07:09:05]requested_item fd.num is exist - process it [07:09:05]SAM_PROTO_GetFieldsCounters [07:09:05]wFMCommunicate request_size=4 [07:09:05]MH_SAM_APDU [07:09:05]CAPDU: 80 13 00 00 [07:09:05]Write to MH i2c: E2 08 00 8E FE 80 13 00 00 00 00 00 00 08 [07:09:05]Write i2c OK [07:09:05]MH_I2C_Read... [07:09:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:05]Read from MH i2c: E2 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 62 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 62 00 8E FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 59 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [07:09:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 59 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:09:05]wFMCommunicate OK [07:09:05]SAM_PROTO_GetFieldsCounters done [07:09:05]requested_item shift.num is exist - process it [07:09:05]requested_item shift.opened is exist - process it [07:09:05]req_shift_opened [07:09:05]FM_GetShiftState [07:09:05]SAM_PROTO_GetShiftState [07:09:05]wFMCommunicate request_size=4 [07:09:05]MH_SAM_APDU [07:09:05]CAPDU: 80 13 01 00 [07:09:05]Write to MH i2c: E2 08 00 8F FE 80 13 01 00 00 00 00 00 0A [07:09:05]Write i2c OK [07:09:05]MH_I2C_Read... [07:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:05]Read from MH i2c: E2 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 0E 00 [07:09:05]MH_I2C_Read... [07:09:05]Read from MH i2c: E2 0E 00 8F FE 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 04 [07:09:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:09:05]wFMCommunicate OK [07:09:05]SAM_PROTO_GetShiftState done [07:09:05]FM_GetShiftState done [07:09:05]req_shift_opened done [07:09:05]requested_item shift.open_date is exist - process it [07:09:05]req_shift_open_date [07:09:05]req_shift_open_date done [07:09:05]produce_requested_data done [07:09:05]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162393,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:09:05]process_action_free close_receipt [07:09:05]json_value_free [07:09:05]json_value_free done [07:09:05]process_json_proto returns [07:09:05]Send response to host [07:09:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162393,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:09:05]free response buf [07:09:05]execute_script done [07:09:05]execute_script returns [07:09:05]free content buf [07:09:05]Sock 9.Close socket [07:09:05]Sock 9.Thread stoped [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:04]OFD Sender: No OFD packet to send [07:10:09]OFD Sender: No OFD packet to send [07:10:14]OFD Sender: No OFD packet to send [07:10:19]OFD Sender: No OFD packet to send [07:10:24]OFD Sender: No OFD packet to send [07:10:29]OFD Sender: No OFD packet to send [07:10:34]OFD Sender: No OFD packet to send [07:10:39]OFD Sender: No OFD packet to send [07:10:44]OFD Sender: No OFD packet to send [07:10:49]OFD Sender: No OFD packet to send [07:10:54]OFD Sender: No OFD packet to send [07:10:59]OFD Sender: No OFD packet to send [07:11:04]OFD Sender: No OFD packet to send [07:11:09]OFD Sender: No OFD packet to send [07:11:14]OFD Sender: No OFD packet to send [07:11:19]OFD Sender: No OFD packet to send [07:11:24]accept exits with 8 [07:11:24]New connection [07:11:24]New thread 3066862948 created [07:11:24]Thread 3067006308 joined [07:11:24]Waiting for new connection... [07:11:24] Sock 8.Parse request [07:11:24]Sock 8.Check first char [07:11:24]Sock 8.First char is OK [07:11:24]request: POST /json_proto HTTP/1.0 [07:11:24]Method: POST [07:11:24]URL: /json_proto [07:11:24]Method is POST - this is cgi request [07:11:24]url: /json_proto [07:11:24]query_string will be loaded in cgi processing [07:11:24]execute_cgi json_proto POST (null) [07:11:24]execute_cgi path=json_proto method=POST [07:11:24]POST find Content-Length [07:11:24]Host: 172.17.39.67:8080 [07:11:24]Content-Length: 810 [07:11:24]Content-Type: application/json [07:11:24] [07:11:24]POST finish read [07:11:24]Found Content-Length = 810 [07:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:24]execute_script... [07: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)1318918", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.04 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:11:24]POST & json_proto [07:11:24]process_json_proto [07:11:24]json parsed OK: [07:11:24]protocol is kg_v1.0 [07:11:24]action value=close_receipt [07:11:24]process_action close_receipt [07:11:24]cmd_close_receipt [07:11:24]MH_GetDate [07:11:24]Write to MH i2c: F0 00 00 90 FE 7D [07:11:24]Write i2c OK [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: F0 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: F0 09 00 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: F0 09 00 90 FE 00 A9 28 92 66 FA E9 8E 66 26 [07:11:24]GetLastDocTimeStamp 1720854554 [07:11:24]current date 1720854697 [07:11:24]FM_GetShiftState [07:11:24]SAM_PROTO_GetShiftState [07:11:24]wFMCommunicate request_size=4 [07:11:24]MH_SAM_APDU [07:11:24]CAPDU: 80 13 01 00 [07:11:24]Write to MH i2c: E2 08 00 91 FE 80 13 01 00 00 00 00 00 0C [07:11:24]Write i2c OK [07:11:24]MH_I2C_Read... [07:11:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:24]Read from MH i2c: E2 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 0E 00 [07:11:24]MH_I2C_Read... [07:11:24]Read from MH i2c: E2 0E 00 91 FE 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 06 [07:11:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:11:24]wFMCommunicate OK [07:11:24]SAM_PROTO_GetShiftState done [07:11:24]FM_GetShiftState done [07:11:24]opened in 1720828979 [07:11:24]opened+sec_in_day 1720915379 [07:11:24]quantity*price = 50003 [07:11:24]sum+1 = 50005 [07:11:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.04 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.04 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 62 13.07.2024 07:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162394 ФПД: 172848908671009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071137&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162394&fm=172848908671009&tin=02508201610067®Number=0000000000090858&sum=50004 [07:11:25]StoreToDocumentArchive [07:11:25]shift 462 fd 162394 [07:11:25]save to /storage/0462/doc_00162394 [07:11:25]save last doc name /storage/0462/doc_00162394 to /storage/kkm_last_doc_name [07:11:25]save OK [07:11:25]Clear old archive folders... [07:11:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:11:25]tlvbuf is 01C8C0D0 [07:11:25]SAM_PROTO_ClearQueue [07:11:25]wFMCommunicate request_size=4 [07:11:25]MH_SAM_APDU [07:11:25]CAPDU: 80 09 00 00 [07:11:25]Write to MH i2c: E2 08 00 9E FE 80 09 00 00 00 00 00 00 0E [07:11:25]Write i2c OK [07:11:25]MH_I2C_Read... [07:11:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:11:25]Read from MH i2c: E2 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 03 00 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 03 00 9E FE 00 90 00 10 [07:11:25]RAPDU: 90 00 [07:11:25]wFMCommunicate OK [07:11:25]SAM_PROTO_ClearQueue done [07:11:25]KKMCreateOFDPacket [07:11:25]OFDProtocolAddRootSTLVToBuf [07:11:25]FM_MakeSignedData [07:11:25]FM_MakeSignedData [07:11:25]SAM_PROTO_SignData [07:11:25]wFMCommunicate request_size=4 [07:11:25]MH_SAM_APDU [07:11:25]CAPDU: 80 0D 01 02 [07:11:25]Write to MH i2c: E2 08 00 9F FE 80 0D 01 02 00 00 00 00 16 [07:11:25]Write i2c OK [07:11:25]MH_I2C_Read... [07:11:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:11:25]Read from MH i2c: E2 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 03 00 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 03 00 9F FE 00 90 00 11 [07:11:25]RAPDU: 90 00 [07:11:25]wFMCommunicate OK [07:11:25]wFMCommunicate request_size=255 [07:11:25]MH_SAM_APDU [07:11:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A9 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7A 02 00 35 04 06 00 [07:11:25]Write to MH i2c: E2 02 01 A0 FE 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A9 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7A 02 00 35 04 06 00 00 00 61 [07:11:25]Write i2c OK [07:11:25]MH_I2C_Read... [07:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:25]Read from MH i2c: E2 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 03 00 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 03 00 A0 FE 00 90 00 12 [07:11:25]RAPDU: 90 00 [07:11:25]wFMCommunicate OK [07:11:25]wFMCommunicate request_size=11 [07:11:25]MH_SAM_APDU [07:11:25]CAPDU: 80 0D 02 02 06 9D 34 85 CD 18 21 [07:11:25]Write to MH i2c: E2 0E 00 A1 FE 80 0D 02 02 06 00 9D 34 85 CD 18 21 00 00 81 [07:11:25]Write i2c OK [07:11:25]MH_I2C_Read... [07:11:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:11:25]Read from MH i2c: E2 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 03 00 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 03 00 A1 FE 00 90 00 13 [07:11:25]RAPDU: 90 00 [07:11:25]wFMCommunicate OK [07:11:25]wFMCommunicate request_size=4 [07:11:25]MH_SAM_APDU [07:11:25]CAPDU: 80 0D 03 02 [07:11:25]Write to MH i2c: E2 08 00 A2 FE 80 0D 03 02 00 00 00 00 1B [07:11:25]Write i2c OK [07:11:25]MH_I2C_Read... [07:11:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:11:25]Read from MH i2c: E2 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 0B 00 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 0B 00 A2 FE 00 04 95 DD 79 1A F6 84 38 90 00 D7 [07:11:25]RAPDU: 04 95 DD 79 1A F6 84 38 90 00 [07:11:25]wFMCommunicate OK [07:11:25]SAM_PROTO_SignData done [07:11:25]FM_MakeSignedData done [07:11:25]CreateOFDProtocolMessage [07:11:25]wFMCommunicate request_size=4 [07:11:25]MH_SAM_APDU [07:11:25]CAPDU: 80 11 00 00 [07:11:25]Write to MH i2c: E2 08 00 A3 FE 80 11 00 00 00 00 00 00 1B [07:11:25]Write i2c OK [07:11:25]MH_I2C_Read... [07:11:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:25]Read from MH i2c: E2 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 17 00 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: E2 17 00 A3 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [07:11:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:11:25]wFMCommunicate OK [07:11:25]CreateOFDProtocolMessage done [07:11:25]OFDSenderStorePacket 162394 [07:11:25]StoreOFDPacket docnum=162394 [07:11:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2E F2 08 01 D2 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A9 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7A 02 00 35 04 06 00 9D 34 85 CD 18 21 04 95 DD 79 1A F6 84 38 [07:11:25]CheckFolder [07:11:25]dirname=/storage/ofd_packets [07:11:25]CheckFolder done [07:11:25]ProducePacketName [07:11:25]name=ofd_packets/00162394 [07:11:25]NVStorageSaveData ofd_packets/00162394 [07:11:25]File name is /storage/ofd_packets/00162394 [07:11:25]Write 302 bytes [07:11:25]NVStorageSaveData done [07:11:25]OFDSenderStorePacket done [07:11:25]KKMCreateOFDPacket done [07:11:25]NVStorageSaveData kkm_last_timestamp [07:11:25]File name is /storage/kkm_last_timestamp [07:11:25]Write 4 bytes [07:11:25]NVStorageSaveData done [07:11:25]ExternCall_PrintAddStr [07:11:25]wPrintStart [07:11:25]Write to MH i2c: 01 00 00 A4 FE A2 [07:11:25]Write i2c OK [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: 01 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: 01 07 00 [07:11:25]MH_I2C_Read... [07:11:25]Read from MH i2c: 01 07 00 A4 FE 00 00 00 00 00 FF 0F B7 [07:11:25]RasterBufferAndPrint [07:11:25]line Счет N : (1)1318918 [07:11:25]line ИНН: 02508201610067 [07:11:25]line Контрольно-Кассовый Чек [07:11:25]line ПРОДАЖА [07:11:25]line ТРК (МРК, ГНК) : 52 [07:11:25]line Товар: 2710124130 [07:11:25]line Super-92-К-5 [07:11:25]line 7.430 * 67.30 [07:11:25]line = 500.04 [07:11:25]line НДС 12% НСП 1% [07:11:25]line > о реализуемом товаре [07:11:25]line ИТОГО: 500.04 [07:11:25]line НСП 1% : 4.42 [07:11:25]line НДС 12% : 53.10 [07:11:25]line Наличными: 0.00 [07:11:25]line Безнал.: 500.04 [07:11:25]line Место: АЗС № 140 "Партнер Нефть" [07:11:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:11:25]line СНО: Общий режим [07:11:25]line Чек 62 13.07.2024 07:11 [07:11:25]line Смена: 462 ФФД: 1.0 [07:11:25]line ЗНМ: 0300000129 [07:11:25]line РНМ: 0000000000090858 [07:11:25]line Версия ККМ: 001 [07:11:25]line Платежная система: Бакай Банк [07:11:25]line ФМ: 0000000000874899 [07:11:25]line ФД: 162394 [07:11:25]line ФПД: 172848908671009 [07:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071137&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162394&fm=172848908671009&tin=02508201610067®Number=0000000000090858&sum=50004 [07:11:26]written 0, free lines is 4095 [07:11:26]OFD Sender: Processing packet 162394 [packets to send 105, broken 104] [07:11:26]ProducePacketName [07:11:26]name=ofd_packets/00162394 [07:11:26]OFD Sender: To server: pG, [07:11:26]CommunicateWithHost lk.salyk.kg:30040 [07:11:26]ConnectInit lk.salyk.kg [07:11:26]Connected sock=10 [07: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 34 38 39 39 10 01 00 00 2E F2 08 01 D2 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 54 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A9 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7A 02 00 35 04 06 00 9D 34 85 CD 18 21 04 95 DD 79 1A F6 84 38 [07:11:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 90 82 47 00 5D B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7A 02 00 F4 03 04 00 BE D4 91 66 B6 04 01 00 00 DB 16 B4 23 C8 84 9B 61 [07:11:26]CommunicateWithHost err = 0 [07:11:26]CheckOFDResponse [07:11:26]1017 (14) - 77093643461234 [07:11:26]1041 (16) - 0000000000874899 [07:11:26]1040 (4) - 162394 [07:11:26]1012 (4) - 13.07.2024 01:13 [07:11:26]1206 (1) - 0 [07:11:26]OFD Sender: Remove packet 162394 [07:11:26]ProducePacketName [07:11:26]name=ofd_packets/00162394 [07:11:26]NVStorageDeleteData [07:11:26]Write to MH i2c: 01 00 00 CE FE CC [07:11:26]Write i2c OK [07:11:26]MH_I2C_Read... [07:11:26]Read from MH i2c: 01 [07:11:26]MH_I2C_Read... [07:11:26]Read from MH i2c: 01 07 00 [07:11:26]MH_I2C_Read... [07:11:26]Read from MH i2c: 01 07 00 CE FE 00 00 00 00 00 F6 0C D5 [07:11:26]RasterBufferAndPrint [07:11:26]line [07:11:26]line [07:11:26]line [07:11:26]line [07:11:26]line [07:11:26]written 0, free lines is 3327 [07:11:26]MH_Cut [07:11:26]Write to MH i2c: D1 01 00 D5 FE 01 A5 [07:11:26]Write i2c OK [07:11:26]MH_I2C_Read... [07:11:26]Read from MH i2c: D1 [07:11:26]MH_I2C_Read... [07:11:26]Read from MH i2c: D1 01 00 [07:11:26]MH_I2C_Read... [07:11:26]Read from MH i2c: D1 01 00 D5 FE 00 A4 [07:11:26]Write to MH i2c: 01 00 00 D6 FE D4 [07:11:26]Write i2c OK [07:11:26]MH_I2C_Read... [07:11:27]OFD Sender: No OFD packet to send [07:11:27]*** Cut start [07:11:27]*** Purtial cut [07:11:27]*** CUTSNS_PIN = 0 [07:11:27]*** Stage 1: CUTSNS_PIN = 1 [07:11:29]Read from MH i2c: 01 [07:11:29]MH_I2C_Read... [07:11:29]*** Stop cut motor [07:11:29]*** Cut end [07:11:29]Read from MH i2c: 01 07 00 [07:11:29]MH_I2C_Read... [07:11:29]Read from MH i2c: 01 07 00 D6 FE 00 00 00 00 00 FF 0F E9 [07:11:29]process_action close_receipt done [07:11:29]requested_data is exist [07:11:29]produce_requested_data [07:11:29]requested_item fm.sn is exist - process it [07:11:29]wFMCommunicate request_size=4 [07:11:29]MH_SAM_APDU [07:11:29]CAPDU: 80 11 00 00 [07:11:29]Write to MH i2c: E2 08 00 D7 FE 80 11 00 00 00 00 00 00 4F [07:11:29]Write i2c OK [07:11:29]MH_I2C_Read... [07:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:29]Read from MH i2c: E2 [07:11:29]MH_I2C_Read... [07:11:29]Read from MH i2c: E2 17 00 [07:11:29]MH_I2C_Read... [07:11:29]Read from MH i2c: E2 17 00 D7 FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [07:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:11:29]wFMCommunicate OK [07:11:29]requested_item fd.num is exist - process it [07:11:29]SAM_PROTO_GetFieldsCounters [07:11:29]wFMCommunicate request_size=4 [07:11:29]MH_SAM_APDU [07:11:29]CAPDU: 80 13 00 00 [07:11:29]Write to MH i2c: E2 08 00 D8 FE 80 13 00 00 00 00 00 00 52 [07:11:29]Write i2c OK [07:11:29]MH_I2C_Read... [07:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:29]Read from MH i2c: E2 [07:11:29]MH_I2C_Read... [07:11:29]Read from MH i2c: E2 62 00 [07:11:29]MH_I2C_Read... [07:11:29]Read from MH i2c: E2 62 00 D8 FE 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [07:11:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:11:29]wFMCommunicate OK [07:11:29]SAM_PROTO_GetFieldsCounters done [07:11:29]requested_item shift.num is exist - process it [07:11:29]requested_item shift.opened is exist - process it [07:11:29]req_shift_opened [07:11:29]FM_GetShiftState [07:11:29]SAM_PROTO_GetShiftState [07:11:29]wFMCommunicate request_size=4 [07:11:29]MH_SAM_APDU [07:11:29]CAPDU: 80 13 01 00 [07:11:29]Write to MH i2c: E2 08 00 D9 FE 80 13 01 00 00 00 00 00 54 [07:11:29]Write i2c OK [07:11:29]MH_I2C_Read... [07:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:29]Read from MH i2c: E2 [07:11:29]MH_I2C_Read... [07:11:29]Read from MH i2c: E2 0E 00 [07:11:29]MH_I2C_Read... [07:11:29]Read from MH i2c: E2 0E 00 D9 FE 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4E [07:11:29]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:11:29]wFMCommunicate OK [07:11:29]SAM_PROTO_GetShiftState done [07:11:29]FM_GetShiftState done [07:11:29]req_shift_opened done [07:11:29]requested_item shift.open_date is exist - process it [07:11:29]req_shift_open_date [07:11:29]req_shift_open_date done [07:11:29]produce_requested_data done [07:11:29]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162394,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:11:29]process_action_free close_receipt [07:11:29]json_value_free [07:11:29]json_value_free done [07:11:29]process_json_proto returns [07:11:29]Send response to host [07:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162394,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:11:29]free response buf [07:11:29]execute_script done [07:11:29]execute_script returns [07:11:29]free content buf [07:11:29]Sock 8.Close socket [07:11:29]Sock 8.Thread stoped [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:13]accept exits with 9 [07:12:13]New connection [07:12:13]New thread 3067006308 created [07:12:13]Thread 3066862948 joined [07:12:13]Waiting for new connection... [07:12:13] Sock 9.Parse request [07:12:13]Sock 9.Check first char [07:12:13]Sock 9.First char is OK [07:12:13]request: POST /json_proto HTTP/1.0 [07:12:13]Method: POST [07:12:13]URL: /json_proto [07:12:13]Method is POST - this is cgi request [07:12:13]url: /json_proto [07:12:13]query_string will be loaded in cgi processing [07:12:13]execute_cgi json_proto POST (null) [07:12:13]execute_cgi path=json_proto method=POST [07:12:13]POST find Content-Length [07:12:13]Host: 172.17.39.67:8080 [07:12:13]Content-Length: 794 [07:12:13]Content-Type: application/json [07:12:13] [07:12:13]POST finish read [07:12:13]Found Content-Length = 794 [07:12:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.450, "sum" : 501.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 501.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:13]execute_script... [07:12: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)1318921", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.450, "sum" : 501.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 501.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:12:13]POST & json_proto [07:12:13]process_json_proto [07:12:13]json parsed OK: [07:12:13]protocol is kg_v1.0 [07:12:13]action value=close_receipt [07:12:13]process_action close_receipt [07:12:13]cmd_close_receipt [07:12:13]MH_GetDate [07:12:13]Write to MH i2c: F0 00 00 DA FE C7 [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: F0 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: F0 09 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: F0 09 00 DA FE 00 DA 28 92 66 FA E9 8E 66 A1 [07:12:13]GetLastDocTimeStamp 1720854697 [07:12:13]current date 1720854746 [07:12:13]FM_GetShiftState [07:12:13]SAM_PROTO_GetShiftState [07:12:13]wFMCommunicate request_size=4 [07:12:13]MH_SAM_APDU [07:12:13]CAPDU: 80 13 01 00 [07:12:13]Write to MH i2c: E2 08 00 DB FE 80 13 01 00 00 00 00 00 56 [07:12:13]Write i2c OK [07:12:13]MH_I2C_Read... [07:12:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:13]Read from MH i2c: E2 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 0E 00 [07:12:13]MH_I2C_Read... [07:12:13]Read from MH i2c: E2 0E 00 DB FE 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 50 [07:12:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:12:13]wFMCommunicate OK [07:12:13]SAM_PROTO_GetShiftState done [07:12:13]FM_GetShiftState done [07:12:13]opened in 1720828979 [07:12:13]opened+sec_in_day 1720915379 [07:12:13]quantity*price = 50138 [07:12:13]sum+1 = 50140 [07:12:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 501.39 НСП 1% : 4.44 НДС 12% : 53.24 Наличными: 0.00 Безнал.: 501.39 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 63 13.07.2024 07:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162395 ФПД: 218558609193183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071226&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162395&fm=218558609193183&tin=02508201610067®Number=0000000000090858&sum=50139 [07:12:14]StoreToDocumentArchive [07:12:14]shift 462 fd 162395 [07:12:14]save to /storage/0462/doc_00162395 [07:12:14]save last doc name /storage/0462/doc_00162395 to /storage/kkm_last_doc_name [07:12:14]save OK [07:12:14]Clear old archive folders... [07:12:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:12:14]tlvbuf is 017A7740 [07:12:14]SAM_PROTO_ClearQueue [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 09 00 00 [07:12:14]Write to MH i2c: E2 08 00 E8 FE 80 09 00 00 00 00 00 00 58 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:14]Read from MH i2c: E2 03 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 03 00 E8 FE 00 90 00 5A [07:12:14]RAPDU: 90 00 [07:12:14]wFMCommunicate OK [07:12:14]SAM_PROTO_ClearQueue done [07:12:14]KKMCreateOFDPacket [07:12:14]OFDProtocolAddRootSTLVToBuf [07:12:14]FM_MakeSignedData [07:12:14]FM_MakeSignedData [07:12:14]SAM_PROTO_SignData [07:12:14]wFMCommunicate request_size=4 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 0D 01 02 [07:12:14]Write to MH i2c: E2 08 00 E9 FE 80 0D 01 02 00 00 00 00 60 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:14]Read from MH i2c: E2 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 03 00 [07:12:14]MH_I2C_Read... [07:12:14]Read from MH i2c: E2 03 00 E9 FE 00 90 00 5B [07:12:14]RAPDU: 90 00 [07:12:14]wFMCommunicate OK [07:12:14]wFMCommunicate request_size=255 [07:12:14]MH_SAM_APDU [07:12:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 DB C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 DA 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7A 02 00 35 04 06 00 [07:12:14]Write to MH i2c: E2 02 01 EA FE 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 DB C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 DA 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7A 02 00 35 04 06 00 00 00 97 [07:12:14]Write i2c OK [07:12:14]MH_I2C_Read... [07:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:15]Read from MH i2c: E2 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 03 00 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 03 00 EA FE 00 90 00 5C [07:12:15]RAPDU: 90 00 [07:12:15]wFMCommunicate OK [07:12:15]wFMCommunicate request_size=11 [07:12:15]MH_SAM_APDU [07:12:15]CAPDU: 80 0D 02 02 06 C6 C7 24 43 78 DF [07:12:15]Write to MH i2c: E2 0E 00 EB FE 80 0D 02 02 06 00 C6 C7 24 43 78 DF 00 00 BA [07:12:15]Write i2c OK [07:12:15]MH_I2C_Read... [07:12:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:15]Read from MH i2c: E2 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 03 00 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 03 00 EB FE 00 90 00 5D [07:12:15]RAPDU: 90 00 [07:12:15]wFMCommunicate OK [07:12:15]wFMCommunicate request_size=4 [07:12:15]MH_SAM_APDU [07:12:15]CAPDU: 80 0D 03 02 [07:12:15]Write to MH i2c: E2 08 00 EC FE 80 0D 03 02 00 00 00 00 65 [07:12:15]Write i2c OK [07:12:15]MH_I2C_Read... [07:12:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:15]Read from MH i2c: E2 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 0B 00 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 0B 00 EC FE 00 0C 25 05 9A 8F 93 31 59 90 00 E2 [07:12:15]RAPDU: 0C 25 05 9A 8F 93 31 59 90 00 [07:12:15]wFMCommunicate OK [07:12:15]SAM_PROTO_SignData done [07:12:15]FM_MakeSignedData done [07:12:15]CreateOFDProtocolMessage [07:12:15]wFMCommunicate request_size=4 [07:12:15]MH_SAM_APDU [07:12:15]CAPDU: 80 11 00 00 [07:12:15]Write to MH i2c: E2 08 00 ED FE 80 11 00 00 00 00 00 00 65 [07:12:15]Write i2c OK [07:12:15]MH_I2C_Read... [07:12:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:15]Read from MH i2c: E2 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 17 00 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: E2 17 00 ED FE 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C5 [07:12:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:12:15]wFMCommunicate OK [07:12:15]CreateOFDProtocolMessage done [07:12:15]OFDSenderStorePacket 162395 [07:12:15]StoreOFDPacket docnum=162395 [07:12:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 71 20 08 01 E8 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 DB C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 DA 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7A 02 00 35 04 06 00 C6 C7 24 43 78 DF 0C 25 05 9A 8F 93 31 59 [07:12:15]CheckFolder [07:12:15]dirname=/storage/ofd_packets [07:12:15]CheckFolder done [07:12:15]ProducePacketName [07:12:15]name=ofd_packets/00162395 [07:12:15]NVStorageSaveData ofd_packets/00162395 [07:12:15]File name is /storage/ofd_packets/00162395 [07:12:15]Write 302 bytes [07:12:15]NVStorageSaveData done [07:12:15]OFDSenderStorePacket done [07:12:15]KKMCreateOFDPacket done [07:12:15]NVStorageSaveData kkm_last_timestamp [07:12:15]File name is /storage/kkm_last_timestamp [07:12:15]Write 4 bytes [07:12:15]NVStorageSaveData done [07:12:15]ExternCall_PrintAddStr [07:12:15]wPrintStart [07:12:15]Write to MH i2c: 01 00 00 EE FE EC [07:12:15]Write i2c OK [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: 01 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: 01 07 00 [07:12:15]MH_I2C_Read... [07:12:15]Read from MH i2c: 01 07 00 EE FE 00 00 00 00 00 FF 0F 01 [07:12:15]RasterBufferAndPrint [07:12:15]line Счет N : (1)1318921 [07:12:15]line ИНН: 02508201610067 [07:12:15]line Контрольно-Кассовый Чек [07:12:15]line ПРОДАЖА [07:12:15]line ТРК (МРК, ГНК) : 42 [07:12:15]line Товар: 2710124130 [07:12:15]line Super-92-К-5 [07:12:15]line 7.450 * 67.30 [07:12:15]line = 501.39 [07:12:15]line НДС 12% НСП 1% [07:12:15]line > о реализуемом товаре [07:12:15]line ИТОГО: 501.39 [07:12:15]line НСП 1% : 4.44 [07:12:15]line НДС 12% : 53.24 [07:12:15]line Наличными: 0.00 [07:12:15]line Безнал.: 501.39 [07:12:15]line Место: АЗС № 140 "Партнер Нефть" [07:12:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:12:15]line СНО: Общий режим [07:12:15]line Чек 63 13.07.2024 07:12 [07:12:15]line Смена: 462 ФФД: 1.0 [07:12:15]line ЗНМ: 0300000129 [07:12:15]line РНМ: 0000000000090858 [07:12:15]line Версия ККМ: 001 [07:12:15]line Платежная система: O! деньги [07:12:15]line ФМ: 0000000000874899 [07:12:15]line ФД: 162395 [07:12:15]line ФПД: 218558609193183 [07:12:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071226&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162395&fm=218558609193183&tin=02508201610067®Number=0000000000090858&sum=50139 [07:12:15]OFD Sender: Processing packet 162395 [packets to send 105, broken 104] [07:12:15]ProducePacketName [07:12:15]name=ofd_packets/00162395 [07:12:15]OFD Sender: To server: pG, [07:12:15]CommunicateWithHost lk.salyk.kg:30040 [07:12:15]ConnectInit lk.salyk.kg [07:12:15]written 0, free lines is 4095 [07:12:15]Connected sock=10 [07:12:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 71 20 08 01 E8 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1A 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 DB C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DB C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 DB C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 DA 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7A 02 00 35 04 06 00 C6 C7 24 43 78 DF 0C 25 05 9A 8F 93 31 59 [07:12:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 59 27 47 00 69 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7A 02 00 F4 03 04 00 EF D4 91 66 B6 04 01 00 00 09 32 A0 C4 31 43 E7 E9 [07:12:16]CommunicateWithHost err = 0 [07:12:16]CheckOFDResponse [07:12:16]1017 (14) - 77093643461234 [07:12:16]1041 (16) - 0000000000874899 [07:12:16]1040 (4) - 162395 [07:12:16]1012 (4) - 13.07.2024 01:14 [07:12:16]1206 (1) - 0 [07:12:16]OFD Sender: Remove packet 162395 [07:12:16]ProducePacketName [07:12:16]name=ofd_packets/00162395 [07:12:16]NVStorageDeleteData [07:12:16]Write to MH i2c: 01 00 00 18 FF 17 [07:12:16]Write i2c OK [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: 01 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: 01 07 00 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: 01 07 00 18 FF 00 00 00 00 00 01 0D 2C [07:12:16]RasterBufferAndPrint [07:12:16]line [07:12:16]line [07:12:16]line [07:12:16]line [07:12:16]line [07:12:16]written 0, free lines is 3335 [07:12:16]MH_Cut [07:12:16]Write to MH i2c: D1 01 00 1F FF 01 F0 [07:12:16]Write i2c OK [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: D1 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: D1 01 00 [07:12:16]MH_I2C_Read... [07:12:16]Read from MH i2c: D1 01 00 1F FF 00 EF [07:12:16]Write to MH i2c: 01 00 00 20 FF 1F [07:12:16]Write i2c OK [07:12:16]MH_I2C_Read... [07:12:16]OFD Sender: No OFD packet to send [07:12:16]*** Cut start [07:12:16]*** Purtial cut [07:12:16]*** Stage 1: CUTSNS_PIN = 1 [07:12:17]Read from MH i2c: 01 [07:12:17]MH_I2C_Read... [07:12:17]*** Stop cut motor [07:12:17]*** Cut end [07:12:17]Read from MH i2c: 01 07 00 [07:12:17]MH_I2C_Read... [07:12:17]Read from MH i2c: 01 07 00 20 FF 00 00 00 00 00 FF 0F 34 [07:12:17]process_action close_receipt done [07:12:17]requested_data is exist [07:12:17]produce_requested_data [07:12:17]requested_item fm.sn is exist - process it [07:12:17]wFMCommunicate request_size=4 [07:12:17]MH_SAM_APDU [07:12:17]CAPDU: 80 11 00 00 [07:12:17]Write to MH i2c: E2 08 00 21 FF 80 11 00 00 00 00 00 00 9A [07:12:17]Write i2c OK [07:12:17]MH_I2C_Read... [07:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:17]Read from MH i2c: E2 [07:12:17]MH_I2C_Read... [07:12:17]Read from MH i2c: E2 17 00 [07:12:17]MH_I2C_Read... [07:12:17]Read from MH i2c: E2 17 00 21 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FA [07:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:12:17]wFMCommunicate OK [07:12:17]requested_item fd.num is exist - process it [07:12:17]SAM_PROTO_GetFieldsCounters [07:12:17]wFMCommunicate request_size=4 [07:12:17]MH_SAM_APDU [07:12:17]CAPDU: 80 13 00 00 [07:12:17]Write to MH i2c: E2 08 00 22 FF 80 13 00 00 00 00 00 00 9D [07:12:17]Write i2c OK [07:12:17]MH_I2C_Read... [07:12:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:17]Read from MH i2c: E2 [07:12:17]MH_I2C_Read... [07:12:17]Read from MH i2c: E2 62 00 [07:12:17]MH_I2C_Read... [07:12:17]Read from MH i2c: E2 62 00 22 FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [07:12:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:17]wFMCommunicate OK [07:12:17]SAM_PROTO_GetFieldsCounters done [07:12:17]requested_item shift.num is exist - process it [07:12:17]requested_item shift.opened is exist - process it [07:12:17]req_shift_opened [07:12:17]FM_GetShiftState [07:12:17]SAM_PROTO_GetShiftState [07:12:17]wFMCommunicate request_size=4 [07:12:17]MH_SAM_APDU [07:12:17]CAPDU: 80 13 01 00 [07:12:17]Write to MH i2c: E2 08 00 23 FF 80 13 01 00 00 00 00 00 9F [07:12:17]Write i2c OK [07:12:17]MH_I2C_Read... [07:12:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:17]Read from MH i2c: E2 [07:12:17]MH_I2C_Read... [07:12:17]Read from MH i2c: E2 0E 00 [07:12:17]MH_I2C_Read... [07:12:17]Read from MH i2c: E2 0E 00 23 FF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 99 [07:12:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:12:17]wFMCommunicate OK [07:12:17]SAM_PROTO_GetShiftState done [07:12:17]FM_GetShiftState done [07:12:17]req_shift_opened done [07:12:17]requested_item shift.open_date is exist - process it [07:12:17]req_shift_open_date [07:12:17]req_shift_open_date done [07:12:17]produce_requested_data done [07:12:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162395,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:12:17]process_action_free close_receipt [07:12:17]json_value_free [07:12:17]json_value_free done [07:12:17]process_json_proto returns [07:12:17]Send response to host [07:12:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162395,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:12:17]free response buf [07:12:17]execute_script done [07:12:17]execute_script returns [07:12:17]free content buf [07:12:17]Sock 9.Close socket [07:12:17]Sock 9.Thread stoped [07:12:21]OFD Sender: No OFD packet to send [07:12:26]accept exits with 8 [07:12:26]New connection [07:12:26]New thread 3066862948 created [07:12:26]Thread 3067006308 joined [07:12:26]Waiting for new connection... [07:12:26] Sock 8.Parse request [07:12:26]Sock 8.Check first char [07:12:26]Sock 8.First char is OK [07:12:26]request: POST /json_proto HTTP/1.0 [07:12:26]Method: POST [07:12:26]URL: /json_proto [07:12:26]Method is POST - this is cgi request [07:12:26]url: /json_proto [07:12:26]query_string will be loaded in cgi processing [07:12:26]execute_cgi json_proto POST (null) [07:12:26]execute_cgi path=json_proto method=POST [07:12:26]POST find Content-Length [07:12:26]Host: 172.17.39.67:8080 [07:12:26]Content-Length: 683 [07:12:26]Content-Type: application/json [07:12:26] [07:12:26]POST finish read [07:12:26]Found Content-Length = 683 [07:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:26]execute_script... [07:12: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)1318920", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:26]POST & json_proto [07:12:26]process_json_proto [07:12:26]json parsed OK: [07:12:26]protocol is kg_v1.0 [07:12:26]action value=close_receipt [07:12:26]process_action close_receipt [07:12:26]cmd_close_receipt [07:12:26]MH_GetDate [07:12:26]Write to MH i2c: F0 00 00 24 FF 12 [07:12:26]Write i2c OK [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: F0 [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: F0 09 00 [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: F0 09 00 24 FF 00 E7 28 92 66 FA E9 8E 66 F9 [07:12:26]GetLastDocTimeStamp 1720854746 [07:12:26]current date 1720854759 [07:12:26]FM_GetShiftState [07:12:26]SAM_PROTO_GetShiftState [07:12:26]wFMCommunicate request_size=4 [07:12:26]MH_SAM_APDU [07:12:26]CAPDU: 80 13 01 00 [07:12:26]Write to MH i2c: E2 08 00 25 FF 80 13 01 00 00 00 00 00 A1 [07:12:26]Write i2c OK [07:12:26]MH_I2C_Read... [07:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:26]Read from MH i2c: E2 [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: E2 0E 00 [07:12:26]MH_I2C_Read... [07:12:26]Read from MH i2c: E2 0E 00 25 FF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9B [07:12:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:12:26]wFMCommunicate OK [07:12:26]SAM_PROTO_GetShiftState done [07:12:26]FM_GetShiftState done [07:12:26]opened in 1720828979 [07:12:26]opened+sec_in_day 1720915379 [07:12:26]quantity*price = 100046 [07:12:26]sum+1 = 100048 [07:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 64 13.07.2024 07:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162396 ФПД: 264378998549936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071239&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162396&fm=264378998549936&tin=02508201610067®Number=0000000000090858&sum=100000 [07:12:27]StoreToDocumentArchive [07:12:27]shift 462 fd 162396 [07:12:27]save to /storage/0462/doc_00162396 [07:12:27]save last doc name /storage/0462/doc_00162396 to /storage/kkm_last_doc_name [07:12:27]save OK [07:12:27]Clear old archive folders... [07:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:12:27]tlvbuf is 01864900 [07:12:27]SAM_PROTO_ClearQueue [07:12:27]wFMCommunicate request_size=4 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 09 00 00 [07:12:27]Write to MH i2c: E2 08 00 32 FF 80 09 00 00 00 00 00 00 A3 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 32 FF 00 90 00 A5 [07:12:27]RAPDU: 90 00 [07:12:27]wFMCommunicate OK [07:12:27]SAM_PROTO_ClearQueue done [07:12:27]KKMCreateOFDPacket [07:12:27]OFDProtocolAddRootSTLVToBuf [07:12:27]FM_MakeSignedData [07:12:27]FM_MakeSignedData [07:12:27]SAM_PROTO_SignData [07:12:27]wFMCommunicate request_size=4 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 0D 01 02 [07:12:27]Write to MH i2c: E2 08 00 33 FF 80 0D 01 02 00 00 00 00 AB [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 33 FF 00 90 00 A6 [07:12:27]RAPDU: 90 00 [07:12:27]wFMCommunicate OK [07:12:27]wFMCommunicate request_size=255 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 00 00 00 F4 03 04 00 E7 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7A 02 00 35 04 06 00 F0 [07:12:27]Write to MH i2c: E2 02 01 34 FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 00 00 00 F4 03 04 00 E7 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7A 02 00 35 04 06 00 F0 00 00 95 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 34 FF 00 90 00 A7 [07:12:27]RAPDU: 90 00 [07:12:27]wFMCommunicate OK [07:12:27]wFMCommunicate request_size=10 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 0D 02 02 05 73 88 4B 6D B0 [07:12:27]Write to MH i2c: E2 0D 00 35 FF 80 0D 02 02 05 00 73 88 4B 6D B0 00 00 1B [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 03 00 35 FF 00 90 00 A8 [07:12:27]RAPDU: 90 00 [07:12:27]wFMCommunicate OK [07:12:27]wFMCommunicate request_size=4 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 0D 03 02 [07:12:27]Write to MH i2c: E2 08 00 36 FF 80 0D 03 02 00 00 00 00 B0 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 0B 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 0B 00 36 FF 00 6D C4 BF 48 31 BA D9 AB 90 00 58 [07:12:27]RAPDU: 6D C4 BF 48 31 BA D9 AB 90 00 [07:12:27]wFMCommunicate OK [07:12:27]SAM_PROTO_SignData done [07:12:27]FM_MakeSignedData done [07:12:27]CreateOFDProtocolMessage [07:12:27]wFMCommunicate request_size=4 [07:12:27]MH_SAM_APDU [07:12:27]CAPDU: 80 11 00 00 [07:12:27]Write to MH i2c: E2 08 00 37 FF 80 11 00 00 00 00 00 00 B0 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:27]Read from MH i2c: E2 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 17 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: E2 17 00 37 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 10 [07:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:12:27]wFMCommunicate OK [07:12:27]CreateOFDProtocolMessage done [07:12:27]OFDSenderStorePacket 162396 [07:12:27]StoreOFDPacket docnum=162396 [07:12:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 06 A6 07 01 9D 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 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 00 00 00 F4 03 04 00 E7 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7A 02 00 35 04 06 00 F0 73 88 4B 6D B0 6D C4 BF 48 31 BA D9 AB [07:12:27]CheckFolder [07:12:27]dirname=/storage/ofd_packets [07:12:27]CheckFolder done [07:12:27]ProducePacketName [07:12:27]name=ofd_packets/00162396 [07:12:27]NVStorageSaveData ofd_packets/00162396 [07:12:27]File name is /storage/ofd_packets/00162396 [07:12:27]Write 301 bytes [07:12:27]NVStorageSaveData done [07:12:27]OFDSenderStorePacket done [07:12:27]KKMCreateOFDPacket done [07:12:27]NVStorageSaveData kkm_last_timestamp [07:12:27]File name is /storage/kkm_last_timestamp [07:12:27]Write 4 bytes [07:12:27]NVStorageSaveData done [07:12:27]ExternCall_PrintAddStr [07:12:27]wPrintStart [07:12:27]Write to MH i2c: 01 00 00 38 FF 37 [07:12:27]Write i2c OK [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 07 00 [07:12:27]MH_I2C_Read... [07:12:27]Read from MH i2c: 01 07 00 38 FF 00 00 00 00 00 FF 0F 4C [07:12:27]RasterBufferAndPrint [07:12:27]line Счет N : (1)1318920 [07:12:27]line ИНН: 02508201610067 [07:12:27]line Контрольно-Кассовый Чек [07:12:27]line ПРОДАЖА [07:12:27]line ТРК (МРК, ГНК) : 63 [07:12:27]line Товар: 2710124130 [07:12:27]line Аи-92-К-5 [07:12:27]line 15.090 * 66.30 [07:12:27]line = 1000.47 [07:12:27]line НДС 12% НСП 1% [07:12:27]line > о реализуемом товаре [07:12:27]line ОКРУГЛЕНИЕ: -0.47 [07:12:27]line ИТОГО: 1000.00 [07:12:27]line Внесено: 1000.00 [07:12:27]line СДАЧА: 0.00 [07:12:27]line НСП 1% : 8.85 [07:12:27]line НДС 12% : 106.24 [07:12:27]line Наличными: 1000.00 [07:12:27]line Безнал.: 0.00 [07:12:27]line Место: АЗС № 140 "Партнер Нефть" [07:12:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:12:27]line СНО: Общий режим [07:12:27]line Чек 64 13.07.2024 07:12 [07:12:27]line Смена: 462 ФФД: 1.0 [07:12:27]line ЗНМ: 0300000129 [07:12:27]line РНМ: 0000000000090858 [07:12:27]line Версия ККМ: 001 [07:12:27]line ФМ: 0000000000874899 [07:12:27]line ФД: 162396 [07:12:27]line ФПД: 264378998549936 [07:12:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071239&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162396&fm=264378998549936&tin=02508201610067®Number=0000000000090858&sum=100000 [07:12:28]OFD Sender: Processing packet 162396 [packets to send 105, broken 104] [07:12:28]ProducePacketName [07:12:28]name=ofd_packets/00162396 [07:12:28]OFD Sender: To server: pG, [07:12:28]CommunicateWithHost lk.salyk.kg:30040 [07:12:28]ConnectInit lk.salyk.kg [07:12:28]written 0, free lines is 4095 [07:12:28]Connected sock=10 [07:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 06 A6 07 01 9D 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 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 40 00 00 00 F4 03 04 00 E7 28 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7A 02 00 35 04 06 00 F0 73 88 4B 6D B0 6D C4 BF 48 31 BA D9 AB [07:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F5 2B 47 00 25 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7A 02 00 F4 03 04 00 FC D4 91 66 B6 04 01 00 00 D9 57 9E D7 8E D4 BB B1 [07:12:28]CommunicateWithHost err = 0 [07:12:28]CheckOFDResponse [07:12:28]1017 (14) - 77093643461234 [07:12:28]1041 (16) - 0000000000874899 [07:12:28]1040 (4) - 162396 [07:12:28]1012 (4) - 13.07.2024 01:14 [07:12:28]1206 (1) - 0 [07:12:28]OFD Sender: Remove packet 162396 [07:12:28]ProducePacketName [07:12:28]name=ofd_packets/00162396 [07:12:28]NVStorageDeleteData [07:12:28]Write to MH i2c: 01 00 00 63 FF 62 [07:12:28]Write i2c OK [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 07 00 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: 01 07 00 63 FF 00 00 00 00 00 F7 0C 6C [07:12:28]RasterBufferAndPrint [07:12:28]line [07:12:28]line [07:12:28]line [07:12:28]line [07:12:28]line [07:12:28]written 0, free lines is 3329 [07:12:28]MH_Cut [07:12:28]Write to MH i2c: D1 01 00 6A FF 01 3B [07:12:28]Write i2c OK [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: D1 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: D1 01 00 [07:12:28]MH_I2C_Read... [07:12:28]Read from MH i2c: D1 01 00 6A FF 00 3A [07:12:28]Write to MH i2c: 01 00 00 6B FF 6A [07:12:28]Write i2c OK [07:12:28]MH_I2C_Read... [07:12:28]OFD Sender: No OFD packet to send [07:12:29]*** Cut start [07:12:29]*** Purtial cut [07:12:29]*** CUTSNS_PIN = 0 [07:12:29]*** Stage 1: CUTSNS_PIN = 1 [07:12:31]Read from MH i2c: 01 [07:12:31]MH_I2C_Read... [07:12:31]*** Stop cut motor [07:12:31]*** Cut end [07:12:31]Read from MH i2c: 01 07 00 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: 01 07 00 6B FF 00 00 00 00 00 FF 0F 7F [07:12:31]process_action close_receipt done [07:12:31]requested_data is exist [07:12:31]produce_requested_data [07:12:31]requested_item fm.sn is exist - process it [07:12:31]wFMCommunicate request_size=4 [07:12:31]MH_SAM_APDU [07:12:31]CAPDU: 80 11 00 00 [07:12:31]Write to MH i2c: E2 08 00 6C FF 80 11 00 00 00 00 00 00 E5 [07:12:31]Write i2c OK [07:12:31]MH_I2C_Read... [07:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:12:31]Read from MH i2c: E2 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 17 00 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 17 00 6C FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 45 [07:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:12:31]wFMCommunicate OK [07:12:31]requested_item fd.num is exist - process it [07:12:31]SAM_PROTO_GetFieldsCounters [07:12:31]wFMCommunicate request_size=4 [07:12:31]MH_SAM_APDU [07:12:31]CAPDU: 80 13 00 00 [07:12:31]Write to MH i2c: E2 08 00 6D FF 80 13 00 00 00 00 00 00 E8 [07:12:31]Write i2c OK [07:12:31]MH_I2C_Read... [07:12:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:12:31]Read from MH i2c: E2 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 62 00 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 62 00 6D FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [07:12:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:12:31]wFMCommunicate OK [07:12:31]SAM_PROTO_GetFieldsCounters done [07:12:31]requested_item shift.num is exist - process it [07:12:31]requested_item shift.opened is exist - process it [07:12:31]req_shift_opened [07:12:31]FM_GetShiftState [07:12:31]SAM_PROTO_GetShiftState [07:12:31]wFMCommunicate request_size=4 [07:12:31]MH_SAM_APDU [07:12:31]CAPDU: 80 13 01 00 [07:12:31]Write to MH i2c: E2 08 00 6E FF 80 13 01 00 00 00 00 00 EA [07:12:31]Write i2c OK [07:12:31]MH_I2C_Read... [07:12:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:12:31]Read from MH i2c: E2 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 0E 00 [07:12:31]MH_I2C_Read... [07:12:31]Read from MH i2c: E2 0E 00 6E FF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E4 [07:12:31]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:12:31]wFMCommunicate OK [07:12:31]SAM_PROTO_GetShiftState done [07:12:31]FM_GetShiftState done [07:12:31]req_shift_opened done [07:12:31]requested_item shift.open_date is exist - process it [07:12:31]req_shift_open_date [07:12:31]req_shift_open_date done [07:12:31]produce_requested_data done [07:12:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162396,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:12:31]process_action_free close_receipt [07:12:31]json_value_free [07:12:31]json_value_free done [07:12:31]process_json_proto returns [07:12:31]Send response to host [07:12:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162396,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:12:31]free response buf [07:12:31]execute_script done [07:12:31]execute_script returns [07:12:31]free content buf [07:12:31]Sock 8.Close socket [07:12:31]Sock 8.Thread stoped [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:49]OFD Sender: No OFD packet to send [07:12:54]OFD Sender: No OFD packet to send [07:12:59]OFD Sender: No OFD packet to send [07:13:04]OFD Sender: No OFD packet to send [07:13:09]OFD Sender: No OFD packet to send [07:13:14]OFD Sender: No OFD packet to send [07:13:19]OFD Sender: No OFD packet to send [07:13:24]OFD Sender: No OFD packet to send [07:13:29]OFD Sender: No OFD packet to send [07:13:34]OFD Sender: No OFD packet to send [07:13:39]OFD Sender: No OFD packet to send [07:13:44]OFD Sender: No OFD packet to send [07:13:49]OFD Sender: No OFD packet to send [07:13:54]OFD Sender: No OFD packet to send [07:13:59]OFD Sender: No OFD packet to send [07:14:04]OFD Sender: No OFD packet to send [07:14:09]OFD Sender: No OFD packet to send [07:14:14]OFD Sender: No OFD packet to send [07:14:19]OFD Sender: No OFD packet to send [07:14:24]OFD Sender: No OFD packet to send [07:14:29]OFD Sender: No OFD packet to send [07:14:34]OFD Sender: No OFD packet to send [07:14:39]OFD Sender: No OFD packet to send [07:14:44]OFD Sender: No OFD packet to send [07:14:49]OFD Sender: No OFD packet to send [07:14:54]OFD Sender: No OFD packet to send [07:14:59]OFD Sender: No OFD packet to send [07:15:04]OFD Sender: No OFD packet to send [07:15:09]OFD Sender: No OFD packet to send [07:15:14]OFD Sender: No OFD packet to send [07:15:19]OFD Sender: No OFD packet to send [07:15:24]OFD Sender: No OFD packet to send [07:15:29]OFD Sender: No OFD packet to send [07:15:34]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]accept exits with 9 [07:17:19]New connection [07:17:19]New thread 3067006308 created [07:17:19]Thread 3066862948 joined [07:17:19]Waiting for new connection... [07:17:19] Sock 9.Parse request [07:17:19]Sock 9.Check first char [07:17:19]Sock 9.First char is OK [07:17:19]request: POST /json_proto HTTP/1.0 [07:17:19]Method: POST [07:17:19]URL: /json_proto [07:17:19]Method is POST - this is cgi request [07:17:19]url: /json_proto [07:17:19]query_string will be loaded in cgi processing [07:17:19]execute_cgi json_proto POST (null) [07:17:19]execute_cgi path=json_proto method=POST [07:17:19]POST find Content-Length [07:17:19]Host: 172.17.39.67:8080 [07:17:19]Content-Length: 678 [07:17:19]Content-Type: application/json [07:17:19] [07:17:19]POST finish read [07:17:19]Found Content-Length = 678 [07:17:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.930, "sum" : 260.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:19]execute_script... [07:17:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318922", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.930, "sum" : 260.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:17:19]POST & json_proto [07:17:19]process_json_proto [07:17:19]json parsed OK: [07:17:19]protocol is kg_v1.0 [07:17:19]action value=close_receipt [07:17:19]process_action close_receipt [07:17:19]cmd_close_receipt [07:17:19]MH_GetDate [07:17:19]Write to MH i2c: F0 00 00 6F FF 5D [07:17:19]Write i2c OK [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: F0 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: F0 09 00 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: F0 09 00 6F FF 00 0C 2A 92 66 FA E9 8E 66 6B [07:17:19]GetLastDocTimeStamp 1720854759 [07:17:19]current date 1720855052 [07:17:19]FM_GetShiftState [07:17:19]SAM_PROTO_GetShiftState [07:17:19]wFMCommunicate request_size=4 [07:17:19]MH_SAM_APDU [07:17:19]CAPDU: 80 13 01 00 [07:17:19]Write to MH i2c: E2 08 00 70 FF 80 13 01 00 00 00 00 00 EC [07:17:19]Write i2c OK [07:17:19]MH_I2C_Read... [07:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:19]Read from MH i2c: E2 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: E2 0E 00 [07:17:19]MH_I2C_Read... [07:17:19]Read from MH i2c: E2 0E 00 70 FF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E6 [07:17:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:17:19]wFMCommunicate OK [07:17:19]SAM_PROTO_GetShiftState done [07:17:19]FM_GetShiftState done [07:17:19]opened in 1720828979 [07:17:19]opened+sec_in_day 1720915379 [07:17:19]quantity*price = 26055 [07:17:19]sum+1 = 26057 [07:17:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.31 НДС 12% : 27.67 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 65 13.07.2024 07:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162397 ФПД: 161711983316114 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071732&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162397&fm=161711983316114&tin=02508201610067®Number=0000000000090858&sum=26000 [07:17:20]StoreToDocumentArchive [07:17:20]shift 462 fd 162397 [07:17:20]save to /storage/0462/doc_00162397 [07:17:20]save last doc name /storage/0462/doc_00162397 to /storage/kkm_last_doc_name [07:17:20]save OK [07:17:20]Clear old archive folders... [07:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:17:20]tlvbuf is 01B6AB80 [07:17:20]SAM_PROTO_ClearQueue [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 09 00 00 [07:17:20]Write to MH i2c: E2 08 00 7D FF 80 09 00 00 00 00 00 00 EE [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 7D FF 00 90 00 F0 [07:17:20]RAPDU: 90 00 [07:17:20]wFMCommunicate OK [07:17:20]SAM_PROTO_ClearQueue done [07:17:20]KKMCreateOFDPacket [07:17:20]OFDProtocolAddRootSTLVToBuf [07:17:20]FM_MakeSignedData [07:17:20]FM_MakeSignedData [07:17:20]SAM_PROTO_SignData [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 0D 01 02 [07:17:20]Write to MH i2c: E2 08 00 7E FF 80 0D 01 02 00 00 00 00 F6 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 7E FF 00 90 00 F1 [07:17:20]RAPDU: 90 00 [07:17:20]wFMCommunicate OK [07:17:20]wFMCommunicate request_size=255 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0C 2A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7A 02 00 35 04 06 00 93 [07:17:20]Write to MH i2c: E2 02 01 7F FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0C 2A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7A 02 00 35 04 06 00 93 00 00 FB [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 7F FF 00 90 00 F2 [07:17:20]RAPDU: 90 00 [07:17:20]wFMCommunicate OK [07:17:20]wFMCommunicate request_size=10 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 0D 02 02 05 13 81 52 4C 92 [07:17:20]Write to MH i2c: E2 0D 00 80 FF 80 0D 02 02 05 00 13 81 52 4C 92 00 00 C7 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 03 00 80 FF 00 90 00 F3 [07:17:20]RAPDU: 90 00 [07:17:20]wFMCommunicate OK [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 0D 03 02 [07:17:20]Write to MH i2c: E2 08 00 81 FF 80 0D 03 02 00 00 00 00 FB [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 0B 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 0B 00 81 FF 00 23 92 0E FA 18 08 0B 84 90 00 68 [07:17:20]RAPDU: 23 92 0E FA 18 08 0B 84 90 00 [07:17:20]wFMCommunicate OK [07:17:20]SAM_PROTO_SignData done [07:17:20]FM_MakeSignedData done [07:17:20]CreateOFDProtocolMessage [07:17:20]wFMCommunicate request_size=4 [07:17:20]MH_SAM_APDU [07:17:20]CAPDU: 80 11 00 00 [07:17:20]Write to MH i2c: E2 08 00 82 FF 80 11 00 00 00 00 00 00 FB [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:20]Read from MH i2c: E2 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 17 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: E2 17 00 82 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5B [07:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:17:20]wFMCommunicate OK [07:17:20]CreateOFDProtocolMessage done [07:17:20]OFDSenderStorePacket 162397 [07:17:20]StoreOFDPacket docnum=162397 [07:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6A 42 07 01 76 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0C 2A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7A 02 00 35 04 06 00 93 13 81 52 4C 92 23 92 0E FA 18 08 0B 84 [07:17:20]CheckFolder [07:17:20]dirname=/storage/ofd_packets [07:17:20]CheckFolder done [07:17:20]ProducePacketName [07:17:20]name=ofd_packets/00162397 [07:17:20]NVStorageSaveData ofd_packets/00162397 [07:17:20]File name is /storage/ofd_packets/00162397 [07:17:20]Write 301 bytes [07:17:20]NVStorageSaveData done [07:17:20]OFDSenderStorePacket done [07:17:20]KKMCreateOFDPacket done [07:17:20]NVStorageSaveData kkm_last_timestamp [07:17:20]File name is /storage/kkm_last_timestamp [07:17:20]Write 4 bytes [07:17:20]NVStorageSaveData done [07:17:20]ExternCall_PrintAddStr [07:17:20]wPrintStart [07:17:20]Write to MH i2c: 01 00 00 83 FF 82 [07:17:20]Write i2c OK [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 07 00 [07:17:20]MH_I2C_Read... [07:17:20]Read from MH i2c: 01 07 00 83 FF 00 00 00 00 00 FF 0F 97 [07:17:20]RasterBufferAndPrint [07:17:20]line Счет N : (1)1318922 [07:17:20]line ИНН: 02508201610067 [07:17:20]line Контрольно-Кассовый Чек [07:17:20]line ПРОДАЖА [07:17:20]line ТРК (МРК, ГНК) : 53 [07:17:20]line Товар: 2710124130 [07:17:20]line Аи-92-К-5 [07:17:20]line 3.930 * 66.30 [07:17:20]line = 260.56 [07:17:20]line НДС 12% НСП 1% [07:17:20]line > о реализуемом товаре [07:17:20]line ОКРУГЛЕНИЕ: -0.56 [07:17:20]line ИТОГО: 260.00 [07:17:20]line Внесено: 260.00 [07:17:20]line СДАЧА: 0.00 [07:17:20]line НСП 1% : 2.31 [07:17:20]line НДС 12% : 27.67 [07:17:20]line Наличными: 260.00 [07:17:20]line Безнал.: 0.00 [07:17:20]line Место: АЗС № 140 "Партнер Нефть" [07:17:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:17:20]line СНО: Общий режим [07:17:20]line Чек 65 13.07.2024 07:17 [07:17:20]line Смена: 462 ФФД: 1.0 [07:17:20]line ЗНМ: 0300000129 [07:17:20]line РНМ: 0000000000090858 [07:17:20]line Версия ККМ: 001 [07:17:20]line ФМ: 0000000000874899 [07:17:20]line ФД: 162397 [07:17:20]line ФПД: 161711983316114 [07:17:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T071732&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162397&fm=161711983316114&tin=02508201610067®Number=0000000000090858&sum=26000 [07:17:21]OFD Sender: Processing packet 162397 [packets to send 105, broken 104] [07:17:21]ProducePacketName [07:17:21]name=ofd_packets/00162397 [07:17:21]OFD Sender: To server: pG, [07:17:21]CommunicateWithHost lk.salyk.kg:30040 [07:17:21]ConnectInit lk.salyk.kg [07:17:21]written 0, free lines is 4095 [07:17:21]Connected sock=10 [07:17:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6A 42 07 01 76 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 0F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 0C 2A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7A 02 00 35 04 06 00 93 13 81 52 4C 92 23 92 0E FA 18 08 0B 84 [07:17:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A5 30 47 00 27 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7A 02 00 F4 03 04 00 21 D6 91 66 B6 04 01 00 00 F1 E2 37 97 80 94 D7 01 [07:17:21]CommunicateWithHost err = 0 [07:17:21]CheckOFDResponse [07:17:21]1017 (14) - 77093643461234 [07:17:21]1041 (16) - 0000000000874899 [07:17:21]1040 (4) - 162397 [07:17:21]1012 (4) - 13.07.2024 01:19 [07:17:21]1206 (1) - 0 [07:17:21]OFD Sender: Remove packet 162397 [07:17:21]ProducePacketName [07:17:21]name=ofd_packets/00162397 [07:17:21]NVStorageDeleteData [07:17:21]Write to MH i2c: 01 00 00 AE FF AD [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 07 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: 01 07 00 AE FF 00 00 00 00 00 E8 0C A8 [07:17:21]RasterBufferAndPrint [07:17:21]line [07:17:21]line [07:17:21]line [07:17:21]line [07:17:21]line [07:17:21]written 0, free lines is 3310 [07:17:21]MH_Cut [07:17:21]Write to MH i2c: D1 01 00 B5 FF 01 86 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: D1 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: D1 01 00 [07:17:21]MH_I2C_Read... [07:17:21]Read from MH i2c: D1 01 00 B5 FF 00 85 [07:17:21]Write to MH i2c: 01 00 00 B6 FF B5 [07:17:21]Write i2c OK [07:17:21]MH_I2C_Read... [07:17:21]OFD Sender: No OFD packet to send [07:17:22]*** Cut start [07:17:22]*** Purtial cut [07:17:22]*** Stage 1: CUTSNS_PIN = 1 [07:17:22]Read from MH i2c: 01 [07:17:22]MH_I2C_Read... [07:17:22]*** Stop cut motor [07:17:22]*** Cut end [07:17:22]Read from MH i2c: 01 07 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: 01 07 00 B6 FF 00 00 00 00 00 FF 0F CA [07:17:22]process_action close_receipt done [07:17:22]requested_data is exist [07:17:22]produce_requested_data [07:17:22]requested_item fm.sn is exist - process it [07:17:22]wFMCommunicate request_size=4 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 11 00 00 [07:17:22]Write to MH i2c: E2 08 00 B7 FF 80 11 00 00 00 00 00 00 30 [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:17:22]Read from MH i2c: E2 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 17 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 17 00 B7 FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 90 [07:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:17:22]wFMCommunicate OK [07:17:22]requested_item fd.num is exist - process it [07:17:22]SAM_PROTO_GetFieldsCounters [07:17:22]wFMCommunicate request_size=4 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 13 00 00 [07:17:22]Write to MH i2c: E2 08 00 B8 FF 80 13 00 00 00 00 00 00 33 [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:17:22]Read from MH i2c: E2 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 62 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 62 00 B8 FF 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [07:17:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:17:22]wFMCommunicate OK [07:17:22]SAM_PROTO_GetFieldsCounters done [07:17:22]requested_item shift.num is exist - process it [07:17:22]requested_item shift.opened is exist - process it [07:17:22]req_shift_opened [07:17:22]FM_GetShiftState [07:17:22]SAM_PROTO_GetShiftState [07:17:22]wFMCommunicate request_size=4 [07:17:22]MH_SAM_APDU [07:17:22]CAPDU: 80 13 01 00 [07:17:22]Write to MH i2c: E2 08 00 B9 FF 80 13 01 00 00 00 00 00 35 [07:17:22]Write i2c OK [07:17:22]MH_I2C_Read... [07:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:17:22]Read from MH i2c: E2 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 0E 00 [07:17:22]MH_I2C_Read... [07:17:22]Read from MH i2c: E2 0E 00 B9 FF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2F [07:17:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:17:22]wFMCommunicate OK [07:17:22]SAM_PROTO_GetShiftState done [07:17:22]FM_GetShiftState done [07:17:22]req_shift_opened done [07:17:22]requested_item shift.open_date is exist - process it [07:17:22]req_shift_open_date [07:17:22]req_shift_open_date done [07:17:22]produce_requested_data done [07:17:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162397,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:17:22]process_action_free close_receipt [07:17:22]json_value_free [07:17:22]json_value_free done [07:17:22]process_json_proto returns [07:17:22]Send response to host [07:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162397,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:17:22]free response buf [07:17:22]execute_script done [07:17:22]execute_script returns [07:17:22]free content buf [07:17:22]Sock 9.Close socket [07:17:22]Sock 9.Thread stoped [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:14]accept exits with 8 [07:27:14]New connection [07:27:14]New thread 3066862948 created [07:27:14]Thread 3067006308 joined [07:27:14]Waiting for new connection... [07:27:14] Sock 8.Parse request [07:27:14]Sock 8.Check first char [07:27:14]Sock 8.First char is OK [07:27:14]request: POST /json_proto HTTP/1.0 [07:27:14]Method: POST [07:27:14]URL: /json_proto [07:27:14]Method is POST - this is cgi request [07:27:14]url: /json_proto [07:27:14]query_string will be loaded in cgi processing [07:27:14]execute_cgi json_proto POST (null) [07:27:14]execute_cgi path=json_proto method=POST [07:27:14]POST find Content-Length [07:27:14]Host: 172.17.39.67:8080 [07:27:14]Content-Length: 678 [07:27:14]Content-Type: application/json [07:27:14] [07:27:14]POST finish read [07:27:14]Found Content-Length = 678 [07:27:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:14]execute_script... [07:27: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)1318923", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:27:14]POST & json_proto [07:27:14]process_json_proto [07:27:14]json parsed OK: [07:27:14]protocol is kg_v1.0 [07:27:14]action value=close_receipt [07:27:14]process_action close_receipt [07:27:14]cmd_close_receipt [07:27:14]MH_GetDate [07:27:14]Write to MH i2c: F0 00 00 BA FF A8 [07:27:14]Write i2c OK [07:27:14]MH_I2C_Read... [07:27:14]Read from MH i2c: F0 [07:27:14]MH_I2C_Read... [07:27:14]Read from MH i2c: F0 09 00 [07:27:14]MH_I2C_Read... [07:27:14]Read from MH i2c: F0 09 00 BA FF 00 5F 2C 92 66 FA E9 8E 66 0B [07:27:14]GetLastDocTimeStamp 1720855052 [07:27:14]current date 1720855647 [07:27:14]FM_GetShiftState [07:27:14]SAM_PROTO_GetShiftState [07:27:14]wFMCommunicate request_size=4 [07:27:14]MH_SAM_APDU [07:27:14]CAPDU: 80 13 01 00 [07:27:14]Write to MH i2c: E2 08 00 BB FF 80 13 01 00 00 00 00 00 37 [07:27:14]Write i2c OK [07:27:14]MH_I2C_Read... [07:27:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:14]Read from MH i2c: E2 [07:27:14]MH_I2C_Read... [07:27:14]Read from MH i2c: E2 0E 00 [07:27:14]MH_I2C_Read... [07:27:14]Read from MH i2c: E2 0E 00 BB FF 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 31 [07:27:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:27:14]wFMCommunicate OK [07:27:14]SAM_PROTO_GetShiftState done [07:27:14]FM_GetShiftState done [07:27:14]opened in 1720828979 [07:27:14]opened+sec_in_day 1720915379 [07:27:14]quantity*price = 50056 [07:27:14]sum+1 = 50058 [07:27:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 66 13.07.2024 07:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162398 ФПД: 270396839973538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T072727&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162398&fm=270396839973538&tin=02508201610067®Number=0000000000090858&sum=50000 [07:27:15]StoreToDocumentArchive [07:27:15]shift 462 fd 162398 [07:27:15]save to /storage/0462/doc_00162398 [07:27:15]save last doc name /storage/0462/doc_00162398 to /storage/kkm_last_doc_name [07:27:15]save OK [07:27:15]Clear old archive folders... [07:27:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:27:15]tlvbuf is 01C7CF20 [07:27:15]SAM_PROTO_ClearQueue [07:27:15]wFMCommunicate request_size=4 [07:27:15]MH_SAM_APDU [07:27:15]CAPDU: 80 09 00 00 [07:27:15]Write to MH i2c: E2 08 00 C8 FF 80 09 00 00 00 00 00 00 39 [07:27:15]Write i2c OK [07:27:15]MH_I2C_Read... [07:27:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:27:15]Read from MH i2c: E2 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 03 00 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 03 00 C8 FF 00 90 00 3B [07:27:15]RAPDU: 90 00 [07:27:15]wFMCommunicate OK [07:27:15]SAM_PROTO_ClearQueue done [07:27:15]KKMCreateOFDPacket [07:27:15]OFDProtocolAddRootSTLVToBuf [07:27:15]FM_MakeSignedData [07:27:15]FM_MakeSignedData [07:27:15]SAM_PROTO_SignData [07:27:15]wFMCommunicate request_size=4 [07:27:15]MH_SAM_APDU [07:27:15]CAPDU: 80 0D 01 02 [07:27:15]Write to MH i2c: E2 08 00 C9 FF 80 0D 01 02 00 00 00 00 41 [07:27:15]Write i2c OK [07:27:15]MH_I2C_Read... [07:27:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:27:15]Read from MH i2c: E2 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 03 00 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 03 00 C9 FF 00 90 00 3C [07:27:15]RAPDU: 90 00 [07:27:15]wFMCommunicate OK [07:27:15]wFMCommunicate request_size=255 [07:27:15]MH_SAM_APDU [07:27:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 5F 2C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7A 02 00 35 04 06 00 F5 [07:27:15]Write to MH i2c: E2 02 01 CA FF 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 5F 2C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7A 02 00 35 04 06 00 F5 00 00 60 [07:27:15]Write i2c OK [07:27:15]MH_I2C_Read... [07:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:15]Read from MH i2c: E2 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 03 00 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 03 00 CA FF 00 90 00 3D [07:27:15]RAPDU: 90 00 [07:27:15]wFMCommunicate OK [07:27:15]wFMCommunicate request_size=10 [07:27:15]MH_SAM_APDU [07:27:15]CAPDU: 80 0D 02 02 05 EC AB 98 52 A2 [07:27:15]Write to MH i2c: E2 0D 00 CB FF 80 0D 02 02 05 00 EC AB 98 52 A2 00 00 71 [07:27:15]Write i2c OK [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 [07:27:15]MH_I2C_Read... [07:27:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:15]Read from MH i2c: E2 03 00 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 03 00 CB FF 00 90 00 3E [07:27:15]RAPDU: 90 00 [07:27:15]wFMCommunicate OK [07:27:15]wFMCommunicate request_size=4 [07:27:15]MH_SAM_APDU [07:27:15]CAPDU: 80 0D 03 02 [07:27:15]Write to MH i2c: E2 08 00 CC FF 80 0D 03 02 00 00 00 00 46 [07:27:15]Write i2c OK [07:27:15]MH_I2C_Read... [07:27:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:27:15]Read from MH i2c: E2 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 0B 00 [07:27:15]MH_I2C_Read... [07:27:15]Read from MH i2c: E2 0B 00 CC FF 00 6C 92 54 3D B6 6C 8E 6C 90 00 F2 [07:27:15]RAPDU: 6C 92 54 3D B6 6C 8E 6C 90 00 [07:27:15]wFMCommunicate OK [07:27:15]SAM_PROTO_SignData done [07:27:15]FM_MakeSignedData done [07:27:15]CreateOFDProtocolMessage [07:27:15]wFMCommunicate request_size=4 [07:27:15]MH_SAM_APDU [07:27:15]CAPDU: 80 11 00 00 [07:27:15]Write to MH i2c: E2 08 00 CD FF 80 11 00 00 00 00 00 00 46 [07:27:15]Write i2c OK [07:27:15]MH_I2C_Read... [07:27:16]Read from MH i2c: E2 [07:27:16]MH_I2C_Read... [07:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:16]Read from MH i2c: E2 17 00 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: E2 17 00 CD FF 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A6 [07:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:27:16]wFMCommunicate OK [07:27:16]CreateOFDProtocolMessage done [07:27:16]OFDSenderStorePacket 162398 [07:27:16]StoreOFDPacket docnum=162398 [07:27:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 66 17 07 01 10 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 5F 2C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7A 02 00 35 04 06 00 F5 EC AB 98 52 A2 6C 92 54 3D B6 6C 8E 6C [07:27:16]CheckFolder [07:27:16]dirname=/storage/ofd_packets [07:27:16]CheckFolder done [07:27:16]ProducePacketName [07:27:16]name=ofd_packets/00162398 [07:27:16]NVStorageSaveData ofd_packets/00162398 [07:27:16]File name is /storage/ofd_packets/00162398 [07:27:16]Write 301 bytes [07:27:16]NVStorageSaveData done [07:27:16]OFDSenderStorePacket done [07:27:16]KKMCreateOFDPacket done [07:27:16]NVStorageSaveData kkm_last_timestamp [07:27:16]File name is /storage/kkm_last_timestamp [07:27:16]Write 4 bytes [07:27:16]NVStorageSaveData done [07:27:16]ExternCall_PrintAddStr [07:27:16]wPrintStart [07:27:16]Write to MH i2c: 01 00 00 CE FF CD [07:27:16]Write i2c OK [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: 01 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: 01 07 00 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: 01 07 00 CE FF 00 00 00 00 00 FF 0F E2 [07:27:16]RasterBufferAndPrint [07:27:16]line Счет N : (1)1318923 [07:27:16]line ИНН: 02508201610067 [07:27:16]line Контрольно-Кассовый Чек [07:27:16]line ПРОДАЖА [07:27:16]line ТРК (МРК, ГНК) : 53 [07:27:16]line Товар: 2710124130 [07:27:16]line Аи-92-К-5 [07:27:16]line 7.550 * 66.30 [07:27:16]line = 500.57 [07:27:16]line НДС 12% НСП 1% [07:27:16]line > о реализуемом товаре [07:27:16]line ОКРУГЛЕНИЕ: -0.57 [07:27:16]line ИТОГО: 500.00 [07:27:16]line Внесено: 500.00 [07:27:16]line СДАЧА: 0.00 [07:27:16]line НСП 1% : 4.43 [07:27:16]line НДС 12% : 53.16 [07:27:16]line Наличными: 500.00 [07:27:16]line Безнал.: 0.00 [07:27:16]line Место: АЗС № 140 "Партнер Нефть" [07:27:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:27:16]line СНО: Общий режим [07:27:16]line Чек 66 13.07.2024 07:27 [07:27:16]line Смена: 462 ФФД: 1.0 [07:27:16]line ЗНМ: 0300000129 [07:27:16]line РНМ: 0000000000090858 [07:27:16]line Версия ККМ: 001 [07:27:16]line ФМ: 0000000000874899 [07:27:16]line ФД: 162398 [07:27:16]line ФПД: 270396839973538 [07:27:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T072727&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162398&fm=270396839973538&tin=02508201610067®Number=0000000000090858&sum=50000 [07:27:16]written 0, free lines is 4095 [07:27:16]OFD Sender: Processing packet 162398 [packets to send 105, broken 104] [07:27:16]ProducePacketName [07:27:16]name=ofd_packets/00162398 [07:27:16]OFD Sender: To server: pG, [07:27:16]CommunicateWithHost lk.salyk.kg:30040 [07:27:16]ConnectInit lk.salyk.kg [07:27:16]Connected sock=10 [07:27:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 66 17 07 01 10 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 5F 2C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7A 02 00 35 04 06 00 F5 EC AB 98 52 A2 6C 92 54 3D B6 6C 8E 6C [07:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E C6 47 00 A3 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 34 38 39 39 10 04 04 00 5E 7A 02 00 F4 03 04 00 74 D8 91 66 B6 04 01 00 00 89 B5 F0 16 01 ED BC 19 [07:27:16]CommunicateWithHost err = 0 [07:27:16]CheckOFDResponse [07:27:16]1017 (14) - 77093643461234 [07:27:16]1041 (16) - 0000000000874899 [07:27:16]1040 (4) - 162398 [07:27:16]1012 (4) - 13.07.2024 01:29 [07:27:16]1206 (1) - 0 [07:27:16]OFD Sender: Remove packet 162398 [07:27:16]ProducePacketName [07:27:16]name=ofd_packets/00162398 [07:27:16]NVStorageDeleteData [07:27:16]Write to MH i2c: 01 00 00 F9 FF F8 [07:27:16]Write i2c OK [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: 01 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: 01 07 00 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: 01 07 00 F9 FF 00 00 00 00 00 EE 0C F9 [07:27:16]RasterBufferAndPrint [07:27:16]line [07:27:16]line [07:27:16]line [07:27:16]line [07:27:16]line [07:27:16]written 0, free lines is 3316 [07:27:16]MH_Cut [07:27:16]Write to MH i2c: D1 01 00 01 00 01 D3 [07:27:16]Write i2c OK [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: D1 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: D1 01 00 [07:27:16]MH_I2C_Read... [07:27:16]Read from MH i2c: D1 01 00 01 00 00 D2 [07:27:16]Write to MH i2c: 01 00 00 02 00 02 [07:27:16]Write i2c OK [07:27:16]MH_I2C_Read... [07:27:16]OFD Sender: No OFD packet to send [07:27:17]*** Cut start [07:27:17]*** Purtial cut [07:27:17]*** CUTSNS_PIN = 0 [07:27:17]*** Stage 1: CUTSNS_PIN = 1 [07:27:19]Read from MH i2c: 01 [07:27:19]MH_I2C_Read... [07:27:19]*** Stop cut motor [07:27:19]*** Cut end [07:27:19]Read from MH i2c: 01 07 00 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: 01 07 00 02 00 00 00 00 00 00 FF 0F 17 [07:27:19]process_action close_receipt done [07:27:19]requested_data is exist [07:27:19]produce_requested_data [07:27:19]requested_item fm.sn is exist - process it [07:27:19]wFMCommunicate request_size=4 [07:27:19]MH_SAM_APDU [07:27:19]CAPDU: 80 11 00 00 [07:27:19]Write to MH i2c: E2 08 00 03 00 80 11 00 00 00 00 00 00 7D [07:27:19]Write i2c OK [07:27:19]MH_I2C_Read... [07:27:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:19]Read from MH i2c: E2 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 17 00 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 17 00 03 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DD [07:27:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:27:19]wFMCommunicate OK [07:27:19]requested_item fd.num is exist - process it [07:27:19]SAM_PROTO_GetFieldsCounters [07:27:19]wFMCommunicate request_size=4 [07:27:19]MH_SAM_APDU [07:27:19]CAPDU: 80 13 00 00 [07:27:19]Write to MH i2c: E2 08 00 04 00 80 13 00 00 00 00 00 00 80 [07:27:19]Write i2c OK [07:27:19]MH_I2C_Read... [07:27:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:19]Read from MH i2c: E2 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 62 00 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 62 00 04 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [07:27:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:27:19]wFMCommunicate OK [07:27:19]SAM_PROTO_GetFieldsCounters done [07:27:19]requested_item shift.num is exist - process it [07:27:19]requested_item shift.opened is exist - process it [07:27:19]req_shift_opened [07:27:19]FM_GetShiftState [07:27:19]SAM_PROTO_GetShiftState [07:27:19]wFMCommunicate request_size=4 [07:27:19]MH_SAM_APDU [07:27:19]CAPDU: 80 13 01 00 [07:27:19]Write to MH i2c: E2 08 00 05 00 80 13 01 00 00 00 00 00 82 [07:27:19]Write i2c OK [07:27:19]MH_I2C_Read... [07:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:19]Read from MH i2c: E2 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 0E 00 [07:27:19]MH_I2C_Read... [07:27:19]Read from MH i2c: E2 0E 00 05 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7C [07:27:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:27:19]wFMCommunicate OK [07:27:19]SAM_PROTO_GetShiftState done [07:27:19]FM_GetShiftState done [07:27:19]req_shift_opened done [07:27:19]requested_item shift.open_date is exist - process it [07:27:19]req_shift_open_date [07:27:19]req_shift_open_date done [07:27:19]produce_requested_data done [07:27:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162398,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:27:19]process_action_free close_receipt [07:27:19]json_value_free [07:27:19]json_value_free done [07:27:19]process_json_proto returns [07:27:19]Send response to host [07:27:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162398,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:27:19]free response buf [07:27:19]execute_script done [07:27:19]execute_script returns [07:27:19]free content buf [07:27:19]Sock 8.Close socket [07:27:19]Sock 8.Thread stoped [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:15]accept exits with 9 [07:32:15]New connection [07:32:15]New thread 3067006308 created [07:32:15]Thread 3066862948 joined [07:32:15]Waiting for new connection... [07:32:15] Sock 9.Parse request [07:32:15]Sock 9.Check first char [07:32:15]Sock 9.First char is OK [07:32:15]request: POST /json_proto HTTP/1.0 [07:32:15]Method: POST [07:32:15]URL: /json_proto [07:32:15]Method is POST - this is cgi request [07:32:15]url: /json_proto [07:32:15]query_string will be loaded in cgi processing [07:32:15]execute_cgi json_proto POST (null) [07:32:15]execute_cgi path=json_proto method=POST [07:32:15]POST find Content-Length [07:32:15]Host: 172.17.39.67:8080 [07:32:15]Content-Length: 825 [07:32:15]Content-Type: application/json [07:32:15] [07:32:15]POST finish read [07:32:15]Found Content-Length = 825 [07:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.660, "sum" : 1499.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1499.92 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:15]execute_script... [07:32:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318924", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.660, "sum" : 1499.92, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1499.92 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:15]POST & json_proto [07:32:15]process_json_proto [07:32:15]json parsed OK: [07:32:15]protocol is kg_v1.0 [07:32:15]action value=close_receipt [07:32:15]process_action close_receipt [07:32:15]cmd_close_receipt [07:32:15]MH_GetDate [07:32:15]Write to MH i2c: F0 00 00 06 00 F5 [07:32:15]Write i2c OK [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: F0 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: F0 09 00 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: F0 09 00 06 00 00 8C 2D 92 66 FA E9 8E 66 86 [07:32:15]GetLastDocTimeStamp 1720855647 [07:32:15]current date 1720855948 [07:32:15]FM_GetShiftState [07:32:15]SAM_PROTO_GetShiftState [07:32:15]wFMCommunicate request_size=4 [07:32:15]MH_SAM_APDU [07:32:15]CAPDU: 80 13 01 00 [07:32:15]Write to MH i2c: E2 08 00 07 00 80 13 01 00 00 00 00 00 84 [07:32:15]Write i2c OK [07:32:15]MH_I2C_Read... [07:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:15]Read from MH i2c: E2 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: E2 0E 00 [07:32:15]MH_I2C_Read... [07:32:15]Read from MH i2c: E2 0E 00 07 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7E [07:32:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:32:15]wFMCommunicate OK [07:32:15]SAM_PROTO_GetShiftState done [07:32:15]FM_GetShiftState done [07:32:15]opened in 1720828979 [07:32:15]opened+sec_in_day 1720915379 [07:32:15]quantity*price = 149991 [07:32:15]sum+1 = 149993 [07:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1499.92 НСП 1% : 13.27 НДС 12% : 159.28 Наличными: 0.00 Безнал.: 1499.92 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 67 13.07.2024 07:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162399 ФПД: 133287413699998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073228&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162399&fm=133287413699998&tin=02508201610067®Number=0000000000090858&sum=149992 [07:32:16]StoreToDocumentArchive [07:32:16]shift 462 fd 162399 [07:32:16]save to /storage/0462/doc_00162399 [07:32:16]save last doc name /storage/0462/doc_00162399 to /storage/kkm_last_doc_name [07:32:16]save OK [07:32:16]Clear old archive folders... [07:32:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:32:16]tlvbuf is 01C8C1E0 [07:32:16]SAM_PROTO_ClearQueue [07:32:16]wFMCommunicate request_size=4 [07:32:16]MH_SAM_APDU [07:32:16]CAPDU: 80 09 00 00 [07:32:16]Write to MH i2c: E2 08 00 14 00 80 09 00 00 00 00 00 00 86 [07:32:16]Write i2c OK [07:32:16]MH_I2C_Read... [07:32:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:16]Read from MH i2c: E2 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 03 00 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 03 00 14 00 00 90 00 88 [07:32:16]RAPDU: 90 00 [07:32:16]wFMCommunicate OK [07:32:16]SAM_PROTO_ClearQueue done [07:32:16]KKMCreateOFDPacket [07:32:16]OFDProtocolAddRootSTLVToBuf [07:32:16]FM_MakeSignedData [07:32:16]FM_MakeSignedData [07:32:16]SAM_PROTO_SignData [07:32:16]wFMCommunicate request_size=4 [07:32:16]MH_SAM_APDU [07:32:16]CAPDU: 80 0D 01 02 [07:32:16]Write to MH i2c: E2 08 00 15 00 80 0D 01 02 00 00 00 00 8E [07:32:16]Write i2c OK [07:32:16]MH_I2C_Read... [07:32:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:16]Read from MH i2c: E2 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 03 00 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 03 00 15 00 00 90 00 89 [07:32:16]RAPDU: 90 00 [07:32:16]wFMCommunicate OK [07:32:16]wFMCommunicate request_size=255 [07:32:16]MH_SAM_APDU [07:32:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8C 2D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7A 02 00 35 04 06 00 [07:32:16]Write to MH i2c: E2 02 01 16 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8C 2D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7A 02 00 35 04 06 00 00 00 42 [07:32:16]Write i2c OK [07:32:16]MH_I2C_Read... [07:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:16]Read from MH i2c: E2 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 03 00 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 03 00 16 00 00 90 00 8A [07:32:16]RAPDU: 90 00 [07:32:16]wFMCommunicate OK [07:32:16]wFMCommunicate request_size=11 [07:32:16]MH_SAM_APDU [07:32:16]CAPDU: 80 0D 02 02 06 79 39 64 F2 55 9E [07:32:16]Write to MH i2c: E2 0E 00 17 00 80 0D 02 02 06 00 79 39 64 F2 55 9E 00 00 98 [07:32:16]Write i2c OK [07:32:16]MH_I2C_Read... [07:32:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:16]Read from MH i2c: E2 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 03 00 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 03 00 17 00 00 90 00 8B [07:32:16]RAPDU: 90 00 [07:32:16]wFMCommunicate OK [07:32:16]wFMCommunicate request_size=4 [07:32:16]MH_SAM_APDU [07:32:16]CAPDU: 80 0D 03 02 [07:32:16]Write to MH i2c: E2 08 00 18 00 80 0D 03 02 00 00 00 00 93 [07:32:16]Write i2c OK [07:32:16]MH_I2C_Read... [07:32:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:16]Read from MH i2c: E2 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 0B 00 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 0B 00 18 00 00 FB 6A 90 8B 72 58 46 58 90 00 7C [07:32:16]RAPDU: FB 6A 90 8B 72 58 46 58 90 00 [07:32:16]wFMCommunicate OK [07:32:16]SAM_PROTO_SignData done [07:32:16]FM_MakeSignedData done [07:32:16]CreateOFDProtocolMessage [07:32:16]wFMCommunicate request_size=4 [07:32:16]MH_SAM_APDU [07:32:16]CAPDU: 80 11 00 00 [07:32:16]Write to MH i2c: E2 08 00 19 00 80 11 00 00 00 00 00 00 93 [07:32:16]Write i2c OK [07:32:16]MH_I2C_Read... [07:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:16]Read from MH i2c: E2 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 17 00 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: E2 17 00 19 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F3 [07:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:32:16]wFMCommunicate OK [07:32:16]CreateOFDProtocolMessage done [07:32:16]OFDSenderStorePacket 162399 [07:32:16]StoreOFDPacket docnum=162399 [07:32:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6D 0F 08 01 22 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8C 2D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7A 02 00 35 04 06 00 79 39 64 F2 55 9E FB 6A 90 8B 72 58 46 58 [07:32:16]CheckFolder [07:32:16]dirname=/storage/ofd_packets [07:32:16]CheckFolder done [07:32:16]ProducePacketName [07:32:16]name=ofd_packets/00162399 [07:32:16]NVStorageSaveData ofd_packets/00162399 [07:32:16]File name is /storage/ofd_packets/00162399 [07:32:16]Write 302 bytes [07:32:16]NVStorageSaveData done [07:32:16]OFDSenderStorePacket done [07:32:16]KKMCreateOFDPacket done [07:32:16]NVStorageSaveData kkm_last_timestamp [07:32:16]File name is /storage/kkm_last_timestamp [07:32:16]Write 4 bytes [07:32:16]NVStorageSaveData done [07:32:16]OFD Sender: Processing packet 162399 [packets to send 105, broken 104] [07:32:16]ProducePacketName [07:32:16]name=ofd_packets/00162399 [07:32:16]OFD Sender: To server: pG, [07:32:16]CommunicateWithHost lk.salyk.kg:30040 [07:32:16]ConnectInit lk.salyk.kg [07:32:16]ExternCall_PrintAddStr [07:32:16]wPrintStart [07:32:16]Write to MH i2c: 01 00 00 1A 00 1A [07:32:16]Write i2c OK [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: 01 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: 01 07 00 [07:32:16]MH_I2C_Read... [07:32:16]Read from MH i2c: 01 07 00 1A 00 00 00 00 00 00 FF 0F 2F [07:32:16]RasterBufferAndPrint [07:32:16]line Счет N : (1)1318924 [07:32:16]line ИНН: 02508201610067 [07:32:16]line Контрольно-Кассовый Чек [07:32:16]line ПРОДАЖА [07:32:16]line ТРК (МРК, ГНК) : 41 [07:32:16]line Товар: 2710194210 [07:32:16]line ДТ(л)-К-5 [07:32:16]line 20.660 * 72.60 [07:32:16]line = 1499.92 [07:32:16]line НДС 12% НСП 1% [07:32:16]line > о реализуемом товаре [07:32:16]line ИТОГО: 1499.92 [07:32:16]line НСП 1% : 13.27 [07:32:16]line НДС 12% : 159.28 [07:32:16]line Наличными: 0.00 [07:32:16]line Безнал.: 1499.92 [07:32:16]line Место: АЗС № 140 "Партнер Нефть" [07:32:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:32:16]line СНО: Общий режим [07:32:16]line Чек 67 13.07.2024 07:32 [07:32:16]line Смена: 462 ФФД: 1.0 [07:32:16]line ЗНМ: 0300000129 [07:32:16]line РНМ: 0000000000090858 [07:32:16]line Версия ККМ: 001 [07:32:16]line Платежная система: Бакай Банк [07:32:16]line ФМ: 0000000000874899 [07:32:16]line ФД: 162399 [07:32:16]line ФПД: 133287413699998 [07:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073228&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162399&fm=133287413699998&tin=02508201610067®Number=0000000000090858&sum=149992 [07:32:17]Connected sock=12 [07:32:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6D 0F 08 01 22 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B4 50 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E8 49 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 49 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 8C 2D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7A 02 00 35 04 06 00 79 39 64 F2 55 9E FB 6A 90 8B 72 58 46 58 [07:32:17]written 0, free lines is 4095 [07:32:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 18 47 47 00 E5 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7A 02 00 F4 03 04 00 A1 D9 91 66 B6 04 01 00 00 62 17 E2 B7 EA FF 2C D2 [07:32:17]CommunicateWithHost err = 0 [07:32:17]CheckOFDResponse [07:32:17]1017 (14) - 77093643461234 [07:32:17]1041 (16) - 0000000000874899 [07:32:17]1040 (4) - 162399 [07:32:17]1012 (4) - 13.07.2024 01:34 [07:32:17]1206 (1) - 0 [07:32:17]OFD Sender: Remove packet 162399 [07:32:17]ProducePacketName [07:32:17]name=ofd_packets/00162399 [07:32:17]NVStorageDeleteData [07:32:17]Write to MH i2c: 01 00 00 44 00 44 [07:32:17]Write i2c OK [07:32:17]MH_I2C_Read... [07:32:17]Read from MH i2c: 01 [07:32:17]MH_I2C_Read... [07:32:17]Read from MH i2c: 01 07 00 [07:32:17]MH_I2C_Read... [07:32:17]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FB 0C 52 [07:32:17]RasterBufferAndPrint [07:32:17]line [07:32:17]line [07:32:17]line [07:32:17]line [07:32:17]line [07:32:17]written 0, free lines is 3329 [07:32:17]MH_Cut [07:32:17]Write to MH i2c: D1 01 00 4B 00 01 1D [07:32:17]Write i2c OK [07:32:17]MH_I2C_Read... [07:32:17]Read from MH i2c: D1 [07:32:17]MH_I2C_Read... [07:32:17]Read from MH i2c: D1 01 00 [07:32:17]MH_I2C_Read... [07:32:17]Read from MH i2c: D1 01 00 4B 00 00 1C [07:32:17]Write to MH i2c: 01 00 00 4C 00 4C [07:32:17]Write i2c OK [07:32:17]MH_I2C_Read... [07:32:17]OFD Sender: No OFD packet to send [07:32:18]*** Cut start [07:32:18]*** Purtial cut [07:32:18]*** Stage 1: CUTSNS_PIN = 1 [07:32:18]Read from MH i2c: 01 [07:32:18]MH_I2C_Read... [07:32:18]*** Stop cut motor [07:32:18]*** Cut end [07:32:18]Read from MH i2c: 01 07 00 [07:32:18]MH_I2C_Read... [07:32:18]Read from MH i2c: 01 07 00 4C 00 00 00 00 00 00 FF 0F 61 [07:32:18]process_action close_receipt done [07:32:18]requested_data is exist [07:32:18]produce_requested_data [07:32:18]requested_item fm.sn is exist - process it [07:32:18]wFMCommunicate request_size=4 [07:32:18]MH_SAM_APDU [07:32:18]CAPDU: 80 11 00 00 [07:32:18]Write to MH i2c: E2 08 00 4D 00 80 11 00 00 00 00 00 00 C7 [07:32:18]Write i2c OK [07:32:18]MH_I2C_Read... [07:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:18]Read from MH i2c: E2 [07:32:18]MH_I2C_Read... [07:32:18]Read from MH i2c: E2 17 00 [07:32:18]MH_I2C_Read... [07:32:18]Read from MH i2c: E2 17 00 4D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 27 [07:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:32:18]wFMCommunicate OK [07:32:18]requested_item fd.num is exist - process it [07:32:18]SAM_PROTO_GetFieldsCounters [07:32:18]wFMCommunicate request_size=4 [07:32:18]MH_SAM_APDU [07:32:18]CAPDU: 80 13 00 00 [07:32:18]Write to MH i2c: E2 08 00 4E 00 80 13 00 00 00 00 00 00 CA [07:32:18]Write i2c OK [07:32:18]MH_I2C_Read... [07:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:18]Read from MH i2c: E2 [07:32:18]MH_I2C_Read... [07:32:18]Read from MH i2c: E2 62 00 [07:32:18]MH_I2C_Read... [07:32:18]Read from MH i2c: E2 62 00 4E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [07:32:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:18]wFMCommunicate OK [07:32:18]SAM_PROTO_GetFieldsCounters done [07:32:18]requested_item shift.num is exist - process it [07:32:18]requested_item shift.opened is exist - process it [07:32:18]req_shift_opened [07:32:18]FM_GetShiftState [07:32:18]SAM_PROTO_GetShiftState [07:32:18]wFMCommunicate request_size=4 [07:32:18]MH_SAM_APDU [07:32:18]CAPDU: 80 13 01 00 [07:32:18]Write to MH i2c: E2 08 00 4F 00 80 13 01 00 00 00 00 00 CC [07:32:18]Write i2c OK [07:32:18]MH_I2C_Read... [07:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:19]Read from MH i2c: E2 [07:32:19]MH_I2C_Read... [07:32:19]Read from MH i2c: E2 0E 00 [07:32:19]MH_I2C_Read... [07:32:19]Read from MH i2c: E2 0E 00 4F 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C6 [07:32:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:32:19]wFMCommunicate OK [07:32:19]SAM_PROTO_GetShiftState done [07:32:19]FM_GetShiftState done [07:32:19]req_shift_opened done [07:32:19]requested_item shift.open_date is exist - process it [07:32:19]req_shift_open_date [07:32:19]req_shift_open_date done [07:32:19]produce_requested_data done [07:32:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162399,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:32:19]process_action_free close_receipt [07:32:19]json_value_free [07:32:19]json_value_free done [07:32:19]process_json_proto returns [07:32:19]Send response to host [07:32:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162399,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:32:19]free response buf [07:32:19]execute_script done [07:32:19]execute_script returns [07:32:19]free content buf [07:32:19]Sock 9.Close socket [07:32:19]Sock 9.Thread stoped [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:15]accept exits with 8 [07:38:15]New connection [07:38:15]New thread 3066862948 created [07:38:15]Thread 3067006308 joined [07:38:15]Waiting for new connection... [07:38:15] Sock 8.Parse request [07:38:15]Sock 8.Check first char [07:38:15]Sock 8.First char is OK [07:38:15]request: POST /json_proto HTTP/1.0 [07:38:15]Method: POST [07:38:15]URL: /json_proto [07:38:15]Method is POST - this is cgi request [07:38:15]url: /json_proto [07:38:15]query_string will be loaded in cgi processing [07:38:15]execute_cgi json_proto POST (null) [07:38:15]execute_cgi path=json_proto method=POST [07:38:15]POST find Content-Length [07:38:15]Host: 172.17.39.67:8080 [07:38:15]Content-Length: 822 [07:38:15]Content-Type: application/json [07:38:15] [07:38:15]POST finish read [07:38:15]Found Content-Length = 822 [07:38:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:15]execute_script... [07:38: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)1318925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.21 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:15]POST & json_proto [07:38:15]process_json_proto [07:38:15]json parsed OK: [07:38:15]protocol is kg_v1.0 [07:38:15]action value=close_receipt [07:38:15]process_action close_receipt [07:38:15]cmd_close_receipt [07:38:15]MH_GetDate [07:38:15]Write to MH i2c: F0 00 00 50 00 3F [07:38:15]Write i2c OK [07:38:15]MH_I2C_Read... [07:38:15]Read from MH i2c: F0 [07:38:15]MH_I2C_Read... [07:38:15]Read from MH i2c: F0 09 00 [07:38:15]MH_I2C_Read... [07:38:15]Read from MH i2c: F0 09 00 50 00 00 F4 2E 92 66 FA E9 8E 66 39 [07:38:15]GetLastDocTimeStamp 1720855948 [07:38:15]current date 1720856308 [07:38:15]FM_GetShiftState [07:38:15]SAM_PROTO_GetShiftState [07:38:15]wFMCommunicate request_size=4 [07:38:15]MH_SAM_APDU [07:38:15]CAPDU: 80 13 01 00 [07:38:15]Write to MH i2c: E2 08 00 51 00 80 13 01 00 00 00 00 00 CE [07:38:15]Write i2c OK [07:38:15]MH_I2C_Read... [07:38:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:15]Read from MH i2c: E2 [07:38:15]MH_I2C_Read... [07:38:15]Read from MH i2c: E2 0E 00 [07:38:15]MH_I2C_Read... [07:38:15]Read from MH i2c: E2 0E 00 51 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C8 [07:38:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:38:15]wFMCommunicate OK [07:38:15]SAM_PROTO_GetShiftState done [07:38:15]FM_GetShiftState done [07:38:15]opened in 1720828979 [07:38:15]opened+sec_in_day 1720915379 [07:38:15]quantity*price = 50021 [07:38:15]sum+1 = 50022 [07:38:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.21 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.21 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 68 13.07.2024 07:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162400 ФПД: 157755275534678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073828&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162400&fm=157755275534678&tin=02508201610067®Number=0000000000090858&sum=50021 [07:38:16]StoreToDocumentArchive [07:38:16]shift 462 fd 162400 [07:38:16]save to /storage/0462/doc_00162400 [07:38:16]save last doc name /storage/0462/doc_00162400 to /storage/kkm_last_doc_name [07:38:16]save OK [07:38:16]Clear old archive folders... [07:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:38:16]tlvbuf is 01B9EA20 [07:38:16]SAM_PROTO_ClearQueue [07:38:16]wFMCommunicate request_size=4 [07:38:16]MH_SAM_APDU [07:38:16]CAPDU: 80 09 00 00 [07:38:16]Write to MH i2c: E2 08 00 5E 00 80 09 00 00 00 00 00 00 D0 [07:38:16]Write i2c OK [07:38:16]MH_I2C_Read... [07:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:16]Read from MH i2c: E2 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 03 00 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 03 00 5E 00 00 90 00 D2 [07:38:16]RAPDU: 90 00 [07:38:16]wFMCommunicate OK [07:38:16]SAM_PROTO_ClearQueue done [07:38:16]KKMCreateOFDPacket [07:38:16]OFDProtocolAddRootSTLVToBuf [07:38:16]FM_MakeSignedData [07:38:16]FM_MakeSignedData [07:38:16]SAM_PROTO_SignData [07:38:16]wFMCommunicate request_size=4 [07:38:16]MH_SAM_APDU [07:38:16]CAPDU: 80 0D 01 02 [07:38:16]Write to MH i2c: E2 08 00 5F 00 80 0D 01 02 00 00 00 00 D8 [07:38:16]Write i2c OK [07:38:16]MH_I2C_Read... [07:38:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:16]Read from MH i2c: E2 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 03 00 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [07:38:16]RAPDU: 90 00 [07:38:16]wFMCommunicate OK [07:38:16]wFMCommunicate request_size=255 [07:38:16]MH_SAM_APDU [07:38:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 2E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7A 02 00 35 04 06 00 [07:38:16]Write to MH i2c: E2 02 01 60 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 2E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7A 02 00 35 04 06 00 00 00 BC [07:38:16]Write i2c OK [07:38:16]MH_I2C_Read... [07:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:16]Read from MH i2c: E2 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 03 00 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [07:38:16]RAPDU: 90 00 [07:38:16]wFMCommunicate OK [07:38:16]wFMCommunicate request_size=11 [07:38:16]MH_SAM_APDU [07:38:16]CAPDU: 80 0D 02 02 06 8F 7A 43 28 E1 56 [07:38:16]Write to MH i2c: E2 0E 00 61 00 80 0D 02 02 06 00 8F 7A 43 28 E1 56 00 00 92 [07:38:16]Write i2c OK [07:38:16]MH_I2C_Read... [07:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:16]Read from MH i2c: E2 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 03 00 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [07:38:16]RAPDU: 90 00 [07:38:16]wFMCommunicate OK [07:38:16]wFMCommunicate request_size=4 [07:38:16]MH_SAM_APDU [07:38:16]CAPDU: 80 0D 03 02 [07:38:16]Write to MH i2c: E2 08 00 62 00 80 0D 03 02 00 00 00 00 DD [07:38:16]Write i2c OK [07:38:16]MH_I2C_Read... [07:38:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:16]Read from MH i2c: E2 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 0B 00 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 0B 00 62 00 00 73 F5 65 D3 36 5D 38 DF 90 00 28 [07:38:16]RAPDU: 73 F5 65 D3 36 5D 38 DF 90 00 [07:38:16]wFMCommunicate OK [07:38:16]SAM_PROTO_SignData done [07:38:16]FM_MakeSignedData done [07:38:16]CreateOFDProtocolMessage [07:38:16]wFMCommunicate request_size=4 [07:38:16]MH_SAM_APDU [07:38:16]CAPDU: 80 11 00 00 [07:38:16]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [07:38:16]Write i2c OK [07:38:16]MH_I2C_Read... [07:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:16]Read from MH i2c: E2 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 17 00 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3D [07:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:38:16]wFMCommunicate OK [07:38:16]CreateOFDProtocolMessage done [07:38:16]OFDSenderStorePacket 162400 [07:38:16]StoreOFDPacket docnum=162400 [07:38:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B6 4D 08 01 37 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 2E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7A 02 00 35 04 06 00 8F 7A 43 28 E1 56 73 F5 65 D3 36 5D 38 DF [07:38:16]CheckFolder [07:38:16]dirname=/storage/ofd_packets [07:38:16]CheckFolder done [07:38:16]ProducePacketName [07:38:16]name=ofd_packets/00162400 [07:38:16]NVStorageSaveData ofd_packets/00162400 [07:38:16]File name is /storage/ofd_packets/00162400 [07:38:16]Write 302 bytes [07:38:16]NVStorageSaveData done [07:38:16]OFDSenderStorePacket done [07:38:16]KKMCreateOFDPacket done [07:38:16]NVStorageSaveData kkm_last_timestamp [07:38:16]File name is /storage/kkm_last_timestamp [07:38:16]Write 4 bytes [07:38:16]NVStorageSaveData done [07:38:16]ExternCall_PrintAddStr [07:38:16]wPrintStart [07:38:16]Write to MH i2c: 01 00 00 64 00 64 [07:38:16]Write i2c OK [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: 01 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: 01 07 00 [07:38:16]MH_I2C_Read... [07:38:16]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [07:38:16]RasterBufferAndPrint [07:38:16]line Счет N : (1)1318925 [07:38:16]line ИНН: 02508201610067 [07:38:16]line Контрольно-Кассовый Чек [07:38:16]line ПРОДАЖА [07:38:16]line ТРК (МРК, ГНК) : 31 [07:38:16]line Товар: 2710194210 [07:38:16]line ДТ(л)-К-5 [07:38:16]line 6.890 * 72.60 [07:38:16]line = 500.21 [07:38:16]line НДС 12% НСП 1% [07:38:16]line > о реализуемом товаре [07:38:16]line ИТОГО: 500.21 [07:38:16]line НСП 1% : 4.43 [07:38:16]line НДС 12% : 53.12 [07:38:16]line Наличными: 0.00 [07:38:16]line Безнал.: 500.21 [07:38:16]line Место: АЗС № 140 "Партнер Нефть" [07:38:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:38:16]line СНО: Общий режим [07:38:16]line Чек 68 13.07.2024 07:38 [07:38:16]line Смена: 462 ФФД: 1.0 [07:38:16]line ЗНМ: 0300000129 [07:38:16]line РНМ: 0000000000090858 [07:38:16]line Версия ККМ: 001 [07:38:16]line Платежная система: Бакай Банк [07:38:16]line ФМ: 0000000000874899 [07:38:16]line ФД: 162400 [07:38:16]line ФПД: 157755275534678 [07:38:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T073828&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162400&fm=157755275534678&tin=02508201610067®Number=0000000000090858&sum=50021 [07:38:17]OFD Sender: Processing packet 162400 [packets to send 105, broken 104] [07:38:17]ProducePacketName [07:38:17]name=ofd_packets/00162400 [07:38:17]OFD Sender: To server: pG, [07:38:17]CommunicateWithHost lk.salyk.kg:30040 [07:38:17]ConnectInit lk.salyk.kg [07:38:17]written 0, free lines is 4095 [07:38:17]Connected sock=10 [07:38:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B6 4D 08 01 37 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 65 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 65 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 2E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7A 02 00 35 04 06 00 8F 7A 43 28 E1 56 73 F5 65 D3 36 5D 38 DF [07:38:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 10 5E 47 00 9E 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 34 38 39 39 10 04 04 00 60 7A 02 00 F4 03 04 00 09 DB 91 66 B6 04 01 00 00 F5 A5 F7 C0 03 50 A2 B5 [07:38:17]CommunicateWithHost err = 0 [07:38:17]CheckOFDResponse [07:38:17]1017 (14) - 77093643461234 [07:38:17]1041 (16) - 0000000000874899 [07:38:17]1040 (4) - 162400 [07:38:17]1012 (4) - 13.07.2024 01:40 [07:38:17]1206 (1) - 0 [07:38:17]OFD Sender: Remove packet 162400 [07:38:17]ProducePacketName [07:38:17]name=ofd_packets/00162400 [07:38:17]NVStorageDeleteData [07:38:17]Write to MH i2c: 01 00 00 8E 00 8E [07:38:17]Write i2c OK [07:38:17]MH_I2C_Read... [07:38:17]Read from MH i2c: 01 [07:38:17]MH_I2C_Read... [07:38:17]Read from MH i2c: 01 07 00 [07:38:17]MH_I2C_Read... [07:38:17]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 F1 0C 92 [07:38:17]RasterBufferAndPrint [07:38:17]line [07:38:17]line [07:38:17]line [07:38:17]line [07:38:17]line [07:38:17]written 0, free lines is 3319 [07:38:17]MH_Cut [07:38:17]Write to MH i2c: D1 01 00 95 00 01 67 [07:38:17]Write i2c OK [07:38:17]MH_I2C_Read... [07:38:17]Read from MH i2c: D1 [07:38:17]MH_I2C_Read... [07:38:17]Read from MH i2c: D1 01 00 [07:38:17]MH_I2C_Read... [07:38:17]Read from MH i2c: D1 01 00 95 00 00 66 [07:38:17]Write to MH i2c: 01 00 00 96 00 96 [07:38:17]Write i2c OK [07:38:17]MH_I2C_Read... [07:38:17]OFD Sender: No OFD packet to send [07:38:18]*** Cut start [07:38:18]*** Purtial cut [07:38:18]*** CUTSNS_PIN = 0 [07:38:18]*** Stage 1: CUTSNS_PIN = 1 [07:38:20]Read from MH i2c: 01 [07:38:20]MH_I2C_Read... [07:38:20]*** Stop cut motor [07:38:20]*** Cut end [07:38:20]Read from MH i2c: 01 07 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [07:38:20]process_action close_receipt done [07:38:20]requested_data is exist [07:38:20]produce_requested_data [07:38:20]requested_item fm.sn is exist - process it [07:38:20]wFMCommunicate request_size=4 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 11 00 00 [07:38:20]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 17 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 71 [07:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:38:20]wFMCommunicate OK [07:38:20]requested_item fd.num is exist - process it [07:38:20]SAM_PROTO_GetFieldsCounters [07:38:20]wFMCommunicate request_size=4 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 13 00 00 [07:38:20]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 62 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 60 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [07:38:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 60 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:38:20]wFMCommunicate OK [07:38:20]SAM_PROTO_GetFieldsCounters done [07:38:20]requested_item shift.num is exist - process it [07:38:20]requested_item shift.opened is exist - process it [07:38:20]req_shift_opened [07:38:20]FM_GetShiftState [07:38:20]SAM_PROTO_GetShiftState [07:38:20]wFMCommunicate request_size=4 [07:38:20]MH_SAM_APDU [07:38:20]CAPDU: 80 13 01 00 [07:38:20]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [07:38:20]Write i2c OK [07:38:20]MH_I2C_Read... [07:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:20]Read from MH i2c: E2 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 0E 00 [07:38:20]MH_I2C_Read... [07:38:20]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 10 [07:38:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:38:20]wFMCommunicate OK [07:38:20]SAM_PROTO_GetShiftState done [07:38:20]FM_GetShiftState done [07:38:20]req_shift_opened done [07:38:20]requested_item shift.open_date is exist - process it [07:38:20]req_shift_open_date [07:38:20]req_shift_open_date done [07:38:20]produce_requested_data done [07:38:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162400,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:38:20]process_action_free close_receipt [07:38:20]json_value_free [07:38:20]json_value_free done [07:38:20]process_json_proto returns [07:38:20]Send response to host [07:38:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162400,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:38:20]free response buf [07:38:20]execute_script done [07:38:20]execute_script returns [07:38:20]free content buf [07:38:20]Sock 8.Close socket [07:38:20]Sock 8.Thread stoped [07:38:22]OFD Sender: No OFD packet to send [07:38:27]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:45]accept exits with 9 [07:41:45]New connection [07:41:45]New thread 3067006308 created [07:41:45]Thread 3066862948 joined [07:41:45]Waiting for new connection... [07:41:45] Sock 9.Parse request [07:41:45]Sock 9.Check first char [07:41:45]Sock 9.First char is OK [07:41:45]request: POST /json_proto HTTP/1.0 [07:41:45]Method: POST [07:41:45]URL: /json_proto [07:41:45]Method is POST - this is cgi request [07:41:45]url: /json_proto [07:41:45]query_string will be loaded in cgi processing [07:41:45]execute_cgi json_proto POST (null) [07:41:45]execute_cgi path=json_proto method=POST [07:41:45]POST find Content-Length [07:41:45]Host: 172.17.39.67:8080 [07:41:45]Content-Length: 820 [07:41:45]Content-Type: application/json [07:41:45] [07:41:45]POST finish read [07:41:45]Found Content-Length = 820 [07:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 40.000, "sum" : 2652.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2652.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:45]execute_script... [07:41:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 40.000, "sum" : 2652.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2652.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:45]POST & json_proto [07:41:45]process_json_proto [07:41:45]json parsed OK: [07:41:45]protocol is kg_v1.0 [07:41:45]action value=close_receipt [07:41:45]process_action close_receipt [07:41:45]cmd_close_receipt [07:41:45]MH_GetDate [07:41:45]Write to MH i2c: F0 00 00 9A 00 89 [07:41:45]Write i2c OK [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: F0 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: F0 09 00 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: F0 09 00 9A 00 00 C6 2F 92 66 FA E9 8E 66 56 [07:41:45]GetLastDocTimeStamp 1720856308 [07:41:45]current date 1720856518 [07:41:45]FM_GetShiftState [07:41:45]SAM_PROTO_GetShiftState [07:41:45]wFMCommunicate request_size=4 [07:41:45]MH_SAM_APDU [07:41:45]CAPDU: 80 13 01 00 [07:41:45]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [07:41:45]Write i2c OK [07:41:45]MH_I2C_Read... [07:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:45]Read from MH i2c: E2 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 0E 00 [07:41:45]MH_I2C_Read... [07:41:45]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 12 [07:41:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:41:45]wFMCommunicate OK [07:41:45]SAM_PROTO_GetShiftState done [07:41:45]FM_GetShiftState done [07:41:45]opened in 1720828979 [07:41:45]opened+sec_in_day 1720915379 [07:41:45]quantity*price = 265200 [07:41:45]sum+1 = 265201 [07:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2652.00 НСП 1% : 23.47 НДС 12% : 281.63 Наличными: 0.00 Безнал.: 2652.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 69 13.07.2024 07:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162401 ФПД: 178794107881029 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T074158&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162401&fm=178794107881029&tin=02508201610067®Number=0000000000090858&sum=265200 [07:41:46]StoreToDocumentArchive [07:41:46]shift 462 fd 162401 [07:41:46]save to /storage/0462/doc_00162401 [07:41:46]save last doc name /storage/0462/doc_00162401 to /storage/kkm_last_doc_name [07:41:46]save OK [07:41:46]Clear old archive folders... [07:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:46]tlvbuf is 01B9E5F0 [07:41:46]SAM_PROTO_ClearQueue [07:41:46]wFMCommunicate request_size=4 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 09 00 00 [07:41:46]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [07:41:46]RAPDU: 90 00 [07:41:46]wFMCommunicate OK [07:41:46]SAM_PROTO_ClearQueue done [07:41:46]KKMCreateOFDPacket [07:41:46]OFDProtocolAddRootSTLVToBuf [07:41:46]FM_MakeSignedData [07:41:46]FM_MakeSignedData [07:41:46]SAM_PROTO_SignData [07:41:46]wFMCommunicate request_size=4 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 0D 01 02 [07:41:46]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [07:41:46]RAPDU: 90 00 [07:41:46]wFMCommunicate OK [07:41:46]wFMCommunicate request_size=255 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F0 0B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 0B 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C6 2F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7A 02 00 35 04 06 00 A2 [07:41:46]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F0 0B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 0B 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C6 2F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7A 02 00 35 04 06 00 A2 00 00 3B [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [07:41:46]RAPDU: 90 00 [07:41:46]wFMCommunicate OK [07:41:46]wFMCommunicate request_size=10 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 0D 02 02 05 9C BF 49 C6 45 [07:41:46]Write to MH i2c: E2 0D 00 AB 00 80 0D 02 02 05 00 9C BF 49 C6 45 00 00 DE [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [07:41:46]RAPDU: 90 00 [07:41:46]wFMCommunicate OK [07:41:46]wFMCommunicate request_size=4 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 0D 03 02 [07:41:46]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 0B 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 0B 00 AC 00 00 7D DB 5D 3D D1 ED 64 3B 90 00 77 [07:41:46]RAPDU: 7D DB 5D 3D D1 ED 64 3B 90 00 [07:41:46]wFMCommunicate OK [07:41:46]SAM_PROTO_SignData done [07:41:46]FM_MakeSignedData done [07:41:46]CreateOFDProtocolMessage [07:41:46]wFMCommunicate request_size=4 [07:41:46]MH_SAM_APDU [07:41:46]CAPDU: 80 11 00 00 [07:41:46]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:46]Read from MH i2c: E2 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 17 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 87 [07:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:41:46]wFMCommunicate OK [07:41:46]CreateOFDProtocolMessage done [07:41:46]OFDSenderStorePacket 162401 [07:41:46]StoreOFDPacket docnum=162401 [07:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 71 05 07 01 A0 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 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F0 0B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 0B 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C6 2F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7A 02 00 35 04 06 00 A2 9C BF 49 C6 45 7D DB 5D 3D D1 ED 64 3B [07:41:46]CheckFolder [07:41:46]dirname=/storage/ofd_packets [07:41:46]CheckFolder done [07:41:46]ProducePacketName [07:41:46]name=ofd_packets/00162401 [07:41:46]NVStorageSaveData ofd_packets/00162401 [07:41:46]File name is /storage/ofd_packets/00162401 [07:41:46]Write 301 bytes [07:41:46]NVStorageSaveData done [07:41:46]OFDSenderStorePacket done [07:41:46]KKMCreateOFDPacket done [07:41:46]NVStorageSaveData kkm_last_timestamp [07:41:46]File name is /storage/kkm_last_timestamp [07:41:46]Write 4 bytes [07:41:46]NVStorageSaveData done [07:41:46]ExternCall_PrintAddStr [07:41:46]wPrintStart [07:41:46]Write to MH i2c: 01 00 00 AE 00 AE [07:41:46]Write i2c OK [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: 01 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: 01 07 00 [07:41:46]MH_I2C_Read... [07:41:46]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [07:41:46]RasterBufferAndPrint [07:41:46]line Счет N : (1)1318926 [07:41:46]line ИНН: 02508201610067 [07:41:46]line Контрольно-Кассовый Чек [07:41:46]line ПРОДАЖА [07:41:46]line ТРК (МРК, ГНК) : 43 [07:41:46]line Товар: 2710124130 [07:41:46]line Аи-92-К-5 [07:41:46]line 40.000 * 66.30 [07:41:46]line = 2652.00 [07:41:46]line НДС 12% НСП 1% [07:41:46]line > о реализуемом товаре [07:41:46]line ИТОГО: 2652.00 [07:41:46]line НСП 1% : 23.47 [07:41:46]line НДС 12% : 281.63 [07:41:46]line Наличными: 0.00 [07:41:46]line Безнал.: 2652.00 [07:41:46]line Место: АЗС № 140 "Партнер Нефть" [07:41:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:41:46]line СНО: Общий режим [07:41:46]line Чек 69 13.07.2024 07:41 [07:41:46]line Смена: 462 ФФД: 1.0 [07:41:46]line ЗНМ: 0300000129 [07:41:46]line РНМ: 0000000000090858 [07:41:46]line Версия ККМ: 001 [07:41:46]line Платежная система: Бакай Банк [07:41:46]line ФМ: 0000000000874899 [07:41:46]line ФД: 162401 [07:41:46]line ФПД: 178794107881029 [07:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T074158&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162401&fm=178794107881029&tin=02508201610067®Number=0000000000090858&sum=265200 [07:41:47]written 0, free lines is 4095 [07:41:47]OFD Sender: Processing packet 162401 [packets to send 105, broken 104] [07:41:47]ProducePacketName [07:41:47]name=ofd_packets/00162401 [07:41:47]OFD Sender: To server: pG, [07:41:47]CommunicateWithHost lk.salyk.kg:30040 [07:41:47]ConnectInit lk.salyk.kg [07:41:47]Connected sock=10 [07:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 71 05 07 01 A0 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 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F0 0B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 0B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 0B 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 C6 2F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7A 02 00 35 04 06 00 A2 9C BF 49 C6 45 7D DB 5D 3D D1 ED 64 3B [07:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 13 0D 47 00 1F 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7A 02 00 F4 03 04 00 DB DB 91 66 B6 04 01 00 00 67 A6 5E 80 9B 69 7E 74 [07:41:47]CommunicateWithHost err = 0 [07:41:47]CheckOFDResponse [07:41:47]1017 (14) - 77093643461234 [07:41:47]1041 (16) - 0000000000874899 [07:41:47]1040 (4) - 162401 [07:41:47]1012 (4) - 13.07.2024 01:43 [07:41:47]1206 (1) - 0 [07:41:47]OFD Sender: Remove packet 162401 [07:41:47]ProducePacketName [07:41:47]name=ofd_packets/00162401 [07:41:47]NVStorageDeleteData [07:41:47]Write to MH i2c: 01 00 00 D8 00 D8 [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: 01 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: 01 07 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: 01 07 00 D8 00 00 00 00 00 00 ED 0C D8 [07:41:47]RasterBufferAndPrint [07:41:47]line [07:41:47]line [07:41:47]line [07:41:47]line [07:41:47]line [07:41:47]written 0, free lines is 3315 [07:41:47]MH_Cut [07:41:47]Write to MH i2c: D1 01 00 DF 00 01 B1 [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: D1 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: D1 01 00 [07:41:47]MH_I2C_Read... [07:41:47]Read from MH i2c: D1 01 00 DF 00 00 B0 [07:41:47]Write to MH i2c: 01 00 00 E0 00 E0 [07:41:47]Write i2c OK [07:41:47]MH_I2C_Read... [07:41:47]OFD Sender: No OFD packet to send [07:41:48]*** Cut start [07:41:48]*** Purtial cut [07:41:48]*** Stage 1: CUTSNS_PIN = 1 [07:41:48]Read from MH i2c: 01 [07:41:48]MH_I2C_Read... [07:41:48]*** Stop cut motor [07:41:48]*** Cut end [07:41:48]Read from MH i2c: 01 07 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: 01 07 00 E0 00 00 00 00 00 00 FF 0F F5 [07:41:48]process_action close_receipt done [07:41:48]requested_data is exist [07:41:48]produce_requested_data [07:41:48]requested_item fm.sn is exist - process it [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 11 00 00 [07:41:48]Write to MH i2c: E2 08 00 E1 00 80 11 00 00 00 00 00 00 5B [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 17 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 17 00 E1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BB [07:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:41:48]wFMCommunicate OK [07:41:48]requested_item fd.num is exist - process it [07:41:48]SAM_PROTO_GetFieldsCounters [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 13 00 00 [07:41:48]Write to MH i2c: E2 08 00 E2 00 80 13 00 00 00 00 00 00 5E [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 62 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 62 00 E2 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 61 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [07:41:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 61 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_GetFieldsCounters done [07:41:48]requested_item shift.num is exist - process it [07:41:48]requested_item shift.opened is exist - process it [07:41:48]req_shift_opened [07:41:48]FM_GetShiftState [07:41:48]SAM_PROTO_GetShiftState [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 13 01 00 [07:41:48]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0E 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5A [07:41:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_GetShiftState done [07:41:48]FM_GetShiftState done [07:41:48]req_shift_opened done [07:41:48]requested_item shift.open_date is exist - process it [07:41:48]req_shift_open_date [07:41:48]req_shift_open_date done [07:41:48]produce_requested_data done [07:41:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162401,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:41:48]process_action_free close_receipt [07:41:48]json_value_free [07:41:48]json_value_free done [07:41:48]process_json_proto returns [07:41:48]Send response to host [07:41:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162401,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:41:48]free response buf [07:41:48]execute_script done [07:41:48]execute_script returns [07:41:48]free content buf [07:41:48]Sock 9.Close socket [07:41:48]Sock 9.Thread stoped [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:05]accept exits with 8 [07:42:05]New connection [07:42:05]New thread 3066862948 created [07:42:05]Thread 3067006308 joined [07:42:05]Waiting for new connection... [07:42:05] Sock 8.Parse request [07:42:05]Sock 8.Check first char [07:42:05]Sock 8.First char is OK [07:42:05]request: POST /json_proto HTTP/1.0 [07:42:05]Method: POST [07:42:05]URL: /json_proto [07:42:05]Method is POST - this is cgi request [07:42:05]url: /json_proto [07:42:05]query_string will be loaded in cgi processing [07:42:05]execute_cgi json_proto POST (null) [07:42:05]execute_cgi path=json_proto method=POST [07:42:05]POST find Content-Length [07:42:05]Host: 172.17.39.67:8080 [07:42:05]Content-Length: 683 [07:42:05]Content-Type: application/json [07:42:05] [07:42:05]POST finish read [07:42:05]Found Content-Length = 683 [07:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:05]execute_script... [07:42: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)1318927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:05]POST & json_proto [07:42:05]process_json_proto [07:42:05]json parsed OK: [07:42:05]protocol is kg_v1.0 [07:42:05]action value=close_receipt [07:42:05]process_action close_receipt [07:42:05]cmd_close_receipt [07:42:05]MH_GetDate [07:42:05]Write to MH i2c: F0 00 00 E4 00 D3 [07:42:05]Write i2c OK [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: F0 [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: F0 09 00 [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: F0 09 00 E4 00 00 DA 2F 92 66 FA E9 8E 66 B4 [07:42:05]GetLastDocTimeStamp 1720856518 [07:42:05]current date 1720856538 [07:42:05]FM_GetShiftState [07:42:05]SAM_PROTO_GetShiftState [07:42:05]wFMCommunicate request_size=4 [07:42:05]MH_SAM_APDU [07:42:05]CAPDU: 80 13 01 00 [07:42:05]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [07:42:05]Write i2c OK [07:42:05]MH_I2C_Read... [07:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:05]Read from MH i2c: E2 [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: E2 0E 00 [07:42:05]MH_I2C_Read... [07:42:05]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5C [07:42:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:42:05]wFMCommunicate OK [07:42:05]SAM_PROTO_GetShiftState done [07:42:05]FM_GetShiftState done [07:42:05]opened in 1720828979 [07:42:05]opened+sec_in_day 1720915379 [07:42:05]quantity*price = 100046 [07:42:05]sum+1 = 100048 [07:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 70 13.07.2024 07:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162402 ФПД: 235618042266405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T074219&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162402&fm=235618042266405&tin=02508201610067®Number=0000000000090858&sum=100000 [07:42:06]StoreToDocumentArchive [07:42:06]shift 462 fd 162402 [07:42:06]save to /storage/0462/doc_00162402 [07:42:06]save last doc name /storage/0462/doc_00162402 to /storage/kkm_last_doc_name [07:42:06]save OK [07:42:06]Clear old archive folders... [07:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:42:06]tlvbuf is 01C8C120 [07:42:06]SAM_PROTO_ClearQueue [07:42:06]wFMCommunicate request_size=4 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 09 00 00 [07:42:06]Write to MH i2c: E2 08 00 F2 00 80 09 00 00 00 00 00 00 64 [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:06]Read from MH i2c: E2 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 03 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [07:42:06]RAPDU: 90 00 [07:42:06]wFMCommunicate OK [07:42:06]SAM_PROTO_ClearQueue done [07:42:06]KKMCreateOFDPacket [07:42:06]OFDProtocolAddRootSTLVToBuf [07:42:06]FM_MakeSignedData [07:42:06]FM_MakeSignedData [07:42:06]SAM_PROTO_SignData [07:42:06]wFMCommunicate request_size=4 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 0D 01 02 [07:42:06]Write to MH i2c: E2 08 00 F3 00 80 0D 01 02 00 00 00 00 6C [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:06]Read from MH i2c: E2 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 03 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [07:42:06]RAPDU: 90 00 [07:42:06]wFMCommunicate OK [07:42:06]wFMCommunicate request_size=255 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 46 00 00 00 F4 03 04 00 DB 2F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7A 02 00 35 04 06 00 D6 [07:42:06]Write to MH i2c: E2 02 01 F4 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 46 00 00 00 F4 03 04 00 DB 2F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7A 02 00 35 04 06 00 D6 00 00 43 [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [07:42:07]RAPDU: 90 00 [07:42:07]wFMCommunicate OK [07:42:07]wFMCommunicate request_size=10 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 0D 02 02 05 4B 19 B6 43 25 [07:42:07]Write to MH i2c: E2 0D 00 F5 00 80 0D 02 02 05 00 4B 19 B6 43 25 00 00 FB [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [07:42:07]RAPDU: 90 00 [07:42:07]wFMCommunicate OK [07:42:07]wFMCommunicate request_size=4 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 0D 03 02 [07:42:07]Write to MH i2c: E2 08 00 F6 00 80 0D 03 02 00 00 00 00 71 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 0B 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 0B 00 F6 00 00 3F DB B7 DC 3D 9C 0D 53 90 00 58 [07:42:07]RAPDU: 3F DB B7 DC 3D 9C 0D 53 90 00 [07:42:07]wFMCommunicate OK [07:42:07]SAM_PROTO_SignData done [07:42:07]FM_MakeSignedData done [07:42:07]CreateOFDProtocolMessage [07:42:07]wFMCommunicate request_size=4 [07:42:07]MH_SAM_APDU [07:42:07]CAPDU: 80 11 00 00 [07:42:07]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:07]Read from MH i2c: E2 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 17 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [07:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:42:07]wFMCommunicate OK [07:42:07]CreateOFDProtocolMessage done [07:42:07]OFDSenderStorePacket 162402 [07:42:07]StoreOFDPacket docnum=162402 [07:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B0 C4 07 01 FD AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 46 00 00 00 F4 03 04 00 DB 2F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7A 02 00 35 04 06 00 D6 4B 19 B6 43 25 3F DB B7 DC 3D 9C 0D 53 [07:42:07]CheckFolder [07:42:07]dirname=/storage/ofd_packets [07:42:07]CheckFolder done [07:42:07]ProducePacketName [07:42:07]name=ofd_packets/00162402 [07:42:07]NVStorageSaveData ofd_packets/00162402 [07:42:07]File name is /storage/ofd_packets/00162402 [07:42:07]Write 301 bytes [07:42:07]NVStorageSaveData done [07:42:07]OFDSenderStorePacket done [07:42:07]KKMCreateOFDPacket done [07:42:07]NVStorageSaveData kkm_last_timestamp [07:42:07]File name is /storage/kkm_last_timestamp [07:42:07]Write 4 bytes [07:42:07]NVStorageSaveData done [07:42:07]ExternCall_PrintAddStr [07:42:07]wPrintStart [07:42:07]Write to MH i2c: 01 00 00 F8 00 F8 [07:42:07]Write i2c OK [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 07 00 [07:42:07]MH_I2C_Read... [07:42:07]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [07:42:07]RasterBufferAndPrint [07:42:07]line Счет N : (1)1318927 [07:42:07]line ИНН: 02508201610067 [07:42:07]line Контрольно-Кассовый Чек [07:42:07]line ПРОДАЖА [07:42:07]line ТРК (МРК, ГНК) : 63 [07:42:07]line Товар: 2710124130 [07:42:07]line Аи-92-К-5 [07:42:07]line 15.090 * 66.30 [07:42:07]line = 1000.47 [07:42:07]line НДС 12% НСП 1% [07:42:07]line > о реализуемом товаре [07:42:07]line ОКРУГЛЕНИЕ: -0.47 [07:42:07]line ИТОГО: 1000.00 [07:42:07]line Внесено: 1000.00 [07:42:07]line СДАЧА: 0.00 [07:42:07]line НСП 1% : 8.85 [07:42:07]line НДС 12% : 106.24 [07:42:07]line Наличными: 1000.00 [07:42:07]line Безнал.: 0.00 [07:42:07]line Место: АЗС № 140 "Партнер Нефть" [07:42:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:42:07]line СНО: Общий режим [07:42:07]line Чек 70 13.07.2024 07:42 [07:42:07]line Смена: 462 ФФД: 1.0 [07:42:07]line ЗНМ: 0300000129 [07:42:07]line РНМ: 0000000000090858 [07:42:07]line Версия ККМ: 001 [07:42:07]line ФМ: 0000000000874899 [07:42:07]line ФД: 162402 [07:42:07]line ФПД: 235618042266405 [07:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T074219&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162402&fm=235618042266405&tin=02508201610067®Number=0000000000090858&sum=100000 [07:42:07]OFD Sender: Processing packet 162402 [packets to send 105, broken 104] [07:42:07]ProducePacketName [07:42:07]name=ofd_packets/00162402 [07:42:07]OFD Sender: To server: pG, [07:42:07]CommunicateWithHost lk.salyk.kg:30040 [07:42:07]ConnectInit lk.salyk.kg [07:42:07]written 0, free lines is 4095 [07:42:07]Connected sock=11 [07:42:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B0 C4 07 01 FD AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 46 00 00 00 F4 03 04 00 DB 2F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7A 02 00 35 04 06 00 D6 4B 19 B6 43 25 3F DB B7 DC 3D 9C 0D 53 [07:42:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BF 29 47 00 6C F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7A 02 00 F4 03 04 00 EF DB 91 66 B6 04 01 00 00 28 4D BD 98 3B CB 35 B1 [07:42:08]CommunicateWithHost err = 0 [07:42:08]CheckOFDResponse [07:42:08]1017 (14) - 77093643461234 [07:42:08]1041 (16) - 0000000000874899 [07:42:08]1040 (4) - 162402 [07:42:08]1012 (4) - 13.07.2024 01:44 [07:42:08]1206 (1) - 0 [07:42:08]OFD Sender: Remove packet 162402 [07:42:08]ProducePacketName [07:42:08]name=ofd_packets/00162402 [07:42:08]NVStorageDeleteData [07:42:08]Write to MH i2c: 01 00 00 23 01 24 [07:42:08]Write i2c OK [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: 01 [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: 01 07 00 [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: 01 07 00 23 01 00 00 00 00 00 E3 0C 1A [07:42:08]RasterBufferAndPrint [07:42:08]line [07:42:08]line [07:42:08]line [07:42:08]line [07:42:08]line [07:42:08]written 0, free lines is 3305 [07:42:08]MH_Cut [07:42:08]Write to MH i2c: D1 01 00 2A 01 01 FD [07:42:08]Write i2c OK [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: D1 [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: D1 01 00 [07:42:08]MH_I2C_Read... [07:42:08]Read from MH i2c: D1 01 00 2A 01 00 FC [07:42:08]Write to MH i2c: 01 00 00 2B 01 2C [07:42:08]Write i2c OK [07:42:08]MH_I2C_Read... [07:42:08]OFD Sender: No OFD packet to send [07:42:08]*** Cut start [07:42:08]*** Purtial cut [07:42:08]*** CUTSNS_PIN = 0 [07:42:09]*** Stage 1: CUTSNS_PIN = 1 [07:42:10]Read from MH i2c: 01 [07:42:10]MH_I2C_Read... [07:42:10]*** Stop cut motor [07:42:10]*** Cut end [07:42:10]Read from MH i2c: 01 07 00 [07:42:10]MH_I2C_Read... [07:42:10]Read from MH i2c: 01 07 00 2B 01 00 00 00 00 00 FF 0F 41 [07:42:10]process_action close_receipt done [07:42:10]requested_data is exist [07:42:10]produce_requested_data [07:42:10]requested_item fm.sn is exist - process it [07:42:10]wFMCommunicate request_size=4 [07:42:10]MH_SAM_APDU [07:42:10]CAPDU: 80 11 00 00 [07:42:10]Write to MH i2c: E2 08 00 2C 01 80 11 00 00 00 00 00 00 A7 [07:42:10]Write i2c OK [07:42:10]MH_I2C_Read... [07:42:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:11]Read from MH i2c: E2 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: E2 17 00 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: E2 17 00 2C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 07 [07:42:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:42:11]wFMCommunicate OK [07:42:11]requested_item fd.num is exist - process it [07:42:11]SAM_PROTO_GetFieldsCounters [07:42:11]wFMCommunicate request_size=4 [07:42:11]MH_SAM_APDU [07:42:11]CAPDU: 80 13 00 00 [07:42:11]Write to MH i2c: E2 08 00 2D 01 80 13 00 00 00 00 00 00 AA [07:42:11]Write i2c OK [07:42:11]MH_I2C_Read... [07:42:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:11]Read from MH i2c: E2 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: E2 62 00 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: E2 62 00 2D 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 62 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [07:42:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 62 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:11]wFMCommunicate OK [07:42:11]SAM_PROTO_GetFieldsCounters done [07:42:11]requested_item shift.num is exist - process it [07:42:11]requested_item shift.opened is exist - process it [07:42:11]req_shift_opened [07:42:11]FM_GetShiftState [07:42:11]SAM_PROTO_GetShiftState [07:42:11]wFMCommunicate request_size=4 [07:42:11]MH_SAM_APDU [07:42:11]CAPDU: 80 13 01 00 [07:42:11]Write to MH i2c: E2 08 00 2E 01 80 13 01 00 00 00 00 00 AC [07:42:11]Write i2c OK [07:42:11]MH_I2C_Read... [07:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:11]Read from MH i2c: E2 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: E2 0E 00 [07:42:11]MH_I2C_Read... [07:42:11]Read from MH i2c: E2 0E 00 2E 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A6 [07:42:11]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:42:11]wFMCommunicate OK [07:42:11]SAM_PROTO_GetShiftState done [07:42:11]FM_GetShiftState done [07:42:11]req_shift_opened done [07:42:11]requested_item shift.open_date is exist - process it [07:42:11]req_shift_open_date [07:42:11]req_shift_open_date done [07:42:11]produce_requested_data done [07:42:11]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162402,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:42:11]process_action_free close_receipt [07:42:11]json_value_free [07:42:11]json_value_free done [07:42:11]process_json_proto returns [07:42:11]Send response to host [07:42:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162402,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:42:11]free response buf [07:42:11]execute_script done [07:42:11]execute_script returns [07:42:11]free content buf [07:42:11]Sock 8.Close socket [07:42:11]Sock 8.Thread stoped [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]accept exits with 9 [07:48:23]New connection [07:48:23]New thread 3067006308 created [07:48:23]Thread 3066862948 joined [07:48:23]Waiting for new connection... [07:48:23] Sock 9.Parse request [07:48:23]Sock 9.Check first char [07:48:23]Sock 9.First char is OK [07:48:23]request: POST /json_proto HTTP/1.0 [07:48:23]Method: POST [07:48:23]URL: /json_proto [07:48:23]Method is POST - this is cgi request [07:48:23]url: /json_proto [07:48:23]query_string will be loaded in cgi processing [07:48:23]execute_cgi json_proto POST (null) [07:48:23]execute_cgi path=json_proto method=POST [07:48:23]POST find Content-Length [07:48:23]Host: 172.17.39.67:8080 [07:48:23]Content-Length: 679 [07:48:23]Content-Type: application/json [07:48:23] [07:48:23]POST finish read [07:48:23]Found Content-Length = 679 [07:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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:48:23]execute_script... [07:48: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)1318928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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:48:23]POST & json_proto [07:48:23]process_json_proto [07:48:23]json parsed OK: [07:48:23]protocol is kg_v1.0 [07:48:23]action value=close_receipt [07:48:23]process_action close_receipt [07:48:23]cmd_close_receipt [07:48:23]MH_GetDate [07:48:23]Write to MH i2c: F0 00 00 2F 01 1F [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: F0 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: F0 09 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: F0 09 00 2F 01 00 55 31 92 66 FA E9 8E 66 7D [07:48:23]GetLastDocTimeStamp 1720856539 [07:48:23]current date 1720856917 [07:48:23]FM_GetShiftState [07:48:23]SAM_PROTO_GetShiftState [07:48:23]wFMCommunicate request_size=4 [07:48:23]MH_SAM_APDU [07:48:23]CAPDU: 80 13 01 00 [07:48:23]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [07:48:23]Write i2c OK [07:48:23]MH_I2C_Read... [07:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:23]Read from MH i2c: E2 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 0E 00 [07:48:23]MH_I2C_Read... [07:48:23]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A8 [07:48:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:48:23]wFMCommunicate OK [07:48:23]SAM_PROTO_GetShiftState done [07:48:23]FM_GetShiftState done [07:48:23]opened in 1720828979 [07:48:23]opened+sec_in_day 1720915379 [07:48:23]quantity*price = 70012 [07:48:23]sum+1 = 70014 [07:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 71 13.07.2024 07:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162403 ФПД: 225108116698499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T074837&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162403&fm=225108116698499&tin=02508201610067®Number=0000000000090858&sum=70000 [07:48:25]StoreToDocumentArchive [07:48:25]shift 462 fd 162403 [07:48:25]save to /storage/0462/doc_00162403 [07:48:25]save last doc name /storage/0462/doc_00162403 to /storage/kkm_last_doc_name [07:48:25]save OK [07:48:25]Clear old archive folders... [07:48:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:48:25]tlvbuf is 01865060 [07:48:25]SAM_PROTO_ClearQueue [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 09 00 00 [07:48:25]Write to MH i2c: E2 08 00 3D 01 80 09 00 00 00 00 00 00 B0 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [07:48:25]RAPDU: 90 00 [07:48:25]wFMCommunicate OK [07:48:25]SAM_PROTO_ClearQueue done [07:48:25]KKMCreateOFDPacket [07:48:25]OFDProtocolAddRootSTLVToBuf [07:48:25]FM_MakeSignedData [07:48:25]FM_MakeSignedData [07:48:25]SAM_PROTO_SignData [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 0D 01 02 [07:48:25]Write to MH i2c: E2 08 00 3E 01 80 0D 01 02 00 00 00 00 B8 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [07:48:25]RAPDU: 90 00 [07:48:25]wFMCommunicate OK [07:48:25]wFMCommunicate request_size=255 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 55 31 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7A 02 00 35 04 06 00 CC [07:48:25]Write to MH i2c: E2 02 01 3F 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 55 31 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7A 02 00 35 04 06 00 CC 00 00 A4 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [07:48:25]RAPDU: 90 00 [07:48:25]wFMCommunicate OK [07:48:25]wFMCommunicate request_size=10 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 0D 02 02 05 BC 11 54 F5 83 [07:48:25]Write to MH i2c: E2 0D 00 40 01 80 0D 02 02 05 00 BC 11 54 F5 83 00 00 5E [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [07:48:25]RAPDU: 90 00 [07:48:25]wFMCommunicate OK [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 0D 03 02 [07:48:25]Write to MH i2c: E2 08 00 41 01 80 0D 03 02 00 00 00 00 BD [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 0B 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 0B 00 41 01 00 E3 63 BD 96 6B A4 79 22 90 00 01 [07:48:25]RAPDU: E3 63 BD 96 6B A4 79 22 90 00 [07:48:25]wFMCommunicate OK [07:48:25]SAM_PROTO_SignData done [07:48:25]FM_MakeSignedData done [07:48:25]CreateOFDProtocolMessage [07:48:25]wFMCommunicate request_size=4 [07:48:25]MH_SAM_APDU [07:48:25]CAPDU: 80 11 00 00 [07:48:25]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:25]Read from MH i2c: E2 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 17 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1D [07:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:48:25]wFMCommunicate OK [07:48:25]CreateOFDProtocolMessage done [07:48:25]OFDSenderStorePacket 162403 [07:48:25]StoreOFDPacket docnum=162403 [07:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B5 D0 07 01 85 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 55 31 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7A 02 00 35 04 06 00 CC BC 11 54 F5 83 E3 63 BD 96 6B A4 79 22 [07:48:25]CheckFolder [07:48:25]dirname=/storage/ofd_packets [07:48:25]CheckFolder done [07:48:25]ProducePacketName [07:48:25]name=ofd_packets/00162403 [07:48:25]NVStorageSaveData ofd_packets/00162403 [07:48:25]File name is /storage/ofd_packets/00162403 [07:48:25]Write 301 bytes [07:48:25]NVStorageSaveData done [07:48:25]OFDSenderStorePacket done [07:48:25]KKMCreateOFDPacket done [07:48:25]NVStorageSaveData kkm_last_timestamp [07:48:25]File name is /storage/kkm_last_timestamp [07:48:25]Write 4 bytes [07:48:25]NVStorageSaveData done [07:48:25]ExternCall_PrintAddStr [07:48:25]wPrintStart [07:48:25]Write to MH i2c: 01 00 00 43 01 44 [07:48:25]Write i2c OK [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: 01 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: 01 07 00 [07:48:25]MH_I2C_Read... [07:48:25]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [07:48:25]RasterBufferAndPrint [07:48:25]line Счет N : (1)1318928 [07:48:25]line ИНН: 02508201610067 [07:48:25]line Контрольно-Кассовый Чек [07:48:25]line ПРОДАЖА [07:48:25]line ТРК (МРК, ГНК) : 33 [07:48:25]line Товар: 2710124130 [07:48:25]line Аи-92-К-5 [07:48:25]line 10.560 * 66.30 [07:48:25]line = 700.13 [07:48:25]line НДС 12% НСП 1% [07:48:25]line > о реализуемом товаре [07:48:25]line ОКРУГЛЕНИЕ: -0.13 [07:48:25]line ИТОГО: 700.00 [07:48:25]line Внесено: 700.00 [07:48:25]line СДАЧА: 0.00 [07:48:25]line НСП 1% : 6.20 [07:48:25]line НДС 12% : 74.35 [07:48:25]line Наличными: 700.00 [07:48:25]line Безнал.: 0.00 [07:48:25]line Место: АЗС № 140 "Партнер Нефть" [07:48:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:48:25]line СНО: Общий режим [07:48:25]line Чек 71 13.07.2024 07:48 [07:48:25]line Смена: 462 ФФД: 1.0 [07:48:25]line ЗНМ: 0300000129 [07:48:25]line РНМ: 0000000000090858 [07:48:25]line Версия ККМ: 001 [07:48:25]line ФМ: 0000000000874899 [07:48:25]line ФД: 162403 [07:48:25]line ФПД: 225108116698499 [07:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T074837&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162403&fm=225108116698499&tin=02508201610067®Number=0000000000090858&sum=70000 [07:48:25]OFD Sender: Processing packet 162403 [packets to send 105, broken 104] [07:48:25]ProducePacketName [07:48:25]name=ofd_packets/00162403 [07:48:25]OFD Sender: To server: pG, [07:48:25]CommunicateWithHost lk.salyk.kg:30040 [07:48:25]ConnectInit lk.salyk.kg [07:48:25]written 0, free lines is 4095 [07:48:26]Connected sock=10 [07:48:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B5 D0 07 01 85 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 55 31 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7A 02 00 35 04 06 00 CC BC 11 54 F5 83 E3 63 BD 96 6B A4 79 22 [07:48:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E7 C6 47 00 86 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7A 02 00 F4 03 04 00 6A DD 91 66 B6 04 01 00 00 E4 65 12 C9 EB 7F 23 45 [07:48:26]CommunicateWithHost err = 0 [07:48:26]CheckOFDResponse [07:48:26]1017 (14) - 77093643461234 [07:48:26]1041 (16) - 0000000000874899 [07:48:26]1040 (4) - 162403 [07:48:26]1012 (4) - 13.07.2024 01:50 [07:48:26]1206 (1) - 0 [07:48:26]OFD Sender: Remove packet 162403 [07:48:26]ProducePacketName [07:48:26]name=ofd_packets/00162403 [07:48:26]NVStorageDeleteData [07:48:26]Write to MH i2c: 01 00 00 6E 01 6F [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 07 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 D7 0C 59 [07:48:26]RasterBufferAndPrint [07:48:26]line [07:48:26]line [07:48:26]line [07:48:26]line [07:48:26]line [07:48:26]written 0, free lines is 3295 [07:48:26]MH_Cut [07:48:26]Write to MH i2c: D1 01 00 75 01 01 48 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: D1 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: D1 01 00 [07:48:26]MH_I2C_Read... [07:48:26]Read from MH i2c: D1 01 00 75 01 00 47 [07:48:26]Write to MH i2c: 01 00 00 76 01 77 [07:48:26]Write i2c OK [07:48:26]MH_I2C_Read... [07:48:26]OFD Sender: No OFD packet to send [07:48:27]*** Cut start [07:48:27]*** Purtial cut [07:48:27]*** Stage 1: CUTSNS_PIN = 1 [07:48:27]Read from MH i2c: 01 [07:48:27]MH_I2C_Read... [07:48:27]*** Stop cut motor [07:48:27]*** Cut end [07:48:27]Read from MH i2c: 01 07 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 FF 0F 8C [07:48:27]process_action close_receipt done [07:48:27]requested_data is exist [07:48:27]produce_requested_data [07:48:27]requested_item fm.sn is exist - process it [07:48:27]wFMCommunicate request_size=4 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 11 00 00 [07:48:27]Write to MH i2c: E2 08 00 77 01 80 11 00 00 00 00 00 00 F2 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:48:27]Read from MH i2c: E2 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 17 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 17 00 77 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 52 [07:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:48:27]wFMCommunicate OK [07:48:27]requested_item fd.num is exist - process it [07:48:27]SAM_PROTO_GetFieldsCounters [07:48:27]wFMCommunicate request_size=4 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 13 00 00 [07:48:27]Write to MH i2c: E2 08 00 78 01 80 13 00 00 00 00 00 00 F5 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:48:27]Read from MH i2c: E2 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 62 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 62 00 78 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 63 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [07:48:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 63 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:48:27]wFMCommunicate OK [07:48:27]SAM_PROTO_GetFieldsCounters done [07:48:27]requested_item shift.num is exist - process it [07:48:27]requested_item shift.opened is exist - process it [07:48:27]req_shift_opened [07:48:27]FM_GetShiftState [07:48:27]SAM_PROTO_GetShiftState [07:48:27]wFMCommunicate request_size=4 [07:48:27]MH_SAM_APDU [07:48:27]CAPDU: 80 13 01 00 [07:48:27]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [07:48:27]Write i2c OK [07:48:27]MH_I2C_Read... [07:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:48:27]Read from MH i2c: E2 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 0E 00 [07:48:27]MH_I2C_Read... [07:48:27]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F1 [07:48:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:48:27]wFMCommunicate OK [07:48:27]SAM_PROTO_GetShiftState done [07:48:27]FM_GetShiftState done [07:48:27]req_shift_opened done [07:48:27]requested_item shift.open_date is exist - process it [07:48:27]req_shift_open_date [07:48:27]req_shift_open_date done [07:48:27]produce_requested_data done [07:48:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162403,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:48:27]process_action_free close_receipt [07:48:27]json_value_free [07:48:27]json_value_free done [07:48:27]process_json_proto returns [07:48:27]Send response to host [07:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162403,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:48:27]free response buf [07:48:27]execute_script done [07:48:27]execute_script returns [07:48:27]free content buf [07:48:27]Sock 9.Close socket [07:48:27]Sock 9.Thread stoped [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:09]accept exits with 8 [07:51:09]New connection [07:51:09]New thread 3066862948 created [07:51:09]Thread 3067006308 joined [07:51:09]Waiting for new connection... [07:51:09] Sock 8.Parse request [07:51:09]Sock 8.Check first char [07:51:09]Sock 8.First char is OK [07:51:09]request: POST /json_proto HTTP/1.0 [07:51:09]Method: POST [07:51:09]URL: /json_proto [07:51:09]Method is POST - this is cgi request [07:51:09]url: /json_proto [07:51:09]query_string will be loaded in cgi processing [07:51:09]execute_cgi json_proto POST (null) [07:51:09]execute_cgi path=json_proto method=POST [07:51:09]POST find Content-Length [07:51:09]Host: 172.17.39.67:8080 [07:51:09]Content-Length: 683 [07:51:09]Content-Type: application/json [07:51:09] [07:51:09]POST finish read [07:51:09]Found Content-Length = 683 [07:51:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:09]execute_script... [07:51: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)1318930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:09]POST & json_proto [07:51:09]process_json_proto [07:51:09]json parsed OK: [07:51:09]protocol is kg_v1.0 [07:51:09]action value=close_receipt [07:51:09]process_action close_receipt [07:51:09]cmd_close_receipt [07:51:09]MH_GetDate [07:51:09]Write to MH i2c: F0 00 00 7A 01 6A [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: F0 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: F0 09 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: F0 09 00 7A 01 00 FB 31 92 66 FA E9 8E 66 6E [07:51:09]GetLastDocTimeStamp 1720856917 [07:51:09]current date 1720857083 [07:51:09]FM_GetShiftState [07:51:09]SAM_PROTO_GetShiftState [07:51:09]wFMCommunicate request_size=4 [07:51:09]MH_SAM_APDU [07:51:09]CAPDU: 80 13 01 00 [07:51:09]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [07:51:09]Write i2c OK [07:51:09]MH_I2C_Read... [07:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:09]Read from MH i2c: E2 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: E2 0E 00 [07:51:09]MH_I2C_Read... [07:51:09]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F3 [07:51:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:51:09]wFMCommunicate OK [07:51:09]SAM_PROTO_GetShiftState done [07:51:09]FM_GetShiftState done [07:51:09]opened in 1720828979 [07:51:09]opened+sec_in_day 1720915379 [07:51:09]quantity*price = 100046 [07:51:09]sum+1 = 100048 [07:51:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 72 13.07.2024 07:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162404 ФПД: 92412851039597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T075123&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162404&fm=92412851039597&tin=02508201610067®Number=0000000000090858&sum=100000 [07:51:10]StoreToDocumentArchive [07:51:10]shift 462 fd 162404 [07:51:10]save to /storage/0462/doc_00162404 [07:51:10]save last doc name /storage/0462/doc_00162404 to /storage/kkm_last_doc_name [07:51:10]save OK [07:51:10]Clear old archive folders... [07:51:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:51:10]tlvbuf is 01A73DF0 [07:51:10]SAM_PROTO_ClearQueue [07:51:10]wFMCommunicate request_size=4 [07:51:10]MH_SAM_APDU [07:51:10]CAPDU: 80 09 00 00 [07:51:10]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [07:51:10]Write i2c OK [07:51:10]MH_I2C_Read... [07:51:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:10]Read from MH i2c: E2 [07:51:10]MH_I2C_Read... [07:51:10]Read from MH i2c: E2 03 00 [07:51:10]MH_I2C_Read... [07:51:10]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [07:51:10]RAPDU: 90 00 [07:51:10]wFMCommunicate OK [07:51:10]SAM_PROTO_ClearQueue done [07:51:10]KKMCreateOFDPacket [07:51:10]OFDProtocolAddRootSTLVToBuf [07:51:10]FM_MakeSignedData [07:51:10]FM_MakeSignedData [07:51:10]SAM_PROTO_SignData [07:51:10]wFMCommunicate request_size=4 [07:51:10]MH_SAM_APDU [07:51:10]CAPDU: 80 0D 01 02 [07:51:10]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:11]Read from MH i2c: E2 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 03 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [07:51:11]RAPDU: 90 00 [07:51:11]wFMCommunicate OK [07:51:11]wFMCommunicate request_size=255 [07:51:11]MH_SAM_APDU [07:51:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 FB 31 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7A 02 00 35 04 06 00 54 [07:51:11]Write to MH i2c: E2 02 01 8A 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 FB 31 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7A 02 00 35 04 06 00 54 00 00 7E [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:11]Read from MH i2c: E2 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 03 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [07:51:11]RAPDU: 90 00 [07:51:11]wFMCommunicate OK [07:51:11]wFMCommunicate request_size=10 [07:51:11]MH_SAM_APDU [07:51:11]CAPDU: 80 0D 02 02 05 0C 8B 28 AD 6D [07:51:11]Write to MH i2c: E2 0D 00 8B 01 80 0D 02 02 05 00 0C 8B 28 AD 6D 00 00 E9 [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:11]Read from MH i2c: E2 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 03 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [07:51:11]RAPDU: 90 00 [07:51:11]wFMCommunicate OK [07:51:11]wFMCommunicate request_size=4 [07:51:11]MH_SAM_APDU [07:51:11]CAPDU: 80 0D 03 02 [07:51:11]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:11]Read from MH i2c: E2 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 0B 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 0B 00 8C 01 00 93 34 6E 5F 3A 7A 8D 67 90 00 45 [07:51:11]RAPDU: 93 34 6E 5F 3A 7A 8D 67 90 00 [07:51:11]wFMCommunicate OK [07:51:11]SAM_PROTO_SignData done [07:51:11]FM_MakeSignedData done [07:51:11]CreateOFDProtocolMessage [07:51:11]wFMCommunicate request_size=4 [07:51:11]MH_SAM_APDU [07:51:11]CAPDU: 80 11 00 00 [07:51:11]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:11]Read from MH i2c: E2 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 17 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 68 [07:51:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:51:11]wFMCommunicate OK [07:51:11]CreateOFDProtocolMessage done [07:51:11]OFDSenderStorePacket 162404 [07:51:11]StoreOFDPacket docnum=162404 [07:51:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6B F7 07 01 4D 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 FB 31 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7A 02 00 35 04 06 00 54 0C 8B 28 AD 6D 93 34 6E 5F 3A 7A 8D 67 [07:51:11]CheckFolder [07:51:11]dirname=/storage/ofd_packets [07:51:11]CheckFolder done [07:51:11]ProducePacketName [07:51:11]name=ofd_packets/00162404 [07:51:11]NVStorageSaveData ofd_packets/00162404 [07:51:11]File name is /storage/ofd_packets/00162404 [07:51:11]Write 301 bytes [07:51:11]NVStorageSaveData done [07:51:11]OFDSenderStorePacket done [07:51:11]KKMCreateOFDPacket done [07:51:11]NVStorageSaveData kkm_last_timestamp [07:51:11]File name is /storage/kkm_last_timestamp [07:51:11]Write 4 bytes [07:51:11]NVStorageSaveData done [07:51:11]ExternCall_PrintAddStr [07:51:11]wPrintStart [07:51:11]Write to MH i2c: 01 00 00 8E 01 8F [07:51:11]Write i2c OK [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: 01 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: 01 07 00 [07:51:11]MH_I2C_Read... [07:51:11]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [07:51:11]RasterBufferAndPrint [07:51:11]line Счет N : (1)1318930 [07:51:11]line ИНН: 02508201610067 [07:51:11]line Контрольно-Кассовый Чек [07:51:11]line ПРОДАЖА [07:51:11]line ТРК (МРК, ГНК) : 43 [07:51:11]line Товар: 2710124130 [07:51:11]line Аи-92-К-5 [07:51:11]line 15.090 * 66.30 [07:51:11]line = 1000.47 [07:51:11]line НДС 12% НСП 1% [07:51:11]line > о реализуемом товаре [07:51:11]line ОКРУГЛЕНИЕ: -0.47 [07:51:11]line ИТОГО: 1000.00 [07:51:11]line Внесено: 1000.00 [07:51:11]line СДАЧА: 0.00 [07:51:11]line НСП 1% : 8.85 [07:51:11]line НДС 12% : 106.24 [07:51:11]line Наличными: 1000.00 [07:51:11]line Безнал.: 0.00 [07:51:11]line Место: АЗС № 140 "Партнер Нефть" [07:51:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:51:11]line СНО: Общий режим [07:51:11]line Чек 72 13.07.2024 07:51 [07:51:11]line Смена: 462 ФФД: 1.0 [07:51:11]line ЗНМ: 0300000129 [07:51:11]line РНМ: 0000000000090858 [07:51:11]line Версия ККМ: 001 [07:51:11]line ФМ: 0000000000874899 [07:51:11]line ФД: 162404 [07:51:11]line ФПД: 92412851039597 [07:51:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T075123&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162404&fm=92412851039597&tin=02508201610067®Number=0000000000090858&sum=100000 [07:51:11]OFD Sender: Processing packet 162404 [packets to send 105, broken 104] [07:51:11]ProducePacketName [07:51:11]name=ofd_packets/00162404 [07:51:11]OFD Sender: To server: pG, [07:51:11]CommunicateWithHost lk.salyk.kg:30040 [07:51:11]ConnectInit lk.salyk.kg [07:51:11]written 0, free lines is 4095 [07:51:11]Connected sock=10 [07:51:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6B F7 07 01 4D 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 48 00 00 00 F4 03 04 00 FB 31 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7A 02 00 35 04 06 00 54 0C 8B 28 AD 6D 93 34 6E 5F 3A 7A 8D 67 [07:51:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9E F1 47 00 66 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 34 38 39 39 10 04 04 00 64 7A 02 00 F4 03 04 00 10 DE 91 66 B6 04 01 00 00 04 EE E7 AF A9 E8 E4 43 [07:51:12]CommunicateWithHost err = 0 [07:51:12]CheckOFDResponse [07:51:12]1017 (14) - 77093643461234 [07:51:12]1041 (16) - 0000000000874899 [07:51:12]1040 (4) - 162404 [07:51:12]1012 (4) - 13.07.2024 01:53 [07:51:12]1206 (1) - 0 [07:51:12]OFD Sender: Remove packet 162404 [07:51:12]ProducePacketName [07:51:12]name=ofd_packets/00162404 [07:51:12]NVStorageDeleteData [07:51:12]Write to MH i2c: 01 00 00 B9 01 BA [07:51:12]Write i2c OK [07:51:12]MH_I2C_Read... [07:51:12]Read from MH i2c: 01 [07:51:12]MH_I2C_Read... [07:51:12]Read from MH i2c: 01 07 00 [07:51:12]MH_I2C_Read... [07:51:12]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 E3 0C B0 [07:51:12]RasterBufferAndPrint [07:51:12]line [07:51:12]line [07:51:12]line [07:51:12]line [07:51:12]line [07:51:12]written 0, free lines is 3305 [07:51:12]MH_Cut [07:51:12]Write to MH i2c: D1 01 00 C0 01 01 93 [07:51:12]Write i2c OK [07:51:12]MH_I2C_Read... [07:51:12]Read from MH i2c: D1 [07:51:12]MH_I2C_Read... [07:51:12]Read from MH i2c: D1 01 00 [07:51:12]MH_I2C_Read... [07:51:12]Read from MH i2c: D1 01 00 C0 01 00 92 [07:51:12]Write to MH i2c: 01 00 00 C1 01 C2 [07:51:12]Write i2c OK [07:51:12]MH_I2C_Read... [07:51:12]OFD Sender: No OFD packet to send [07:51:13]*** Cut start [07:51:13]*** Purtial cut [07:51:13]*** CUTSNS_PIN = 0 [07:51:13]*** Stage 1: CUTSNS_PIN = 1 [07:51:15]Read from MH i2c: 01 [07:51:15]MH_I2C_Read... [07:51:15]*** Stop cut motor [07:51:15]*** Cut end [07:51:15]Read from MH i2c: 01 07 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [07:51:15]process_action close_receipt done [07:51:15]requested_data is exist [07:51:15]produce_requested_data [07:51:15]requested_item fm.sn is exist - process it [07:51:15]wFMCommunicate request_size=4 [07:51:15]MH_SAM_APDU [07:51:15]CAPDU: 80 11 00 00 [07:51:15]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:15]Read from MH i2c: E2 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 17 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9D [07:51:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:51:15]wFMCommunicate OK [07:51:15]requested_item fd.num is exist - process it [07:51:15]SAM_PROTO_GetFieldsCounters [07:51:15]wFMCommunicate request_size=4 [07:51:15]MH_SAM_APDU [07:51:15]CAPDU: 80 13 00 00 [07:51:15]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:15]Read from MH i2c: E2 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 62 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 64 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [07:51:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 64 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:15]wFMCommunicate OK [07:51:15]SAM_PROTO_GetFieldsCounters done [07:51:15]requested_item shift.num is exist - process it [07:51:15]requested_item shift.opened is exist - process it [07:51:15]req_shift_opened [07:51:15]FM_GetShiftState [07:51:15]SAM_PROTO_GetShiftState [07:51:15]wFMCommunicate request_size=4 [07:51:15]MH_SAM_APDU [07:51:15]CAPDU: 80 13 01 00 [07:51:15]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:15]Read from MH i2c: E2 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 0E 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3C [07:51:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:51:15]wFMCommunicate OK [07:51:15]SAM_PROTO_GetShiftState done [07:51:15]FM_GetShiftState done [07:51:15]req_shift_opened done [07:51:15]requested_item shift.open_date is exist - process it [07:51:15]req_shift_open_date [07:51:15]req_shift_open_date done [07:51:15]produce_requested_data done [07:51:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162404,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:51:15]process_action_free close_receipt [07:51:15]json_value_free [07:51:15]json_value_free done [07:51:15]process_json_proto returns [07:51:15]Send response to host [07:51:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162404,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:51:15]free response buf [07:51:15]execute_script done [07:51:15]execute_script returns [07:51:15]free content buf [07:51:15]Sock 8.Close socket [07:51:15]Sock 8.Thread stoped [07:51:15]accept exits with 9 [07:51:15]New connection [07:51:15]New thread 3067006308 created [07:51:15]Thread 3066862948 joined [07:51:15]Waiting for new connection... [07:51:15] Sock 9.Parse request [07:51:15]Sock 9.Check first char [07:51:15]Sock 9.First char is OK [07:51:15]request: POST /json_proto HTTP/1.0 [07:51:15]Method: POST [07:51:15]URL: /json_proto [07:51:15]Method is POST - this is cgi request [07:51:15]url: /json_proto [07:51:15]query_string will be loaded in cgi processing [07:51:15]execute_cgi json_proto POST (null) [07:51:15]execute_cgi path=json_proto method=POST [07:51:15]POST find Content-Length [07:51:15]Host: 172.17.39.67:8080 [07:51:15]Content-Length: 678 [07:51:15]Content-Type: application/json [07:51:15] [07:51:15]POST finish read [07:51:15]Found Content-Length = 678 [07:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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" ] } } [07:51:15]execute_script... [07:51: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)1318929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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" ] } } [07:51:15]POST & json_proto [07:51:15]process_json_proto [07:51:15]json parsed OK: [07:51:15]protocol is kg_v1.0 [07:51:15]action value=close_receipt [07:51:15]process_action close_receipt [07:51:15]cmd_close_receipt [07:51:15]MH_GetDate [07:51:15]Write to MH i2c: F0 00 00 C5 01 B5 [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: F0 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: F0 09 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: F0 09 00 C5 01 00 00 32 92 66 FA E9 8E 66 BF [07:51:15]GetLastDocTimeStamp 1720857083 [07:51:15]current date 1720857088 [07:51:15]FM_GetShiftState [07:51:15]SAM_PROTO_GetShiftState [07:51:15]wFMCommunicate request_size=4 [07:51:15]MH_SAM_APDU [07:51:15]CAPDU: 80 13 01 00 [07:51:15]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [07:51:15]Write i2c OK [07:51:15]MH_I2C_Read... [07:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:15]Read from MH i2c: E2 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 0E 00 [07:51:15]MH_I2C_Read... [07:51:15]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3E [07:51:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:51:15]wFMCommunicate OK [07:51:15]SAM_PROTO_GetShiftState done [07:51:15]FM_GetShiftState done [07:51:15]opened in 1720828979 [07:51:15]opened+sec_in_day 1720915379 [07:51:15]quantity*price = 60001 [07:51:15]sum+1 = 60003 [07:51:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 73 13.07.2024 07:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162405 ФПД: 244344695227319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T075129&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162405&fm=244344695227319&tin=02508201610067®Number=0000000000090858&sum=60000 [07:51:16]StoreToDocumentArchive [07:51:16]shift 462 fd 162405 [07:51:16]save to /storage/0462/doc_00162405 [07:51:16]save last doc name /storage/0462/doc_00162405 to /storage/kkm_last_doc_name [07:51:16]save OK [07:51:16]Clear old archive folders... [07:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:51:16]tlvbuf is 017AF860 [07:51:16]SAM_PROTO_ClearQueue [07:51:16]wFMCommunicate request_size=4 [07:51:16]MH_SAM_APDU [07:51:16]CAPDU: 80 09 00 00 [07:51:16]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [07:51:16]Write i2c OK [07:51:16]MH_I2C_Read... [07:51:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:16]Read from MH i2c: E2 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: E2 03 00 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [07:51:16]RAPDU: 90 00 [07:51:16]wFMCommunicate OK [07:51:16]SAM_PROTO_ClearQueue done [07:51:16]KKMCreateOFDPacket [07:51:16]OFDProtocolAddRootSTLVToBuf [07:51:16]FM_MakeSignedData [07:51:16]FM_MakeSignedData [07:51:16]SAM_PROTO_SignData [07:51:16]wFMCommunicate request_size=4 [07:51:16]MH_SAM_APDU [07:51:16]CAPDU: 80 0D 01 02 [07:51:16]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [07:51:16]Write i2c OK [07:51:16]MH_I2C_Read... [07:51:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:16]Read from MH i2c: E2 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: E2 03 00 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [07:51:16]RAPDU: 90 00 [07:51:16]wFMCommunicate OK [07:51:16]wFMCommunicate request_size=255 [07:51:16]MH_SAM_APDU [07:51:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 01 32 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7A 02 00 35 04 06 00 DE [07:51:16]Write to MH i2c: E2 02 01 D5 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 01 32 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7A 02 00 35 04 06 00 DE 00 00 D9 [07:51:16]Write i2c OK [07:51:16]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 03 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [07:51:17]RAPDU: 90 00 [07:51:17]wFMCommunicate OK [07:51:17]wFMCommunicate request_size=10 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 0D 02 02 05 3A EE C3 03 B7 [07:51:17]Write to MH i2c: E2 0D 00 D6 01 80 0D 02 02 05 00 3A EE C3 03 B7 00 00 00 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 03 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [07:51:17]RAPDU: 90 00 [07:51:17]wFMCommunicate OK [07:51:17]wFMCommunicate request_size=4 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 0D 03 02 [07:51:17]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 0B 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 0B 00 D7 01 00 E2 DD DF 91 B1 B6 DD 1B 90 00 E2 [07:51:17]RAPDU: E2 DD DF 91 B1 B6 DD 1B 90 00 [07:51:17]wFMCommunicate OK [07:51:17]SAM_PROTO_SignData done [07:51:17]FM_MakeSignedData done [07:51:17]CreateOFDProtocolMessage [07:51:17]wFMCommunicate request_size=4 [07:51:17]MH_SAM_APDU [07:51:17]CAPDU: 80 11 00 00 [07:51:17]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:17]Read from MH i2c: E2 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 17 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B3 [07:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:51:17]wFMCommunicate OK [07:51:17]CreateOFDProtocolMessage done [07:51:17]OFDSenderStorePacket 162405 [07:51:17]StoreOFDPacket docnum=162405 [07:51:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C5 39 07 01 F1 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 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 01 32 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7A 02 00 35 04 06 00 DE 3A EE C3 03 B7 E2 DD DF 91 B1 B6 DD 1B [07:51:17]CheckFolder [07:51:17]dirname=/storage/ofd_packets [07:51:17]CheckFolder done [07:51:17]ProducePacketName [07:51:17]name=ofd_packets/00162405 [07:51:17]NVStorageSaveData ofd_packets/00162405 [07:51:17]File name is /storage/ofd_packets/00162405 [07:51:17]Write 301 bytes [07:51:17]NVStorageSaveData done [07:51:17]OFDSenderStorePacket done [07:51:17]KKMCreateOFDPacket done [07:51:17]NVStorageSaveData kkm_last_timestamp [07:51:17]File name is /storage/kkm_last_timestamp [07:51:17]Write 4 bytes [07:51:17]NVStorageSaveData done [07:51:17]ExternCall_PrintAddStr [07:51:17]wPrintStart [07:51:17]Write to MH i2c: 01 00 00 D9 01 DA [07:51:17]Write i2c OK [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: 01 [07:51:17]MH_I2C_Read... [07:51:17]OFD Sender: Processing packet 162405 [packets to send 105, broken 104] [07:51:17]ProducePacketName [07:51:17]name=ofd_packets/00162405 [07:51:17]OFD Sender: To server: pG, [07:51:17]CommunicateWithHost lk.salyk.kg:30040 [07:51:17]ConnectInit lk.salyk.kg [07:51:17]Read from MH i2c: 01 07 00 [07:51:17]MH_I2C_Read... [07:51:17]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [07:51:17]RasterBufferAndPrint [07:51:17]line Счет N : (1)1318929 [07:51:17]line ИНН: 02508201610067 [07:51:17]line Контрольно-Кассовый Чек [07:51:17]line ПРОДАЖА [07:51:17]line ТРК (МРК, ГНК) : 53 [07:51:17]line Товар: 2710124130 [07:51:17]line Аи-92-К-5 [07:51:17]line 9.050 * 66.30 [07:51:17]line = 600.02 [07:51:17]line НДС 12% НСП 1% [07:51:17]line > о реализуемом товаре [07:51:17]line ОКРУГЛЕНИЕ: -0.02 [07:51:17]line ИТОГО: 600.00 [07:51:17]line Внесено: 600.00 [07:51:17]line СДАЧА: 0.00 [07:51:17]line НСП 1% : 5.31 [07:51:17]line НДС 12% : 63.72 [07:51:17]line Наличными: 600.00 [07:51:17]line Безнал.: 0.00 [07:51:17]line Место: АЗС № 140 "Партнер Нефть" [07:51:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:51:17]line СНО: Общий режим [07:51:17]line Чек 73 13.07.2024 07:51 [07:51:17]line Смена: 462 ФФД: 1.0 [07:51:17]line ЗНМ: 0300000129 [07:51:17]line РНМ: 0000000000090858 [07:51:17]line Версия ККМ: 001 [07:51:17]line ФМ: 0000000000874899 [07:51:17]line ФД: 162405 [07:51:17]line ФПД: 244344695227319 [07:51:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T075129&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162405&fm=244344695227319&tin=02508201610067®Number=0000000000090858&sum=60000 [07:51:17]written 0, free lines is 4095 [07:51:18]Connected sock=10 [07:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C5 39 07 01 F1 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 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 01 32 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7A 02 00 35 04 06 00 DE 3A EE C3 03 B7 E2 DD DF 91 B1 B6 DD 1B [07:51:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 54 37 47 00 BF 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7A 02 00 F4 03 04 00 16 DE 91 66 B6 04 01 00 00 F2 64 B2 66 78 E4 53 28 [07:51:18]CommunicateWithHost err = 0 [07:51:18]CheckOFDResponse [07:51:18]1017 (14) - 77093643461234 [07:51:18]1041 (16) - 0000000000874899 [07:51:18]1040 (4) - 162405 [07:51:18]1012 (4) - 13.07.2024 01:53 [07:51:18]1206 (1) - 0 [07:51:18]OFD Sender: Remove packet 162405 [07:51:18]ProducePacketName [07:51:18]name=ofd_packets/00162405 [07:51:18]NVStorageDeleteData [07:51:18]Write to MH i2c: 01 00 00 04 02 06 [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: 01 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: 01 07 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 ED 0C 06 [07:51:18]RasterBufferAndPrint [07:51:18]line [07:51:18]line [07:51:18]line [07:51:18]line [07:51:18]line [07:51:18]written 0, free lines is 3318 [07:51:18]MH_Cut [07:51:18]Write to MH i2c: D1 01 00 0B 02 01 DF [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: D1 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: D1 01 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: D1 01 00 0B 02 00 DE [07:51:18]Write to MH i2c: 01 00 00 0C 02 0E [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]OFD Sender: No OFD packet to send [07:51:19]*** Cut start [07:51:19]*** Purtial cut [07:51:19]*** Stage 1: CUTSNS_PIN = 1 [07:51:19]Read from MH i2c: 01 [07:51:19]MH_I2C_Read... [07:51:19]*** Stop cut motor [07:51:19]*** Cut end [07:51:19]Read from MH i2c: 01 07 00 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 FF 0F 23 [07:51:19]process_action close_receipt done [07:51:19]requested_data is exist [07:51:19]produce_requested_data [07:51:19]requested_item fm.sn is exist - process it [07:51:19]wFMCommunicate request_size=4 [07:51:19]MH_SAM_APDU [07:51:19]CAPDU: 80 11 00 00 [07:51:19]Write to MH i2c: E2 08 00 0D 02 80 11 00 00 00 00 00 00 89 [07:51:19]Write i2c OK [07:51:19]MH_I2C_Read... [07:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:19]Read from MH i2c: E2 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: E2 17 00 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: E2 17 00 0D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E9 [07:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [07:51:19]wFMCommunicate OK [07:51:19]requested_item fd.num is exist - process it [07:51:19]SAM_PROTO_GetFieldsCounters [07:51:19]wFMCommunicate request_size=4 [07:51:19]MH_SAM_APDU [07:51:19]CAPDU: 80 13 00 00 [07:51:19]Write to MH i2c: E2 08 00 0E 02 80 13 00 00 00 00 00 00 8C [07:51:19]Write i2c OK [07:51:19]MH_I2C_Read... [07:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:19]Read from MH i2c: E2 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: E2 62 00 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: E2 62 00 0E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 65 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [07:51:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 65 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:19]wFMCommunicate OK [07:51:19]SAM_PROTO_GetFieldsCounters done [07:51:19]requested_item shift.num is exist - process it [07:51:19]requested_item shift.opened is exist - process it [07:51:19]req_shift_opened [07:51:19]FM_GetShiftState [07:51:19]SAM_PROTO_GetShiftState [07:51:19]wFMCommunicate request_size=4 [07:51:19]MH_SAM_APDU [07:51:19]CAPDU: 80 13 01 00 [07:51:19]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [07:51:19]Write i2c OK [07:51:19]MH_I2C_Read... [07:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:19]Read from MH i2c: E2 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: E2 0E 00 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 88 [07:51:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [07:51:19]wFMCommunicate OK [07:51:19]SAM_PROTO_GetShiftState done [07:51:19]FM_GetShiftState done [07:51:19]req_shift_opened done [07:51:19]requested_item shift.open_date is exist - process it [07:51:19]req_shift_open_date [07:51:19]req_shift_open_date done [07:51:19]produce_requested_data done [07:51:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162405,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [07:51:19]process_action_free close_receipt [07:51:19]json_value_free [07:51:19]json_value_free done [07:51:19]process_json_proto returns [07:51:19]Send response to host [07:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162405,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [07:51:19]free response buf [07:51:19]execute_script done [07:51:19]execute_script returns [07:51:19]free content buf [07:51:19]Sock 9.Close socket [07:51:19]Sock 9.Thread stoped [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:39]accept exits with 8 [08:00:39]New connection [08:00:39]New thread 3066862948 created [08:00:39]Thread 3067006308 joined [08:00:39]Waiting for new connection... [08:00:39] Sock 8.Parse request [08:00:39]Sock 8.Check first char [08:00:39]Sock 8.First char is OK [08:00:39]request: POST /json_proto HTTP/1.0 [08:00:39]Method: POST [08:00:39]URL: /json_proto [08:00:39]Method is POST - this is cgi request [08:00:39]url: /json_proto [08:00:39]query_string will be loaded in cgi processing [08:00:39]execute_cgi json_proto POST (null) [08:00:39]execute_cgi path=json_proto method=POST [08:00:39]POST find Content-Length [08:00:39]Host: 172.17.39.67:8080 [08:00:39]Content-Length: 678 [08:00:39]Content-Type: application/json [08:00:39] [08:00:39]POST finish read [08:00:39]Found Content-Length = 678 [08:00:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:39]execute_script... [08:00: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)1318931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:39]POST & json_proto [08:00:39]process_json_proto [08:00:39]json parsed OK: [08:00:39]protocol is kg_v1.0 [08:00:39]action value=close_receipt [08:00:39]process_action close_receipt [08:00:39]cmd_close_receipt [08:00:39]MH_GetDate [08:00:39]Write to MH i2c: F0 00 00 10 02 01 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: F0 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: F0 09 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: F0 09 00 10 02 00 34 34 92 66 FA E9 8E 66 41 [08:00:39]GetLastDocTimeStamp 1720857089 [08:00:39]current date 1720857652 [08:00:39]FM_GetShiftState [08:00:39]SAM_PROTO_GetShiftState [08:00:39]wFMCommunicate request_size=4 [08:00:39]MH_SAM_APDU [08:00:39]CAPDU: 80 13 01 00 [08:00:39]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [08:00:39]Write i2c OK [08:00:39]MH_I2C_Read... [08:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:39]Read from MH i2c: E2 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 0E 00 [08:00:39]MH_I2C_Read... [08:00:39]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8A [08:00:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:00:39]wFMCommunicate OK [08:00:39]SAM_PROTO_GetShiftState done [08:00:39]FM_GetShiftState done [08:00:39]opened in 1720828979 [08:00:39]opened+sec_in_day 1720915379 [08:00:39]quantity*price = 50056 [08:00:39]sum+1 = 50058 [08:00:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 74 13.07.2024 08:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162406 ФПД: 225229826130312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080052&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162406&fm=225229826130312&tin=02508201610067®Number=0000000000090858&sum=50000 [08:00:40]StoreToDocumentArchive [08:00:40]shift 462 fd 162406 [08:00:40]save to /storage/0462/doc_00162406 [08:00:40]save last doc name /storage/0462/doc_00162406 to /storage/kkm_last_doc_name [08:00:40]save OK [08:00:40]Clear old archive folders... [08:00:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:00:40]tlvbuf is 01C8B790 [08:00:40]SAM_PROTO_ClearQueue [08:00:40]wFMCommunicate request_size=4 [08:00:40]MH_SAM_APDU [08:00:40]CAPDU: 80 09 00 00 [08:00:40]Write to MH i2c: E2 08 00 1E 02 80 09 00 00 00 00 00 00 92 [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:40]Read from MH i2c: E2 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: E2 03 00 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [08:00:40]RAPDU: 90 00 [08:00:40]wFMCommunicate OK [08:00:40]SAM_PROTO_ClearQueue done [08:00:40]KKMCreateOFDPacket [08:00:40]OFDProtocolAddRootSTLVToBuf [08:00:40]FM_MakeSignedData [08:00:40]FM_MakeSignedData [08:00:40]SAM_PROTO_SignData [08:00:40]wFMCommunicate request_size=4 [08:00:40]MH_SAM_APDU [08:00:40]CAPDU: 80 0D 01 02 [08:00:40]Write to MH i2c: E2 08 00 1F 02 80 0D 01 02 00 00 00 00 9A [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:40]Read from MH i2c: E2 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: E2 03 00 [08:00:40]MH_I2C_Read... [08:00:40]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [08:00:40]RAPDU: 90 00 [08:00:40]wFMCommunicate OK [08:00:40]wFMCommunicate request_size=255 [08:00:40]MH_SAM_APDU [08:00:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 34 34 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7A 02 00 35 04 06 00 CC [08:00:40]Write to MH i2c: E2 02 01 20 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 34 34 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7A 02 00 35 04 06 00 CC 00 00 7D [08:00:40]Write i2c OK [08:00:40]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 03 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [08:00:41]RAPDU: 90 00 [08:00:41]wFMCommunicate OK [08:00:41]wFMCommunicate request_size=10 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 0D 02 02 05 D8 67 C7 81 88 [08:00:41]Write to MH i2c: E2 0D 00 21 02 80 0D 02 02 05 00 D8 67 C7 81 88 00 00 B6 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 03 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [08:00:41]RAPDU: 90 00 [08:00:41]wFMCommunicate OK [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 0D 03 02 [08:00:41]Write to MH i2c: E2 08 00 22 02 80 0D 03 02 00 00 00 00 9F [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0B 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 0B 00 22 02 00 B7 E8 D7 91 5D 55 A7 D4 90 00 D4 [08:00:41]RAPDU: B7 E8 D7 91 5D 55 A7 D4 90 00 [08:00:41]wFMCommunicate OK [08:00:41]SAM_PROTO_SignData done [08:00:41]FM_MakeSignedData done [08:00:41]CreateOFDProtocolMessage [08:00:41]wFMCommunicate request_size=4 [08:00:41]MH_SAM_APDU [08:00:41]CAPDU: 80 11 00 00 [08:00:41]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:41]Read from MH i2c: E2 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 17 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FF [08:00:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:00:41]wFMCommunicate OK [08:00:41]CreateOFDProtocolMessage done [08:00:41]OFDSenderStorePacket 162406 [08:00:41]StoreOFDPacket docnum=162406 [08:00:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CE 8C 07 01 4B 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 34 34 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7A 02 00 35 04 06 00 CC D8 67 C7 81 88 B7 E8 D7 91 5D 55 A7 D4 [08:00:41]CheckFolder [08:00:41]dirname=/storage/ofd_packets [08:00:41]CheckFolder done [08:00:41]ProducePacketName [08:00:41]name=ofd_packets/00162406 [08:00:41]NVStorageSaveData ofd_packets/00162406 [08:00:41]File name is /storage/ofd_packets/00162406 [08:00:41]Write 301 bytes [08:00:41]NVStorageSaveData done [08:00:41]OFDSenderStorePacket done [08:00:41]KKMCreateOFDPacket done [08:00:41]NVStorageSaveData kkm_last_timestamp [08:00:41]File name is /storage/kkm_last_timestamp [08:00:41]Write 4 bytes [08:00:41]NVStorageSaveData done [08:00:41]ExternCall_PrintAddStr [08:00:41]wPrintStart [08:00:41]Write to MH i2c: 01 00 00 24 02 26 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: 01 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: 01 07 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [08:00:41]RasterBufferAndPrint [08:00:41]line Счет N : (1)1318931 [08:00:41]line ИНН: 02508201610067 [08:00:41]line Контрольно-Кассовый Чек [08:00:41]line ПРОДАЖА [08:00:41]line ТРК (МРК, ГНК) : 43 [08:00:41]line Товар: 2710124130 [08:00:41]line Аи-92-К-5 [08:00:41]line 7.550 * 66.30 [08:00:41]line = 500.57 [08:00:41]line НДС 12% НСП 1% [08:00:41]line > о реализуемом товаре [08:00:41]line ОКРУГЛЕНИЕ: -0.57 [08:00:41]line ИТОГО: 500.00 [08:00:41]line Внесено: 500.00 [08:00:41]line СДАЧА: 0.00 [08:00:41]line НСП 1% : 4.43 [08:00:41]line НДС 12% : 53.16 [08:00:41]line Наличными: 500.00 [08:00:41]line Безнал.: 0.00 [08:00:41]line Место: АЗС № 140 "Партнер Нефть" [08:00:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:00:41]line СНО: Общий режим [08:00:41]line Чек 74 13.07.2024 08:00 [08:00:41]line Смена: 462 ФФД: 1.0 [08:00:41]line ЗНМ: 0300000129 [08:00:41]line РНМ: 0000000000090858 [08:00:41]line Версия ККМ: 001 [08:00:41]line ФМ: 0000000000874899 [08:00:41]line ФД: 162406 [08:00:41]line ФПД: 225229826130312 [08:00:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080052&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162406&fm=225229826130312&tin=02508201610067®Number=0000000000090858&sum=50000 [08:00:41]OFD Sender: Processing packet 162406 [packets to send 105, broken 104] [08:00:41]ProducePacketName [08:00:41]name=ofd_packets/00162406 [08:00:41]OFD Sender: To server: pG, [08:00:41]CommunicateWithHost lk.salyk.kg:30040 [08:00:41]ConnectInit lk.salyk.kg [08:00:41]written 0, free lines is 4095 [08:00:41]Connected sock=10 [08:00:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CE 8C 07 01 4B 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 34 34 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7A 02 00 35 04 06 00 CC D8 67 C7 81 88 B7 E8 D7 91 5D 55 A7 D4 [08:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 23 91 47 00 3B 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7A 02 00 F4 03 04 00 49 E0 91 66 B6 04 01 00 00 9A 60 EA 53 9A 93 94 D6 [08:00:41]CommunicateWithHost err = 0 [08:00:41]CheckOFDResponse [08:00:41]1017 (14) - 77093643461234 [08:00:41]1041 (16) - 0000000000874899 [08:00:41]1040 (4) - 162406 [08:00:41]1012 (4) - 13.07.2024 02:02 [08:00:41]1206 (1) - 0 [08:00:41]OFD Sender: Remove packet 162406 [08:00:41]ProducePacketName [08:00:41]name=ofd_packets/00162406 [08:00:41]NVStorageDeleteData [08:00:41]Write to MH i2c: 01 00 00 4F 02 51 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: 01 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: 01 07 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 E8 0C 4C [08:00:41]RasterBufferAndPrint [08:00:41]line [08:00:41]line [08:00:41]line [08:00:41]line [08:00:41]line [08:00:41]written 0, free lines is 3310 [08:00:41]MH_Cut [08:00:41]Write to MH i2c: D1 01 00 56 02 01 2A [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: D1 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: D1 01 00 [08:00:41]MH_I2C_Read... [08:00:41]Read from MH i2c: D1 01 00 56 02 00 29 [08:00:41]Write to MH i2c: 01 00 00 57 02 59 [08:00:41]Write i2c OK [08:00:41]MH_I2C_Read... [08:00:42]OFD Sender: No OFD packet to send [08:00:42]*** Cut start [08:00:42]*** Purtial cut [08:00:42]*** CUTSNS_PIN = 0 [08:00:42]*** Stage 1: CUTSNS_PIN = 1 [08:00:44]Read from MH i2c: 01 [08:00:44]MH_I2C_Read... [08:00:44]*** Stop cut motor [08:00:44]*** Cut end [08:00:44]Read from MH i2c: 01 07 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [08:00:44]process_action close_receipt done [08:00:44]requested_data is exist [08:00:44]produce_requested_data [08:00:44]requested_item fm.sn is exist - process it [08:00:44]wFMCommunicate request_size=4 [08:00:44]MH_SAM_APDU [08:00:44]CAPDU: 80 11 00 00 [08:00:44]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:44]Read from MH i2c: E2 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 17 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 34 [08:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:00:44]wFMCommunicate OK [08:00:44]requested_item fd.num is exist - process it [08:00:44]SAM_PROTO_GetFieldsCounters [08:00:44]wFMCommunicate request_size=4 [08:00:44]MH_SAM_APDU [08:00:44]CAPDU: 80 13 00 00 [08:00:44]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:44]Read from MH i2c: E2 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 62 00 [08:00:44]MH_I2C_Read... [08:00:44]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 66 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [08:00:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 66 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:00:44]wFMCommunicate OK [08:00:44]SAM_PROTO_GetFieldsCounters done [08:00:44]requested_item shift.num is exist - process it [08:00:44]requested_item shift.opened is exist - process it [08:00:44]req_shift_opened [08:00:44]FM_GetShiftState [08:00:44]SAM_PROTO_GetShiftState [08:00:44]wFMCommunicate request_size=4 [08:00:44]MH_SAM_APDU [08:00:44]CAPDU: 80 13 01 00 [08:00:44]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [08:00:44]Write i2c OK [08:00:44]MH_I2C_Read... [08:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:45]Read from MH i2c: E2 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 0E 00 [08:00:45]MH_I2C_Read... [08:00:45]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D3 [08:00:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:00:45]wFMCommunicate OK [08:00:45]SAM_PROTO_GetShiftState done [08:00:45]FM_GetShiftState done [08:00:45]req_shift_opened done [08:00:45]requested_item shift.open_date is exist - process it [08:00:45]req_shift_open_date [08:00:45]req_shift_open_date done [08:00:45]produce_requested_data done [08:00:45]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162406,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:00:45]process_action_free close_receipt [08:00:45]json_value_free [08:00:45]json_value_free done [08:00:45]process_json_proto returns [08:00:45]Send response to host [08:00:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162406,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:00:45]free response buf [08:00:45]execute_script done [08:00:45]execute_script returns [08:00:45]free content buf [08:00:45]Sock 8.Close socket [08:00:45]Sock 8.Thread stoped [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [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:43]accept exits with 9 [08:01:43]New connection [08:01:43]New thread 3067006308 created [08:01:43]Thread 3066862948 joined [08:01:43]Waiting for new connection... [08:01:43] Sock 9.Parse request [08:01:43]Sock 9.Check first char [08:01:43]Sock 9.First char is OK [08:01:43]request: POST /json_proto HTTP/1.0 [08:01:43]Method: POST [08:01:43]URL: /json_proto [08:01:43]Method is POST - this is cgi request [08:01:43]url: /json_proto [08:01:43]query_string will be loaded in cgi processing [08:01:43]execute_cgi json_proto POST (null) [08:01:43]execute_cgi path=json_proto method=POST [08:01:43]POST find Content-Length [08:01:43]Host: 172.17.39.67:8080 [08:01:43]Content-Length: 688 [08:01:43]Content-Type: application/json [08:01:43] [08:01:43]POST finish read [08:01:43]Found Content-Length = 688 [08:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 39.850, "sum" : 2893.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2893.00, "total" : 2893.00, "payments": [ { "type": 0, "sum" : 2893.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:43]execute_script... [08:01: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)1318932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 39.850, "sum" : 2893.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2893.00, "total" : 2893.00, "payments": [ { "type": 0, "sum" : 2893.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:01:43]POST & json_proto [08:01:43]process_json_proto [08:01:43]json parsed OK: [08:01:43]protocol is kg_v1.0 [08:01:43]action value=close_receipt [08:01:43]process_action close_receipt [08:01:43]cmd_close_receipt [08:01:43]MH_GetDate [08:01:43]Write to MH i2c: F0 00 00 5B 02 4C [08:01:43]Write i2c OK [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: F0 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: F0 09 00 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: F0 09 00 5B 02 00 75 34 92 66 FA E9 8E 66 CD [08:01:43]GetLastDocTimeStamp 1720857652 [08:01:43]current date 1720857717 [08:01:43]FM_GetShiftState [08:01:43]SAM_PROTO_GetShiftState [08:01:43]wFMCommunicate request_size=4 [08:01:43]MH_SAM_APDU [08:01:43]CAPDU: 80 13 01 00 [08:01:43]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [08:01:43]Write i2c OK [08:01:43]MH_I2C_Read... [08:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:43]Read from MH i2c: E2 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: E2 0E 00 [08:01:43]MH_I2C_Read... [08:01:43]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D5 [08:01:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:01:43]wFMCommunicate OK [08:01:43]SAM_PROTO_GetShiftState done [08:01:43]FM_GetShiftState done [08:01:43]opened in 1720828979 [08:01:43]opened+sec_in_day 1720915379 [08:01:43]quantity*price = 289311 [08:01:43]sum+1 = 289312 [08:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 2893.00 Внесено: 2893.00 СДАЧА: 0.00 НСП 1% : 25.60 НДС 12% : 307.23 Наличными: 2893.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 75 13.07.2024 08:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162407 ФПД: 90561550135964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080157&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162407&fm=90561550135964&tin=02508201610067®Number=0000000000090858&sum=289300 [08:01:45]StoreToDocumentArchive [08:01:45]shift 462 fd 162407 [08:01:45]save to /storage/0462/doc_00162407 [08:01:45]save last doc name /storage/0462/doc_00162407 to /storage/kkm_last_doc_name [08:01:45]save OK [08:01:45]Clear old archive folders... [08:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:01:45]tlvbuf is 01C7CF30 [08:01:45]SAM_PROTO_ClearQueue [08:01:45]wFMCommunicate request_size=4 [08:01:45]MH_SAM_APDU [08:01:45]CAPDU: 80 09 00 00 [08:01:45]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [08:01:45]Write i2c OK [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 [08:01:45]MH_I2C_Read... [08:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:01:45]Read from MH i2c: E2 03 00 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [08:01:45]RAPDU: 90 00 [08:01:45]wFMCommunicate OK [08:01:45]SAM_PROTO_ClearQueue done [08:01:45]KKMCreateOFDPacket [08:01:45]OFDProtocolAddRootSTLVToBuf [08:01:45]FM_MakeSignedData [08:01:45]FM_MakeSignedData [08:01:45]SAM_PROTO_SignData [08:01:45]wFMCommunicate request_size=4 [08:01:45]MH_SAM_APDU [08:01:45]CAPDU: 80 0D 01 02 [08:01:45]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [08:01:45]Write i2c OK [08:01:45]MH_I2C_Read... [08:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:01:45]Read from MH i2c: E2 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 03 00 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [08:01:45]RAPDU: 90 00 [08:01:45]wFMCommunicate OK [08:01:45]wFMCommunicate request_size=255 [08:01:45]MH_SAM_APDU [08:01:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 9B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1F 6A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 6A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 78 00 00 00 00 07 04 06 00 14 6A 04 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 75 34 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7A 02 00 35 04 06 00 [08:01:45]Write to MH i2c: E2 02 01 6B 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 9B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1F 6A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 6A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 78 00 00 00 00 07 04 06 00 14 6A 04 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 75 34 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7A 02 00 35 04 06 00 00 00 AD [08:01:45]Write i2c OK [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 [08:01:45]MH_I2C_Read... [08:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:45]Read from MH i2c: E2 03 00 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [08:01:45]RAPDU: 90 00 [08:01:45]wFMCommunicate OK [08:01:45]wFMCommunicate request_size=11 [08:01:45]MH_SAM_APDU [08:01:45]CAPDU: 80 0D 02 02 06 52 5D 81 06 B2 9C [08:01:45]Write to MH i2c: E2 0E 00 6C 02 80 0D 02 02 06 00 52 5D 81 06 B2 9C 00 00 78 [08:01:45]Write i2c OK [08:01:45]MH_I2C_Read... [08:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:01:45]Read from MH i2c: E2 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 03 00 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [08:01:45]RAPDU: 90 00 [08:01:45]wFMCommunicate OK [08:01:45]wFMCommunicate request_size=4 [08:01:45]MH_SAM_APDU [08:01:45]CAPDU: 80 0D 03 02 [08:01:45]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [08:01:45]Write i2c OK [08:01:45]MH_I2C_Read... [08:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:01:45]Read from MH i2c: E2 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 0B 00 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 0B 00 6D 02 00 5A 77 13 6A 8A 4A E7 75 90 00 69 [08:01:45]RAPDU: 5A 77 13 6A 8A 4A E7 75 90 00 [08:01:45]wFMCommunicate OK [08:01:45]SAM_PROTO_SignData done [08:01:45]FM_MakeSignedData done [08:01:45]CreateOFDProtocolMessage [08:01:45]wFMCommunicate request_size=4 [08:01:45]MH_SAM_APDU [08:01:45]CAPDU: 80 11 00 00 [08:01:45]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [08:01:45]Write i2c OK [08:01:45]MH_I2C_Read... [08:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:45]Read from MH i2c: E2 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 17 00 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4A [08:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:01:45]wFMCommunicate OK [08:01:45]CreateOFDProtocolMessage done [08:01:45]OFDSenderStorePacket 162407 [08:01:45]StoreOFDPacket docnum=162407 [08:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 90 61 08 01 A8 12 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 9B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1F 6A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 6A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 78 00 00 00 00 07 04 06 00 14 6A 04 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 75 34 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7A 02 00 35 04 06 00 52 5D 81 06 B2 9C 5A 77 13 6A 8A 4A E7 75 [08:01:45]CheckFolder [08:01:45]dirname=/storage/ofd_packets [08:01:45]CheckFolder done [08:01:45]ProducePacketName [08:01:45]name=ofd_packets/00162407 [08:01:45]NVStorageSaveData ofd_packets/00162407 [08:01:45]File name is /storage/ofd_packets/00162407 [08:01:45]Write 302 bytes [08:01:45]NVStorageSaveData done [08:01:45]OFDSenderStorePacket done [08:01:45]KKMCreateOFDPacket done [08:01:45]NVStorageSaveData kkm_last_timestamp [08:01:45]File name is /storage/kkm_last_timestamp [08:01:45]Write 4 bytes [08:01:45]NVStorageSaveData done [08:01:45]ExternCall_PrintAddStr [08:01:45]wPrintStart [08:01:45]Write to MH i2c: 01 00 00 6F 02 71 [08:01:45]Write i2c OK [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: 01 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: 01 07 00 [08:01:45]MH_I2C_Read... [08:01:45]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [08:01:45]RasterBufferAndPrint [08:01:45]line Счет N : (1)1318932 [08:01:45]line ИНН: 02508201610067 [08:01:45]line Контрольно-Кассовый Чек [08:01:45]line ПРОДАЖА [08:01:45]line ТРК (МРК, ГНК) : 21 [08:01:45]line Товар: 2710194210 [08:01:45]line ДТ(л)-К-5 [08:01:45]line 39.850 * 72.60 [08:01:45]line = 2893.11 [08:01:45]line НДС 12% НСП 1% [08:01:45]line > о реализуемом товаре [08:01:45]line ОКРУГЛЕНИЕ: -0.11 [08:01:45]line ИТОГО: 2893.00 [08:01:45]line Внесено: 2893.00 [08:01:45]line СДАЧА: 0.00 [08:01:45]line НСП 1% : 25.60 [08:01:45]line НДС 12% : 307.23 [08:01:45]line Наличными: 2893.00 [08:01:45]line Безнал.: 0.00 [08:01:45]line Место: АЗС № 140 "Партнер Нефть" [08:01:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:01:45]line СНО: Общий режим [08:01:45]line Чек 75 13.07.2024 08:01 [08:01:45]line Смена: 462 ФФД: 1.0 [08:01:45]line ЗНМ: 0300000129 [08:01:45]line РНМ: 0000000000090858 [08:01:45]line Версия ККМ: 001 [08:01:45]line ФМ: 0000000000874899 [08:01:45]line ФД: 162407 [08:01:45]line ФПД: 90561550135964 [08:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080157&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162407&fm=90561550135964&tin=02508201610067®Number=0000000000090858&sum=289300 [08:01:45]OFD Sender: Processing packet 162407 [packets to send 105, broken 104] [08:01:45]ProducePacketName [08:01:45]name=ofd_packets/00162407 [08:01:45]OFD Sender: To server: pG, [08:01:45]CommunicateWithHost lk.salyk.kg:30040 [08:01:45]ConnectInit lk.salyk.kg [08:01:45]written 0, free lines is 4095 [08:01:46]Connected sock=10 [08:01:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 90 61 08 01 A8 12 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 9B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1F 6A 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 6A 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 78 00 00 00 00 07 04 06 00 14 6A 04 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 75 34 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7A 02 00 35 04 06 00 52 5D 81 06 B2 9C 5A 77 13 6A 8A 4A E7 75 [08:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AE EC 47 00 12 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7A 02 00 F4 03 04 00 8A E0 91 66 B6 04 01 00 00 2A 56 B1 4C 5A 6F DB 2B [08:01:46]CommunicateWithHost err = 0 [08:01:46]CheckOFDResponse [08:01:46]1017 (14) - 77093643461234 [08:01:46]1041 (16) - 0000000000874899 [08:01:46]1040 (4) - 162407 [08:01:46]1012 (4) - 13.07.2024 02:03 [08:01:46]1206 (1) - 0 [08:01:46]OFD Sender: Remove packet 162407 [08:01:46]ProducePacketName [08:01:46]name=ofd_packets/00162407 [08:01:46]NVStorageDeleteData [08:01:46]Write to MH i2c: 01 00 00 9A 02 9C [08:01:46]Write i2c OK [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: 01 [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: 01 07 00 [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: 01 07 00 9A 02 00 00 00 00 00 F3 0C A2 [08:01:46]RasterBufferAndPrint [08:01:46]line [08:01:46]line [08:01:46]line [08:01:46]line [08:01:46]line [08:01:46]written 0, free lines is 3324 [08:01:46]MH_Cut [08:01:46]Write to MH i2c: D1 01 00 A1 02 01 75 [08:01:46]Write i2c OK [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: D1 [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: D1 01 00 [08:01:46]MH_I2C_Read... [08:01:46]Read from MH i2c: D1 01 00 A1 02 00 74 [08:01:46]Write to MH i2c: 01 00 00 A2 02 A4 [08:01:46]Write i2c OK [08:01:46]MH_I2C_Read... [08:01:46]OFD Sender: No OFD packet to send [08:01:47]*** Cut start [08:01:47]*** Purtial cut [08:01:47]*** Stage 1: CUTSNS_PIN = 1 [08:01:47]Read from MH i2c: 01 [08:01:47]MH_I2C_Read... [08:01:47]*** Stop cut motor [08:01:47]*** Cut end [08:01:47]Read from MH i2c: 01 07 00 [08:01:47]MH_I2C_Read... [08:01:47]Read from MH i2c: 01 07 00 A2 02 00 00 00 00 00 FF 0F B9 [08:01:47]process_action close_receipt done [08:01:47]requested_data is exist [08:01:47]produce_requested_data [08:01:47]requested_item fm.sn is exist - process it [08:01:47]wFMCommunicate request_size=4 [08:01:47]MH_SAM_APDU [08:01:47]CAPDU: 80 11 00 00 [08:01:47]Write to MH i2c: E2 08 00 A3 02 80 11 00 00 00 00 00 00 1F [08:01:47]Write i2c OK [08:01:47]MH_I2C_Read... [08:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:01:47]Read from MH i2c: E2 [08:01:47]MH_I2C_Read... [08:01:47]Read from MH i2c: E2 17 00 [08:01:47]MH_I2C_Read... [08:01:47]Read from MH i2c: E2 17 00 A3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7F [08:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:01:47]wFMCommunicate OK [08:01:47]requested_item fd.num is exist - process it [08:01:47]SAM_PROTO_GetFieldsCounters [08:01:47]wFMCommunicate request_size=4 [08:01:47]MH_SAM_APDU [08:01:47]CAPDU: 80 13 00 00 [08:01:47]Write to MH i2c: E2 08 00 A4 02 80 13 00 00 00 00 00 00 22 [08:01:47]Write i2c OK [08:01:47]MH_I2C_Read... [08:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:01:47]Read from MH i2c: E2 [08:01:47]MH_I2C_Read... [08:01:47]Read from MH i2c: E2 62 00 [08:01:47]MH_I2C_Read... [08:01:47]Read from MH i2c: E2 62 00 A4 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 67 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [08:01:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 67 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:01:47]wFMCommunicate OK [08:01:47]SAM_PROTO_GetFieldsCounters done [08:01:47]requested_item shift.num is exist - process it [08:01:47]requested_item shift.opened is exist - process it [08:01:47]req_shift_opened [08:01:47]FM_GetShiftState [08:01:47]SAM_PROTO_GetShiftState [08:01:47]wFMCommunicate request_size=4 [08:01:47]MH_SAM_APDU [08:01:47]CAPDU: 80 13 01 00 [08:01:47]Write to MH i2c: E2 08 00 A5 02 80 13 01 00 00 00 00 00 24 [08:01:47]Write i2c OK [08:01:47]MH_I2C_Read... [08:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:01:47]Read from MH i2c: E2 [08:01:47]MH_I2C_Read... [08:01:47]Read from MH i2c: E2 0E 00 [08:01:47]MH_I2C_Read... [08:01:47]Read from MH i2c: E2 0E 00 A5 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1E [08:01:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:01:47]wFMCommunicate OK [08:01:47]SAM_PROTO_GetShiftState done [08:01:47]FM_GetShiftState done [08:01:47]req_shift_opened done [08:01:47]requested_item shift.open_date is exist - process it [08:01:47]req_shift_open_date [08:01:47]req_shift_open_date done [08:01:47]produce_requested_data done [08:01:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162407,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:01:47]process_action_free close_receipt [08:01:47]json_value_free [08:01:47]json_value_free done [08:01:47]process_json_proto returns [08:01:47]Send response to host [08:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162407,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:01:47]free response buf [08:01:47]execute_script done [08:01:47]execute_script returns [08:01:47]free content buf [08:01:47]Sock 9.Close socket [08:01:47]Sock 9.Thread stoped [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]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:33]accept exits with 8 [08:06:33]New connection [08:06:33]New thread 3066862948 created [08:06:33]Thread 3067006308 joined [08:06:33]Waiting for new connection... [08:06:33] Sock 8.Parse request [08:06:33]Sock 8.Check first char [08:06:33]Sock 8.First char is OK [08:06:33]request: POST /json_proto HTTP/1.0 [08:06:33]Method: POST [08:06:33]URL: /json_proto [08:06:33]Method is POST - this is cgi request [08:06:33]url: /json_proto [08:06:33]query_string will be loaded in cgi processing [08:06:33]execute_cgi json_proto POST (null) [08:06:33]execute_cgi path=json_proto method=POST [08:06:33]POST find Content-Length [08:06:33]Host: 172.17.39.67:8080 [08:06:33]Content-Length: 678 [08:06:33]Content-Type: application/json [08:06:33] [08:06:33]POST finish read [08:06:33]Found Content-Length = 678 [08:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:33]execute_script... [08:06: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)1318933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:06:33]POST & json_proto [08:06:33]process_json_proto [08:06:33]json parsed OK: [08:06:33]protocol is kg_v1.0 [08:06:33]action value=close_receipt [08:06:33]process_action close_receipt [08:06:33]cmd_close_receipt [08:06:33]MH_GetDate [08:06:33]Write to MH i2c: F0 00 00 A6 02 97 [08:06:33]Write i2c OK [08:06:33]MH_I2C_Read... [08:06:33]Read from MH i2c: F0 [08:06:33]MH_I2C_Read... [08:06:33]Read from MH i2c: F0 09 00 [08:06:33]MH_I2C_Read... [08:06:33]Read from MH i2c: F0 09 00 A6 02 00 96 35 92 66 FA E9 8E 66 3A [08:06:33]GetLastDocTimeStamp 1720857717 [08:06:33]current date 1720858006 [08:06:33]FM_GetShiftState [08:06:33]SAM_PROTO_GetShiftState [08:06:33]wFMCommunicate request_size=4 [08:06:33]MH_SAM_APDU [08:06:33]CAPDU: 80 13 01 00 [08:06:33]Write to MH i2c: E2 08 00 A7 02 80 13 01 00 00 00 00 00 26 [08:06:33]Write i2c OK [08:06:33]MH_I2C_Read... [08:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:33]Read from MH i2c: E2 [08:06:33]MH_I2C_Read... [08:06:33]Read from MH i2c: E2 0E 00 [08:06:33]MH_I2C_Read... [08:06:33]Read from MH i2c: E2 0E 00 A7 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 20 [08:06:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:06:33]wFMCommunicate OK [08:06:33]SAM_PROTO_GetShiftState done [08:06:33]FM_GetShiftState done [08:06:33]opened in 1720828979 [08:06:33]opened+sec_in_day 1720915379 [08:06:33]quantity*price = 50056 [08:06:33]sum+1 = 50058 [08:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 76 13.07.2024 08:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162408 ФПД: 47612412690022 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080646&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162408&fm=47612412690022&tin=02508201610067®Number=0000000000090858&sum=50000 [08:06:34]StoreToDocumentArchive [08:06:34]shift 462 fd 162408 [08:06:34]save to /storage/0462/doc_00162408 [08:06:34]save last doc name /storage/0462/doc_00162408 to /storage/kkm_last_doc_name [08:06:34]save OK [08:06:34]Clear old archive folders... [08:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:06:34]tlvbuf is 017A7600 [08:06:34]SAM_PROTO_ClearQueue [08:06:34]wFMCommunicate request_size=4 [08:06:34]MH_SAM_APDU [08:06:34]CAPDU: 80 09 00 00 [08:06:34]Write to MH i2c: E2 08 00 B4 02 80 09 00 00 00 00 00 00 28 [08:06:34]Write i2c OK [08:06:34]MH_I2C_Read... [08:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:34]Read from MH i2c: E2 [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: E2 03 00 [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [08:06:34]RAPDU: 90 00 [08:06:34]wFMCommunicate OK [08:06:34]SAM_PROTO_ClearQueue done [08:06:34]KKMCreateOFDPacket [08:06:34]OFDProtocolAddRootSTLVToBuf [08:06:34]FM_MakeSignedData [08:06:34]FM_MakeSignedData [08:06:34]SAM_PROTO_SignData [08:06:34]wFMCommunicate request_size=4 [08:06:34]MH_SAM_APDU [08:06:34]CAPDU: 80 0D 01 02 [08:06:34]Write to MH i2c: E2 08 00 B5 02 80 0D 01 02 00 00 00 00 30 [08:06:34]Write i2c OK [08:06:34]MH_I2C_Read... [08:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:34]Read from MH i2c: E2 [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: E2 03 00 [08:06:34]MH_I2C_Read... [08:06:34]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [08:06:34]RAPDU: 90 00 [08:06:34]wFMCommunicate OK [08:06:34]wFMCommunicate request_size=255 [08:06:34]MH_SAM_APDU [08:06:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 96 35 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7A 02 00 35 04 06 00 2B [08:06:34]Write to MH i2c: E2 02 01 B6 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 96 35 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7A 02 00 35 04 06 00 2B 00 00 D9 [08:06:34]Write i2c OK [08:06:34]MH_I2C_Read... [08:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:35]Read from MH i2c: E2 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 03 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [08:06:35]RAPDU: 90 00 [08:06:35]wFMCommunicate OK [08:06:35]wFMCommunicate request_size=10 [08:06:35]MH_SAM_APDU [08:06:35]CAPDU: 80 0D 02 02 05 4D A0 F1 FE 66 [08:06:35]Write to MH i2c: E2 0D 00 B7 02 80 0D 02 02 05 00 4D A0 F1 FE 66 00 00 7F [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:35]Read from MH i2c: E2 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 03 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [08:06:35]RAPDU: 90 00 [08:06:35]wFMCommunicate OK [08:06:35]wFMCommunicate request_size=4 [08:06:35]MH_SAM_APDU [08:06:35]CAPDU: 80 0D 03 02 [08:06:35]Write to MH i2c: E2 08 00 B8 02 80 0D 03 02 00 00 00 00 35 [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:35]Read from MH i2c: E2 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 0B 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 0B 00 B8 02 00 25 4D CB 27 A0 6A 62 66 90 00 6C [08:06:35]RAPDU: 25 4D CB 27 A0 6A 62 66 90 00 [08:06:35]wFMCommunicate OK [08:06:35]SAM_PROTO_SignData done [08:06:35]FM_MakeSignedData done [08:06:35]CreateOFDProtocolMessage [08:06:35]wFMCommunicate request_size=4 [08:06:35]MH_SAM_APDU [08:06:35]CAPDU: 80 11 00 00 [08:06:35]Write to MH i2c: E2 08 00 B9 02 80 11 00 00 00 00 00 00 35 [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:35]Read from MH i2c: E2 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 17 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: E2 17 00 B9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 95 [08:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:06:35]wFMCommunicate OK [08:06:35]CreateOFDProtocolMessage done [08:06:35]OFDSenderStorePacket 162408 [08:06:35]StoreOFDPacket docnum=162408 [08:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F4 23 07 01 3C 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 96 35 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7A 02 00 35 04 06 00 2B 4D A0 F1 FE 66 25 4D CB 27 A0 6A 62 66 [08:06:35]CheckFolder [08:06:35]dirname=/storage/ofd_packets [08:06:35]CheckFolder done [08:06:35]ProducePacketName [08:06:35]name=ofd_packets/00162408 [08:06:35]NVStorageSaveData ofd_packets/00162408 [08:06:35]File name is /storage/ofd_packets/00162408 [08:06:35]Write 301 bytes [08:06:35]NVStorageSaveData done [08:06:35]OFDSenderStorePacket done [08:06:35]KKMCreateOFDPacket done [08:06:35]NVStorageSaveData kkm_last_timestamp [08:06:35]File name is /storage/kkm_last_timestamp [08:06:35]Write 4 bytes [08:06:35]NVStorageSaveData done [08:06:35]ExternCall_PrintAddStr [08:06:35]wPrintStart [08:06:35]Write to MH i2c: 01 00 00 BA 02 BC [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: 01 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: 01 07 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [08:06:35]RasterBufferAndPrint [08:06:35]line Счет N : (1)1318933 [08:06:35]line ИНН: 02508201610067 [08:06:35]line Контрольно-Кассовый Чек [08:06:35]line ПРОДАЖА [08:06:35]line ТРК (МРК, ГНК) : 53 [08:06:35]line Товар: 2710124130 [08:06:35]line Аи-92-К-5 [08:06:35]line 7.550 * 66.30 [08:06:35]line = 500.57 [08:06:35]line НДС 12% НСП 1% [08:06:35]line > о реализуемом товаре [08:06:35]line ОКРУГЛЕНИЕ: -0.57 [08:06:35]line ИТОГО: 500.00 [08:06:35]line Внесено: 500.00 [08:06:35]line СДАЧА: 0.00 [08:06:35]line НСП 1% : 4.43 [08:06:35]line НДС 12% : 53.16 [08:06:35]line Наличными: 500.00 [08:06:35]line Безнал.: 0.00 [08:06:35]line Место: АЗС № 140 "Партнер Нефть" [08:06:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:06:35]line СНО: Общий режим [08:06:35]line Чек 76 13.07.2024 08:06 [08:06:35]line Смена: 462 ФФД: 1.0 [08:06:35]line ЗНМ: 0300000129 [08:06:35]line РНМ: 0000000000090858 [08:06:35]line Версия ККМ: 001 [08:06:35]line ФМ: 0000000000874899 [08:06:35]line ФД: 162408 [08:06:35]line ФПД: 47612412690022 [08:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080646&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162408&fm=47612412690022&tin=02508201610067®Number=0000000000090858&sum=50000 [08:06:35]OFD Sender: Processing packet 162408 [packets to send 105, broken 104] [08:06:35]ProducePacketName [08:06:35]name=ofd_packets/00162408 [08:06:35]OFD Sender: To server: pG, [08:06:35]CommunicateWithHost lk.salyk.kg:30040 [08:06:35]ConnectInit lk.salyk.kg [08:06:35]written 0, free lines is 4095 [08:06:35]Connected sock=10 [08:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F4 23 07 01 3C 32 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 96 35 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7A 02 00 35 04 06 00 2B 4D A0 F1 FE 66 25 4D CB 27 A0 6A 62 66 [08:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F9 EB 47 00 04 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7A 02 00 F4 03 04 00 AB E1 91 66 B6 04 01 00 00 2C 0D C7 3A 0F 7F 47 CE [08:06:35]CommunicateWithHost err = 0 [08:06:35]CheckOFDResponse [08:06:35]1017 (14) - 77093643461234 [08:06:35]1041 (16) - 0000000000874899 [08:06:35]1040 (4) - 162408 [08:06:35]1012 (4) - 13.07.2024 02:08 [08:06:35]1206 (1) - 0 [08:06:35]OFD Sender: Remove packet 162408 [08:06:35]ProducePacketName [08:06:35]name=ofd_packets/00162408 [08:06:35]NVStorageDeleteData [08:06:35]Write to MH i2c: 01 00 00 E5 02 E7 [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: 01 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: 01 07 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: 01 07 00 E5 02 00 00 00 00 00 DA 0C D4 [08:06:35]RasterBufferAndPrint [08:06:35]line [08:06:35]line [08:06:35]line [08:06:35]line [08:06:35]line [08:06:35]written 0, free lines is 3296 [08:06:35]MH_Cut [08:06:35]Write to MH i2c: D1 01 00 EC 02 01 C0 [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: D1 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: D1 01 00 [08:06:35]MH_I2C_Read... [08:06:35]Read from MH i2c: D1 01 00 EC 02 00 BF [08:06:35]Write to MH i2c: 01 00 00 ED 02 EF [08:06:35]Write i2c OK [08:06:35]MH_I2C_Read... [08:06:36]OFD Sender: No OFD packet to send [08:06:36]*** Cut start [08:06:36]*** Purtial cut [08:06:36]*** CUTSNS_PIN = 0 [08:06:36]*** Stage 1: CUTSNS_PIN = 1 [08:06:38]Read from MH i2c: 01 [08:06:38]MH_I2C_Read... [08:06:38]*** Stop cut motor [08:06:38]*** Cut end [08:06:38]Read from MH i2c: 01 07 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: 01 07 00 ED 02 00 00 00 00 00 FF 0F 04 [08:06:38]process_action close_receipt done [08:06:38]requested_data is exist [08:06:38]produce_requested_data [08:06:38]requested_item fm.sn is exist - process it [08:06:38]wFMCommunicate request_size=4 [08:06:38]MH_SAM_APDU [08:06:38]CAPDU: 80 11 00 00 [08:06:38]Write to MH i2c: E2 08 00 EE 02 80 11 00 00 00 00 00 00 6A [08:06:38]Write i2c OK [08:06:38]MH_I2C_Read... [08:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:38]Read from MH i2c: E2 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 17 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 17 00 EE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CA [08:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:06:38]wFMCommunicate OK [08:06:38]requested_item fd.num is exist - process it [08:06:38]SAM_PROTO_GetFieldsCounters [08:06:38]wFMCommunicate request_size=4 [08:06:38]MH_SAM_APDU [08:06:38]CAPDU: 80 13 00 00 [08:06:38]Write to MH i2c: E2 08 00 EF 02 80 13 00 00 00 00 00 00 6D [08:06:38]Write i2c OK [08:06:38]MH_I2C_Read... [08:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:38]Read from MH i2c: E2 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 62 00 [08:06:38]MH_I2C_Read... [08:06:38]Read from MH i2c: E2 62 00 EF 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 68 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [08:06:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 68 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:38]wFMCommunicate OK [08:06:38]SAM_PROTO_GetFieldsCounters done [08:06:38]requested_item shift.num is exist - process it [08:06:38]requested_item shift.opened is exist - process it [08:06:38]req_shift_opened [08:06:38]FM_GetShiftState [08:06:38]SAM_PROTO_GetShiftState [08:06:38]wFMCommunicate request_size=4 [08:06:38]MH_SAM_APDU [08:06:38]CAPDU: 80 13 01 00 [08:06:38]Write to MH i2c: E2 08 00 F0 02 80 13 01 00 00 00 00 00 6F [08:06:38]Write i2c OK [08:06:38]MH_I2C_Read... [08:06:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:39]Read from MH i2c: E2 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: E2 0E 00 [08:06:39]MH_I2C_Read... [08:06:39]Read from MH i2c: E2 0E 00 F0 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 69 [08:06:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:06:39]wFMCommunicate OK [08:06:39]SAM_PROTO_GetShiftState done [08:06:39]FM_GetShiftState done [08:06:39]req_shift_opened done [08:06:39]requested_item shift.open_date is exist - process it [08:06:39]req_shift_open_date [08:06:39]req_shift_open_date done [08:06:39]produce_requested_data done [08:06:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162408,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:06:39]process_action_free close_receipt [08:06:39]json_value_free [08:06:39]json_value_free done [08:06:39]process_json_proto returns [08:06:39]Send response to host [08:06:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162408,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:06:39]free response buf [08:06:39]execute_script done [08:06:39]execute_script returns [08:06:39]free content buf [08:06:39]Sock 8.Close socket [08:06:39]Sock 8.Thread stoped [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:24]accept exits with 9 [08:07:24]New connection [08:07:24]New thread 3067006308 created [08:07:24]Thread 3066862948 joined [08:07:24]Waiting for new connection... [08:07:24] Sock 9.Parse request [08:07:24]Sock 9.Check first char [08:07:24]Sock 9.First char is OK [08:07:24]request: POST /json_proto HTTP/1.0 [08:07:24]Method: POST [08:07:24]URL: /json_proto [08:07:24]Method is POST - this is cgi request [08:07:24]url: /json_proto [08:07:24]query_string will be loaded in cgi processing [08:07:24]execute_cgi json_proto POST (null) [08:07:24]execute_cgi path=json_proto method=POST [08:07:24]POST find Content-Length [08:07:24]Host: 172.17.39.67:8080 [08:07:24]Content-Length: 802 [08:07:24]Content-Type: application/json [08:07:24] [08:07:24]POST finish read [08:07:24]Found Content-Length = 802 [08:07:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.080, "sum" : 999.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:24]execute_script... [08:07: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)1318934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.080, "sum" : 999.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:24]POST & json_proto [08:07:24]process_json_proto [08:07:24]json parsed OK: [08:07:24]protocol is kg_v1.0 [08:07:24]action value=close_receipt [08:07:24]process_action close_receipt [08:07:24]cmd_close_receipt [08:07:24]MH_GetDate [08:07:24]Write to MH i2c: F0 00 00 F1 02 E2 [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: F0 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: F0 09 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: F0 09 00 F1 02 00 C9 35 92 66 FA E9 8E 66 B8 [08:07:24]GetLastDocTimeStamp 1720858006 [08:07:24]current date 1720858057 [08:07:24]FM_GetShiftState [08:07:24]SAM_PROTO_GetShiftState [08:07:24]wFMCommunicate request_size=4 [08:07:24]MH_SAM_APDU [08:07:24]CAPDU: 80 13 01 00 [08:07:24]Write to MH i2c: E2 08 00 F2 02 80 13 01 00 00 00 00 00 71 [08:07:24]Write i2c OK [08:07:24]MH_I2C_Read... [08:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:24]Read from MH i2c: E2 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 0E 00 [08:07:24]MH_I2C_Read... [08:07:24]Read from MH i2c: E2 0E 00 F2 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6B [08:07:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:07:24]wFMCommunicate OK [08:07:24]SAM_PROTO_GetShiftState done [08:07:24]FM_GetShiftState done [08:07:24]opened in 1720828979 [08:07:24]opened+sec_in_day 1720915379 [08:07:24]quantity*price = 99980 [08:07:24]sum+1 = 99981 [08:07:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.80 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 0.00 Безнал.: 999.80 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 77 13.07.2024 08:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162409 ФПД: 80132294973666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080737&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162409&fm=80132294973666&tin=02508201610067®Number=0000000000090858&sum=99980 [08:07:25]StoreToDocumentArchive [08:07:25]shift 462 fd 162409 [08:07:25]save to /storage/0462/doc_00162409 [08:07:25]save last doc name /storage/0462/doc_00162409 to /storage/kkm_last_doc_name [08:07:25]save OK [08:07:25]Clear old archive folders... [08:07:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:25]tlvbuf is 01747320 [08:07:25]SAM_PROTO_ClearQueue [08:07:25]wFMCommunicate request_size=4 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 09 00 00 [08:07:25]Write to MH i2c: E2 08 00 FF 02 80 09 00 00 00 00 00 00 73 [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [08:07:25]RAPDU: 90 00 [08:07:25]wFMCommunicate OK [08:07:25]SAM_PROTO_ClearQueue done [08:07:25]KKMCreateOFDPacket [08:07:25]OFDProtocolAddRootSTLVToBuf [08:07:25]FM_MakeSignedData [08:07:25]FM_MakeSignedData [08:07:25]SAM_PROTO_SignData [08:07:25]wFMCommunicate request_size=4 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 0D 01 02 [08:07:25]Write to MH i2c: E2 08 00 00 03 80 0D 01 02 00 00 00 00 7C [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [08:07:25]RAPDU: 90 00 [08:07:25]wFMCommunicate OK [08:07:25]wFMCommunicate request_size=255 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 35 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7A 02 00 35 04 06 00 48 [08:07:25]Write to MH i2c: E2 02 01 01 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 35 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7A 02 00 35 04 06 00 48 00 00 4B [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [08:07:25]RAPDU: 90 00 [08:07:25]wFMCommunicate OK [08:07:25]wFMCommunicate request_size=10 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 0D 02 02 05 E1 40 FA 18 E2 [08:07:25]Write to MH i2c: E2 0D 00 02 03 80 0D 02 02 05 00 E1 40 FA 18 E2 00 00 9E [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [08:07:25]RAPDU: 90 00 [08:07:25]wFMCommunicate OK [08:07:25]wFMCommunicate request_size=4 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 0D 03 02 [08:07:25]Write to MH i2c: E2 08 00 03 03 80 0D 03 02 00 00 00 00 81 [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 0B 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 0B 00 03 03 00 2C 76 85 12 F6 9A 20 E5 90 00 50 [08:07:25]RAPDU: 2C 76 85 12 F6 9A 20 E5 90 00 [08:07:25]wFMCommunicate OK [08:07:25]SAM_PROTO_SignData done [08:07:25]FM_MakeSignedData done [08:07:25]CreateOFDProtocolMessage [08:07:25]wFMCommunicate request_size=4 [08:07:25]MH_SAM_APDU [08:07:25]CAPDU: 80 11 00 00 [08:07:25]Write to MH i2c: E2 08 00 04 03 80 11 00 00 00 00 00 00 81 [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:25]Read from MH i2c: E2 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 17 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: E2 17 00 04 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [08:07:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:07:25]wFMCommunicate OK [08:07:25]CreateOFDProtocolMessage done [08:07:25]OFDSenderStorePacket 162409 [08:07:25]StoreOFDPacket docnum=162409 [08:07:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2B 14 07 01 97 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 35 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7A 02 00 35 04 06 00 48 E1 40 FA 18 E2 2C 76 85 12 F6 9A 20 E5 [08:07:25]CheckFolder [08:07:25]dirname=/storage/ofd_packets [08:07:25]CheckFolder done [08:07:25]ProducePacketName [08:07:25]name=ofd_packets/00162409 [08:07:25]NVStorageSaveData ofd_packets/00162409 [08:07:25]File name is /storage/ofd_packets/00162409 [08:07:25]Write 301 bytes [08:07:25]NVStorageSaveData done [08:07:25]OFDSenderStorePacket done [08:07:25]KKMCreateOFDPacket done [08:07:25]NVStorageSaveData kkm_last_timestamp [08:07:25]File name is /storage/kkm_last_timestamp [08:07:25]Write 4 bytes [08:07:25]NVStorageSaveData done [08:07:25]ExternCall_PrintAddStr [08:07:25]wPrintStart [08:07:25]Write to MH i2c: 01 00 00 05 03 08 [08:07:25]Write i2c OK [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 07 00 [08:07:25]MH_I2C_Read... [08:07:25]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [08:07:25]RasterBufferAndPrint [08:07:25]line Счет N : (1)1318934 [08:07:25]line ИНН: 02508201610067 [08:07:25]line Контрольно-Кассовый Чек [08:07:25]line ПРОДАЖА [08:07:25]line ТРК (МРК, ГНК) : 43 [08:07:25]line Товар: 2710124130 [08:07:25]line Аи-92-К-5 [08:07:25]line 15.080 * 66.30 [08:07:25]line = 999.80 [08:07:25]line НДС 12% НСП 1% [08:07:25]line > о реализуемом товаре [08:07:25]line ИТОГО: 999.80 [08:07:25]line НСП 1% : 8.85 [08:07:25]line НДС 12% : 106.17 [08:07:25]line Наличными: 0.00 [08:07:25]line Безнал.: 999.80 [08:07:25]line Место: АЗС № 140 "Партнер Нефть" [08:07:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:07:25]line СНО: Общий режим [08:07:25]line Чек 77 13.07.2024 08:07 [08:07:25]line Смена: 462 ФФД: 1.0 [08:07:25]line ЗНМ: 0300000129 [08:07:25]line РНМ: 0000000000090858 [08:07:25]line Версия ККМ: 001 [08:07:25]line Платежная система: O! деньги [08:07:25]line ФМ: 0000000000874899 [08:07:25]line ФД: 162409 [08:07:25]line ФПД: 80132294973666 [08:07:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080737&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162409&fm=80132294973666&tin=02508201610067®Number=0000000000090858&sum=99980 [08:07:26]written 0, free lines is 4095 [08:07:26]OFD Sender: Processing packet 162409 [packets to send 105, broken 104] [08:07:26]ProducePacketName [08:07:26]name=ofd_packets/00162409 [08:07:26]OFD Sender: To server: pG, [08:07:26]CommunicateWithHost lk.salyk.kg:30040 [08:07:26]ConnectInit lk.salyk.kg [08:07:26]Connected sock=10 [08:07:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2B 14 07 01 97 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 C9 35 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7A 02 00 35 04 06 00 48 E1 40 FA 18 E2 2C 76 85 12 F6 9A 20 E5 [08:07:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 28 12 47 00 13 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7A 02 00 F4 03 04 00 DE E1 91 66 B6 04 01 00 00 C1 54 8F DF 65 81 29 C0 [08:07:26]CommunicateWithHost err = 0 [08:07:26]CheckOFDResponse [08:07:26]1017 (14) - 77093643461234 [08:07:26]1041 (16) - 0000000000874899 [08:07:26]1040 (4) - 162409 [08:07:26]1012 (4) - 13.07.2024 02:09 [08:07:26]1206 (1) - 0 [08:07:26]OFD Sender: Remove packet 162409 [08:07:26]ProducePacketName [08:07:26]name=ofd_packets/00162409 [08:07:26]NVStorageDeleteData [08:07:26]Write to MH i2c: 01 00 00 2F 03 32 [08:07:26]Write i2c OK [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: 01 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: 01 07 00 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 02 0D 48 [08:07:26]RasterBufferAndPrint [08:07:26]line [08:07:26]line [08:07:26]line [08:07:26]line [08:07:26]line [08:07:26]written 0, free lines is 3336 [08:07:26]MH_Cut [08:07:26]Write to MH i2c: D1 01 00 36 03 01 0B [08:07:26]Write i2c OK [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: D1 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: D1 01 00 [08:07:26]MH_I2C_Read... [08:07:26]Read from MH i2c: D1 01 00 36 03 00 0A [08:07:26]Write to MH i2c: 01 00 00 37 03 3A [08:07:26]Write i2c OK [08:07:26]MH_I2C_Read... [08:07:26]OFD Sender: No OFD packet to send [08:07:27]*** Cut start [08:07:27]*** Purtial cut [08:07:27]*** Stage 1: CUTSNS_PIN = 1 [08:07:27]Read from MH i2c: 01 [08:07:27]MH_I2C_Read... [08:07:27]*** Stop cut motor [08:07:27]*** Cut end [08:07:27]Read from MH i2c: 01 07 00 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [08:07:27]process_action close_receipt done [08:07:27]requested_data is exist [08:07:27]produce_requested_data [08:07:27]requested_item fm.sn is exist - process it [08:07:27]wFMCommunicate request_size=4 [08:07:27]MH_SAM_APDU [08:07:27]CAPDU: 80 11 00 00 [08:07:27]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [08:07:27]Write i2c OK [08:07:27]MH_I2C_Read... [08:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:27]Read from MH i2c: E2 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 17 00 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 15 [08:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:07:27]wFMCommunicate OK [08:07:27]requested_item fd.num is exist - process it [08:07:27]SAM_PROTO_GetFieldsCounters [08:07:27]wFMCommunicate request_size=4 [08:07:27]MH_SAM_APDU [08:07:27]CAPDU: 80 13 00 00 [08:07:27]Write to MH i2c: E2 08 00 39 03 80 13 00 00 00 00 00 00 B8 [08:07:27]Write i2c OK [08:07:27]MH_I2C_Read... [08:07:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:27]Read from MH i2c: E2 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 62 00 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 62 00 39 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 69 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [08:07:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 69 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:27]wFMCommunicate OK [08:07:27]SAM_PROTO_GetFieldsCounters done [08:07:27]requested_item shift.num is exist - process it [08:07:27]requested_item shift.opened is exist - process it [08:07:27]req_shift_opened [08:07:27]FM_GetShiftState [08:07:27]SAM_PROTO_GetShiftState [08:07:27]wFMCommunicate request_size=4 [08:07:27]MH_SAM_APDU [08:07:27]CAPDU: 80 13 01 00 [08:07:27]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [08:07:27]Write i2c OK [08:07:27]MH_I2C_Read... [08:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:27]Read from MH i2c: E2 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 0E 00 [08:07:27]MH_I2C_Read... [08:07:27]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B4 [08:07:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:07:27]wFMCommunicate OK [08:07:27]SAM_PROTO_GetShiftState done [08:07:27]FM_GetShiftState done [08:07:27]req_shift_opened done [08:07:27]requested_item shift.open_date is exist - process it [08:07:27]req_shift_open_date [08:07:27]req_shift_open_date done [08:07:27]produce_requested_data done [08:07:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162409,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:07:27]process_action_free close_receipt [08:07:27]json_value_free [08:07:27]json_value_free done [08:07:27]process_json_proto returns [08:07:27]Send response to host [08:07:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162409,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:07:27]free response buf [08:07:27]execute_script done [08:07:27]execute_script returns [08:07:27]free content buf [08:07:27]Sock 9.Close socket [08:07:27]Sock 9.Thread stoped [08:07:31]OFD Sender: No OFD packet to send [08:07:36]OFD Sender: No OFD packet to send [08:07:41]OFD Sender: No OFD packet to send [08:07:46]OFD Sender: No OFD packet to send [08:07:51]OFD Sender: No OFD packet to send [08:07:56]OFD Sender: No OFD packet to send [08:08:01]OFD Sender: No OFD packet to send [08:08:06]OFD Sender: No OFD packet to send [08:08:11]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:29]accept exits with 8 [08:09:29]New connection [08:09:29]New thread 3066862948 created [08:09:29]Thread 3067006308 joined [08:09:29]Waiting for new connection... [08:09:29] Sock 8.Parse request [08:09:29]Sock 8.Check first char [08:09:29]Sock 8.First char is OK [08:09:29]request: POST /json_proto HTTP/1.0 [08:09:29]Method: POST [08:09:29]URL: /json_proto [08:09:29]Method is POST - this is cgi request [08:09:29]url: /json_proto [08:09:29]query_string will be loaded in cgi processing [08:09:29]execute_cgi json_proto POST (null) [08:09:29]execute_cgi path=json_proto method=POST [08:09:29]POST find Content-Length [08:09:29]Host: 172.17.39.67:8080 [08:09:29]Content-Length: 678 [08:09:29]Content-Type: application/json [08:09:29] [08:09:29]POST finish read [08:09:29]Found Content-Length = 678 [08:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:09:29]execute_script... [08:09: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)1318936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "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:09:29]POST & json_proto [08:09:29]process_json_proto [08:09:29]json parsed OK: [08:09:29]protocol is kg_v1.0 [08:09:29]action value=close_receipt [08:09:29]process_action close_receipt [08:09:29]cmd_close_receipt [08:09:29]MH_GetDate [08:09:29]Write to MH i2c: F0 00 00 3B 03 2D [08:09:29]Write i2c OK [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 09 00 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 09 00 3B 03 00 46 36 92 66 FA E9 8E 66 81 [08:09:29]GetLastDocTimeStamp 1720858057 [08:09:29]current date 1720858182 [08:09:29]FM_GetShiftState [08:09:29]SAM_PROTO_GetShiftState [08:09:29]wFMCommunicate request_size=4 [08:09:29]MH_SAM_APDU [08:09:29]CAPDU: 80 13 01 00 [08:09:29]Write to MH i2c: E2 08 00 3C 03 80 13 01 00 00 00 00 00 BC [08:09:29]Write i2c OK [08:09:29]MH_I2C_Read... [08:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:29]Read from MH i2c: E2 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: E2 0E 00 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: E2 0E 00 3C 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B6 [08:09:29]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:09:29]wFMCommunicate OK [08:09:29]SAM_PROTO_GetShiftState done [08:09:29]FM_GetShiftState done [08:09:29]opened in 1720828979 [08:09:29]opened+sec_in_day 1720915379 [08:09:29]quantity*price = 40045 [08:09:29]sum+1 = 40046 [08:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 78 13.07.2024 08:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162410 ФПД: 87419900088854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080942&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162410&fm=87419900088854&tin=02508201610067®Number=0000000000090858&sum=40000 [08:09:30]StoreToDocumentArchive [08:09:30]shift 462 fd 162410 [08:09:30]save to /storage/0462/doc_00162410 [08:09:30]save last doc name /storage/0462/doc_00162410 to /storage/kkm_last_doc_name [08:09:30]save OK [08:09:30]Clear old archive folders... [08:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:30]tlvbuf is 01864D30 [08:09:30]SAM_PROTO_ClearQueue [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 09 00 00 [08:09:30]Write to MH i2c: E2 08 00 49 03 80 09 00 00 00 00 00 00 BE [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]SAM_PROTO_ClearQueue done [08:09:30]KKMCreateOFDPacket [08:09:30]OFDProtocolAddRootSTLVToBuf [08:09:30]FM_MakeSignedData [08:09:30]FM_MakeSignedData [08:09:30]SAM_PROTO_SignData [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 01 02 [08:09:30]Write to MH i2c: E2 08 00 4A 03 80 0D 01 02 00 00 00 00 C6 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]wFMCommunicate request_size=255 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4E 00 00 00 F4 03 04 00 46 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7A 02 00 35 04 06 00 4F [08:09:30]Write to MH i2c: E2 02 01 4B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4E 00 00 00 F4 03 04 00 46 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7A 02 00 35 04 06 00 4F 00 00 27 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]wFMCommunicate request_size=10 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 02 02 05 82 08 17 52 16 [08:09:30]Write to MH i2c: E2 0D 00 4C 03 80 0D 02 02 05 00 82 08 17 52 16 00 00 DC [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 03 02 [08:09:30]Write to MH i2c: E2 08 00 4D 03 80 0D 03 02 00 00 00 00 CB [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 0B 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 0B 00 4D 03 00 15 79 40 2E C3 60 C2 2F 90 00 DC [08:09:30]RAPDU: 15 79 40 2E C3 60 C2 2F 90 00 [08:09:30]wFMCommunicate OK [08:09:30]SAM_PROTO_SignData done [08:09:30]FM_MakeSignedData done [08:09:30]CreateOFDProtocolMessage [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 11 00 00 [08:09:30]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 17 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2B [08:09:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:09:30]wFMCommunicate OK [08:09:30]CreateOFDProtocolMessage done [08:09:30]OFDSenderStorePacket 162410 [08:09:30]StoreOFDPacket docnum=162410 [08:09:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7D 27 07 01 EC BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4E 00 00 00 F4 03 04 00 46 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7A 02 00 35 04 06 00 4F 82 08 17 52 16 15 79 40 2E C3 60 C2 2F [08:09:30]CheckFolder [08:09:30]dirname=/storage/ofd_packets [08:09:30]CheckFolder done [08:09:30]ProducePacketName [08:09:30]name=ofd_packets/00162410 [08:09:30]NVStorageSaveData ofd_packets/00162410 [08:09:30]File name is /storage/ofd_packets/00162410 [08:09:30]Write 301 bytes [08:09:30]NVStorageSaveData done [08:09:30]OFDSenderStorePacket done [08:09:30]KKMCreateOFDPacket done [08:09:30]NVStorageSaveData kkm_last_timestamp [08:09:30]File name is /storage/kkm_last_timestamp [08:09:30]Write 4 bytes [08:09:30]NVStorageSaveData done [08:09:30]ExternCall_PrintAddStr [08:09:30]wPrintStart [08:09:30]Write to MH i2c: 01 00 00 4F 03 52 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: 01 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: 01 07 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [08:09:30]RasterBufferAndPrint [08:09:30]line Счет N : (1)1318936 [08:09:30]line ИНН: 02508201610067 [08:09:30]line Контрольно-Кассовый Чек [08:09:30]line ПРОДАЖА [08:09:30]line ТРК (МРК, ГНК) : 33 [08:09:30]line Товар: 2710124130 [08:09:30]line Аи-92-К-5 [08:09:30]line 6.040 * 66.30 [08:09:30]line = 400.45 [08:09:30]line НДС 12% НСП 1% [08:09:30]line > о реализуемом товаре [08:09:30]line ОКРУГЛЕНИЕ: -0.45 [08:09:30]line ИТОГО: 400.00 [08:09:30]line Внесено: 400.00 [08:09:30]line СДАЧА: 0.00 [08:09:30]line НСП 1% : 3.54 [08:09:30]line НДС 12% : 42.53 [08:09:30]line Наличными: 400.00 [08:09:30]line Безнал.: 0.00 [08:09:30]line Место: АЗС № 140 "Партнер Нефть" [08:09:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:09:30]line СНО: Общий режим [08:09:30]line Чек 78 13.07.2024 08:09 [08:09:30]line Смена: 462 ФФД: 1.0 [08:09:30]line ЗНМ: 0300000129 [08:09:30]line РНМ: 0000000000090858 [08:09:30]line Версия ККМ: 001 [08:09:30]line ФМ: 0000000000874899 [08:09:30]line ФД: 162410 [08:09:30]line ФПД: 87419900088854 [08:09:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T080942&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162410&fm=87419900088854&tin=02508201610067®Number=0000000000090858&sum=40000 [08:09:31]OFD Sender: Processing packet 162410 [packets to send 105, broken 104] [08:09:31]ProducePacketName [08:09:31]name=ofd_packets/00162410 [08:09:31]OFD Sender: To server: pG, [08:09:31]CommunicateWithHost lk.salyk.kg:30040 [08:09:31]ConnectInit lk.salyk.kg [08:09:31]written 0, free lines is 4095 [08:09:31]Connected sock=10 [08:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 7D 27 07 01 EC BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4E 00 00 00 F4 03 04 00 46 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7A 02 00 35 04 06 00 4F 82 08 17 52 16 15 79 40 2E C3 60 C2 2F [08:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3B FD 47 00 74 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7A 02 00 F4 03 04 00 5B E2 91 66 B6 04 01 00 00 34 BA 87 C4 1D 1F E0 8D [08:09:31]CommunicateWithHost err = 0 [08:09:31]CheckOFDResponse [08:09:31]1017 (14) - 77093643461234 [08:09:31]1041 (16) - 0000000000874899 [08:09:31]1040 (4) - 162410 [08:09:31]1012 (4) - 13.07.2024 02:11 [08:09:31]1206 (1) - 0 [08:09:31]OFD Sender: Remove packet 162410 [08:09:31]ProducePacketName [08:09:31]name=ofd_packets/00162410 [08:09:31]NVStorageDeleteData [08:09:31]Write to MH i2c: 01 00 00 7A 03 7D [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 07 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 07 00 7A 03 00 00 00 00 00 E2 0C 72 [08:09:31]RasterBufferAndPrint [08:09:31]line [08:09:31]line [08:09:31]line [08:09:31]line [08:09:31]line [08:09:31]written 0, free lines is 3307 [08:09:31]MH_Cut [08:09:31]Write to MH i2c: D1 01 00 81 03 01 56 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: D1 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: D1 01 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: D1 01 00 81 03 00 55 [08:09:31]Write to MH i2c: 01 00 00 82 03 85 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]OFD Sender: No OFD packet to send [08:09:32]*** Cut start [08:09:32]*** Purtial cut [08:09:32]*** CUTSNS_PIN = 0 [08:09:32]*** Stage 1: CUTSNS_PIN = 1 [08:09:34]Read from MH i2c: 01 [08:09:34]MH_I2C_Read... [08:09:34]*** Stop cut motor [08:09:34]*** Cut end [08:09:34]Read from MH i2c: 01 07 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: 01 07 00 82 03 00 00 00 00 00 FF 0F 9A [08:09:34]process_action close_receipt done [08:09:34]requested_data is exist [08:09:34]produce_requested_data [08:09:34]requested_item fm.sn is exist - process it [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 11 00 00 [08:09:34]Write to MH i2c: E2 08 00 83 03 80 11 00 00 00 00 00 00 00 [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 17 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 17 00 83 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 60 [08:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:09:34]wFMCommunicate OK [08:09:34]requested_item fd.num is exist - process it [08:09:34]SAM_PROTO_GetFieldsCounters [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 13 00 00 [08:09:34]Write to MH i2c: E2 08 00 84 03 80 13 00 00 00 00 00 00 03 [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 62 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 62 00 84 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [08:09:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:34]wFMCommunicate OK [08:09:34]SAM_PROTO_GetFieldsCounters done [08:09:34]requested_item shift.num is exist - process it [08:09:34]requested_item shift.opened is exist - process it [08:09:34]req_shift_opened [08:09:34]FM_GetShiftState [08:09:34]SAM_PROTO_GetShiftState [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 13 01 00 [08:09:34]Write to MH i2c: E2 08 00 85 03 80 13 01 00 00 00 00 00 05 [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 0E 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 0E 00 85 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FF [08:09:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:09:34]wFMCommunicate OK [08:09:34]SAM_PROTO_GetShiftState done [08:09:34]FM_GetShiftState done [08:09:34]req_shift_opened done [08:09:34]requested_item shift.open_date is exist - process it [08:09:34]req_shift_open_date [08:09:34]req_shift_open_date done [08:09:34]produce_requested_data done [08:09:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162410,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:09:34]process_action_free close_receipt [08:09:34]json_value_free [08:09:34]json_value_free done [08:09:34]process_json_proto returns [08:09:34]Send response to host [08:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162410,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:09:34]free response buf [08:09:34]execute_script done [08:09:34]execute_script returns [08:09:34]free content buf [08:09:34]Sock 8.Close socket [08:09:34]Sock 8.Thread stoped [08:09:36]OFD Sender: No OFD packet to send [08:09:41]OFD Sender: No OFD packet to send [08:09:46]OFD Sender: No OFD packet to send [08:09:48]accept exits with 9 [08:09:48]New connection [08:09:48]New thread 3067006308 created [08:09:48]Thread 3066862948 joined [08:09:48]Waiting for new connection... [08:09:48] Sock 9.Parse request [08:09:48]Sock 9.Check first char [08:09:48]Sock 9.First char is OK [08:09:48]request: POST /json_proto HTTP/1.0 [08:09:48]Method: POST [08:09:48]URL: /json_proto [08:09:48]Method is POST - this is cgi request [08:09:48]url: /json_proto [08:09:48]query_string will be loaded in cgi processing [08:09:48]execute_cgi json_proto POST (null) [08:09:48]execute_cgi path=json_proto method=POST [08:09:48]POST find Content-Length [08:09:48]Host: 172.17.39.67:8080 [08:09:48]Content-Length: 678 [08:09:48]Content-Type: application/json [08:09:48] [08:09:48]POST finish read [08:09:48]Found Content-Length = 678 [08:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:48]execute_script... [08:09: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)1318938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:48]POST & json_proto [08:09:48]process_json_proto [08:09:48]json parsed OK: [08:09:48]protocol is kg_v1.0 [08:09:48]action value=close_receipt [08:09:48]process_action close_receipt [08:09:48]cmd_close_receipt [08:09:48]MH_GetDate [08:09:48]Write to MH i2c: F0 00 00 86 03 78 [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: F0 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: F0 09 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: F0 09 00 86 03 00 59 36 92 66 FA E9 8E 66 DF [08:09:48]GetLastDocTimeStamp 1720858182 [08:09:48]current date 1720858201 [08:09:48]FM_GetShiftState [08:09:48]SAM_PROTO_GetShiftState [08:09:48]wFMCommunicate request_size=4 [08:09:48]MH_SAM_APDU [08:09:48]CAPDU: 80 13 01 00 [08:09:48]Write to MH i2c: E2 08 00 87 03 80 13 01 00 00 00 00 00 07 [08:09:48]Write i2c OK [08:09:48]MH_I2C_Read... [08:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:48]Read from MH i2c: E2 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 0E 00 [08:09:48]MH_I2C_Read... [08:09:48]Read from MH i2c: E2 0E 00 87 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 01 [08:09:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:09:48]wFMCommunicate OK [08:09:48]SAM_PROTO_GetShiftState done [08:09:48]FM_GetShiftState done [08:09:48]opened in 1720828979 [08:09:48]opened+sec_in_day 1720915379 [08:09:48]quantity*price = 50056 [08:09:48]sum+1 = 50058 [08:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 79 13.07.2024 08:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162411 ФПД: 18315977295343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081001&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162411&fm=18315977295343&tin=02508201610067®Number=0000000000090858&sum=50000 [08:09:49]StoreToDocumentArchive [08:09:49]shift 462 fd 162411 [08:09:49]save to /storage/0462/doc_00162411 [08:09:49]save last doc name /storage/0462/doc_00162411 to /storage/kkm_last_doc_name [08:09:49]save OK [08:09:49]Clear old archive folders... [08:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:49]tlvbuf is 01825D10 [08:09:49]SAM_PROTO_ClearQueue [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 09 00 00 [08:09:49]Write to MH i2c: E2 08 00 94 03 80 09 00 00 00 00 00 00 09 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]SAM_PROTO_ClearQueue done [08:09:49]KKMCreateOFDPacket [08:09:49]OFDProtocolAddRootSTLVToBuf [08:09:49]FM_MakeSignedData [08:09:49]FM_MakeSignedData [08:09:49]SAM_PROTO_SignData [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 01 02 [08:09:49]Write to MH i2c: E2 08 00 95 03 80 0D 01 02 00 00 00 00 11 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]wFMCommunicate request_size=255 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 59 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7A 02 00 35 04 06 00 10 [08:09:49]Write to MH i2c: E2 02 01 96 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 59 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7A 02 00 35 04 06 00 10 00 00 69 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]wFMCommunicate request_size=10 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 02 02 05 A8 85 52 05 EF [08:09:49]Write to MH i2c: E2 0D 00 97 03 80 0D 02 02 05 00 A8 85 52 05 EF 00 00 91 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 03 00 97 03 00 90 00 0E [08:09:49]RAPDU: 90 00 [08:09:49]wFMCommunicate OK [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 0D 03 02 [08:09:49]Write to MH i2c: E2 08 00 98 03 80 0D 03 02 00 00 00 00 16 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:49]Read from MH i2c: E2 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 0B 00 [08:09:49]MH_I2C_Read... [08:09:49]Read from MH i2c: E2 0B 00 98 03 00 7F 22 F8 A9 BF 80 F7 2B 90 00 BA [08:09:49]RAPDU: 7F 22 F8 A9 BF 80 F7 2B 90 00 [08:09:49]wFMCommunicate OK [08:09:49]SAM_PROTO_SignData done [08:09:49]FM_MakeSignedData done [08:09:49]CreateOFDProtocolMessage [08:09:49]wFMCommunicate request_size=4 [08:09:49]MH_SAM_APDU [08:09:49]CAPDU: 80 11 00 00 [08:09:49]Write to MH i2c: E2 08 00 99 03 80 11 00 00 00 00 00 00 16 [08:09:49]Write i2c OK [08:09:49]MH_I2C_Read... [08:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:50]Read from MH i2c: E2 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 17 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: E2 17 00 99 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 76 [08:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:09:50]wFMCommunicate OK [08:09:50]CreateOFDProtocolMessage done [08:09:50]OFDSenderStorePacket 162411 [08:09:50]StoreOFDPacket docnum=162411 [08:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 16 98 07 01 90 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 59 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7A 02 00 35 04 06 00 10 A8 85 52 05 EF 7F 22 F8 A9 BF 80 F7 2B [08:09:50]CheckFolder [08:09:50]dirname=/storage/ofd_packets [08:09:50]CheckFolder done [08:09:50]ProducePacketName [08:09:50]name=ofd_packets/00162411 [08:09:50]NVStorageSaveData ofd_packets/00162411 [08:09:50]File name is /storage/ofd_packets/00162411 [08:09:50]Write 301 bytes [08:09:50]NVStorageSaveData done [08:09:50]OFDSenderStorePacket done [08:09:50]KKMCreateOFDPacket done [08:09:50]NVStorageSaveData kkm_last_timestamp [08:09:50]File name is /storage/kkm_last_timestamp [08:09:50]Write 4 bytes [08:09:50]NVStorageSaveData done [08:09:50]ExternCall_PrintAddStr [08:09:50]wPrintStart [08:09:50]Write to MH i2c: 01 00 00 9A 03 9D [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 9A 03 00 00 00 00 00 FF 0F B2 [08:09:50]RasterBufferAndPrint [08:09:50]line Счет N : (1)1318938 [08:09:50]line ИНН: 02508201610067 [08:09:50]line Контрольно-Кассовый Чек [08:09:50]line ПРОДАЖА [08:09:50]line ТРК (МРК, ГНК) : 43 [08:09:50]line Товар: 2710124130 [08:09:50]line Аи-92-К-5 [08:09:50]line 7.550 * 66.30 [08:09:50]line = 500.57 [08:09:50]line НДС 12% НСП 1% [08:09:50]line > о реализуемом товаре [08:09:50]line ОКРУГЛЕНИЕ: -0.57 [08:09:50]line ИТОГО: 500.00 [08:09:50]line Внесено: 500.00 [08:09:50]line СДАЧА: 0.00 [08:09:50]line НСП 1% : 4.43 [08:09:50]line НДС 12% : 53.16 [08:09:50]line Наличными: 500.00 [08:09:50]line Безнал.: 0.00 [08:09:50]line Место: АЗС № 140 "Партнер Нефть" [08:09:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:09:50]line СНО: Общий режим [08:09:50]line Чек 79 13.07.2024 08:10 [08:09:50]line Смена: 462 ФФД: 1.0 [08:09:50]line ЗНМ: 0300000129 [08:09:50]line РНМ: 0000000000090858 [08:09:50]line Версия ККМ: 001 [08:09:50]line ФМ: 0000000000874899 [08:09:50]line ФД: 162411 [08:09:50]line ФПД: 18315977295343 [08:09:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081001&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162411&fm=18315977295343&tin=02508201610067®Number=0000000000090858&sum=50000 [08:09:50]OFD Sender: Processing packet 162411 [packets to send 105, broken 104] [08:09:50]ProducePacketName [08:09:50]name=ofd_packets/00162411 [08:09:50]OFD Sender: To server: pG, [08:09:50]CommunicateWithHost lk.salyk.kg:30040 [08:09:50]ConnectInit lk.salyk.kg [08:09:50]written 0, free lines is 4095 [08:09:50]Connected sock=10 [08:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 16 98 07 01 90 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 59 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7A 02 00 35 04 06 00 10 A8 85 52 05 EF 7F 22 F8 A9 BF 80 F7 2B [08:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 36 03 47 00 83 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 34 38 39 39 10 04 04 00 6B 7A 02 00 F4 03 04 00 6E E2 91 66 B6 04 01 00 00 F2 7E 96 A1 24 84 CF 8F [08:09:50]CommunicateWithHost err = 0 [08:09:50]CheckOFDResponse [08:09:50]1017 (14) - 77093643461234 [08:09:50]1041 (16) - 0000000000874899 [08:09:50]1040 (4) - 162411 [08:09:50]1012 (4) - 13.07.2024 02:11 [08:09:50]1206 (1) - 0 [08:09:50]OFD Sender: Remove packet 162411 [08:09:50]ProducePacketName [08:09:50]name=ofd_packets/00162411 [08:09:50]NVStorageDeleteData [08:09:50]Write to MH i2c: 01 00 00 C5 03 C8 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: 01 07 00 C5 03 00 00 00 00 00 D9 0C B4 [08:09:50]RasterBufferAndPrint [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]line [08:09:50]written 0, free lines is 3296 [08:09:50]MH_Cut [08:09:50]Write to MH i2c: D1 01 00 CC 03 01 A1 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 01 00 [08:09:50]MH_I2C_Read... [08:09:50]Read from MH i2c: D1 01 00 CC 03 00 A0 [08:09:50]Write to MH i2c: 01 00 00 CD 03 D0 [08:09:50]Write i2c OK [08:09:50]MH_I2C_Read... [08:09:51]OFD Sender: No OFD packet to send [08:09:51]*** Cut start [08:09:51]*** Purtial cut [08:09:51]*** Stage 1: CUTSNS_PIN = 1 [08:09:51]Read from MH i2c: 01 [08:09:51]MH_I2C_Read... [08:09:51]*** Stop cut motor [08:09:51]*** Cut end [08:09:51]Read from MH i2c: 01 07 00 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: 01 07 00 CD 03 00 00 00 00 00 FF 0F E5 [08:09:51]process_action close_receipt done [08:09:51]requested_data is exist [08:09:51]produce_requested_data [08:09:51]requested_item fm.sn is exist - process it [08:09:51]wFMCommunicate request_size=4 [08:09:51]MH_SAM_APDU [08:09:51]CAPDU: 80 11 00 00 [08:09:51]Write to MH i2c: E2 08 00 CE 03 80 11 00 00 00 00 00 00 4B [08:09:51]Write i2c OK [08:09:51]MH_I2C_Read... [08:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:51]Read from MH i2c: E2 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: E2 17 00 [08:09:51]MH_I2C_Read... [08:09:51]Read from MH i2c: E2 17 00 CE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AB [08:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:09:51]wFMCommunicate OK [08:09:51]requested_item fd.num is exist - process it [08:09:51]SAM_PROTO_GetFieldsCounters [08:09:51]wFMCommunicate request_size=4 [08:09:51]MH_SAM_APDU [08:09:51]CAPDU: 80 13 00 00 [08:09:51]Write to MH i2c: E2 08 00 CF 03 80 13 00 00 00 00 00 00 4E [08:09:51]Write i2c OK [08:09:51]MH_I2C_Read... [08:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:52]Read from MH i2c: E2 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: E2 62 00 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: E2 62 00 CF 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [08:09:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:52]wFMCommunicate OK [08:09:52]SAM_PROTO_GetFieldsCounters done [08:09:52]requested_item shift.num is exist - process it [08:09:52]requested_item shift.opened is exist - process it [08:09:52]req_shift_opened [08:09:52]FM_GetShiftState [08:09:52]SAM_PROTO_GetShiftState [08:09:52]wFMCommunicate request_size=4 [08:09:52]MH_SAM_APDU [08:09:52]CAPDU: 80 13 01 00 [08:09:52]Write to MH i2c: E2 08 00 D0 03 80 13 01 00 00 00 00 00 50 [08:09:52]Write i2c OK [08:09:52]MH_I2C_Read... [08:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:52]Read from MH i2c: E2 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: E2 0E 00 [08:09:52]MH_I2C_Read... [08:09:52]Read from MH i2c: E2 0E 00 D0 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4A [08:09:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:09:52]wFMCommunicate OK [08:09:52]SAM_PROTO_GetShiftState done [08:09:52]FM_GetShiftState done [08:09:52]req_shift_opened done [08:09:52]requested_item shift.open_date is exist - process it [08:09:52]req_shift_open_date [08:09:52]req_shift_open_date done [08:09:52]produce_requested_data done [08:09:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162411,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:09:52]process_action_free close_receipt [08:09:52]json_value_free [08:09:52]json_value_free done [08:09:52]process_json_proto returns [08:09:52]Send response to host [08:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162411,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:09:52]free response buf [08:09:52]execute_script done [08:09:52]execute_script returns [08:09:52]free content buf [08:09:52]Sock 9.Close socket [08:09:52]Sock 9.Thread stoped [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:13]accept exits with 8 [08:10:13]New connection [08:10:13]New thread 3066862948 created [08:10:13]Thread 3067006308 joined [08:10:13]Waiting for new connection... [08:10:13] Sock 8.Parse request [08:10:13]Sock 8.Check first char [08:10:13]Sock 8.First char is OK [08:10:13]request: POST /json_proto HTTP/1.0 [08:10:13]Method: POST [08:10:13]URL: /json_proto [08:10:13]Method is POST - this is cgi request [08:10:13]url: /json_proto [08:10:13]query_string will be loaded in cgi processing [08:10:13]execute_cgi json_proto POST (null) [08:10:13]execute_cgi path=json_proto method=POST [08:10:13]POST find Content-Length [08:10:13]Host: 172.17.39.67:8080 [08:10:13]Content-Length: 1175 [08:10:13]Content-Type: application/json [08:10:13] [08:10:13]POST finish read [08:10:13]Found Content-Length = 1175 [08:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318935\u000A13.07.2024 08:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086674\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:13]execute_script... [08:10:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318935\u000A13.07.2024 08:08\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086674\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:13]POST & json_proto [08:10:13]process_json_proto [08:10:13]json parsed OK: [08:10:13]protocol is kg_v1.0 [08:10:13]action value=print_text [08:10:13]process_action print_text [08:10:13]cmd_print_text [08:10:13]ExternCall_PrintAddStr [08:10:13]wPrintStart [08:10:13]Write to MH i2c: 01 00 00 D1 03 D4 [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 07 00 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [08:10:13]RasterBufferAndPrint [08:10:13]line *****ТОВАРНЫЙ ЧЕК***** [08:10:13]line АЗС 140 [08:10:13]line Партнер нефть [08:10:13]line 02508201610067 [08:10:13]line Кассир : Шамбеталиев А. [08:10:13]line Счет N : (1)1318935 [08:10:13]line 13.07.2024 08:08 [08:10:13]line ПРОДАЖА [08:10:13]line ТРК (МРК, ГНК): 63 [08:10:13]line Вид ГСМ : 2710124130 [08:10:13]line Аи-92-К-5 [08:10:13]line 20.000 x 66.30 [08:10:13]line ИТОГ: 1326.00 [08:10:13]line Тип оплаты: Талоны: ТК ГПНА Online [08:10:13]line 30086674 [08:10:13]line ______________________ [08:10:13]line (подпись) [08:10:13]written 0, free lines is 4095 [08:10:13]Write to MH i2c: 01 00 00 E6 03 E9 [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 07 00 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 F6 0D F3 [08:10:13]RasterBufferAndPrint [08:10:13]line [08:10:13]line [08:10:13]line [08:10:13]line [08:10:13]line [08:10:13]written 0, free lines is 3576 [08:10:13]MH_Cut [08:10:13]Write to MH i2c: D1 01 00 ED 03 01 C2 [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: D1 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: D1 01 00 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: D1 01 00 ED 03 00 C1 [08:10:13]Write to MH i2c: 01 00 00 EE 03 F1 [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:14]*** Cut start [08:10:14]*** Purtial cut [08:10:14]*** CUTSNS_PIN = 0 [08:10:14]*** Stage 1: CUTSNS_PIN = 1 [08:10:16]Read from MH i2c: 01 [08:10:16]MH_I2C_Read... [08:10:16]*** Stop cut motor [08:10:16]*** Cut end [08:10:16]Read from MH i2c: 01 07 00 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: 01 07 00 EE 03 00 00 00 00 00 FF 0F 06 [08:10:16]process_action print_text done [08:10:16]requested_data is exist [08:10:16]produce_requested_data [08:10:16]requested_item fm.sn is exist - process it [08:10:16]wFMCommunicate request_size=4 [08:10:16]MH_SAM_APDU [08:10:16]CAPDU: 80 11 00 00 [08:10:16]Write to MH i2c: E2 08 00 EF 03 80 11 00 00 00 00 00 00 6C [08:10:16]Write i2c OK [08:10:16]MH_I2C_Read... [08:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:16]Read from MH i2c: E2 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: E2 17 00 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: E2 17 00 EF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CC [08:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:10:16]wFMCommunicate OK [08:10:16]requested_item fd.num is exist - process it [08:10:16]SAM_PROTO_GetFieldsCounters [08:10:16]wFMCommunicate request_size=4 [08:10:16]MH_SAM_APDU [08:10:16]CAPDU: 80 13 00 00 [08:10:16]Write to MH i2c: E2 08 00 F0 03 80 13 00 00 00 00 00 00 6F [08:10:16]Write i2c OK [08:10:16]MH_I2C_Read... [08:10:16]OFD Sender: No OFD packet to send [08:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:16]Read from MH i2c: E2 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: E2 62 00 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: E2 62 00 F0 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [08:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:16]wFMCommunicate OK [08:10:16]SAM_PROTO_GetFieldsCounters done [08:10:16]requested_item shift.num is exist - process it [08:10:16]requested_item shift.opened is exist - process it [08:10:16]req_shift_opened [08:10:16]FM_GetShiftState [08:10:16]SAM_PROTO_GetShiftState [08:10:16]wFMCommunicate request_size=4 [08:10:16]MH_SAM_APDU [08:10:16]CAPDU: 80 13 01 00 [08:10:16]Write to MH i2c: E2 08 00 F1 03 80 13 01 00 00 00 00 00 71 [08:10:16]Write i2c OK [08:10:16]MH_I2C_Read... [08:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:16]Read from MH i2c: E2 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: E2 0E 00 [08:10:16]MH_I2C_Read... [08:10:16]Read from MH i2c: E2 0E 00 F1 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6B [08:10:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:10:16]wFMCommunicate OK [08:10:16]SAM_PROTO_GetShiftState done [08:10:16]FM_GetShiftState done [08:10:16]req_shift_opened done [08:10:16]requested_item shift.open_date is exist - process it [08:10:16]req_shift_open_date [08:10:16]req_shift_open_date done [08:10:16]produce_requested_data done [08:10:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162411,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:10:16]process_action_free print_text [08:10:16]json_value_free [08:10:16]json_value_free done [08:10:16]process_json_proto returns [08:10:16]Send response to host [08:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162411,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:10:16]free response buf [08:10:16]execute_script done [08:10:16]execute_script returns [08:10:16]free content buf [08:10:16]Sock 8.Close socket [08:10:16]Sock 8.Thread stoped [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:27]accept exits with 9 [08:10:27]New connection [08:10:27]New thread 3067006308 created [08:10:27]Thread 3066862948 joined [08:10:27]Waiting for new connection... [08:10:27] Sock 9.Parse request [08:10:27]Sock 9.Check first char [08:10:27]Sock 9.First char is OK [08:10:27]request: POST /json_proto HTTP/1.0 [08:10:27]Method: POST [08:10:27]URL: /json_proto [08:10:27]Method is POST - this is cgi request [08:10:27]url: /json_proto [08:10:27]query_string will be loaded in cgi processing [08:10:27]execute_cgi json_proto POST (null) [08:10:27]execute_cgi path=json_proto method=POST [08:10:27]POST find Content-Length [08:10:27]Host: 172.17.39.67:8080 [08:10:27]Content-Length: 665 [08:10:27]Content-Type: application/json [08:10:27] [08:10:27]POST finish read [08:10:27]Found Content-Length = 665 [08:10:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 0.090, "sum" : 6.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 6.00, "payments": [ { "type": 0, "sum" : 6.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:27]execute_script... [08:10: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)1318937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 0.090, "sum" : 6.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 6.00, "payments": [ { "type": 0, "sum" : 6.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:27]POST & json_proto [08:10:27]process_json_proto [08:10:27]json parsed OK: [08:10:27]protocol is kg_v1.0 [08:10:27]action value=close_receipt [08:10:27]process_action close_receipt [08:10:27]cmd_close_receipt [08:10:27]MH_GetDate [08:10:27]Write to MH i2c: F0 00 00 F2 03 E4 [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: F0 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: F0 09 00 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: F0 09 00 F2 03 00 80 36 92 66 FA E9 8E 66 72 [08:10:27]GetLastDocTimeStamp 1720858201 [08:10:27]current date 1720858240 [08:10:27]FM_GetShiftState [08:10:27]SAM_PROTO_GetShiftState [08:10:27]wFMCommunicate request_size=4 [08:10:27]MH_SAM_APDU [08:10:27]CAPDU: 80 13 01 00 [08:10:27]Write to MH i2c: E2 08 00 F3 03 80 13 01 00 00 00 00 00 73 [08:10:27]Write i2c OK [08:10:27]MH_I2C_Read... [08:10:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:27]Read from MH i2c: E2 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 0E 00 [08:10:27]MH_I2C_Read... [08:10:27]Read from MH i2c: E2 0E 00 F3 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6D [08:10:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:10:27]wFMCommunicate OK [08:10:27]SAM_PROTO_GetShiftState done [08:10:27]FM_GetShiftState done [08:10:27]opened in 1720828979 [08:10:27]opened+sec_in_day 1720915379 [08:10:27]quantity*price = 605 [08:10:27]sum+1 = 607 [08:10:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 6.00 Внесено: 500.00 СДАЧА: 494.00 НСП 1% : 0.05 НДС 12% : 0.64 Наличными: 6.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 80 13.07.2024 08:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162412 ФПД: 31200323456380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081040&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162412&fm=31200323456380&tin=02508201610067®Number=0000000000090858&sum=600 [08:10:28]StoreToDocumentArchive [08:10:28]shift 462 fd 162412 [08:10:28]save to /storage/0462/doc_00162412 [08:10:28]save last doc name /storage/0462/doc_00162412 to /storage/kkm_last_doc_name [08:10:28]save OK [08:10:28]Clear old archive folders... [08:10:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:10:28]tlvbuf is 01841370 [08:10:28]SAM_PROTO_ClearQueue [08:10:28]wFMCommunicate request_size=4 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 09 00 00 [08:10:28]Write to MH i2c: E2 08 00 00 04 80 09 00 00 00 00 00 00 76 [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 03 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 03 00 00 04 00 90 00 78 [08:10:28]RAPDU: 90 00 [08:10:28]wFMCommunicate OK [08:10:28]SAM_PROTO_ClearQueue done [08:10:28]KKMCreateOFDPacket [08:10:28]OFDProtocolAddRootSTLVToBuf [08:10:28]FM_MakeSignedData [08:10:28]FM_MakeSignedData [08:10:28]SAM_PROTO_SignData [08:10:28]wFMCommunicate request_size=4 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 0D 01 02 [08:10:28]Write to MH i2c: E2 08 00 01 04 80 0D 01 02 00 00 00 00 7E [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 03 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [08:10:28]RAPDU: 90 00 [08:10:28]wFMCommunicate OK [08:10:28]wFMCommunicate request_size=255 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 5E 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 00 00 00 00 00 07 04 06 00 58 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7A 02 00 35 04 06 00 [08:10:28]Write to MH i2c: E2 02 01 02 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 5E 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 00 00 00 00 00 07 04 06 00 58 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7A 02 00 35 04 06 00 00 00 90 [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 03 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [08:10:28]RAPDU: 90 00 [08:10:28]wFMCommunicate OK [08:10:28]wFMCommunicate request_size=11 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 0D 02 02 06 1C 60 64 32 4D 7C [08:10:28]Write to MH i2c: E2 0E 00 03 04 80 0D 02 02 06 00 1C 60 64 32 4D 7C 00 00 68 [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 03 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [08:10:28]RAPDU: 90 00 [08:10:28]wFMCommunicate OK [08:10:28]wFMCommunicate request_size=4 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 0D 03 02 [08:10:28]Write to MH i2c: E2 08 00 04 04 80 0D 03 02 00 00 00 00 83 [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 0B 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 0B 00 04 04 00 D6 67 B4 24 66 A5 F2 A4 90 00 3A [08:10:28]RAPDU: D6 67 B4 24 66 A5 F2 A4 90 00 [08:10:28]wFMCommunicate OK [08:10:28]SAM_PROTO_SignData done [08:10:28]FM_MakeSignedData done [08:10:28]CreateOFDProtocolMessage [08:10:28]wFMCommunicate request_size=4 [08:10:28]MH_SAM_APDU [08:10:28]CAPDU: 80 11 00 00 [08:10:28]Write to MH i2c: E2 08 00 05 04 80 11 00 00 00 00 00 00 83 [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:28]Read from MH i2c: E2 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 17 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: E2 17 00 05 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E3 [08:10:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:10:28]wFMCommunicate OK [08:10:28]CreateOFDProtocolMessage done [08:10:28]OFDSenderStorePacket 162412 [08:10:28]StoreOFDPacket docnum=162412 [08:10:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 28 FB 08 01 4B 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 5E 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 00 00 00 00 00 07 04 06 00 58 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7A 02 00 35 04 06 00 1C 60 64 32 4D 7C D6 67 B4 24 66 A5 F2 A4 [08:10:28]CheckFolder [08:10:28]dirname=/storage/ofd_packets [08:10:28]CheckFolder done [08:10:28]ProducePacketName [08:10:28]name=ofd_packets/00162412 [08:10:28]NVStorageSaveData ofd_packets/00162412 [08:10:28]File name is /storage/ofd_packets/00162412 [08:10:28]Write 302 bytes [08:10:28]NVStorageSaveData done [08:10:28]OFDSenderStorePacket done [08:10:28]KKMCreateOFDPacket done [08:10:28]NVStorageSaveData kkm_last_timestamp [08:10:28]File name is /storage/kkm_last_timestamp [08:10:28]Write 4 bytes [08:10:28]NVStorageSaveData done [08:10:28]ExternCall_PrintAddStr [08:10:28]wPrintStart [08:10:28]Write to MH i2c: 01 00 00 06 04 0A [08:10:28]Write i2c OK [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 07 00 [08:10:28]MH_I2C_Read... [08:10:28]Read from MH i2c: 01 07 00 06 04 00 00 00 00 00 FF 0F 1F [08:10:28]RasterBufferAndPrint [08:10:28]line Счет N : (1)1318937 [08:10:28]line ИНН: 02508201610067 [08:10:28]line Контрольно-Кассовый Чек [08:10:28]line ПРОДАЖА [08:10:28]line ТРК (МРК, ГНК) : 52 [08:10:28]line Товар: 2710124130 [08:10:28]line Super-92-К-5 [08:10:28]line 0.090 * 67.30 [08:10:28]line = 6.06 [08:10:28]line НДС 12% НСП 1% [08:10:28]line > о реализуемом товаре [08:10:28]line ОКРУГЛЕНИЕ: -0.06 [08:10:28]line ИТОГО: 6.00 [08:10:28]line Внесено: 500.00 [08:10:28]line СДАЧА: 494.00 [08:10:28]line НСП 1% : 0.05 [08:10:28]line НДС 12% : 0.64 [08:10:28]line Наличными: 6.00 [08:10:28]line Безнал.: 0.00 [08:10:28]line Место: АЗС № 140 "Партнер Нефть" [08:10:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:10:28]line СНО: Общий режим [08:10:28]line Чек 80 13.07.2024 08:10 [08:10:28]line Смена: 462 ФФД: 1.0 [08:10:28]line ЗНМ: 0300000129 [08:10:28]line РНМ: 0000000000090858 [08:10:28]line Версия ККМ: 001 [08:10:28]line ФМ: 0000000000874899 [08:10:28]line ФД: 162412 [08:10:28]line ФПД: 31200323456380 [08:10:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081040&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162412&fm=31200323456380&tin=02508201610067®Number=0000000000090858&sum=600 [08:10:29]OFD Sender: Processing packet 162412 [packets to send 105, broken 104] [08:10:29]ProducePacketName [08:10:29]name=ofd_packets/00162412 [08:10:29]OFD Sender: To server: pG, [08:10:29]CommunicateWithHost lk.salyk.kg:30040 [08:10:29]ConnectInit lk.salyk.kg [08:10:29]written 0, free lines is 4095 [08:10:29]Connected sock=10 [08:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 28 FB 08 01 4B 40 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 00 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 5E 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 00 00 00 00 00 07 04 06 00 58 02 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7A 02 00 35 04 06 00 1C 60 64 32 4D 7C D6 67 B4 24 66 A5 F2 A4 [08:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5B AB 47 00 95 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7A 02 00 F4 03 04 00 95 E2 91 66 B6 04 01 00 00 22 CB 71 4C 46 EE E6 75 [08:10:29]CommunicateWithHost err = 0 [08:10:29]CheckOFDResponse [08:10:29]1017 (14) - 77093643461234 [08:10:29]1041 (16) - 0000000000874899 [08:10:29]1040 (4) - 162412 [08:10:29]1012 (4) - 13.07.2024 02:12 [08:10:29]1206 (1) - 0 [08:10:29]OFD Sender: Remove packet 162412 [08:10:29]ProducePacketName [08:10:29]name=ofd_packets/00162412 [08:10:29]NVStorageDeleteData [08:10:29]Write to MH i2c: 01 00 00 31 04 35 [08:10:29]Write i2c OK [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: 01 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: 01 07 00 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 DF 0C 27 [08:10:29]RasterBufferAndPrint [08:10:29]line [08:10:29]line [08:10:29]line [08:10:29]line [08:10:29]line [08:10:29]written 0, free lines is 3304 [08:10:29]MH_Cut [08:10:29]Write to MH i2c: D1 01 00 38 04 01 0E [08:10:29]Write i2c OK [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: D1 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: D1 01 00 [08:10:29]MH_I2C_Read... [08:10:29]Read from MH i2c: D1 01 00 38 04 00 0D [08:10:29]Write to MH i2c: 01 00 00 39 04 3D [08:10:29]Write i2c OK [08:10:29]MH_I2C_Read... [08:10:30]OFD Sender: No OFD packet to send [08:10:30]*** Cut start [08:10:30]*** Purtial cut [08:10:30]*** Stage 1: CUTSNS_PIN = 1 [08:10:30]Read from MH i2c: 01 [08:10:30]MH_I2C_Read... [08:10:30]*** Stop cut motor [08:10:30]*** Cut end [08:10:30]Read from MH i2c: 01 07 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: 01 07 00 39 04 00 00 00 00 00 FF 0F 52 [08:10:30]process_action close_receipt done [08:10:30]requested_data is exist [08:10:30]produce_requested_data [08:10:30]requested_item fm.sn is exist - process it [08:10:30]wFMCommunicate request_size=4 [08:10:30]MH_SAM_APDU [08:10:30]CAPDU: 80 11 00 00 [08:10:30]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:30]Read from MH i2c: E2 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 17 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 18 [08:10:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:10:30]wFMCommunicate OK [08:10:30]requested_item fd.num is exist - process it [08:10:30]SAM_PROTO_GetFieldsCounters [08:10:30]wFMCommunicate request_size=4 [08:10:30]MH_SAM_APDU [08:10:30]CAPDU: 80 13 00 00 [08:10:30]Write to MH i2c: E2 08 00 3B 04 80 13 00 00 00 00 00 00 BB [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:30]Read from MH i2c: E2 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 62 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 62 00 3B 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [08:10:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:10:30]wFMCommunicate OK [08:10:30]SAM_PROTO_GetFieldsCounters done [08:10:30]requested_item shift.num is exist - process it [08:10:30]requested_item shift.opened is exist - process it [08:10:30]req_shift_opened [08:10:30]FM_GetShiftState [08:10:30]SAM_PROTO_GetShiftState [08:10:30]wFMCommunicate request_size=4 [08:10:30]MH_SAM_APDU [08:10:30]CAPDU: 80 13 01 00 [08:10:30]Write to MH i2c: E2 08 00 3C 04 80 13 01 00 00 00 00 00 BD [08:10:30]Write i2c OK [08:10:30]MH_I2C_Read... [08:10:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:30]Read from MH i2c: E2 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 0E 00 [08:10:30]MH_I2C_Read... [08:10:30]Read from MH i2c: E2 0E 00 3C 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B7 [08:10:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:10:30]wFMCommunicate OK [08:10:30]SAM_PROTO_GetShiftState done [08:10:30]FM_GetShiftState done [08:10:30]req_shift_opened done [08:10:30]requested_item shift.open_date is exist - process it [08:10:30]req_shift_open_date [08:10:30]req_shift_open_date done [08:10:30]produce_requested_data done [08:10:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162412,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:10:30]process_action_free close_receipt [08:10:30]json_value_free [08:10:30]json_value_free done [08:10:30]process_json_proto returns [08:10:30]Send response to host [08:10:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162412,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:10:30]free response buf [08:10:30]execute_script done [08:10:30]execute_script returns [08:10:30]free content buf [08:10:30]Sock 9.Close socket [08:10:30]Sock 9.Thread stoped [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:13]accept exits with 8 [08:11:13]New connection [08:11:13]New thread 3066862948 created [08:11:13]Thread 3067006308 joined [08:11:13]Waiting for new connection... [08:11:13] Sock 8.Parse request [08:11:13]Sock 8.Check first char [08:11:13]Sock 8.First char is OK [08:11:13]request: POST /json_proto HTTP/1.0 [08:11:13]Method: POST [08:11:13]URL: /json_proto [08:11:13]Method is POST - this is cgi request [08:11:13]url: /json_proto [08:11:13]query_string will be loaded in cgi processing [08:11:13]execute_cgi json_proto POST (null) [08:11:13]execute_cgi path=json_proto method=POST [08:11:13]POST find Content-Length [08:11:13]Host: 172.17.39.67:8080 [08:11:13]Content-Length: 676 [08:11:13]Content-Type: application/json [08:11:13] [08:11:13]POST finish read [08:11:13]Found Content-Length = 676 [08:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:13]execute_script... [08:11: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)1318939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:13]POST & json_proto [08:11:13]process_json_proto [08:11:13]json parsed OK: [08:11:13]protocol is kg_v1.0 [08:11:13]action value=close_receipt [08:11:13]process_action close_receipt [08:11:13]cmd_close_receipt [08:11:13]MH_GetDate [08:11:13]Write to MH i2c: F0 00 00 3D 04 30 [08:11:13]Write i2c OK [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: F0 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: F0 09 00 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: F0 09 00 3D 04 00 AF 36 92 66 FA E9 8E 66 ED [08:11:13]GetLastDocTimeStamp 1720858240 [08:11:13]current date 1720858287 [08:11:13]FM_GetShiftState [08:11:13]SAM_PROTO_GetShiftState [08:11:13]wFMCommunicate request_size=4 [08:11:13]MH_SAM_APDU [08:11:13]CAPDU: 80 13 01 00 [08:11:13]Write to MH i2c: E2 08 00 3E 04 80 13 01 00 00 00 00 00 BF [08:11:13]Write i2c OK [08:11:13]MH_I2C_Read... [08:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:13]Read from MH i2c: E2 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 0E 00 [08:11:13]MH_I2C_Read... [08:11:13]Read from MH i2c: E2 0E 00 3E 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B9 [08:11:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:11:13]wFMCommunicate OK [08:11:13]SAM_PROTO_GetShiftState done [08:11:13]FM_GetShiftState done [08:11:13]opened in 1720828979 [08:11:13]opened+sec_in_day 1720915379 [08:11:13]quantity*price = 100007 [08:11:13]sum+1 = 100009 [08:11:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 81 13.07.2024 08:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162413 ФПД: 115495602627820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081127&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162413&fm=115495602627820&tin=02508201610067®Number=0000000000090858&sum=100000 [08:11:14]StoreToDocumentArchive [08:11:14]shift 462 fd 162413 [08:11:14]save to /storage/0462/doc_00162413 [08:11:14]save last doc name /storage/0462/doc_00162413 to /storage/kkm_last_doc_name [08:11:14]save OK [08:11:14]Clear old archive folders... [08:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:11:14]tlvbuf is 0171FB70 [08:11:14]SAM_PROTO_ClearQueue [08:11:14]wFMCommunicate request_size=4 [08:11:14]MH_SAM_APDU [08:11:14]CAPDU: 80 09 00 00 [08:11:14]Write to MH i2c: E2 08 00 4B 04 80 09 00 00 00 00 00 00 C1 [08:11:14]Write i2c OK [08:11:14]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 4B 04 00 90 00 C3 [08:11:15]RAPDU: 90 00 [08:11:15]wFMCommunicate OK [08:11:15]SAM_PROTO_ClearQueue done [08:11:15]KKMCreateOFDPacket [08:11:15]OFDProtocolAddRootSTLVToBuf [08:11:15]FM_MakeSignedData [08:11:15]FM_MakeSignedData [08:11:15]SAM_PROTO_SignData [08:11:15]wFMCommunicate request_size=4 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 0D 01 02 [08:11:15]Write to MH i2c: E2 08 00 4C 04 80 0D 01 02 00 00 00 00 C9 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [08:11:15]RAPDU: 90 00 [08:11:15]wFMCommunicate OK [08:11:15]wFMCommunicate request_size=255 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AF 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7A 02 00 35 04 06 00 [08:11:15]Write to MH i2c: E2 02 01 4D 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AF 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7A 02 00 35 04 06 00 00 00 39 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]OFD Sender: No OFD packet to send [08:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [08:11:15]RAPDU: 90 00 [08:11:15]wFMCommunicate OK [08:11:15]wFMCommunicate request_size=11 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 0D 02 02 06 69 0A EA 5E 24 EC [08:11:15]Write to MH i2c: E2 0E 00 4E 04 80 0D 02 02 06 00 69 0A EA 5E 24 EC 00 00 A3 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [08:11:15]RAPDU: 90 00 [08:11:15]wFMCommunicate OK [08:11:15]wFMCommunicate request_size=4 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 0D 03 02 [08:11:15]Write to MH i2c: E2 08 00 4F 04 80 0D 03 02 00 00 00 00 CE [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 0B 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 0B 00 4F 04 00 1F D4 69 0B 04 38 D1 8F 90 00 D2 [08:11:15]RAPDU: 1F D4 69 0B 04 38 D1 8F 90 00 [08:11:15]wFMCommunicate OK [08:11:15]SAM_PROTO_SignData done [08:11:15]FM_MakeSignedData done [08:11:15]CreateOFDProtocolMessage [08:11:15]wFMCommunicate request_size=4 [08:11:15]MH_SAM_APDU [08:11:15]CAPDU: 80 11 00 00 [08:11:15]Write to MH i2c: E2 08 00 50 04 80 11 00 00 00 00 00 00 CE [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:15]Read from MH i2c: E2 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 17 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: E2 17 00 50 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2E [08:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:11:15]wFMCommunicate OK [08:11:15]CreateOFDProtocolMessage done [08:11:15]OFDSenderStorePacket 162413 [08:11:15]StoreOFDPacket docnum=162413 [08:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FB BD 08 01 96 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AF 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7A 02 00 35 04 06 00 69 0A EA 5E 24 EC 1F D4 69 0B 04 38 D1 8F [08:11:15]CheckFolder [08:11:15]dirname=/storage/ofd_packets [08:11:15]CheckFolder done [08:11:15]ProducePacketName [08:11:15]name=ofd_packets/00162413 [08:11:15]NVStorageSaveData ofd_packets/00162413 [08:11:15]File name is /storage/ofd_packets/00162413 [08:11:15]Write 302 bytes [08:11:15]NVStorageSaveData done [08:11:15]OFDSenderStorePacket done [08:11:15]KKMCreateOFDPacket done [08:11:15]NVStorageSaveData kkm_last_timestamp [08:11:15]File name is /storage/kkm_last_timestamp [08:11:15]Write 4 bytes [08:11:15]NVStorageSaveData done [08:11:15]ExternCall_PrintAddStr [08:11:15]wPrintStart [08:11:15]Write to MH i2c: 01 00 00 51 04 55 [08:11:15]Write i2c OK [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 07 00 [08:11:15]MH_I2C_Read... [08:11:15]Read from MH i2c: 01 07 00 51 04 00 00 00 00 00 FF 0F 6A [08:11:15]RasterBufferAndPrint [08:11:15]line Счет N : (1)1318939 [08:11:15]line ИНН: 02508201610067 [08:11:15]line Контрольно-Кассовый Чек [08:11:15]line ПРОДАЖА [08:11:15]line ТРК (МРК, ГНК) : 52 [08:11:15]line Товар: 2710124130 [08:11:15]line Super-92-К-5 [08:11:15]line 14.860 * 67.30 [08:11:15]line = 1000.08 [08:11:15]line НДС 12% НСП 1% [08:11:15]line > о реализуемом товаре [08:11:15]line ОКРУГЛЕНИЕ: -0.08 [08:11:15]line ИТОГО: 1000.00 [08:11:15]line Внесено: 1000.00 [08:11:15]line СДАЧА: 0.00 [08:11:15]line НСП 1% : 8.85 [08:11:15]line НДС 12% : 106.20 [08:11:15]line Наличными: 1000.00 [08:11:15]line Безнал.: 0.00 [08:11:15]line Место: АЗС № 140 "Партнер Нефть" [08:11:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:11:15]line СНО: Общий режим [08:11:15]line Чек 81 13.07.2024 08:11 [08:11:15]line Смена: 462 ФФД: 1.0 [08:11:15]line ЗНМ: 0300000129 [08:11:15]line РНМ: 0000000000090858 [08:11:15]line Версия ККМ: 001 [08:11:15]line ФМ: 0000000000874899 [08:11:15]line ФД: 162413 [08:11:15]line ФПД: 115495602627820 [08:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081127&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162413&fm=115495602627820&tin=02508201610067®Number=0000000000090858&sum=100000 [08:11:15]OFD Sender: Processing packet 162413 [packets to send 105, broken 104] [08:11:15]ProducePacketName [08:11:15]name=ofd_packets/00162413 [08:11:15]OFD Sender: To server: pG, [08:11:15]CommunicateWithHost lk.salyk.kg:30040 [08:11:15]ConnectInit lk.salyk.kg [08:11:15]written 0, free lines is 4095 [08:11:15]Connected sock=10 [08:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FB BD 08 01 96 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 AF 36 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7A 02 00 35 04 06 00 69 0A EA 5E 24 EC 1F D4 69 0B 04 38 D1 8F [08:11:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D9 5E 47 00 98 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7A 02 00 F4 03 04 00 C4 E2 91 66 B6 04 01 00 00 BE 3E 81 D9 50 DE B2 55 [08:11:16]CommunicateWithHost err = 0 [08:11:16]CheckOFDResponse [08:11:16]1017 (14) - 77093643461234 [08:11:16]1041 (16) - 0000000000874899 [08:11:16]1040 (4) - 162413 [08:11:16]1012 (4) - 13.07.2024 02:13 [08:11:16]1206 (1) - 0 [08:11:16]OFD Sender: Remove packet 162413 [08:11:16]ProducePacketName [08:11:16]name=ofd_packets/00162413 [08:11:16]NVStorageDeleteData [08:11:16]Write to MH i2c: 01 00 00 7C 04 80 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 07 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FE 0C 91 [08:11:16]RasterBufferAndPrint [08:11:16]line [08:11:16]line [08:11:16]line [08:11:16]line [08:11:16]line [08:11:16]written 0, free lines is 3333 [08:11:16]MH_Cut [08:11:16]Write to MH i2c: D1 01 00 83 04 01 59 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: D1 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: D1 01 00 [08:11:16]MH_I2C_Read... [08:11:16]Read from MH i2c: D1 01 00 83 04 00 58 [08:11:16]Write to MH i2c: 01 00 00 84 04 88 [08:11:16]Write i2c OK [08:11:16]MH_I2C_Read... [08:11:16]OFD Sender: No OFD packet to send [08:11:17]*** Cut start [08:11:17]*** Purtial cut [08:11:17]*** CUTSNS_PIN = 0 [08:11:17]*** Stage 1: CUTSNS_PIN = 1 [08:11:19]Read from MH i2c: 01 [08:11:19]MH_I2C_Read... [08:11:19]*** Stop cut motor [08:11:19]*** Cut end [08:11:19]Read from MH i2c: 01 07 00 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 FF 0F 9D [08:11:19]process_action close_receipt done [08:11:19]requested_data is exist [08:11:19]produce_requested_data [08:11:19]requested_item fm.sn is exist - process it [08:11:19]wFMCommunicate request_size=4 [08:11:19]MH_SAM_APDU [08:11:19]CAPDU: 80 11 00 00 [08:11:19]Write to MH i2c: E2 08 00 85 04 80 11 00 00 00 00 00 00 03 [08:11:19]Write i2c OK [08:11:19]MH_I2C_Read... [08:11:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:11:19]Read from MH i2c: E2 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 17 00 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 17 00 85 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 63 [08:11:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:11:19]wFMCommunicate OK [08:11:19]requested_item fd.num is exist - process it [08:11:19]SAM_PROTO_GetFieldsCounters [08:11:19]wFMCommunicate request_size=4 [08:11:19]MH_SAM_APDU [08:11:19]CAPDU: 80 13 00 00 [08:11:19]Write to MH i2c: E2 08 00 86 04 80 13 00 00 00 00 00 00 06 [08:11:19]Write i2c OK [08:11:19]MH_I2C_Read... [08:11:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:11:19]Read from MH i2c: E2 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 62 00 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 62 00 86 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [08: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:11:19]wFMCommunicate OK [08:11:19]SAM_PROTO_GetFieldsCounters done [08:11:19]requested_item shift.num is exist - process it [08:11:19]requested_item shift.opened is exist - process it [08:11:19]req_shift_opened [08:11:19]FM_GetShiftState [08:11:19]SAM_PROTO_GetShiftState [08:11:19]wFMCommunicate request_size=4 [08:11:19]MH_SAM_APDU [08:11:19]CAPDU: 80 13 01 00 [08:11:19]Write to MH i2c: E2 08 00 87 04 80 13 01 00 00 00 00 00 08 [08:11:19]Write i2c OK [08:11:19]MH_I2C_Read... [08:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:11:19]Read from MH i2c: E2 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 0E 00 [08:11:19]MH_I2C_Read... [08:11:19]Read from MH i2c: E2 0E 00 87 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 02 [08:11:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:11:19]wFMCommunicate OK [08:11:19]SAM_PROTO_GetShiftState done [08:11:19]FM_GetShiftState done [08:11:19]req_shift_opened done [08:11:19]requested_item shift.open_date is exist - process it [08:11:19]req_shift_open_date [08:11:19]req_shift_open_date done [08:11:19]produce_requested_data done [08:11:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162413,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:11:19]process_action_free close_receipt [08:11:19]json_value_free [08:11:19]json_value_free done [08:11:19]process_json_proto returns [08:11:19]Send response to host [08:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162413,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:11:19]free response buf [08:11:19]execute_script done [08:11:19]execute_script returns [08:11:19]free content buf [08:11:19]Sock 8.Close socket [08:11:19]Sock 8.Thread stoped [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:29]accept exits with 9 [08:14:29]New connection [08:14:29]New thread 3067006308 created [08:14:29]Thread 3066862948 joined [08:14:29]Waiting for new connection... [08:14:29] Sock 9.Parse request [08:14:29]Sock 9.Check first char [08:14:29]Sock 9.First char is OK [08:14:29]request: POST /json_proto HTTP/1.0 [08:14:29]Method: POST [08:14:29]URL: /json_proto [08:14:29]Method is POST - this is cgi request [08:14:29]url: /json_proto [08:14:29]query_string will be loaded in cgi processing [08:14:29]execute_cgi json_proto POST (null) [08:14:29]execute_cgi path=json_proto method=POST [08:14:29]POST find Content-Length [08:14:29]Host: 172.17.39.67:8080 [08:14:29]Content-Length: 842 [08:14:29]Content-Type: application/json [08:14:29] [08:14:29]POST finish read [08:14:29]Found Content-Length = 842 [08:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.080, "sum" : 999.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 999.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:29]execute_script... [08:14: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)1318940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.080, "sum" : 999.80, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 999.80 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:14:29]POST & json_proto [08:14:29]process_json_proto [08:14:29]json parsed OK: [08:14:29]protocol is kg_v1.0 [08:14:29]action value=close_receipt [08:14:29]process_action close_receipt [08:14:29]cmd_close_receipt [08:14:29]MH_GetDate [08:14:29]Write to MH i2c: F0 00 00 88 04 7B [08:14:29]Write i2c OK [08:14:29]MH_I2C_Read... [08:14:29]Read from MH i2c: F0 [08:14:29]MH_I2C_Read... [08:14:29]Read from MH i2c: F0 09 00 [08:14:29]MH_I2C_Read... [08:14:29]Read from MH i2c: F0 09 00 88 04 00 72 37 92 66 FA E9 8E 66 FC [08:14:29]GetLastDocTimeStamp 1720858287 [08:14:29]current date 1720858482 [08:14:29]FM_GetShiftState [08:14:29]SAM_PROTO_GetShiftState [08:14:29]wFMCommunicate request_size=4 [08:14:29]MH_SAM_APDU [08:14:29]CAPDU: 80 13 01 00 [08:14:29]Write to MH i2c: E2 08 00 89 04 80 13 01 00 00 00 00 00 0A [08:14:29]Write i2c OK [08:14:29]MH_I2C_Read... [08:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:29]Read from MH i2c: E2 [08:14:29]MH_I2C_Read... [08:14:29]Read from MH i2c: E2 0E 00 [08:14:29]MH_I2C_Read... [08:14:29]Read from MH i2c: E2 0E 00 89 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 04 [08:14:29]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:14:29]wFMCommunicate OK [08:14:29]SAM_PROTO_GetShiftState done [08:14:29]FM_GetShiftState done [08:14:29]opened in 1720828979 [08:14:29]opened+sec_in_day 1720915379 [08:14:29]quantity*price = 99980 [08:14:29]sum+1 = 99981 [08:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.80 НСП 1% : 8.85 НДС 12% : 106.17 Наличными: 0.00 Безнал.: 999.80 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 82 13.07.2024 08:14 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162414 ФПД: 274515529223435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162414&fm=274515529223435&tin=02508201610067®Number=0000000000090858&sum=99980 [08:14:30]StoreToDocumentArchive [08:14:30]shift 462 fd 162414 [08:14:30]save to /storage/0462/doc_00162414 [08:14:30]save last doc name /storage/0462/doc_00162414 to /storage/kkm_last_doc_name [08:14:30]save OK [08:14:30]Clear old archive folders... [08:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:14:30]tlvbuf is 01C8B9E0 [08:14:30]SAM_PROTO_ClearQueue [08:14:30]wFMCommunicate request_size=4 [08:14:30]MH_SAM_APDU [08:14:30]CAPDU: 80 09 00 00 [08:14:30]Write to MH i2c: E2 08 00 96 04 80 09 00 00 00 00 00 00 0C [08:14:30]Write i2c OK [08:14:30]MH_I2C_Read... [08:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:14:30]Read from MH i2c: E2 [08:14:30]MH_I2C_Read... [08:14:30]Read from MH i2c: E2 03 00 [08:14:30]MH_I2C_Read... [08:14:30]Read from MH i2c: E2 03 00 96 04 00 90 00 0E [08:14:30]RAPDU: 90 00 [08:14:30]wFMCommunicate OK [08:14:30]SAM_PROTO_ClearQueue done [08:14:30]KKMCreateOFDPacket [08:14:30]OFDProtocolAddRootSTLVToBuf [08:14:30]FM_MakeSignedData [08:14:30]FM_MakeSignedData [08:14:30]SAM_PROTO_SignData [08:14:30]wFMCommunicate request_size=4 [08:14:30]MH_SAM_APDU [08:14:30]CAPDU: 80 0D 01 02 [08:14:30]Write to MH i2c: E2 08 00 97 04 80 0D 01 02 00 00 00 00 14 [08:14:30]Write i2c OK [08:14:30]MH_I2C_Read... [08:14:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:14:30]Read from MH i2c: E2 [08:14:30]MH_I2C_Read... [08:14:30]Read from MH i2c: E2 03 00 [08:14:30]MH_I2C_Read... [08:14:30]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [08:14:30]RAPDU: 90 00 [08:14:30]wFMCommunicate OK [08:14:30]wFMCommunicate request_size=255 [08:14:30]MH_SAM_APDU [08:14:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 72 37 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7A 02 00 35 04 06 00 F9 [08:14:30]Write to MH i2c: E2 02 01 98 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 72 37 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7A 02 00 35 04 06 00 F9 00 00 49 [08:14:30]Write i2c OK [08:14:30]MH_I2C_Read... [08:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:31]Read from MH i2c: E2 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 03 00 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [08:14:31]RAPDU: 90 00 [08:14:31]wFMCommunicate OK [08:14:31]wFMCommunicate request_size=10 [08:14:31]MH_SAM_APDU [08:14:31]CAPDU: 80 0D 02 02 05 AB A0 9A CD 0B [08:14:31]Write to MH i2c: E2 0D 00 99 04 80 0D 02 02 05 00 AB A0 9A CD 0B 00 00 DE [08:14:31]Write i2c OK [08:14:31]MH_I2C_Read... [08:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:14:31]Read from MH i2c: E2 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 03 00 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [08:14:31]RAPDU: 90 00 [08:14:31]wFMCommunicate OK [08:14:31]wFMCommunicate request_size=4 [08:14:31]MH_SAM_APDU [08:14:31]CAPDU: 80 0D 03 02 [08:14:31]Write to MH i2c: E2 08 00 9A 04 80 0D 03 02 00 00 00 00 19 [08:14:31]Write i2c OK [08:14:31]MH_I2C_Read... [08:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:14:31]Read from MH i2c: E2 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 0B 00 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 0B 00 9A 04 00 3A B8 C6 56 D5 71 E4 32 90 00 84 [08:14:31]RAPDU: 3A B8 C6 56 D5 71 E4 32 90 00 [08:14:31]wFMCommunicate OK [08:14:31]SAM_PROTO_SignData done [08:14:31]FM_MakeSignedData done [08:14:31]CreateOFDProtocolMessage [08:14:31]wFMCommunicate request_size=4 [08:14:31]MH_SAM_APDU [08:14:31]CAPDU: 80 11 00 00 [08:14:31]Write to MH i2c: E2 08 00 9B 04 80 11 00 00 00 00 00 00 19 [08:14:31]Write i2c OK [08:14:31]MH_I2C_Read... [08:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:31]Read from MH i2c: E2 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 17 00 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: E2 17 00 9B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 79 [08:14:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:14:31]wFMCommunicate OK [08:14:31]CreateOFDProtocolMessage done [08:14:31]OFDSenderStorePacket 162414 [08:14:31]StoreOFDPacket docnum=162414 [08:14:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D7 8B 07 01 38 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 72 37 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7A 02 00 35 04 06 00 F9 AB A0 9A CD 0B 3A B8 C6 56 D5 71 E4 32 [08:14:31]CheckFolder [08:14:31]dirname=/storage/ofd_packets [08:14:31]CheckFolder done [08:14:31]ProducePacketName [08:14:31]name=ofd_packets/00162414 [08:14:31]NVStorageSaveData ofd_packets/00162414 [08:14:31]File name is /storage/ofd_packets/00162414 [08:14:31]Write 301 bytes [08:14:31]NVStorageSaveData done [08:14:31]OFDSenderStorePacket done [08:14:31]KKMCreateOFDPacket done [08:14:31]NVStorageSaveData kkm_last_timestamp [08:14:31]File name is /storage/kkm_last_timestamp [08:14:31]Write 4 bytes [08:14:31]NVStorageSaveData done [08:14:31]ExternCall_PrintAddStr [08:14:31]wPrintStart [08:14:31]Write to MH i2c: 01 00 00 9C 04 A0 [08:14:31]Write i2c OK [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: 01 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: 01 07 00 [08:14:31]MH_I2C_Read... [08:14:31]Read from MH i2c: 01 07 00 9C 04 00 00 00 00 00 FF 0F B5 [08:14:31]RasterBufferAndPrint [08:14:31]line Счет N : (1)1318940 [08:14:31]line ИНН: 02508201610067 [08:14:31]line Контрольно-Кассовый Чек [08:14:31]line ПРОДАЖА [08:14:31]line ТРК (МРК, ГНК) : 43 [08:14:31]line Товар: 2710124130 [08:14:31]line Аи-92-К-5 [08:14:31]line 15.080 * 66.30 [08:14:31]line = 999.80 [08:14:31]line НДС 12% НСП 1% [08:14:31]line > о реализуемом товаре [08:14:31]line ИТОГО: 999.80 [08:14:31]line НСП 1% : 8.85 [08:14:31]line НДС 12% : 106.17 [08:14:31]line Наличными: 0.00 [08:14:31]line Безнал.: 999.80 [08:14:31]line Место: АЗС № 140 "Партнер Нефть" [08:14:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:14:31]line СНО: Общий режим [08:14:31]line Чек 82 13.07.2024 08:14 [08:14:31]line Смена: 462 ФФД: 1.0 [08:14:31]line ЗНМ: 0300000129 [08:14:31]line РНМ: 0000000000090858 [08:14:31]line Версия ККМ: 001 [08:14:31]line Платежная система: АКБ Кыргызстан [08:14:31]line ФМ: 0000000000874899 [08:14:31]line ФД: 162414 [08:14:31]line ФПД: 274515529223435 [08:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T081442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162414&fm=274515529223435&tin=02508201610067®Number=0000000000090858&sum=99980 [08:14:31]written 0, free lines is 4095 [08:14:31]OFD Sender: Processing packet 162414 [packets to send 105, broken 104] [08:14:31]ProducePacketName [08:14:31]name=ofd_packets/00162414 [08:14:31]OFD Sender: To server: pG, [08:14:31]CommunicateWithHost lk.salyk.kg:30040 [08:14:31]ConnectInit lk.salyk.kg [08:14:31]Connected sock=10 [08:14:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D7 8B 07 01 38 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8C 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 72 37 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7A 02 00 35 04 06 00 F9 AB A0 9A CD 0B 3A B8 C6 56 D5 71 E4 32 [08:14:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 46 1C 47 00 44 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7A 02 00 F4 03 04 00 87 E3 91 66 B6 04 01 00 00 0C 2D 01 63 8A 60 FE 74 [08:14:31]CommunicateWithHost err = 0 [08:14:31]CheckOFDResponse [08:14:31]1017 (14) - 77093643461234 [08:14:31]1041 (16) - 0000000000874899 [08:14:31]1040 (4) - 162414 [08:14:31]1012 (4) - 13.07.2024 02:16 [08:14:31]1206 (1) - 0 [08:14:31]OFD Sender: Remove packet 162414 [08:14:31]ProducePacketName [08:14:31]name=ofd_packets/00162414 [08:14:31]NVStorageDeleteData [08:14:32]Write to MH i2c: 01 00 00 C6 04 CA [08:14:32]Write i2c OK [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: 01 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: 01 07 00 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 0E 0D EC [08:14:32]RasterBufferAndPrint [08:14:32]line [08:14:32]line [08:14:32]line [08:14:32]line [08:14:32]line [08:14:32]written 0, free lines is 3352 [08:14:32]MH_Cut [08:14:32]Write to MH i2c: D1 01 00 CD 04 01 A3 [08:14:32]Write i2c OK [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: D1 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: D1 01 00 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: D1 01 00 CD 04 00 A2 [08:14:32]Write to MH i2c: 01 00 00 CE 04 D2 [08:14:32]Write i2c OK [08:14:32]MH_I2C_Read... [08:14:32]OFD Sender: No OFD packet to send [08:14:32]*** Cut start [08:14:32]*** Purtial cut [08:14:32]*** Stage 1: CUTSNS_PIN = 1 [08:14:32]Read from MH i2c: 01 [08:14:32]MH_I2C_Read... [08:14:32]*** Stop cut motor [08:14:32]*** Cut end [08:14:32]Read from MH i2c: 01 07 00 [08:14:32]MH_I2C_Read... [08:14:32]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 FF 0F E7 [08:14:32]process_action close_receipt done [08:14:32]requested_data is exist [08:14:32]produce_requested_data [08:14:32]requested_item fm.sn is exist - process it [08:14:32]wFMCommunicate request_size=4 [08:14:32]MH_SAM_APDU [08:14:32]CAPDU: 80 11 00 00 [08:14:32]Write to MH i2c: E2 08 00 CF 04 80 11 00 00 00 00 00 00 4D [08:14:32]Write i2c OK [08:14:32]MH_I2C_Read... [08:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:14:33]Read from MH i2c: E2 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 17 00 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 17 00 CF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AD [08:14:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:14:33]wFMCommunicate OK [08:14:33]requested_item fd.num is exist - process it [08:14:33]SAM_PROTO_GetFieldsCounters [08:14:33]wFMCommunicate request_size=4 [08:14:33]MH_SAM_APDU [08:14:33]CAPDU: 80 13 00 00 [08:14:33]Write to MH i2c: E2 08 00 D0 04 80 13 00 00 00 00 00 00 50 [08:14:33]Write i2c OK [08:14:33]MH_I2C_Read... [08:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:14:33]Read from MH i2c: E2 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 62 00 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 62 00 D0 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [08:14:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:14:33]wFMCommunicate OK [08:14:33]SAM_PROTO_GetFieldsCounters done [08:14:33]requested_item shift.num is exist - process it [08:14:33]requested_item shift.opened is exist - process it [08:14:33]req_shift_opened [08:14:33]FM_GetShiftState [08:14:33]SAM_PROTO_GetShiftState [08:14:33]wFMCommunicate request_size=4 [08:14:33]MH_SAM_APDU [08:14:33]CAPDU: 80 13 01 00 [08:14:33]Write to MH i2c: E2 08 00 D1 04 80 13 01 00 00 00 00 00 52 [08:14:33]Write i2c OK [08:14:33]MH_I2C_Read... [08:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:14:33]Read from MH i2c: E2 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 0E 00 [08:14:33]MH_I2C_Read... [08:14:33]Read from MH i2c: E2 0E 00 D1 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4C [08:14:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:14:33]wFMCommunicate OK [08:14:33]SAM_PROTO_GetShiftState done [08:14:33]FM_GetShiftState done [08:14:33]req_shift_opened done [08:14:33]requested_item shift.open_date is exist - process it [08:14:33]req_shift_open_date [08:14:33]req_shift_open_date done [08:14:33]produce_requested_data done [08:14:33]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162414,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:14:33]process_action_free close_receipt [08:14:33]json_value_free [08:14:33]json_value_free done [08:14:33]process_json_proto returns [08:14:33]Send response to host [08:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162414,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:14:33]free response buf [08:14:33]execute_script done [08:14:33]execute_script returns [08:14:33]free content buf [08:14:33]Sock 9.Close socket [08:14:33]Sock 9.Thread stoped [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:52]OFD Sender: No OFD packet to send [08:16:57]OFD Sender: No OFD packet to send [08:17:02]OFD Sender: No OFD packet to send [08:17:07]OFD Sender: No OFD packet to send [08:17:12]OFD Sender: No OFD packet to send [08:17:17]OFD Sender: No OFD packet to send [08:17:22]OFD Sender: No OFD packet to send [08:17:27]OFD Sender: No OFD packet to send [08:17:32]OFD Sender: No OFD packet to send [08:17:37]OFD Sender: No OFD packet to send [08:17:42]OFD Sender: No OFD packet to send [08:17:47]OFD Sender: No OFD packet to send [08:17:52]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]accept exits with 8 [08:18:27]New connection [08:18:27]New thread 3066862948 created [08:18:27]Thread 3067006308 joined [08:18:27]Waiting for new connection... [08:18:27] Sock 8.Parse request [08:18:27]Sock 8.Check first char [08:18:27]Sock 8.First char is OK [08:18:27]request: POST /json_proto HTTP/1.0 [08:18:27]Method: POST [08:18:27]URL: /json_proto [08:18:27]Method is POST - this is cgi request [08:18:27]url: /json_proto [08:18:27]query_string will be loaded in cgi processing [08:18:27]execute_cgi json_proto POST (null) [08:18:27]execute_cgi path=json_proto method=POST [08:18:27]POST find Content-Length [08:18:27]Host: 172.17.39.67:8080 [08:18:27]Content-Length: 1218 [08:18:27]Content-Type: application/json [08:18:27] [08:18:27]POST finish read [08:18:27]Found Content-Length = 1218 [08:18:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318941\u000A13.07.2024 08:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:27]execute_script... [08:18:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318941\u000A13.07.2024 08:16\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:18:27]POST & json_proto [08:18:27]process_json_proto [08:18:27]json parsed OK: [08:18:27]protocol is kg_v1.0 [08:18:27]action value=print_text [08:18:27]process_action print_text [08:18:27]cmd_print_text [08:18:27]ExternCall_PrintAddStr [08:18:27]wPrintStart [08:18:27]Write to MH i2c: 01 00 00 D2 04 D6 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 07 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 07 00 D2 04 00 00 00 00 00 FF 0F EB [08:18:27]RasterBufferAndPrint [08:18:27]line *****ТОВАРНЫЙ ЧЕК***** [08:18:27]line АЗС 140 [08:18:27]line Партнер нефть [08:18:27]line 02508201610067 [08:18:27]line Кассир : Шамбеталиев А. [08:18:27]line Счет N : (1)1318941 [08:18:27]line 13.07.2024 08:16 [08:18:27]line ПРОДАЖА [08:18:27]line ТРК (МРК, ГНК): 11 [08:18:27]line Вид ГСМ : 2710194210 [08:18:27]line ДТ(л)-К-5 [08:18:27]line 40.000 x 72.60 [08:18:27]line ИТОГ: 2904.00 [08:18:27]line Тип оплаты: Талоны: Топливная Карта [08:18:27]line 74684 [08:18:27]line ______________________ [08:18:27]line (подпись) [08:18:27]written 0, free lines is 4095 [08:18:27]Write to MH i2c: 01 00 00 E7 04 EB [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 07 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: 01 07 00 E7 04 00 00 00 00 00 F5 0D F4 [08:18:27]RasterBufferAndPrint [08:18:27]line [08:18:27]line [08:18:27]line [08:18:27]line [08:18:27]line [08:18:27]written 0, free lines is 3574 [08:18:27]MH_Cut [08:18:27]Write to MH i2c: D1 01 00 EE 04 01 C4 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: D1 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: D1 01 00 [08:18:27]MH_I2C_Read... [08:18:27]Read from MH i2c: D1 01 00 EE 04 00 C3 [08:18:27]Write to MH i2c: 01 00 00 EF 04 F3 [08:18:27]Write i2c OK [08:18:27]MH_I2C_Read... [08:18:27]OFD Sender: No OFD packet to send [08:18:27]*** Cut start [08:18:27]*** Purtial cut [08:18:27]*** CUTSNS_PIN = 0 [08:18:28]*** Stage 1: CUTSNS_PIN = 1 [08:18:29]Read from MH i2c: 01 [08:18:29]MH_I2C_Read... [08:18:29]*** Stop cut motor [08:18:29]*** Cut end [08:18:29]Read from MH i2c: 01 07 00 [08:18:29]MH_I2C_Read... [08:18:29]Read from MH i2c: 01 07 00 EF 04 00 00 00 00 00 FF 0F 08 [08:18:29]process_action print_text done [08:18:29]requested_data is exist [08:18:29]produce_requested_data [08:18:29]requested_item fm.sn is exist - process it [08:18:29]wFMCommunicate request_size=4 [08:18:29]MH_SAM_APDU [08:18:29]CAPDU: 80 11 00 00 [08:18:29]Write to MH i2c: E2 08 00 F0 04 80 11 00 00 00 00 00 00 6E [08:18:29]Write i2c OK [08:18:29]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 17 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 17 00 F0 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [08:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:18:30]wFMCommunicate OK [08:18:30]requested_item fd.num is exist - process it [08:18:30]SAM_PROTO_GetFieldsCounters [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 13 00 00 [08:18:30]Write to MH i2c: E2 08 00 F1 04 80 13 00 00 00 00 00 00 71 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 62 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 62 00 F1 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [08:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:30]wFMCommunicate OK [08:18:30]SAM_PROTO_GetFieldsCounters done [08:18:30]requested_item shift.num is exist - process it [08:18:30]requested_item shift.opened is exist - process it [08:18:30]req_shift_opened [08:18:30]FM_GetShiftState [08:18:30]SAM_PROTO_GetShiftState [08:18:30]wFMCommunicate request_size=4 [08:18:30]MH_SAM_APDU [08:18:30]CAPDU: 80 13 01 00 [08:18:30]Write to MH i2c: E2 08 00 F2 04 80 13 01 00 00 00 00 00 73 [08:18:30]Write i2c OK [08:18:30]MH_I2C_Read... [08:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:30]Read from MH i2c: E2 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 0E 00 [08:18:30]MH_I2C_Read... [08:18:30]Read from MH i2c: E2 0E 00 F2 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6D [08:18:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:18:30]wFMCommunicate OK [08:18:30]SAM_PROTO_GetShiftState done [08:18:30]FM_GetShiftState done [08:18:30]req_shift_opened done [08:18:30]requested_item shift.open_date is exist - process it [08:18:30]req_shift_open_date [08:18:30]req_shift_open_date done [08:18:30]produce_requested_data done [08:18:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162414,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:18:30]process_action_free print_text [08:18:30]json_value_free [08:18:30]json_value_free done [08:18:30]process_json_proto returns [08:18:30]Send response to host [08:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162414,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:18:30]free response buf [08:18:30]execute_script done [08:18:30]execute_script returns [08:18:30]free content buf [08:18:30]Sock 8.Close socket [08:18:30]Sock 8.Thread stoped [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:13]accept exits with 9 [08:20:13]New connection [08:20:13]New thread 3067006308 created [08:20:13]Thread 3066862948 joined [08:20:13]Waiting for new connection... [08:20:13] Sock 9.Parse request [08:20:13]Sock 9.Check first char [08:20:13]Sock 9.First char is OK [08:20:13]request: POST /json_proto HTTP/1.0 [08:20:13]Method: POST [08:20:13]URL: /json_proto [08:20:13]Method is POST - this is cgi request [08:20:13]url: /json_proto [08:20:13]query_string will be loaded in cgi processing [08:20:13]execute_cgi json_proto POST (null) [08:20:13]execute_cgi path=json_proto method=POST [08:20:13]POST find Content-Length [08:20:13]Host: 172.17.39.67:8080 [08:20:13]Content-Length: 678 [08:20:13]Content-Type: application/json [08:20:13] [08:20:13]POST finish read [08:20:13]Found Content-Length = 678 [08:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.450, "sum" : 560.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:13]execute_script... [08: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)1318942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.450, "sum" : 560.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 560.00, "total" : 560.00, "payments": [ { "type": 0, "sum" : 560.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:13]POST & json_proto [08:20:13]process_json_proto [08:20:13]json parsed OK: [08:20:13]protocol is kg_v1.0 [08:20:13]action value=close_receipt [08:20:13]process_action close_receipt [08:20:13]cmd_close_receipt [08:20:13]MH_GetDate [08:20:13]Write to MH i2c: F0 00 00 F3 04 E6 [08:20:13]Write i2c OK [08:20:13]MH_I2C_Read... [08:20:13]Read from MH i2c: F0 [08:20:13]MH_I2C_Read... [08:20:13]Read from MH i2c: F0 09 00 [08:20:13]MH_I2C_Read... [08:20:13]Read from MH i2c: F0 09 00 F3 04 00 CB 38 92 66 FA E9 8E 66 C1 [08:20:13]GetLastDocTimeStamp 1720858482 [08:20:13]current date 1720858827 [08:20:13]FM_GetShiftState [08:20:13]SAM_PROTO_GetShiftState [08:20:13]wFMCommunicate request_size=4 [08:20:13]MH_SAM_APDU [08:20:13]CAPDU: 80 13 01 00 [08:20:13]Write to MH i2c: E2 08 00 F4 04 80 13 01 00 00 00 00 00 75 [08:20:13]Write i2c OK [08:20:13]MH_I2C_Read... [08:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:13]Read from MH i2c: E2 [08:20:13]MH_I2C_Read... [08:20:13]Read from MH i2c: E2 0E 00 [08:20:13]MH_I2C_Read... [08:20:13]Read from MH i2c: E2 0E 00 F4 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6F [08:20:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:20:13]wFMCommunicate OK [08:20:13]SAM_PROTO_GetShiftState done [08:20:13]FM_GetShiftState done [08:20:13]opened in 1720828979 [08:20:13]opened+sec_in_day 1720915379 [08:20:13]quantity*price = 56023 [08:20:13]sum+1 = 56025 [08:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 560.00 Внесено: 560.00 СДАЧА: 0.00 НСП 1% : 4.96 НДС 12% : 59.49 Наличными: 560.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 83 13.07.2024 08:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162415 ФПД: 21924289131360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082027&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162415&fm=21924289131360&tin=02508201610067®Number=0000000000090858&sum=56000 [08:20:15]StoreToDocumentArchive [08:20:15]shift 462 fd 162415 [08:20:15]save to /storage/0462/doc_00162415 [08:20:15]save last doc name /storage/0462/doc_00162415 to /storage/kkm_last_doc_name [08:20:15]save OK [08:20:15]Clear old archive folders... [08:20:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:15]tlvbuf is 01C44A40 [08:20:15]SAM_PROTO_ClearQueue [08:20:15]wFMCommunicate request_size=4 [08:20:15]MH_SAM_APDU [08:20:15]CAPDU: 80 09 00 00 [08:20:15]Write to MH i2c: E2 08 00 01 05 80 09 00 00 00 00 00 00 78 [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:15]Read from MH i2c: E2 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 03 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 03 00 01 05 00 90 00 7A [08:20:15]RAPDU: 90 00 [08:20:15]wFMCommunicate OK [08:20:15]SAM_PROTO_ClearQueue done [08:20:15]KKMCreateOFDPacket [08:20:15]OFDProtocolAddRootSTLVToBuf [08:20:15]FM_MakeSignedData [08:20:15]FM_MakeSignedData [08:20:15]SAM_PROTO_SignData [08:20:15]wFMCommunicate request_size=4 [08:20:15]MH_SAM_APDU [08:20:15]CAPDU: 80 0D 01 02 [08:20:15]Write to MH i2c: E2 08 00 02 05 80 0D 01 02 00 00 00 00 80 [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:15]Read from MH i2c: E2 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 03 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 03 00 02 05 00 90 00 7B [08:20:15]RAPDU: 90 00 [08:20:15]wFMCommunicate OK [08:20:15]wFMCommunicate request_size=255 [08:20:15]MH_SAM_APDU [08:20:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D8 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CB 38 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7A 02 00 35 04 06 00 13 [08:20:15]Write to MH i2c: E2 02 01 03 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D8 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CB 38 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7A 02 00 35 04 06 00 13 00 00 04 [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:15]Read from MH i2c: E2 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 03 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 03 00 03 05 00 90 00 7C [08:20:15]RAPDU: 90 00 [08:20:15]wFMCommunicate OK [08:20:15]wFMCommunicate request_size=10 [08:20:15]MH_SAM_APDU [08:20:15]CAPDU: 80 0D 02 02 05 F0 A5 77 33 60 [08:20:15]Write to MH i2c: E2 0D 00 04 05 80 0D 02 02 05 00 F0 A5 77 33 60 00 00 2C [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:15]Read from MH i2c: E2 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 03 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 03 00 04 05 00 90 00 7D [08:20:15]RAPDU: 90 00 [08:20:15]wFMCommunicate OK [08:20:15]wFMCommunicate request_size=4 [08:20:15]MH_SAM_APDU [08:20:15]CAPDU: 80 0D 03 02 [08:20:15]Write to MH i2c: E2 08 00 05 05 80 0D 03 02 00 00 00 00 85 [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:15]Read from MH i2c: E2 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 0B 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 0B 00 05 05 00 29 1A 7B 09 F7 A3 8D 92 90 00 06 [08:20:15]RAPDU: 29 1A 7B 09 F7 A3 8D 92 90 00 [08:20:15]wFMCommunicate OK [08:20:15]SAM_PROTO_SignData done [08:20:15]FM_MakeSignedData done [08:20:15]CreateOFDProtocolMessage [08:20:15]wFMCommunicate request_size=4 [08:20:15]MH_SAM_APDU [08:20:15]CAPDU: 80 11 00 00 [08:20:15]Write to MH i2c: E2 08 00 06 05 80 11 00 00 00 00 00 00 85 [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:15]Read from MH i2c: E2 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 17 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: E2 17 00 06 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E5 [08:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:20:15]wFMCommunicate OK [08:20:15]CreateOFDProtocolMessage done [08:20:15]OFDSenderStorePacket 162415 [08:20:15]StoreOFDPacket docnum=162415 [08:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 EC AB 07 01 6E 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D8 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CB 38 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7A 02 00 35 04 06 00 13 F0 A5 77 33 60 29 1A 7B 09 F7 A3 8D 92 [08:20:15]CheckFolder [08:20:15]dirname=/storage/ofd_packets [08:20:15]CheckFolder done [08:20:15]ProducePacketName [08:20:15]name=ofd_packets/00162415 [08:20:15]NVStorageSaveData ofd_packets/00162415 [08:20:15]File name is /storage/ofd_packets/00162415 [08:20:15]Write 301 bytes [08:20:15]NVStorageSaveData done [08:20:15]OFDSenderStorePacket done [08:20:15]KKMCreateOFDPacket done [08:20:15]NVStorageSaveData kkm_last_timestamp [08:20:15]File name is /storage/kkm_last_timestamp [08:20:15]Write 4 bytes [08:20:15]NVStorageSaveData done [08:20:15]ExternCall_PrintAddStr [08:20:15]wPrintStart [08:20:15]Write to MH i2c: 01 00 00 07 05 0C [08:20:15]Write i2c OK [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: 01 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: 01 07 00 [08:20:15]MH_I2C_Read... [08:20:15]Read from MH i2c: 01 07 00 07 05 00 00 00 00 00 FF 0F 21 [08:20:15]RasterBufferAndPrint [08:20:15]line Счет N : (1)1318942 [08:20:15]line ИНН: 02508201610067 [08:20:15]line Контрольно-Кассовый Чек [08:20:15]line ПРОДАЖА [08:20:15]line ТРК (МРК, ГНК) : 43 [08:20:15]line Товар: 2710124130 [08:20:15]line Аи-92-К-5 [08:20:15]line 8.450 * 66.30 [08:20:15]line = 560.24 [08:20:15]line НДС 12% НСП 1% [08:20:15]line > о реализуемом товаре [08:20:15]line ОКРУГЛЕНИЕ: -0.24 [08:20:15]line ИТОГО: 560.00 [08:20:15]line Внесено: 560.00 [08:20:15]line СДАЧА: 0.00 [08:20:15]line НСП 1% : 4.96 [08:20:15]line НДС 12% : 59.49 [08:20:15]line Наличными: 560.00 [08:20:15]line Безнал.: 0.00 [08:20:15]line Место: АЗС № 140 "Партнер Нефть" [08:20:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:20:15]line СНО: Общий режим [08:20:15]line Чек 83 13.07.2024 08:20 [08:20:15]line Смена: 462 ФФД: 1.0 [08:20:15]line ЗНМ: 0300000129 [08:20:15]line РНМ: 0000000000090858 [08:20:15]line Версия ККМ: 001 [08:20:15]line ФМ: 0000000000874899 [08:20:15]line ФД: 162415 [08:20:15]line ФПД: 21924289131360 [08:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082027&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162415&fm=21924289131360&tin=02508201610067®Number=0000000000090858&sum=56000 [08:20:15]OFD Sender: Processing packet 162415 [packets to send 105, broken 104] [08:20:15]ProducePacketName [08:20:15]name=ofd_packets/00162415 [08:20:15]OFD Sender: To server: pG, [08:20:15]CommunicateWithHost lk.salyk.kg:30040 [08:20:15]ConnectInit lk.salyk.kg [08:20:15]written 0, free lines is 4095 [08:20:16]Connected sock=10 [08:20:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 EC AB 07 01 6E 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 21 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D8 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 DA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 17 00 00 00 00 07 04 06 00 C0 DA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CB 38 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7A 02 00 35 04 06 00 13 F0 A5 77 33 60 29 1A 7B 09 F7 A3 8D 92 [08:20:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 03 44 47 00 39 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7A 02 00 F4 03 04 00 E0 E4 91 66 B6 04 01 00 00 6D 5A 33 F0 29 E7 EA EE [08:20:16]CommunicateWithHost err = 0 [08:20:16]CheckOFDResponse [08:20:16]1017 (14) - 77093643461234 [08:20:16]1041 (16) - 0000000000874899 [08:20:16]1040 (4) - 162415 [08:20:16]1012 (4) - 13.07.2024 02:22 [08:20:16]1206 (1) - 0 [08:20:16]OFD Sender: Remove packet 162415 [08:20:16]ProducePacketName [08:20:16]name=ofd_packets/00162415 [08:20:16]NVStorageDeleteData [08:20:16]Write to MH i2c: 01 00 00 32 05 37 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: 01 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: 01 07 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: 01 07 00 32 05 00 00 00 00 00 E2 0C 2C [08:20:16]RasterBufferAndPrint [08:20:16]line [08:20:16]line [08:20:16]line [08:20:16]line [08:20:16]line [08:20:16]written 0, free lines is 3307 [08:20:16]MH_Cut [08:20:16]Write to MH i2c: D1 01 00 39 05 01 10 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: D1 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: D1 01 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: D1 01 00 39 05 00 0F [08:20:16]Write to MH i2c: 01 00 00 3A 05 3F [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]OFD Sender: No OFD packet to send [08:20:17]*** Cut start [08:20:17]*** Purtial cut [08:20:17]*** Stage 1: CUTSNS_PIN = 1 [08:20:17]Read from MH i2c: 01 [08:20:17]MH_I2C_Read... [08:20:17]*** Stop cut motor [08:20:17]*** Cut end [08:20:17]Read from MH i2c: 01 07 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 07 00 3A 05 00 00 00 00 00 FF 0F 54 [08:20:17]process_action close_receipt done [08:20:17]requested_data is exist [08:20:17]produce_requested_data [08:20:17]requested_item fm.sn is exist - process it [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 11 00 00 [08:20:17]Write to MH i2c: E2 08 00 3B 05 80 11 00 00 00 00 00 00 BA [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 17 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 17 00 3B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [08:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:20:17]wFMCommunicate OK [08:20:17]requested_item fd.num is exist - process it [08:20:17]SAM_PROTO_GetFieldsCounters [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 13 00 00 [08:20:17]Write to MH i2c: E2 08 00 3C 05 80 13 00 00 00 00 00 00 BD [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 62 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 62 00 3C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [08:20:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:17]wFMCommunicate OK [08:20:17]SAM_PROTO_GetFieldsCounters done [08:20:17]requested_item shift.num is exist - process it [08:20:17]requested_item shift.opened is exist - process it [08:20:17]req_shift_opened [08:20:17]FM_GetShiftState [08:20:17]SAM_PROTO_GetShiftState [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 13 01 00 [08:20:17]Write to MH i2c: E2 08 00 3D 05 80 13 01 00 00 00 00 00 BF [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 0E 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 0E 00 3D 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B9 [08:20:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:20:17]wFMCommunicate OK [08:20:17]SAM_PROTO_GetShiftState done [08:20:17]FM_GetShiftState done [08:20:17]req_shift_opened done [08:20:17]requested_item shift.open_date is exist - process it [08:20:17]req_shift_open_date [08:20:17]req_shift_open_date done [08:20:17]produce_requested_data done [08:20:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162415,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:20:17]process_action_free close_receipt [08:20:17]json_value_free [08:20:17]json_value_free done [08:20:17]process_json_proto returns [08:20:17]Send response to host [08:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162415,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:20:17]free response buf [08:20:17]execute_script done [08:20:17]execute_script returns [08:20:17]free content buf [08:20:17]Sock 9.Close socket [08:20:17]Sock 9.Thread stoped [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]OFD Sender: No OFD packet to send [08:21:31]OFD Sender: No OFD packet to send [08:21:36]OFD Sender: No OFD packet to send [08:21:41]OFD Sender: No OFD packet to send [08:21:46]OFD Sender: No OFD packet to send [08:21:50]accept exits with 8 [08:21:50]New connection [08:21:50]New thread 3066862948 created [08:21:50]Thread 3067006308 joined [08:21:50]Waiting for new connection... [08:21:50] Sock 8.Parse request [08:21:50]Sock 8.Check first char [08:21:50]Sock 8.First char is OK [08:21:50]request: POST /json_proto HTTP/1.0 [08:21:50]Method: POST [08:21:50]URL: /json_proto [08:21:50]Method is POST - this is cgi request [08:21:50]url: /json_proto [08:21:50]query_string will be loaded in cgi processing [08:21:50]execute_cgi json_proto POST (null) [08:21:50]execute_cgi path=json_proto method=POST [08:21:50]POST find Content-Length [08:21:50]Host: 172.17.39.67:8080 [08:21:50]Content-Length: 809 [08:21:50]Content-Type: application/json [08:21:50] [08:21:50]POST finish read [08:21:50]Found Content-Length = 809 [08:21:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.310, "sum" : 2999.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2999.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:50]execute_script... [08:21: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)1318943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 41.310, "sum" : 2999.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2999.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:50]POST & json_proto [08:21:50]process_json_proto [08:21:50]json parsed OK: [08:21:50]protocol is kg_v1.0 [08:21:50]action value=close_receipt [08:21:50]process_action close_receipt [08:21:50]cmd_close_receipt [08:21:50]MH_GetDate [08:21:50]Write to MH i2c: F0 00 00 3E 05 32 [08:21:50]Write i2c OK [08:21:50]MH_I2C_Read... [08:21:50]Read from MH i2c: F0 [08:21:50]MH_I2C_Read... [08:21:50]Read from MH i2c: F0 09 00 [08:21:50]MH_I2C_Read... [08:21:50]Read from MH i2c: F0 09 00 3E 05 00 2B 39 92 66 FA E9 8E 66 6E [08:21:50]GetLastDocTimeStamp 1720858827 [08:21:50]current date 1720858923 [08:21:50]FM_GetShiftState [08:21:50]SAM_PROTO_GetShiftState [08:21:50]wFMCommunicate request_size=4 [08:21:50]MH_SAM_APDU [08:21:50]CAPDU: 80 13 01 00 [08:21:50]Write to MH i2c: E2 08 00 3F 05 80 13 01 00 00 00 00 00 C1 [08:21:50]Write i2c OK [08:21:50]MH_I2C_Read... [08:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:50]Read from MH i2c: E2 [08:21:50]MH_I2C_Read... [08:21:50]Read from MH i2c: E2 0E 00 [08:21:50]MH_I2C_Read... [08:21:50]Read from MH i2c: E2 0E 00 3F 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BB [08:21:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:21:50]wFMCommunicate OK [08:21:50]SAM_PROTO_GetShiftState done [08:21:50]FM_GetShiftState done [08:21:50]opened in 1720828979 [08:21:50]opened+sec_in_day 1720915379 [08:21:50]quantity*price = 299910 [08:21:50]sum+1 = 299912 [08:21:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2999.11 НСП 1% : 26.54 НДС 12% : 318.49 Наличными: 0.00 Безнал.: 2999.11 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 84 13.07.2024 08:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162416 ФПД: 275469954164231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082203&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162416&fm=275469954164231&tin=02508201610067®Number=0000000000090858&sum=299911 [08:21:51]StoreToDocumentArchive [08:21:51]shift 462 fd 162416 [08:21:51]save to /storage/0462/doc_00162416 [08:21:51]save last doc name /storage/0462/doc_00162416 to /storage/kkm_last_doc_name [08:21:51]save OK [08:21:51]Clear old archive folders... [08:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:21:51]tlvbuf is 01B6A740 [08:21:51]SAM_PROTO_ClearQueue [08:21:51]wFMCommunicate request_size=4 [08:21:51]MH_SAM_APDU [08:21:51]CAPDU: 80 09 00 00 [08:21:51]Write to MH i2c: E2 08 00 4C 05 80 09 00 00 00 00 00 00 C3 [08:21:51]Write i2c OK [08:21:51]MH_I2C_Read... [08:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:51]Read from MH i2c: E2 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 03 00 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 03 00 4C 05 00 90 00 C5 [08:21:51]RAPDU: 90 00 [08:21:51]wFMCommunicate OK [08:21:51]SAM_PROTO_ClearQueue done [08:21:51]KKMCreateOFDPacket [08:21:51]OFDProtocolAddRootSTLVToBuf [08:21:51]FM_MakeSignedData [08:21:51]FM_MakeSignedData [08:21:51]SAM_PROTO_SignData [08:21:51]wFMCommunicate request_size=4 [08:21:51]MH_SAM_APDU [08:21:51]CAPDU: 80 0D 01 02 [08:21:51]Write to MH i2c: E2 08 00 4D 05 80 0D 01 02 00 00 00 00 CB [08:21:51]Write i2c OK [08:21:51]MH_I2C_Read... [08:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:51]Read from MH i2c: E2 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 03 00 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 03 00 4D 05 00 90 00 C6 [08:21:51]RAPDU: 90 00 [08:21:51]wFMCommunicate OK [08:21:51]wFMCommunicate request_size=255 [08:21:51]MH_SAM_APDU [08:21:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 87 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2B 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7A 02 00 35 04 06 00 [08:21:51]Write to MH i2c: E2 02 01 4E 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 87 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2B 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7A 02 00 35 04 06 00 00 00 AB [08:21:51]Write i2c OK [08:21:51]MH_I2C_Read... [08:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:51]Read from MH i2c: E2 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 03 00 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 03 00 4E 05 00 90 00 C7 [08:21:51]RAPDU: 90 00 [08:21:51]wFMCommunicate OK [08:21:51]wFMCommunicate request_size=11 [08:21:51]MH_SAM_APDU [08:21:51]CAPDU: 80 0D 02 02 06 FA 89 D8 C3 A6 07 [08:21:51]Write to MH i2c: E2 0E 00 4F 05 80 0D 02 02 06 00 FA 89 D8 C3 A6 07 00 00 A5 [08:21:51]Write i2c OK [08:21:51]MH_I2C_Read... [08:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:51]Read from MH i2c: E2 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 03 00 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [08:21:51]RAPDU: 90 00 [08:21:51]wFMCommunicate OK [08:21:51]wFMCommunicate request_size=4 [08:21:51]MH_SAM_APDU [08:21:51]CAPDU: 80 0D 03 02 [08:21:51]Write to MH i2c: E2 08 00 50 05 80 0D 03 02 00 00 00 00 D0 [08:21:51]Write i2c OK [08:21:51]MH_I2C_Read... [08:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:51]Read from MH i2c: E2 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 0B 00 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 0B 00 50 05 00 95 E8 B9 C7 A0 1E 1A 6A 90 00 10 [08:21:51]RAPDU: 95 E8 B9 C7 A0 1E 1A 6A 90 00 [08:21:51]wFMCommunicate OK [08:21:51]SAM_PROTO_SignData done [08:21:51]FM_MakeSignedData done [08:21:51]CreateOFDProtocolMessage [08:21:51]wFMCommunicate request_size=4 [08:21:51]MH_SAM_APDU [08:21:51]CAPDU: 80 11 00 00 [08:21:51]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [08:21:51]Write i2c OK [08:21:51]MH_I2C_Read... [08:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:51]Read from MH i2c: E2 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 17 00 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [08:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:21:51]wFMCommunicate OK [08:21:51]CreateOFDProtocolMessage done [08:21:51]OFDSenderStorePacket 162416 [08:21:51]StoreOFDPacket docnum=162416 [08:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 87 79 08 01 47 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 87 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2B 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7A 02 00 35 04 06 00 FA 89 D8 C3 A6 07 95 E8 B9 C7 A0 1E 1A 6A [08:21:51]CheckFolder [08:21:51]dirname=/storage/ofd_packets [08:21:51]CheckFolder done [08:21:51]ProducePacketName [08:21:51]name=ofd_packets/00162416 [08:21:51]NVStorageSaveData ofd_packets/00162416 [08:21:51]File name is /storage/ofd_packets/00162416 [08:21:51]Write 302 bytes [08:21:51]NVStorageSaveData done [08:21:51]OFDSenderStorePacket done [08:21:51]KKMCreateOFDPacket done [08:21:51]NVStorageSaveData kkm_last_timestamp [08:21:51]File name is /storage/kkm_last_timestamp [08:21:51]Write 4 bytes [08:21:51]NVStorageSaveData done [08:21:51]ExternCall_PrintAddStr [08:21:51]wPrintStart [08:21:51]Write to MH i2c: 01 00 00 52 05 57 [08:21:51]Write i2c OK [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: 01 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: 01 07 00 [08:21:51]MH_I2C_Read... [08:21:51]Read from MH i2c: 01 07 00 52 05 00 00 00 00 00 FF 0F 6C [08:21:51]RasterBufferAndPrint [08:21:51]line Счет N : (1)1318943 [08:21:51]line ИНН: 02508201610067 [08:21:51]line Контрольно-Кассовый Чек [08:21:51]line ПРОДАЖА [08:21:51]line ТРК (МРК, ГНК) : 61 [08:21:51]line Товар: 2710194210 [08:21:51]line ДТ(л)-К-5 [08:21:51]line 41.310 * 72.60 [08:21:51]line = 2999.11 [08:21:51]line НДС 12% НСП 1% [08:21:51]line > о реализуемом товаре [08:21:51]line ИТОГО: 2999.11 [08:21:51]line НСП 1% : 26.54 [08:21:51]line НДС 12% : 318.49 [08:21:51]line Наличными: 0.00 [08:21:51]line Безнал.: 2999.11 [08:21:51]line Место: АЗС № 140 "Партнер Нефть" [08:21:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:21:51]line СНО: Общий режим [08:21:51]line Чек 84 13.07.2024 08:22 [08:21:51]line Смена: 462 ФФД: 1.0 [08:21:51]line ЗНМ: 0300000129 [08:21:51]line РНМ: 0000000000090858 [08:21:51]line Версия ККМ: 001 [08:21:51]line Платежная система: O! деньги [08:21:51]line ФМ: 0000000000874899 [08:21:51]line ФД: 162416 [08:21:51]line ФПД: 275469954164231 [08:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082203&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162416&fm=275469954164231&tin=02508201610067®Number=0000000000090858&sum=299911 [08:21:52]written 0, free lines is 4095 [08:21:52]OFD Sender: Processing packet 162416 [packets to send 105, broken 104] [08:21:52]ProducePacketName [08:21:52]name=ofd_packets/00162416 [08:21:52]OFD Sender: To server: pG, [08:21:52]CommunicateWithHost lk.salyk.kg:30040 [08:21:52]ConnectInit lk.salyk.kg [08:21:52]Connected sock=11 [08:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 87 79 08 01 47 54 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5E A1 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 87 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 93 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 2B 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7A 02 00 35 04 06 00 FA 89 D8 C3 A6 07 95 E8 B9 C7 A0 1E 1A 6A [08:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CD 89 47 00 AA D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7A 02 00 F4 03 04 00 40 E5 91 66 B6 04 01 00 00 71 9B BD 7F 6B 1F A9 74 [08:21:52]CommunicateWithHost err = 0 [08:21:52]CheckOFDResponse [08:21:52]1017 (14) - 77093643461234 [08:21:52]1041 (16) - 0000000000874899 [08:21:52]1040 (4) - 162416 [08:21:52]1012 (4) - 13.07.2024 02:24 [08:21:52]1206 (1) - 0 [08:21:52]OFD Sender: Remove packet 162416 [08:21:52]ProducePacketName [08:21:52]name=ofd_packets/00162416 [08:21:52]NVStorageDeleteData [08:21:52]Write to MH i2c: 01 00 00 7C 05 81 [08:21:52]Write i2c OK [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: 01 [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: 01 07 00 [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: 01 07 00 7C 05 00 00 00 00 00 FE 0C 92 [08:21:52]RasterBufferAndPrint [08:21:52]line [08:21:52]line [08:21:52]line [08:21:52]line [08:21:52]line [08:21:52]written 0, free lines is 3332 [08:21:52]MH_Cut [08:21:52]Write to MH i2c: D1 01 00 83 05 01 5A [08:21:52]Write i2c OK [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: D1 [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: D1 01 00 [08:21:52]MH_I2C_Read... [08:21:52]Read from MH i2c: D1 01 00 83 05 00 59 [08:21:52]Write to MH i2c: 01 00 00 84 05 89 [08:21:52]Write i2c OK [08:21:52]MH_I2C_Read... [08:21:52]OFD Sender: No OFD packet to send [08:21:53]*** Cut start [08:21:53]*** Purtial cut [08:21:53]*** CUTSNS_PIN = 0 [08:21:53]*** Stage 1: CUTSNS_PIN = 1 [08:21:55]Read from MH i2c: 01 [08:21:55]MH_I2C_Read... [08:21:55]*** Stop cut motor [08:21:55]*** Cut end [08:21:55]Read from MH i2c: 01 07 00 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: 01 07 00 84 05 00 00 00 00 00 FF 0F 9E [08:21:55]process_action close_receipt done [08:21:55]requested_data is exist [08:21:55]produce_requested_data [08:21:55]requested_item fm.sn is exist - process it [08:21:55]wFMCommunicate request_size=4 [08:21:55]MH_SAM_APDU [08:21:55]CAPDU: 80 11 00 00 [08:21:55]Write to MH i2c: E2 08 00 85 05 80 11 00 00 00 00 00 00 04 [08:21:55]Write i2c OK [08:21:55]MH_I2C_Read... [08:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:55]Read from MH i2c: E2 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: E2 17 00 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: E2 17 00 85 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 64 [08:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:21:55]wFMCommunicate OK [08:21:55]requested_item fd.num is exist - process it [08:21:55]SAM_PROTO_GetFieldsCounters [08:21:55]wFMCommunicate request_size=4 [08:21:55]MH_SAM_APDU [08:21:55]CAPDU: 80 13 00 00 [08:21:55]Write to MH i2c: E2 08 00 86 05 80 13 00 00 00 00 00 00 07 [08:21:55]Write i2c OK [08:21:55]MH_I2C_Read... [08:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:55]Read from MH i2c: E2 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: E2 62 00 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: E2 62 00 86 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 70 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [08: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 70 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:21:55]wFMCommunicate OK [08:21:55]SAM_PROTO_GetFieldsCounters done [08:21:55]requested_item shift.num is exist - process it [08:21:55]requested_item shift.opened is exist - process it [08:21:55]req_shift_opened [08:21:55]FM_GetShiftState [08:21:55]SAM_PROTO_GetShiftState [08:21:55]wFMCommunicate request_size=4 [08:21:55]MH_SAM_APDU [08:21:55]CAPDU: 80 13 01 00 [08:21:55]Write to MH i2c: E2 08 00 87 05 80 13 01 00 00 00 00 00 09 [08:21:55]Write i2c OK [08:21:55]MH_I2C_Read... [08:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:55]Read from MH i2c: E2 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: E2 0E 00 [08:21:55]MH_I2C_Read... [08:21:55]Read from MH i2c: E2 0E 00 87 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 03 [08:21:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:21:55]wFMCommunicate OK [08:21:55]SAM_PROTO_GetShiftState done [08:21:55]FM_GetShiftState done [08:21:55]req_shift_opened done [08:21:55]requested_item shift.open_date is exist - process it [08:21:55]req_shift_open_date [08:21:55]req_shift_open_date done [08:21:55]produce_requested_data done [08:21:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162416,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:21:55]process_action_free close_receipt [08:21:55]json_value_free [08:21:55]json_value_free done [08:21:55]process_json_proto returns [08:21:55]Send response to host [08:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162416,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:21:55]free response buf [08:21:55]execute_script done [08:21:55]execute_script returns [08:21:55]free content buf [08:21:55]Sock 8.Close socket [08:21:55]Sock 8.Thread stoped [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:51]accept exits with 9 [08:22:51]New connection [08:22:51]New thread 3067006308 created [08:22:51]Thread 3066862948 joined [08:22:51]Waiting for new connection... [08:22:51] Sock 9.Parse request [08:22:51]Sock 9.Check first char [08:22:51]Sock 9.First char is OK [08:22:51]request: POST /json_proto HTTP/1.0 [08:22:51]Method: POST [08:22:51]URL: /json_proto [08:22:51]Method is POST - this is cgi request [08:22:51]url: /json_proto [08:22:51]query_string will be loaded in cgi processing [08:22:51]execute_cgi json_proto POST (null) [08:22:51]execute_cgi path=json_proto method=POST [08:22:51]POST find Content-Length [08:22:51]Host: 172.17.39.67:8080 [08:22:51]Content-Length: 688 [08:22:51]Content-Type: application/json [08:22:51] [08:22:51]POST finish read [08:22:51]Found Content-Length = 688 [08:22:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:22:51]execute_script... [08:22: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)1318944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:22:51]POST & json_proto [08:22:51]process_json_proto [08:22:51]json parsed OK: [08:22:51]protocol is kg_v1.0 [08:22:51]action value=close_receipt [08:22:51]process_action close_receipt [08:22:51]cmd_close_receipt [08:22:51]MH_GetDate [08:22:51]Write to MH i2c: F0 00 00 88 05 7C [08:22:51]Write i2c OK [08:22:51]MH_I2C_Read... [08:22:51]Read from MH i2c: F0 [08:22:51]MH_I2C_Read... [08:22:51]Read from MH i2c: F0 09 00 [08:22:51]MH_I2C_Read... [08:22:51]Read from MH i2c: F0 09 00 88 05 00 69 39 92 66 FA E9 8E 66 F6 [08:22:51]GetLastDocTimeStamp 1720858923 [08:22:51]current date 1720858985 [08:22:51]FM_GetShiftState [08:22:51]SAM_PROTO_GetShiftState [08:22:51]wFMCommunicate request_size=4 [08:22:51]MH_SAM_APDU [08:22:51]CAPDU: 80 13 01 00 [08:22:51]Write to MH i2c: E2 08 00 89 05 80 13 01 00 00 00 00 00 0B [08:22:51]Write i2c OK [08:22:51]MH_I2C_Read... [08:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:51]Read from MH i2c: E2 [08:22:51]MH_I2C_Read... [08:22:51]Read from MH i2c: E2 0E 00 [08:22:51]MH_I2C_Read... [08:22:51]Read from MH i2c: E2 0E 00 89 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 05 [08:22:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:22:51]wFMCommunicate OK [08:22:51]SAM_PROTO_GetShiftState done [08:22:51]FM_GetShiftState done [08:22:51]opened in 1720828979 [08:22:51]opened+sec_in_day 1720915379 [08:22:51]quantity*price = 150064 [08:22:51]sum+1 = 150065 [08:22:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 85 13.07.2024 08:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162417 ФПД: 14232807900940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082305&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162417&fm=14232807900940&tin=02508201610067®Number=0000000000090858&sum=150000 [08:22:52]StoreToDocumentArchive [08:22:52]shift 462 fd 162417 [08:22:52]save to /storage/0462/doc_00162417 [08:22:52]save last doc name /storage/0462/doc_00162417 to /storage/kkm_last_doc_name [08:22:52]save OK [08:22:52]Clear old archive folders... [08:22:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:22:52]tlvbuf is 01C7CF50 [08:22:52]SAM_PROTO_ClearQueue [08:22:52]wFMCommunicate request_size=4 [08:22:52]MH_SAM_APDU [08:22:52]CAPDU: 80 09 00 00 [08:22:52]Write to MH i2c: E2 08 00 96 05 80 09 00 00 00 00 00 00 0D [08:22:52]Write i2c OK [08:22:52]MH_I2C_Read... [08:22:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 96 05 00 90 00 0F [08:22:53]RAPDU: 90 00 [08:22:53]wFMCommunicate OK [08:22:53]SAM_PROTO_ClearQueue done [08:22:53]KKMCreateOFDPacket [08:22:53]OFDProtocolAddRootSTLVToBuf [08:22:53]FM_MakeSignedData [08:22:53]FM_MakeSignedData [08:22:53]SAM_PROTO_SignData [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 0D 01 02 [08:22:53]Write to MH i2c: E2 08 00 97 05 80 0D 01 02 00 00 00 00 15 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 97 05 00 90 00 10 [08:22:53]RAPDU: 90 00 [08:22:53]wFMCommunicate OK [08:22:53]wFMCommunicate request_size=255 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 55 00 00 00 F4 03 04 00 69 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7A 02 00 35 04 06 00 [08:22:53]Write to MH i2c: E2 02 01 98 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 55 00 00 00 F4 03 04 00 69 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7A 02 00 35 04 06 00 00 00 42 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 98 05 00 90 00 11 [08:22:53]RAPDU: 90 00 [08:22:53]wFMCommunicate OK [08:22:53]wFMCommunicate request_size=11 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 0D 02 02 06 0C F1 D5 75 87 0C [08:22:53]Write to MH i2c: E2 0E 00 99 05 80 0D 02 02 06 00 0C F1 D5 75 87 0C 00 00 FE [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 03 00 99 05 00 90 00 12 [08:22:53]RAPDU: 90 00 [08:22:53]wFMCommunicate OK [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 0D 03 02 [08:22:53]Write to MH i2c: E2 08 00 9A 05 80 0D 03 02 00 00 00 00 1A [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 0B 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 0B 00 9A 05 00 69 A0 AC AD 42 9E 61 2C 90 00 EA [08:22:53]RAPDU: 69 A0 AC AD 42 9E 61 2C 90 00 [08:22:53]wFMCommunicate OK [08:22:53]SAM_PROTO_SignData done [08:22:53]FM_MakeSignedData done [08:22:53]CreateOFDProtocolMessage [08:22:53]wFMCommunicate request_size=4 [08:22:53]MH_SAM_APDU [08:22:53]CAPDU: 80 11 00 00 [08:22:53]Write to MH i2c: E2 08 00 9B 05 80 11 00 00 00 00 00 00 1A [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:53]Read from MH i2c: E2 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 17 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: E2 17 00 9B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7A [08:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:22:53]wFMCommunicate OK [08:22:53]CreateOFDProtocolMessage done [08:22:53]OFDSenderStorePacket 162417 [08:22:53]StoreOFDPacket docnum=162417 [08:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9D D7 08 01 12 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 55 00 00 00 F4 03 04 00 69 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7A 02 00 35 04 06 00 0C F1 D5 75 87 0C 69 A0 AC AD 42 9E 61 2C [08:22:53]CheckFolder [08:22:53]dirname=/storage/ofd_packets [08:22:53]CheckFolder done [08:22:53]ProducePacketName [08:22:53]name=ofd_packets/00162417 [08:22:53]NVStorageSaveData ofd_packets/00162417 [08:22:53]File name is /storage/ofd_packets/00162417 [08:22:53]Write 302 bytes [08:22:53]NVStorageSaveData done [08:22:53]OFDSenderStorePacket done [08:22:53]KKMCreateOFDPacket done [08:22:53]NVStorageSaveData kkm_last_timestamp [08:22:53]File name is /storage/kkm_last_timestamp [08:22:53]Write 4 bytes [08:22:53]NVStorageSaveData done [08:22:53]ExternCall_PrintAddStr [08:22:53]wPrintStart [08:22:53]Write to MH i2c: 01 00 00 9C 05 A1 [08:22:53]Write i2c OK [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: 01 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: 01 07 00 [08:22:53]MH_I2C_Read... [08:22:53]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 FF 0F B6 [08:22:53]RasterBufferAndPrint [08:22:53]line Счет N : (1)1318944 [08:22:53]line ИНН: 02508201610067 [08:22:53]line Контрольно-Кассовый Чек [08:22:53]line ПРОДАЖА [08:22:53]line ТРК (МРК, ГНК) : 31 [08:22:53]line Товар: 2710194210 [08:22:53]line ДТ(л)-К-5 [08:22:53]line 20.670 * 72.60 [08:22:53]line = 1500.64 [08:22:53]line НДС 12% НСП 1% [08:22:53]line > о реализуемом товаре [08:22:53]line ОКРУГЛЕНИЕ: -0.64 [08:22:53]line ИТОГО: 1500.00 [08:22:53]line Внесено: 1500.00 [08:22:53]line СДАЧА: 0.00 [08:22:53]line НСП 1% : 13.28 [08:22:53]line НДС 12% : 159.36 [08:22:53]line Наличными: 1500.00 [08:22:53]line Безнал.: 0.00 [08:22:53]line Место: АЗС № 140 "Партнер Нефть" [08:22:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:22:53]line СНО: Общий режим [08:22:53]line Чек 85 13.07.2024 08:23 [08:22:53]line Смена: 462 ФФД: 1.0 [08:22:53]line ЗНМ: 0300000129 [08:22:53]line РНМ: 0000000000090858 [08:22:53]line Версия ККМ: 001 [08:22:53]line ФМ: 0000000000874899 [08:22:53]line ФД: 162417 [08:22:53]line ФПД: 14232807900940 [08:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082305&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162417&fm=14232807900940&tin=02508201610067®Number=0000000000090858&sum=150000 [08:22:53]OFD Sender: Processing packet 162417 [packets to send 105, broken 104] [08:22:53]ProducePacketName [08:22:53]name=ofd_packets/00162417 [08:22:53]OFD Sender: To server: pG, [08:22:53]CommunicateWithHost lk.salyk.kg:30040 [08:22:53]ConnectInit lk.salyk.kg [08:22:53]written 0, free lines is 4095 [08:22:53]Connected sock=10 [08:22:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9D D7 08 01 12 8D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 55 00 00 00 F4 03 04 00 69 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7A 02 00 35 04 06 00 0C F1 D5 75 87 0C 69 A0 AC AD 42 9E 61 2C [08:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 15 57 47 00 33 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7A 02 00 F4 03 04 00 7E E5 91 66 B6 04 01 00 00 ED BC 56 CE D9 E0 77 9F [08:22:54]CommunicateWithHost err = 0 [08:22:54]CheckOFDResponse [08:22:54]1017 (14) - 77093643461234 [08:22:54]1041 (16) - 0000000000874899 [08:22:54]1040 (4) - 162417 [08:22:54]1012 (4) - 13.07.2024 02:25 [08:22:54]1206 (1) - 0 [08:22:54]OFD Sender: Remove packet 162417 [08:22:54]ProducePacketName [08:22:54]name=ofd_packets/00162417 [08:22:54]NVStorageDeleteData [08:22:54]Write to MH i2c: 01 00 00 C7 05 CC [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: 01 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: 01 07 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: 01 07 00 C7 05 00 00 00 00 00 DF 0C BE [08:22:54]RasterBufferAndPrint [08:22:54]line [08:22:54]line [08:22:54]line [08:22:54]line [08:22:54]line [08:22:54]written 0, free lines is 3304 [08:22:54]MH_Cut [08:22:54]Write to MH i2c: D1 01 00 CE 05 01 A5 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: D1 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: D1 01 00 [08:22:54]MH_I2C_Read... [08:22:54]Read from MH i2c: D1 01 00 CE 05 00 A4 [08:22:54]Write to MH i2c: 01 00 00 CF 05 D4 [08:22:54]Write i2c OK [08:22:54]MH_I2C_Read... [08:22:54]OFD Sender: No OFD packet to send [08:22:55]*** Cut start [08:22:55]*** Purtial cut [08:22:55]*** Stage 1: CUTSNS_PIN = 1 [08:22:55]Read from MH i2c: 01 [08:22:55]MH_I2C_Read... [08:22:55]*** Stop cut motor [08:22:55]*** Cut end [08:22:55]Read from MH i2c: 01 07 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: 01 07 00 CF 05 00 00 00 00 00 FF 0F E9 [08:22:55]process_action close_receipt done [08:22:55]requested_data is exist [08:22:55]produce_requested_data [08:22:55]requested_item fm.sn is exist - process it [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 D0 05 80 11 00 00 00 00 00 00 4F [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 17 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 17 00 D0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [08:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:22:55]wFMCommunicate OK [08:22:55]requested_item fd.num is exist - process it [08:22:55]SAM_PROTO_GetFieldsCounters [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 13 00 00 [08:22:55]Write to MH i2c: E2 08 00 D1 05 80 13 00 00 00 00 00 00 52 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 62 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 62 00 D1 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 71 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [08:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 71 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:22:55]wFMCommunicate OK [08:22:55]SAM_PROTO_GetFieldsCounters done [08:22:55]requested_item shift.num is exist - process it [08:22:55]requested_item shift.opened is exist - process it [08:22:55]req_shift_opened [08:22:55]FM_GetShiftState [08:22:55]SAM_PROTO_GetShiftState [08:22:55]wFMCommunicate request_size=4 [08:22:55]MH_SAM_APDU [08:22:55]CAPDU: 80 13 01 00 [08:22:55]Write to MH i2c: E2 08 00 D2 05 80 13 01 00 00 00 00 00 54 [08:22:55]Write i2c OK [08:22:55]MH_I2C_Read... [08:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:55]Read from MH i2c: E2 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 0E 00 [08:22:55]MH_I2C_Read... [08:22:55]Read from MH i2c: E2 0E 00 D2 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4E [08:22:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:22:55]wFMCommunicate OK [08:22:55]SAM_PROTO_GetShiftState done [08:22:55]FM_GetShiftState done [08:22:55]req_shift_opened done [08:22:55]requested_item shift.open_date is exist - process it [08:22:55]req_shift_open_date [08:22:55]req_shift_open_date done [08:22:55]produce_requested_data done [08:22:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162417,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:22:55]process_action_free close_receipt [08:22:55]json_value_free [08:22:55]json_value_free done [08:22:55]process_json_proto returns [08:22:55]Send response to host [08:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162417,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:22:55]free response buf [08:22:55]execute_script done [08:22:55]execute_script returns [08:22:55]free content buf [08:22:55]Sock 9.Close socket [08:22:55]Sock 9.Thread stoped [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:03]accept exits with 8 [08:24:03]New connection [08:24:03]New thread 3066862948 created [08:24:03]Thread 3067006308 joined [08:24:03]Waiting for new connection... [08:24:03] Sock 8.Parse request [08:24:03]Sock 8.Check first char [08:24:03]Sock 8.First char is OK [08:24:03]request: POST /json_proto HTTP/1.0 [08:24:03]Method: POST [08:24:03]URL: /json_proto [08:24:03]Method is POST - this is cgi request [08:24:03]url: /json_proto [08:24:03]query_string will be loaded in cgi processing [08:24:03]execute_cgi json_proto POST (null) [08:24:03]execute_cgi path=json_proto method=POST [08:24:03]POST find Content-Length [08:24:03]Host: 172.17.39.67:8080 [08:24:03]Content-Length: 678 [08:24:03]Content-Type: application/json [08:24:03] [08:24:03]POST finish read [08:24:03]Found Content-Length = 678 [08:24:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:03]execute_script... [08:24: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)1318945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:24:03]POST & json_proto [08:24:03]process_json_proto [08:24:03]json parsed OK: [08:24:03]protocol is kg_v1.0 [08:24:03]action value=close_receipt [08:24:03]process_action close_receipt [08:24:03]cmd_close_receipt [08:24:03]MH_GetDate [08:24:03]Write to MH i2c: F0 00 00 D3 05 C7 [08:24:03]Write i2c OK [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: F0 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: F0 09 00 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: F0 09 00 D3 05 00 B0 39 92 66 FA E9 8E 66 88 [08:24:03]GetLastDocTimeStamp 1720858985 [08:24:03]current date 1720859056 [08:24:03]FM_GetShiftState [08:24:03]SAM_PROTO_GetShiftState [08:24:03]wFMCommunicate request_size=4 [08:24:03]MH_SAM_APDU [08:24:03]CAPDU: 80 13 01 00 [08:24:03]Write to MH i2c: E2 08 00 D4 05 80 13 01 00 00 00 00 00 56 [08:24:03]Write i2c OK [08:24:03]MH_I2C_Read... [08:24:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:03]Read from MH i2c: E2 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: E2 0E 00 [08:24:03]MH_I2C_Read... [08:24:03]Read from MH i2c: E2 0E 00 D4 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 50 [08:24:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:24:03]wFMCommunicate OK [08:24:03]SAM_PROTO_GetShiftState done [08:24:03]FM_GetShiftState done [08:24:03]opened in 1720828979 [08:24:03]opened+sec_in_day 1720915379 [08:24:03]quantity*price = 50056 [08:24:03]sum+1 = 50058 [08:24:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 86 13.07.2024 08:24 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162418 ФПД: 23359975818951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162418&fm=23359975818951&tin=02508201610067®Number=0000000000090858&sum=50000 [08:24:04]StoreToDocumentArchive [08:24:04]shift 462 fd 162418 [08:24:04]save to /storage/0462/doc_00162418 [08:24:04]save last doc name /storage/0462/doc_00162418 to /storage/kkm_last_doc_name [08:24:04]save OK [08:24:04]Clear old archive folders... [08:24:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:04]tlvbuf is 018FBFC0 [08:24:04]SAM_PROTO_ClearQueue [08:24:04]wFMCommunicate request_size=4 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 09 00 00 [08:24:04]Write to MH i2c: E2 08 00 E1 05 80 09 00 00 00 00 00 00 58 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:04]Read from MH i2c: E2 03 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 E1 05 00 90 00 5A [08:24:04]RAPDU: 90 00 [08:24:04]wFMCommunicate OK [08:24:04]SAM_PROTO_ClearQueue done [08:24:04]KKMCreateOFDPacket [08:24:04]OFDProtocolAddRootSTLVToBuf [08:24:04]FM_MakeSignedData [08:24:04]FM_MakeSignedData [08:24:04]SAM_PROTO_SignData [08:24:04]wFMCommunicate request_size=4 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 0D 01 02 [08:24:04]Write to MH i2c: E2 08 00 E2 05 80 0D 01 02 00 00 00 00 60 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 E2 05 00 90 00 5B [08:24:04]RAPDU: 90 00 [08:24:04]wFMCommunicate OK [08:24:04]wFMCommunicate request_size=255 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B0 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7A 02 00 35 04 06 00 15 [08:24:04]Write to MH i2c: E2 02 01 E3 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B0 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7A 02 00 35 04 06 00 15 00 00 25 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]OFD Sender: No OFD packet to send [08:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 E3 05 00 90 00 5C [08:24:04]RAPDU: 90 00 [08:24:04]wFMCommunicate OK [08:24:04]wFMCommunicate request_size=10 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 0D 02 02 05 3E EB 0F 86 C7 [08:24:04]Write to MH i2c: E2 0D 00 E4 05 80 0D 02 02 05 00 3E EB 0F 86 C7 00 00 F2 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:04]Read from MH i2c: E2 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 [08:24:04]MH_I2C_Read... [08:24:04]Read from MH i2c: E2 03 00 E4 05 00 90 00 5D [08:24:04]RAPDU: 90 00 [08:24:04]wFMCommunicate OK [08:24:04]wFMCommunicate request_size=4 [08:24:04]MH_SAM_APDU [08:24:04]CAPDU: 80 0D 03 02 [08:24:04]Write to MH i2c: E2 08 00 E5 05 80 0D 03 02 00 00 00 00 65 [08:24:04]Write i2c OK [08:24:04]MH_I2C_Read... [08:24:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:05]Read from MH i2c: E2 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: E2 0B 00 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: E2 0B 00 E5 05 00 04 26 0F 2E 9B E1 9F 1E 90 00 06 [08:24:05]RAPDU: 04 26 0F 2E 9B E1 9F 1E 90 00 [08:24:05]wFMCommunicate OK [08:24:05]SAM_PROTO_SignData done [08:24:05]FM_MakeSignedData done [08:24:05]CreateOFDProtocolMessage [08:24:05]wFMCommunicate request_size=4 [08:24:05]MH_SAM_APDU [08:24:05]CAPDU: 80 11 00 00 [08:24:05]Write to MH i2c: E2 08 00 E6 05 80 11 00 00 00 00 00 00 65 [08:24:05]Write i2c OK [08:24:05]MH_I2C_Read... [08:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:05]Read from MH i2c: E2 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: E2 17 00 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: E2 17 00 E6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C5 [08:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:24:05]wFMCommunicate OK [08:24:05]CreateOFDProtocolMessage done [08:24:05]OFDSenderStorePacket 162418 [08:24:05]StoreOFDPacket docnum=162418 [08:24:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A1 AE 07 01 52 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B0 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7A 02 00 35 04 06 00 15 3E EB 0F 86 C7 04 26 0F 2E 9B E1 9F 1E [08:24:05]CheckFolder [08:24:05]dirname=/storage/ofd_packets [08:24:05]CheckFolder done [08:24:05]ProducePacketName [08:24:05]name=ofd_packets/00162418 [08:24:05]NVStorageSaveData ofd_packets/00162418 [08:24:05]File name is /storage/ofd_packets/00162418 [08:24:05]Write 301 bytes [08:24:05]NVStorageSaveData done [08:24:05]OFDSenderStorePacket done [08:24:05]KKMCreateOFDPacket done [08:24:05]NVStorageSaveData kkm_last_timestamp [08:24:05]File name is /storage/kkm_last_timestamp [08:24:05]Write 4 bytes [08:24:05]NVStorageSaveData done [08:24:05]ExternCall_PrintAddStr [08:24:05]wPrintStart [08:24:05]Write to MH i2c: 01 00 00 E7 05 EC [08:24:05]Write i2c OK [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 07 00 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 07 00 E7 05 00 00 00 00 00 FF 0F 01 [08:24:05]RasterBufferAndPrint [08:24:05]line Счет N : (1)1318945 [08:24:05]line ИНН: 02508201610067 [08:24:05]line Контрольно-Кассовый Чек [08:24:05]line ПРОДАЖА [08:24:05]line ТРК (МРК, ГНК) : 53 [08:24:05]line Товар: 2710124130 [08:24:05]line Аи-92-К-5 [08:24:05]line 7.550 * 66.30 [08:24:05]line = 500.57 [08:24:05]line НДС 12% НСП 1% [08:24:05]line > о реализуемом товаре [08:24:05]line ОКРУГЛЕНИЕ: -0.57 [08:24:05]line ИТОГО: 500.00 [08:24:05]line Внесено: 500.00 [08:24:05]line СДАЧА: 0.00 [08:24:05]line НСП 1% : 4.43 [08:24:05]line НДС 12% : 53.16 [08:24:05]line Наличными: 500.00 [08:24:05]line Безнал.: 0.00 [08:24:05]line Место: АЗС № 140 "Партнер Нефть" [08:24:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:24:05]line СНО: Общий режим [08:24:05]line Чек 86 13.07.2024 08:24 [08:24:05]line Смена: 462 ФФД: 1.0 [08:24:05]line ЗНМ: 0300000129 [08:24:05]line РНМ: 0000000000090858 [08:24:05]line Версия ККМ: 001 [08:24:05]line ФМ: 0000000000874899 [08:24:05]line ФД: 162418 [08:24:05]line ФПД: 23359975818951 [08:24:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162418&fm=23359975818951&tin=02508201610067®Number=0000000000090858&sum=50000 [08:24:05]OFD Sender: Processing packet 162418 [packets to send 105, broken 104] [08:24:05]ProducePacketName [08:24:05]name=ofd_packets/00162418 [08:24:05]OFD Sender: To server: pG, [08:24:05]CommunicateWithHost lk.salyk.kg:30040 [08:24:05]ConnectInit lk.salyk.kg [08:24:05]written 0, free lines is 4095 [08:24:05]Connected sock=10 [08:24:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A1 AE 07 01 52 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 B0 39 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7A 02 00 35 04 06 00 15 3E EB 0F 86 C7 04 26 0F 2E 9B E1 9F 1E [08:24:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AB D5 47 00 B6 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7A 02 00 F4 03 04 00 C5 E5 91 66 B6 04 01 00 00 38 6E A4 2E AE 5A 45 27 [08:24:05]CommunicateWithHost err = 0 [08:24:05]CheckOFDResponse [08:24:05]1017 (14) - 77093643461234 [08:24:05]1041 (16) - 0000000000874899 [08:24:05]1040 (4) - 162418 [08:24:05]1012 (4) - 13.07.2024 02:26 [08:24:05]1206 (1) - 0 [08:24:05]OFD Sender: Remove packet 162418 [08:24:05]ProducePacketName [08:24:05]name=ofd_packets/00162418 [08:24:05]NVStorageDeleteData [08:24:05]Write to MH i2c: 01 00 00 12 06 18 [08:24:05]Write i2c OK [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 07 00 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 EB 0C 16 [08:24:05]RasterBufferAndPrint [08:24:05]line [08:24:05]line [08:24:05]line [08:24:05]line [08:24:05]line [08:24:05]written 0, free lines is 3316 [08:24:05]MH_Cut [08:24:05]Write to MH i2c: D1 01 00 19 06 01 F1 [08:24:05]Write i2c OK [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: D1 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: D1 01 00 [08:24:05]MH_I2C_Read... [08:24:05]Read from MH i2c: D1 01 00 19 06 00 F0 [08:24:05]Write to MH i2c: 01 00 00 1A 06 20 [08:24:05]Write i2c OK [08:24:05]MH_I2C_Read... [08:24:06]OFD Sender: No OFD packet to send [08:24:06]*** Cut start [08:24:06]*** Purtial cut [08:24:06]*** CUTSNS_PIN = 0 [08:24:06]*** Stage 1: CUTSNS_PIN = 1 [08:24:08]Read from MH i2c: 01 [08:24:08]MH_I2C_Read... [08:24:08]*** Stop cut motor [08:24:08]*** Cut end [08:24:08]Read from MH i2c: 01 07 00 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: 01 07 00 1A 06 00 00 00 00 00 FF 0F 35 [08:24:08]process_action close_receipt done [08:24:08]requested_data is exist [08:24:08]produce_requested_data [08:24:08]requested_item fm.sn is exist - process it [08:24:08]wFMCommunicate request_size=4 [08:24:08]MH_SAM_APDU [08:24:08]CAPDU: 80 11 00 00 [08:24:08]Write to MH i2c: E2 08 00 1B 06 80 11 00 00 00 00 00 00 9B [08:24:08]Write i2c OK [08:24:08]MH_I2C_Read... [08:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:08]Read from MH i2c: E2 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: E2 17 00 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: E2 17 00 1B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FB [08:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:24:08]wFMCommunicate OK [08:24:08]requested_item fd.num is exist - process it [08:24:08]SAM_PROTO_GetFieldsCounters [08:24:08]wFMCommunicate request_size=4 [08:24:08]MH_SAM_APDU [08:24:08]CAPDU: 80 13 00 00 [08:24:08]Write to MH i2c: E2 08 00 1C 06 80 13 00 00 00 00 00 00 9E [08:24:08]Write i2c OK [08:24:08]MH_I2C_Read... [08:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:08]Read from MH i2c: E2 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: E2 62 00 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: E2 62 00 1C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 72 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [08:24:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 72 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:24:08]wFMCommunicate OK [08:24:08]SAM_PROTO_GetFieldsCounters done [08:24:08]requested_item shift.num is exist - process it [08:24:08]requested_item shift.opened is exist - process it [08:24:08]req_shift_opened [08:24:08]FM_GetShiftState [08:24:08]SAM_PROTO_GetShiftState [08:24:08]wFMCommunicate request_size=4 [08:24:08]MH_SAM_APDU [08:24:08]CAPDU: 80 13 01 00 [08:24:08]Write to MH i2c: E2 08 00 1D 06 80 13 01 00 00 00 00 00 A0 [08:24:08]Write i2c OK [08:24:08]MH_I2C_Read... [08:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:08]Read from MH i2c: E2 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: E2 0E 00 [08:24:08]MH_I2C_Read... [08:24:08]Read from MH i2c: E2 0E 00 1D 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9A [08:24:08]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:24:08]wFMCommunicate OK [08:24:08]SAM_PROTO_GetShiftState done [08:24:08]FM_GetShiftState done [08:24:08]req_shift_opened done [08:24:08]requested_item shift.open_date is exist - process it [08:24:08]req_shift_open_date [08:24:08]req_shift_open_date done [08:24:08]produce_requested_data done [08:24:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162418,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:24:08]process_action_free close_receipt [08:24:08]json_value_free [08:24:08]json_value_free done [08:24:08]process_json_proto returns [08:24:08]Send response to host [08:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162418,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:24:08]free response buf [08:24:08]execute_script done [08:24:08]execute_script returns [08:24:08]free content buf [08:24:08]Sock 8.Close socket [08:24:08]Sock 8.Thread stoped [08:24:11]OFD Sender: No OFD packet to send [08:24:16]OFD Sender: No OFD packet to send [08:24:21]OFD Sender: No OFD packet to send [08:24:26]OFD Sender: No OFD packet to send [08:24:31]OFD Sender: No OFD packet to send [08:24:36]OFD Sender: No OFD packet to send [08:24:41]OFD Sender: No OFD packet to send [08:24:46]OFD Sender: No OFD packet to send [08:24:51]OFD Sender: No OFD packet to send [08:24:56]OFD Sender: No OFD packet to send [08:25:01]OFD Sender: No OFD packet to send [08:25:06]OFD Sender: No OFD packet to send [08:25:11]OFD Sender: No OFD packet to send [08:25:16]OFD Sender: No OFD packet to send [08:25:21]OFD Sender: No OFD packet to send [08:25:26]OFD Sender: No OFD packet to send [08:25:31]OFD Sender: No OFD packet to send [08:25:36]OFD Sender: No OFD packet to send [08:25:41]OFD Sender: No OFD packet to send [08:25:46]OFD Sender: No OFD packet to send [08:25:51]OFD Sender: No OFD packet to send [08:25:56]OFD Sender: No OFD packet to send [08:26:01]OFD Sender: No OFD packet to send [08:26:06]OFD Sender: No OFD packet to send [08:26:11]OFD Sender: No OFD packet to send [08:26:16]OFD Sender: No OFD packet to send [08:26:21]OFD Sender: No OFD packet to send [08:26:26]OFD Sender: No OFD packet to send [08:26:31]OFD Sender: No OFD packet to send [08:26:36]OFD Sender: No OFD packet to send [08:26:41]OFD Sender: No OFD packet to send [08:26:44]accept exits with 9 [08:26:44]New connection [08:26:44]New thread 3067006308 created [08:26:44]Thread 3066862948 joined [08:26:44]Waiting for new connection... [08:26:44] Sock 9.Parse request [08:26:44]Sock 9.Check first char [08:26:44]Sock 9.First char is OK [08:26:44]request: POST /json_proto HTTP/1.0 [08:26:44]Method: POST [08:26:44]URL: /json_proto [08:26:44]Method is POST - this is cgi request [08:26:44]url: /json_proto [08:26:44]query_string will be loaded in cgi processing [08:26:44]execute_cgi json_proto POST (null) [08:26:44]execute_cgi path=json_proto method=POST [08:26:44]POST find Content-Length [08:26:44]Host: 172.17.39.67:8080 [08:26:44]Content-Length: 688 [08:26:44]Content-Type: application/json [08:26:44] [08:26:44]POST finish read [08:26:44]Found Content-Length = 688 [08:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:26:44]execute_script... [08:26: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)1318946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:26:44]POST & json_proto [08:26:44]process_json_proto [08:26:44]json parsed OK: [08:26:44]protocol is kg_v1.0 [08:26:44]action value=close_receipt [08:26:44]process_action close_receipt [08:26:44]cmd_close_receipt [08:26:44]MH_GetDate [08:26:44]Write to MH i2c: F0 00 00 1E 06 13 [08:26:44]Write i2c OK [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 09 00 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: F0 09 00 1E 06 00 51 3A 92 66 FA E9 8E 66 76 [08:26:44]GetLastDocTimeStamp 1720859056 [08:26:44]current date 1720859217 [08:26:44]FM_GetShiftState [08:26:44]SAM_PROTO_GetShiftState [08:26:44]wFMCommunicate request_size=4 [08:26:44]MH_SAM_APDU [08:26:44]CAPDU: 80 13 01 00 [08:26:44]Write to MH i2c: E2 08 00 1F 06 80 13 01 00 00 00 00 00 A2 [08:26:44]Write i2c OK [08:26:44]MH_I2C_Read... [08:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:44]Read from MH i2c: E2 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: E2 0E 00 [08:26:44]MH_I2C_Read... [08:26:44]Read from MH i2c: E2 0E 00 1F 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9C [08:26:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:26:44]wFMCommunicate OK [08:26:44]SAM_PROTO_GetShiftState done [08:26:44]FM_GetShiftState done [08:26:44]opened in 1720828979 [08:26:44]opened+sec_in_day 1720915379 [08:26:44]quantity*price = 100042 [08:26:44]sum+1 = 100044 [08:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 87 13.07.2024 08:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162419 ФПД: 38982093724199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082657&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162419&fm=38982093724199&tin=02508201610067®Number=0000000000090858&sum=100000 [08:26:45]StoreToDocumentArchive [08:26:45]shift 462 fd 162419 [08:26:45]save to /storage/0462/doc_00162419 [08:26:45]save last doc name /storage/0462/doc_00162419 to /storage/kkm_last_doc_name [08:26:45]save OK [08:26:45]Clear old archive folders... [08:26:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:26:45]tlvbuf is 01A1C620 [08:26:45]SAM_PROTO_ClearQueue [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 09 00 00 [08:26:45]Write to MH i2c: E2 08 00 2C 06 80 09 00 00 00 00 00 00 A4 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 2C 06 00 90 00 A6 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]SAM_PROTO_ClearQueue done [08:26:45]KKMCreateOFDPacket [08:26:45]OFDProtocolAddRootSTLVToBuf [08:26:45]FM_MakeSignedData [08:26:45]FM_MakeSignedData [08:26:45]SAM_PROTO_SignData [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 01 02 [08:26:45]Write to MH i2c: E2 08 00 2D 06 80 0D 01 02 00 00 00 00 AC [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 2D 06 00 90 00 A7 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=255 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 51 3A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7A 02 00 35 04 06 00 [08:26:45]Write to MH i2c: E2 02 01 2E 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 51 3A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7A 02 00 35 04 06 00 00 00 DD [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 2E 06 00 90 00 A8 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=11 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 02 02 06 23 74 39 D9 5A 27 [08:26:45]Write to MH i2c: E2 0E 00 2F 06 80 0D 02 02 06 00 23 74 39 D9 5A 27 00 00 E5 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 03 00 2F 06 00 90 00 A9 [08:26:45]RAPDU: 90 00 [08:26:45]wFMCommunicate OK [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 0D 03 02 [08:26:45]Write to MH i2c: E2 08 00 30 06 80 0D 03 02 00 00 00 00 B1 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 0B 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 0B 00 30 06 00 3D 8F D3 0C 32 3A 90 F4 90 00 4D [08:26:45]RAPDU: 3D 8F D3 0C 32 3A 90 F4 90 00 [08:26:45]wFMCommunicate OK [08:26:45]SAM_PROTO_SignData done [08:26:45]FM_MakeSignedData done [08:26:45]CreateOFDProtocolMessage [08:26:45]wFMCommunicate request_size=4 [08:26:45]MH_SAM_APDU [08:26:45]CAPDU: 80 11 00 00 [08:26:45]Write to MH i2c: E2 08 00 31 06 80 11 00 00 00 00 00 00 B1 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:45]Read from MH i2c: E2 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 17 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: E2 17 00 31 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 11 [08:26:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:26:45]wFMCommunicate OK [08:26:45]CreateOFDProtocolMessage done [08:26:45]OFDSenderStorePacket 162419 [08:26:45]StoreOFDPacket docnum=162419 [08:26:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 13 42 08 01 23 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 51 3A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7A 02 00 35 04 06 00 23 74 39 D9 5A 27 3D 8F D3 0C 32 3A 90 F4 [08:26:45]CheckFolder [08:26:45]dirname=/storage/ofd_packets [08:26:45]CheckFolder done [08:26:45]ProducePacketName [08:26:45]name=ofd_packets/00162419 [08:26:45]NVStorageSaveData ofd_packets/00162419 [08:26:45]File name is /storage/ofd_packets/00162419 [08:26:45]Write 302 bytes [08:26:45]NVStorageSaveData done [08:26:45]OFDSenderStorePacket done [08:26:45]KKMCreateOFDPacket done [08:26:45]NVStorageSaveData kkm_last_timestamp [08:26:45]File name is /storage/kkm_last_timestamp [08:26:45]Write 4 bytes [08:26:45]NVStorageSaveData done [08:26:45]ExternCall_PrintAddStr [08:26:45]wPrintStart [08:26:45]Write to MH i2c: 01 00 00 32 06 38 [08:26:45]Write i2c OK [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 07 00 [08:26:45]MH_I2C_Read... [08:26:45]Read from MH i2c: 01 07 00 32 06 00 00 00 00 00 FF 0F 4D [08:26:45]RasterBufferAndPrint [08:26:45]line Счет N : (1)1318946 [08:26:45]line ИНН: 02508201610067 [08:26:45]line Контрольно-Кассовый Чек [08:26:45]line ПРОДАЖА [08:26:45]line ТРК (МРК, ГНК) : 41 [08:26:45]line Товар: 2710194210 [08:26:45]line ДТ(л)-К-5 [08:26:45]line 13.780 * 72.60 [08:26:45]line = 1000.43 [08:26:45]line НДС 12% НСП 1% [08:26:45]line > о реализуемом товаре [08:26:45]line ОКРУГЛЕНИЕ: -0.43 [08:26:45]line ИТОГО: 1000.00 [08:26:45]line Внесено: 1000.00 [08:26:45]line СДАЧА: 0.00 [08:26:45]line НСП 1% : 8.85 [08:26:45]line НДС 12% : 106.24 [08:26:45]line Наличными: 1000.00 [08:26:45]line Безнал.: 0.00 [08:26:45]line Место: АЗС № 140 "Партнер Нефть" [08:26:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:26:45]line СНО: Общий режим [08:26:45]line Чек 87 13.07.2024 08:26 [08:26:45]line Смена: 462 ФФД: 1.0 [08:26:45]line ЗНМ: 0300000129 [08:26:45]line РНМ: 0000000000090858 [08:26:45]line Версия ККМ: 001 [08:26:45]line ФМ: 0000000000874899 [08:26:45]line ФД: 162419 [08:26:45]line ФПД: 38982093724199 [08:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T082657&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162419&fm=38982093724199&tin=02508201610067®Number=0000000000090858&sum=100000 [08:26:46]OFD Sender: Processing packet 162419 [packets to send 105, broken 104] [08:26:46]ProducePacketName [08:26:46]name=ofd_packets/00162419 [08:26:46]OFD Sender: To server: pG, [08:26:46]CommunicateWithHost lk.salyk.kg:30040 [08:26:46]ConnectInit lk.salyk.kg [08:26:46]written 0, free lines is 4095 [08:26:46]Connected sock=10 [08:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 13 42 08 01 23 47 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 51 3A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7A 02 00 35 04 06 00 23 74 39 D9 5A 27 3D 8F D3 0C 32 3A 90 F4 [08:26:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 97 E6 47 00 E1 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7A 02 00 F4 03 04 00 66 E6 91 66 B6 04 01 00 00 9A 14 09 DA 77 5A 13 10 [08:26:46]CommunicateWithHost err = 0 [08:26:46]CheckOFDResponse [08:26:46]1017 (14) - 77093643461234 [08:26:46]1041 (16) - 0000000000874899 [08:26:46]1040 (4) - 162419 [08:26:46]1012 (4) - 13.07.2024 02:28 [08:26:46]1206 (1) - 0 [08:26:46]OFD Sender: Remove packet 162419 [08:26:46]ProducePacketName [08:26:46]name=ofd_packets/00162419 [08:26:46]NVStorageDeleteData [08:26:46]Write to MH i2c: 01 00 00 5D 06 63 [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 07 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: 01 07 00 5D 06 00 00 00 00 00 F3 0C 69 [08:26:46]RasterBufferAndPrint [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]line [08:26:46]written 0, free lines is 3324 [08:26:46]MH_Cut [08:26:46]Write to MH i2c: D1 01 00 64 06 01 3C [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 01 00 [08:26:46]MH_I2C_Read... [08:26:46]Read from MH i2c: D1 01 00 64 06 00 3B [08:26:46]Write to MH i2c: 01 00 00 65 06 6B [08:26:46]Write i2c OK [08:26:46]MH_I2C_Read... [08:26:46]OFD Sender: No OFD packet to send [08:26:47]*** Cut start [08:26:47]*** Purtial cut [08:26:47]*** Stage 1: CUTSNS_PIN = 1 [08:26:47]Read from MH i2c: 01 [08:26:47]MH_I2C_Read... [08:26:47]*** Stop cut motor [08:26:47]*** Cut end [08:26:47]Read from MH i2c: 01 07 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: 01 07 00 65 06 00 00 00 00 00 FF 0F 80 [08:26:47]process_action close_receipt done [08:26:47]requested_data is exist [08:26:47]produce_requested_data [08:26:47]requested_item fm.sn is exist - process it [08:26:47]wFMCommunicate request_size=4 [08:26:47]MH_SAM_APDU [08:26:47]CAPDU: 80 11 00 00 [08:26:47]Write to MH i2c: E2 08 00 66 06 80 11 00 00 00 00 00 00 E6 [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:47]Read from MH i2c: E2 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: E2 17 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: E2 17 00 66 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [08:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:26:47]wFMCommunicate OK [08:26:47]requested_item fd.num is exist - process it [08:26:47]SAM_PROTO_GetFieldsCounters [08:26:47]wFMCommunicate request_size=4 [08:26:47]MH_SAM_APDU [08:26:47]CAPDU: 80 13 00 00 [08:26:47]Write to MH i2c: E2 08 00 67 06 80 13 00 00 00 00 00 00 E9 [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:47]Read from MH i2c: E2 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: E2 62 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: E2 62 00 67 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 73 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [08:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 73 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:47]wFMCommunicate OK [08:26:47]SAM_PROTO_GetFieldsCounters done [08:26:47]requested_item shift.num is exist - process it [08:26:47]requested_item shift.opened is exist - process it [08:26:47]req_shift_opened [08:26:47]FM_GetShiftState [08:26:47]SAM_PROTO_GetShiftState [08:26:47]wFMCommunicate request_size=4 [08:26:47]MH_SAM_APDU [08:26:47]CAPDU: 80 13 01 00 [08:26:47]Write to MH i2c: E2 08 00 68 06 80 13 01 00 00 00 00 00 EB [08:26:47]Write i2c OK [08:26:47]MH_I2C_Read... [08:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:47]Read from MH i2c: E2 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: E2 0E 00 [08:26:47]MH_I2C_Read... [08:26:47]Read from MH i2c: E2 0E 00 68 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E5 [08:26:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:26:47]wFMCommunicate OK [08:26:47]SAM_PROTO_GetShiftState done [08:26:47]FM_GetShiftState done [08:26:47]req_shift_opened done [08:26:47]requested_item shift.open_date is exist - process it [08:26:47]req_shift_open_date [08:26:47]req_shift_open_date done [08:26:47]produce_requested_data done [08:26:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162419,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:26:47]process_action_free close_receipt [08:26:47]json_value_free [08:26:47]json_value_free done [08:26:47]process_json_proto returns [08:26:47]Send response to host [08:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162419,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:26:47]free response buf [08:26:47]execute_script done [08:26:47]execute_script returns [08:26:47]free content buf [08:26:47]Sock 9.Close socket [08:26:47]Sock 9.Thread stoped [08:26:51]OFD Sender: No OFD packet to send [08:26:56]OFD Sender: No OFD packet to send [08:27:01]OFD Sender: No OFD packet to send [08:27:06]OFD Sender: No OFD packet to send [08:27:11]OFD Sender: No OFD packet to send [08:27:16]OFD Sender: No OFD packet to send [08:27:21]OFD Sender: No OFD packet to send [08:27:26]OFD Sender: No OFD packet to send [08:27:31]OFD Sender: No OFD packet to send [08:27:36]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:29:59]accept exits with 8 [08:29:59]New connection [08:29:59]New thread 3066862948 created [08:29:59]Thread 3067006308 joined [08:29:59]Waiting for new connection... [08:29:59] Sock 8.Parse request [08:29:59]Sock 8.Check first char [08:29:59]Sock 8.First char is OK [08:29:59]request: POST /json_proto HTTP/1.0 [08:29:59]Method: POST [08:29:59]URL: /json_proto [08:29:59]Method is POST - this is cgi request [08:29:59]url: /json_proto [08:29:59]query_string will be loaded in cgi processing [08:29:59]execute_cgi json_proto POST (null) [08:29:59]execute_cgi path=json_proto method=POST [08:29:59]POST find Content-Length [08:29:59]Host: 172.17.39.67:8080 [08:29:59]Content-Length: 1218 [08:29:59]Content-Type: application/json [08:29:59] [08:29:59]POST finish read [08:29:59]Found Content-Length = 1218 [08:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318947\u000A13.07.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 55.100 x 72.60\u000A\u0418\u0422\u041E\u0413: 4000.26\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32802\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:59]execute_script... [08:29:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318947\u000A13.07.2024 08:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 55.100 x 72.60\u000A\u0418\u0422\u041E\u0413: 4000.26\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32802\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:59]POST & json_proto [08:29:59]process_json_proto [08:29:59]json parsed OK: [08:29:59]protocol is kg_v1.0 [08:29:59]action value=print_text [08:29:59]process_action print_text [08:29:59]cmd_print_text [08:29:59]ExternCall_PrintAddStr [08:29:59]wPrintStart [08:29:59]Write to MH i2c: 01 00 00 69 06 6F [08:29:59]Write i2c OK [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: 01 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: 01 07 00 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: 01 07 00 69 06 00 00 00 00 00 FF 0F 84 [08:29:59]RasterBufferAndPrint [08:29:59]line *****ТОВАРНЫЙ ЧЕК***** [08:29:59]line АЗС 140 [08:29:59]line Партнер нефть [08:29:59]line 02508201610067 [08:29:59]line Кассир : Шамбеталиев А. [08:29:59]line Счет N : (1)1318947 [08:29:59]line 13.07.2024 08:27 [08:29:59]line ПРОДАЖА [08:29:59]line ТРК (МРК, ГНК): 21 [08:29:59]line Вид ГСМ : 2710194210 [08:29:59]line ДТ(л)-К-5 [08:29:59]line 55.100 x 72.60 [08:29:59]line ИТОГ: 4000.26 [08:29:59]line Тип оплаты: Талоны: Топливная Карта [08:29:59]line 32802 [08:29:59]line ______________________ [08:29:59]line (подпись) [08:29:59]written 0, free lines is 4095 [08:29:59]Write to MH i2c: 01 00 00 7E 06 84 [08:29:59]Write i2c OK [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: 01 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: 01 07 00 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: 01 07 00 7E 06 00 00 00 00 00 F5 0D 8D [08:29:59]RasterBufferAndPrint [08:29:59]line [08:29:59]line [08:29:59]line [08:29:59]line [08:29:59]line [08:29:59]written 0, free lines is 3575 [08:29:59]MH_Cut [08:29:59]Write to MH i2c: D1 01 00 85 06 01 5D [08:29:59]Write i2c OK [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: D1 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: D1 01 00 [08:29:59]MH_I2C_Read... [08:29:59]Read from MH i2c: D1 01 00 85 06 00 5C [08:29:59]Write to MH i2c: 01 00 00 86 06 8C [08:29:59]Write i2c OK [08:29:59]MH_I2C_Read... [08:30:00]*** Cut start [08:30:00]*** Purtial cut [08:30:00]*** CUTSNS_PIN = 0 [08:30:00]*** Stage 1: CUTSNS_PIN = 1 [08:30:02]OFD Sender: No OFD packet to send [08:30:02]Read from MH i2c: 01 [08:30:02]MH_I2C_Read... [08:30:02]*** Stop cut motor [08:30:02]*** Cut end [08:30:02]Read from MH i2c: 01 07 00 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: 01 07 00 86 06 00 00 00 00 00 FF 0F A1 [08:30:02]process_action print_text done [08:30:02]requested_data is exist [08:30:02]produce_requested_data [08:30:02]requested_item fm.sn is exist - process it [08:30:02]wFMCommunicate request_size=4 [08:30:02]MH_SAM_APDU [08:30:02]CAPDU: 80 11 00 00 [08:30:02]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [08:30:02]Write i2c OK [08:30:02]MH_I2C_Read... [08:30:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:02]Read from MH i2c: E2 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: E2 17 00 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 67 [08:30:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:30:02]wFMCommunicate OK [08:30:02]requested_item fd.num is exist - process it [08:30:02]SAM_PROTO_GetFieldsCounters [08:30:02]wFMCommunicate request_size=4 [08:30:02]MH_SAM_APDU [08:30:02]CAPDU: 80 13 00 00 [08:30:02]Write to MH i2c: E2 08 00 88 06 80 13 00 00 00 00 00 00 0A [08:30:02]Write i2c OK [08:30:02]MH_I2C_Read... [08:30:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:02]Read from MH i2c: E2 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: E2 62 00 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: E2 62 00 88 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 73 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [08:30:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 73 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:02]wFMCommunicate OK [08:30:02]SAM_PROTO_GetFieldsCounters done [08:30:02]requested_item shift.num is exist - process it [08:30:02]requested_item shift.opened is exist - process it [08:30:02]req_shift_opened [08:30:02]FM_GetShiftState [08:30:02]SAM_PROTO_GetShiftState [08:30:02]wFMCommunicate request_size=4 [08:30:02]MH_SAM_APDU [08:30:02]CAPDU: 80 13 01 00 [08:30:02]Write to MH i2c: E2 08 00 89 06 80 13 01 00 00 00 00 00 0C [08:30:02]Write i2c OK [08:30:02]MH_I2C_Read... [08:30:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:02]Read from MH i2c: E2 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: E2 0E 00 [08:30:02]MH_I2C_Read... [08:30:02]Read from MH i2c: E2 0E 00 89 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 06 [08:30:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:30:02]wFMCommunicate OK [08:30:02]SAM_PROTO_GetShiftState done [08:30:02]FM_GetShiftState done [08:30:02]req_shift_opened done [08:30:02]requested_item shift.open_date is exist - process it [08:30:02]req_shift_open_date [08:30:02]req_shift_open_date done [08:30:02]produce_requested_data done [08:30:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162419,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:30:02]process_action_free print_text [08:30:02]json_value_free [08:30:02]json_value_free done [08:30:02]process_json_proto returns [08:30:02]Send response to host [08:30:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162419,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:30:02]free response buf [08:30:02]execute_script done [08:30:02]execute_script returns [08:30:02]free content buf [08:30:02]Sock 8.Close socket [08:30:02]Sock 8.Thread stoped [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34: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:02]accept exits with 9 [08:35:02]New connection [08:35:02]New thread 3067006308 created [08:35:02]Thread 3066862948 joined [08:35:02]Waiting for new connection... [08:35:02] Sock 9.Parse request [08:35:02]Sock 9.Check first char [08:35:02]Sock 9.First char is OK [08:35:02]request: POST /json_proto HTTP/1.0 [08:35:02]Method: POST [08:35:02]URL: /json_proto [08:35:02]Method is POST - this is cgi request [08:35:02]url: /json_proto [08:35:02]query_string will be loaded in cgi processing [08:35:02]execute_cgi json_proto POST (null) [08:35:02]execute_cgi path=json_proto method=POST [08:35:02]POST find Content-Length [08:35:02]Host: 172.17.39.67:8080 [08:35:02]Content-Length: 801 [08:35:02]Content-Type: application/json [08:35:02] [08:35:02]POST finish read [08:35:02]Found Content-Length = 801 [08:35:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.360, "sum" : 487.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 487.97 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:02]execute_script... [08:35: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)1318948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.360, "sum" : 487.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 487.97 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:02]POST & json_proto [08:35:02]process_json_proto [08:35:02]json parsed OK: [08:35:02]protocol is kg_v1.0 [08:35:02]action value=close_receipt [08:35:02]process_action close_receipt [08:35:02]cmd_close_receipt [08:35:02]MH_GetDate [08:35:02]Write to MH i2c: F0 00 00 8A 06 7F [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: F0 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: F0 09 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: F0 09 00 8A 06 00 43 3C 92 66 FA E9 8E 66 D6 [08:35:02]GetLastDocTimeStamp 1720859217 [08:35:02]current date 1720859715 [08:35:02]FM_GetShiftState [08:35:02]SAM_PROTO_GetShiftState [08:35:02]wFMCommunicate request_size=4 [08:35:02]MH_SAM_APDU [08:35:02]CAPDU: 80 13 01 00 [08:35:02]Write to MH i2c: E2 08 00 8B 06 80 13 01 00 00 00 00 00 0E [08:35:02]Write i2c OK [08:35:02]MH_I2C_Read... [08:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:02]Read from MH i2c: E2 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 0E 00 [08:35:02]MH_I2C_Read... [08:35:02]Read from MH i2c: E2 0E 00 8B 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 08 [08:35:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:35:02]wFMCommunicate OK [08:35:02]SAM_PROTO_GetShiftState done [08:35:02]FM_GetShiftState done [08:35:02]opened in 1720828979 [08:35:02]opened+sec_in_day 1720915379 [08:35:02]quantity*price = 48796 [08:35:02]sum+1 = 48798 [08:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 487.97 НСП 1% : 4.32 НДС 12% : 51.82 Наличными: 0.00 Безнал.: 487.97 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 88 13.07.2024 08:35 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162420 ФПД: 26178861208473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083516&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162420&fm=26178861208473&tin=02508201610067®Number=0000000000090858&sum=48797 [08:35:03]StoreToDocumentArchive [08:35:03]shift 462 fd 162420 [08:35:03]save to /storage/0462/doc_00162420 [08:35:03]save last doc name /storage/0462/doc_00162420 to /storage/kkm_last_doc_name [08:35:03]save OK [08:35:03]Clear old archive folders... [08:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:03]tlvbuf is 01C58830 [08:35:03]SAM_PROTO_ClearQueue [08:35:03]wFMCommunicate request_size=4 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 09 00 00 [08:35:03]Write to MH i2c: E2 08 00 98 06 80 09 00 00 00 00 00 00 10 [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:03]Read from MH i2c: E2 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 03 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 03 00 98 06 00 90 00 12 [08:35:03]RAPDU: 90 00 [08:35:03]wFMCommunicate OK [08:35:03]SAM_PROTO_ClearQueue done [08:35:03]KKMCreateOFDPacket [08:35:03]OFDProtocolAddRootSTLVToBuf [08:35:03]FM_MakeSignedData [08:35:03]FM_MakeSignedData [08:35:03]SAM_PROTO_SignData [08:35:03]wFMCommunicate request_size=4 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 0D 01 02 [08:35:03]Write to MH i2c: E2 08 00 99 06 80 0D 01 02 00 00 00 00 18 [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:03]Read from MH i2c: E2 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 03 00 [08:35:03]MH_I2C_Read... [08:35:03]Read from MH i2c: E2 03 00 99 06 00 90 00 13 [08:35:03]RAPDU: 90 00 [08:35:03]wFMCommunicate OK [08:35:03]wFMCommunicate request_size=255 [08:35:03]MH_SAM_APDU [08:35:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9D BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D BE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 44 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7A 02 00 35 04 06 00 17 [08:35:03]Write to MH i2c: E2 02 01 9A 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9D BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D BE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 44 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7A 02 00 35 04 06 00 17 00 00 C9 [08:35:03]Write i2c OK [08:35:03]MH_I2C_Read... [08:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:04]Read from MH i2c: E2 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 03 00 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 03 00 9A 06 00 90 00 14 [08:35:04]RAPDU: 90 00 [08:35:04]wFMCommunicate OK [08:35:04]wFMCommunicate request_size=10 [08:35:04]MH_SAM_APDU [08:35:04]CAPDU: 80 0D 02 02 05 CF 3D B9 13 99 [08:35:04]Write to MH i2c: E2 0D 00 9B 06 80 0D 02 02 05 00 CF 3D B9 13 99 00 00 96 [08:35:04]Write i2c OK [08:35:04]MH_I2C_Read... [08:35:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:04]Read from MH i2c: E2 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 03 00 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [08:35:04]RAPDU: 90 00 [08:35:04]wFMCommunicate OK [08:35:04]wFMCommunicate request_size=4 [08:35:04]MH_SAM_APDU [08:35:04]CAPDU: 80 0D 03 02 [08:35:04]Write to MH i2c: E2 08 00 9C 06 80 0D 03 02 00 00 00 00 1D [08:35:04]Write i2c OK [08:35:04]MH_I2C_Read... [08:35:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:04]Read from MH i2c: E2 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 0B 00 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 0B 00 9C 06 00 A8 01 FF D3 39 64 46 8B 90 00 07 [08:35:04]RAPDU: A8 01 FF D3 39 64 46 8B 90 00 [08:35:04]wFMCommunicate OK [08:35:04]SAM_PROTO_SignData done [08:35:04]FM_MakeSignedData done [08:35:04]CreateOFDProtocolMessage [08:35:04]wFMCommunicate request_size=4 [08:35:04]MH_SAM_APDU [08:35:04]CAPDU: 80 11 00 00 [08:35:04]Write to MH i2c: E2 08 00 9D 06 80 11 00 00 00 00 00 00 1D [08:35:04]Write i2c OK [08:35:04]MH_I2C_Read... [08:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:04]Read from MH i2c: E2 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 17 00 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: E2 17 00 9D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7D [08:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:35:04]wFMCommunicate OK [08:35:04]CreateOFDProtocolMessage done [08:35:04]OFDSenderStorePacket 162420 [08:35:04]StoreOFDPacket docnum=162420 [08:35:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 46 0D 07 01 55 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9D BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D BE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 44 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7A 02 00 35 04 06 00 17 CF 3D B9 13 99 A8 01 FF D3 39 64 46 8B [08:35:04]CheckFolder [08:35:04]dirname=/storage/ofd_packets [08:35:04]CheckFolder done [08:35:04]ProducePacketName [08:35:04]name=ofd_packets/00162420 [08:35:04]NVStorageSaveData ofd_packets/00162420 [08:35:04]File name is /storage/ofd_packets/00162420 [08:35:04]Write 301 bytes [08:35:04]NVStorageSaveData done [08:35:04]OFDSenderStorePacket done [08:35:04]KKMCreateOFDPacket done [08:35:04]NVStorageSaveData kkm_last_timestamp [08:35:04]File name is /storage/kkm_last_timestamp [08:35:04]Write 4 bytes [08:35:04]NVStorageSaveData done [08:35:04]ExternCall_PrintAddStr [08:35:04]wPrintStart [08:35:04]Write to MH i2c: 01 00 00 9E 06 A4 [08:35:04]Write i2c OK [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: 01 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: 01 07 00 [08:35:04]MH_I2C_Read... [08:35:04]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 FF 0F B9 [08:35:04]RasterBufferAndPrint [08:35:04]line Счет N : (1)1318948 [08:35:04]line ИНН: 02508201610067 [08:35:04]line Контрольно-Кассовый Чек [08:35:04]line ПРОДАЖА [08:35:04]line ТРК (МРК, ГНК) : 53 [08:35:04]line Товар: 2710124130 [08:35:04]line Аи-92-К-5 [08:35:04]line 7.360 * 66.30 [08:35:04]line = 487.97 [08:35:04]line НДС 12% НСП 1% [08:35:04]line > о реализуемом товаре [08:35:04]line ИТОГО: 487.97 [08:35:04]line НСП 1% : 4.32 [08:35:04]line НДС 12% : 51.82 [08:35:04]line Наличными: 0.00 [08:35:04]line Безнал.: 487.97 [08:35:04]line Место: АЗС № 140 "Партнер Нефть" [08:35:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:35:04]line СНО: Общий режим [08:35:04]line Чек 88 13.07.2024 08:35 [08:35:04]line Смена: 462 ФФД: 1.0 [08:35:04]line ЗНМ: 0300000129 [08:35:04]line РНМ: 0000000000090858 [08:35:04]line Версия ККМ: 001 [08:35:04]line Платежная система: O! деньги [08:35:04]line ФМ: 0000000000874899 [08:35:04]line ФД: 162420 [08:35:04]line ФПД: 26178861208473 [08:35:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083516&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162420&fm=26178861208473&tin=02508201610067®Number=0000000000090858&sum=48797 [08:35:04]OFD Sender: Processing packet 162420 [packets to send 105, broken 104] [08:35:04]ProducePacketName [08:35:04]name=ofd_packets/00162420 [08:35:04]OFD Sender: To server: pG, [08:35:04]CommunicateWithHost lk.salyk.kg:30040 [08:35:04]ConnectInit lk.salyk.kg [08:35:04]written 0, free lines is 4095 [08:35:04]Connected sock=10 [08:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 46 0D 07 01 55 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C0 1C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9D BE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D BE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9D BE 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 44 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7A 02 00 35 04 06 00 17 CF 3D B9 13 99 A8 01 FF D3 39 64 46 8B [08:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0F 36 47 00 F3 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7A 02 00 F4 03 04 00 58 E8 91 66 B6 04 01 00 00 CC A1 8C 47 CA 32 CB FE [08:35:04]CommunicateWithHost err = 0 [08:35:04]CheckOFDResponse [08:35:04]1017 (14) - 77093643461234 [08:35:04]1041 (16) - 0000000000874899 [08:35:04]1040 (4) - 162420 [08:35:04]1012 (4) - 13.07.2024 02:37 [08:35:04]1206 (1) - 0 [08:35:04]OFD Sender: Remove packet 162420 [08:35:04]ProducePacketName [08:35:04]name=ofd_packets/00162420 [08:35:04]NVStorageDeleteData [08:35:05]Write to MH i2c: 01 00 00 C8 06 CE [08:35:05]Write i2c OK [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: 01 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: 01 07 00 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: 01 07 00 C8 06 00 00 00 00 00 F3 0C D4 [08:35:05]RasterBufferAndPrint [08:35:05]line [08:35:05]line [08:35:05]line [08:35:05]line [08:35:05]line [08:35:05]written 0, free lines is 3320 [08:35:05]MH_Cut [08:35:05]Write to MH i2c: D1 01 00 CF 06 01 A7 [08:35:05]Write i2c OK [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: D1 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: D1 01 00 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: D1 01 00 CF 06 00 A6 [08:35:05]Write to MH i2c: 01 00 00 D0 06 D6 [08:35:05]Write i2c OK [08:35:05]MH_I2C_Read... [08:35:05]OFD Sender: No OFD packet to send [08:35:05]*** Cut start [08:35:05]*** Purtial cut [08:35:05]*** Stage 1: CUTSNS_PIN = 1 [08:35:05]Read from MH i2c: 01 [08:35:05]MH_I2C_Read... [08:35:05]*** Stop cut motor [08:35:05]*** Cut end [08:35:05]Read from MH i2c: 01 07 00 [08:35:05]MH_I2C_Read... [08:35:05]Read from MH i2c: 01 07 00 D0 06 00 00 00 00 00 FF 0F EB [08:35:05]process_action close_receipt done [08:35:05]requested_data is exist [08:35:05]produce_requested_data [08:35:05]requested_item fm.sn is exist - process it [08:35:05]wFMCommunicate request_size=4 [08:35:05]MH_SAM_APDU [08:35:05]CAPDU: 80 11 00 00 [08:35:05]Write to MH i2c: E2 08 00 D1 06 80 11 00 00 00 00 00 00 51 [08:35:06]Write i2c OK [08:35:06]MH_I2C_Read... [08:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:06]Read from MH i2c: E2 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 17 00 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 17 00 D1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B1 [08:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:35:06]wFMCommunicate OK [08:35:06]requested_item fd.num is exist - process it [08:35:06]SAM_PROTO_GetFieldsCounters [08:35:06]wFMCommunicate request_size=4 [08:35:06]MH_SAM_APDU [08:35:06]CAPDU: 80 13 00 00 [08:35:06]Write to MH i2c: E2 08 00 D2 06 80 13 00 00 00 00 00 00 54 [08:35:06]Write i2c OK [08:35:06]MH_I2C_Read... [08:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:06]Read from MH i2c: E2 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 62 00 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 62 00 D2 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 74 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [08:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 74 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:06]wFMCommunicate OK [08:35:06]SAM_PROTO_GetFieldsCounters done [08:35:06]requested_item shift.num is exist - process it [08:35:06]requested_item shift.opened is exist - process it [08:35:06]req_shift_opened [08:35:06]FM_GetShiftState [08:35:06]SAM_PROTO_GetShiftState [08:35:06]wFMCommunicate request_size=4 [08:35:06]MH_SAM_APDU [08:35:06]CAPDU: 80 13 01 00 [08:35:06]Write to MH i2c: E2 08 00 D3 06 80 13 01 00 00 00 00 00 56 [08:35:06]Write i2c OK [08:35:06]MH_I2C_Read... [08:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:06]Read from MH i2c: E2 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 0E 00 [08:35:06]MH_I2C_Read... [08:35:06]Read from MH i2c: E2 0E 00 D3 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 50 [08:35:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:35:06]wFMCommunicate OK [08:35:06]SAM_PROTO_GetShiftState done [08:35:06]FM_GetShiftState done [08:35:06]req_shift_opened done [08:35:06]requested_item shift.open_date is exist - process it [08:35:06]req_shift_open_date [08:35:06]req_shift_open_date done [08:35:06]produce_requested_data done [08:35:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162420,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:35:06]process_action_free close_receipt [08:35:06]json_value_free [08:35:06]json_value_free done [08:35:06]process_json_proto returns [08:35:06]Send response to host [08:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162420,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:35:06]free response buf [08:35:06]execute_script done [08:35:06]execute_script returns [08:35:06]free content buf [08:35:06]Sock 9.Close socket [08:35:06]Sock 9.Thread stoped [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:10]accept exits with 8 [08:36:10]New connection [08:36:10]New thread 3066862948 created [08:36:10]Thread 3067006308 joined [08:36:10]Waiting for new connection... [08:36:10] Sock 8.Parse request [08:36:10]Sock 8.Check first char [08:36:10]Sock 8.First char is OK [08:36:10]request: POST /json_proto HTTP/1.0 [08:36:10]Method: POST [08:36:10]URL: /json_proto [08:36:10]Method is POST - this is cgi request [08:36:10]url: /json_proto [08:36:10]query_string will be loaded in cgi processing [08:36:10]execute_cgi json_proto POST (null) [08:36:10]execute_cgi path=json_proto method=POST [08:36:10]POST find Content-Length [08:36:10]Host: 172.17.39.67:8080 [08:36:10]Content-Length: 688 [08:36:10]Content-Type: application/json [08:36:10] [08:36:10]POST finish read [08:36:10]Found Content-Length = 688 [08:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:10]execute_script... [08:36: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)1318949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:10]POST & json_proto [08:36:10]process_json_proto [08:36:10]json parsed OK: [08:36:10]protocol is kg_v1.0 [08:36:10]action value=close_receipt [08:36:10]process_action close_receipt [08:36:10]cmd_close_receipt [08:36:10]MH_GetDate [08:36:10]Write to MH i2c: F0 00 00 D4 06 C9 [08:36:10]Write i2c OK [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: F0 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: F0 09 00 [08:36:10]MH_I2C_Read... [08:36:10]Read from MH i2c: F0 09 00 D4 06 00 88 3C 92 66 FA E9 8E 66 65 [08:36:10]GetLastDocTimeStamp 1720859716 [08:36:10]current date 1720859784 [08:36:10]FM_GetShiftState [08:36:10]SAM_PROTO_GetShiftState [08:36:10]wFMCommunicate request_size=4 [08:36:10]MH_SAM_APDU [08:36:10]CAPDU: 80 13 01 00 [08:36:10]Write to MH i2c: E2 08 00 D5 06 80 13 01 00 00 00 00 00 58 [08:36:10]Write i2c OK [08:36:10]MH_I2C_Read... [08:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:11]Read from MH i2c: E2 [08:36:11]MH_I2C_Read... [08:36:11]Read from MH i2c: E2 0E 00 [08:36:11]MH_I2C_Read... [08:36:11]Read from MH i2c: E2 0E 00 D5 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 52 [08:36:11]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:36:11]wFMCommunicate OK [08:36:11]SAM_PROTO_GetShiftState done [08:36:11]FM_GetShiftState done [08:36:11]opened in 1720828979 [08:36:11]opened+sec_in_day 1720915379 [08:36:11]quantity*price = 250034 [08:36:11]sum+1 = 250035 [08:36:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 89 13.07.2024 08:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162421 ФПД: 240519320142614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083624&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162421&fm=240519320142614&tin=02508201610067®Number=0000000000090858&sum=250000 [08:36:12]StoreToDocumentArchive [08:36:12]shift 462 fd 162421 [08:36:12]save to /storage/0462/doc_00162421 [08:36:12]save last doc name /storage/0462/doc_00162421 to /storage/kkm_last_doc_name [08:36:12]save OK [08:36:12]Clear old archive folders... [08:36:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:36:12]tlvbuf is 01853C80 [08:36:12]SAM_PROTO_ClearQueue [08:36:12]wFMCommunicate request_size=4 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 09 00 00 [08:36:12]Write to MH i2c: E2 08 00 E2 06 80 09 00 00 00 00 00 00 5A [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 03 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 03 00 E2 06 00 90 00 5C [08:36:12]RAPDU: 90 00 [08:36:12]wFMCommunicate OK [08:36:12]SAM_PROTO_ClearQueue done [08:36:12]KKMCreateOFDPacket [08:36:12]OFDProtocolAddRootSTLVToBuf [08:36:12]FM_MakeSignedData [08:36:12]FM_MakeSignedData [08:36:12]SAM_PROTO_SignData [08:36:12]wFMCommunicate request_size=4 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 0D 01 02 [08:36:12]Write to MH i2c: E2 08 00 E3 06 80 0D 01 02 00 00 00 00 62 [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:12]Read from MH i2c: E2 03 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 03 00 E3 06 00 90 00 5D [08:36:12]RAPDU: 90 00 [08:36:12]wFMCommunicate OK [08:36:12]wFMCommunicate request_size=255 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 88 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7A 02 00 35 04 06 00 [08:36:12]Write to MH i2c: E2 02 01 E4 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 88 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7A 02 00 35 04 06 00 00 00 2B [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 03 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 03 00 E4 06 00 90 00 5E [08:36:12]RAPDU: 90 00 [08:36:12]wFMCommunicate OK [08:36:12]wFMCommunicate request_size=11 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 0D 02 02 06 DA C0 44 A3 83 16 [08:36:12]Write to MH i2c: E2 0E 00 E5 06 80 0D 02 02 06 00 DA C0 44 A3 83 16 00 00 8B [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 03 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 03 00 E5 06 00 90 00 5F [08:36:12]RAPDU: 90 00 [08:36:12]wFMCommunicate OK [08:36:12]wFMCommunicate request_size=4 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 0D 03 02 [08:36:12]Write to MH i2c: E2 08 00 E6 06 80 0D 03 02 00 00 00 00 67 [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 0B 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 0B 00 E6 06 00 70 AF 95 38 67 29 91 F5 90 00 6A [08:36:12]RAPDU: 70 AF 95 38 67 29 91 F5 90 00 [08:36:12]wFMCommunicate OK [08:36:12]SAM_PROTO_SignData done [08:36:12]FM_MakeSignedData done [08:36:12]CreateOFDProtocolMessage [08:36:12]wFMCommunicate request_size=4 [08:36:12]MH_SAM_APDU [08:36:12]CAPDU: 80 11 00 00 [08:36:12]Write to MH i2c: E2 08 00 E7 06 80 11 00 00 00 00 00 00 67 [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:12]Read from MH i2c: E2 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 17 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: E2 17 00 E7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C7 [08:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:36:12]wFMCommunicate OK [08:36:12]CreateOFDProtocolMessage done [08:36:12]OFDSenderStorePacket 162421 [08:36:12]StoreOFDPacket docnum=162421 [08:36:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 94 47 08 01 C6 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 88 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7A 02 00 35 04 06 00 DA C0 44 A3 83 16 70 AF 95 38 67 29 91 F5 [08:36:12]CheckFolder [08:36:12]dirname=/storage/ofd_packets [08:36:12]CheckFolder done [08:36:12]ProducePacketName [08:36:12]name=ofd_packets/00162421 [08:36:12]NVStorageSaveData ofd_packets/00162421 [08:36:12]File name is /storage/ofd_packets/00162421 [08:36:12]Write 302 bytes [08:36:12]NVStorageSaveData done [08:36:12]OFDSenderStorePacket done [08:36:12]KKMCreateOFDPacket done [08:36:12]NVStorageSaveData kkm_last_timestamp [08:36:12]File name is /storage/kkm_last_timestamp [08:36:12]Write 4 bytes [08:36:12]NVStorageSaveData done [08:36:12]ExternCall_PrintAddStr [08:36:12]wPrintStart [08:36:12]Write to MH i2c: 01 00 00 E8 06 EE [08:36:12]Write i2c OK [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: 01 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: 01 07 00 [08:36:12]MH_I2C_Read... [08:36:12]Read from MH i2c: 01 07 00 E8 06 00 00 00 00 00 FF 0F 03 [08:36:12]RasterBufferAndPrint [08:36:12]line Счет N : (1)1318949 [08:36:12]line ИНН: 02508201610067 [08:36:12]line Контрольно-Кассовый Чек [08:36:12]line ПРОДАЖА [08:36:12]line ТРК (МРК, ГНК) : 41 [08:36:12]line Товар: 2710194210 [08:36:12]line ДТ(л)-К-5 [08:36:12]line 34.440 * 72.60 [08:36:12]line = 2500.34 [08:36:12]line НДС 12% НСП 1% [08:36:12]line > о реализуемом товаре [08:36:12]line ОКРУГЛЕНИЕ: -0.34 [08:36:12]line ИТОГО: 2500.00 [08:36:12]line Внесено: 2500.00 [08:36:12]line СДАЧА: 0.00 [08:36:12]line НСП 1% : 22.13 [08:36:12]line НДС 12% : 265.52 [08:36:12]line Наличными: 2500.00 [08:36:12]line Безнал.: 0.00 [08:36:12]line Место: АЗС № 140 "Партнер Нефть" [08:36:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:36:12]line СНО: Общий режим [08:36:12]line Чек 89 13.07.2024 08:36 [08:36:12]line Смена: 462 ФФД: 1.0 [08:36:12]line ЗНМ: 0300000129 [08:36:12]line РНМ: 0000000000090858 [08:36:12]line Версия ККМ: 001 [08:36:12]line ФМ: 0000000000874899 [08:36:12]line ФД: 162421 [08:36:12]line ФПД: 240519320142614 [08:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083624&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162421&fm=240519320142614&tin=02508201610067®Number=0000000000090858&sum=250000 [08:36:12]OFD Sender: Processing packet 162421 [packets to send 105, broken 104] [08:36:12]ProducePacketName [08:36:12]name=ofd_packets/00162421 [08:36:12]OFD Sender: To server: pG, [08:36:12]CommunicateWithHost lk.salyk.kg:30040 [08:36:12]ConnectInit lk.salyk.kg [08:36:12]written 0, free lines is 4095 [08:36:13]Connected sock=10 [08:36:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 94 47 08 01 C6 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 88 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7A 02 00 35 04 06 00 DA C0 44 A3 83 16 70 AF 95 38 67 29 91 F5 [08:36:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 57 47 00 0D BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7A 02 00 F4 03 04 00 9D E8 91 66 B6 04 01 00 00 CA 37 32 88 84 A8 5A 5E [08:36:13]CommunicateWithHost err = 0 [08:36:13]CheckOFDResponse [08:36:13]1017 (14) - 77093643461234 [08:36:13]1041 (16) - 0000000000874899 [08:36:13]1040 (4) - 162421 [08:36:13]1012 (4) - 13.07.2024 02:38 [08:36:13]1206 (1) - 0 [08:36:13]OFD Sender: Remove packet 162421 [08:36:13]ProducePacketName [08:36:13]name=ofd_packets/00162421 [08:36:13]NVStorageDeleteData [08:36:13]Write to MH i2c: 01 00 00 13 07 1A [08:36:13]Write i2c OK [08:36:13]MH_I2C_Read... [08:36:13]Read from MH i2c: 01 [08:36:13]MH_I2C_Read... [08:36:13]Read from MH i2c: 01 07 00 [08:36:13]MH_I2C_Read... [08:36:13]Read from MH i2c: 01 07 00 13 07 00 00 00 00 00 E7 0C 14 [08:36:13]RasterBufferAndPrint [08:36:13]line [08:36:13]line [08:36:13]line [08:36:13]line [08:36:13]line [08:36:13]written 0, free lines is 3309 [08:36:13]MH_Cut [08:36:13]Write to MH i2c: D1 01 00 1A 07 01 F3 [08:36:13]Write i2c OK [08:36:13]MH_I2C_Read... [08:36:13]Read from MH i2c: D1 [08:36:13]MH_I2C_Read... [08:36:13]Read from MH i2c: D1 01 00 [08:36:13]MH_I2C_Read... [08:36:13]Read from MH i2c: D1 01 00 1A 07 00 F2 [08:36:13]Write to MH i2c: 01 00 00 1B 07 22 [08:36:13]Write i2c OK [08:36:13]MH_I2C_Read... [08:36:13]OFD Sender: No OFD packet to send [08:36:14]*** Cut start [08:36:14]*** Purtial cut [08:36:14]*** CUTSNS_PIN = 0 [08:36:14]*** Stage 1: CUTSNS_PIN = 1 [08:36:16]Read from MH i2c: 01 [08:36:16]MH_I2C_Read... [08:36:16]*** Stop cut motor [08:36:16]*** Cut end [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 1B 07 00 00 00 00 00 FF 0F 37 [08:36:16]process_action close_receipt done [08:36:16]requested_data is exist [08:36:16]produce_requested_data [08:36:16]requested_item fm.sn is exist - process it [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 1C 07 80 11 00 00 00 00 00 00 9D [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 1C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FD [08:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:36:16]wFMCommunicate OK [08:36:16]requested_item fd.num is exist - process it [08:36:16]SAM_PROTO_GetFieldsCounters [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 13 00 00 [08:36:16]Write to MH i2c: E2 08 00 1D 07 80 13 00 00 00 00 00 00 A0 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 62 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 62 00 1D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 75 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [08:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 75 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_GetFieldsCounters done [08:36:16]requested_item shift.num is exist - process it [08:36:16]requested_item shift.opened is exist - process it [08:36:16]req_shift_opened [08:36:16]FM_GetShiftState [08:36:16]SAM_PROTO_GetShiftState [08:36:16]wFMCommunicate request_size=4 [08:36:16]MH_SAM_APDU [08:36:16]CAPDU: 80 13 01 00 [08:36:16]Write to MH i2c: E2 08 00 1E 07 80 13 01 00 00 00 00 00 A2 [08:36:16]Write i2c OK [08:36:16]MH_I2C_Read... [08:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:16]Read from MH i2c: E2 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0E 00 [08:36:16]MH_I2C_Read... [08:36:16]Read from MH i2c: E2 0E 00 1E 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9C [08:36:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:36:16]wFMCommunicate OK [08:36:16]SAM_PROTO_GetShiftState done [08:36:16]FM_GetShiftState done [08:36:16]req_shift_opened done [08:36:16]requested_item shift.open_date is exist - process it [08:36:16]req_shift_open_date [08:36:16]req_shift_open_date done [08:36:16]produce_requested_data done [08:36:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162421,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:36:16]process_action_free close_receipt [08:36:16]json_value_free [08:36:16]json_value_free done [08:36:16]process_json_proto returns [08:36:16]Send response to host [08:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162421,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:36:16]free response buf [08:36:16]execute_script done [08:36:16]execute_script returns [08:36:16]free content buf [08:36:16]Sock 8.Close socket [08:36:16]Sock 8.Thread stoped [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37: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]accept exits with 9 [08:37:28]New connection [08:37:28]New thread 3067006308 created [08:37:28]Thread 3066862948 joined [08:37:28]Waiting for new connection... [08:37:28] Sock 9.Parse request [08:37:28]Sock 9.Check first char [08:37:28]Sock 9.First char is OK [08:37:28]request: POST /json_proto HTTP/1.0 [08:37:28]Method: POST [08:37:28]URL: /json_proto [08:37:28]Method is POST - this is cgi request [08:37:28]url: /json_proto [08:37:28]query_string will be loaded in cgi processing [08:37:28]execute_cgi json_proto POST (null) [08:37:28]execute_cgi path=json_proto method=POST [08:37:28]POST find Content-Length [08:37:28]Host: 172.17.39.67:8080 [08:37:28]Content-Length: 679 [08:37:28]Content-Type: application/json [08:37:28] [08:37:28]POST finish read [08:37:28]Found Content-Length = 679 [08:37:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:28]execute_script... [08:37: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)1318952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:28]POST & json_proto [08:37:28]process_json_proto [08:37:28]json parsed OK: [08:37:28]protocol is kg_v1.0 [08:37:28]action value=close_receipt [08:37:28]process_action close_receipt [08:37:28]cmd_close_receipt [08:37:28]MH_GetDate [08:37:28]Write to MH i2c: F0 00 00 1F 07 15 [08:37:28]Write i2c OK [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: F0 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: F0 09 00 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: F0 09 00 1F 07 00 D5 3C 92 66 FA E9 8E 66 FE [08:37:28]GetLastDocTimeStamp 1720859784 [08:37:28]current date 1720859861 [08:37:28]FM_GetShiftState [08:37:28]SAM_PROTO_GetShiftState [08:37:28]wFMCommunicate request_size=4 [08:37:28]MH_SAM_APDU [08:37:28]CAPDU: 80 13 01 00 [08:37:28]Write to MH i2c: E2 08 00 20 07 80 13 01 00 00 00 00 00 A4 [08:37:28]Write i2c OK [08:37:28]MH_I2C_Read... [08:37:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:28]Read from MH i2c: E2 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 0E 00 [08:37:28]MH_I2C_Read... [08:37:28]Read from MH i2c: E2 0E 00 20 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9E [08:37:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:37:28]wFMCommunicate OK [08:37:28]SAM_PROTO_GetShiftState done [08:37:28]FM_GetShiftState done [08:37:28]opened in 1720828979 [08:37:28]opened+sec_in_day 1720915379 [08:37:28]quantity*price = 67029 [08:37:28]sum+1 = 67030 [08:37:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 90 13.07.2024 08:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162422 ФПД: 66688344894233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083741&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162422&fm=66688344894233&tin=02508201610067®Number=0000000000090858&sum=67000 [08:37:29]StoreToDocumentArchive [08:37:29]shift 462 fd 162422 [08:37:29]save to /storage/0462/doc_00162422 [08:37:29]save last doc name /storage/0462/doc_00162422 to /storage/kkm_last_doc_name [08:37:29]save OK [08:37:29]Clear old archive folders... [08:37:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:29]tlvbuf is 01951070 [08:37:29]SAM_PROTO_ClearQueue [08:37:29]wFMCommunicate request_size=4 [08:37:29]MH_SAM_APDU [08:37:29]CAPDU: 80 09 00 00 [08:37:29]Write to MH i2c: E2 08 00 2D 07 80 09 00 00 00 00 00 00 A6 [08:37:29]Write i2c OK [08:37:29]MH_I2C_Read... [08:37:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:29]Read from MH i2c: E2 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 2D 07 00 90 00 A8 [08:37:29]RAPDU: 90 00 [08:37:29]wFMCommunicate OK [08:37:29]SAM_PROTO_ClearQueue done [08:37:29]KKMCreateOFDPacket [08:37:29]OFDProtocolAddRootSTLVToBuf [08:37:29]FM_MakeSignedData [08:37:29]FM_MakeSignedData [08:37:29]SAM_PROTO_SignData [08:37:29]wFMCommunicate request_size=4 [08:37:29]MH_SAM_APDU [08:37:29]CAPDU: 80 0D 01 02 [08:37:29]Write to MH i2c: E2 08 00 2E 07 80 0D 01 02 00 00 00 00 AE [08:37:29]Write i2c OK [08:37:29]MH_I2C_Read... [08:37:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:29]Read from MH i2c: E2 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 2E 07 00 90 00 A9 [08:37:29]RAPDU: 90 00 [08:37:29]wFMCommunicate OK [08:37:29]wFMCommunicate request_size=255 [08:37:29]MH_SAM_APDU [08:37:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D5 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7A 02 00 35 04 06 00 3C [08:37:29]Write to MH i2c: E2 02 01 2F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D5 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7A 02 00 35 04 06 00 3C 00 00 61 [08:37:29]Write i2c OK [08:37:29]MH_I2C_Read... [08:37:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:29]Read from MH i2c: E2 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 [08:37:29]MH_I2C_Read... [08:37:29]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [08:37:30]RAPDU: 90 00 [08:37:30]wFMCommunicate OK [08:37:30]wFMCommunicate request_size=10 [08:37:30]MH_SAM_APDU [08:37:30]CAPDU: 80 0D 02 02 05 A7 17 1B AB 19 [08:37:30]Write to MH i2c: E2 0D 00 30 07 80 0D 02 02 05 00 A7 17 1B AB 19 00 00 58 [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:30]Read from MH i2c: E2 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: E2 03 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [08:37:30]RAPDU: 90 00 [08:37:30]wFMCommunicate OK [08:37:30]wFMCommunicate request_size=4 [08:37:30]MH_SAM_APDU [08:37:30]CAPDU: 80 0D 03 02 [08:37:30]Write to MH i2c: E2 08 00 31 07 80 0D 03 02 00 00 00 00 B3 [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:30]Read from MH i2c: E2 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: E2 0B 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: E2 0B 00 31 07 00 03 59 4E CF 48 93 F4 08 90 00 04 [08:37:30]RAPDU: 03 59 4E CF 48 93 F4 08 90 00 [08:37:30]wFMCommunicate OK [08:37:30]SAM_PROTO_SignData done [08:37:30]FM_MakeSignedData done [08:37:30]CreateOFDProtocolMessage [08:37:30]wFMCommunicate request_size=4 [08:37:30]MH_SAM_APDU [08:37:30]CAPDU: 80 11 00 00 [08:37:30]Write to MH i2c: E2 08 00 32 07 80 11 00 00 00 00 00 00 B3 [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:30]Read from MH i2c: E2 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: E2 17 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: E2 17 00 32 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 13 [08:37:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:37:30]wFMCommunicate OK [08:37:30]CreateOFDProtocolMessage done [08:37:30]OFDSenderStorePacket 162422 [08:37:30]StoreOFDPacket docnum=162422 [08:37:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E4 93 07 01 2A 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D5 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7A 02 00 35 04 06 00 3C A7 17 1B AB 19 03 59 4E CF 48 93 F4 08 [08:37:30]CheckFolder [08:37:30]dirname=/storage/ofd_packets [08:37:30]CheckFolder done [08:37:30]ProducePacketName [08:37:30]name=ofd_packets/00162422 [08:37:30]NVStorageSaveData ofd_packets/00162422 [08:37:30]File name is /storage/ofd_packets/00162422 [08:37:30]Write 301 bytes [08:37:30]NVStorageSaveData done [08:37:30]OFDSenderStorePacket done [08:37:30]KKMCreateOFDPacket done [08:37:30]NVStorageSaveData kkm_last_timestamp [08:37:30]File name is /storage/kkm_last_timestamp [08:37:30]Write 4 bytes [08:37:30]NVStorageSaveData done [08:37:30]ExternCall_PrintAddStr [08:37:30]wPrintStart [08:37:30]Write to MH i2c: 01 00 00 33 07 3A [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 07 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 FF 0F 4F [08:37:30]RasterBufferAndPrint [08:37:30]line Счет N : (1)1318952 [08:37:30]line ИНН: 02508201610067 [08:37:30]line Контрольно-Кассовый Чек [08:37:30]line ПРОДАЖА [08:37:30]line ТРК (МРК, ГНК) : 43 [08:37:30]line Товар: 2710124130 [08:37:30]line Аи-92-К-5 [08:37:30]line 10.110 * 66.30 [08:37:30]line = 670.29 [08:37:30]line НДС 12% НСП 1% [08:37:30]line > о реализуемом товаре [08:37:30]line ОКРУГЛЕНИЕ: -0.29 [08:37:30]line ИТОГО: 670.00 [08:37:30]line Внесено: 670.00 [08:37:30]line СДАЧА: 0.00 [08:37:30]line НСП 1% : 5.93 [08:37:30]line НДС 12% : 71.18 [08:37:30]line Наличными: 670.00 [08:37:30]line Безнал.: 0.00 [08:37:30]line Место: АЗС № 140 "Партнер Нефть" [08:37:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:37:30]line СНО: Общий режим [08:37:30]line Чек 90 13.07.2024 08:37 [08:37:30]line Смена: 462 ФФД: 1.0 [08:37:30]line ЗНМ: 0300000129 [08:37:30]line РНМ: 0000000000090858 [08:37:30]line Версия ККМ: 001 [08:37:30]line ФМ: 0000000000874899 [08:37:30]line ФД: 162422 [08:37:30]line ФПД: 66688344894233 [08:37:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083741&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162422&fm=66688344894233&tin=02508201610067®Number=0000000000090858&sum=67000 [08:37:30]OFD Sender: Processing packet 162422 [packets to send 105, broken 104] [08:37:30]ProducePacketName [08:37:30]name=ofd_packets/00162422 [08:37:30]OFD Sender: To server: pG, [08:37:30]CommunicateWithHost lk.salyk.kg:30040 [08:37:30]ConnectInit lk.salyk.kg [08:37:30]written 0, free lines is 4095 [08:37:30]Connected sock=10 [08:37:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E4 93 07 01 2A 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D5 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7A 02 00 35 04 06 00 3C A7 17 1B AB 19 03 59 4E CF 48 93 F4 08 [08:37:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B6 61 47 00 D5 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 34 38 39 39 10 04 04 00 76 7A 02 00 F4 03 04 00 EA E8 91 66 B6 04 01 00 00 CC 49 17 FB A1 9D 03 99 [08:37:30]CommunicateWithHost err = 0 [08:37:30]CheckOFDResponse [08:37:30]1017 (14) - 77093643461234 [08:37:30]1041 (16) - 0000000000874899 [08:37:30]1040 (4) - 162422 [08:37:30]1012 (4) - 13.07.2024 02:39 [08:37:30]1206 (1) - 0 [08:37:30]OFD Sender: Remove packet 162422 [08:37:30]ProducePacketName [08:37:30]name=ofd_packets/00162422 [08:37:30]NVStorageDeleteData [08:37:30]Write to MH i2c: 01 00 00 5E 07 65 [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 07 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: 01 07 00 5E 07 00 00 00 00 00 EE 0C 66 [08:37:30]RasterBufferAndPrint [08:37:30]line [08:37:30]line [08:37:30]line [08:37:30]line [08:37:30]line [08:37:30]written 0, free lines is 3316 [08:37:30]MH_Cut [08:37:30]Write to MH i2c: D1 01 00 65 07 01 3E [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: D1 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: D1 01 00 [08:37:30]MH_I2C_Read... [08:37:30]Read from MH i2c: D1 01 00 65 07 00 3D [08:37:30]Write to MH i2c: 01 00 00 66 07 6D [08:37:30]Write i2c OK [08:37:30]MH_I2C_Read... [08:37:31]OFD Sender: No OFD packet to send [08:37:31]*** Cut start [08:37:31]*** Purtial cut [08:37:31]*** Stage 1: CUTSNS_PIN = 1 [08:37:31]Read from MH i2c: 01 [08:37:31]MH_I2C_Read... [08:37:31]*** Stop cut motor [08:37:31]*** Cut end [08:37:31]Read from MH i2c: 01 07 00 [08:37:31]MH_I2C_Read... [08:37:31]Read from MH i2c: 01 07 00 66 07 00 00 00 00 00 FF 0F 82 [08:37:31]process_action close_receipt done [08:37:31]requested_data is exist [08:37:31]produce_requested_data [08:37:31]requested_item fm.sn is exist - process it [08:37:31]wFMCommunicate request_size=4 [08:37:31]MH_SAM_APDU [08:37:31]CAPDU: 80 11 00 00 [08:37:31]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [08:37:31]Write i2c OK [08:37:31]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 17 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 48 [08:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:37:32]wFMCommunicate OK [08:37:32]requested_item fd.num is exist - process it [08:37:32]SAM_PROTO_GetFieldsCounters [08:37:32]wFMCommunicate request_size=4 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 13 00 00 [08:37:32]Write to MH i2c: E2 08 00 68 07 80 13 00 00 00 00 00 00 EB [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 62 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 62 00 68 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 76 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [08:37:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 76 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:32]wFMCommunicate OK [08:37:32]SAM_PROTO_GetFieldsCounters done [08:37:32]requested_item shift.num is exist - process it [08:37:32]requested_item shift.opened is exist - process it [08:37:32]req_shift_opened [08:37:32]FM_GetShiftState [08:37:32]SAM_PROTO_GetShiftState [08:37:32]wFMCommunicate request_size=4 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 13 01 00 [08:37:32]Write to MH i2c: E2 08 00 69 07 80 13 01 00 00 00 00 00 ED [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 0E 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 0E 00 69 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E7 [08:37:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:37:32]wFMCommunicate OK [08:37:32]SAM_PROTO_GetShiftState done [08:37:32]FM_GetShiftState done [08:37:32]req_shift_opened done [08:37:32]requested_item shift.open_date is exist - process it [08:37:32]req_shift_open_date [08:37:32]req_shift_open_date done [08:37:32]produce_requested_data done [08:37:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162422,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:37:32]process_action_free close_receipt [08:37:32]json_value_free [08:37:32]json_value_free done [08:37:32]process_json_proto returns [08:37:32]Send response to host [08:37:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162422,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:37:32]free response buf [08:37:32]execute_script done [08:37:32]execute_script returns [08:37:32]free content buf [08:37:32]Sock 9.Close socket [08:37:32]Sock 9.Thread stoped [08:37:32]accept exits with 8 [08:37:32]New connection [08:37:32]New thread 3066862948 created [08:37:32]Thread 3067006308 joined [08:37:32]Waiting for new connection... [08:37:32] Sock 8.Parse request [08:37:32]Sock 8.Check first char [08:37:32]Sock 8.First char is OK [08:37:32]request: POST /json_proto HTTP/1.0 [08:37:32]Method: POST [08:37:32]URL: /json_proto [08:37:32]Method is POST - this is cgi request [08:37:32]url: /json_proto [08:37:32]query_string will be loaded in cgi processing [08:37:32]execute_cgi json_proto POST (null) [08:37:32]execute_cgi path=json_proto method=POST [08:37:32]POST find Content-Length [08:37:32]Host: 172.17.39.67:8080 [08:37:32]Content-Length: 801 [08:37:32]Content-Type: application/json [08:37:32] [08:37:32]POST finish read [08:37:32]Found Content-Length = 801 [08:37:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.010, "sum" : 199.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" : 199.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:32]execute_script... [08:37: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)1318951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.010, "sum" : 199.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" : 199.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:32]POST & json_proto [08:37:32]process_json_proto [08:37:32]json parsed OK: [08:37:32]protocol is kg_v1.0 [08:37:32]action value=close_receipt [08:37:32]process_action close_receipt [08:37:32]cmd_close_receipt [08:37:32]MH_GetDate [08:37:32]Write to MH i2c: F0 00 00 6A 07 60 [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: F0 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: F0 09 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: F0 09 00 6A 07 00 DA 3C 92 66 FA E9 8E 66 4E [08:37:32]GetLastDocTimeStamp 1720859861 [08:37:32]current date 1720859866 [08:37:32]FM_GetShiftState [08:37:32]SAM_PROTO_GetShiftState [08:37:32]wFMCommunicate request_size=4 [08:37:32]MH_SAM_APDU [08:37:32]CAPDU: 80 13 01 00 [08:37:32]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [08:37:32]Write i2c OK [08:37:32]MH_I2C_Read... [08:37:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:32]Read from MH i2c: E2 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 0E 00 [08:37:32]MH_I2C_Read... [08:37:32]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E9 [08:37:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:37:32]wFMCommunicate OK [08:37:32]SAM_PROTO_GetShiftState done [08:37:32]FM_GetShiftState done [08:37:32]opened in 1720828979 [08:37:32]opened+sec_in_day 1720915379 [08:37:32]quantity*price = 19956 [08:37:32]sum+1 = 19957 [08:37:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 199.56 НСП 1% : 1.77 НДС 12% : 21.19 Наличными: 0.00 Безнал.: 199.56 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 91 13.07.2024 08:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162423 ФПД: 185297083650978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083746&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162423&fm=185297083650978&tin=02508201610067®Number=0000000000090858&sum=19956 [08:37:34]StoreToDocumentArchive [08:37:34]shift 462 fd 162423 [08:37:34]save to /storage/0462/doc_00162423 [08:37:34]save last doc name /storage/0462/doc_00162423 to /storage/kkm_last_doc_name [08:37:34]save OK [08:37:34]Clear old archive folders... [08:37:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:34]tlvbuf is 01C5A7F0 [08:37:34]SAM_PROTO_ClearQueue [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 09 00 00 [08:37:34]Write to MH i2c: E2 08 00 78 07 80 09 00 00 00 00 00 00 F1 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 78 07 00 90 00 F3 [08:37:34]RAPDU: 90 00 [08:37:34]wFMCommunicate OK [08:37:34]SAM_PROTO_ClearQueue done [08:37:34]KKMCreateOFDPacket [08:37:34]OFDProtocolAddRootSTLVToBuf [08:37:34]FM_MakeSignedData [08:37:34]FM_MakeSignedData [08:37:34]SAM_PROTO_SignData [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 0D 01 02 [08:37:34]Write to MH i2c: E2 08 00 79 07 80 0D 01 02 00 00 00 00 F9 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 79 07 00 90 00 F4 [08:37:34]RAPDU: 90 00 [08:37:34]wFMCommunicate OK [08:37:34]wFMCommunicate request_size=255 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F4 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7A 02 00 35 04 06 00 A8 [08:37:34]Write to MH i2c: E2 02 01 7A 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F4 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7A 02 00 35 04 06 00 A8 00 00 77 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [08:37:34]RAPDU: 90 00 [08:37:34]wFMCommunicate OK [08:37:34]wFMCommunicate request_size=10 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 0D 02 02 05 86 D6 D9 53 A2 [08:37:34]Write to MH i2c: E2 0D 00 7B 07 80 0D 02 02 05 00 86 D6 D9 53 A2 00 00 30 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [08:37:34]RAPDU: 90 00 [08:37:34]wFMCommunicate OK [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 0D 03 02 [08:37:34]Write to MH i2c: E2 08 00 7C 07 80 0D 03 02 00 00 00 00 FE [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 0B 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 0B 00 7C 07 00 8E 00 45 01 AF BA C6 FD 90 00 FF [08:37:34]RAPDU: 8E 00 45 01 AF BA C6 FD 90 00 [08:37:34]wFMCommunicate OK [08:37:34]SAM_PROTO_SignData done [08:37:34]FM_MakeSignedData done [08:37:34]CreateOFDProtocolMessage [08:37:34]wFMCommunicate request_size=4 [08:37:34]MH_SAM_APDU [08:37:34]CAPDU: 80 11 00 00 [08:37:34]Write to MH i2c: E2 08 00 7D 07 80 11 00 00 00 00 00 00 FE [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:34]Read from MH i2c: E2 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 17 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: E2 17 00 7D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5E [08:37:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:37:34]wFMCommunicate OK [08:37:34]CreateOFDProtocolMessage done [08:37:34]OFDSenderStorePacket 162423 [08:37:34]StoreOFDPacket docnum=162423 [08:37:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D5 58 07 01 0C 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F4 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7A 02 00 35 04 06 00 A8 86 D6 D9 53 A2 8E 00 45 01 AF BA C6 FD [08:37:34]CheckFolder [08:37:34]dirname=/storage/ofd_packets [08:37:34]CheckFolder done [08:37:34]ProducePacketName [08:37:34]name=ofd_packets/00162423 [08:37:34]NVStorageSaveData ofd_packets/00162423 [08:37:34]File name is /storage/ofd_packets/00162423 [08:37:34]Write 301 bytes [08:37:34]NVStorageSaveData done [08:37:34]OFDSenderStorePacket done [08:37:34]KKMCreateOFDPacket done [08:37:34]NVStorageSaveData kkm_last_timestamp [08:37:34]File name is /storage/kkm_last_timestamp [08:37:34]Write 4 bytes [08:37:34]NVStorageSaveData done [08:37:34]ExternCall_PrintAddStr [08:37:34]wPrintStart [08:37:34]Write to MH i2c: 01 00 00 7E 07 85 [08:37:34]Write i2c OK [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: 01 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: 01 07 00 [08:37:34]MH_I2C_Read... [08:37:34]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 FF 0F 9A [08:37:34]RasterBufferAndPrint [08:37:34]line Счет N : (1)1318951 [08:37:34]line ИНН: 02508201610067 [08:37:34]line Контрольно-Кассовый Чек [08:37:34]line ПРОДАЖА [08:37:34]line ТРК (МРК, ГНК) : 33 [08:37:34]line Товар: 2710124130 [08:37:34]line Аи-92-К-5 [08:37:34]line 3.010 * 66.30 [08:37:34]line = 199.56 [08:37:34]line НДС 12% НСП 1% [08:37:34]line > о реализуемом товаре [08:37:34]line ИТОГО: 199.56 [08:37:34]line НСП 1% : 1.77 [08:37:34]line НДС 12% : 21.19 [08:37:34]line Наличными: 0.00 [08:37:34]line Безнал.: 199.56 [08:37:34]line Место: АЗС № 140 "Партнер Нефть" [08:37:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:37:34]line СНО: Общий режим [08:37:34]line Чек 91 13.07.2024 08:37 [08:37:34]line Смена: 462 ФФД: 1.0 [08:37:34]line ЗНМ: 0300000129 [08:37:34]line РНМ: 0000000000090858 [08:37:34]line Версия ККМ: 001 [08:37:34]line Платежная система: O! деньги [08:37:34]line ФМ: 0000000000874899 [08:37:34]line ФД: 162423 [08:37:34]line ФПД: 185297083650978 [08:37:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T083746&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162423&fm=185297083650978&tin=02508201610067®Number=0000000000090858&sum=19956 [08:37:34]written 0, free lines is 4095 [08:37:34]OFD Sender: Processing packet 162423 [packets to send 105, broken 104] [08:37:34]ProducePacketName [08:37:34]name=ofd_packets/00162423 [08:37:34]OFD Sender: To server: pG, [08:37:34]CommunicateWithHost lk.salyk.kg:30040 [08:37:34]ConnectInit lk.salyk.kg [08:37:34]Connected sock=10 [08:37:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D5 58 07 01 0C 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F4 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 4D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 DA 3C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7A 02 00 35 04 06 00 A8 86 D6 D9 53 A2 8E 00 45 01 AF BA C6 FD [08:37:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5F BB 47 00 78 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7A 02 00 F4 03 04 00 EF E8 91 66 B6 04 01 00 00 7B F6 19 7C 71 4F B1 8C [08:37:35]CommunicateWithHost err = 0 [08:37:35]CheckOFDResponse [08:37:35]1017 (14) - 77093643461234 [08:37:35]1041 (16) - 0000000000874899 [08:37:35]1040 (4) - 162423 [08:37:35]1012 (4) - 13.07.2024 02:39 [08:37:35]1206 (1) - 0 [08:37:35]OFD Sender: Remove packet 162423 [08:37:35]ProducePacketName [08:37:35]name=ofd_packets/00162423 [08:37:35]NVStorageDeleteData [08:37:35]Write to MH i2c: 01 00 00 A8 07 AF [08:37:35]Write i2c OK [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: 01 [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: 01 07 00 [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: 01 07 00 A8 07 00 00 00 00 00 05 0D C8 [08:37:35]RasterBufferAndPrint [08:37:35]line [08:37:35]line [08:37:35]line [08:37:35]line [08:37:35]line [08:37:35]written 0, free lines is 3348 [08:37:35]MH_Cut [08:37:35]Write to MH i2c: D1 01 00 AF 07 01 88 [08:37:35]Write i2c OK [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: D1 [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: D1 01 00 [08:37:35]MH_I2C_Read... [08:37:35]Read from MH i2c: D1 01 00 AF 07 00 87 [08:37:35]Write to MH i2c: 01 00 00 B0 07 B7 [08:37:35]Write i2c OK [08:37:35]MH_I2C_Read... [08:37:35]OFD Sender: No OFD packet to send [08:37:35]*** Cut start [08:37:35]*** Purtial cut [08:37:35]*** CUTSNS_PIN = 0 [08:37:36]*** Stage 1: CUTSNS_PIN = 1 [08:37:37]Read from MH i2c: 01 [08:37:38]MH_I2C_Read... [08:37:38]*** Stop cut motor [08:37:38]*** Cut end [08:37:38]Read from MH i2c: 01 07 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: 01 07 00 B0 07 00 00 00 00 00 FF 0F CC [08:37:38]process_action close_receipt done [08:37:38]requested_data is exist [08:37:38]produce_requested_data [08:37:38]requested_item fm.sn is exist - process it [08:37:38]wFMCommunicate request_size=4 [08:37:38]MH_SAM_APDU [08:37:38]CAPDU: 80 11 00 00 [08:37:38]Write to MH i2c: E2 08 00 B1 07 80 11 00 00 00 00 00 00 32 [08:37:38]Write i2c OK [08:37:38]MH_I2C_Read... [08:37:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:38]Read from MH i2c: E2 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 17 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 17 00 B1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 92 [08:37:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:37:38]wFMCommunicate OK [08:37:38]requested_item fd.num is exist - process it [08:37:38]SAM_PROTO_GetFieldsCounters [08:37:38]wFMCommunicate request_size=4 [08:37:38]MH_SAM_APDU [08:37:38]CAPDU: 80 13 00 00 [08:37:38]Write to MH i2c: E2 08 00 B2 07 80 13 00 00 00 00 00 00 35 [08:37:38]Write i2c OK [08:37:38]MH_I2C_Read... [08:37:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:38]Read from MH i2c: E2 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 62 00 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 62 00 B2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 77 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [08:37:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 77 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:38]wFMCommunicate OK [08:37:38]SAM_PROTO_GetFieldsCounters done [08:37:38]requested_item shift.num is exist - process it [08:37:38]requested_item shift.opened is exist - process it [08:37:38]req_shift_opened [08:37:38]FM_GetShiftState [08:37:38]SAM_PROTO_GetShiftState [08:37:38]wFMCommunicate request_size=4 [08:37:38]MH_SAM_APDU [08:37:38]CAPDU: 80 13 01 00 [08:37:38]Write to MH i2c: E2 08 00 B3 07 80 13 01 00 00 00 00 00 37 [08:37:38]Write i2c OK [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 [08:37:38]MH_I2C_Read... [08:37:38]Read from MH i2c: E2 0E 00 [08:37:38]MH_I2C_Read... [08:37:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:38]Read from MH i2c: E2 0E 00 B3 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 31 [08:37:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:37:38]wFMCommunicate OK [08:37:38]SAM_PROTO_GetShiftState done [08:37:38]FM_GetShiftState done [08:37:38]req_shift_opened done [08:37:38]requested_item shift.open_date is exist - process it [08:37:38]req_shift_open_date [08:37:38]req_shift_open_date done [08:37:38]produce_requested_data done [08:37:38]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162423,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:37:38]process_action_free close_receipt [08:37:38]json_value_free [08:37:38]json_value_free done [08:37:38]process_json_proto returns [08:37:38]Send response to host [08:37:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162423,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:37:38]free response buf [08:37:38]execute_script done [08:37:38]execute_script returns [08:37:38]free content buf [08:37:38]Sock 8.Close socket [08:37:38]Sock 8.Thread stoped [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:18]accept exits with 9 [08:41:18]New connection [08:41:18]New thread 3067006308 created [08:41:18]Thread 3066862948 joined [08:41:18]Waiting for new connection... [08:41:18] Sock 9.Parse request [08:41:18]Sock 9.Check first char [08:41:18]Sock 9.First char is OK [08:41:18]request: POST /json_proto HTTP/1.0 [08:41:18]Method: POST [08:41:18]URL: /json_proto [08:41:18]Method is POST - this is cgi request [08:41:18]url: /json_proto [08:41:18]query_string will be loaded in cgi processing [08:41:18]execute_cgi json_proto POST (null) [08:41:18]execute_cgi path=json_proto method=POST [08:41:18]POST find Content-Length [08:41:18]Host: 172.17.39.67:8080 [08:41:18]Content-Length: 683 [08:41:18]Content-Type: application/json [08:41:18] [08:41:18]POST finish read [08:41:18]Found Content-Length = 683 [08:41:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:18]execute_script... [08:41: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)1318953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:18]POST & json_proto [08:41:18]process_json_proto [08:41:18]json parsed OK: [08:41:18]protocol is kg_v1.0 [08:41:18]action value=close_receipt [08:41:18]process_action close_receipt [08:41:18]cmd_close_receipt [08:41:18]MH_GetDate [08:41:18]Write to MH i2c: F0 00 00 B4 07 AA [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: F0 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: F0 09 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: F0 09 00 B4 07 00 BB 3D 92 66 FA E9 8E 66 7A [08:41:18]GetLastDocTimeStamp 1720859866 [08:41:18]current date 1720860091 [08:41:18]FM_GetShiftState [08:41:18]SAM_PROTO_GetShiftState [08:41:18]wFMCommunicate request_size=4 [08:41:18]MH_SAM_APDU [08:41:18]CAPDU: 80 13 01 00 [08:41:18]Write to MH i2c: E2 08 00 B5 07 80 13 01 00 00 00 00 00 39 [08:41:18]Write i2c OK [08:41:18]MH_I2C_Read... [08:41:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:18]Read from MH i2c: E2 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 0E 00 [08:41:18]MH_I2C_Read... [08:41:18]Read from MH i2c: E2 0E 00 B5 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 33 [08:41:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:41:18]wFMCommunicate OK [08:41:18]SAM_PROTO_GetShiftState done [08:41:18]FM_GetShiftState done [08:41:18]opened in 1720828979 [08:41:18]opened+sec_in_day 1720915379 [08:41:18]quantity*price = 100046 [08:41:18]sum+1 = 100048 [08:41:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 92 13.07.2024 08:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162424 ФПД: 69285403417722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084131&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162424&fm=69285403417722&tin=02508201610067®Number=0000000000090858&sum=100000 [08:41:19]StoreToDocumentArchive [08:41:19]shift 462 fd 162424 [08:41:19]save to /storage/0462/doc_00162424 [08:41:19]save last doc name /storage/0462/doc_00162424 to /storage/kkm_last_doc_name [08:41:19]save OK [08:41:19]Clear old archive folders... [08:41:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:41:19]tlvbuf is 01747940 [08:41:19]SAM_PROTO_ClearQueue [08:41:19]wFMCommunicate request_size=4 [08:41:19]MH_SAM_APDU [08:41:19]CAPDU: 80 09 00 00 [08:41:19]Write to MH i2c: E2 08 00 C2 07 80 09 00 00 00 00 00 00 3B [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 03 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 03 00 C2 07 00 90 00 3D [08:41:19]RAPDU: 90 00 [08:41:19]wFMCommunicate OK [08:41:19]SAM_PROTO_ClearQueue done [08:41:19]KKMCreateOFDPacket [08:41:19]OFDProtocolAddRootSTLVToBuf [08:41:19]FM_MakeSignedData [08:41:19]FM_MakeSignedData [08:41:19]SAM_PROTO_SignData [08:41:19]wFMCommunicate request_size=4 [08:41:19]MH_SAM_APDU [08:41:19]CAPDU: 80 0D 01 02 [08:41:19]Write to MH i2c: E2 08 00 C3 07 80 0D 01 02 00 00 00 00 43 [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 03 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 03 00 C3 07 00 90 00 3E [08:41:19]RAPDU: 90 00 [08:41:19]wFMCommunicate OK [08:41:19]wFMCommunicate request_size=255 [08:41:19]MH_SAM_APDU [08:41:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 BB 3D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7A 02 00 35 04 06 00 3F [08:41:19]Write to MH i2c: E2 02 01 C4 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 BB 3D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7A 02 00 35 04 06 00 3F 00 00 9D [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 03 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 03 00 C4 07 00 90 00 3F [08:41:19]RAPDU: 90 00 [08:41:19]wFMCommunicate OK [08:41:19]wFMCommunicate request_size=10 [08:41:19]MH_SAM_APDU [08:41:19]CAPDU: 80 0D 02 02 05 03 C3 DB DC 7A [08:41:19]Write to MH i2c: E2 0D 00 C5 07 80 0D 02 02 05 00 03 C3 DB DC 7A 00 00 47 [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 03 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [08:41:19]RAPDU: 90 00 [08:41:19]wFMCommunicate OK [08:41:19]wFMCommunicate request_size=4 [08:41:19]MH_SAM_APDU [08:41:19]CAPDU: 80 0D 03 02 [08:41:19]Write to MH i2c: E2 08 00 C6 07 80 0D 03 02 00 00 00 00 48 [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 0B 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 0B 00 C6 07 00 19 69 5A DD CC 7C 5E 60 90 00 08 [08:41:19]RAPDU: 19 69 5A DD CC 7C 5E 60 90 00 [08:41:19]wFMCommunicate OK [08:41:19]SAM_PROTO_SignData done [08:41:19]FM_MakeSignedData done [08:41:19]CreateOFDProtocolMessage [08:41:19]wFMCommunicate request_size=4 [08:41:19]MH_SAM_APDU [08:41:19]CAPDU: 80 11 00 00 [08:41:19]Write to MH i2c: E2 08 00 C7 07 80 11 00 00 00 00 00 00 48 [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:19]Read from MH i2c: E2 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 17 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: E2 17 00 C7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A8 [08:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:41:19]wFMCommunicate OK [08:41:19]CreateOFDProtocolMessage done [08:41:19]OFDSenderStorePacket 162424 [08:41:19]StoreOFDPacket docnum=162424 [08:41:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2B 12 07 01 2C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 BB 3D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7A 02 00 35 04 06 00 3F 03 C3 DB DC 7A 19 69 5A DD CC 7C 5E 60 [08:41:19]CheckFolder [08:41:19]dirname=/storage/ofd_packets [08:41:19]CheckFolder done [08:41:19]ProducePacketName [08:41:19]name=ofd_packets/00162424 [08:41:19]NVStorageSaveData ofd_packets/00162424 [08:41:19]File name is /storage/ofd_packets/00162424 [08:41:19]Write 301 bytes [08:41:19]NVStorageSaveData done [08:41:19]OFDSenderStorePacket done [08:41:19]KKMCreateOFDPacket done [08:41:19]NVStorageSaveData kkm_last_timestamp [08:41:19]File name is /storage/kkm_last_timestamp [08:41:19]Write 4 bytes [08:41:19]NVStorageSaveData done [08:41:19]ExternCall_PrintAddStr [08:41:19]wPrintStart [08:41:19]Write to MH i2c: 01 00 00 C8 07 CF [08:41:19]Write i2c OK [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 07 00 [08:41:19]MH_I2C_Read... [08:41:19]Read from MH i2c: 01 07 00 C8 07 00 00 00 00 00 FF 0F E4 [08:41:19]RasterBufferAndPrint [08:41:19]line Счет N : (1)1318953 [08:41:19]line ИНН: 02508201610067 [08:41:19]line Контрольно-Кассовый Чек [08:41:19]line ПРОДАЖА [08:41:19]line ТРК (МРК, ГНК) : 33 [08:41:19]line Товар: 2710124130 [08:41:19]line Аи-92-К-5 [08:41:19]line 15.090 * 66.30 [08:41:19]line = 1000.47 [08:41:19]line НДС 12% НСП 1% [08:41:19]line > о реализуемом товаре [08:41:19]line ОКРУГЛЕНИЕ: -0.47 [08:41:19]line ИТОГО: 1000.00 [08:41:19]line Внесено: 1000.00 [08:41:19]line СДАЧА: 0.00 [08:41:19]line НСП 1% : 8.85 [08:41:19]line НДС 12% : 106.24 [08:41:19]line Наличными: 1000.00 [08:41:19]line Безнал.: 0.00 [08:41:19]line Место: АЗС № 140 "Партнер Нефть" [08:41:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:41:19]line СНО: Общий режим [08:41:19]line Чек 92 13.07.2024 08:41 [08:41:19]line Смена: 462 ФФД: 1.0 [08:41:19]line ЗНМ: 0300000129 [08:41:19]line РНМ: 0000000000090858 [08:41:19]line Версия ККМ: 001 [08:41:19]line ФМ: 0000000000874899 [08:41:19]line ФД: 162424 [08:41:19]line ФПД: 69285403417722 [08:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084131&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162424&fm=69285403417722&tin=02508201610067®Number=0000000000090858&sum=100000 [08:41:20]OFD Sender: Processing packet 162424 [packets to send 105, broken 104] [08:41:20]ProducePacketName [08:41:20]name=ofd_packets/00162424 [08:41:20]OFD Sender: To server: pG, [08:41:20]CommunicateWithHost lk.salyk.kg:30040 [08:41:20]ConnectInit lk.salyk.kg [08:41:20]written 0, free lines is 4095 [08:41:20]Connected sock=10 [08:41:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2B 12 07 01 2C 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 5C 00 00 00 F4 03 04 00 BB 3D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7A 02 00 35 04 06 00 3F 03 C3 DB DC 7A 19 69 5A DD CC 7C 5E 60 [08:41:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D3 BF 47 00 AC A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7A 02 00 F4 03 04 00 D0 E9 91 66 B6 04 01 00 00 27 3E A7 AC C1 28 5B 30 [08:41:20]CommunicateWithHost err = 0 [08:41:20]CheckOFDResponse [08:41:20]1017 (14) - 77093643461234 [08:41:20]1041 (16) - 0000000000874899 [08:41:20]1040 (4) - 162424 [08:41:20]1012 (4) - 13.07.2024 02:43 [08:41:20]1206 (1) - 0 [08:41:20]OFD Sender: Remove packet 162424 [08:41:20]ProducePacketName [08:41:20]name=ofd_packets/00162424 [08:41:20]NVStorageDeleteData [08:41:20]Write to MH i2c: 01 00 00 F3 07 FA [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: 01 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: 01 07 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: 01 07 00 F3 07 00 00 00 00 00 E3 0C F0 [08:41:20]RasterBufferAndPrint [08:41:20]line [08:41:20]line [08:41:20]line [08:41:20]line [08:41:20]line [08:41:20]written 0, free lines is 3308 [08:41:20]MH_Cut [08:41:20]Write to MH i2c: D1 01 00 FA 07 01 D3 [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: D1 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: D1 01 00 [08:41:20]MH_I2C_Read... [08:41:20]Read from MH i2c: D1 01 00 FA 07 00 D2 [08:41:20]Write to MH i2c: 01 00 00 FB 07 02 [08:41:20]Write i2c OK [08:41:20]MH_I2C_Read... [08:41:20]OFD Sender: No OFD packet to send [08:41:21]*** Cut start [08:41:21]*** Purtial cut [08:41:21]*** Stage 1: CUTSNS_PIN = 1 [08:41:21]Read from MH i2c: 01 [08:41:21]MH_I2C_Read... [08:41:21]*** Stop cut motor [08:41:21]*** Cut end [08:41:21]Read from MH i2c: 01 07 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: 01 07 00 FB 07 00 00 00 00 00 FF 0F 17 [08:41:21]process_action close_receipt done [08:41:21]requested_data is exist [08:41:21]produce_requested_data [08:41:21]requested_item fm.sn is exist - process it [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 11 00 00 [08:41:21]Write to MH i2c: E2 08 00 FC 07 80 11 00 00 00 00 00 00 7D [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 17 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 17 00 FC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DD [08:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:41:21]wFMCommunicate OK [08:41:21]requested_item fd.num is exist - process it [08:41:21]SAM_PROTO_GetFieldsCounters [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 13 00 00 [08:41:21]Write to MH i2c: E2 08 00 FD 07 80 13 00 00 00 00 00 00 80 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 62 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 62 00 FD 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 78 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [08:41:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 78 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:41:21]wFMCommunicate OK [08:41:21]SAM_PROTO_GetFieldsCounters done [08:41:21]requested_item shift.num is exist - process it [08:41:21]requested_item shift.opened is exist - process it [08:41:21]req_shift_opened [08:41:21]FM_GetShiftState [08:41:21]SAM_PROTO_GetShiftState [08:41:21]wFMCommunicate request_size=4 [08:41:21]MH_SAM_APDU [08:41:21]CAPDU: 80 13 01 00 [08:41:21]Write to MH i2c: E2 08 00 FE 07 80 13 01 00 00 00 00 00 82 [08:41:21]Write i2c OK [08:41:21]MH_I2C_Read... [08:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:41:21]Read from MH i2c: E2 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 0E 00 [08:41:21]MH_I2C_Read... [08:41:21]Read from MH i2c: E2 0E 00 FE 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7C [08:41:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:41:21]wFMCommunicate OK [08:41:21]SAM_PROTO_GetShiftState done [08:41:21]FM_GetShiftState done [08:41:21]req_shift_opened done [08:41:21]requested_item shift.open_date is exist - process it [08:41:21]req_shift_open_date [08:41:21]req_shift_open_date done [08:41:21]produce_requested_data done [08:41:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162424,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:41:21]process_action_free close_receipt [08:41:21]json_value_free [08:41:21]json_value_free done [08:41:21]process_json_proto returns [08:41:21]Send response to host [08:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162424,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:41:21]free response buf [08:41:21]execute_script done [08:41:21]execute_script returns [08:41:21]free content buf [08:41:21]Sock 9.Close socket [08:41:21]Sock 9.Thread stoped [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:08]accept exits with 8 [08:42:08]New connection [08:42:08]New thread 3066862948 created [08:42:08]Thread 3067006308 joined [08:42:08]Waiting for new connection... [08:42:08] Sock 8.Parse request [08:42:08]Sock 8.Check first char [08:42:08]Sock 8.First char is OK [08:42:08]request: POST /json_proto HTTP/1.0 [08:42:08]Method: POST [08:42:08]URL: /json_proto [08:42:08]Method is POST - this is cgi request [08:42:08]url: /json_proto [08:42:08]query_string will be loaded in cgi processing [08:42:08]execute_cgi json_proto POST (null) [08:42:08]execute_cgi path=json_proto method=POST [08:42:08]POST find Content-Length [08:42:08]Host: 172.17.39.67:8080 [08:42:08]Content-Length: 678 [08:42:08]Content-Type: application/json [08:42:08] [08:42:08]POST finish read [08:42:08]Found Content-Length = 678 [08:42:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:08]execute_script... [08:42:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318954", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:42:08]POST & json_proto [08:42:08]process_json_proto [08:42:08]json parsed OK: [08:42:08]protocol is kg_v1.0 [08:42:08]action value=close_receipt [08:42:08]process_action close_receipt [08:42:08]cmd_close_receipt [08:42:08]MH_GetDate [08:42:08]Write to MH i2c: F0 00 00 FF 07 F5 [08:42:08]Write i2c OK [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: F0 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: F0 09 00 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: F0 09 00 FF 07 00 ED 3D 92 66 FA E9 8E 66 F7 [08:42:08]GetLastDocTimeStamp 1720860091 [08:42:08]current date 1720860141 [08:42:08]FM_GetShiftState [08:42:08]SAM_PROTO_GetShiftState [08:42:08]wFMCommunicate request_size=4 [08:42:08]MH_SAM_APDU [08:42:08]CAPDU: 80 13 01 00 [08:42:08]Write to MH i2c: E2 08 00 00 08 80 13 01 00 00 00 00 00 85 [08:42:08]Write i2c OK [08:42:08]MH_I2C_Read... [08:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:08]Read from MH i2c: E2 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: E2 0E 00 [08:42:08]MH_I2C_Read... [08:42:08]Read from MH i2c: E2 0E 00 00 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7F [08:42:08]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:42:08]wFMCommunicate OK [08:42:08]SAM_PROTO_GetShiftState done [08:42:08]FM_GetShiftState done [08:42:08]opened in 1720828979 [08:42:08]opened+sec_in_day 1720915379 [08:42:08]quantity*price = 50056 [08:42:08]sum+1 = 50058 [08:42:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 93 13.07.2024 08:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162425 ФПД: 159059986816584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084221&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162425&fm=159059986816584&tin=02508201610067®Number=0000000000090858&sum=50000 [08:42:09]StoreToDocumentArchive [08:42:09]shift 462 fd 162425 [08:42:09]save to /storage/0462/doc_00162425 [08:42:09]save last doc name /storage/0462/doc_00162425 to /storage/kkm_last_doc_name [08:42:09]save OK [08:42:09]Clear old archive folders... [08:42:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:42:09]tlvbuf is 0197CE60 [08:42:09]SAM_PROTO_ClearQueue [08:42:09]wFMCommunicate request_size=4 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 09 00 00 [08:42:09]Write to MH i2c: E2 08 00 0D 08 80 09 00 00 00 00 00 00 87 [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 03 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 03 00 0D 08 00 90 00 89 [08:42:09]RAPDU: 90 00 [08:42:09]wFMCommunicate OK [08:42:09]SAM_PROTO_ClearQueue done [08:42:09]KKMCreateOFDPacket [08:42:09]OFDProtocolAddRootSTLVToBuf [08:42:09]FM_MakeSignedData [08:42:09]FM_MakeSignedData [08:42:09]SAM_PROTO_SignData [08:42:09]wFMCommunicate request_size=4 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 0D 01 02 [08:42:09]Write to MH i2c: E2 08 00 0E 08 80 0D 01 02 00 00 00 00 8F [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 03 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 03 00 0E 08 00 90 00 8A [08:42:09]RAPDU: 90 00 [08:42:09]wFMCommunicate OK [08:42:09]wFMCommunicate request_size=255 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 ED 3D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7A 02 00 35 04 06 00 90 [08:42:09]Write to MH i2c: E2 02 01 0F 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 ED 3D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7A 02 00 35 04 06 00 90 00 00 1E [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 03 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 03 00 0F 08 00 90 00 8B [08:42:09]RAPDU: 90 00 [08:42:09]wFMCommunicate OK [08:42:09]wFMCommunicate request_size=10 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 0D 02 02 05 AA 0A 03 1E 48 [08:42:09]Write to MH i2c: E2 0D 00 10 08 80 0D 02 02 05 00 AA 0A 03 1E 48 00 00 B9 [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:42:09]Read from MH i2c: E2 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 03 00 [08:42:09]MH_I2C_Read... [08:42:09]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [08:42:09]RAPDU: 90 00 [08:42:09]wFMCommunicate OK [08:42:09]wFMCommunicate request_size=4 [08:42:09]MH_SAM_APDU [08:42:09]CAPDU: 80 0D 03 02 [08:42:09]Write to MH i2c: E2 08 00 11 08 80 0D 03 02 00 00 00 00 94 [08:42:09]Write i2c OK [08:42:09]MH_I2C_Read... [08:42:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:42:10]Read from MH i2c: E2 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: E2 0B 00 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: E2 0B 00 11 08 00 B0 68 F2 D2 81 CD 87 AA 90 00 F0 [08:42:10]RAPDU: B0 68 F2 D2 81 CD 87 AA 90 00 [08:42:10]wFMCommunicate OK [08:42:10]SAM_PROTO_SignData done [08:42:10]FM_MakeSignedData done [08:42:10]CreateOFDProtocolMessage [08:42:10]wFMCommunicate request_size=4 [08:42:10]MH_SAM_APDU [08:42:10]CAPDU: 80 11 00 00 [08:42:10]Write to MH i2c: E2 08 00 12 08 80 11 00 00 00 00 00 00 94 [08:42:10]Write i2c OK [08:42:10]MH_I2C_Read... [08:42:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:10]Read from MH i2c: E2 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: E2 17 00 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: E2 17 00 12 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F4 [08:42:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:42:10]wFMCommunicate OK [08:42:10]CreateOFDProtocolMessage done [08:42:10]OFDSenderStorePacket 162425 [08:42:10]StoreOFDPacket docnum=162425 [08:42:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C3 EE 07 01 59 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 ED 3D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7A 02 00 35 04 06 00 90 AA 0A 03 1E 48 B0 68 F2 D2 81 CD 87 AA [08:42:10]CheckFolder [08:42:10]dirname=/storage/ofd_packets [08:42:10]CheckFolder done [08:42:10]ProducePacketName [08:42:10]name=ofd_packets/00162425 [08:42:10]NVStorageSaveData ofd_packets/00162425 [08:42:10]File name is /storage/ofd_packets/00162425 [08:42:10]Write 301 bytes [08:42:10]NVStorageSaveData done [08:42:10]OFDSenderStorePacket done [08:42:10]KKMCreateOFDPacket done [08:42:10]NVStorageSaveData kkm_last_timestamp [08:42:10]File name is /storage/kkm_last_timestamp [08:42:10]Write 4 bytes [08:42:10]NVStorageSaveData done [08:42:10]ExternCall_PrintAddStr [08:42:10]wPrintStart [08:42:10]Write to MH i2c: 01 00 00 13 08 1B [08:42:10]Write i2c OK [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: 01 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: 01 07 00 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: 01 07 00 13 08 00 00 00 00 00 FF 0F 30 [08:42:10]RasterBufferAndPrint [08:42:10]line Счет N : (1)1318954 [08:42:10]line ИНН: 02508201610067 [08:42:10]line Контрольно-Кассовый Чек [08:42:10]line ПРОДАЖА [08:42:10]line ТРК (МРК, ГНК) : 63 [08:42:10]line Товар: 2710124130 [08:42:10]line Аи-92-К-5 [08:42:10]line 7.550 * 66.30 [08:42:10]line = 500.57 [08:42:10]line НДС 12% НСП 1% [08:42:10]line > о реализуемом товаре [08:42:10]line ОКРУГЛЕНИЕ: -0.57 [08:42:10]line ИТОГО: 500.00 [08:42:10]line Внесено: 500.00 [08:42:10]line СДАЧА: 0.00 [08:42:10]line НСП 1% : 4.43 [08:42:10]line НДС 12% : 53.16 [08:42:10]line Наличными: 500.00 [08:42:10]line Безнал.: 0.00 [08:42:10]line Место: АЗС № 140 "Партнер Нефть" [08:42:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:42:10]line СНО: Общий режим [08:42:10]line Чек 93 13.07.2024 08:42 [08:42:10]line Смена: 462 ФФД: 1.0 [08:42:10]line ЗНМ: 0300000129 [08:42:10]line РНМ: 0000000000090858 [08:42:10]line Версия ККМ: 001 [08:42:10]line ФМ: 0000000000874899 [08:42:10]line ФД: 162425 [08:42:10]line ФПД: 159059986816584 [08:42:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084221&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162425&fm=159059986816584&tin=02508201610067®Number=0000000000090858&sum=50000 [08:42:10]OFD Sender: Processing packet 162425 [packets to send 105, broken 104] [08:42:10]ProducePacketName [08:42:10]name=ofd_packets/00162425 [08:42:10]OFD Sender: To server: pG, [08:42:10]CommunicateWithHost lk.salyk.kg:30040 [08:42:10]ConnectInit lk.salyk.kg [08:42:10]written 0, free lines is 4095 [08:42:10]Connected sock=11 [08:42:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C3 EE 07 01 59 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 ED 3D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7A 02 00 35 04 06 00 90 AA 0A 03 1E 48 B0 68 F2 D2 81 CD 87 AA [08:42:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FD 0E 47 00 0A E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7A 02 00 F4 03 04 00 02 EA 91 66 B6 04 01 00 00 0D 6D F6 75 FE 7A 75 E0 [08:42:10]CommunicateWithHost err = 0 [08:42:10]CheckOFDResponse [08:42:10]1017 (14) - 77093643461234 [08:42:10]1041 (16) - 0000000000874899 [08:42:10]1040 (4) - 162425 [08:42:10]1012 (4) - 13.07.2024 02:44 [08:42:10]1206 (1) - 0 [08:42:10]OFD Sender: Remove packet 162425 [08:42:10]ProducePacketName [08:42:10]name=ofd_packets/00162425 [08:42:10]NVStorageDeleteData [08:42:10]Write to MH i2c: 01 00 00 3E 08 46 [08:42:10]Write i2c OK [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: 01 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: 01 07 00 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: 01 07 00 3E 08 00 00 00 00 00 EA 0C 43 [08:42:10]RasterBufferAndPrint [08:42:10]line [08:42:10]line [08:42:10]line [08:42:10]line [08:42:10]line [08:42:10]written 0, free lines is 3312 [08:42:10]MH_Cut [08:42:10]Write to MH i2c: D1 01 00 45 08 01 1F [08:42:10]Write i2c OK [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: D1 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: D1 01 00 [08:42:10]MH_I2C_Read... [08:42:10]Read from MH i2c: D1 01 00 45 08 00 1E [08:42:10]Write to MH i2c: 01 00 00 46 08 4E [08:42:10]Write i2c OK [08:42:10]MH_I2C_Read... [08:42:11]OFD Sender: No OFD packet to send [08:42:11]*** Cut start [08:42:11]*** Purtial cut [08:42:11]*** CUTSNS_PIN = 0 [08:42:11]*** Stage 1: CUTSNS_PIN = 1 [08:42:13]Read from MH i2c: 01 [08:42:13]MH_I2C_Read... [08:42:13]*** Stop cut motor [08:42:13]*** Cut end [08:42:13]Read from MH i2c: 01 07 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: 01 07 00 46 08 00 00 00 00 00 FF 0F 63 [08:42:13]process_action close_receipt done [08:42:13]requested_data is exist [08:42:13]produce_requested_data [08:42:13]requested_item fm.sn is exist - process it [08:42:13]wFMCommunicate request_size=4 [08:42:13]MH_SAM_APDU [08:42:13]CAPDU: 80 11 00 00 [08:42:13]Write to MH i2c: E2 08 00 47 08 80 11 00 00 00 00 00 00 C9 [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 17 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 17 00 47 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 29 [08:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:42:13]wFMCommunicate OK [08:42:13]requested_item fd.num is exist - process it [08:42:13]SAM_PROTO_GetFieldsCounters [08:42:13]wFMCommunicate request_size=4 [08:42:13]MH_SAM_APDU [08:42:13]CAPDU: 80 13 00 00 [08:42:13]Write to MH i2c: E2 08 00 48 08 80 13 00 00 00 00 00 00 CC [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 62 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 62 00 48 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 79 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [08:42:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 79 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:42:13]wFMCommunicate OK [08:42:13]SAM_PROTO_GetFieldsCounters done [08:42:13]requested_item shift.num is exist - process it [08:42:13]requested_item shift.opened is exist - process it [08:42:13]req_shift_opened [08:42:13]FM_GetShiftState [08:42:13]SAM_PROTO_GetShiftState [08:42:13]wFMCommunicate request_size=4 [08:42:13]MH_SAM_APDU [08:42:13]CAPDU: 80 13 01 00 [08:42:13]Write to MH i2c: E2 08 00 49 08 80 13 01 00 00 00 00 00 CE [08:42:13]Write i2c OK [08:42:13]MH_I2C_Read... [08:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:13]Read from MH i2c: E2 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 0E 00 [08:42:13]MH_I2C_Read... [08:42:13]Read from MH i2c: E2 0E 00 49 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C8 [08:42:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:42:13]wFMCommunicate OK [08:42:13]SAM_PROTO_GetShiftState done [08:42:13]FM_GetShiftState done [08:42:13]req_shift_opened done [08:42:13]requested_item shift.open_date is exist - process it [08:42:13]req_shift_open_date [08:42:13]req_shift_open_date done [08:42:13]produce_requested_data done [08:42:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162425,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:42:13]process_action_free close_receipt [08:42:13]json_value_free [08:42:13]json_value_free done [08:42:13]process_json_proto returns [08:42:13]Send response to host [08:42:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162425,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:42:13]free response buf [08:42:13]execute_script done [08:42:13]execute_script returns [08:42:13]free content buf [08:42:13]Sock 8.Close socket [08:42:13]Sock 8.Thread stoped [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:52]accept exits with 9 [08:46:52]New connection [08:46:52]New thread 3067006308 created [08:46:52]Thread 3066862948 joined [08:46:52]Waiting for new connection... [08:46:52] Sock 9.Parse request [08:46:52]Sock 9.Check first char [08:46:52]Sock 9.First char is OK [08:46:52]request: POST /json_proto HTTP/1.0 [08:46:52]Method: POST [08:46:52]URL: /json_proto [08:46:52]Method is POST - this is cgi request [08:46:52]url: /json_proto [08:46:52]query_string will be loaded in cgi processing [08:46:52]execute_cgi json_proto POST (null) [08:46:52]execute_cgi path=json_proto method=POST [08:46:52]POST find Content-Length [08:46:52]Host: 172.17.39.67:8080 [08:46:52]Content-Length: 802 [08:46:52]Content-Type: application/json [08:46:52] [08:46:52]POST finish read [08:46:52]Found Content-Length = 802 [08:46:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:52]execute_script... [08:46:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318955", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:52]POST & json_proto [08:46:52]process_json_proto [08:46:52]json parsed OK: [08:46:52]protocol is kg_v1.0 [08:46:52]action value=close_receipt [08:46:52]process_action close_receipt [08:46:52]cmd_close_receipt [08:46:52]MH_GetDate [08:46:52]Write to MH i2c: F0 00 00 4A 08 41 [08:46:52]Write i2c OK [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: F0 [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: F0 09 00 [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: F0 09 00 4A 08 00 09 3F 92 66 FA E9 8E 66 61 [08:46:52]GetLastDocTimeStamp 1720860141 [08:46:52]current date 1720860425 [08:46:52]FM_GetShiftState [08:46:52]SAM_PROTO_GetShiftState [08:46:52]wFMCommunicate request_size=4 [08:46:52]MH_SAM_APDU [08:46:52]CAPDU: 80 13 01 00 [08:46:52]Write to MH i2c: E2 08 00 4B 08 80 13 01 00 00 00 00 00 D0 [08:46:52]Write i2c OK [08:46:52]MH_I2C_Read... [08:46:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:52]Read from MH i2c: E2 [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: E2 0E 00 [08:46:52]MH_I2C_Read... [08:46:52]Read from MH i2c: E2 0E 00 4B 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CA [08:46:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:46:52]wFMCommunicate OK [08:46:52]SAM_PROTO_GetShiftState done [08:46:52]FM_GetShiftState done [08:46:52]opened in 1720828979 [08:46:52]opened+sec_in_day 1720915379 [08:46:52]quantity*price = 99914 [08:46:52]sum+1 = 99915 [08:46:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.14 НСП 1% : 8.84 НДС 12% : 106.10 Наличными: 0.00 Безнал.: 999.14 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 94 13.07.2024 08:47 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162426 ФПД: 149159360958401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084706&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162426&fm=149159360958401&tin=02508201610067®Number=0000000000090858&sum=99914 [08:46:53]StoreToDocumentArchive [08:46:53]shift 462 fd 162426 [08:46:53]save to /storage/0462/doc_00162426 [08:46:53]save last doc name /storage/0462/doc_00162426 to /storage/kkm_last_doc_name [08:46:53]save OK [08:46:53]Clear old archive folders... [08:46:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:53]tlvbuf is 019514D0 [08:46:53]SAM_PROTO_ClearQueue [08:46:53]wFMCommunicate request_size=4 [08:46:53]MH_SAM_APDU [08:46:53]CAPDU: 80 09 00 00 [08:46:53]Write to MH i2c: E2 08 00 58 08 80 09 00 00 00 00 00 00 D2 [08:46:53]Write i2c OK [08:46:53]MH_I2C_Read... [08:46:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:53]Read from MH i2c: E2 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 03 00 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 03 00 58 08 00 90 00 D4 [08:46:53]RAPDU: 90 00 [08:46:53]wFMCommunicate OK [08:46:53]SAM_PROTO_ClearQueue done [08:46:53]KKMCreateOFDPacket [08:46:53]OFDProtocolAddRootSTLVToBuf [08:46:53]FM_MakeSignedData [08:46:53]FM_MakeSignedData [08:46:53]SAM_PROTO_SignData [08:46:53]wFMCommunicate request_size=4 [08:46:53]MH_SAM_APDU [08:46:53]CAPDU: 80 0D 01 02 [08:46:53]Write to MH i2c: E2 08 00 59 08 80 0D 01 02 00 00 00 00 DA [08:46:53]Write i2c OK [08:46:53]MH_I2C_Read... [08:46:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:53]Read from MH i2c: E2 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 03 00 [08:46:53]MH_I2C_Read... [08:46:53]Read from MH i2c: E2 03 00 59 08 00 90 00 D5 [08:46:53]RAPDU: 90 00 [08:46:53]wFMCommunicate OK [08:46:53]wFMCommunicate request_size=255 [08:46:53]MH_SAM_APDU [08:46:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 0A 3F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7A 02 00 35 04 06 00 87 [08:46:53]Write to MH i2c: E2 02 01 5A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 0A 3F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7A 02 00 35 04 06 00 87 00 00 7D [08:46:53]Write i2c OK [08:46:53]MH_I2C_Read... [08:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 5A 08 00 90 00 D6 [08:46:54]RAPDU: 90 00 [08:46:54]wFMCommunicate OK [08:46:54]wFMCommunicate request_size=10 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 0D 02 02 05 A8 DE B9 8F C1 [08:46:54]Write to MH i2c: E2 0D 00 5B 08 80 0D 02 02 05 00 A8 DE B9 8F C1 00 00 76 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [08:46:54]RAPDU: 90 00 [08:46:54]wFMCommunicate OK [08:46:54]wFMCommunicate request_size=4 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 0D 03 02 [08:46:54]Write to MH i2c: E2 08 00 5C 08 80 0D 03 02 00 00 00 00 DF [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 0B 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 0B 00 5C 08 00 03 E9 F3 89 4D 80 C8 67 90 00 44 [08:46:54]RAPDU: 03 E9 F3 89 4D 80 C8 67 90 00 [08:46:54]wFMCommunicate OK [08:46:54]SAM_PROTO_SignData done [08:46:54]FM_MakeSignedData done [08:46:54]CreateOFDProtocolMessage [08:46:54]wFMCommunicate request_size=4 [08:46:54]MH_SAM_APDU [08:46:54]CAPDU: 80 11 00 00 [08:46:54]Write to MH i2c: E2 08 00 5D 08 80 11 00 00 00 00 00 00 DF [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:54]Read from MH i2c: E2 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 17 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: E2 17 00 5D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3F [08:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:46:54]wFMCommunicate OK [08:46:54]CreateOFDProtocolMessage done [08:46:54]OFDSenderStorePacket 162426 [08:46:54]StoreOFDPacket docnum=162426 [08:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 78 95 07 01 55 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 0A 3F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7A 02 00 35 04 06 00 87 A8 DE B9 8F C1 03 E9 F3 89 4D 80 C8 67 [08:46:54]CheckFolder [08:46:54]dirname=/storage/ofd_packets [08:46:54]CheckFolder done [08:46:54]ProducePacketName [08:46:54]name=ofd_packets/00162426 [08:46:54]NVStorageSaveData ofd_packets/00162426 [08:46:54]File name is /storage/ofd_packets/00162426 [08:46:54]Write 301 bytes [08:46:54]NVStorageSaveData done [08:46:54]OFDSenderStorePacket done [08:46:54]KKMCreateOFDPacket done [08:46:54]NVStorageSaveData kkm_last_timestamp [08:46:54]File name is /storage/kkm_last_timestamp [08:46:54]Write 4 bytes [08:46:54]NVStorageSaveData done [08:46:54]ExternCall_PrintAddStr [08:46:54]wPrintStart [08:46:54]Write to MH i2c: 01 00 00 5E 08 66 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 07 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 07 00 5E 08 00 00 00 00 00 FF 0F 7B [08:46:54]RasterBufferAndPrint [08:46:54]line Счет N : (1)1318955 [08:46:54]line ИНН: 02508201610067 [08:46:54]line Контрольно-Кассовый Чек [08:46:54]line ПРОДАЖА [08:46:54]line ТРК (МРК, ГНК) : 63 [08:46:54]line Товар: 2710124130 [08:46:54]line Аи-92-К-5 [08:46:54]line 15.070 * 66.30 [08:46:54]line = 999.14 [08:46:54]line НДС 12% НСП 1% [08:46:54]line > о реализуемом товаре [08:46:54]line ИТОГО: 999.14 [08:46:54]line НСП 1% : 8.84 [08:46:54]line НДС 12% : 106.10 [08:46:54]line Наличными: 0.00 [08:46:54]line Безнал.: 999.14 [08:46:54]line Место: АЗС № 140 "Партнер Нефть" [08:46:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:46:54]line СНО: Общий режим [08:46:54]line Чек 94 13.07.2024 08:47 [08:46:54]line Смена: 462 ФФД: 1.0 [08:46:54]line ЗНМ: 0300000129 [08:46:54]line РНМ: 0000000000090858 [08:46:54]line Версия ККМ: 001 [08:46:54]line Платежная система: O! деньги [08:46:54]line ФМ: 0000000000874899 [08:46:54]line ФД: 162426 [08:46:54]line ФПД: 149159360958401 [08:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084706&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162426&fm=149159360958401&tin=02508201610067®Number=0000000000090858&sum=99914 [08:46:54]written 0, free lines is 4095 [08:46:54]OFD Sender: Processing packet 162426 [packets to send 105, broken 104] [08:46:54]ProducePacketName [08:46:54]name=ofd_packets/00162426 [08:46:54]OFD Sender: To server: pG, [08:46:54]CommunicateWithHost lk.salyk.kg:30040 [08:46:54]ConnectInit lk.salyk.kg [08:46:54]Connected sock=10 [08:46:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 78 95 07 01 55 FA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 0A 3F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7A 02 00 35 04 06 00 87 A8 DE B9 8F C1 03 E9 F3 89 4D 80 C8 67 [08:46:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 21 36 47 00 4A BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7A 02 00 F4 03 04 00 1E EB 91 66 B6 04 01 00 00 96 D9 2E 6A E8 19 BC D6 [08:46:54]CommunicateWithHost err = 0 [08:46:54]CheckOFDResponse [08:46:54]1017 (14) - 77093643461234 [08:46:54]1041 (16) - 0000000000874899 [08:46:54]1040 (4) - 162426 [08:46:54]1012 (4) - 13.07.2024 02:49 [08:46:54]1206 (1) - 0 [08:46:54]OFD Sender: Remove packet 162426 [08:46:54]ProducePacketName [08:46:54]name=ofd_packets/00162426 [08:46:54]NVStorageDeleteData [08:46:54]Write to MH i2c: 01 00 00 88 08 90 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 07 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: 01 07 00 88 08 00 00 00 00 00 F6 0C 99 [08:46:54]RasterBufferAndPrint [08:46:54]line [08:46:54]line [08:46:54]line [08:46:54]line [08:46:54]line [08:46:54]written 0, free lines is 3327 [08:46:54]MH_Cut [08:46:54]Write to MH i2c: D1 01 00 8F 08 01 69 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: D1 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: D1 01 00 [08:46:54]MH_I2C_Read... [08:46:54]Read from MH i2c: D1 01 00 8F 08 00 68 [08:46:54]Write to MH i2c: 01 00 00 90 08 98 [08:46:54]Write i2c OK [08:46:54]MH_I2C_Read... [08:46:55]OFD Sender: No OFD packet to send [08:46:55]*** Cut start [08:46:55]*** Purtial cut [08:46:55]*** Stage 1: CUTSNS_PIN = 1 [08:46:55]Read from MH i2c: 01 [08:46:55]MH_I2C_Read... [08:46:55]*** Stop cut motor [08:46:55]*** Cut end [08:46:55]Read from MH i2c: 01 07 00 [08:46:55]MH_I2C_Read... [08:46:55]Read from MH i2c: 01 07 00 90 08 00 00 00 00 00 FF 0F AD [08:46:55]process_action close_receipt done [08:46:55]requested_data is exist [08:46:55]produce_requested_data [08:46:55]requested_item fm.sn is exist - process it [08:46:55]wFMCommunicate request_size=4 [08:46:55]MH_SAM_APDU [08:46:55]CAPDU: 80 11 00 00 [08:46:55]Write to MH i2c: E2 08 00 91 08 80 11 00 00 00 00 00 00 13 [08:46:55]Write i2c OK [08:46:55]MH_I2C_Read... [08:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 17 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 17 00 91 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 73 [08:46:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:46:56]wFMCommunicate OK [08:46:56]requested_item fd.num is exist - process it [08:46:56]SAM_PROTO_GetFieldsCounters [08:46:56]wFMCommunicate request_size=4 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 13 00 00 [08:46:56]Write to MH i2c: E2 08 00 92 08 80 13 00 00 00 00 00 00 16 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 62 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 62 00 92 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [08:46:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:56]wFMCommunicate OK [08:46:56]SAM_PROTO_GetFieldsCounters done [08:46:56]requested_item shift.num is exist - process it [08:46:56]requested_item shift.opened is exist - process it [08:46:56]req_shift_opened [08:46:56]FM_GetShiftState [08:46:56]SAM_PROTO_GetShiftState [08:46:56]wFMCommunicate request_size=4 [08:46:56]MH_SAM_APDU [08:46:56]CAPDU: 80 13 01 00 [08:46:56]Write to MH i2c: E2 08 00 93 08 80 13 01 00 00 00 00 00 18 [08:46:56]Write i2c OK [08:46:56]MH_I2C_Read... [08:46:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:56]Read from MH i2c: E2 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 0E 00 [08:46:56]MH_I2C_Read... [08:46:56]Read from MH i2c: E2 0E 00 93 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 12 [08:46:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:46:56]wFMCommunicate OK [08:46:56]SAM_PROTO_GetShiftState done [08:46:56]FM_GetShiftState done [08:46:56]req_shift_opened done [08:46:56]requested_item shift.open_date is exist - process it [08:46:56]req_shift_open_date [08:46:56]req_shift_open_date done [08:46:56]produce_requested_data done [08:46:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162426,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:46:56]process_action_free close_receipt [08:46:56]json_value_free [08:46:56]json_value_free done [08:46:56]process_json_proto returns [08:46:56]Send response to host [08:46:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162426,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:46:56]free response buf [08:46:56]execute_script done [08:46:56]execute_script returns [08:46:56]free content buf [08:46:56]Sock 9.Close socket [08:46:56]Sock 9.Thread stoped [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:10]accept exits with 8 [08:47:10]New connection [08:47:10]New thread 3066862948 created [08:47:10]Thread 3067006308 joined [08:47:10]Waiting for new connection... [08:47:10] Sock 8.Parse request [08:47:10]Sock 8.Check first char [08:47:10]Sock 8.First char is OK [08:47:10]request: POST /json_proto HTTP/1.0 [08:47:10]Method: POST [08:47:10]URL: /json_proto [08:47:10]Method is POST - this is cgi request [08:47:10]url: /json_proto [08:47:10]query_string will be loaded in cgi processing [08:47:10]execute_cgi json_proto POST (null) [08:47:10]execute_cgi path=json_proto method=POST [08:47:10]POST find Content-Length [08:47:10]Host: 172.17.39.67:8080 [08:47:10]Content-Length: 678 [08:47:10]Content-Type: application/json [08:47:10] [08:47:10]POST finish read [08:47:10]Found Content-Length = 678 [08:47:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:10]execute_script... [08:47: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)1318956", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:47:10]POST & json_proto [08:47:10]process_json_proto [08:47:10]json parsed OK: [08:47:10]protocol is kg_v1.0 [08:47:10]action value=close_receipt [08:47:10]process_action close_receipt [08:47:10]cmd_close_receipt [08:47:10]MH_GetDate [08:47:10]Write to MH i2c: F0 00 00 94 08 8B [08:47:10]Write i2c OK [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: F0 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: F0 09 00 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: F0 09 00 94 08 00 1C 3F 92 66 FA E9 8E 66 BE [08:47:10]GetLastDocTimeStamp 1720860426 [08:47:10]current date 1720860444 [08:47:10]FM_GetShiftState [08:47:10]SAM_PROTO_GetShiftState [08:47:10]wFMCommunicate request_size=4 [08:47:10]MH_SAM_APDU [08:47:10]CAPDU: 80 13 01 00 [08:47:10]Write to MH i2c: E2 08 00 95 08 80 13 01 00 00 00 00 00 1A [08:47:10]Write i2c OK [08:47:10]MH_I2C_Read... [08:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:10]Read from MH i2c: E2 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: E2 0E 00 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: E2 0E 00 95 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 14 [08:47:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:47:10]wFMCommunicate OK [08:47:10]SAM_PROTO_GetShiftState done [08:47:10]FM_GetShiftState done [08:47:10]opened in 1720828979 [08:47:10]opened+sec_in_day 1720915379 [08:47:10]quantity*price = 50056 [08:47:10]sum+1 = 50058 [08:47:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 95 13.07.2024 08:47 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162427 ФПД: 31999566778974 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084724&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162427&fm=31999566778974&tin=02508201610067®Number=0000000000090858&sum=50000 [08:47:12]StoreToDocumentArchive [08:47:12]shift 462 fd 162427 [08:47:12]save to /storage/0462/doc_00162427 [08:47:12]save last doc name /storage/0462/doc_00162427 to /storage/kkm_last_doc_name [08:47:12]save OK [08:47:12]Clear old archive folders... [08:47:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:47:12]tlvbuf is 018138C0 [08:47:12]SAM_PROTO_ClearQueue [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 09 00 00 [08:47:12]Write to MH i2c: E2 08 00 A2 08 80 09 00 00 00 00 00 00 1C [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 A2 08 00 90 00 1E [08:47:12]RAPDU: 90 00 [08:47:12]wFMCommunicate OK [08:47:12]SAM_PROTO_ClearQueue done [08:47:12]KKMCreateOFDPacket [08:47:12]OFDProtocolAddRootSTLVToBuf [08:47:12]FM_MakeSignedData [08:47:12]FM_MakeSignedData [08:47:12]SAM_PROTO_SignData [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 0D 01 02 [08:47:12]Write to MH i2c: E2 08 00 A3 08 80 0D 01 02 00 00 00 00 24 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 A3 08 00 90 00 1F [08:47:12]RAPDU: 90 00 [08:47:12]wFMCommunicate OK [08:47:12]wFMCommunicate request_size=255 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1C 3F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7A 02 00 35 04 06 00 1D [08:47:12]Write to MH i2c: E2 02 01 A4 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1C 3F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7A 02 00 35 04 06 00 1D 00 00 75 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:12]Read from MH i2c: E2 03 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 A4 08 00 90 00 20 [08:47:12]RAPDU: 90 00 [08:47:12]wFMCommunicate OK [08:47:12]wFMCommunicate request_size=10 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 0D 02 02 05 1A 7A CF 92 5E [08:47:12]Write to MH i2c: E2 0D 00 A5 08 80 0D 02 02 05 00 1A 7A CF 92 5E 00 00 84 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [08:47:12]RAPDU: 90 00 [08:47:12]wFMCommunicate OK [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 0D 03 02 [08:47:12]Write to MH i2c: E2 08 00 A6 08 80 0D 03 02 00 00 00 00 29 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 0B 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 0B 00 A6 08 00 44 10 A2 CC 44 2E E4 95 90 00 D7 [08:47:12]RAPDU: 44 10 A2 CC 44 2E E4 95 90 00 [08:47:12]wFMCommunicate OK [08:47:12]SAM_PROTO_SignData done [08:47:12]FM_MakeSignedData done [08:47:12]CreateOFDProtocolMessage [08:47:12]wFMCommunicate request_size=4 [08:47:12]MH_SAM_APDU [08:47:12]CAPDU: 80 11 00 00 [08:47:12]Write to MH i2c: E2 08 00 A7 08 80 11 00 00 00 00 00 00 29 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:12]Read from MH i2c: E2 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 17 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: E2 17 00 A7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 89 [08:47:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:47:12]wFMCommunicate OK [08:47:12]CreateOFDProtocolMessage done [08:47:12]OFDSenderStorePacket 162427 [08:47:12]StoreOFDPacket docnum=162427 [08:47:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FB 97 07 01 38 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1C 3F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7A 02 00 35 04 06 00 1D 1A 7A CF 92 5E 44 10 A2 CC 44 2E E4 95 [08:47:12]CheckFolder [08:47:12]dirname=/storage/ofd_packets [08:47:12]CheckFolder done [08:47:12]ProducePacketName [08:47:12]name=ofd_packets/00162427 [08:47:12]NVStorageSaveData ofd_packets/00162427 [08:47:12]File name is /storage/ofd_packets/00162427 [08:47:12]Write 301 bytes [08:47:12]NVStorageSaveData done [08:47:12]OFDSenderStorePacket done [08:47:12]KKMCreateOFDPacket done [08:47:12]NVStorageSaveData kkm_last_timestamp [08:47:12]File name is /storage/kkm_last_timestamp [08:47:12]Write 4 bytes [08:47:12]NVStorageSaveData done [08:47:12]ExternCall_PrintAddStr [08:47:12]wPrintStart [08:47:12]Write to MH i2c: 01 00 00 A8 08 B0 [08:47:12]Write i2c OK [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: 01 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: 01 07 00 [08:47:12]MH_I2C_Read... [08:47:12]Read from MH i2c: 01 07 00 A8 08 00 00 00 00 00 FF 0F C5 [08:47:12]RasterBufferAndPrint [08:47:12]line Счет N : (1)1318956 [08:47:12]line ИНН: 02508201610067 [08:47:12]line Контрольно-Кассовый Чек [08:47:12]line ПРОДАЖА [08:47:12]line ТРК (МРК, ГНК) : 43 [08:47:12]line Товар: 2710124130 [08:47:12]line Аи-92-К-5 [08:47:12]line 7.550 * 66.30 [08:47:12]line = 500.57 [08:47:12]line НДС 12% НСП 1% [08:47:12]line > о реализуемом товаре [08:47:12]line ОКРУГЛЕНИЕ: -0.57 [08:47:12]line ИТОГО: 500.00 [08:47:12]line Внесено: 500.00 [08:47:12]line СДАЧА: 0.00 [08:47:12]line НСП 1% : 4.43 [08:47:12]line НДС 12% : 53.16 [08:47:12]line Наличными: 500.00 [08:47:12]line Безнал.: 0.00 [08:47:12]line Место: АЗС № 140 "Партнер Нефть" [08:47:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:47:12]line СНО: Общий режим [08:47:12]line Чек 95 13.07.2024 08:47 [08:47:12]line Смена: 462 ФФД: 1.0 [08:47:12]line ЗНМ: 0300000129 [08:47:12]line РНМ: 0000000000090858 [08:47:12]line Версия ККМ: 001 [08:47:12]line ФМ: 0000000000874899 [08:47:12]line ФД: 162427 [08:47:12]line ФПД: 31999566778974 [08:47:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T084724&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162427&fm=31999566778974&tin=02508201610067®Number=0000000000090858&sum=50000 [08:47:12]OFD Sender: Processing packet 162427 [packets to send 105, broken 104] [08:47:12]ProducePacketName [08:47:12]name=ofd_packets/00162427 [08:47:12]OFD Sender: To server: pG, [08:47:12]CommunicateWithHost lk.salyk.kg:30040 [08:47:12]written 0, free lines is 4095 [08:47:12]ConnectInit lk.salyk.kg [08:47:13]Connected sock=10 [08:47:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FB 97 07 01 38 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 1C 3F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7A 02 00 35 04 06 00 1D 1A 7A CF 92 5E 44 10 A2 CC 44 2E E4 95 [08:47:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EE A9 47 00 EF D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7A 02 00 F4 03 04 00 31 EB 91 66 B6 04 01 00 00 9F 58 5F 05 B0 84 D3 5F [08:47:13]CommunicateWithHost err = 0 [08:47:13]CheckOFDResponse [08:47:13]1017 (14) - 77093643461234 [08:47:13]1041 (16) - 0000000000874899 [08:47:13]1040 (4) - 162427 [08:47:13]1012 (4) - 13.07.2024 02:49 [08:47:13]1206 (1) - 0 [08:47:13]OFD Sender: Remove packet 162427 [08:47:13]ProducePacketName [08:47:13]name=ofd_packets/00162427 [08:47:13]NVStorageDeleteData [08:47:13]Write to MH i2c: 01 00 00 D3 08 DB [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: 01 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: 01 07 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: 01 07 00 D3 08 00 00 00 00 00 DF 0C CD [08:47:13]RasterBufferAndPrint [08:47:13]line [08:47:13]line [08:47:13]line [08:47:13]line [08:47:13]line [08:47:13]written 0, free lines is 3301 [08:47:13]MH_Cut [08:47:13]Write to MH i2c: D1 01 00 DA 08 01 B4 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: D1 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: D1 01 00 [08:47:13]MH_I2C_Read... [08:47:13]Read from MH i2c: D1 01 00 DA 08 00 B3 [08:47:13]Write to MH i2c: 01 00 00 DB 08 E3 [08:47:13]Write i2c OK [08:47:13]MH_I2C_Read... [08:47:13]OFD Sender: No OFD packet to send [08:47:14]*** Cut start [08:47:14]*** Purtial cut [08:47:14]*** CUTSNS_PIN = 0 [08:47:14]*** Stage 1: CUTSNS_PIN = 1 [08:47:16]Read from MH i2c: 01 [08:47:16]MH_I2C_Read... [08:47:16]*** Stop cut motor [08:47:16]*** Cut end [08:47:16]Read from MH i2c: 01 07 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: 01 07 00 DB 08 00 00 00 00 00 FF 0F F8 [08:47:16]process_action close_receipt done [08:47:16]requested_data is exist [08:47:16]produce_requested_data [08:47:16]requested_item fm.sn is exist - process it [08:47:16]wFMCommunicate request_size=4 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 11 00 00 [08:47:16]Write to MH i2c: E2 08 00 DC 08 80 11 00 00 00 00 00 00 5E [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 17 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 17 00 DC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BE [08:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:47:16]wFMCommunicate OK [08:47:16]requested_item fd.num is exist - process it [08:47:16]SAM_PROTO_GetFieldsCounters [08:47:16]wFMCommunicate request_size=4 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 13 00 00 [08:47:16]Write to MH i2c: E2 08 00 DD 08 80 13 00 00 00 00 00 00 61 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 62 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 62 00 DD 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [08:47:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:16]wFMCommunicate OK [08:47:16]SAM_PROTO_GetFieldsCounters done [08:47:16]requested_item shift.num is exist - process it [08:47:16]requested_item shift.opened is exist - process it [08:47:16]req_shift_opened [08:47:16]FM_GetShiftState [08:47:16]SAM_PROTO_GetShiftState [08:47:16]wFMCommunicate request_size=4 [08:47:16]MH_SAM_APDU [08:47:16]CAPDU: 80 13 01 00 [08:47:16]Write to MH i2c: E2 08 00 DE 08 80 13 01 00 00 00 00 00 63 [08:47:16]Write i2c OK [08:47:16]MH_I2C_Read... [08:47:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:16]Read from MH i2c: E2 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 0E 00 [08:47:16]MH_I2C_Read... [08:47:16]Read from MH i2c: E2 0E 00 DE 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5D [08:47:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:47:16]wFMCommunicate OK [08:47:16]SAM_PROTO_GetShiftState done [08:47:16]FM_GetShiftState done [08:47:16]req_shift_opened done [08:47:16]requested_item shift.open_date is exist - process it [08:47:16]req_shift_open_date [08:47:16]req_shift_open_date done [08:47:16]produce_requested_data done [08:47:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162427,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:47:16]process_action_free close_receipt [08:47:16]json_value_free [08:47:16]json_value_free done [08:47:16]process_json_proto returns [08:47:16]Send response to host [08:47:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162427,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:47:16]free response buf [08:47:16]execute_script done [08:47:16]execute_script returns [08:47:16]free content buf [08:47:16]Sock 8.Close socket [08:47:16]Sock 8.Thread stoped [08:47:18]OFD Sender: No OFD packet to send [08:47:23]OFD Sender: No OFD packet to send [08:47:28]OFD Sender: No OFD packet to send [08:47:33]OFD Sender: No OFD packet to send [08:47:38]OFD Sender: No OFD packet to send [08:47:43]OFD Sender: No OFD packet to send [08:47:48]OFD Sender: No OFD packet to send [08:47:53]OFD Sender: No OFD packet to send [08:47:58]OFD Sender: No OFD packet to send [08:48:03]OFD Sender: No OFD packet to send [08:48:08]OFD Sender: No OFD packet to send [08:48:13]OFD Sender: No OFD packet to send [08:48:18]OFD Sender: No OFD packet to send [08:48:23]OFD Sender: No OFD packet to send [08:48:28]OFD Sender: No OFD packet to send [08:48:33]OFD Sender: No OFD packet to send [08:48:38]OFD Sender: No OFD packet to send [08:48:43]OFD Sender: No OFD packet to send [08:48:48]OFD Sender: No OFD packet to send [08:48:53]OFD Sender: No OFD packet to send [08:48:58]OFD Sender: No OFD packet to send [08:49:03]OFD Sender: No OFD packet to send [08:49:08]OFD Sender: No OFD packet to send [08:49:13]OFD Sender: No OFD packet to send [08:49:18]OFD Sender: No OFD packet to send [08:49:23]OFD Sender: No OFD packet to send [08:49:28]OFD Sender: No OFD packet to send [08:49:33]OFD Sender: No OFD packet to send [08:49:38]OFD Sender: No OFD packet to send [08:49:43]OFD Sender: No OFD packet to send [08:49:48]OFD Sender: No OFD packet to send [08:49:53]OFD Sender: No OFD packet to send [08:49:58]OFD Sender: No OFD packet to send [08:50:03]OFD Sender: No OFD packet to send [08:50:08]OFD Sender: No OFD packet to send [08:50:13]OFD Sender: No OFD packet to send [08:50:18]OFD Sender: No OFD packet to send [08:50:23]OFD Sender: No OFD packet to send [08:50:28]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:54]OFD Sender: No OFD packet to send [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:49]accept exits with 9 [08:51:49]New connection [08:51:49]New thread 3067006308 created [08:51:49]Thread 3066862948 joined [08:51:49]Waiting for new connection... [08:51:49] Sock 9.Parse request [08:51:49]Sock 9.Check first char [08:51:49]Sock 9.First char is OK [08:51:49]request: POST /json_proto HTTP/1.0 [08:51:49]Method: POST [08:51:49]URL: /json_proto [08:51:49]Method is POST - this is cgi request [08:51:49]url: /json_proto [08:51:49]query_string will be loaded in cgi processing [08:51:49]execute_cgi json_proto POST (null) [08:51:49]execute_cgi path=json_proto method=POST [08:51:49]POST find Content-Length [08:51:49]Host: 172.17.39.67:8080 [08:51:49]Content-Length: 688 [08:51:49]Content-Type: application/json [08:51:49] [08:51:49]POST finish read [08:51:49]Found Content-Length = 688 [08:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:51:49]execute_script... [08:51:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:51:49]POST & json_proto [08:51:49]process_json_proto [08:51:49]json parsed OK: [08:51:49]protocol is kg_v1.0 [08:51:49]action value=close_receipt [08:51:49]process_action close_receipt [08:51:49]cmd_close_receipt [08:51:49]MH_GetDate [08:51:49]Write to MH i2c: F0 00 00 DF 08 D6 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: F0 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: F0 09 00 [08:51:49]MH_I2C_Read... [08:51:49]Read from MH i2c: F0 09 00 DF 08 00 33 40 92 66 FA E9 8E 66 21 [08:51:49]GetLastDocTimeStamp 1720860444 [08:51:49]current date 1720860723 [08:51:49]FM_GetShiftState [08:51:49]SAM_PROTO_GetShiftState [08:51:49]wFMCommunicate request_size=4 [08:51:49]MH_SAM_APDU [08:51:49]CAPDU: 80 13 01 00 [08:51:49]Write to MH i2c: E2 08 00 E0 08 80 13 01 00 00 00 00 00 65 [08:51:49]Write i2c OK [08:51:49]MH_I2C_Read... [08:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:50]Read from MH i2c: E2 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 0E 00 [08:51:50]MH_I2C_Read... [08:51:50]Read from MH i2c: E2 0E 00 E0 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5F [08:51:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:51:50]wFMCommunicate OK [08:51:50]SAM_PROTO_GetShiftState done [08:51:50]FM_GetShiftState done [08:51:50]opened in 1720828979 [08:51:50]opened+sec_in_day 1720915379 [08:51:50]quantity*price = 300055 [08:51:50]sum+1 = 300057 [08:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 96 13.07.2024 08:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162428 ФПД: 15287376123200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T085203&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162428&fm=15287376123200&tin=02508201610067®Number=0000000000090858&sum=300000 [08:51:51]StoreToDocumentArchive [08:51:51]shift 462 fd 162428 [08:51:51]save to /storage/0462/doc_00162428 [08:51:51]save last doc name /storage/0462/doc_00162428 to /storage/kkm_last_doc_name [08:51:51]save OK [08:51:51]Clear old archive folders... [08:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:51:51]tlvbuf is 01BD3D40 [08:51:51]SAM_PROTO_ClearQueue [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 09 00 00 [08:51:51]Write to MH i2c: E2 08 00 ED 08 80 09 00 00 00 00 00 00 67 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:51]Read from MH i2c: E2 03 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 03 00 ED 08 00 90 00 69 [08:51:51]RAPDU: 90 00 [08:51:51]wFMCommunicate OK [08:51:51]SAM_PROTO_ClearQueue done [08:51:51]KKMCreateOFDPacket [08:51:51]OFDProtocolAddRootSTLVToBuf [08:51:51]FM_MakeSignedData [08:51:51]FM_MakeSignedData [08:51:51]SAM_PROTO_SignData [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 0D 01 02 [08:51:51]Write to MH i2c: E2 08 00 EE 08 80 0D 01 02 00 00 00 00 6F [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 03 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 03 00 EE 08 00 90 00 6A [08:51:51]RAPDU: 90 00 [08:51:51]wFMCommunicate OK [08:51:51]wFMCommunicate request_size=255 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 60 00 00 00 F4 03 04 00 33 40 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7A 02 00 35 04 06 00 [08:51:51]Write to MH i2c: E2 02 01 EF 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 60 00 00 00 F4 03 04 00 33 40 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7A 02 00 35 04 06 00 00 00 DE [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 03 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [08:51:51]RAPDU: 90 00 [08:51:51]wFMCommunicate OK [08:51:51]wFMCommunicate request_size=11 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 0D 02 02 06 0D E7 5E 9F 95 40 [08:51:51]Write to MH i2c: E2 0E 00 F0 08 80 0D 02 02 06 00 0D E7 5E 9F 95 40 00 00 44 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 03 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [08:51:51]RAPDU: 90 00 [08:51:51]wFMCommunicate OK [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 0D 03 02 [08:51:51]Write to MH i2c: E2 08 00 F1 08 80 0D 03 02 00 00 00 00 74 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 0B 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 0B 00 F1 08 00 26 24 11 34 0E C2 94 40 90 00 A8 [08:51:51]RAPDU: 26 24 11 34 0E C2 94 40 90 00 [08:51:51]wFMCommunicate OK [08:51:51]SAM_PROTO_SignData done [08:51:51]FM_MakeSignedData done [08:51:51]CreateOFDProtocolMessage [08:51:51]wFMCommunicate request_size=4 [08:51:51]MH_SAM_APDU [08:51:51]CAPDU: 80 11 00 00 [08:51:51]Write to MH i2c: E2 08 00 F2 08 80 11 00 00 00 00 00 00 74 [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:51]Read from MH i2c: E2 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 17 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: E2 17 00 F2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D4 [08:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:51:51]wFMCommunicate OK [08:51:51]CreateOFDProtocolMessage done [08:51:51]OFDSenderStorePacket 162428 [08:51:51]StoreOFDPacket docnum=162428 [08:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1B 46 08 01 EB 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 60 00 00 00 F4 03 04 00 33 40 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7A 02 00 35 04 06 00 0D E7 5E 9F 95 40 26 24 11 34 0E C2 94 40 [08:51:51]CheckFolder [08:51:51]dirname=/storage/ofd_packets [08:51:51]CheckFolder done [08:51:51]ProducePacketName [08:51:51]name=ofd_packets/00162428 [08:51:51]NVStorageSaveData ofd_packets/00162428 [08:51:51]File name is /storage/ofd_packets/00162428 [08:51:51]Write 302 bytes [08:51:51]NVStorageSaveData done [08:51:51]OFDSenderStorePacket done [08:51:51]KKMCreateOFDPacket done [08:51:51]NVStorageSaveData kkm_last_timestamp [08:51:51]File name is /storage/kkm_last_timestamp [08:51:51]Write 4 bytes [08:51:51]NVStorageSaveData done [08:51:51]ExternCall_PrintAddStr [08:51:51]wPrintStart [08:51:51]Write to MH i2c: 01 00 00 F3 08 FB [08:51:51]Write i2c OK [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: 01 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: 01 07 00 [08:51:51]MH_I2C_Read... [08:51:51]Read from MH i2c: 01 07 00 F3 08 00 00 00 00 00 FF 0F 10 [08:51:51]RasterBufferAndPrint [08:51:51]line Счет N : (1)1318958 [08:51:51]line ИНН: 02508201610067 [08:51:51]line Контрольно-Кассовый Чек [08:51:51]line ПРОДАЖА [08:51:51]line ТРК (МРК, ГНК) : 21 [08:51:51]line Товар: 2710194210 [08:51:51]line ДТ(л)-К-5 [08:51:51]line 41.330 * 72.60 [08:51:51]line = 3000.56 [08:51:51]line НДС 12% НСП 1% [08:51:51]line > о реализуемом товаре [08:51:51]line ОКРУГЛЕНИЕ: -0.56 [08:51:51]line ИТОГО: 3000.00 [08:51:51]line Внесено: 3000.00 [08:51:51]line СДАЧА: 0.00 [08:51:51]line НСП 1% : 26.55 [08:51:51]line НДС 12% : 318.64 [08:51:51]line Наличными: 3000.00 [08:51:51]line Безнал.: 0.00 [08:51:51]line Место: АЗС № 140 "Партнер Нефть" [08:51:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:51:51]line СНО: Общий режим [08:51:51]line Чек 96 13.07.2024 08:52 [08:51:51]line Смена: 462 ФФД: 1.0 [08:51:51]line ЗНМ: 0300000129 [08:51:51]line РНМ: 0000000000090858 [08:51:51]line Версия ККМ: 001 [08:51:51]line ФМ: 0000000000874899 [08:51:51]line ФД: 162428 [08:51:51]line ФПД: 15287376123200 [08:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T085203&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162428&fm=15287376123200&tin=02508201610067®Number=0000000000090858&sum=300000 [08:51:52]OFD Sender: Processing packet 162428 [packets to send 105, broken 104] [08:51:52]ProducePacketName [08:51:52]name=ofd_packets/00162428 [08:51:52]OFD Sender: To server: pG, [08:51:52]CommunicateWithHost lk.salyk.kg:30040 [08:51:52]ConnectInit lk.salyk.kg [08:51:52]written 0, free lines is 4095 [08:51:52]Connected sock=10 [08:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1B 46 08 01 EB 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 60 00 00 00 F4 03 04 00 33 40 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7A 02 00 35 04 06 00 0D E7 5E 9F 95 40 26 24 11 34 0E C2 94 40 [08:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 97 F1 47 00 5D BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7A 02 00 F4 03 04 00 48 EC 91 66 B6 04 01 00 00 E3 3E 0B 1B EB D4 1E 86 [08:51:52]CommunicateWithHost err = 0 [08:51:52]CheckOFDResponse [08:51:52]1017 (14) - 77093643461234 [08:51:52]1041 (16) - 0000000000874899 [08:51:52]1040 (4) - 162428 [08:51:52]1012 (4) - 13.07.2024 02:54 [08:51:52]1206 (1) - 0 [08:51:52]OFD Sender: Remove packet 162428 [08:51:52]ProducePacketName [08:51:52]name=ofd_packets/00162428 [08:51:52]NVStorageDeleteData [08:51:52]Write to MH i2c: 01 00 00 1E 09 27 [08:51:52]Write i2c OK [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: 01 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: 01 07 00 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: 01 07 00 1E 09 00 00 00 00 00 E7 0C 21 [08:51:52]RasterBufferAndPrint [08:51:52]line [08:51:52]line [08:51:52]line [08:51:52]line [08:51:52]line [08:51:52]written 0, free lines is 3309 [08:51:52]MH_Cut [08:51:52]Write to MH i2c: D1 01 00 25 09 01 00 [08:51:52]Write i2c OK [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: D1 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: D1 01 00 [08:51:52]MH_I2C_Read... [08:51:52]Read from MH i2c: D1 01 00 25 09 00 FF [08:51:52]Write to MH i2c: 01 00 00 26 09 2F [08:51:52]Write i2c OK [08:51:52]MH_I2C_Read... [08:51:52]OFD Sender: No OFD packet to send [08:51:53]*** Cut start [08:51:53]*** Purtial cut [08:51:53]*** Stage 1: CUTSNS_PIN = 1 [08:51:53]Read from MH i2c: 01 [08:51:53]MH_I2C_Read... [08:51:53]*** Stop cut motor [08:51:53]*** Cut end [08:51:53]Read from MH i2c: 01 07 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: 01 07 00 26 09 00 00 00 00 00 FF 0F 44 [08:51:53]process_action close_receipt done [08:51:53]requested_data is exist [08:51:53]produce_requested_data [08:51:53]requested_item fm.sn is exist - process it [08:51:53]wFMCommunicate request_size=4 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 11 00 00 [08:51:53]Write to MH i2c: E2 08 00 27 09 80 11 00 00 00 00 00 00 AA [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 17 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 17 00 27 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0A [08:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:51:53]wFMCommunicate OK [08:51:53]requested_item fd.num is exist - process it [08:51:53]SAM_PROTO_GetFieldsCounters [08:51:53]wFMCommunicate request_size=4 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 13 00 00 [08:51:53]Write to MH i2c: E2 08 00 28 09 80 13 00 00 00 00 00 00 AD [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 62 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 62 00 28 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [08:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:53]wFMCommunicate OK [08:51:53]SAM_PROTO_GetFieldsCounters done [08:51:53]requested_item shift.num is exist - process it [08:51:53]requested_item shift.opened is exist - process it [08:51:53]req_shift_opened [08:51:53]FM_GetShiftState [08:51:53]SAM_PROTO_GetShiftState [08:51:53]wFMCommunicate request_size=4 [08:51:53]MH_SAM_APDU [08:51:53]CAPDU: 80 13 01 00 [08:51:53]Write to MH i2c: E2 08 00 29 09 80 13 01 00 00 00 00 00 AF [08:51:53]Write i2c OK [08:51:53]MH_I2C_Read... [08:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:53]Read from MH i2c: E2 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 0E 00 [08:51:53]MH_I2C_Read... [08:51:53]Read from MH i2c: E2 0E 00 29 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A9 [08:51:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:51:53]wFMCommunicate OK [08:51:53]SAM_PROTO_GetShiftState done [08:51:53]FM_GetShiftState done [08:51:53]req_shift_opened done [08:51:53]requested_item shift.open_date is exist - process it [08:51:53]req_shift_open_date [08:51:53]req_shift_open_date done [08:51:53]produce_requested_data done [08:51:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162428,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:51:53]process_action_free close_receipt [08:51:53]json_value_free [08:51:53]json_value_free done [08:51:53]process_json_proto returns [08:51:53]Send response to host [08:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162428,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:51:53]free response buf [08:51:53]execute_script done [08:51:53]execute_script returns [08:51:53]free content buf [08:51:53]Sock 9.Close socket [08:51:53]Sock 9.Thread stoped [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:16]accept exits with 8 [08:52:16]New connection [08:52:16]New thread 3066862948 created [08:52:16]Thread 3067006308 joined [08:52:16]Waiting for new connection... [08:52:16] Sock 8.Parse request [08:52:16]Sock 8.Check first char [08:52:16]Sock 8.First char is OK [08:52:16]request: POST /json_proto HTTP/1.0 [08:52:16]Method: POST [08:52:16]URL: /json_proto [08:52:16]Method is POST - this is cgi request [08:52:16]url: /json_proto [08:52:16]query_string will be loaded in cgi processing [08:52:16]execute_cgi json_proto POST (null) [08:52:16]execute_cgi path=json_proto method=POST [08:52:16]POST find Content-Length [08:52:16]Host: 172.17.39.67:8080 [08:52:16]Content-Length: 1219 [08:52:16]Content-Type: application/json [08:52:16] [08:52:16]POST finish read [08:52:16]Found Content-Length = 1219 [08:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318957\u000A13.07.2024 08:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 130.860 x 72.60\u000A\u0418\u0422\u041E\u0413: 9500.44\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32802\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:16]execute_script... [08:52:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318957\u000A13.07.2024 08:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 130.860 x 72.60\u000A\u0418\u0422\u041E\u0413: 9500.44\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32802\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:16]POST & json_proto [08:52:16]process_json_proto [08:52:16]json parsed OK: [08:52:16]protocol is kg_v1.0 [08:52:16]action value=print_text [08:52:16]process_action print_text [08:52:16]cmd_print_text [08:52:16]ExternCall_PrintAddStr [08:52:16]wPrintStart [08:52:16]Write to MH i2c: 01 00 00 2A 09 33 [08:52:16]Write i2c OK [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: 01 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: 01 07 00 [08:52:16]MH_I2C_Read... [08:52:16]Read from MH i2c: 01 07 00 2A 09 00 00 00 00 00 FF 0F 48 [08:52:16]RasterBufferAndPrint [08:52:16]line *****ТОВАРНЫЙ ЧЕК***** [08:52:16]line АЗС 140 [08:52:16]line Партнер нефть [08:52:16]line 02508201610067 [08:52:16]line Кассир : Шамбеталиев А. [08:52:16]line Счет N : (1)1318957 [08:52:16]line 13.07.2024 08:50 [08:52:16]line ПРОДАЖА [08:52:16]line ТРК (МРК, ГНК): 11 [08:52:16]line Вид ГСМ : 2710194210 [08:52:16]line ДТ(л)-К-5 [08:52:16]line 130.860 x 72.60 [08:52:16]line ИТОГ: 9500.44 [08:52:16]line Тип оплаты: Талоны: Топливная Карта [08:52:16]line 32802 [08:52:16]line ______________________ [08:52:16]line (подпись) [08:52:16]written 0, free lines is 4095 [08:52:17]Write to MH i2c: 01 00 00 3F 09 48 [08:52:17]Write i2c OK [08:52:17]MH_I2C_Read... [08:52:17]Read from MH i2c: 01 [08:52:17]MH_I2C_Read... [08:52:17]Read from MH i2c: 01 07 00 [08:52:17]MH_I2C_Read... [08:52:17]Read from MH i2c: 01 07 00 3F 09 00 00 00 00 00 F7 0D 53 [08:52:17]RasterBufferAndPrint [08:52:17]line [08:52:17]line [08:52:17]line [08:52:17]line [08:52:17]line [08:52:17]written 0, free lines is 3577 [08:52:17]MH_Cut [08:52:17]Write to MH i2c: D1 01 00 46 09 01 21 [08:52:17]Write i2c OK [08:52:17]MH_I2C_Read... [08:52:17]Read from MH i2c: D1 [08:52:17]MH_I2C_Read... [08:52:17]Read from MH i2c: D1 01 00 [08:52:17]MH_I2C_Read... [08:52:17]Read from MH i2c: D1 01 00 46 09 00 20 [08:52:17]Write to MH i2c: 01 00 00 47 09 50 [08:52:17]Write i2c OK [08:52:17]MH_I2C_Read... [08:52:17]*** Cut start [08:52:17]*** Purtial cut [08:52:17]*** CUTSNS_PIN = 0 [08:52:17]*** Stage 1: CUTSNS_PIN = 1 [08:52:17]OFD Sender: No OFD packet to send [08:52:19]Read from MH i2c: 01 [08:52:19]MH_I2C_Read... [08:52:19]*** Stop cut motor [08:52:19]*** Cut end [08:52:19]Read from MH i2c: 01 07 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: 01 07 00 47 09 00 00 00 00 00 FF 0F 65 [08:52:19]process_action print_text done [08:52:19]requested_data is exist [08:52:19]produce_requested_data [08:52:19]requested_item fm.sn is exist - process it [08:52:19]wFMCommunicate request_size=4 [08:52:19]MH_SAM_APDU [08:52:19]CAPDU: 80 11 00 00 [08:52:19]Write to MH i2c: E2 08 00 48 09 80 11 00 00 00 00 00 00 CB [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:19]Read from MH i2c: E2 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 17 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 17 00 48 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2B [08:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:52:19]wFMCommunicate OK [08:52:19]requested_item fd.num is exist - process it [08:52:19]SAM_PROTO_GetFieldsCounters [08:52:19]wFMCommunicate request_size=4 [08:52:19]MH_SAM_APDU [08:52:19]CAPDU: 80 13 00 00 [08:52:19]Write to MH i2c: E2 08 00 49 09 80 13 00 00 00 00 00 00 CE [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:52:19]Read from MH i2c: E2 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 62 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 62 00 49 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [08:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:52:19]wFMCommunicate OK [08:52:19]SAM_PROTO_GetFieldsCounters done [08:52:19]requested_item shift.num is exist - process it [08:52:19]requested_item shift.opened is exist - process it [08:52:19]req_shift_opened [08:52:19]FM_GetShiftState [08:52:19]SAM_PROTO_GetShiftState [08:52:19]wFMCommunicate request_size=4 [08:52:19]MH_SAM_APDU [08:52:19]CAPDU: 80 13 01 00 [08:52:19]Write to MH i2c: E2 08 00 4A 09 80 13 01 00 00 00 00 00 D0 [08:52:19]Write i2c OK [08:52:19]MH_I2C_Read... [08:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:19]Read from MH i2c: E2 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 0E 00 [08:52:19]MH_I2C_Read... [08:52:19]Read from MH i2c: E2 0E 00 4A 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CA [08:52:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:52:19]wFMCommunicate OK [08:52:19]SAM_PROTO_GetShiftState done [08:52:19]FM_GetShiftState done [08:52:19]req_shift_opened done [08:52:19]requested_item shift.open_date is exist - process it [08:52:19]req_shift_open_date [08:52:19]req_shift_open_date done [08:52:19]produce_requested_data done [08:52:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162428,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:52:19]process_action_free print_text [08:52:19]json_value_free [08:52:19]json_value_free done [08:52:19]process_json_proto returns [08:52:19]Send response to host [08:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162428,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:52:19]free response buf [08:52:19]execute_script done [08:52:19]execute_script returns [08:52:19]free content buf [08:52:19]Sock 8.Close socket [08:52:19]Sock 8.Thread stoped [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:43]OFD Sender: No OFD packet to send [08:54:48]OFD Sender: No OFD packet to send [08:54:53]OFD Sender: No OFD packet to send [08:54:58]OFD Sender: No OFD packet to send [08:55:03]OFD Sender: No OFD packet to send [08:55:08]OFD Sender: No OFD packet to send [08:55:13]OFD Sender: No OFD packet to send [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [08:55:53]OFD Sender: No OFD packet to send [08:55:58]OFD Sender: No OFD packet to send [08:56:03]OFD Sender: No OFD packet to send [08:56:08]OFD Sender: No OFD packet to send [08:56:13]OFD Sender: No OFD packet to send [08:56:18]OFD Sender: No OFD packet to send [08:56:23]OFD Sender: No OFD packet to send [08:56:28]OFD Sender: No OFD packet to send [08:56:33]OFD Sender: No OFD packet to send [08:56:38]OFD Sender: No OFD packet to send [08:56:43]OFD Sender: No OFD packet to send [08:56:48]OFD Sender: No OFD packet to send [08:56:53]OFD Sender: No OFD packet to send [08:56:58]OFD Sender: No OFD packet to send [08:57:01]accept exits with 9 [08:57:01]New connection [08:57:01]New thread 3067006308 created [08:57:01]Thread 3066862948 joined [08:57:01]Waiting for new connection... [08:57:01] Sock 9.Parse request [08:57:01]Sock 9.Check first char [08:57:01]Sock 9.First char is OK [08:57:01]request: POST /json_proto HTTP/1.0 [08:57:01]Method: POST [08:57:01]URL: /json_proto [08:57:01]Method is POST - this is cgi request [08:57:01]url: /json_proto [08:57:01]query_string will be loaded in cgi processing [08:57:01]execute_cgi json_proto POST (null) [08:57:01]execute_cgi path=json_proto method=POST [08:57:01]POST find Content-Length [08:57:01]Host: 172.17.39.67:8080 [08:57:01]Content-Length: 688 [08:57:01]Content-Type: application/json [08:57:01] [08:57:01]POST finish read [08:57:01]Found Content-Length = 688 [08:57:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:57:01]execute_script... [08:57: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)1318959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [08:57:01]POST & json_proto [08:57:01]process_json_proto [08:57:01]json parsed OK: [08:57:01]protocol is kg_v1.0 [08:57:01]action value=close_receipt [08:57:01]process_action close_receipt [08:57:01]cmd_close_receipt [08:57:01]MH_GetDate [08:57:01]Write to MH i2c: F0 00 00 4B 09 43 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: F0 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: F0 09 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: F0 09 00 4B 09 00 6B 41 92 66 FA E9 8E 66 C7 [08:57:01]GetLastDocTimeStamp 1720860723 [08:57:01]current date 1720861035 [08:57:01]FM_GetShiftState [08:57:01]SAM_PROTO_GetShiftState [08:57:01]wFMCommunicate request_size=4 [08:57:01]MH_SAM_APDU [08:57:01]CAPDU: 80 13 01 00 [08:57:01]Write to MH i2c: E2 08 00 4C 09 80 13 01 00 00 00 00 00 D2 [08:57:01]Write i2c OK [08:57:01]MH_I2C_Read... [08:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:01]Read from MH i2c: E2 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 0E 00 [08:57:01]MH_I2C_Read... [08:57:01]Read from MH i2c: E2 0E 00 4C 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CC [08:57:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:57:01]wFMCommunicate OK [08:57:01]SAM_PROTO_GetShiftState done [08:57:01]FM_GetShiftState done [08:57:01]opened in 1720828979 [08:57:01]opened+sec_in_day 1720915379 [08:57:01]quantity*price = 300055 [08:57:01]sum+1 = 300057 [08:57:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 97 13.07.2024 08:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162429 ФПД: 74915132978813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T085715&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162429&fm=74915132978813&tin=02508201610067®Number=0000000000090858&sum=300000 [08:57:02]StoreToDocumentArchive [08:57:02]shift 462 fd 162429 [08:57:02]save to /storage/0462/doc_00162429 [08:57:02]save last doc name /storage/0462/doc_00162429 to /storage/kkm_last_doc_name [08:57:02]save OK [08:57:02]Clear old archive folders... [08:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:57:03]tlvbuf is 017A7110 [08:57:03]SAM_PROTO_ClearQueue [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 09 00 00 [08:57:03]Write to MH i2c: E2 08 00 59 09 80 09 00 00 00 00 00 00 D4 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 59 09 00 90 00 D6 [08:57:03]RAPDU: 90 00 [08:57:03]wFMCommunicate OK [08:57:03]SAM_PROTO_ClearQueue done [08:57:03]KKMCreateOFDPacket [08:57:03]OFDProtocolAddRootSTLVToBuf [08:57:03]FM_MakeSignedData [08:57:03]FM_MakeSignedData [08:57:03]SAM_PROTO_SignData [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 0D 01 02 [08:57:03]Write to MH i2c: E2 08 00 5A 09 80 0D 01 02 00 00 00 00 DC [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 5A 09 00 90 00 D7 [08:57:03]RAPDU: 90 00 [08:57:03]wFMCommunicate OK [08:57:03]wFMCommunicate request_size=255 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 61 00 00 00 F4 03 04 00 6B 41 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7A 02 00 35 04 06 00 [08:57:03]Write to MH i2c: E2 02 01 5B 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 61 00 00 00 F4 03 04 00 6B 41 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7A 02 00 35 04 06 00 00 00 86 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]OFD Sender: No OFD packet to send [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:03]Read from MH i2c: E2 03 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 5B 09 00 90 00 D8 [08:57:03]RAPDU: 90 00 [08:57:03]wFMCommunicate OK [08:57:03]wFMCommunicate request_size=11 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 0D 02 02 06 44 22 89 E3 B6 7D [08:57:03]Write to MH i2c: E2 0E 00 5C 09 80 0D 02 02 06 00 44 22 89 E3 B6 7D 00 00 F0 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 03 00 5C 09 00 90 00 D9 [08:57:03]RAPDU: 90 00 [08:57:03]wFMCommunicate OK [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 0D 03 02 [08:57:03]Write to MH i2c: E2 08 00 5D 09 80 0D 03 02 00 00 00 00 E1 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 0B 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 0B 00 5D 09 00 C2 E1 70 EB 17 8B 9E 3F 90 00 5F [08:57:03]RAPDU: C2 E1 70 EB 17 8B 9E 3F 90 00 [08:57:03]wFMCommunicate OK [08:57:03]SAM_PROTO_SignData done [08:57:03]FM_MakeSignedData done [08:57:03]CreateOFDProtocolMessage [08:57:03]wFMCommunicate request_size=4 [08:57:03]MH_SAM_APDU [08:57:03]CAPDU: 80 11 00 00 [08:57:03]Write to MH i2c: E2 08 00 5E 09 80 11 00 00 00 00 00 00 E1 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:03]Read from MH i2c: E2 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 17 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: E2 17 00 5E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 41 [08:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:57:03]wFMCommunicate OK [08:57:03]CreateOFDProtocolMessage done [08:57:03]OFDSenderStorePacket 162429 [08:57:03]StoreOFDPacket docnum=162429 [08:57:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 25 4E 08 01 96 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 61 00 00 00 F4 03 04 00 6B 41 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7A 02 00 35 04 06 00 44 22 89 E3 B6 7D C2 E1 70 EB 17 8B 9E 3F [08:57:03]CheckFolder [08:57:03]dirname=/storage/ofd_packets [08:57:03]CheckFolder done [08:57:03]ProducePacketName [08:57:03]name=ofd_packets/00162429 [08:57:03]NVStorageSaveData ofd_packets/00162429 [08:57:03]File name is /storage/ofd_packets/00162429 [08:57:03]Write 302 bytes [08:57:03]NVStorageSaveData done [08:57:03]OFDSenderStorePacket done [08:57:03]KKMCreateOFDPacket done [08:57:03]NVStorageSaveData kkm_last_timestamp [08:57:03]File name is /storage/kkm_last_timestamp [08:57:03]Write 4 bytes [08:57:03]NVStorageSaveData done [08:57:03]ExternCall_PrintAddStr [08:57:03]wPrintStart [08:57:03]Write to MH i2c: 01 00 00 5F 09 68 [08:57:03]Write i2c OK [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: 01 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: 01 07 00 [08:57:03]MH_I2C_Read... [08:57:03]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 FF 0F 7D [08:57:03]RasterBufferAndPrint [08:57:03]line Счет N : (1)1318959 [08:57:03]line ИНН: 02508201610067 [08:57:03]line Контрольно-Кассовый Чек [08:57:03]line ПРОДАЖА [08:57:03]line ТРК (МРК, ГНК) : 21 [08:57:03]line Товар: 2710194210 [08:57:03]line ДТ(л)-К-5 [08:57:03]line 41.330 * 72.60 [08:57:03]line = 3000.56 [08:57:03]line НДС 12% НСП 1% [08:57:03]line > о реализуемом товаре [08:57:03]line ОКРУГЛЕНИЕ: -0.56 [08:57:03]line ИТОГО: 3000.00 [08:57:03]line Внесено: 3000.00 [08:57:03]line СДАЧА: 0.00 [08:57:03]line НСП 1% : 26.55 [08:57:03]line НДС 12% : 318.64 [08:57:03]line Наличными: 3000.00 [08:57:03]line Безнал.: 0.00 [08:57:03]line Место: АЗС № 140 "Партнер Нефть" [08:57:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:57:03]line СНО: Общий режим [08:57:03]line Чек 97 13.07.2024 08:57 [08:57:03]line Смена: 462 ФФД: 1.0 [08:57:03]line ЗНМ: 0300000129 [08:57:03]line РНМ: 0000000000090858 [08:57:03]line Версия ККМ: 001 [08:57:03]line ФМ: 0000000000874899 [08:57:03]line ФД: 162429 [08:57:03]line ФПД: 74915132978813 [08:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T085715&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162429&fm=74915132978813&tin=02508201610067®Number=0000000000090858&sum=300000 [08:57:03]OFD Sender: Processing packet 162429 [packets to send 105, broken 104] [08:57:03]ProducePacketName [08:57:03]name=ofd_packets/00162429 [08:57:03]OFD Sender: To server: pG, [08:57:03]CommunicateWithHost lk.salyk.kg:30040 [08:57:03]ConnectInit lk.salyk.kg [08:57:03]written 0, free lines is 4095 [08:57:03]Connected sock=10 [08:57:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 25 4E 08 01 96 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 61 00 00 00 F4 03 04 00 6B 41 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7A 02 00 35 04 06 00 44 22 89 E3 B6 7D C2 E1 70 EB 17 8B 9E 3F [08:57:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 04 8A 47 00 7B 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7A 02 00 F4 03 04 00 80 ED 91 66 B6 04 01 00 00 AD A9 99 78 B5 36 A0 5E [08:57:04]CommunicateWithHost err = 0 [08:57:04]CheckOFDResponse [08:57:04]1017 (14) - 77093643461234 [08:57:04]1041 (16) - 0000000000874899 [08:57:04]1040 (4) - 162429 [08:57:04]1012 (4) - 13.07.2024 02:59 [08:57:04]1206 (1) - 0 [08:57:04]OFD Sender: Remove packet 162429 [08:57:04]ProducePacketName [08:57:04]name=ofd_packets/00162429 [08:57:04]NVStorageDeleteData [08:57:04]Write to MH i2c: 01 00 00 8A 09 93 [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: 01 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: 01 07 00 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: 01 07 00 8A 09 00 00 00 00 00 EA 0C 90 [08:57:04]RasterBufferAndPrint [08:57:04]line [08:57:04]line [08:57:04]line [08:57:04]line [08:57:04]line [08:57:04]written 0, free lines is 3312 [08:57:04]MH_Cut [08:57:04]Write to MH i2c: D1 01 00 91 09 01 6C [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: D1 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: D1 01 00 [08:57:04]MH_I2C_Read... [08:57:04]Read from MH i2c: D1 01 00 91 09 00 6B [08:57:04]Write to MH i2c: 01 00 00 92 09 9B [08:57:04]Write i2c OK [08:57:04]MH_I2C_Read... [08:57:04]OFD Sender: No OFD packet to send [08:57:05]*** Cut start [08:57:05]*** Purtial cut [08:57:05]*** Stage 1: CUTSNS_PIN = 1 [08:57:05]Read from MH i2c: 01 [08:57:05]MH_I2C_Read... [08:57:05]*** Stop cut motor [08:57:05]*** Cut end [08:57:05]Read from MH i2c: 01 07 00 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: 01 07 00 92 09 00 00 00 00 00 FF 0F B0 [08:57:05]process_action close_receipt done [08:57:05]requested_data is exist [08:57:05]produce_requested_data [08:57:05]requested_item fm.sn is exist - process it [08:57:05]wFMCommunicate request_size=4 [08:57:05]MH_SAM_APDU [08:57:05]CAPDU: 80 11 00 00 [08:57:05]Write to MH i2c: E2 08 00 93 09 80 11 00 00 00 00 00 00 16 [08:57:05]Write i2c OK [08:57:05]MH_I2C_Read... [08:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:05]Read from MH i2c: E2 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: E2 17 00 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: E2 17 00 93 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 76 [08:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:57:05]wFMCommunicate OK [08:57:05]requested_item fd.num is exist - process it [08:57:05]SAM_PROTO_GetFieldsCounters [08:57:05]wFMCommunicate request_size=4 [08:57:05]MH_SAM_APDU [08:57:05]CAPDU: 80 13 00 00 [08:57:05]Write to MH i2c: E2 08 00 94 09 80 13 00 00 00 00 00 00 19 [08:57:05]Write i2c OK [08:57:05]MH_I2C_Read... [08:57:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:05]Read from MH i2c: E2 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: E2 62 00 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: E2 62 00 94 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [08:57:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:05]wFMCommunicate OK [08:57:05]SAM_PROTO_GetFieldsCounters done [08:57:05]requested_item shift.num is exist - process it [08:57:05]requested_item shift.opened is exist - process it [08:57:05]req_shift_opened [08:57:05]FM_GetShiftState [08:57:05]SAM_PROTO_GetShiftState [08:57:05]wFMCommunicate request_size=4 [08:57:05]MH_SAM_APDU [08:57:05]CAPDU: 80 13 01 00 [08:57:05]Write to MH i2c: E2 08 00 95 09 80 13 01 00 00 00 00 00 1B [08:57:05]Write i2c OK [08:57:05]MH_I2C_Read... [08:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:05]Read from MH i2c: E2 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: E2 0E 00 [08:57:05]MH_I2C_Read... [08:57:05]Read from MH i2c: E2 0E 00 95 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 15 [08:57:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:57:05]wFMCommunicate OK [08:57:05]SAM_PROTO_GetShiftState done [08:57:05]FM_GetShiftState done [08:57:05]req_shift_opened done [08:57:05]requested_item shift.open_date is exist - process it [08:57:05]req_shift_open_date [08:57:05]req_shift_open_date done [08:57:05]produce_requested_data done [08:57:05]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162429,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:57:05]process_action_free close_receipt [08:57:05]json_value_free [08:57:05]json_value_free done [08:57:05]process_json_proto returns [08:57:05]Send response to host [08:57:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162429,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:57:05]free response buf [08:57:05]execute_script done [08:57:05]execute_script returns [08:57:05]free content buf [08:57:05]Sock 9.Close socket [08:57:05]Sock 9.Thread stoped [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [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:38]accept exits with 8 [08:58:38]New connection [08:58:38]New thread 3066862948 created [08:58:38]Thread 3067006308 joined [08:58:38]Waiting for new connection... [08:58:38] Sock 8.Parse request [08:58:38]Sock 8.Check first char [08:58:38]Sock 8.First char is OK [08:58:38]request: POST /json_proto HTTP/1.0 [08:58:38]Method: POST [08:58:38]URL: /json_proto [08:58:38]Method is POST - this is cgi request [08:58:38]url: /json_proto [08:58:38]query_string will be loaded in cgi processing [08:58:38]execute_cgi json_proto POST (null) [08:58:38]execute_cgi path=json_proto method=POST [08:58:38]POST find Content-Length [08:58:38]Host: 172.17.39.67:8080 [08:58:38]Content-Length: 683 [08:58:38]Content-Type: application/json [08:58:38] [08:58:38]POST finish read [08:58:38]Found Content-Length = 683 [08:58:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:58:38]execute_script... [08:58: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)1318960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:58:38]POST & json_proto [08:58:38]process_json_proto [08:58:38]json parsed OK: [08:58:38]protocol is kg_v1.0 [08:58:38]action value=close_receipt [08:58:38]process_action close_receipt [08:58:38]cmd_close_receipt [08:58:38]MH_GetDate [08:58:38]Write to MH i2c: F0 00 00 96 09 8E [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 09 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: F0 09 00 96 09 00 CC 41 92 66 FA E9 8E 66 73 [08:58:38]GetLastDocTimeStamp 1720861035 [08:58:38]current date 1720861132 [08:58:38]FM_GetShiftState [08:58:38]SAM_PROTO_GetShiftState [08:58:38]wFMCommunicate request_size=4 [08:58:38]MH_SAM_APDU [08:58:38]CAPDU: 80 13 01 00 [08:58:38]Write to MH i2c: E2 08 00 97 09 80 13 01 00 00 00 00 00 1D [08:58:38]Write i2c OK [08:58:38]MH_I2C_Read... [08:58:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:38]Read from MH i2c: E2 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 0E 00 [08:58:38]MH_I2C_Read... [08:58:38]Read from MH i2c: E2 0E 00 97 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 17 [08:58:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:58:38]wFMCommunicate OK [08:58:38]SAM_PROTO_GetShiftState done [08:58:38]FM_GetShiftState done [08:58:38]opened in 1720828979 [08:58:38]opened+sec_in_day 1720915379 [08:58:38]quantity*price = 60040 [08:58:38]sum+1 = 60041 [08:58:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 98 13.07.2024 08:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162430 ФПД: 47276812982842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T085852&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162430&fm=47276812982842&tin=02508201610067®Number=0000000000090858&sum=60000 [08:58:40]StoreToDocumentArchive [08:58:40]shift 462 fd 162430 [08:58:40]save to /storage/0462/doc_00162430 [08:58:40]save last doc name /storage/0462/doc_00162430 to /storage/kkm_last_doc_name [08:58:40]save OK [08:58:40]Clear old archive folders... [08:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:58:40]tlvbuf is 01C8BA80 [08:58:40]SAM_PROTO_ClearQueue [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 09 00 00 [08:58:40]Write to MH i2c: E2 08 00 A4 09 80 09 00 00 00 00 00 00 1F [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 A4 09 00 90 00 21 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_ClearQueue done [08:58:40]KKMCreateOFDPacket [08:58:40]OFDProtocolAddRootSTLVToBuf [08:58:40]FM_MakeSignedData [08:58:40]FM_MakeSignedData [08:58:40]SAM_PROTO_SignData [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 0D 01 02 [08:58:40]Write to MH i2c: E2 08 00 A5 09 80 0D 01 02 00 00 00 00 27 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 A5 09 00 90 00 22 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]wFMCommunicate request_size=255 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 62 00 00 00 F4 03 04 00 CC 41 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7A 02 00 35 04 06 00 [08:58:40]Write to MH i2c: E2 02 01 A6 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 62 00 00 00 F4 03 04 00 CC 41 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7A 02 00 35 04 06 00 00 00 AF [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 A6 09 00 90 00 23 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]wFMCommunicate request_size=11 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 0D 02 02 06 2A FF 7D A4 DA 3A [08:58:40]Write to MH i2c: E2 0E 00 A7 09 80 0D 02 02 06 00 2A FF 7D A4 DA 3A 00 00 94 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 03 00 A7 09 00 90 00 24 [08:58:40]RAPDU: 90 00 [08:58:40]wFMCommunicate OK [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 0D 03 02 [08:58:40]Write to MH i2c: E2 08 00 A8 09 80 0D 03 02 00 00 00 00 2C [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0B 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 0B 00 A8 09 00 16 88 12 FE E7 52 6D 87 90 00 08 [08:58:40]RAPDU: 16 88 12 FE E7 52 6D 87 90 00 [08:58:40]wFMCommunicate OK [08:58:40]SAM_PROTO_SignData done [08:58:40]FM_MakeSignedData done [08:58:40]CreateOFDProtocolMessage [08:58:40]wFMCommunicate request_size=4 [08:58:40]MH_SAM_APDU [08:58:40]CAPDU: 80 11 00 00 [08:58:40]Write to MH i2c: E2 08 00 A9 09 80 11 00 00 00 00 00 00 2C [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:40]Read from MH i2c: E2 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: E2 17 00 A9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8C [08:58:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:58:40]wFMCommunicate OK [08:58:40]CreateOFDProtocolMessage done [08:58:40]OFDSenderStorePacket 162430 [08:58:40]StoreOFDPacket docnum=162430 [08:58:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F6 9E 08 01 5F 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 62 00 00 00 F4 03 04 00 CC 41 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7A 02 00 35 04 06 00 2A FF 7D A4 DA 3A 16 88 12 FE E7 52 6D 87 [08:58:40]CheckFolder [08:58:40]dirname=/storage/ofd_packets [08:58:40]CheckFolder done [08:58:40]ProducePacketName [08:58:40]name=ofd_packets/00162430 [08:58:40]NVStorageSaveData ofd_packets/00162430 [08:58:40]File name is /storage/ofd_packets/00162430 [08:58:40]Write 302 bytes [08:58:40]NVStorageSaveData done [08:58:40]OFDSenderStorePacket done [08:58:40]KKMCreateOFDPacket done [08:58:40]NVStorageSaveData kkm_last_timestamp [08:58:40]File name is /storage/kkm_last_timestamp [08:58:40]Write 4 bytes [08:58:40]NVStorageSaveData done [08:58:40]ExternCall_PrintAddStr [08:58:40]wPrintStart [08:58:40]Write to MH i2c: 01 00 00 AA 09 B3 [08:58:40]Write i2c OK [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 07 00 [08:58:40]MH_I2C_Read... [08:58:40]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 FF 0F C8 [08:58:40]RasterBufferAndPrint [08:58:40]line Счет N : (1)1318960 [08:58:40]line ИНН: 02508201610067 [08:58:40]line Контрольно-Кассовый Чек [08:58:40]line ПРОДАЖА [08:58:40]line ТРК (МРК, ГНК) : 61 [08:58:40]line Товар: 2710194210 [08:58:40]line ДТ(л)-К-5 [08:58:40]line 8.270 * 72.60 [08:58:40]line = 600.40 [08:58:40]line НДС 12% НСП 1% [08:58:40]line > о реализуемом товаре [08:58:40]line ОКРУГЛЕНИЕ: -0.40 [08:58:40]line ИТОГО: 600.00 [08:58:40]line Внесено: 600.00 [08:58:40]line СДАЧА: 0.00 [08:58:40]line НСП 1% : 5.31 [08:58:40]line НДС 12% : 63.76 [08:58:40]line Наличными: 600.00 [08:58:40]line Безнал.: 0.00 [08:58:40]line Место: АЗС № 140 "Партнер Нефть" [08:58:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:58:40]line СНО: Общий режим [08:58:40]line Чек 98 13.07.2024 08:58 [08:58:40]line Смена: 462 ФФД: 1.0 [08:58:40]line ЗНМ: 0300000129 [08:58:40]line РНМ: 0000000000090858 [08:58:40]line Версия ККМ: 001 [08:58:40]line ФМ: 0000000000874899 [08:58:40]line ФД: 162430 [08:58:40]line ФПД: 47276812982842 [08:58:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T085852&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162430&fm=47276812982842&tin=02508201610067®Number=0000000000090858&sum=60000 [08:58:40]OFD Sender: Processing packet 162430 [packets to send 105, broken 104] [08:58:40]ProducePacketName [08:58:40]name=ofd_packets/00162430 [08:58:40]OFD Sender: To server: pG, [08:58:40]CommunicateWithHost lk.salyk.kg:30040 [08:58:40]ConnectInit lk.salyk.kg [08:58:40]written 0, free lines is 4095 [08:58:40]Connected sock=10 [08:58:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F6 9E 08 01 5F 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 62 00 00 00 F4 03 04 00 CC 41 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7A 02 00 35 04 06 00 2A FF 7D A4 DA 3A 16 88 12 FE E7 52 6D 87 [08:58:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FD DF 47 00 8B 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7A 02 00 F4 03 04 00 E1 ED 91 66 B6 04 01 00 00 93 A6 72 FE D2 16 DC BE [08:58:41]CommunicateWithHost err = 0 [08:58:41]CheckOFDResponse [08:58:41]1017 (14) - 77093643461234 [08:58:41]1041 (16) - 0000000000874899 [08:58:41]1040 (4) - 162430 [08:58:41]1012 (4) - 13.07.2024 03:00 [08:58:41]1206 (1) - 0 [08:58:41]OFD Sender: Remove packet 162430 [08:58:41]ProducePacketName [08:58:41]name=ofd_packets/00162430 [08:58:41]NVStorageDeleteData [08:58:41]Write to MH i2c: 01 00 00 D5 09 DE [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 07 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: 01 07 00 D5 09 00 00 00 00 00 E7 0C D8 [08:58:41]RasterBufferAndPrint [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]line [08:58:41]written 0, free lines is 3312 [08:58:41]MH_Cut [08:58:41]Write to MH i2c: D1 01 00 DC 09 01 B7 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: D1 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: D1 01 00 [08:58:41]MH_I2C_Read... [08:58:41]Read from MH i2c: D1 01 00 DC 09 00 B6 [08:58:41]Write to MH i2c: 01 00 00 DD 09 E6 [08:58:41]Write i2c OK [08:58:41]MH_I2C_Read... [08:58:41]OFD Sender: No OFD packet to send [08:58:42]*** Cut start [08:58:42]*** Purtial cut [08:58:42]*** CUTSNS_PIN = 0 [08:58:42]*** Stage 1: CUTSNS_PIN = 1 [08:58:44]Read from MH i2c: 01 [08:58:44]MH_I2C_Read... [08:58:44]*** Stop cut motor [08:58:44]*** Cut end [08:58:44]Read from MH i2c: 01 07 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: 01 07 00 DD 09 00 00 00 00 00 FF 0F FB [08:58:44]process_action close_receipt done [08:58:44]requested_data is exist [08:58:44]produce_requested_data [08:58:44]requested_item fm.sn is exist - process it [08:58:44]wFMCommunicate request_size=4 [08:58:44]MH_SAM_APDU [08:58:44]CAPDU: 80 11 00 00 [08:58:44]Write to MH i2c: E2 08 00 DE 09 80 11 00 00 00 00 00 00 61 [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:44]Read from MH i2c: E2 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 17 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 17 00 DE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C1 [08:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:58:44]wFMCommunicate OK [08:58:44]requested_item fd.num is exist - process it [08:58:44]SAM_PROTO_GetFieldsCounters [08:58:44]wFMCommunicate request_size=4 [08:58:44]MH_SAM_APDU [08:58:44]CAPDU: 80 13 00 00 [08:58:44]Write to MH i2c: E2 08 00 DF 09 80 13 00 00 00 00 00 00 64 [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:44]Read from MH i2c: E2 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 62 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 62 00 DF 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [08:58:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:44]wFMCommunicate OK [08:58:44]SAM_PROTO_GetFieldsCounters done [08:58:44]requested_item shift.num is exist - process it [08:58:44]requested_item shift.opened is exist - process it [08:58:44]req_shift_opened [08:58:44]FM_GetShiftState [08:58:44]SAM_PROTO_GetShiftState [08:58:44]wFMCommunicate request_size=4 [08:58:44]MH_SAM_APDU [08:58:44]CAPDU: 80 13 01 00 [08:58:44]Write to MH i2c: E2 08 00 E0 09 80 13 01 00 00 00 00 00 66 [08:58:44]Write i2c OK [08:58:44]MH_I2C_Read... [08:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:44]Read from MH i2c: E2 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 0E 00 [08:58:44]MH_I2C_Read... [08:58:44]Read from MH i2c: E2 0E 00 E0 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 60 [08:58:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:58:44]wFMCommunicate OK [08:58:44]SAM_PROTO_GetShiftState done [08:58:44]FM_GetShiftState done [08:58:44]req_shift_opened done [08:58:44]requested_item shift.open_date is exist - process it [08:58:44]req_shift_open_date [08:58:44]req_shift_open_date done [08:58:44]produce_requested_data done [08:58:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162430,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:58:44]process_action_free close_receipt [08:58:44]json_value_free [08:58:44]json_value_free done [08:58:44]process_json_proto returns [08:58:44]Send response to host [08:58:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162430,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:58:44]free response buf [08:58:44]execute_script done [08:58:44]execute_script returns [08:58:44]free content buf [08:58:44]Sock 8.Close socket [08:58:44]Sock 8.Thread stoped [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:38]accept exits with 9 [08:59:38]New connection [08:59:38]New thread 3067006308 created [08:59:38]Thread 3066862948 joined [08:59:38]Waiting for new connection... [08:59:38] Sock 9.Parse request [08:59:38]Sock 9.Check first char [08:59:38]Sock 9.First char is OK [08:59:38]request: POST /json_proto HTTP/1.0 [08:59:38]Method: POST [08:59:38]URL: /json_proto [08:59:38]Method is POST - this is cgi request [08:59:38]url: /json_proto [08:59:38]query_string will be loaded in cgi processing [08:59:38]execute_cgi json_proto POST (null) [08:59:38]execute_cgi path=json_proto method=POST [08:59:38]POST find Content-Length [08:59:38]Host: 172.17.39.67:8080 [08:59:38]Content-Length: 679 [08:59:38]Content-Type: application/json [08:59:38] [08:59:38]POST finish read [08:59:38]Found Content-Length = 679 [08:59:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.260, "sum" : 680.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:38]execute_script... [08:59: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)1318961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.260, "sum" : 680.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:38]POST & json_proto [08:59:38]process_json_proto [08:59:38]json parsed OK: [08:59:38]protocol is kg_v1.0 [08:59:38]action value=close_receipt [08:59:38]process_action close_receipt [08:59:38]cmd_close_receipt [08:59:38]MH_GetDate [08:59:38]Write to MH i2c: F0 00 00 E1 09 D9 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: F0 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: F0 09 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: F0 09 00 E1 09 00 08 42 92 66 FA E9 8E 66 FB [08:59:38]GetLastDocTimeStamp 1720861132 [08:59:38]current date 1720861192 [08:59:38]FM_GetShiftState [08:59:38]SAM_PROTO_GetShiftState [08:59:38]wFMCommunicate request_size=4 [08:59:38]MH_SAM_APDU [08:59:38]CAPDU: 80 13 01 00 [08:59:38]Write to MH i2c: E2 08 00 E2 09 80 13 01 00 00 00 00 00 68 [08:59:38]Write i2c OK [08:59:38]MH_I2C_Read... [08:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:38]Read from MH i2c: E2 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 0E 00 [08:59:38]MH_I2C_Read... [08:59:38]Read from MH i2c: E2 0E 00 E2 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 62 [08:59:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:59:38]wFMCommunicate OK [08:59:38]SAM_PROTO_GetShiftState done [08:59:38]FM_GetShiftState done [08:59:38]opened in 1720828979 [08:59:38]opened+sec_in_day 1720915379 [08:59:38]quantity*price = 68023 [08:59:38]sum+1 = 68025 [08:59:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.24 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 99 13.07.2024 08:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162431 ФПД: 216739234489860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T085952&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162431&fm=216739234489860&tin=02508201610067®Number=0000000000090858&sum=68000 [08:59:39]StoreToDocumentArchive [08:59:39]shift 462 fd 162431 [08:59:39]save to /storage/0462/doc_00162431 [08:59:39]save last doc name /storage/0462/doc_00162431 to /storage/kkm_last_doc_name [08:59:39]save OK [08:59:39]Clear old archive folders... [08:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:39]tlvbuf is 0170C900 [08:59:39]SAM_PROTO_ClearQueue [08:59:39]wFMCommunicate request_size=4 [08:59:39]MH_SAM_APDU [08:59:39]CAPDU: 80 09 00 00 [08:59:39]Write to MH i2c: E2 08 00 EF 09 80 09 00 00 00 00 00 00 6A [08:59:39]Write i2c OK [08:59:39]MH_I2C_Read... [08:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:39]Read from MH i2c: E2 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 03 00 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 03 00 EF 09 00 90 00 6C [08:59:39]RAPDU: 90 00 [08:59:39]wFMCommunicate OK [08:59:39]SAM_PROTO_ClearQueue done [08:59:39]KKMCreateOFDPacket [08:59:39]OFDProtocolAddRootSTLVToBuf [08:59:39]FM_MakeSignedData [08:59:39]FM_MakeSignedData [08:59:39]SAM_PROTO_SignData [08:59:39]wFMCommunicate request_size=4 [08:59:39]MH_SAM_APDU [08:59:39]CAPDU: 80 0D 01 02 [08:59:39]Write to MH i2c: E2 08 00 F0 09 80 0D 01 02 00 00 00 00 72 [08:59:39]Write i2c OK [08:59:39]MH_I2C_Read... [08:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:39]Read from MH i2c: E2 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 03 00 [08:59:39]MH_I2C_Read... [08:59:39]Read from MH i2c: E2 03 00 F0 09 00 90 00 6D [08:59:39]RAPDU: 90 00 [08:59:39]wFMCommunicate OK [08:59:39]wFMCommunicate request_size=255 [08:59:39]MH_SAM_APDU [08:59:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 08 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7A 02 00 35 04 06 00 C5 [08:59:39]Write to MH i2c: E2 02 01 F1 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 08 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7A 02 00 35 04 06 00 C5 00 00 C3 [08:59:39]Write i2c OK [08:59:39]MH_I2C_Read... [08:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:40]Read from MH i2c: E2 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 03 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 03 00 F1 09 00 90 00 6E [08:59:40]RAPDU: 90 00 [08:59:40]wFMCommunicate OK [08:59:40]wFMCommunicate request_size=10 [08:59:40]MH_SAM_APDU [08:59:40]CAPDU: 80 0D 02 02 05 1F 89 14 A6 04 [08:59:40]Write to MH i2c: E2 0D 00 F2 09 80 0D 02 02 05 00 1F 89 14 A6 04 00 00 E5 [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:40]Read from MH i2c: E2 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 03 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [08:59:40]RAPDU: 90 00 [08:59:40]wFMCommunicate OK [08:59:40]wFMCommunicate request_size=4 [08:59:40]MH_SAM_APDU [08:59:40]CAPDU: 80 0D 03 02 [08:59:40]Write to MH i2c: E2 08 00 F3 09 80 0D 03 02 00 00 00 00 77 [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:40]Read from MH i2c: E2 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 0B 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 0B 00 F3 09 00 24 48 46 52 1D 66 25 81 90 00 A5 [08:59:40]RAPDU: 24 48 46 52 1D 66 25 81 90 00 [08:59:40]wFMCommunicate OK [08:59:40]SAM_PROTO_SignData done [08:59:40]FM_MakeSignedData done [08:59:40]CreateOFDProtocolMessage [08:59:40]wFMCommunicate request_size=4 [08:59:40]MH_SAM_APDU [08:59:40]CAPDU: 80 11 00 00 [08:59:40]Write to MH i2c: E2 08 00 F4 09 80 11 00 00 00 00 00 00 77 [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:40]Read from MH i2c: E2 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 17 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: E2 17 00 F4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D7 [08:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:59:40]wFMCommunicate OK [08:59:40]CreateOFDProtocolMessage done [08:59:40]OFDSenderStorePacket 162431 [08:59:40]StoreOFDPacket docnum=162431 [08:59:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 56 27 07 01 A4 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 08 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7A 02 00 35 04 06 00 C5 1F 89 14 A6 04 24 48 46 52 1D 66 25 81 [08:59:40]CheckFolder [08:59:40]dirname=/storage/ofd_packets [08:59:40]CheckFolder done [08:59:40]ProducePacketName [08:59:40]name=ofd_packets/00162431 [08:59:40]NVStorageSaveData ofd_packets/00162431 [08:59:40]File name is /storage/ofd_packets/00162431 [08:59:40]Write 301 bytes [08:59:40]NVStorageSaveData done [08:59:40]OFDSenderStorePacket done [08:59:40]KKMCreateOFDPacket done [08:59:40]NVStorageSaveData kkm_last_timestamp [08:59:40]File name is /storage/kkm_last_timestamp [08:59:40]Write 4 bytes [08:59:40]NVStorageSaveData done [08:59:40]ExternCall_PrintAddStr [08:59:40]wPrintStart [08:59:40]Write to MH i2c: 01 00 00 F5 09 FE [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: 01 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: 01 07 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 FF 0F 13 [08:59:40]RasterBufferAndPrint [08:59:40]line Счет N : (1)1318961 [08:59:40]line ИНН: 02508201610067 [08:59:40]line Контрольно-Кассовый Чек [08:59:40]line ПРОДАЖА [08:59:40]line ТРК (МРК, ГНК) : 53 [08:59:40]line Товар: 2710124130 [08:59:40]line Аи-92-К-5 [08:59:40]line 10.260 * 66.30 [08:59:40]line = 680.24 [08:59:40]line НДС 12% НСП 1% [08:59:40]line > о реализуемом товаре [08:59:40]line ОКРУГЛЕНИЕ: -0.24 [08:59:40]line ИТОГО: 680.00 [08:59:40]line Внесено: 680.00 [08:59:40]line СДАЧА: 0.00 [08:59:40]line НСП 1% : 6.02 [08:59:40]line НДС 12% : 72.24 [08:59:40]line Наличными: 680.00 [08:59:40]line Безнал.: 0.00 [08:59:40]line Место: АЗС № 140 "Партнер Нефть" [08:59:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:59:40]line СНО: Общий режим [08:59:40]line Чек 99 13.07.2024 08:59 [08:59:40]line Смена: 462 ФФД: 1.0 [08:59:40]line ЗНМ: 0300000129 [08:59:40]line РНМ: 0000000000090858 [08:59:40]line Версия ККМ: 001 [08:59:40]line ФМ: 0000000000874899 [08:59:40]line ФД: 162431 [08:59:40]line ФПД: 216739234489860 [08:59:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T085952&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162431&fm=216739234489860&tin=02508201610067®Number=0000000000090858&sum=68000 [08:59:40]OFD Sender: Processing packet 162431 [packets to send 105, broken 104] [08:59:40]ProducePacketName [08:59:40]name=ofd_packets/00162431 [08:59:40]OFD Sender: To server: pG, [08:59:40]CommunicateWithHost lk.salyk.kg:30040 [08:59:40]ConnectInit lk.salyk.kg [08:59:40]written 0, free lines is 4095 [08:59:40]Connected sock=11 [08:59:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 56 27 07 01 A4 DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 08 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7A 02 00 35 04 06 00 C5 1F 89 14 A6 04 24 48 46 52 1D 66 25 81 [08:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0F E4 47 00 C0 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7A 02 00 F4 03 04 00 1C EE 91 66 B6 04 01 00 00 E6 E8 E2 93 EA E3 E8 3C [08:59:40]CommunicateWithHost err = 0 [08:59:40]CheckOFDResponse [08:59:40]1017 (14) - 77093643461234 [08:59:40]1041 (16) - 0000000000874899 [08:59:40]1040 (4) - 162431 [08:59:40]1012 (4) - 13.07.2024 03:01 [08:59:40]1206 (1) - 0 [08:59:40]OFD Sender: Remove packet 162431 [08:59:40]ProducePacketName [08:59:40]name=ofd_packets/00162431 [08:59:40]NVStorageDeleteData [08:59:40]Write to MH i2c: 01 00 00 20 0A 2A [08:59:40]Write i2c OK [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: 01 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: 01 07 00 [08:59:40]MH_I2C_Read... [08:59:40]Read from MH i2c: 01 07 00 20 0A 00 00 00 00 00 F0 0C 2D [08:59:40]RasterBufferAndPrint [08:59:40]line [08:59:40]line [08:59:40]line [08:59:40]line [08:59:40]line [08:59:40]written 0, free lines is 3318 [08:59:41]MH_Cut [08:59:41]Write to MH i2c: D1 01 00 27 0A 01 03 [08:59:41]Write i2c OK [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: D1 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: D1 01 00 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: D1 01 00 27 0A 00 02 [08:59:41]Write to MH i2c: 01 00 00 28 0A 32 [08:59:41]Write i2c OK [08:59:41]MH_I2C_Read... [08:59:41]OFD Sender: No OFD packet to send [08:59:41]*** Cut start [08:59:41]*** Purtial cut [08:59:41]*** Stage 1: CUTSNS_PIN = 1 [08:59:41]Read from MH i2c: 01 [08:59:41]MH_I2C_Read... [08:59:41]*** Stop cut motor [08:59:41]*** Cut end [08:59:41]Read from MH i2c: 01 07 00 [08:59:41]MH_I2C_Read... [08:59:41]Read from MH i2c: 01 07 00 28 0A 00 00 00 00 00 FF 0F 47 [08:59:41]process_action close_receipt done [08:59:41]requested_data is exist [08:59:41]produce_requested_data [08:59:41]requested_item fm.sn is exist - process it [08:59:41]wFMCommunicate request_size=4 [08:59:41]MH_SAM_APDU [08:59:41]CAPDU: 80 11 00 00 [08:59:41]Write to MH i2c: E2 08 00 29 0A 80 11 00 00 00 00 00 00 AD [08:59:41]Write i2c OK [08:59:41]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 17 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 17 00 29 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0D [08:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [08:59:42]wFMCommunicate OK [08:59:42]requested_item fd.num is exist - process it [08:59:42]SAM_PROTO_GetFieldsCounters [08:59:42]wFMCommunicate request_size=4 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 13 00 00 [08:59:42]Write to MH i2c: E2 08 00 2A 0A 80 13 00 00 00 00 00 00 B0 [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 62 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 62 00 2A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [08:59:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:42]wFMCommunicate OK [08:59:42]SAM_PROTO_GetFieldsCounters done [08:59:42]requested_item shift.num is exist - process it [08:59:42]requested_item shift.opened is exist - process it [08:59:42]req_shift_opened [08:59:42]FM_GetShiftState [08:59:42]SAM_PROTO_GetShiftState [08:59:42]wFMCommunicate request_size=4 [08:59:42]MH_SAM_APDU [08:59:42]CAPDU: 80 13 01 00 [08:59:42]Write to MH i2c: E2 08 00 2B 0A 80 13 01 00 00 00 00 00 B2 [08:59:42]Write i2c OK [08:59:42]MH_I2C_Read... [08:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:42]Read from MH i2c: E2 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 0E 00 [08:59:42]MH_I2C_Read... [08:59:42]Read from MH i2c: E2 0E 00 2B 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AC [08:59:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [08:59:42]wFMCommunicate OK [08:59:42]SAM_PROTO_GetShiftState done [08:59:42]FM_GetShiftState done [08:59:42]req_shift_opened done [08:59:42]requested_item shift.open_date is exist - process it [08:59:42]req_shift_open_date [08:59:42]req_shift_open_date done [08:59:42]produce_requested_data done [08:59:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162431,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [08:59:42]process_action_free close_receipt [08:59:42]json_value_free [08:59:42]json_value_free done [08:59:42]process_json_proto returns [08:59:42]Send response to host [08:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162431,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [08:59:42]free response buf [08:59:42]execute_script done [08:59:42]execute_script returns [08:59:42]free content buf [08:59:42]Sock 9.Close socket [08:59:42]Sock 9.Thread stoped [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:55]accept exits with 8 [09:01:55]New connection [09:01:55]New thread 3066862948 created [09:01:55]Thread 3067006308 joined [09:01:55]Waiting for new connection... [09:01:55] Sock 8.Parse request [09:01:55]Sock 8.Check first char [09:01:55]Sock 8.First char is OK [09:01:55]request: POST /json_proto HTTP/1.0 [09:01:55]Method: POST [09:01:55]URL: /json_proto [09:01:55]Method is POST - this is cgi request [09:01:55]url: /json_proto [09:01:55]query_string will be loaded in cgi processing [09:01:55]execute_cgi json_proto POST (null) [09:01:55]execute_cgi path=json_proto method=POST [09:01:55]POST find Content-Length [09:01:55]Host: 172.17.39.67:8080 [09:01:55]Content-Length: 683 [09:01:55]Content-Type: application/json [09:01:55] [09:01:55]POST finish read [09:01:55]Found Content-Length = 683 [09:01:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:55]execute_script... [09:01: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)1318962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:55]POST & json_proto [09:01:55]process_json_proto [09:01:55]json parsed OK: [09:01:55]protocol is kg_v1.0 [09:01:55]action value=close_receipt [09:01:55]process_action close_receipt [09:01:55]cmd_close_receipt [09:01:55]MH_GetDate [09:01:55]Write to MH i2c: F0 00 00 2C 0A 25 [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: F0 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: F0 09 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: F0 09 00 2C 0A 00 91 42 92 66 FA E9 8E 66 D0 [09:01:55]GetLastDocTimeStamp 1720861192 [09:01:55]current date 1720861329 [09:01:55]FM_GetShiftState [09:01:55]SAM_PROTO_GetShiftState [09:01:55]wFMCommunicate request_size=4 [09:01:55]MH_SAM_APDU [09:01:55]CAPDU: 80 13 01 00 [09:01:55]Write to MH i2c: E2 08 00 2D 0A 80 13 01 00 00 00 00 00 B4 [09:01:55]Write i2c OK [09:01:55]MH_I2C_Read... [09:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:55]Read from MH i2c: E2 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 0E 00 [09:01:55]MH_I2C_Read... [09:01:55]Read from MH i2c: E2 0E 00 2D 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AE [09:01:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:01:55]wFMCommunicate OK [09:01:55]SAM_PROTO_GetShiftState done [09:01:55]FM_GetShiftState done [09:01:55]opened in 1720828979 [09:01:55]opened+sec_in_day 1720915379 [09:01:55]quantity*price = 100046 [09:01:55]sum+1 = 100048 [09:01:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 100 13.07.2024 09:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162432 ФПД: 97907301825778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090209&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162432&fm=97907301825778&tin=02508201610067®Number=0000000000090858&sum=100000 [09:01:56]StoreToDocumentArchive [09:01:56]shift 462 fd 162432 [09:01:56]save to /storage/0462/doc_00162432 [09:01:56]save last doc name /storage/0462/doc_00162432 to /storage/kkm_last_doc_name [09:01:56]save OK [09:01:56]Clear old archive folders... [09:01:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:56]tlvbuf is 01C8BCF0 [09:01:56]SAM_PROTO_ClearQueue [09:01:56]wFMCommunicate request_size=4 [09:01:56]MH_SAM_APDU [09:01:56]CAPDU: 80 09 00 00 [09:01:56]Write to MH i2c: E2 08 00 3A 0A 80 09 00 00 00 00 00 00 B6 [09:01:56]Write i2c OK [09:01:56]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 3A 0A 00 90 00 B8 [09:01:57]RAPDU: 90 00 [09:01:57]wFMCommunicate OK [09:01:57]SAM_PROTO_ClearQueue done [09:01:57]KKMCreateOFDPacket [09:01:57]OFDProtocolAddRootSTLVToBuf [09:01:57]FM_MakeSignedData [09:01:57]FM_MakeSignedData [09:01:57]SAM_PROTO_SignData [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 0D 01 02 [09:01:57]Write to MH i2c: E2 08 00 3B 0A 80 0D 01 02 00 00 00 00 BE [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 3B 0A 00 90 00 B9 [09:01:57]RAPDU: 90 00 [09:01:57]wFMCommunicate OK [09:01:57]wFMCommunicate request_size=255 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 91 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7A 02 00 35 04 06 00 59 [09:01:57]Write to MH i2c: E2 02 01 3C 0A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 91 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7A 02 00 35 04 06 00 59 00 00 1D [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 3C 0A 00 90 00 BA [09:01:57]RAPDU: 90 00 [09:01:57]wFMCommunicate OK [09:01:57]wFMCommunicate request_size=10 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 0D 02 02 05 0B D1 F2 3C F2 [09:01:57]Write to MH i2c: E2 0D 00 3D 0A 80 0D 02 02 05 00 0B D1 F2 3C F2 00 00 C7 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 03 00 3D 0A 00 90 00 BB [09:01:57]RAPDU: 90 00 [09:01:57]wFMCommunicate OK [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 0D 03 02 [09:01:57]Write to MH i2c: E2 08 00 3E 0A 80 0D 03 02 00 00 00 00 C3 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 0B 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 0B 00 3E 0A 00 EE 27 6E 2A 07 3E DE 74 90 00 08 [09:01:57]RAPDU: EE 27 6E 2A 07 3E DE 74 90 00 [09:01:57]wFMCommunicate OK [09:01:57]SAM_PROTO_SignData done [09:01:57]FM_MakeSignedData done [09:01:57]CreateOFDProtocolMessage [09:01:57]wFMCommunicate request_size=4 [09:01:57]MH_SAM_APDU [09:01:57]CAPDU: 80 11 00 00 [09:01:57]Write to MH i2c: E2 08 00 3F 0A 80 11 00 00 00 00 00 00 C3 [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:57]Read from MH i2c: E2 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 17 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: E2 17 00 3F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 23 [09:01:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:01:57]wFMCommunicate OK [09:01:57]CreateOFDProtocolMessage done [09:01:57]OFDSenderStorePacket 162432 [09:01:57]StoreOFDPacket docnum=162432 [09:01:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C7 5D 07 01 5D 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 91 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7A 02 00 35 04 06 00 59 0B D1 F2 3C F2 EE 27 6E 2A 07 3E DE 74 [09:01:57]CheckFolder [09:01:57]dirname=/storage/ofd_packets [09:01:57]CheckFolder done [09:01:57]ProducePacketName [09:01:57]name=ofd_packets/00162432 [09:01:57]NVStorageSaveData ofd_packets/00162432 [09:01:57]File name is /storage/ofd_packets/00162432 [09:01:57]Write 301 bytes [09:01:57]NVStorageSaveData done [09:01:57]OFDSenderStorePacket done [09:01:57]KKMCreateOFDPacket done [09:01:57]NVStorageSaveData kkm_last_timestamp [09:01:57]File name is /storage/kkm_last_timestamp [09:01:57]Write 4 bytes [09:01:57]NVStorageSaveData done [09:01:57]ExternCall_PrintAddStr [09:01:57]wPrintStart [09:01:57]Write to MH i2c: 01 00 00 40 0A 4A [09:01:57]Write i2c OK [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: 01 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: 01 07 00 [09:01:57]MH_I2C_Read... [09:01:57]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 FF 0F 5F [09:01:57]RasterBufferAndPrint [09:01:57]line Счет N : (1)1318962 [09:01:57]line ИНН: 02508201610067 [09:01:57]line Контрольно-Кассовый Чек [09:01:57]line ПРОДАЖА [09:01:57]line ТРК (МРК, ГНК) : 63 [09:01:57]line Товар: 2710124130 [09:01:57]line Аи-92-К-5 [09:01:57]line 15.090 * 66.30 [09:01:57]line = 1000.47 [09:01:57]line НДС 12% НСП 1% [09:01:57]line > о реализуемом товаре [09:01:57]line ОКРУГЛЕНИЕ: -0.47 [09:01:57]line ИТОГО: 1000.00 [09:01:57]line Внесено: 1000.00 [09:01:57]line СДАЧА: 0.00 [09:01:57]line НСП 1% : 8.85 [09:01:57]line НДС 12% : 106.24 [09:01:57]line Наличными: 1000.00 [09:01:57]line Безнал.: 0.00 [09:01:57]line Место: АЗС № 140 "Партнер Нефть" [09:01:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:01:57]line СНО: Общий режим [09:01:57]line Чек 100 13.07.2024 09:02 [09:01:57]line Смена: 462 ФФД: 1.0 [09:01:57]line ЗНМ: 0300000129 [09:01:57]line РНМ: 0000000000090858 [09:01:57]line Версия ККМ: 001 [09:01:57]line ФМ: 0000000000874899 [09:01:57]line ФД: 162432 [09:01:57]line ФПД: 97907301825778 [09:01:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090209&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162432&fm=97907301825778&tin=02508201610067®Number=0000000000090858&sum=100000 [09:01:57]written 0, free lines is 4095 [09:01:57]OFD Sender: Processing packet 162432 [packets to send 105, broken 104] [09:01:57]ProducePacketName [09:01:57]name=ofd_packets/00162432 [09:01:57]OFD Sender: To server: pG, [09:01:57]CommunicateWithHost lk.salyk.kg:30040 [09:01:57]ConnectInit lk.salyk.kg [09:01:57]Connected sock=11 [09:01:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C7 5D 07 01 5D 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 64 00 00 00 F4 03 04 00 91 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7A 02 00 35 04 06 00 59 0B D1 F2 3C F2 EE 27 6E 2A 07 3E DE 74 [09:01:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DA 45 47 00 B8 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7A 02 00 F4 03 04 00 A5 EE 91 66 B6 04 01 00 00 AE DB 6B 0B 85 96 D3 E8 [09:01:57]CommunicateWithHost err = 0 [09:01:57]CheckOFDResponse [09:01:57]1017 (14) - 77093643461234 [09:01:57]1041 (16) - 0000000000874899 [09:01:57]1040 (4) - 162432 [09:01:57]1012 (4) - 13.07.2024 03:04 [09:01:57]1206 (1) - 0 [09:01:57]OFD Sender: Remove packet 162432 [09:01:57]ProducePacketName [09:01:57]name=ofd_packets/00162432 [09:01:57]NVStorageDeleteData [09:01:58]Write to MH i2c: 01 00 00 6B 0A 75 [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 07 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: 01 07 00 6B 0A 00 00 00 00 00 DC 0C 64 [09:01:58]RasterBufferAndPrint [09:01:58]line [09:01:58]line [09:01:58]line [09:01:58]line [09:01:58]line [09:01:58]written 0, free lines is 3298 [09:01:58]MH_Cut [09:01:58]Write to MH i2c: D1 01 00 72 0A 01 4E [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: D1 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: D1 01 00 [09:01:58]MH_I2C_Read... [09:01:58]Read from MH i2c: D1 01 00 72 0A 00 4D [09:01:58]Write to MH i2c: 01 00 00 73 0A 7D [09:01:58]Write i2c OK [09:01:58]MH_I2C_Read... [09:01:58]OFD Sender: No OFD packet to send [09:01:58]*** Cut start [09:01:58]*** Purtial cut [09:01:58]*** CUTSNS_PIN = 0 [09:01:58]*** Stage 1: CUTSNS_PIN = 1 [09:02:00]Read from MH i2c: 01 [09:02:00]MH_I2C_Read... [09:02:00]*** Stop cut motor [09:02:00]*** Cut end [09:02:00]Read from MH i2c: 01 07 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: 01 07 00 73 0A 00 00 00 00 00 FF 0F 92 [09:02:00]process_action close_receipt done [09:02:00]requested_data is exist [09:02:00]produce_requested_data [09:02:00]requested_item fm.sn is exist - process it [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 11 00 00 [09:02:00]Write to MH i2c: E2 08 00 74 0A 80 11 00 00 00 00 00 00 F8 [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 17 00 74 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 58 [09:02:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:02:00]wFMCommunicate OK [09:02:00]requested_item fd.num is exist - process it [09:02:00]SAM_PROTO_GetFieldsCounters [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 13 00 00 [09:02:00]Write to MH i2c: E2 08 00 75 0A 80 13 00 00 00 00 00 00 FB [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:00]Read from MH i2c: E2 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 62 00 [09:02:00]MH_I2C_Read... [09:02:00]Read from MH i2c: E2 62 00 75 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [09:02:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:00]wFMCommunicate OK [09:02:00]SAM_PROTO_GetFieldsCounters done [09:02:00]requested_item shift.num is exist - process it [09:02:00]requested_item shift.opened is exist - process it [09:02:00]req_shift_opened [09:02:00]FM_GetShiftState [09:02:00]SAM_PROTO_GetShiftState [09:02:00]wFMCommunicate request_size=4 [09:02:00]MH_SAM_APDU [09:02:00]CAPDU: 80 13 01 00 [09:02:00]Write to MH i2c: E2 08 00 76 0A 80 13 01 00 00 00 00 00 FD [09:02:00]Write i2c OK [09:02:00]MH_I2C_Read... [09:02:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:01]Read from MH i2c: E2 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 0E 00 [09:02:01]MH_I2C_Read... [09:02:01]Read from MH i2c: E2 0E 00 76 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F7 [09:02:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:02:01]wFMCommunicate OK [09:02:01]SAM_PROTO_GetShiftState done [09:02:01]FM_GetShiftState done [09:02:01]req_shift_opened done [09:02:01]requested_item shift.open_date is exist - process it [09:02:01]req_shift_open_date [09:02:01]req_shift_open_date done [09:02:01]produce_requested_data done [09:02:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162432,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:02:01]process_action_free close_receipt [09:02:01]json_value_free [09:02:01]json_value_free done [09:02:01]process_json_proto returns [09:02:01]Send response to host [09:02:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162432,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:02:01]free response buf [09:02:01]execute_script done [09:02:01]execute_script returns [09:02:01]free content buf [09:02:01]Sock 8.Close socket [09:02:01]Sock 8.Thread stoped [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:33]OFD Sender: No OFD packet to send [09:02:38]OFD Sender: No OFD packet to send [09:02:43]OFD Sender: No OFD packet to send [09:02:48]OFD Sender: No OFD packet to send [09:02:53]OFD Sender: No OFD packet to send [09:02:58]OFD Sender: No OFD packet to send [09:03:03]OFD Sender: No OFD packet to send [09:03:08]OFD Sender: No OFD packet to send [09:03:13]OFD Sender: No OFD packet to send [09:03:18]OFD Sender: No OFD packet to send [09:03:21]accept exits with 9 [09:03:21]New connection [09:03:21]New thread 3067006308 created [09:03:21]Thread 3066862948 joined [09:03:21]Waiting for new connection... [09:03:21] Sock 9.Parse request [09:03:21]Sock 9.Check first char [09:03:21]Sock 9.First char is OK [09:03:21]request: POST /json_proto HTTP/1.0 [09:03:21]Method: POST [09:03:21]URL: /json_proto [09:03:21]Method is POST - this is cgi request [09:03:21]url: /json_proto [09:03:21]query_string will be loaded in cgi processing [09:03:21]execute_cgi json_proto POST (null) [09:03:21]execute_cgi path=json_proto method=POST [09:03:21]POST find Content-Length [09:03:21]Host: 172.17.39.67:8080 [09:03:21]Content-Length: 688 [09:03:21]Content-Type: application/json [09:03:21] [09:03:21]POST finish read [09:03:21]Found Content-Length = 688 [09:03:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:03:21]execute_script... [09:03: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)1318963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:03:21]POST & json_proto [09:03:21]process_json_proto [09:03:21]json parsed OK: [09:03:21]protocol is kg_v1.0 [09:03:21]action value=close_receipt [09:03:21]process_action close_receipt [09:03:21]cmd_close_receipt [09:03:21]MH_GetDate [09:03:21]Write to MH i2c: F0 00 00 77 0A 70 [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 09 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: F0 09 00 77 0A 00 E7 42 92 66 FA E9 8E 66 71 [09:03:21]GetLastDocTimeStamp 1720861329 [09:03:21]current date 1720861415 [09:03:21]FM_GetShiftState [09:03:21]SAM_PROTO_GetShiftState [09:03:21]wFMCommunicate request_size=4 [09:03:21]MH_SAM_APDU [09:03:21]CAPDU: 80 13 01 00 [09:03:21]Write to MH i2c: E2 08 00 78 0A 80 13 01 00 00 00 00 00 FF [09:03:21]Write i2c OK [09:03:21]MH_I2C_Read... [09:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:21]Read from MH i2c: E2 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 0E 00 [09:03:21]MH_I2C_Read... [09:03:21]Read from MH i2c: E2 0E 00 78 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F9 [09:03:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:03:21]wFMCommunicate OK [09:03:21]SAM_PROTO_GetShiftState done [09:03:21]FM_GetShiftState done [09:03:21]opened in 1720828979 [09:03:21]opened+sec_in_day 1720915379 [09:03:21]quantity*price = 100042 [09:03:21]sum+1 = 100044 [09:03:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 101 13.07.2024 09:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162433 ФПД: 242147667016153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090335&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162433&fm=242147667016153&tin=02508201610067®Number=0000000000090858&sum=100000 [09:03:23]StoreToDocumentArchive [09:03:23]shift 462 fd 162433 [09:03:23]save to /storage/0462/doc_00162433 [09:03:23]save last doc name /storage/0462/doc_00162433 to /storage/kkm_last_doc_name [09:03:23]save OK [09:03:23]Clear old archive folders... [09:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:03:23]tlvbuf is 01A18760 [09:03:23]SAM_PROTO_ClearQueue [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 09 00 00 [09:03:23]Write to MH i2c: E2 08 00 85 0A 80 09 00 00 00 00 00 00 01 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]SAM_PROTO_ClearQueue done [09:03:23]KKMCreateOFDPacket [09:03:23]OFDProtocolAddRootSTLVToBuf [09:03:23]FM_MakeSignedData [09:03:23]FM_MakeSignedData [09:03:23]SAM_PROTO_SignData [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 01 02 [09:03:23]Write to MH i2c: E2 08 00 86 0A 80 0D 01 02 00 00 00 00 09 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]wFMCommunicate request_size=255 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 65 00 00 00 F4 03 04 00 E7 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7A 02 00 35 04 06 00 [09:03:23]Write to MH i2c: E2 02 01 87 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 65 00 00 00 F4 03 04 00 E7 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7A 02 00 35 04 06 00 00 00 F4 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 87 0A 00 90 00 05 [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]wFMCommunicate request_size=11 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 02 02 06 DC 3B 65 AC F9 D9 [09:03:23]Write to MH i2c: E2 0E 00 88 0A 80 0D 02 02 06 00 DC 3B 65 AC F9 D9 00 00 12 [09:03:23]OFD Sender: No OFD packet to send [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 03 00 88 0A 00 90 00 06 [09:03:23]RAPDU: 90 00 [09:03:23]wFMCommunicate OK [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 0D 03 02 [09:03:23]Write to MH i2c: E2 08 00 89 0A 80 0D 03 02 00 00 00 00 0E [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 0B 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 0B 00 89 0A 00 A2 7B 09 96 83 BD EF DD 90 00 D7 [09:03:23]RAPDU: A2 7B 09 96 83 BD EF DD 90 00 [09:03:23]wFMCommunicate OK [09:03:23]SAM_PROTO_SignData done [09:03:23]FM_MakeSignedData done [09:03:23]CreateOFDProtocolMessage [09:03:23]wFMCommunicate request_size=4 [09:03:23]MH_SAM_APDU [09:03:23]CAPDU: 80 11 00 00 [09:03:23]Write to MH i2c: E2 08 00 8A 0A 80 11 00 00 00 00 00 00 0E [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:23]Read from MH i2c: E2 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 17 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: E2 17 00 8A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6E [09:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:03:23]wFMCommunicate OK [09:03:23]CreateOFDProtocolMessage done [09:03:23]OFDSenderStorePacket 162433 [09:03:23]StoreOFDPacket docnum=162433 [09:03:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8C 41 08 01 8F D2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 65 00 00 00 F4 03 04 00 E7 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7A 02 00 35 04 06 00 DC 3B 65 AC F9 D9 A2 7B 09 96 83 BD EF DD [09:03:23]CheckFolder [09:03:23]dirname=/storage/ofd_packets [09:03:23]CheckFolder done [09:03:23]ProducePacketName [09:03:23]name=ofd_packets/00162433 [09:03:23]NVStorageSaveData ofd_packets/00162433 [09:03:23]File name is /storage/ofd_packets/00162433 [09:03:23]Write 302 bytes [09:03:23]NVStorageSaveData done [09:03:23]OFDSenderStorePacket done [09:03:23]KKMCreateOFDPacket done [09:03:23]NVStorageSaveData kkm_last_timestamp [09:03:23]File name is /storage/kkm_last_timestamp [09:03:23]Write 4 bytes [09:03:23]NVStorageSaveData done [09:03:23]ExternCall_PrintAddStr [09:03:23]wPrintStart [09:03:23]Write to MH i2c: 01 00 00 8B 0A 95 [09:03:23]Write i2c OK [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 [09:03:23]MH_I2C_Read... [09:03:23]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [09:03:23]RasterBufferAndPrint [09:03:23]line Счет N : (1)1318963 [09:03:23]line ИНН: 02508201610067 [09:03:23]line Контрольно-Кассовый Чек [09:03:23]line ПРОДАЖА [09:03:23]line ТРК (МРК, ГНК) : 61 [09:03:23]line Товар: 2710194210 [09:03:23]line ДТ(л)-К-5 [09:03:23]line 13.780 * 72.60 [09:03:23]line = 1000.43 [09:03:23]line НДС 12% НСП 1% [09:03:23]line > о реализуемом товаре [09:03:23]line ОКРУГЛЕНИЕ: -0.43 [09:03:23]line ИТОГО: 1000.00 [09:03:23]line Внесено: 1000.00 [09:03:23]line СДАЧА: 0.00 [09:03:23]line НСП 1% : 8.85 [09:03:23]line НДС 12% : 106.24 [09:03:23]line Наличными: 1000.00 [09:03:23]line Безнал.: 0.00 [09:03:23]line Место: АЗС № 140 "Партнер Нефть" [09:03:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:03:23]line СНО: Общий режим [09:03:23]line Чек 101 13.07.2024 09:03 [09:03:23]line Смена: 462 ФФД: 1.0 [09:03:23]line ЗНМ: 0300000129 [09:03:23]line РНМ: 0000000000090858 [09:03:23]line Версия ККМ: 001 [09:03:23]line ФМ: 0000000000874899 [09:03:23]line ФД: 162433 [09:03:23]line ФПД: 242147667016153 [09:03:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090335&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162433&fm=242147667016153&tin=02508201610067®Number=0000000000090858&sum=100000 [09:03:23]written 0, free lines is 4095 [09:03:23]OFD Sender: Processing packet 162433 [packets to send 105, broken 104] [09:03:23]ProducePacketName [09:03:23]name=ofd_packets/00162433 [09:03:23]OFD Sender: To server: pG, [09:03:23]CommunicateWithHost lk.salyk.kg:30040 [09:03:23]ConnectInit lk.salyk.kg [09:03:23]Connected sock=8 [09:03:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8C 41 08 01 8F D2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 65 00 00 00 F4 03 04 00 E7 42 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7A 02 00 35 04 06 00 DC 3B 65 AC F9 D9 A2 7B 09 96 83 BD EF DD [09:03:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5B 5E 47 00 13 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 34 38 39 39 10 04 04 00 81 7A 02 00 F4 03 04 00 FC EE 91 66 B6 04 01 00 00 E6 2F 4F 21 4B C0 9E 09 [09:03:23]CommunicateWithHost err = 0 [09:03:23]CheckOFDResponse [09:03:23]1017 (14) - 77093643461234 [09:03:23]1041 (16) - 0000000000874899 [09:03:23]1040 (4) - 162433 [09:03:23]1012 (4) - 13.07.2024 03:05 [09:03:23]1206 (1) - 0 [09:03:23]OFD Sender: Remove packet 162433 [09:03:23]ProducePacketName [09:03:23]name=ofd_packets/00162433 [09:03:23]NVStorageDeleteData [09:03:24]Write to MH i2c: 01 00 00 B6 0A C0 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 07 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: 01 07 00 B6 0A 00 00 00 00 00 EE 0C C1 [09:03:24]RasterBufferAndPrint [09:03:24]line [09:03:24]line [09:03:24]line [09:03:24]line [09:03:24]line [09:03:24]written 0, free lines is 3319 [09:03:24]MH_Cut [09:03:24]Write to MH i2c: D1 01 00 BD 0A 01 99 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: D1 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: D1 01 00 [09:03:24]MH_I2C_Read... [09:03:24]Read from MH i2c: D1 01 00 BD 0A 00 98 [09:03:24]Write to MH i2c: 01 00 00 BE 0A C8 [09:03:24]Write i2c OK [09:03:24]MH_I2C_Read... [09:03:24]OFD Sender: No OFD packet to send [09:03:24]*** Cut start [09:03:24]*** Purtial cut [09:03:24]*** Stage 1: CUTSNS_PIN = 1 [09:03:25]Read from MH i2c: 01 [09:03:25]MH_I2C_Read... [09:03:25]*** Stop cut motor [09:03:25]*** Cut end [09:03:25]Read from MH i2c: 01 07 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: 01 07 00 BE 0A 00 00 00 00 00 FF 0F DD [09:03:25]process_action close_receipt done [09:03:25]requested_data is exist [09:03:25]produce_requested_data [09:03:25]requested_item fm.sn is exist - process it [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 11 00 00 [09:03:25]Write to MH i2c: E2 08 00 BF 0A 80 11 00 00 00 00 00 00 43 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 17 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 17 00 BF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A3 [09:03:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:03:25]wFMCommunicate OK [09:03:25]requested_item fd.num is exist - process it [09:03:25]SAM_PROTO_GetFieldsCounters [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 13 00 00 [09:03:25]Write to MH i2c: E2 08 00 C0 0A 80 13 00 00 00 00 00 00 46 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 62 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 62 00 C0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 81 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [09:03:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 81 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:25]wFMCommunicate OK [09:03:25]SAM_PROTO_GetFieldsCounters done [09:03:25]requested_item shift.num is exist - process it [09:03:25]requested_item shift.opened is exist - process it [09:03:25]req_shift_opened [09:03:25]FM_GetShiftState [09:03:25]SAM_PROTO_GetShiftState [09:03:25]wFMCommunicate request_size=4 [09:03:25]MH_SAM_APDU [09:03:25]CAPDU: 80 13 01 00 [09:03:25]Write to MH i2c: E2 08 00 C1 0A 80 13 01 00 00 00 00 00 48 [09:03:25]Write i2c OK [09:03:25]MH_I2C_Read... [09:03:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:25]Read from MH i2c: E2 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 0E 00 [09:03:25]MH_I2C_Read... [09:03:25]Read from MH i2c: E2 0E 00 C1 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 42 [09:03:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:03:25]wFMCommunicate OK [09:03:25]SAM_PROTO_GetShiftState done [09:03:25]FM_GetShiftState done [09:03:25]req_shift_opened done [09:03:25]requested_item shift.open_date is exist - process it [09:03:25]req_shift_open_date [09:03:25]req_shift_open_date done [09:03:25]produce_requested_data done [09:03:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162433,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:03:25]process_action_free close_receipt [09:03:25]json_value_free [09:03:25]json_value_free done [09:03:25]process_json_proto returns [09:03:25]Send response to host [09:03:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162433,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:03:25]free response buf [09:03:25]execute_script done [09:03:25]execute_script returns [09:03:25]free content buf [09:03:25]Sock 9.Close socket [09:03:25]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:08]accept exits with 10 [09:06:08]New connection [09:06:08]New thread 3066862948 created [09:06:08]Thread 3067006308 joined [09:06:08]Waiting for new connection... [09:06:08] Sock 10.Parse request [09:06:08]Sock 10.Check first char [09:06:08]Sock 10.First char is OK [09:06:08]request: POST /json_proto HTTP/1.0 [09:06:08]Method: POST [09:06:08]URL: /json_proto [09:06:08]Method is POST - this is cgi request [09:06:08]url: /json_proto [09:06:08]query_string will be loaded in cgi processing [09:06:08]execute_cgi json_proto POST (null) [09:06:08]execute_cgi path=json_proto method=POST [09:06:08]POST find Content-Length [09:06:08]Host: 172.17.39.67:8080 [09:06:08]Content-Length: 683 [09:06:08]Content-Type: application/json [09:06:08] [09:06:08]POST finish read [09:06:08]Found Content-Length = 683 [09:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:08]execute_script... [09:06: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)1318964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:06:08]POST & json_proto [09:06:08]process_json_proto [09:06:08]json parsed OK: [09:06:08]protocol is kg_v1.0 [09:06:08]action value=close_receipt [09:06:08]process_action close_receipt [09:06:08]cmd_close_receipt [09:06:08]MH_GetDate [09:06:08]Write to MH i2c: F0 00 00 C2 0A BB [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: F0 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: F0 09 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: F0 09 00 C2 0A 00 8D 43 92 66 FA E9 8E 66 63 [09:06:08]GetLastDocTimeStamp 1720861415 [09:06:08]current date 1720861581 [09:06:08]FM_GetShiftState [09:06:08]SAM_PROTO_GetShiftState [09:06:08]wFMCommunicate request_size=4 [09:06:08]MH_SAM_APDU [09:06:08]CAPDU: 80 13 01 00 [09:06:08]Write to MH i2c: E2 08 00 C3 0A 80 13 01 00 00 00 00 00 4A [09:06:08]Write i2c OK [09:06:08]MH_I2C_Read... [09:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:08]Read from MH i2c: E2 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 [09:06:08]MH_I2C_Read... [09:06:08]Read from MH i2c: E2 0E 00 C3 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 44 [09:06:08]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:06:08]wFMCommunicate OK [09:06:08]SAM_PROTO_GetShiftState done [09:06:08]FM_GetShiftState done [09:06:08]opened in 1720828979 [09:06:08]opened+sec_in_day 1720915379 [09:06:08]quantity*price = 50021 [09:06:08]sum+1 = 50022 [09:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 102 13.07.2024 09:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162434 ФПД: 260641273042692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090621&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162434&fm=260641273042692&tin=02508201610067®Number=0000000000090858&sum=50000 [09:06:09]StoreToDocumentArchive [09:06:09]shift 462 fd 162434 [09:06:09]save to /storage/0462/doc_00162434 [09:06:09]save last doc name /storage/0462/doc_00162434 to /storage/kkm_last_doc_name [09:06:09]save OK [09:06:09]Clear old archive folders... [09:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:06:09]tlvbuf is 01C8B8E0 [09:06:09]SAM_PROTO_ClearQueue [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 09 00 00 [09:06:09]Write to MH i2c: E2 08 00 D0 0A 80 09 00 00 00 00 00 00 4C [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 D0 0A 00 90 00 4E [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]SAM_PROTO_ClearQueue done [09:06:09]KKMCreateOFDPacket [09:06:09]OFDProtocolAddRootSTLVToBuf [09:06:09]FM_MakeSignedData [09:06:09]FM_MakeSignedData [09:06:09]SAM_PROTO_SignData [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 01 02 [09:06:09]Write to MH i2c: E2 08 00 D1 0A 80 0D 01 02 00 00 00 00 54 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 D1 0A 00 90 00 4F [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=255 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 66 00 00 00 F4 03 04 00 8D 43 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7A 02 00 35 04 06 00 [09:06:09]Write to MH i2c: E2 02 01 D2 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 66 00 00 00 F4 03 04 00 8D 43 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7A 02 00 35 04 06 00 00 00 00 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]OFD Sender: No OFD packet to send [09:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=11 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 02 02 06 ED 0D 46 7E 57 04 [09:06:09]Write to MH i2c: E2 0E 00 D3 0A 80 0D 02 02 06 00 ED 0D 46 7E 57 04 00 00 7C [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 03 00 D3 0A 00 90 00 51 [09:06:09]RAPDU: 90 00 [09:06:09]wFMCommunicate OK [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 0D 03 02 [09:06:09]Write to MH i2c: E2 08 00 D4 0A 80 0D 03 02 00 00 00 00 59 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 0B 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 0B 00 D4 0A 00 91 10 A9 43 C0 A8 BC 26 90 00 31 [09:06:09]RAPDU: 91 10 A9 43 C0 A8 BC 26 90 00 [09:06:09]wFMCommunicate OK [09:06:09]SAM_PROTO_SignData done [09:06:09]FM_MakeSignedData done [09:06:09]CreateOFDProtocolMessage [09:06:09]wFMCommunicate request_size=4 [09:06:09]MH_SAM_APDU [09:06:09]CAPDU: 80 11 00 00 [09:06:09]Write to MH i2c: E2 08 00 D5 0A 80 11 00 00 00 00 00 00 59 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:09]Read from MH i2c: E2 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 17 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: E2 17 00 D5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B9 [09:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:06:09]wFMCommunicate OK [09:06:09]CreateOFDProtocolMessage done [09:06:09]OFDSenderStorePacket 162434 [09:06:09]StoreOFDPacket docnum=162434 [09:06:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 53 54 08 01 02 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 66 00 00 00 F4 03 04 00 8D 43 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7A 02 00 35 04 06 00 ED 0D 46 7E 57 04 91 10 A9 43 C0 A8 BC 26 [09:06:09]CheckFolder [09:06:09]dirname=/storage/ofd_packets [09:06:09]CheckFolder done [09:06:09]ProducePacketName [09:06:09]name=ofd_packets/00162434 [09:06:09]NVStorageSaveData ofd_packets/00162434 [09:06:09]File name is /storage/ofd_packets/00162434 [09:06:09]Write 302 bytes [09:06:09]NVStorageSaveData done [09:06:09]OFDSenderStorePacket done [09:06:09]KKMCreateOFDPacket done [09:06:09]NVStorageSaveData kkm_last_timestamp [09:06:09]File name is /storage/kkm_last_timestamp [09:06:09]Write 4 bytes [09:06:09]NVStorageSaveData done [09:06:09]ExternCall_PrintAddStr [09:06:09]wPrintStart [09:06:09]Write to MH i2c: 01 00 00 D6 0A E0 [09:06:09]Write i2c OK [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 [09:06:09]MH_I2C_Read... [09:06:09]Read from MH i2c: 01 07 00 D6 0A 00 00 00 00 00 FF 0F F5 [09:06:09]RasterBufferAndPrint [09:06:09]line Счет N : (1)1318964 [09:06:09]line ИНН: 02508201610067 [09:06:09]line Контрольно-Кассовый Чек [09:06:09]line ПРОДАЖА [09:06:09]line ТРК (МРК, ГНК) : 41 [09:06:09]line Товар: 2710194210 [09:06:09]line ДТ(л)-К-5 [09:06:09]line 6.890 * 72.60 [09:06:09]line = 500.21 [09:06:09]line НДС 12% НСП 1% [09:06:09]line > о реализуемом товаре [09:06:09]line ОКРУГЛЕНИЕ: -0.21 [09:06:09]line ИТОГО: 500.00 [09:06:09]line Внесено: 500.00 [09:06:09]line СДАЧА: 0.00 [09:06:09]line НСП 1% : 4.43 [09:06:09]line НДС 12% : 53.12 [09:06:09]line Наличными: 500.00 [09:06:09]line Безнал.: 0.00 [09:06:09]line Место: АЗС № 140 "Партнер Нефть" [09:06:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:06:09]line СНО: Общий режим [09:06:09]line Чек 102 13.07.2024 09:06 [09:06:09]line Смена: 462 ФФД: 1.0 [09:06:09]line ЗНМ: 0300000129 [09:06:09]line РНМ: 0000000000090858 [09:06:09]line Версия ККМ: 001 [09:06:09]line ФМ: 0000000000874899 [09:06:09]line ФД: 162434 [09:06:09]line ФПД: 260641273042692 [09:06:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T090621&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162434&fm=260641273042692&tin=02508201610067®Number=0000000000090858&sum=50000 [09:06:10]OFD Sender: Processing packet 162434 [packets to send 105, broken 104] [09:06:10]ProducePacketName [09:06:10]name=ofd_packets/00162434 [09:06:10]OFD Sender: To server: pG, [09:06:10]CommunicateWithHost lk.salyk.kg:30040 [09:06:10]ConnectInit lk.salyk.kg [09:06:10]written 0, free lines is 4095 [09:06:10]Connected sock=9 [09:06:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 53 54 08 01 02 11 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 66 00 00 00 F4 03 04 00 8D 43 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7A 02 00 35 04 06 00 ED 0D 46 7E 57 04 91 10 A9 43 C0 A8 BC 26 [09:06:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 22 69 47 00 B5 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7A 02 00 F4 03 04 00 A2 EF 91 66 B6 04 01 00 00 A3 D8 4F 6D D8 9C F3 EB [09:06:10]CommunicateWithHost err = 0 [09:06:10]CheckOFDResponse [09:06:10]1017 (14) - 77093643461234 [09:06:10]1041 (16) - 0000000000874899 [09:06:10]1040 (4) - 162434 [09:06:10]1012 (4) - 13.07.2024 03:08 [09:06:10]1206 (1) - 0 [09:06:10]OFD Sender: Remove packet 162434 [09:06:10]ProducePacketName [09:06:10]name=ofd_packets/00162434 [09:06:10]NVStorageDeleteData [09:06:10]Write to MH i2c: 01 00 00 01 0B 0C [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 07 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: 01 07 00 01 0B 00 00 00 00 00 F1 0C 10 [09:06:10]RasterBufferAndPrint [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]line [09:06:10]written 0, free lines is 3319 [09:06:10]MH_Cut [09:06:10]Write to MH i2c: D1 01 00 08 0B 01 E5 [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 01 00 [09:06:10]MH_I2C_Read... [09:06:10]Read from MH i2c: D1 01 00 08 0B 00 E4 [09:06:10]Write to MH i2c: 01 00 00 09 0B 14 [09:06:10]Write i2c OK [09:06:10]MH_I2C_Read... [09:06:11]OFD Sender: No OFD packet to send [09:06:11]*** Cut start [09:06:11]*** Purtial cut [09:06:11]*** CUTSNS_PIN = 0 [09:06:11]*** Stage 1: CUTSNS_PIN = 1 [09:06:13]Read from MH i2c: 01 [09:06:13]MH_I2C_Read... [09:06:13]*** Stop cut motor [09:06:13]*** Cut end [09:06:13]Read from MH i2c: 01 07 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 FF 0F 29 [09:06:13]process_action close_receipt done [09:06:13]requested_data is exist [09:06:13]produce_requested_data [09:06:13]requested_item fm.sn is exist - process it [09:06:13]wFMCommunicate request_size=4 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 11 00 00 [09:06:13]Write to MH i2c: E2 08 00 0A 0B 80 11 00 00 00 00 00 00 8F [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 17 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 17 00 0A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EF [09:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:06:13]wFMCommunicate OK [09:06:13]requested_item fd.num is exist - process it [09:06:13]SAM_PROTO_GetFieldsCounters [09:06:13]wFMCommunicate request_size=4 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 13 00 00 [09:06:13]Write to MH i2c: E2 08 00 0B 0B 80 13 00 00 00 00 00 00 92 [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 62 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 62 00 0B 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 82 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [09:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 82 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:13]wFMCommunicate OK [09:06:13]SAM_PROTO_GetFieldsCounters done [09:06:13]requested_item shift.num is exist - process it [09:06:13]requested_item shift.opened is exist - process it [09:06:13]req_shift_opened [09:06:13]FM_GetShiftState [09:06:13]SAM_PROTO_GetShiftState [09:06:13]wFMCommunicate request_size=4 [09:06:13]MH_SAM_APDU [09:06:13]CAPDU: 80 13 01 00 [09:06:13]Write to MH i2c: E2 08 00 0C 0B 80 13 01 00 00 00 00 00 94 [09:06:13]Write i2c OK [09:06:13]MH_I2C_Read... [09:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:13]Read from MH i2c: E2 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 0E 00 [09:06:13]MH_I2C_Read... [09:06:13]Read from MH i2c: E2 0E 00 0C 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8E [09:06:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:06:13]wFMCommunicate OK [09:06:13]SAM_PROTO_GetShiftState done [09:06:13]FM_GetShiftState done [09:06:13]req_shift_opened done [09:06:13]requested_item shift.open_date is exist - process it [09:06:13]req_shift_open_date [09:06:13]req_shift_open_date done [09:06:13]produce_requested_data done [09:06:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162434,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:06:13]process_action_free close_receipt [09:06:13]json_value_free [09:06:13]json_value_free done [09:06:13]process_json_proto returns [09:06:13]Send response to host [09:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162434,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:06:13]free response buf [09:06:13]execute_script done [09:06:13]execute_script returns [09:06:13]free content buf [09:06:13]Sock 10.Close socket [09:06:13]Sock 10.Thread stoped [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:48]accept exits with 8 [09:08:48]New connection [09:08:48]New thread 3067006308 created [09:08:48]Thread 3066862948 joined [09:08:48]Waiting for new connection... [09:08:48] Sock 8.Parse request [09:08:48]Sock 8.Check first char [09:08:48]Sock 8.First char is OK [09:08:48]request: POST /json_proto HTTP/1.0 [09:08:48]Method: POST [09:08:48]URL: /json_proto [09:08:48]Method is POST - this is cgi request [09:08:48]url: /json_proto [09:08:48]query_string will be loaded in cgi processing [09:08:48]execute_cgi json_proto POST (null) [09:08:48]execute_cgi path=json_proto method=POST [09:08:48]POST find Content-Length [09:08:48]Host: 172.17.39.67:8080 [09:08:48]Content-Length: 1203 [09:08:48]Content-Type: application/json [09:08:48] [09:08:48]POST finish read [09:08:48]Found Content-Length = 1203 [09:08:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318965\u000A13.07.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040961\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:48]execute_script... [09:08:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318965\u000A13.07.2024 09:06\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040961\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:48]POST & json_proto [09:08:48]process_json_proto [09:08:48]json parsed OK: [09:08:48]protocol is kg_v1.0 [09:08:48]action value=print_text [09:08:48]process_action print_text [09:08:48]cmd_print_text [09:08:48]ExternCall_PrintAddStr [09:08:48]wPrintStart [09:08:48]Write to MH i2c: 01 00 00 0D 0B 18 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 FF 0F 2D [09:08:48]RasterBufferAndPrint [09:08:48]line *****ТОВАРНЫЙ ЧЕК***** [09:08:48]line АЗС 140 [09:08:48]line Партнер нефть [09:08:48]line 02508201610067 [09:08:48]line Кассир : Шамбеталиев А. [09:08:48]line Счет N : (1)1318965 [09:08:48]line 13.07.2024 09:06 [09:08:48]line ПРОДАЖА [09:08:48]line ТРК (МРК, ГНК): 53 [09:08:48]line Вид ГСМ : 2710124130 [09:08:48]line Аи-92-К-5 [09:08:48]line 20.000 x 66.30 [09:08:48]line ИТОГ: 1326.00 [09:08:48]line Тип оплаты: Талоны: Партнер нефть [09:08:48]line 3040961 [09:08:48]line ______________________ [09:08:48]line (подпись) [09:08:48]written 0, free lines is 4095 [09:08:48]Write to MH i2c: 01 00 00 22 0B 2D [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: 01 07 00 22 0B 00 00 00 00 00 F8 0D 39 [09:08:48]RasterBufferAndPrint [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]line [09:08:48]written 0, free lines is 3577 [09:08:48]MH_Cut [09:08:48]Write to MH i2c: D1 01 00 29 0B 01 06 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 01 00 [09:08:48]MH_I2C_Read... [09:08:48]Read from MH i2c: D1 01 00 29 0B 00 05 [09:08:48]Write to MH i2c: 01 00 00 2A 0B 35 [09:08:48]Write i2c OK [09:08:48]MH_I2C_Read... [09:08:48]*** Cut start [09:08:48]*** Purtial cut [09:08:48]*** Stage 1: CUTSNS_PIN = 1 [09:08:49]Read from MH i2c: 01 [09:08:49]MH_I2C_Read... [09:08:49]*** Stop cut motor [09:08:49]*** Cut end [09:08:49]Read from MH i2c: 01 07 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: 01 07 00 2A 0B 00 00 00 00 00 FF 0F 4A [09:08:49]process_action print_text done [09:08:49]requested_data is exist [09:08:49]produce_requested_data [09:08:49]requested_item fm.sn is exist - process it [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 11 00 00 [09:08:49]Write to MH i2c: E2 08 00 2B 0B 80 11 00 00 00 00 00 00 B0 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 17 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 17 00 2B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 10 [09:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:08:49]wFMCommunicate OK [09:08:49]requested_item fd.num is exist - process it [09:08:49]SAM_PROTO_GetFieldsCounters [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 13 00 00 [09:08:49]Write to MH i2c: E2 08 00 2C 0B 80 13 00 00 00 00 00 00 B3 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 62 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 62 00 2C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 82 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [09:08:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 82 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:49]wFMCommunicate OK [09:08:49]SAM_PROTO_GetFieldsCounters done [09:08:49]requested_item shift.num is exist - process it [09:08:49]requested_item shift.opened is exist - process it [09:08:49]req_shift_opened [09:08:49]FM_GetShiftState [09:08:49]SAM_PROTO_GetShiftState [09:08:49]wFMCommunicate request_size=4 [09:08:49]MH_SAM_APDU [09:08:49]CAPDU: 80 13 01 00 [09:08:49]Write to MH i2c: E2 08 00 2D 0B 80 13 01 00 00 00 00 00 B5 [09:08:49]Write i2c OK [09:08:49]MH_I2C_Read... [09:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:49]Read from MH i2c: E2 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 0E 00 [09:08:49]MH_I2C_Read... [09:08:49]Read from MH i2c: E2 0E 00 2D 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AF [09:08:49]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:08:49]wFMCommunicate OK [09:08:49]SAM_PROTO_GetShiftState done [09:08:49]FM_GetShiftState done [09:08:49]req_shift_opened done [09:08:49]requested_item shift.open_date is exist - process it [09:08:49]req_shift_open_date [09:08:49]req_shift_open_date done [09:08:49]produce_requested_data done [09:08:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162434,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:08:49]process_action_free print_text [09:08:49]json_value_free [09:08:49]json_value_free done [09:08:49]process_json_proto returns [09:08:49]Send response to host [09:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162434,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:08:49]free response buf [09:08:49]execute_script done [09:08:49]execute_script returns [09:08:49]free content buf [09:08:49]Sock 8.Close socket [09:08:49]Sock 8.Thread stoped [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:55]accept exits with 9 [09:10:55]New connection [09:10:55]New thread 3066862948 created [09:10:55]Thread 3067006308 joined [09:10:55]Waiting for new connection... [09:10:55] Sock 9.Parse request [09:10:55]Sock 9.Check first char [09:10:55]Sock 9.First char is OK [09:10:55]request: POST /json_proto HTTP/1.0 [09:10:55]Method: POST [09:10:55]URL: /json_proto [09:10:55]Method is POST - this is cgi request [09:10:55]url: /json_proto [09:10:55]query_string will be loaded in cgi processing [09:10:55]execute_cgi json_proto POST (null) [09:10:55]execute_cgi path=json_proto method=POST [09:10:55]POST find Content-Length [09:10:55]Host: 172.17.39.67:8080 [09:10:55]Content-Length: 679 [09:10:55]Content-Type: application/json [09:10:55] [09:10:55]POST finish read [09:10:55]Found Content-Length = 679 [09:10:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:55]execute_script... [09:10: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)1318967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:10:55]POST & json_proto [09:10:55]process_json_proto [09:10:55]json parsed OK: [09:10:55]protocol is kg_v1.0 [09:10:55]action value=close_receipt [09:10:55]process_action close_receipt [09:10:55]cmd_close_receipt [09:10:55]MH_GetDate [09:10:55]Write to MH i2c: F0 00 00 2E 0B 28 [09:10:55]Write i2c OK [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: F0 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: F0 09 00 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: F0 09 00 2E 0B 00 AC 44 92 66 FA E9 8E 66 F0 [09:10:55]GetLastDocTimeStamp 1720861581 [09:10:55]current date 1720861868 [09:10:55]FM_GetShiftState [09:10:55]SAM_PROTO_GetShiftState [09:10:55]wFMCommunicate request_size=4 [09:10:55]MH_SAM_APDU [09:10:55]CAPDU: 80 13 01 00 [09:10:55]Write to MH i2c: E2 08 00 2F 0B 80 13 01 00 00 00 00 00 B7 [09:10:55]Write i2c OK [09:10:55]MH_I2C_Read... [09:10:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:10:55]Read from MH i2c: E2 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: E2 0E 00 [09:10:55]MH_I2C_Read... [09:10:55]Read from MH i2c: E2 0E 00 2F 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B1 [09:10:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:10:55]wFMCommunicate OK [09:10:55]SAM_PROTO_GetShiftState done [09:10:55]FM_GetShiftState done [09:10:55]opened in 1720828979 [09:10:55]opened+sec_in_day 1720915379 [09:10:55]quantity*price = 70012 [09:10:55]sum+1 = 70014 [09:10:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 103 13.07.2024 09:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162435 ФПД: 164234540522580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091108&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162435&fm=164234540522580&tin=02508201610067®Number=0000000000090858&sum=70000 [09:10:56]StoreToDocumentArchive [09:10:56]shift 462 fd 162435 [09:10:56]save to /storage/0462/doc_00162435 [09:10:56]save last doc name /storage/0462/doc_00162435 to /storage/kkm_last_doc_name [09:10:56]save OK [09:10:56]Clear old archive folders... [09:10:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:10:56]tlvbuf is 01C44660 [09:10:56]SAM_PROTO_ClearQueue [09:10:56]wFMCommunicate request_size=4 [09:10:56]MH_SAM_APDU [09:10:56]CAPDU: 80 09 00 00 [09:10:56]Write to MH i2c: E2 08 00 3C 0B 80 09 00 00 00 00 00 00 B9 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:10:56]Read from MH i2c: E2 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 03 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 03 00 3C 0B 00 90 00 BB [09:10:56]RAPDU: 90 00 [09:10:56]wFMCommunicate OK [09:10:56]SAM_PROTO_ClearQueue done [09:10:56]KKMCreateOFDPacket [09:10:56]OFDProtocolAddRootSTLVToBuf [09:10:56]FM_MakeSignedData [09:10:56]FM_MakeSignedData [09:10:56]SAM_PROTO_SignData [09:10:56]wFMCommunicate request_size=4 [09:10:56]MH_SAM_APDU [09:10:56]CAPDU: 80 0D 01 02 [09:10:56]Write to MH i2c: E2 08 00 3D 0B 80 0D 01 02 00 00 00 00 C1 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:10:56]Read from MH i2c: E2 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 03 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 03 00 3D 0B 00 90 00 BC [09:10:56]RAPDU: 90 00 [09:10:56]wFMCommunicate OK [09:10:56]wFMCommunicate request_size=255 [09:10:56]MH_SAM_APDU [09:10:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 AC 44 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7A 02 00 35 04 06 00 95 [09:10:56]Write to MH i2c: E2 02 01 3E 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 AC 44 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7A 02 00 35 04 06 00 95 00 00 20 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:56]Read from MH i2c: E2 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 03 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 03 00 3E 0B 00 90 00 BD [09:10:56]RAPDU: 90 00 [09:10:56]wFMCommunicate OK [09:10:56]wFMCommunicate request_size=10 [09:10:56]MH_SAM_APDU [09:10:56]CAPDU: 80 0D 02 02 05 5E D5 72 9C 54 [09:10:56]Write to MH i2c: E2 0D 00 3F 0B 80 0D 02 02 05 00 5E D5 72 9C 54 00 00 63 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:10:56]Read from MH i2c: E2 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 03 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 03 00 3F 0B 00 90 00 BE [09:10:56]RAPDU: 90 00 [09:10:56]wFMCommunicate OK [09:10:56]wFMCommunicate request_size=4 [09:10:56]MH_SAM_APDU [09:10:56]CAPDU: 80 0D 03 02 [09:10:56]Write to MH i2c: E2 08 00 40 0B 80 0D 03 02 00 00 00 00 C6 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:10:56]Read from MH i2c: E2 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 0B 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 0B 00 40 0B 00 77 E9 C6 29 A5 EE 80 43 90 00 6C [09:10:56]RAPDU: 77 E9 C6 29 A5 EE 80 43 90 00 [09:10:56]wFMCommunicate OK [09:10:56]SAM_PROTO_SignData done [09:10:56]FM_MakeSignedData done [09:10:56]CreateOFDProtocolMessage [09:10:56]wFMCommunicate request_size=4 [09:10:56]MH_SAM_APDU [09:10:56]CAPDU: 80 11 00 00 [09:10:56]Write to MH i2c: E2 08 00 41 0B 80 11 00 00 00 00 00 00 C6 [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:10:56]Read from MH i2c: E2 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 17 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: E2 17 00 41 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 26 [09:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:10:56]wFMCommunicate OK [09:10:56]CreateOFDProtocolMessage done [09:10:56]OFDSenderStorePacket 162435 [09:10:56]StoreOFDPacket docnum=162435 [09:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6F 44 07 01 49 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 AC 44 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7A 02 00 35 04 06 00 95 5E D5 72 9C 54 77 E9 C6 29 A5 EE 80 43 [09:10:56]CheckFolder [09:10:56]dirname=/storage/ofd_packets [09:10:56]CheckFolder done [09:10:56]ProducePacketName [09:10:56]name=ofd_packets/00162435 [09:10:56]NVStorageSaveData ofd_packets/00162435 [09:10:56]File name is /storage/ofd_packets/00162435 [09:10:56]Write 301 bytes [09:10:56]NVStorageSaveData done [09:10:56]OFDSenderStorePacket done [09:10:56]KKMCreateOFDPacket done [09:10:56]NVStorageSaveData kkm_last_timestamp [09:10:56]File name is /storage/kkm_last_timestamp [09:10:56]Write 4 bytes [09:10:56]NVStorageSaveData done [09:10:56]ExternCall_PrintAddStr [09:10:56]wPrintStart [09:10:56]Write to MH i2c: 01 00 00 42 0B 4D [09:10:56]Write i2c OK [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 07 00 [09:10:56]MH_I2C_Read... [09:10:56]Read from MH i2c: 01 07 00 42 0B 00 00 00 00 00 FF 0F 62 [09:10:56]RasterBufferAndPrint [09:10:56]line Счет N : (1)1318967 [09:10:56]line ИНН: 02508201610067 [09:10:56]line Контрольно-Кассовый Чек [09:10:56]line ПРОДАЖА [09:10:56]line ТРК (МРК, ГНК) : 63 [09:10:56]line Товар: 2710124130 [09:10:56]line Аи-92-К-5 [09:10:56]line 10.560 * 66.30 [09:10:56]line = 700.13 [09:10:56]line НДС 12% НСП 1% [09:10:56]line > о реализуемом товаре [09:10:56]line ОКРУГЛЕНИЕ: -0.13 [09:10:56]line ИТОГО: 700.00 [09:10:56]line Внесено: 700.00 [09:10:56]line СДАЧА: 0.00 [09:10:56]line НСП 1% : 6.20 [09:10:56]line НДС 12% : 74.35 [09:10:56]line Наличными: 700.00 [09:10:56]line Безнал.: 0.00 [09:10:56]line Место: АЗС № 140 "Партнер Нефть" [09:10:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:10:56]line СНО: Общий режим [09:10:56]line Чек 103 13.07.2024 09:11 [09:10:56]line Смена: 462 ФФД: 1.0 [09:10:56]line ЗНМ: 0300000129 [09:10:56]line РНМ: 0000000000090858 [09:10:56]line Версия ККМ: 001 [09:10:56]line ФМ: 0000000000874899 [09:10:56]line ФД: 162435 [09:10:56]line ФПД: 164234540522580 [09:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091108&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162435&fm=164234540522580&tin=02508201610067®Number=0000000000090858&sum=70000 [09:10:56]written 0, free lines is 4095 [09:10:57]OFD Sender: Processing packet 162435 [packets to send 105, broken 104] [09:10:57]ProducePacketName [09:10:57]name=ofd_packets/00162435 [09:10:57]OFD Sender: To server: pG, [09:10:57]CommunicateWithHost lk.salyk.kg:30040 [09:10:57]ConnectInit lk.salyk.kg [09:10:57]Connected sock=10 [09:10:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6F 44 07 01 49 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 AC 44 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7A 02 00 35 04 06 00 95 5E D5 72 9C 54 77 E9 C6 29 A5 EE 80 43 [09:10:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FE E3 47 00 58 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7A 02 00 F4 03 04 00 C1 F0 91 66 B6 04 01 00 00 FF 1C 37 BC 79 28 F1 1F [09:10:57]CommunicateWithHost err = 0 [09:10:57]CheckOFDResponse [09:10:57]1017 (14) - 77093643461234 [09:10:57]1041 (16) - 0000000000874899 [09:10:57]1040 (4) - 162435 [09:10:57]1012 (4) - 13.07.2024 03:13 [09:10:57]1206 (1) - 0 [09:10:57]OFD Sender: Remove packet 162435 [09:10:57]ProducePacketName [09:10:57]name=ofd_packets/00162435 [09:10:57]NVStorageDeleteData [09:10:57]Write to MH i2c: 01 00 00 6D 0B 78 [09:10:57]Write i2c OK [09:10:57]MH_I2C_Read... [09:10:57]Read from MH i2c: 01 [09:10:57]MH_I2C_Read... [09:10:57]Read from MH i2c: 01 07 00 [09:10:57]MH_I2C_Read... [09:10:57]Read from MH i2c: 01 07 00 6D 0B 00 00 00 00 00 EB 0C 76 [09:10:57]RasterBufferAndPrint [09:10:57]line [09:10:57]line [09:10:57]line [09:10:57]line [09:10:57]line [09:10:57]written 0, free lines is 3316 [09:10:57]MH_Cut [09:10:57]Write to MH i2c: D1 01 00 74 0B 01 51 [09:10:57]Write i2c OK [09:10:57]MH_I2C_Read... [09:10:57]Read from MH i2c: D1 [09:10:57]MH_I2C_Read... [09:10:57]Read from MH i2c: D1 01 00 [09:10:57]MH_I2C_Read... [09:10:57]Read from MH i2c: D1 01 00 74 0B 00 50 [09:10:57]Write to MH i2c: 01 00 00 75 0B 80 [09:10:57]Write i2c OK [09:10:57]MH_I2C_Read... [09:10:57]OFD Sender: No OFD packet to send [09:10:58]*** Cut start [09:10:58]*** Purtial cut [09:10:58]*** CUTSNS_PIN = 0 [09:10:58]*** Stage 1: CUTSNS_PIN = 1 [09:11:00]Read from MH i2c: 01 [09:11:00]MH_I2C_Read... [09:11:00]*** Stop cut motor [09:11:00]*** Cut end [09:11:00]Read from MH i2c: 01 07 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 FF 0F 95 [09:11:00]process_action close_receipt done [09:11:00]requested_data is exist [09:11:00]produce_requested_data [09:11:00]requested_item fm.sn is exist - process it [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 11 00 00 [09:11:00]Write to MH i2c: E2 08 00 76 0B 80 11 00 00 00 00 00 00 FB [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 17 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 17 00 76 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5B [09:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:11:00]wFMCommunicate OK [09:11:00]requested_item fd.num is exist - process it [09:11:00]SAM_PROTO_GetFieldsCounters [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 13 00 00 [09:11:00]Write to MH i2c: E2 08 00 77 0B 80 13 00 00 00 00 00 00 FE [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 62 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 62 00 77 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 83 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [09:11:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 83 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_GetFieldsCounters done [09:11:00]requested_item shift.num is exist - process it [09:11:00]requested_item shift.opened is exist - process it [09:11:00]req_shift_opened [09:11:00]FM_GetShiftState [09:11:00]SAM_PROTO_GetShiftState [09:11:00]wFMCommunicate request_size=4 [09:11:00]MH_SAM_APDU [09:11:00]CAPDU: 80 13 01 00 [09:11:00]Write to MH i2c: E2 08 00 78 0B 80 13 01 00 00 00 00 00 00 [09:11:00]Write i2c OK [09:11:00]MH_I2C_Read... [09:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:00]Read from MH i2c: E2 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0E 00 [09:11:00]MH_I2C_Read... [09:11:00]Read from MH i2c: E2 0E 00 78 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FA [09:11:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:11:00]wFMCommunicate OK [09:11:00]SAM_PROTO_GetShiftState done [09:11:00]FM_GetShiftState done [09:11:00]req_shift_opened done [09:11:00]requested_item shift.open_date is exist - process it [09:11:00]req_shift_open_date [09:11:00]req_shift_open_date done [09:11:00]produce_requested_data done [09:11:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162435,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:11:00]process_action_free close_receipt [09:11:00]json_value_free [09:11:00]json_value_free done [09:11:00]process_json_proto returns [09:11:00]Send response to host [09:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162435,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:11:00]free response buf [09:11:00]execute_script done [09:11:00]execute_script returns [09:11:00]free content buf [09:11:00]Sock 9.Close socket [09:11:00]Sock 9.Thread stoped [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]accept exits with 8 [09:11:32]New connection [09:11:32]New thread 3067006308 created [09:11:32]Thread 3066862948 joined [09:11:32]Waiting for new connection... [09:11:32] Sock 8.Parse request [09:11:32]Sock 8.Check first char [09:11:32]Sock 8.First char is OK [09:11:32]request: POST /json_proto HTTP/1.0 [09:11:32]Method: POST [09:11:32]URL: /json_proto [09:11:32]Method is POST - this is cgi request [09:11:32]url: /json_proto [09:11:32]query_string will be loaded in cgi processing [09:11:32]execute_cgi json_proto POST (null) [09:11:32]execute_cgi path=json_proto method=POST [09:11:32]POST find Content-Length [09:11:32]Host: 172.17.39.67:8080 [09:11:32]Content-Length: 683 [09:11:32]Content-Type: application/json [09:11:32] [09:11:32]POST finish read [09:11:32]Found Content-Length = 683 [09:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:32]execute_script... [09:11: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)1318966", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:32]POST & json_proto [09:11:32]process_json_proto [09:11:32]json parsed OK: [09:11:32]protocol is kg_v1.0 [09:11:32]action value=close_receipt [09:11:32]process_action close_receipt [09:11:32]cmd_close_receipt [09:11:32]MH_GetDate [09:11:32]Write to MH i2c: F0 00 00 79 0B 73 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: F0 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: F0 09 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: F0 09 00 79 0B 00 D2 44 92 66 FA E9 8E 66 61 [09:11:32]GetLastDocTimeStamp 1720861868 [09:11:32]current date 1720861906 [09:11:32]FM_GetShiftState [09:11:32]SAM_PROTO_GetShiftState [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 13 01 00 [09:11:32]Write to MH i2c: E2 08 00 7A 0B 80 13 01 00 00 00 00 00 02 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]OFD Sender: No OFD packet to send [09:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0E 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0E 00 7A 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FC [09:11:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_GetShiftState done [09:11:32]FM_GetShiftState done [09:11:32]opened in 1720828979 [09:11:32]opened+sec_in_day 1720915379 [09:11:32]quantity*price = 40002 [09:11:32]sum+1 = 40004 [09:11:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 104 13.07.2024 09:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162436 ФПД: 113638511323118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091146&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162436&fm=113638511323118&tin=02508201610067®Number=0000000000090858&sum=40000 [09:11:34]StoreToDocumentArchive [09:11:34]shift 462 fd 162436 [09:11:34]save to /storage/0462/doc_00162436 [09:11:34]save last doc name /storage/0462/doc_00162436 to /storage/kkm_last_doc_name [09:11:34]save OK [09:11:34]Clear old archive folders... [09:11:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:11:34]tlvbuf is 01864920 [09:11:34]SAM_PROTO_ClearQueue [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 09 00 00 [09:11:34]Write to MH i2c: E2 08 00 87 0B 80 09 00 00 00 00 00 00 04 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 87 0B 00 90 00 06 [09:11:34]RAPDU: 90 00 [09:11:34]wFMCommunicate OK [09:11:34]SAM_PROTO_ClearQueue done [09:11:34]KKMCreateOFDPacket [09:11:34]OFDProtocolAddRootSTLVToBuf [09:11:34]FM_MakeSignedData [09:11:34]FM_MakeSignedData [09:11:34]SAM_PROTO_SignData [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 0D 01 02 [09:11:34]Write to MH i2c: E2 08 00 88 0B 80 0D 01 02 00 00 00 00 0C [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 88 0B 00 90 00 07 [09:11:34]RAPDU: 90 00 [09:11:34]wFMCommunicate OK [09:11:34]wFMCommunicate request_size=255 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D2 44 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7A 02 00 35 04 06 00 [09:11:34]Write to MH i2c: E2 02 01 89 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D2 44 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7A 02 00 35 04 06 00 00 00 5D [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 89 0B 00 90 00 08 [09:11:34]RAPDU: 90 00 [09:11:34]wFMCommunicate OK [09:11:34]wFMCommunicate request_size=11 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 0D 02 02 06 67 5A 87 19 A7 EE [09:11:34]Write to MH i2c: E2 0E 00 8A 0B 80 0D 02 02 06 00 67 5A 87 19 A7 EE 00 00 11 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 03 00 8A 0B 00 90 00 09 [09:11:34]RAPDU: 90 00 [09:11:34]wFMCommunicate OK [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 0D 03 02 [09:11:34]Write to MH i2c: E2 08 00 8B 0B 80 0D 03 02 00 00 00 00 11 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 0B 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 0B 00 8B 0B 00 2E AC E9 98 EF F4 E9 80 90 00 B9 [09:11:34]RAPDU: 2E AC E9 98 EF F4 E9 80 90 00 [09:11:34]wFMCommunicate OK [09:11:34]SAM_PROTO_SignData done [09:11:34]FM_MakeSignedData done [09:11:34]CreateOFDProtocolMessage [09:11:34]wFMCommunicate request_size=4 [09:11:34]MH_SAM_APDU [09:11:34]CAPDU: 80 11 00 00 [09:11:34]Write to MH i2c: E2 08 00 8C 0B 80 11 00 00 00 00 00 00 11 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:34]Read from MH i2c: E2 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 17 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: E2 17 00 8C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 71 [09:11:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:11:34]wFMCommunicate OK [09:11:34]CreateOFDProtocolMessage done [09:11:34]OFDSenderStorePacket 162436 [09:11:34]StoreOFDPacket docnum=162436 [09:11:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E2 F4 08 01 98 AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D2 44 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7A 02 00 35 04 06 00 67 5A 87 19 A7 EE 2E AC E9 98 EF F4 E9 80 [09:11:34]CheckFolder [09:11:34]dirname=/storage/ofd_packets [09:11:34]CheckFolder done [09:11:34]ProducePacketName [09:11:34]name=ofd_packets/00162436 [09:11:34]NVStorageSaveData ofd_packets/00162436 [09:11:34]File name is /storage/ofd_packets/00162436 [09:11:34]Write 302 bytes [09:11:34]NVStorageSaveData done [09:11:34]OFDSenderStorePacket done [09:11:34]KKMCreateOFDPacket done [09:11:34]NVStorageSaveData kkm_last_timestamp [09:11:34]File name is /storage/kkm_last_timestamp [09:11:34]Write 4 bytes [09:11:34]NVStorageSaveData done [09:11:34]ExternCall_PrintAddStr [09:11:34]wPrintStart [09:11:34]Write to MH i2c: 01 00 00 8D 0B 98 [09:11:34]Write i2c OK [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: 01 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: 01 07 00 [09:11:34]MH_I2C_Read... [09:11:34]Read from MH i2c: 01 07 00 8D 0B 00 00 00 00 00 FF 0F AD [09:11:34]RasterBufferAndPrint [09:11:34]line Счет N : (1)1318966 [09:11:34]line ИНН: 02508201610067 [09:11:34]line Контрольно-Кассовый Чек [09:11:34]line ПРОДАЖА [09:11:34]line ТРК (МРК, ГНК) : 11 [09:11:34]line Товар: 2710194210 [09:11:34]line ДТ(л)-К-5 [09:11:34]line 5.510 * 72.60 [09:11:34]line = 400.03 [09:11:34]line НДС 12% НСП 1% [09:11:34]line > о реализуемом товаре [09:11:34]line ОКРУГЛЕНИЕ: -0.03 [09:11:34]line ИТОГО: 400.00 [09:11:34]line Внесено: 400.00 [09:11:34]line СДАЧА: 0.00 [09:11:34]line НСП 1% : 3.54 [09:11:34]line НДС 12% : 42.48 [09:11:34]line Наличными: 400.00 [09:11:34]line Безнал.: 0.00 [09:11:34]line Место: АЗС № 140 "Партнер Нефть" [09:11:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:11:34]line СНО: Общий режим [09:11:34]line Чек 104 13.07.2024 09:11 [09:11:34]line Смена: 462 ФФД: 1.0 [09:11:34]line ЗНМ: 0300000129 [09:11:34]line РНМ: 0000000000090858 [09:11:34]line Версия ККМ: 001 [09:11:34]line ФМ: 0000000000874899 [09:11:34]line ФД: 162436 [09:11:34]line ФПД: 113638511323118 [09:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091146&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162436&fm=113638511323118&tin=02508201610067®Number=0000000000090858&sum=40000 [09:11:34]OFD Sender: Processing packet 162436 [packets to send 105, broken 104] [09:11:34]ProducePacketName [09:11:34]name=ofd_packets/00162436 [09:11:34]OFD Sender: To server: pG, [09:11:34]CommunicateWithHost lk.salyk.kg:30040 [09:11:34]ConnectInit lk.salyk.kg [09:11:34]written 0, free lines is 4095 [09:11:34]Connected sock=10 [09:11:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E2 F4 08 01 98 AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 D2 44 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7A 02 00 35 04 06 00 67 5A 87 19 A7 EE 2E AC E9 98 EF F4 E9 80 [09:11:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 82 8E 47 00 13 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7A 02 00 F4 03 04 00 E7 F0 91 66 B6 04 01 00 00 D9 FA 3E F8 08 C2 DC 15 [09:11:35]CommunicateWithHost err = 0 [09:11:35]CheckOFDResponse [09:11:35]1017 (14) - 77093643461234 [09:11:35]1041 (16) - 0000000000874899 [09:11:35]1040 (4) - 162436 [09:11:35]1012 (4) - 13.07.2024 03:13 [09:11:35]1206 (1) - 0 [09:11:35]OFD Sender: Remove packet 162436 [09:11:35]ProducePacketName [09:11:35]name=ofd_packets/00162436 [09:11:35]NVStorageDeleteData [09:11:35]Write to MH i2c: 01 00 00 B8 0B C3 [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 07 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: 01 07 00 B8 0B 00 00 00 00 00 D4 0C AA [09:11:35]RasterBufferAndPrint [09:11:35]line [09:11:35]line [09:11:35]line [09:11:35]line [09:11:35]line [09:11:35]written 0, free lines is 3293 [09:11:35]MH_Cut [09:11:35]Write to MH i2c: D1 01 00 BF 0B 01 9C [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: D1 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: D1 01 00 [09:11:35]MH_I2C_Read... [09:11:35]Read from MH i2c: D1 01 00 BF 0B 00 9B [09:11:35]Write to MH i2c: 01 00 00 C0 0B CB [09:11:35]Write i2c OK [09:11:35]MH_I2C_Read... [09:11:35]OFD Sender: No OFD packet to send [09:11:36]*** Cut start [09:11:36]*** Purtial cut [09:11:36]*** Stage 1: CUTSNS_PIN = 1 [09:11:36]Read from MH i2c: 01 [09:11:36]MH_I2C_Read... [09:11:36]*** Stop cut motor [09:11:36]*** Cut end [09:11:36]Read from MH i2c: 01 07 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: 01 07 00 C0 0B 00 00 00 00 00 FF 0F E0 [09:11:36]process_action close_receipt done [09:11:36]requested_data is exist [09:11:36]produce_requested_data [09:11:36]requested_item fm.sn is exist - process it [09:11:36]wFMCommunicate request_size=4 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 11 00 00 [09:11:36]Write to MH i2c: E2 08 00 C1 0B 80 11 00 00 00 00 00 00 46 [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 17 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 17 00 C1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A6 [09:11:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:11:36]wFMCommunicate OK [09:11:36]requested_item fd.num is exist - process it [09:11:36]SAM_PROTO_GetFieldsCounters [09:11:36]wFMCommunicate request_size=4 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 13 00 00 [09:11:36]Write to MH i2c: E2 08 00 C2 0B 80 13 00 00 00 00 00 00 49 [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 62 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 62 00 C2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 84 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [09:11:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 84 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:36]wFMCommunicate OK [09:11:36]SAM_PROTO_GetFieldsCounters done [09:11:36]requested_item shift.num is exist - process it [09:11:36]requested_item shift.opened is exist - process it [09:11:36]req_shift_opened [09:11:36]FM_GetShiftState [09:11:36]SAM_PROTO_GetShiftState [09:11:36]wFMCommunicate request_size=4 [09:11:36]MH_SAM_APDU [09:11:36]CAPDU: 80 13 01 00 [09:11:36]Write to MH i2c: E2 08 00 C3 0B 80 13 01 00 00 00 00 00 4B [09:11:36]Write i2c OK [09:11:36]MH_I2C_Read... [09:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:36]Read from MH i2c: E2 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 0E 00 [09:11:36]MH_I2C_Read... [09:11:36]Read from MH i2c: E2 0E 00 C3 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 45 [09:11:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:11:36]wFMCommunicate OK [09:11:36]SAM_PROTO_GetShiftState done [09:11:36]FM_GetShiftState done [09:11:36]req_shift_opened done [09:11:36]requested_item shift.open_date is exist - process it [09:11:36]req_shift_open_date [09:11:36]req_shift_open_date done [09:11:36]produce_requested_data done [09:11:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162436,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:11:36]process_action_free close_receipt [09:11:36]json_value_free [09:11:36]json_value_free done [09:11:36]process_json_proto returns [09:11:36]Send response to host [09:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162436,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:11:36]free response buf [09:11:36]execute_script done [09:11:36]execute_script returns [09:11:36]free content buf [09:11:36]Sock 8.Close socket [09:11:36]Sock 8.Thread stoped [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:21]accept exits with 9 [09:15:21]New connection [09:15:21]New thread 3066862948 created [09:15:21]Thread 3067006308 joined [09:15:21]Waiting for new connection... [09:15:21] Sock 9.Parse request [09:15:21]Sock 9.Check first char [09:15:21]Sock 9.First char is OK [09:15:21]request: POST /json_proto HTTP/1.0 [09:15:21]Method: POST [09:15:21]URL: /json_proto [09:15:21]Method is POST - this is cgi request [09:15:21]url: /json_proto [09:15:21]query_string will be loaded in cgi processing [09:15:21]execute_cgi json_proto POST (null) [09:15:21]execute_cgi path=json_proto method=POST [09:15:21]POST find Content-Length [09:15:21]Host: 172.17.39.67:8080 [09:15:21]Content-Length: 809 [09:15:21]Content-Type: application/json [09:15:21] [09:15:21]POST finish read [09:15:21]Found Content-Length = 809 [09:15:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 24.510, "sum" : 1779.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1779.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:21]execute_script... [09:15: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)1318968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 24.510, "sum" : 1779.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1779.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:21]POST & json_proto [09:15:21]process_json_proto [09:15:21]json parsed OK: [09:15:21]protocol is kg_v1.0 [09:15:21]action value=close_receipt [09:15:21]process_action close_receipt [09:15:21]cmd_close_receipt [09:15:21]MH_GetDate [09:15:21]Write to MH i2c: F0 00 00 C4 0B BE [09:15:21]Write i2c OK [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: F0 [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: F0 09 00 [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: F0 09 00 C4 0B 00 B7 45 92 66 FA E9 8E 66 92 [09:15:21]GetLastDocTimeStamp 1720861906 [09:15:21]current date 1720862135 [09:15:21]FM_GetShiftState [09:15:21]SAM_PROTO_GetShiftState [09:15:21]wFMCommunicate request_size=4 [09:15:21]MH_SAM_APDU [09:15:21]CAPDU: 80 13 01 00 [09:15:21]Write to MH i2c: E2 08 00 C5 0B 80 13 01 00 00 00 00 00 4D [09:15:21]Write i2c OK [09:15:21]MH_I2C_Read... [09:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:21]Read from MH i2c: E2 [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: E2 0E 00 [09:15:21]MH_I2C_Read... [09:15:21]Read from MH i2c: E2 0E 00 C5 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 47 [09:15:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:15:21]wFMCommunicate OK [09:15:21]SAM_PROTO_GetShiftState done [09:15:21]FM_GetShiftState done [09:15:21]opened in 1720828979 [09:15:21]opened+sec_in_day 1720915379 [09:15:21]quantity*price = 177942 [09:15:21]sum+1 = 177944 [09:15:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1779.43 НСП 1% : 15.75 НДС 12% : 188.97 Наличными: 0.00 Безнал.: 1779.43 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 105 13.07.2024 09:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162437 ФПД: 24660301103405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091535&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162437&fm=24660301103405&tin=02508201610067®Number=0000000000090858&sum=177943 [09:15:23]StoreToDocumentArchive [09:15:23]shift 462 fd 162437 [09:15:23]save to /storage/0462/doc_00162437 [09:15:23]save last doc name /storage/0462/doc_00162437 to /storage/kkm_last_doc_name [09:15:23]save OK [09:15:23]Clear old archive folders... [09:15:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:15:23]tlvbuf is 01950C90 [09:15:23]SAM_PROTO_ClearQueue [09:15:23]wFMCommunicate request_size=4 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 09 00 00 [09:15:23]Write to MH i2c: E2 08 00 D2 0B 80 09 00 00 00 00 00 00 4F [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 03 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 03 00 D2 0B 00 90 00 51 [09:15:23]RAPDU: 90 00 [09:15:23]wFMCommunicate OK [09:15:23]SAM_PROTO_ClearQueue done [09:15:23]KKMCreateOFDPacket [09:15:23]OFDProtocolAddRootSTLVToBuf [09:15:23]FM_MakeSignedData [09:15:23]FM_MakeSignedData [09:15:23]SAM_PROTO_SignData [09:15:23]wFMCommunicate request_size=4 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 0D 01 02 [09:15:23]Write to MH i2c: E2 08 00 D3 0B 80 0D 01 02 00 00 00 00 57 [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 03 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 03 00 D3 0B 00 90 00 52 [09:15:23]RAPDU: 90 00 [09:15:23]wFMCommunicate OK [09:15:23]wFMCommunicate request_size=255 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 5F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 17 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B7 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7A 02 00 35 04 06 00 [09:15:23]Write to MH i2c: E2 02 01 D4 0B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 5F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 17 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B7 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7A 02 00 35 04 06 00 00 00 27 [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 03 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 03 00 D4 0B 00 90 00 53 [09:15:23]RAPDU: 90 00 [09:15:23]wFMCommunicate OK [09:15:23]wFMCommunicate request_size=11 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 0D 02 02 06 16 6D AC 7C C1 2D [09:15:23]Write to MH i2c: E2 0E 00 D5 0B 80 0D 02 02 06 00 16 6D AC 7C C1 2D 00 00 FF [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 03 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 03 00 D5 0B 00 90 00 54 [09:15:23]RAPDU: 90 00 [09:15:23]wFMCommunicate OK [09:15:23]wFMCommunicate request_size=4 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 0D 03 02 [09:15:23]Write to MH i2c: E2 08 00 D6 0B 80 0D 03 02 00 00 00 00 5C [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 0B 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 0B 00 D6 0B 00 DC A8 45 13 DD BC A8 02 90 00 7C [09:15:23]RAPDU: DC A8 45 13 DD BC A8 02 90 00 [09:15:23]wFMCommunicate OK [09:15:23]SAM_PROTO_SignData done [09:15:23]FM_MakeSignedData done [09:15:23]CreateOFDProtocolMessage [09:15:23]wFMCommunicate request_size=4 [09:15:23]MH_SAM_APDU [09:15:23]CAPDU: 80 11 00 00 [09:15:23]Write to MH i2c: E2 08 00 D7 0B 80 11 00 00 00 00 00 00 5C [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:23]Read from MH i2c: E2 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 17 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: E2 17 00 D7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BC [09:15:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:15:23]wFMCommunicate OK [09:15:23]CreateOFDProtocolMessage done [09:15:23]OFDSenderStorePacket 162437 [09:15:23]StoreOFDPacket docnum=162437 [09:15:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F4 35 08 01 24 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 5F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 17 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B7 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7A 02 00 35 04 06 00 16 6D AC 7C C1 2D DC A8 45 13 DD BC A8 02 [09:15:23]CheckFolder [09:15:23]dirname=/storage/ofd_packets [09:15:23]CheckFolder done [09:15:23]ProducePacketName [09:15:23]name=ofd_packets/00162437 [09:15:23]NVStorageSaveData ofd_packets/00162437 [09:15:23]File name is /storage/ofd_packets/00162437 [09:15:23]Write 302 bytes [09:15:23]NVStorageSaveData done [09:15:23]OFDSenderStorePacket done [09:15:23]KKMCreateOFDPacket done [09:15:23]NVStorageSaveData kkm_last_timestamp [09:15:23]File name is /storage/kkm_last_timestamp [09:15:23]Write 4 bytes [09:15:23]NVStorageSaveData done [09:15:23]ExternCall_PrintAddStr [09:15:23]wPrintStart [09:15:23]Write to MH i2c: 01 00 00 D8 0B E3 [09:15:23]Write i2c OK [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: 01 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: 01 07 00 [09:15:23]MH_I2C_Read... [09:15:23]Read from MH i2c: 01 07 00 D8 0B 00 00 00 00 00 FF 0F F8 [09:15:23]RasterBufferAndPrint [09:15:23]line Счет N : (1)1318968 [09:15:23]line ИНН: 02508201610067 [09:15:23]line Контрольно-Кассовый Чек [09:15:23]line ПРОДАЖА [09:15:23]line ТРК (МРК, ГНК) : 41 [09:15:23]line Товар: 2710194210 [09:15:23]line ДТ(л)-К-5 [09:15:23]line 24.510 * 72.60 [09:15:23]line = 1779.43 [09:15:23]line НДС 12% НСП 1% [09:15:23]line > о реализуемом товаре [09:15:23]line ИТОГО: 1779.43 [09:15:23]line НСП 1% : 15.75 [09:15:23]line НДС 12% : 188.97 [09:15:23]line Наличными: 0.00 [09:15:23]line Безнал.: 1779.43 [09:15:23]line Место: АЗС № 140 "Партнер Нефть" [09:15:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:15:23]line СНО: Общий режим [09:15:23]line Чек 105 13.07.2024 09:15 [09:15:23]line Смена: 462 ФФД: 1.0 [09:15:23]line ЗНМ: 0300000129 [09:15:23]line РНМ: 0000000000090858 [09:15:23]line Версия ККМ: 001 [09:15:23]line Платежная система: O! деньги [09:15:23]line ФМ: 0000000000874899 [09:15:23]line ФД: 162437 [09:15:23]line ФПД: 24660301103405 [09:15:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091535&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162437&fm=24660301103405&tin=02508201610067®Number=0000000000090858&sum=177943 [09:15:23]written 0, free lines is 4095 [09:15:23]OFD Sender: Processing packet 162437 [packets to send 105, broken 104] [09:15:23]ProducePacketName [09:15:23]name=ofd_packets/00162437 [09:15:23]OFD Sender: To server: pG, [09:15:23]CommunicateWithHost lk.salyk.kg:30040 [09:15:23]ConnectInit lk.salyk.kg [09:15:24]Connected sock=10 [09:15:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F4 35 08 01 24 06 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 BE 5F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 17 B7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 17 B7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 49 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 17 B7 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 B7 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7A 02 00 35 04 06 00 16 6D AC 7C C1 2D DC A8 45 13 DD BC A8 02 [09:15:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 22 11 47 00 5B D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7A 02 00 F4 03 04 00 CC F1 91 66 B6 04 01 00 00 15 79 A0 5A 41 EF 59 9D [09:15:24]CommunicateWithHost err = 0 [09:15:24]CheckOFDResponse [09:15:24]1017 (14) - 77093643461234 [09:15:24]1041 (16) - 0000000000874899 [09:15:24]1040 (4) - 162437 [09:15:24]1012 (4) - 13.07.2024 03:17 [09:15:24]1206 (1) - 0 [09:15:24]OFD Sender: Remove packet 162437 [09:15:24]ProducePacketName [09:15:24]name=ofd_packets/00162437 [09:15:24]NVStorageDeleteData [09:15:24]Write to MH i2c: 01 00 00 02 0C 0E [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: 01 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: 01 07 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: 01 07 00 02 0C 00 00 00 00 00 F1 0C 12 [09:15:24]RasterBufferAndPrint [09:15:24]line [09:15:24]line [09:15:24]line [09:15:24]line [09:15:24]line [09:15:24]written 0, free lines is 3318 [09:15:24]MH_Cut [09:15:24]Write to MH i2c: D1 01 00 09 0C 01 E7 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: D1 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: D1 01 00 [09:15:24]MH_I2C_Read... [09:15:24]Read from MH i2c: D1 01 00 09 0C 00 E6 [09:15:24]Write to MH i2c: 01 00 00 0A 0C 16 [09:15:24]Write i2c OK [09:15:24]MH_I2C_Read... [09:15:24]OFD Sender: No OFD packet to send [09:15:25]*** Cut start [09:15:25]*** Purtial cut [09:15:25]*** CUTSNS_PIN = 0 [09:15:25]*** Stage 1: CUTSNS_PIN = 1 [09:15:27]Read from MH i2c: 01 [09:15:27]MH_I2C_Read... [09:15:27]*** Stop cut motor [09:15:27]*** Cut end [09:15:27]Read from MH i2c: 01 07 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: 01 07 00 0A 0C 00 00 00 00 00 FF 0F 2B [09:15:27]process_action close_receipt done [09:15:27]requested_data is exist [09:15:27]produce_requested_data [09:15:27]requested_item fm.sn is exist - process it [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 11 00 00 [09:15:27]Write to MH i2c: E2 08 00 0B 0C 80 11 00 00 00 00 00 00 91 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:27]Read from MH i2c: E2 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 17 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 17 00 0B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F1 [09:15:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:15:27]wFMCommunicate OK [09:15:27]requested_item fd.num is exist - process it [09:15:27]SAM_PROTO_GetFieldsCounters [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 13 00 00 [09:15:27]Write to MH i2c: E2 08 00 0C 0C 80 13 00 00 00 00 00 00 94 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:27]Read from MH i2c: E2 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 62 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 62 00 0C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 85 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [09:15:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 85 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:27]wFMCommunicate OK [09:15:27]SAM_PROTO_GetFieldsCounters done [09:15:27]requested_item shift.num is exist - process it [09:15:27]requested_item shift.opened is exist - process it [09:15:27]req_shift_opened [09:15:27]FM_GetShiftState [09:15:27]SAM_PROTO_GetShiftState [09:15:27]wFMCommunicate request_size=4 [09:15:27]MH_SAM_APDU [09:15:27]CAPDU: 80 13 01 00 [09:15:27]Write to MH i2c: E2 08 00 0D 0C 80 13 01 00 00 00 00 00 96 [09:15:27]Write i2c OK [09:15:27]MH_I2C_Read... [09:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:27]Read from MH i2c: E2 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 0E 00 [09:15:27]MH_I2C_Read... [09:15:27]Read from MH i2c: E2 0E 00 0D 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 90 [09:15:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:15:27]wFMCommunicate OK [09:15:27]SAM_PROTO_GetShiftState done [09:15:27]FM_GetShiftState done [09:15:27]req_shift_opened done [09:15:27]requested_item shift.open_date is exist - process it [09:15:27]req_shift_open_date [09:15:27]req_shift_open_date done [09:15:27]produce_requested_data done [09:15:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162437,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:15:27]process_action_free close_receipt [09:15:27]json_value_free [09:15:27]json_value_free done [09:15:27]process_json_proto returns [09:15:27]Send response to host [09:15:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162437,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:15:27]free response buf [09:15:27]execute_script done [09:15:27]execute_script returns [09:15:27]free content buf [09:15:27]Sock 9.Close socket [09:15:27]Sock 9.Thread stoped [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:43]accept exits with 8 [09:15:43]New connection [09:15:43]New thread 3067006308 created [09:15:43]Thread 3066862948 joined [09:15:43]Waiting for new connection... [09:15:43] Sock 8.Parse request [09:15:43]Sock 8.Check first char [09:15:43]Sock 8.First char is OK [09:15:43]request: POST /json_proto HTTP/1.0 [09:15:43]Method: POST [09:15:43]URL: /json_proto [09:15:43]Method is POST - this is cgi request [09:15:43]url: /json_proto [09:15:43]query_string will be loaded in cgi processing [09:15:43]execute_cgi json_proto POST (null) [09:15:43]execute_cgi path=json_proto method=POST [09:15:43]POST find Content-Length [09:15:43]Host: 172.17.39.67:8080 [09:15:43]Content-Length: 688 [09:15:43]Content-Type: application/json [09:15:43] [09:15:43]POST finish read [09:15:43]Found Content-Length = 688 [09:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:43]execute_script... [09:15: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)1318969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:43]POST & json_proto [09:15:43]process_json_proto [09:15:43]json parsed OK: [09:15:43]protocol is kg_v1.0 [09:15:43]action value=close_receipt [09:15:43]process_action close_receipt [09:15:43]cmd_close_receipt [09:15:43]MH_GetDate [09:15:43]Write to MH i2c: F0 00 00 0E 0C 09 [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: F0 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: F0 09 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: F0 09 00 0E 0C 00 CC 45 92 66 FA E9 8E 66 F2 [09:15:43]GetLastDocTimeStamp 1720862135 [09:15:43]current date 1720862156 [09:15:43]FM_GetShiftState [09:15:43]SAM_PROTO_GetShiftState [09:15:43]wFMCommunicate request_size=4 [09:15:43]MH_SAM_APDU [09:15:43]CAPDU: 80 13 01 00 [09:15:43]Write to MH i2c: E2 08 00 0F 0C 80 13 01 00 00 00 00 00 98 [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:43]Read from MH i2c: E2 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 0E 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 0E 00 0F 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 92 [09:15:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:15:43]wFMCommunicate OK [09:15:43]SAM_PROTO_GetShiftState done [09:15:43]FM_GetShiftState done [09:15:43]opened in 1720828979 [09:15:43]opened+sec_in_day 1720915379 [09:15:43]quantity*price = 250034 [09:15:43]sum+1 = 250035 [09:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 106 13.07.2024 09:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162438 ФПД: 93440256669034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091556&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162438&fm=93440256669034&tin=02508201610067®Number=0000000000090858&sum=250000 [09:15:44]StoreToDocumentArchive [09:15:44]shift 462 fd 162438 [09:15:44]save to /storage/0462/doc_00162438 [09:15:44]save last doc name /storage/0462/doc_00162438 to /storage/kkm_last_doc_name [09:15:44]save OK [09:15:44]Clear old archive folders... [09:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:15:44]tlvbuf is 017472C0 [09:15:44]SAM_PROTO_ClearQueue [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 09 00 00 [09:15:44]Write to MH i2c: E2 08 00 1C 0C 80 09 00 00 00 00 00 00 9A [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 1C 0C 00 90 00 9C [09:15:44]RAPDU: 90 00 [09:15:44]wFMCommunicate OK [09:15:44]SAM_PROTO_ClearQueue done [09:15:44]KKMCreateOFDPacket [09:15:44]OFDProtocolAddRootSTLVToBuf [09:15:44]FM_MakeSignedData [09:15:44]FM_MakeSignedData [09:15:44]SAM_PROTO_SignData [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 0D 01 02 [09:15:44]Write to MH i2c: E2 08 00 1D 0C 80 0D 01 02 00 00 00 00 A2 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 1D 0C 00 90 00 9D [09:15:44]RAPDU: 90 00 [09:15:44]wFMCommunicate OK [09:15:44]wFMCommunicate request_size=255 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 CC 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7A 02 00 35 04 06 00 [09:15:44]Write to MH i2c: E2 02 01 1E 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 CC 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7A 02 00 35 04 06 00 00 00 DA [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]OFD Sender: No OFD packet to send [09:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 1E 0C 00 90 00 9E [09:15:44]RAPDU: 90 00 [09:15:44]wFMCommunicate OK [09:15:44]wFMCommunicate request_size=11 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 0D 02 02 06 54 FB C1 4E 75 6A [09:15:44]Write to MH i2c: E2 0E 00 1F 0C 80 0D 02 02 06 00 54 FB C1 4E 75 6A 00 00 EE [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 03 00 1F 0C 00 90 00 9F [09:15:44]RAPDU: 90 00 [09:15:44]wFMCommunicate OK [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 0D 03 02 [09:15:44]Write to MH i2c: E2 08 00 20 0C 80 0D 03 02 00 00 00 00 A7 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 0B 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 0B 00 20 0C 00 A6 49 17 7D 3C 00 7C 05 90 00 E8 [09:15:44]RAPDU: A6 49 17 7D 3C 00 7C 05 90 00 [09:15:44]wFMCommunicate OK [09:15:44]SAM_PROTO_SignData done [09:15:44]FM_MakeSignedData done [09:15:44]CreateOFDProtocolMessage [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 11 00 00 [09:15:44]Write to MH i2c: E2 08 00 21 0C 80 11 00 00 00 00 00 00 A7 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:45]Read from MH i2c: E2 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 17 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 17 00 21 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 07 [09:15:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:15:45]wFMCommunicate OK [09:15:45]CreateOFDProtocolMessage done [09:15:45]OFDSenderStorePacket 162438 [09:15:45]StoreOFDPacket docnum=162438 [09:15:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 37 ED 08 01 DA B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 CC 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7A 02 00 35 04 06 00 54 FB C1 4E 75 6A A6 49 17 7D 3C 00 7C 05 [09:15:45]CheckFolder [09:15:45]dirname=/storage/ofd_packets [09:15:45]CheckFolder done [09:15:45]ProducePacketName [09:15:45]name=ofd_packets/00162438 [09:15:45]NVStorageSaveData ofd_packets/00162438 [09:15:45]File name is /storage/ofd_packets/00162438 [09:15:45]Write 302 bytes [09:15:45]NVStorageSaveData done [09:15:45]OFDSenderStorePacket done [09:15:45]KKMCreateOFDPacket done [09:15:45]NVStorageSaveData kkm_last_timestamp [09:15:45]File name is /storage/kkm_last_timestamp [09:15:45]Write 4 bytes [09:15:45]NVStorageSaveData done [09:15:45]ExternCall_PrintAddStr [09:15:45]wPrintStart [09:15:45]Write to MH i2c: 01 00 00 22 0C 2E [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 07 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 07 00 22 0C 00 00 00 00 00 FF 0F 43 [09:15:45]RasterBufferAndPrint [09:15:45]line Счет N : (1)1318969 [09:15:45]line ИНН: 02508201610067 [09:15:45]line Контрольно-Кассовый Чек [09:15:45]line ПРОДАЖА [09:15:45]line ТРК (МРК, ГНК) : 61 [09:15:45]line Товар: 2710194210 [09:15:45]line ДТ(л)-К-5 [09:15:45]line 34.440 * 72.60 [09:15:45]line = 2500.34 [09:15:45]line НДС 12% НСП 1% [09:15:45]line > о реализуемом товаре [09:15:45]line ОКРУГЛЕНИЕ: -0.34 [09:15:45]line ИТОГО: 2500.00 [09:15:45]line Внесено: 2500.00 [09:15:45]line СДАЧА: 0.00 [09:15:45]line НСП 1% : 22.13 [09:15:45]line НДС 12% : 265.52 [09:15:45]line Наличными: 2500.00 [09:15:45]line Безнал.: 0.00 [09:15:45]line Место: АЗС № 140 "Партнер Нефть" [09:15:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:15:45]line СНО: Общий режим [09:15:45]line Чек 106 13.07.2024 09:15 [09:15:45]line Смена: 462 ФФД: 1.0 [09:15:45]line ЗНМ: 0300000129 [09:15:45]line РНМ: 0000000000090858 [09:15:45]line Версия ККМ: 001 [09:15:45]line ФМ: 0000000000874899 [09:15:45]line ФД: 162438 [09:15:45]line ФПД: 93440256669034 [09:15:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091556&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162438&fm=93440256669034&tin=02508201610067®Number=0000000000090858&sum=250000 [09:15:45]OFD Sender: Processing packet 162438 [packets to send 105, broken 104] [09:15:45]ProducePacketName [09:15:45]name=ofd_packets/00162438 [09:15:45]OFD Sender: To server: pG, [09:15:45]CommunicateWithHost lk.salyk.kg:30040 [09:15:45]ConnectInit lk.salyk.kg [09:15:45]written 0, free lines is 4095 [09:15:45]Connected sock=11 [09:15:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 37 ED 08 01 DA B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 CC 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7A 02 00 35 04 06 00 54 FB C1 4E 75 6A A6 49 17 7D 3C 00 7C 05 [09:15:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6F 78 47 00 62 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7A 02 00 F4 03 04 00 E1 F1 91 66 B6 04 01 00 00 E9 C3 A4 DA 7F F9 C0 92 [09:15:45]CommunicateWithHost err = 0 [09:15:45]CheckOFDResponse [09:15:45]1017 (14) - 77093643461234 [09:15:45]1041 (16) - 0000000000874899 [09:15:45]1040 (4) - 162438 [09:15:45]1012 (4) - 13.07.2024 03:17 [09:15:45]1206 (1) - 0 [09:15:45]OFD Sender: Remove packet 162438 [09:15:45]ProducePacketName [09:15:45]name=ofd_packets/00162438 [09:15:45]NVStorageDeleteData [09:15:45]Write to MH i2c: 01 00 00 4D 0C 59 [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 07 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: 01 07 00 4D 0C 00 00 00 00 00 E7 0C 53 [09:15:45]RasterBufferAndPrint [09:15:45]line [09:15:45]line [09:15:45]line [09:15:45]line [09:15:45]line [09:15:45]written 0, free lines is 3309 [09:15:45]MH_Cut [09:15:45]Write to MH i2c: D1 01 00 54 0C 01 32 [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: D1 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: D1 01 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: D1 01 00 54 0C 00 31 [09:15:45]Write to MH i2c: 01 00 00 55 0C 61 [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:46]OFD Sender: No OFD packet to send [09:15:46]*** Cut start [09:15:46]*** Purtial cut [09:15:46]*** Stage 1: CUTSNS_PIN = 1 [09:15:46]Read from MH i2c: 01 [09:15:46]MH_I2C_Read... [09:15:46]*** Stop cut motor [09:15:46]*** Cut end [09:15:46]Read from MH i2c: 01 07 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: 01 07 00 55 0C 00 00 00 00 00 FF 0F 76 [09:15:46]process_action close_receipt done [09:15:46]requested_data is exist [09:15:46]produce_requested_data [09:15:46]requested_item fm.sn is exist - process it [09:15:46]wFMCommunicate request_size=4 [09:15:46]MH_SAM_APDU [09:15:46]CAPDU: 80 11 00 00 [09:15:46]Write to MH i2c: E2 08 00 56 0C 80 11 00 00 00 00 00 00 DC [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:46]Read from MH i2c: E2 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 17 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 17 00 56 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3C [09:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:15:46]wFMCommunicate OK [09:15:46]requested_item fd.num is exist - process it [09:15:46]SAM_PROTO_GetFieldsCounters [09:15:46]wFMCommunicate request_size=4 [09:15:46]MH_SAM_APDU [09:15:46]CAPDU: 80 13 00 00 [09:15:46]Write to MH i2c: E2 08 00 57 0C 80 13 00 00 00 00 00 00 DF [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 62 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 62 00 57 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 86 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [09:15:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 86 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:47]wFMCommunicate OK [09:15:47]SAM_PROTO_GetFieldsCounters done [09:15:47]requested_item shift.num is exist - process it [09:15:47]requested_item shift.opened is exist - process it [09:15:47]req_shift_opened [09:15:47]FM_GetShiftState [09:15:47]SAM_PROTO_GetShiftState [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 13 01 00 [09:15:47]Write to MH i2c: E2 08 00 58 0C 80 13 01 00 00 00 00 00 E1 [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 0E 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 0E 00 58 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DB [09:15:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:15:47]wFMCommunicate OK [09:15:47]SAM_PROTO_GetShiftState done [09:15:47]FM_GetShiftState done [09:15:47]req_shift_opened done [09:15:47]requested_item shift.open_date is exist - process it [09:15:47]req_shift_open_date [09:15:47]req_shift_open_date done [09:15:47]produce_requested_data done [09:15:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162438,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:15:47]process_action_free close_receipt [09:15:47]json_value_free [09:15:47]json_value_free done [09:15:47]process_json_proto returns [09:15:47]Send response to host [09:15:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162438,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:15:47]free response buf [09:15:47]execute_script done [09:15:47]execute_script returns [09:15:47]free content buf [09:15:47]Sock 8.Close socket [09:15:47]Sock 8.Thread stoped [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [09:16:28]accept exits with 9 [09:16:28]New connection [09:16:28]New thread 3066862948 created [09:16:28]Thread 3067006308 joined [09:16:28]Waiting for new connection... [09:16:28] Sock 9.Parse request [09:16:28]Sock 9.Check first char [09:16:28]Sock 9.First char is OK [09:16:28]request: POST /json_proto HTTP/1.0 [09:16:28]Method: POST [09:16:28]URL: /json_proto [09:16:28]Method is POST - this is cgi request [09:16:28]url: /json_proto [09:16:28]query_string will be loaded in cgi processing [09:16:28]execute_cgi json_proto POST (null) [09:16:28]execute_cgi path=json_proto method=POST [09:16:28]POST find Content-Length [09:16:28]Host: 172.17.39.67:8080 [09:16:28]Content-Length: 794 [09:16:28]Content-Type: application/json [09:16:28] [09:16:28]POST finish read [09:16:28]Found Content-Length = 794 [09:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.420, "sum" : 499.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 499.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:28]execute_script... [09:16: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)1318970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.420, "sum" : 499.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 499.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:28]POST & json_proto [09:16:28]process_json_proto [09:16:28]json parsed OK: [09:16:28]protocol is kg_v1.0 [09:16:28]action value=close_receipt [09:16:28]process_action close_receipt [09:16:28]cmd_close_receipt [09:16:28]MH_GetDate [09:16:28]Write to MH i2c: F0 00 00 59 0C 54 [09:16:28]Write i2c OK [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: F0 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: F0 09 00 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: F0 09 00 59 0C 00 FA 45 92 66 FA E9 8E 66 6B [09:16:28]GetLastDocTimeStamp 1720862156 [09:16:28]current date 1720862202 [09:16:28]FM_GetShiftState [09:16:28]SAM_PROTO_GetShiftState [09:16:28]wFMCommunicate request_size=4 [09:16:28]MH_SAM_APDU [09:16:28]CAPDU: 80 13 01 00 [09:16:28]Write to MH i2c: E2 08 00 5A 0C 80 13 01 00 00 00 00 00 E3 [09:16:28]Write i2c OK [09:16:28]MH_I2C_Read... [09:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:28]Read from MH i2c: E2 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 0E 00 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 0E 00 5A 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DD [09:16:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:16:28]wFMCommunicate OK [09:16:28]SAM_PROTO_GetShiftState done [09:16:28]FM_GetShiftState done [09:16:28]opened in 1720828979 [09:16:28]opened+sec_in_day 1720915379 [09:16:28]quantity*price = 49936 [09:16:28]sum+1 = 49938 [09:16:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 499.37 НСП 1% : 4.42 НДС 12% : 53.03 Наличными: 0.00 Безнал.: 499.37 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 107 13.07.2024 09:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162439 ФПД: 22523810943819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091642&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162439&fm=22523810943819&tin=02508201610067®Number=0000000000090858&sum=49937 [09:16:30]StoreToDocumentArchive [09:16:30]shift 462 fd 162439 [09:16:30]save to /storage/0462/doc_00162439 [09:16:30]save last doc name /storage/0462/doc_00162439 to /storage/kkm_last_doc_name [09:16:30]save OK [09:16:30]Clear old archive folders... [09:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:16:30]tlvbuf is 01C68710 [09:16:30]SAM_PROTO_ClearQueue [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 09 00 00 [09:16:30]Write to MH i2c: E2 08 00 67 0C 80 09 00 00 00 00 00 00 E5 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 03 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 03 00 67 0C 00 90 00 E7 [09:16:30]RAPDU: 90 00 [09:16:30]wFMCommunicate OK [09:16:30]SAM_PROTO_ClearQueue done [09:16:30]KKMCreateOFDPacket [09:16:30]OFDProtocolAddRootSTLVToBuf [09:16:30]FM_MakeSignedData [09:16:30]FM_MakeSignedData [09:16:30]SAM_PROTO_SignData [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 0D 01 02 [09:16:30]Write to MH i2c: E2 08 00 68 0C 80 0D 01 02 00 00 00 00 ED [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 03 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 03 00 68 0C 00 90 00 E8 [09:16:30]RAPDU: 90 00 [09:16:30]wFMCommunicate OK [09:16:30]wFMCommunicate request_size=255 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 FA 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7A 02 00 35 04 06 00 [09:16:30]Write to MH i2c: E2 02 01 69 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 FA 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7A 02 00 35 04 06 00 00 00 25 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 03 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 03 00 69 0C 00 90 00 E9 [09:16:30]RAPDU: 90 00 [09:16:30]wFMCommunicate OK [09:16:30]wFMCommunicate request_size=11 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 0D 02 02 06 14 7C 3B C0 13 4B [09:16:30]Write to MH i2c: E2 0E 00 6A 0C 80 0D 02 02 06 00 14 7C 3B C0 13 4B 00 00 E5 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 03 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 03 00 6A 0C 00 90 00 EA [09:16:30]RAPDU: 90 00 [09:16:30]wFMCommunicate OK [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 0D 03 02 [09:16:30]Write to MH i2c: E2 08 00 6B 0C 80 0D 03 02 00 00 00 00 F2 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 0B 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 0B 00 6B 0C 00 13 F6 B8 D2 91 4A FB C8 90 00 24 [09:16:30]RAPDU: 13 F6 B8 D2 91 4A FB C8 90 00 [09:16:30]wFMCommunicate OK [09:16:30]SAM_PROTO_SignData done [09:16:30]FM_MakeSignedData done [09:16:30]CreateOFDProtocolMessage [09:16:30]wFMCommunicate request_size=4 [09:16:30]MH_SAM_APDU [09:16:30]CAPDU: 80 11 00 00 [09:16:30]Write to MH i2c: E2 08 00 6C 0C 80 11 00 00 00 00 00 00 F2 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:30]Read from MH i2c: E2 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 17 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: E2 17 00 6C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 52 [09:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:16:30]wFMCommunicate OK [09:16:30]CreateOFDProtocolMessage done [09:16:30]OFDSenderStorePacket 162439 [09:16:30]StoreOFDPacket docnum=162439 [09:16:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 67 36 08 01 85 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 FA 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7A 02 00 35 04 06 00 14 7C 3B C0 13 4B 13 F6 B8 D2 91 4A FB C8 [09:16:30]CheckFolder [09:16:30]dirname=/storage/ofd_packets [09:16:30]CheckFolder done [09:16:30]ProducePacketName [09:16:30]name=ofd_packets/00162439 [09:16:30]NVStorageSaveData ofd_packets/00162439 [09:16:30]File name is /storage/ofd_packets/00162439 [09:16:30]Write 302 bytes [09:16:30]NVStorageSaveData done [09:16:30]OFDSenderStorePacket done [09:16:30]KKMCreateOFDPacket done [09:16:30]NVStorageSaveData kkm_last_timestamp [09:16:30]File name is /storage/kkm_last_timestamp [09:16:30]Write 4 bytes [09:16:30]NVStorageSaveData done [09:16:30]ExternCall_PrintAddStr [09:16:30]wPrintStart [09:16:30]Write to MH i2c: 01 00 00 6D 0C 79 [09:16:30]Write i2c OK [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: 01 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: 01 07 00 [09:16:30]MH_I2C_Read... [09:16:30]Read from MH i2c: 01 07 00 6D 0C 00 00 00 00 00 FF 0F 8E [09:16:30]RasterBufferAndPrint [09:16:30]line Счет N : (1)1318970 [09:16:30]line ИНН: 02508201610067 [09:16:30]line Контрольно-Кассовый Чек [09:16:30]line ПРОДАЖА [09:16:30]line ТРК (МРК, ГНК) : 52 [09:16:30]line Товар: 2710124130 [09:16:30]line Super-92-К-5 [09:16:30]line 7.420 * 67.30 [09:16:30]line = 499.37 [09:16:30]line НДС 12% НСП 1% [09:16:30]line > о реализуемом товаре [09:16:30]line ИТОГО: 499.37 [09:16:30]line НСП 1% : 4.42 [09:16:30]line НДС 12% : 53.03 [09:16:30]line Наличными: 0.00 [09:16:30]line Безнал.: 499.37 [09:16:30]line Место: АЗС № 140 "Партнер Нефть" [09:16:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:16:30]line СНО: Общий режим [09:16:30]line Чек 107 13.07.2024 09:16 [09:16:30]line Смена: 462 ФФД: 1.0 [09:16:30]line ЗНМ: 0300000129 [09:16:30]line РНМ: 0000000000090858 [09:16:30]line Версия ККМ: 001 [09:16:30]line Платежная система: O! деньги [09:16:30]line ФМ: 0000000000874899 [09:16:30]line ФД: 162439 [09:16:30]line ФПД: 22523810943819 [09:16:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091642&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162439&fm=22523810943819&tin=02508201610067®Number=0000000000090858&sum=49937 [09:16:30]written 0, free lines is 4095 [09:16:30]OFD Sender: Processing packet 162439 [packets to send 105, broken 104] [09:16:30]ProducePacketName [09:16:30]name=ofd_packets/00162439 [09:16:30]OFD Sender: To server: pG, [09:16:30]CommunicateWithHost lk.salyk.kg:30040 [09:16:30]ConnectInit lk.salyk.kg [09:16:31]Connected sock=10 [09:16:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 67 36 08 01 85 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 1C 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 11 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 FA 45 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7A 02 00 35 04 06 00 14 7C 3B C0 13 4B 13 F6 B8 D2 91 4A FB C8 [09:16:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FB 89 47 00 BC B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7A 02 00 F4 03 04 00 0F F2 91 66 B6 04 01 00 00 43 9B 9E 82 E1 8B CC 77 [09:16:31]CommunicateWithHost err = 0 [09:16:31]CheckOFDResponse [09:16:31]1017 (14) - 77093643461234 [09:16:31]1041 (16) - 0000000000874899 [09:16:31]1040 (4) - 162439 [09:16:31]1012 (4) - 13.07.2024 03:18 [09:16:31]1206 (1) - 0 [09:16:31]OFD Sender: Remove packet 162439 [09:16:31]ProducePacketName [09:16:31]name=ofd_packets/00162439 [09:16:31]NVStorageDeleteData [09:16:31]Write to MH i2c: 01 00 00 97 0C A3 [09:16:31]Write i2c OK [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 07 00 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: 01 07 00 97 0C 00 00 00 00 00 F9 0C AF [09:16:31]RasterBufferAndPrint [09:16:31]line [09:16:31]line [09:16:31]line [09:16:31]line [09:16:31]line [09:16:31]written 0, free lines is 3330 [09:16:31]MH_Cut [09:16:31]Write to MH i2c: D1 01 00 9E 0C 01 7C [09:16:31]Write i2c OK [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: D1 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: D1 01 00 [09:16:31]MH_I2C_Read... [09:16:31]Read from MH i2c: D1 01 00 9E 0C 00 7B [09:16:31]Write to MH i2c: 01 00 00 9F 0C AB [09:16:31]Write i2c OK [09:16:31]MH_I2C_Read... [09:16:31]OFD Sender: No OFD packet to send [09:16:32]*** Cut start [09:16:32]*** Purtial cut [09:16:32]*** CUTSNS_PIN = 0 [09:16:32]*** Stage 1: CUTSNS_PIN = 1 [09:16:34]Read from MH i2c: 01 [09:16:34]MH_I2C_Read... [09:16:34]*** Stop cut motor [09:16:34]*** Cut end [09:16:34]Read from MH i2c: 01 07 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: 01 07 00 9F 0C 00 00 00 00 00 FF 0F C0 [09:16:34]process_action close_receipt done [09:16:34]requested_data is exist [09:16:34]produce_requested_data [09:16:34]requested_item fm.sn is exist - process it [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 11 00 00 [09:16:34]Write to MH i2c: E2 08 00 A0 0C 80 11 00 00 00 00 00 00 26 [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 17 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 17 00 A0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 86 [09:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:16:34]wFMCommunicate OK [09:16:34]requested_item fd.num is exist - process it [09:16:34]SAM_PROTO_GetFieldsCounters [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 13 00 00 [09:16:34]Write to MH i2c: E2 08 00 A1 0C 80 13 00 00 00 00 00 00 29 [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 62 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 62 00 A1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 87 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [09:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 87 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:34]wFMCommunicate OK [09:16:34]SAM_PROTO_GetFieldsCounters done [09:16:34]requested_item shift.num is exist - process it [09:16:34]requested_item shift.opened is exist - process it [09:16:34]req_shift_opened [09:16:34]FM_GetShiftState [09:16:34]SAM_PROTO_GetShiftState [09:16:34]wFMCommunicate request_size=4 [09:16:34]MH_SAM_APDU [09:16:34]CAPDU: 80 13 01 00 [09:16:34]Write to MH i2c: E2 08 00 A2 0C 80 13 01 00 00 00 00 00 2B [09:16:34]Write i2c OK [09:16:34]MH_I2C_Read... [09:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:34]Read from MH i2c: E2 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 0E 00 [09:16:34]MH_I2C_Read... [09:16:34]Read from MH i2c: E2 0E 00 A2 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 25 [09:16:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:16:34]wFMCommunicate OK [09:16:34]SAM_PROTO_GetShiftState done [09:16:34]FM_GetShiftState done [09:16:34]req_shift_opened done [09:16:34]requested_item shift.open_date is exist - process it [09:16:34]req_shift_open_date [09:16:34]req_shift_open_date done [09:16:34]produce_requested_data done [09:16:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162439,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:16:34]process_action_free close_receipt [09:16:34]json_value_free [09:16:34]json_value_free done [09:16:34]process_json_proto returns [09:16:34]Send response to host [09:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162439,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:16:34]free response buf [09:16:34]execute_script done [09:16:34]execute_script returns [09:16:34]free content buf [09:16:34]Sock 9.Close socket [09:16:34]Sock 9.Thread stoped [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]OFD Sender: No OFD packet to send [09:17:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]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:18:58]accept exits with 8 [09:18:58]New connection [09:18:58]New thread 3067006308 created [09:18:58]Thread 3066862948 joined [09:18:58]Waiting for new connection... [09:18:58] Sock 8.Parse request [09:18:58]Sock 8.Check first char [09:18:58]Sock 8.First char is OK [09:18:58]request: POST /json_proto HTTP/1.0 [09:18:58]Method: POST [09:18:58]URL: /json_proto [09:18:58]Method is POST - this is cgi request [09:18:58]url: /json_proto [09:18:58]query_string will be loaded in cgi processing [09:18:58]execute_cgi json_proto POST (null) [09:18:58]execute_cgi path=json_proto method=POST [09:18:58]POST find Content-Length [09:18:58]Host: 172.17.39.67:8080 [09:18:58]Content-Length: 683 [09:18:58]Content-Type: application/json [09:18:58] [09:18:58]POST finish read [09:18:58]Found Content-Length = 683 [09:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:58]execute_script... [09:18:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:18:58]POST & json_proto [09:18:58]process_json_proto [09:18:58]json parsed OK: [09:18:58]protocol is kg_v1.0 [09:18:58]action value=close_receipt [09:18:58]process_action close_receipt [09:18:58]cmd_close_receipt [09:18:58]MH_GetDate [09:18:58]Write to MH i2c: F0 00 00 A3 0C 9E [09:18:58]Write i2c OK [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: F0 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: F0 09 00 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: F0 09 00 A3 0C 00 90 46 92 66 FA E9 8E 66 4C [09:18:58]GetLastDocTimeStamp 1720862202 [09:18:58]current date 1720862352 [09:18:58]FM_GetShiftState [09:18:58]SAM_PROTO_GetShiftState [09:18:58]wFMCommunicate request_size=4 [09:18:58]MH_SAM_APDU [09:18:58]CAPDU: 80 13 01 00 [09:18:58]Write to MH i2c: E2 08 00 A4 0C 80 13 01 00 00 00 00 00 2D [09:18:58]Write i2c OK [09:18:58]MH_I2C_Read... [09:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:58]Read from MH i2c: E2 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: E2 0E 00 [09:18:58]MH_I2C_Read... [09:18:58]Read from MH i2c: E2 0E 00 A4 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 27 [09:18:58]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:18:58]wFMCommunicate OK [09:18:58]SAM_PROTO_GetShiftState done [09:18:58]FM_GetShiftState done [09:18:58]opened in 1720828979 [09:18:58]opened+sec_in_day 1720915379 [09:18:58]quantity*price = 100046 [09:18:58]sum+1 = 100048 [09:18:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 108 13.07.2024 09:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162440 ФПД: 40506758450898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091912&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162440&fm=40506758450898&tin=02508201610067®Number=0000000000090858&sum=100000 [09:18:59]StoreToDocumentArchive [09:18:59]shift 462 fd 162440 [09:18:59]save to /storage/0462/doc_00162440 [09:18:59]save last doc name /storage/0462/doc_00162440 to /storage/kkm_last_doc_name [09:18:59]save OK [09:18:59]Clear old archive folders... [09:18:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:59]tlvbuf is 01A188C0 [09:18:59]SAM_PROTO_ClearQueue [09:18:59]wFMCommunicate request_size=4 [09:18:59]MH_SAM_APDU [09:18:59]CAPDU: 80 09 00 00 [09:18:59]Write to MH i2c: E2 08 00 B1 0C 80 09 00 00 00 00 00 00 2F [09:18:59]Write i2c OK [09:18:59]MH_I2C_Read... [09:18:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:59]Read from MH i2c: E2 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 03 00 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [09:18:59]RAPDU: 90 00 [09:18:59]wFMCommunicate OK [09:18:59]SAM_PROTO_ClearQueue done [09:18:59]KKMCreateOFDPacket [09:18:59]OFDProtocolAddRootSTLVToBuf [09:18:59]FM_MakeSignedData [09:18:59]FM_MakeSignedData [09:18:59]SAM_PROTO_SignData [09:18:59]wFMCommunicate request_size=4 [09:18:59]MH_SAM_APDU [09:18:59]CAPDU: 80 0D 01 02 [09:18:59]Write to MH i2c: E2 08 00 B2 0C 80 0D 01 02 00 00 00 00 37 [09:18:59]Write i2c OK [09:18:59]MH_I2C_Read... [09:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:59]Read from MH i2c: E2 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 03 00 [09:18:59]MH_I2C_Read... [09:18:59]Read from MH i2c: E2 03 00 B2 0C 00 90 00 32 [09:18:59]RAPDU: 90 00 [09:18:59]wFMCommunicate OK [09:18:59]wFMCommunicate request_size=255 [09:18:59]MH_SAM_APDU [09:18:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 90 46 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7A 02 00 35 04 06 00 24 [09:18:59]Write to MH i2c: E2 02 01 B3 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 90 46 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7A 02 00 35 04 06 00 24 00 00 74 [09:18:59]Write i2c OK [09:18:59]MH_I2C_Read... [09:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:00]Read from MH i2c: E2 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: E2 03 00 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: E2 03 00 B3 0C 00 90 00 33 [09:19:00]RAPDU: 90 00 [09:19:00]wFMCommunicate OK [09:19:00]wFMCommunicate request_size=10 [09:19:00]MH_SAM_APDU [09:19:00]CAPDU: 80 0D 02 02 05 D7 36 F2 CE D2 [09:19:00]Write to MH i2c: E2 0D 00 B4 0C 80 0D 02 02 05 00 D7 36 F2 CE D2 00 00 E3 [09:19:00]Write i2c OK [09:19:00]MH_I2C_Read... [09:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:00]Read from MH i2c: E2 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: E2 03 00 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: E2 03 00 B4 0C 00 90 00 34 [09:19:00]RAPDU: 90 00 [09:19:00]wFMCommunicate OK [09:19:00]wFMCommunicate request_size=4 [09:19:00]MH_SAM_APDU [09:19:00]CAPDU: 80 0D 03 02 [09:19:00]Write to MH i2c: E2 08 00 B5 0C 80 0D 03 02 00 00 00 00 3C [09:19:00]Write i2c OK [09:19:00]MH_I2C_Read... [09:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:00]Read from MH i2c: E2 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: E2 0B 00 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: E2 0B 00 B5 0C 00 67 52 90 9B 09 42 D6 44 90 00 86 [09:19:00]RAPDU: 67 52 90 9B 09 42 D6 44 90 00 [09:19:00]wFMCommunicate OK [09:19:00]SAM_PROTO_SignData done [09:19:00]FM_MakeSignedData done [09:19:00]CreateOFDProtocolMessage [09:19:00]wFMCommunicate request_size=4 [09:19:00]MH_SAM_APDU [09:19:00]CAPDU: 80 11 00 00 [09:19:00]Write to MH i2c: E2 08 00 B6 0C 80 11 00 00 00 00 00 00 3C [09:19:00]Write i2c OK [09:19:00]MH_I2C_Read... [09:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:00]Read from MH i2c: E2 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: E2 17 00 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: E2 17 00 B6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9C [09:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:19:00]wFMCommunicate OK [09:19:00]CreateOFDProtocolMessage done [09:19:00]OFDSenderStorePacket 162440 [09:19:00]StoreOFDPacket docnum=162440 [09:19:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C8 1F 07 01 22 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 90 46 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7A 02 00 35 04 06 00 24 D7 36 F2 CE D2 67 52 90 9B 09 42 D6 44 [09:19:00]CheckFolder [09:19:00]dirname=/storage/ofd_packets [09:19:00]CheckFolder done [09:19:00]ProducePacketName [09:19:00]name=ofd_packets/00162440 [09:19:00]NVStorageSaveData ofd_packets/00162440 [09:19:00]File name is /storage/ofd_packets/00162440 [09:19:00]Write 301 bytes [09:19:00]NVStorageSaveData done [09:19:00]OFDSenderStorePacket done [09:19:00]KKMCreateOFDPacket done [09:19:00]NVStorageSaveData kkm_last_timestamp [09:19:00]File name is /storage/kkm_last_timestamp [09:19:00]Write 4 bytes [09:19:00]NVStorageSaveData done [09:19:00]ExternCall_PrintAddStr [09:19:00]wPrintStart [09:19:00]Write to MH i2c: 01 00 00 B7 0C C3 [09:19:00]Write i2c OK [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: 01 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: 01 07 00 [09:19:00]MH_I2C_Read... [09:19:00]Read from MH i2c: 01 07 00 B7 0C 00 00 00 00 00 FF 0F D8 [09:19:00]RasterBufferAndPrint [09:19:00]line Счет N : (1)1318971 [09:19:00]line ИНН: 02508201610067 [09:19:00]line Контрольно-Кассовый Чек [09:19:00]line ПРОДАЖА [09:19:00]line ТРК (МРК, ГНК) : 63 [09:19:00]line Товар: 2710124130 [09:19:00]line Аи-92-К-5 [09:19:00]line 15.090 * 66.30 [09:19:00]line = 1000.47 [09:19:00]line НДС 12% НСП 1% [09:19:00]line > о реализуемом товаре [09:19:00]line ОКРУГЛЕНИЕ: -0.47 [09:19:00]line ИТОГО: 1000.00 [09:19:00]line Внесено: 1000.00 [09:19:00]line СДАЧА: 0.00 [09:19:00]line НСП 1% : 8.85 [09:19:00]line НДС 12% : 106.24 [09:19:00]line Наличными: 1000.00 [09:19:00]line Безнал.: 0.00 [09:19:00]line Место: АЗС № 140 "Партнер Нефть" [09:19:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:19:00]line СНО: Общий режим [09:19:00]line Чек 108 13.07.2024 09:19 [09:19:00]line Смена: 462 ФФД: 1.0 [09:19:00]line ЗНМ: 0300000129 [09:19:00]line РНМ: 0000000000090858 [09:19:00]line Версия ККМ: 001 [09:19:00]line ФМ: 0000000000874899 [09:19:00]line ФД: 162440 [09:19:00]line ФПД: 40506758450898 [09:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091912&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162440&fm=40506758450898&tin=02508201610067®Number=0000000000090858&sum=100000 [09:19:00]OFD Sender: Processing packet 162440 [packets to send 105, broken 104] [09:19:00]ProducePacketName [09:19:00]name=ofd_packets/00162440 [09:19:00]OFD Sender: To server: pG, [09:19:00]CommunicateWithHost lk.salyk.kg:30040 [09:19:00]ConnectInit lk.salyk.kg [09:19:00]written 0, free lines is 4095 [09:19:00]Connected sock=10 [09:19:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C8 1F 07 01 22 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 00 00 00 F4 03 04 00 90 46 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7A 02 00 35 04 06 00 24 D7 36 F2 CE D2 67 52 90 9B 09 42 D6 44 [09:19:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B7 B1 47 00 22 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7A 02 00 F4 03 04 00 A5 F2 91 66 B6 04 01 00 00 50 3A 0F 53 3A B1 12 52 [09:19:00]CommunicateWithHost err = 0 [09:19:00]CheckOFDResponse [09:19:00]1017 (14) - 77093643461234 [09:19:00]1041 (16) - 0000000000874899 [09:19:00]1040 (4) - 162440 [09:19:00]1012 (4) - 13.07.2024 03:21 [09:19:00]1206 (1) - 0 [09:19:00]OFD Sender: Remove packet 162440 [09:19:00]ProducePacketName [09:19:00]name=ofd_packets/00162440 [09:19:00]NVStorageDeleteData [09:19:01]Write to MH i2c: 01 00 00 E2 0C EE [09:19:01]Write i2c OK [09:19:01]MH_I2C_Read... [09:19:01]Read from MH i2c: 01 [09:19:01]MH_I2C_Read... [09:19:01]Read from MH i2c: 01 07 00 [09:19:01]MH_I2C_Read... [09:19:01]Read from MH i2c: 01 07 00 E2 0C 00 00 00 00 00 F2 0C F3 [09:19:01]RasterBufferAndPrint [09:19:01]line [09:19:01]line [09:19:01]line [09:19:01]line [09:19:01]line [09:19:01]written 0, free lines is 3319 [09:19:01]MH_Cut [09:19:01]Write to MH i2c: D1 01 00 E9 0C 01 C7 [09:19:01]Write i2c OK [09:19:01]MH_I2C_Read... [09:19:01]Read from MH i2c: D1 [09:19:01]MH_I2C_Read... [09:19:01]Read from MH i2c: D1 01 00 [09:19:01]MH_I2C_Read... [09:19:01]Read from MH i2c: D1 01 00 E9 0C 00 C6 [09:19:01]Write to MH i2c: 01 00 00 EA 0C F6 [09:19:01]Write i2c OK [09:19:01]MH_I2C_Read... [09:19:01]OFD Sender: No OFD packet to send [09:19:01]*** Cut start [09:19:01]*** Purtial cut [09:19:01]*** Stage 1: CUTSNS_PIN = 1 [09:19:02]Read from MH i2c: 01 [09:19:02]MH_I2C_Read... [09:19:02]*** Stop cut motor [09:19:02]*** Cut end [09:19:02]Read from MH i2c: 01 07 00 [09:19:02]MH_I2C_Read... [09:19:02]Read from MH i2c: 01 07 00 EA 0C 00 00 00 00 00 FF 0F 0B [09:19:02]process_action close_receipt done [09:19:02]requested_data is exist [09:19:02]produce_requested_data [09:19:02]requested_item fm.sn is exist - process it [09:19:02]wFMCommunicate request_size=4 [09:19:02]MH_SAM_APDU [09:19:02]CAPDU: 80 11 00 00 [09:19:02]Write to MH i2c: E2 08 00 EB 0C 80 11 00 00 00 00 00 00 71 [09:19:02]Write i2c OK [09:19:02]MH_I2C_Read... [09:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:02]Read from MH i2c: E2 [09:19:02]MH_I2C_Read... [09:19:02]Read from MH i2c: E2 17 00 [09:19:02]MH_I2C_Read... [09:19:02]Read from MH i2c: E2 17 00 EB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [09:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:19:02]wFMCommunicate OK [09:19:02]requested_item fd.num is exist - process it [09:19:02]SAM_PROTO_GetFieldsCounters [09:19:02]wFMCommunicate request_size=4 [09:19:02]MH_SAM_APDU [09:19:02]CAPDU: 80 13 00 00 [09:19:02]Write to MH i2c: E2 08 00 EC 0C 80 13 00 00 00 00 00 00 74 [09:19:02]Write i2c OK [09:19:02]MH_I2C_Read... [09:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:02]Read from MH i2c: E2 [09:19:02]MH_I2C_Read... [09:19:02]Read from MH i2c: E2 62 00 [09:19:02]MH_I2C_Read... [09:19:02]Read from MH i2c: E2 62 00 EC 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 88 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [09:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 88 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:02]wFMCommunicate OK [09:19:02]SAM_PROTO_GetFieldsCounters done [09:19:02]requested_item shift.num is exist - process it [09:19:02]requested_item shift.opened is exist - process it [09:19:02]req_shift_opened [09:19:02]FM_GetShiftState [09:19:02]SAM_PROTO_GetShiftState [09:19:02]wFMCommunicate request_size=4 [09:19:02]MH_SAM_APDU [09:19:02]CAPDU: 80 13 01 00 [09:19:02]Write to MH i2c: E2 08 00 ED 0C 80 13 01 00 00 00 00 00 76 [09:19:02]Write i2c OK [09:19:02]MH_I2C_Read... [09:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:02]Read from MH i2c: E2 [09:19:02]MH_I2C_Read... [09:19:02]Read from MH i2c: E2 0E 00 [09:19:02]MH_I2C_Read... [09:19:02]Read from MH i2c: E2 0E 00 ED 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 70 [09:19:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:19:02]wFMCommunicate OK [09:19:02]SAM_PROTO_GetShiftState done [09:19:02]FM_GetShiftState done [09:19:02]req_shift_opened done [09:19:02]requested_item shift.open_date is exist - process it [09:19:02]req_shift_open_date [09:19:02]req_shift_open_date done [09:19:02]produce_requested_data done [09:19:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162440,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:19:02]process_action_free close_receipt [09:19:02]json_value_free [09:19:02]json_value_free done [09:19:02]process_json_proto returns [09:19:02]Send response to host [09:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162440,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:19:02]free response buf [09:19:02]execute_script done [09:19:02]execute_script returns [09:19:02]free content buf [09:19:02]Sock 8.Close socket [09:19:02]Sock 8.Thread stoped [09:19:06]OFD Sender: No OFD packet to send [09:19:09]accept exits with 9 [09:19:09]New connection [09:19:09]New thread 3066862948 created [09:19:09]Thread 3067006308 joined [09:19:09]Waiting for new connection... [09:19:09] Sock 9.Parse request [09:19:09]Sock 9.Check first char [09:19:09]Sock 9.First char is OK [09:19:09]request: POST /json_proto HTTP/1.0 [09:19:09]Method: POST [09:19:09]URL: /json_proto [09:19:09]Method is POST - this is cgi request [09:19:09]url: /json_proto [09:19:09]query_string will be loaded in cgi processing [09:19:09]execute_cgi json_proto POST (null) [09:19:09]execute_cgi path=json_proto method=POST [09:19:09]POST find Content-Length [09:19:09]Host: 172.17.39.67:8080 [09:19:09]Content-Length: 678 [09:19:09]Content-Type: application/json [09:19:09] [09:19:09]POST finish read [09:19:09]Found Content-Length = 678 [09:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 5.380, "sum" : 400.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:09]execute_script... [09:19: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)1318972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 5.380, "sum" : 400.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:09]POST & json_proto [09:19:09]process_json_proto [09:19:09]json parsed OK: [09:19:09]protocol is kg_v1.0 [09:19:09]action value=close_receipt [09:19:09]process_action close_receipt [09:19:09]cmd_close_receipt [09:19:09]MH_GetDate [09:19:09]Write to MH i2c: F0 00 00 EE 0C E9 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: F0 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: F0 09 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: F0 09 00 EE 0C 00 9B 46 92 66 FA E9 8E 66 A2 [09:19:09]GetLastDocTimeStamp 1720862352 [09:19:09]current date 1720862363 [09:19:09]FM_GetShiftState [09:19:09]SAM_PROTO_GetShiftState [09:19:09]wFMCommunicate request_size=4 [09:19:09]MH_SAM_APDU [09:19:09]CAPDU: 80 13 01 00 [09:19:09]Write to MH i2c: E2 08 00 EF 0C 80 13 01 00 00 00 00 00 78 [09:19:09]Write i2c OK [09:19:09]MH_I2C_Read... [09:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:09]Read from MH i2c: E2 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 0E 00 [09:19:09]MH_I2C_Read... [09:19:09]Read from MH i2c: E2 0E 00 EF 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 72 [09:19:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:19:09]wFMCommunicate OK [09:19:09]SAM_PROTO_GetShiftState done [09:19:09]FM_GetShiftState done [09:19:09]opened in 1720828979 [09:19:09]opened+sec_in_day 1720915379 [09:19:09]quantity*price = 40027 [09:19:09]sum+1 = 40028 [09:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 109 13.07.2024 09:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162441 ФПД: 261053887045403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091923&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162441&fm=261053887045403&tin=02508201610067®Number=0000000000090858&sum=40000 [09:19:11]StoreToDocumentArchive [09:19:11]shift 462 fd 162441 [09:19:11]save to /storage/0462/doc_00162441 [09:19:11]save last doc name /storage/0462/doc_00162441 to /storage/kkm_last_doc_name [09:19:11]save OK [09:19:11]Clear old archive folders... [09:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:11]tlvbuf is 01B84260 [09:19:11]SAM_PROTO_ClearQueue [09:19:11]wFMCommunicate request_size=4 [09:19:11]MH_SAM_APDU [09:19:11]CAPDU: 80 09 00 00 [09:19:11]Write to MH i2c: E2 08 00 FC 0C 80 09 00 00 00 00 00 00 7A [09:19:11]Write i2c OK [09:19:11]MH_I2C_Read... [09:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:11]Read from MH i2c: E2 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 03 00 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [09:19:11]RAPDU: 90 00 [09:19:11]wFMCommunicate OK [09:19:11]SAM_PROTO_ClearQueue done [09:19:11]KKMCreateOFDPacket [09:19:11]OFDProtocolAddRootSTLVToBuf [09:19:11]FM_MakeSignedData [09:19:11]FM_MakeSignedData [09:19:11]SAM_PROTO_SignData [09:19:11]wFMCommunicate request_size=4 [09:19:11]MH_SAM_APDU [09:19:11]CAPDU: 80 0D 01 02 [09:19:11]Write to MH i2c: E2 08 00 FD 0C 80 0D 01 02 00 00 00 00 82 [09:19:11]Write i2c OK [09:19:11]MH_I2C_Read... [09:19:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:11]Read from MH i2c: E2 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 03 00 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [09:19:11]RAPDU: 90 00 [09:19:11]wFMCommunicate OK [09:19:11]wFMCommunicate request_size=255 [09:19:11]MH_SAM_APDU [09:19: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 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 6D 00 00 00 F4 03 04 00 9B 46 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7A 02 00 35 04 06 00 ED [09:19:11]Write to MH i2c: E2 02 01 FE 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 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 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 6D 00 00 00 F4 03 04 00 9B 46 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7A 02 00 35 04 06 00 ED 00 00 AC [09:19:11]Write i2c OK [09:19:11]MH_I2C_Read... [09:19:11]OFD Sender: No OFD packet to send [09:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:11]Read from MH i2c: E2 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 03 00 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 03 00 FE 0C 00 90 00 7E [09:19:11]RAPDU: 90 00 [09:19:11]wFMCommunicate OK [09:19:11]wFMCommunicate request_size=10 [09:19:11]MH_SAM_APDU [09:19:11]CAPDU: 80 0D 02 02 05 6D 58 34 5F 1B [09:19:11]Write to MH i2c: E2 0D 00 FF 0C 80 0D 02 02 05 00 6D 58 34 5F 1B 00 00 02 [09:19:11]Write i2c OK [09:19:11]MH_I2C_Read... [09:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:11]Read from MH i2c: E2 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 03 00 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [09:19:11]RAPDU: 90 00 [09:19:11]wFMCommunicate OK [09:19:11]wFMCommunicate request_size=4 [09:19:11]MH_SAM_APDU [09:19:11]CAPDU: 80 0D 03 02 [09:19:11]Write to MH i2c: E2 08 00 00 0D 80 0D 03 02 00 00 00 00 88 [09:19:11]Write i2c OK [09:19:11]MH_I2C_Read... [09:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:11]Read from MH i2c: E2 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 0B 00 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 0B 00 00 0D 00 57 80 D0 67 04 62 6C CD 90 00 36 [09:19:11]RAPDU: 57 80 D0 67 04 62 6C CD 90 00 [09:19:11]wFMCommunicate OK [09:19:11]SAM_PROTO_SignData done [09:19:11]FM_MakeSignedData done [09:19:11]CreateOFDProtocolMessage [09:19:11]wFMCommunicate request_size=4 [09:19:11]MH_SAM_APDU [09:19:11]CAPDU: 80 11 00 00 [09:19:11]Write to MH i2c: E2 08 00 01 0D 80 11 00 00 00 00 00 00 88 [09:19:11]Write i2c OK [09:19:11]MH_I2C_Read... [09:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:11]Read from MH i2c: E2 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 17 00 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: E2 17 00 01 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E8 [09:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:19:11]wFMCommunicate OK [09:19:11]CreateOFDProtocolMessage done [09:19:11]OFDSenderStorePacket 162441 [09:19:11]StoreOFDPacket docnum=162441 [09:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B4 7B 07 01 AD 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 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 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 6D 00 00 00 F4 03 04 00 9B 46 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7A 02 00 35 04 06 00 ED 6D 58 34 5F 1B 57 80 D0 67 04 62 6C CD [09:19:11]CheckFolder [09:19:11]dirname=/storage/ofd_packets [09:19:11]CheckFolder done [09:19:11]ProducePacketName [09:19:11]name=ofd_packets/00162441 [09:19:11]NVStorageSaveData ofd_packets/00162441 [09:19:11]File name is /storage/ofd_packets/00162441 [09:19:11]Write 301 bytes [09:19:11]NVStorageSaveData done [09:19:11]OFDSenderStorePacket done [09:19:11]KKMCreateOFDPacket done [09:19:11]NVStorageSaveData kkm_last_timestamp [09:19:11]File name is /storage/kkm_last_timestamp [09:19:11]Write 4 bytes [09:19:11]NVStorageSaveData done [09:19:11]ExternCall_PrintAddStr [09:19:11]wPrintStart [09:19:11]Write to MH i2c: 01 00 00 02 0D 0F [09:19:11]Write i2c OK [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: 01 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: 01 07 00 [09:19:11]MH_I2C_Read... [09:19:11]Read from MH i2c: 01 07 00 02 0D 00 00 00 00 00 FF 0F 24 [09:19:11]RasterBufferAndPrint [09:19:11]line Счет N : (1)1318972 [09:19:11]line ИНН: 02508201610067 [09:19:11]line Контрольно-Кассовый Чек [09:19:11]line ПРОДАЖА [09:19:11]line ТРК (МРК, ГНК) : 34 [09:19:11]line Товар: 2710124500 [09:19:11]line Аи-95-К-5 [09:19:11]line 5.380 * 74.40 [09:19:11]line = 400.27 [09:19:11]line НДС 12% НСП 1% [09:19:11]line > о реализуемом товаре [09:19:11]line ОКРУГЛЕНИЕ: -0.27 [09:19:11]line ИТОГО: 400.00 [09:19:11]line Внесено: 400.00 [09:19:11]line СДАЧА: 0.00 [09:19:11]line НСП 1% : 3.54 [09:19:11]line НДС 12% : 42.51 [09:19:11]line Наличными: 400.00 [09:19:11]line Безнал.: 0.00 [09:19:11]line Место: АЗС № 140 "Партнер Нефть" [09:19:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:19:11]line СНО: Общий режим [09:19:11]line Чек 109 13.07.2024 09:19 [09:19:11]line Смена: 462 ФФД: 1.0 [09:19:11]line ЗНМ: 0300000129 [09:19:11]line РНМ: 0000000000090858 [09:19:11]line Версия ККМ: 001 [09:19:11]line ФМ: 0000000000874899 [09:19:11]line ФД: 162441 [09:19:11]line ФПД: 261053887045403 [09:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T091923&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162441&fm=261053887045403&tin=02508201610067®Number=0000000000090858&sum=40000 [09:19:11]written 0, free lines is 4095 [09:19:11]OFD Sender: Processing packet 162441 [packets to send 105, broken 104] [09:19:11]ProducePacketName [09:19:11]name=ofd_packets/00162441 [09:19:11]OFD Sender: To server: pG, [09:19:11]CommunicateWithHost lk.salyk.kg:30040 [09:19:11]ConnectInit lk.salyk.kg [09:19:11]Connected sock=10 [09:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B4 7B 07 01 AD 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 04 15 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 5B 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 9B 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 6D 00 00 00 F4 03 04 00 9B 46 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7A 02 00 35 04 06 00 ED 6D 58 34 5F 1B 57 80 D0 67 04 62 6C CD [09:19:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 14 84 47 00 13 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7A 02 00 F4 03 04 00 B0 F2 91 66 B6 04 01 00 00 EF 54 DB DD 33 37 ED 29 [09:19:12]CommunicateWithHost err = 0 [09:19:12]CheckOFDResponse [09:19:12]1017 (14) - 77093643461234 [09:19:12]1041 (16) - 0000000000874899 [09:19:12]1040 (4) - 162441 [09:19:12]1012 (4) - 13.07.2024 03:21 [09:19:12]1206 (1) - 0 [09:19:12]OFD Sender: Remove packet 162441 [09:19:12]ProducePacketName [09:19:12]name=ofd_packets/00162441 [09:19:12]NVStorageDeleteData [09:19:12]Write to MH i2c: 01 00 00 2D 0D 3A [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: 01 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: 01 07 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: 01 07 00 2D 0D 00 00 00 00 00 F4 0C 41 [09:19:12]RasterBufferAndPrint [09:19:12]line [09:19:12]line [09:19:12]line [09:19:12]line [09:19:12]line [09:19:12]written 0, free lines is 3325 [09:19:12]MH_Cut [09:19:12]Write to MH i2c: D1 01 00 34 0D 01 13 [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: D1 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: D1 01 00 [09:19:12]MH_I2C_Read... [09:19:12]Read from MH i2c: D1 01 00 34 0D 00 12 [09:19:12]Write to MH i2c: 01 00 00 35 0D 42 [09:19:12]Write i2c OK [09:19:12]MH_I2C_Read... [09:19:12]OFD Sender: No OFD packet to send [09:19:12]*** Cut start [09:19:12]*** Purtial cut [09:19:12]*** CUTSNS_PIN = 0 [09:19:13]*** Stage 1: CUTSNS_PIN = 1 [09:19:14]Read from MH i2c: 01 [09:19:14]MH_I2C_Read... [09:19:14]*** Stop cut motor [09:19:14]*** Cut end [09:19:14]Read from MH i2c: 01 07 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: 01 07 00 35 0D 00 00 00 00 00 FF 0F 57 [09:19:14]process_action close_receipt done [09:19:14]requested_data is exist [09:19:14]produce_requested_data [09:19:14]requested_item fm.sn is exist - process it [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 11 00 00 [09:19:14]Write to MH i2c: E2 08 00 36 0D 80 11 00 00 00 00 00 00 BD [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:14]Read from MH i2c: E2 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 17 00 [09:19:14]MH_I2C_Read... [09:19:14]Read from MH i2c: E2 17 00 36 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1D [09:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:19:14]wFMCommunicate OK [09:19:14]requested_item fd.num is exist - process it [09:19:14]SAM_PROTO_GetFieldsCounters [09:19:14]wFMCommunicate request_size=4 [09:19:14]MH_SAM_APDU [09:19:14]CAPDU: 80 13 00 00 [09:19:14]Write to MH i2c: E2 08 00 37 0D 80 13 00 00 00 00 00 00 C0 [09:19:14]Write i2c OK [09:19:14]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 62 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 62 00 37 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 89 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [09:19:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 89 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:15]wFMCommunicate OK [09:19:15]SAM_PROTO_GetFieldsCounters done [09:19:15]requested_item shift.num is exist - process it [09:19:15]requested_item shift.opened is exist - process it [09:19:15]req_shift_opened [09:19:15]FM_GetShiftState [09:19:15]SAM_PROTO_GetShiftState [09:19:15]wFMCommunicate request_size=4 [09:19:15]MH_SAM_APDU [09:19:15]CAPDU: 80 13 01 00 [09:19:15]Write to MH i2c: E2 08 00 38 0D 80 13 01 00 00 00 00 00 C2 [09:19:15]Write i2c OK [09:19:15]MH_I2C_Read... [09:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:15]Read from MH i2c: E2 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0E 00 [09:19:15]MH_I2C_Read... [09:19:15]Read from MH i2c: E2 0E 00 38 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BC [09:19:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:19:15]wFMCommunicate OK [09:19:15]SAM_PROTO_GetShiftState done [09:19:15]FM_GetShiftState done [09:19:15]req_shift_opened done [09:19:15]requested_item shift.open_date is exist - process it [09:19:15]req_shift_open_date [09:19:15]req_shift_open_date done [09:19:15]produce_requested_data done [09:19:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162441,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:19:15]process_action_free close_receipt [09:19:15]json_value_free [09:19:15]json_value_free done [09:19:15]process_json_proto returns [09:19:15]Send response to host [09:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162441,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:19:15]free response buf [09:19:15]execute_script done [09:19:15]execute_script returns [09:19:15]free content buf [09:19:15]Sock 9.Close socket [09:19:15]Sock 9.Thread stoped [09:19:17]OFD Sender: No OFD packet to send [09:19:22]OFD Sender: No OFD packet to send [09:19:27]OFD Sender: No OFD packet to send [09:19:32]OFD Sender: No OFD packet to send [09:19:37]OFD Sender: No OFD packet to send [09:19:42]OFD Sender: No OFD packet to send [09:19:47]OFD Sender: No OFD packet to send [09:19:52]OFD Sender: No OFD packet to send [09:19:57]OFD Sender: No OFD packet to send [09:20:02]OFD Sender: No OFD packet to send [09:20:07]OFD Sender: No OFD packet to send [09:20:12]OFD Sender: No OFD packet to send [09:20:17]OFD Sender: No OFD packet to send [09:20:22]OFD Sender: No OFD packet to send [09:20:27]OFD Sender: No OFD packet to send [09:20:32]OFD Sender: No OFD packet to send [09:20:37]OFD Sender: No OFD packet to send [09:20:42]OFD Sender: No OFD packet to send [09:20:47]OFD Sender: No OFD packet to send [09:20:52]OFD Sender: No OFD packet to send [09:20:57]OFD Sender: No OFD packet to send [09:21:02]OFD Sender: No OFD packet to send [09:21:07]OFD Sender: No OFD packet to send [09:21:12]OFD Sender: No OFD packet to send [09:21:17]OFD Sender: No OFD packet to send [09:21:22]OFD Sender: No OFD packet to send [09:21:27]OFD Sender: No OFD packet to send [09:21:32]OFD Sender: No OFD packet to send [09:21:37]OFD Sender: No OFD packet to send [09:21:42]OFD Sender: No OFD packet to send [09:21:47]OFD Sender: No OFD packet to send [09:21:52]accept exits with 8 [09:21:52]New connection [09:21:52]New thread 3067006308 created [09:21:52]Thread 3066862948 joined [09:21:52]Waiting for new connection... [09:21:52] Sock 8.Parse request [09:21:52]Sock 8.Check first char [09:21:52]Sock 8.First char is OK [09:21:52]request: POST /json_proto HTTP/1.0 [09:21:52]Method: POST [09:21:52]URL: /json_proto [09:21:52]Method is POST - this is cgi request [09:21:52]url: /json_proto [09:21:52]query_string will be loaded in cgi processing [09:21:52]execute_cgi json_proto POST (null) [09:21:52]execute_cgi path=json_proto method=POST [09:21:52]POST find Content-Length [09:21:52]Host: 172.17.39.67:8080 [09:21:52]Content-Length: 825 [09:21:52]Content-Type: application/json [09:21:52] [09:21:52]POST finish read [09:21:52]Found Content-Length = 825 [09:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 85.000, "sum" : 6171.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6171.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:52]execute_script... [09:21: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)1318973", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 85.000, "sum" : 6171.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6171.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:52]POST & json_proto [09:21:52]process_json_proto [09:21:52]json parsed OK: [09:21:52]protocol is kg_v1.0 [09:21:52]action value=close_receipt [09:21:52]process_action close_receipt [09:21:52]cmd_close_receipt [09:21:52]MH_GetDate [09:21:52]Write to MH i2c: F0 00 00 39 0D 35 [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: F0 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: F0 09 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: F0 09 00 39 0D 00 3D 47 92 66 FA E9 8E 66 91 [09:21:52]GetLastDocTimeStamp 1720862363 [09:21:52]current date 1720862525 [09:21:52]FM_GetShiftState [09:21:52]SAM_PROTO_GetShiftState [09:21:52]wFMCommunicate request_size=4 [09:21:52]MH_SAM_APDU [09:21:52]CAPDU: 80 13 01 00 [09:21:52]Write to MH i2c: E2 08 00 3A 0D 80 13 01 00 00 00 00 00 C4 [09:21:52]Write i2c OK [09:21:52]MH_I2C_Read... [09:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:52]Read from MH i2c: E2 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 0E 00 [09:21:52]MH_I2C_Read... [09:21:52]Read from MH i2c: E2 0E 00 3A 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BE [09:21:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:21:52]wFMCommunicate OK [09:21:52]SAM_PROTO_GetShiftState done [09:21:52]FM_GetShiftState done [09:21:52]opened in 1720828979 [09:21:52]opened+sec_in_day 1720915379 [09:21:52]quantity*price = 617100 [09:21:52]sum+1 = 617101 [09:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6171.00 НСП 1% : 54.61 НДС 12% : 655.33 Наличными: 0.00 Безнал.: 6171.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 110 13.07.2024 09:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162442 ФПД: 176738715425053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092205&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162442&fm=176738715425053&tin=02508201610067®Number=0000000000090858&sum=617100 [09:21:53]StoreToDocumentArchive [09:21:53]shift 462 fd 162442 [09:21:53]save to /storage/0462/doc_00162442 [09:21:53]save last doc name /storage/0462/doc_00162442 to /storage/kkm_last_doc_name [09:21:53]save OK [09:21:53]Clear old archive folders... [09:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:21:53]tlvbuf is 01C127E0 [09:21:53]SAM_PROTO_ClearQueue [09:21:53]wFMCommunicate request_size=4 [09:21:53]MH_SAM_APDU [09:21:53]CAPDU: 80 09 00 00 [09:21:53]Write to MH i2c: E2 08 00 47 0D 80 09 00 00 00 00 00 00 C6 [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:53]Read from MH i2c: E2 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 03 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [09:21:53]RAPDU: 90 00 [09:21:53]wFMCommunicate OK [09:21:53]SAM_PROTO_ClearQueue done [09:21:53]KKMCreateOFDPacket [09:21:53]OFDProtocolAddRootSTLVToBuf [09:21:53]FM_MakeSignedData [09:21:53]FM_MakeSignedData [09:21:53]SAM_PROTO_SignData [09:21:53]wFMCommunicate request_size=4 [09:21:53]MH_SAM_APDU [09:21:53]CAPDU: 80 0D 01 02 [09:21:53]Write to MH i2c: E2 08 00 48 0D 80 0D 01 02 00 00 00 00 CE [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:53]Read from MH i2c: E2 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 03 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 03 00 48 0D 00 90 00 C9 [09:21:53]RAPDU: 90 00 [09:21:53]wFMCommunicate OK [09:21:53]wFMCommunicate request_size=255 [09:21:53]MH_SAM_APDU [09:21:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 4C 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8C 6A 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6A 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD FF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6A 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3D 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7A 02 00 35 04 06 00 [09:21:53]Write to MH i2c: E2 02 01 49 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 4C 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8C 6A 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6A 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD FF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6A 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3D 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7A 02 00 35 04 06 00 00 00 14 [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:53]Read from MH i2c: E2 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 03 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 03 00 49 0D 00 90 00 CA [09:21:53]RAPDU: 90 00 [09:21:53]wFMCommunicate OK [09:21:53]wFMCommunicate request_size=11 [09:21:53]MH_SAM_APDU [09:21:53]CAPDU: 80 0D 02 02 06 A0 BE 30 59 D9 1D [09:21:53]Write to MH i2c: E2 0E 00 4A 0D 80 0D 02 02 06 00 A0 BE 30 59 D9 1D 00 00 BA [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:53]Read from MH i2c: E2 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 03 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [09:21:53]RAPDU: 90 00 [09:21:53]wFMCommunicate OK [09:21:53]wFMCommunicate request_size=4 [09:21:53]MH_SAM_APDU [09:21:53]CAPDU: 80 0D 03 02 [09:21:53]Write to MH i2c: E2 08 00 4B 0D 80 0D 03 02 00 00 00 00 D3 [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:53]Read from MH i2c: E2 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 0B 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 0B 00 4B 0D 00 64 DB 51 B3 86 88 25 2B 90 00 75 [09:21:53]RAPDU: 64 DB 51 B3 86 88 25 2B 90 00 [09:21:53]wFMCommunicate OK [09:21:53]SAM_PROTO_SignData done [09:21:53]FM_MakeSignedData done [09:21:53]CreateOFDProtocolMessage [09:21:53]wFMCommunicate request_size=4 [09:21:53]MH_SAM_APDU [09:21:53]CAPDU: 80 11 00 00 [09:21:53]Write to MH i2c: E2 08 00 4C 0D 80 11 00 00 00 00 00 00 D3 [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:53]Read from MH i2c: E2 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 17 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: E2 17 00 4C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 33 [09:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:21:53]wFMCommunicate OK [09:21:53]CreateOFDProtocolMessage done [09:21:53]OFDSenderStorePacket 162442 [09:21:53]StoreOFDPacket docnum=162442 [09:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F2 28 08 01 84 B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 4C 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8C 6A 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6A 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD FF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6A 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3D 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7A 02 00 35 04 06 00 A0 BE 30 59 D9 1D 64 DB 51 B3 86 88 25 2B [09:21:53]CheckFolder [09:21:53]dirname=/storage/ofd_packets [09:21:53]CheckFolder done [09:21:53]ProducePacketName [09:21:53]name=ofd_packets/00162442 [09:21:53]NVStorageSaveData ofd_packets/00162442 [09:21:53]File name is /storage/ofd_packets/00162442 [09:21:53]Write 302 bytes [09:21:53]NVStorageSaveData done [09:21:53]OFDSenderStorePacket done [09:21:53]KKMCreateOFDPacket done [09:21:53]NVStorageSaveData kkm_last_timestamp [09:21:53]File name is /storage/kkm_last_timestamp [09:21:53]Write 4 bytes [09:21:53]NVStorageSaveData done [09:21:53]ExternCall_PrintAddStr [09:21:53]wPrintStart [09:21:53]Write to MH i2c: 01 00 00 4D 0D 5A [09:21:53]Write i2c OK [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: 01 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: 01 07 00 [09:21:53]MH_I2C_Read... [09:21:53]Read from MH i2c: 01 07 00 4D 0D 00 00 00 00 00 FF 0F 6F [09:21:53]RasterBufferAndPrint [09:21:53]line Счет N : (1)1318973 [09:21:53]line ИНН: 02508201610067 [09:21:53]line Контрольно-Кассовый Чек [09:21:53]line ПРОДАЖА [09:21:53]line ТРК (МРК, ГНК) : 21 [09:21:53]line Товар: 2710194210 [09:21:53]line ДТ(л)-К-5 [09:21:53]line 85.000 * 72.60 [09:21:53]line = 6171.00 [09:21:53]line НДС 12% НСП 1% [09:21:53]line > о реализуемом товаре [09:21:53]line ИТОГО: 6171.00 [09:21:53]line НСП 1% : 54.61 [09:21:53]line НДС 12% : 655.33 [09:21:53]line Наличными: 0.00 [09:21:53]line Безнал.: 6171.00 [09:21:53]line Место: АЗС № 140 "Партнер Нефть" [09:21:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:21:53]line СНО: Общий режим [09:21:53]line Чек 110 13.07.2024 09:22 [09:21:53]line Смена: 462 ФФД: 1.0 [09:21:53]line ЗНМ: 0300000129 [09:21:53]line РНМ: 0000000000090858 [09:21:53]line Версия ККМ: 001 [09:21:53]line Платежная система: Бакай Банк [09:21:53]line ФМ: 0000000000874899 [09:21:53]line ФД: 162442 [09:21:53]line ФПД: 176738715425053 [09:21:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092205&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162442&fm=176738715425053&tin=02508201610067®Number=0000000000090858&sum=617100 [09:21:54]OFD Sender: Processing packet 162442 [packets to send 105, broken 104] [09:21:54]ProducePacketName [09:21:54]name=ofd_packets/00162442 [09:21:54]OFD Sender: To server: pG, [09:21:54]CommunicateWithHost lk.salyk.kg:30040 [09:21:54]ConnectInit lk.salyk.kg [09:21:54]written 0, free lines is 4095 [09:21:54]Connected sock=10 [09:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F2 28 08 01 84 B4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 4C 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8C 6A 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6A 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD FF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6A 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3D 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7A 02 00 35 04 06 00 A0 BE 30 59 D9 1D 64 DB 51 B3 86 88 25 2B [09:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EA 85 47 00 56 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7A 02 00 F4 03 04 00 52 F3 91 66 B6 04 01 00 00 28 E0 EA 16 49 7A D7 DD [09:21:54]CommunicateWithHost err = 0 [09:21:54]CheckOFDResponse [09:21:54]1017 (14) - 77093643461234 [09:21:54]1041 (16) - 0000000000874899 [09:21:54]1040 (4) - 162442 [09:21:54]1012 (4) - 13.07.2024 03:24 [09:21:54]1206 (1) - 0 [09:21:54]OFD Sender: Remove packet 162442 [09:21:54]ProducePacketName [09:21:54]name=ofd_packets/00162442 [09:21:54]NVStorageDeleteData [09:21:54]Write to MH i2c: 01 00 00 77 0D 84 [09:21:54]Write i2c OK [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: 01 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: 01 07 00 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: 01 07 00 77 0D 00 00 00 00 00 FD 0C 94 [09:21:54]RasterBufferAndPrint [09:21:54]line [09:21:54]line [09:21:54]line [09:21:54]line [09:21:54]line [09:21:54]written 0, free lines is 3334 [09:21:54]MH_Cut [09:21:54]Write to MH i2c: D1 01 00 7E 0D 01 5D [09:21:54]Write i2c OK [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: D1 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: D1 01 00 [09:21:54]MH_I2C_Read... [09:21:54]Read from MH i2c: D1 01 00 7E 0D 00 5C [09:21:54]Write to MH i2c: 01 00 00 7F 0D 8C [09:21:54]Write i2c OK [09:21:54]MH_I2C_Read... [09:21:54]OFD Sender: No OFD packet to send [09:21:55]*** Cut start [09:21:55]*** Purtial cut [09:21:55]*** Stage 1: CUTSNS_PIN = 1 [09:21:55]Read from MH i2c: 01 [09:21:55]MH_I2C_Read... [09:21:55]*** Stop cut motor [09:21:55]*** Cut end [09:21:55]Read from MH i2c: 01 07 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: 01 07 00 7F 0D 00 00 00 00 00 FF 0F A1 [09:21:55]process_action close_receipt done [09:21:55]requested_data is exist [09:21:55]produce_requested_data [09:21:55]requested_item fm.sn is exist - process it [09:21:55]wFMCommunicate request_size=4 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 11 00 00 [09:21:55]Write to MH i2c: E2 08 00 80 0D 80 11 00 00 00 00 00 00 07 [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 17 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 17 00 80 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 67 [09:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:21:55]wFMCommunicate OK [09:21:55]requested_item fd.num is exist - process it [09:21:55]SAM_PROTO_GetFieldsCounters [09:21:55]wFMCommunicate request_size=4 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 13 00 00 [09:21:55]Write to MH i2c: E2 08 00 81 0D 80 13 00 00 00 00 00 00 0A [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 62 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 62 00 81 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [09: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:55]wFMCommunicate OK [09:21:55]SAM_PROTO_GetFieldsCounters done [09:21:55]requested_item shift.num is exist - process it [09:21:55]requested_item shift.opened is exist - process it [09:21:55]req_shift_opened [09:21:55]FM_GetShiftState [09:21:55]SAM_PROTO_GetShiftState [09:21:55]wFMCommunicate request_size=4 [09:21:55]MH_SAM_APDU [09:21:55]CAPDU: 80 13 01 00 [09:21:55]Write to MH i2c: E2 08 00 82 0D 80 13 01 00 00 00 00 00 0C [09:21:55]Write i2c OK [09:21:55]MH_I2C_Read... [09:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:55]Read from MH i2c: E2 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 0E 00 [09:21:55]MH_I2C_Read... [09:21:55]Read from MH i2c: E2 0E 00 82 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 06 [09:21:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:21:55]wFMCommunicate OK [09:21:55]SAM_PROTO_GetShiftState done [09:21:55]FM_GetShiftState done [09:21:55]req_shift_opened done [09:21:55]requested_item shift.open_date is exist - process it [09:21:55]req_shift_open_date [09:21:55]req_shift_open_date done [09:21:55]produce_requested_data done [09:21:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162442,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:21:55]process_action_free close_receipt [09:21:55]json_value_free [09:21:55]json_value_free done [09:21:55]process_json_proto returns [09:21:55]Send response to host [09:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162442,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:21:55]free response buf [09:21:55]execute_script done [09:21:55]execute_script returns [09:21:55]free content buf [09:21:55]Sock 8.Close socket [09:21:55]Sock 8.Thread stoped [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:40]accept exits with 9 [09:22:40]New connection [09:22:40]New thread 3066862948 created [09:22:40]Thread 3067006308 joined [09:22:40]Waiting for new connection... [09:22:40] Sock 9.Parse request [09:22:40]Sock 9.Check first char [09:22:40]Sock 9.First char is OK [09:22:40]request: POST /json_proto HTTP/1.0 [09:22:40]Method: POST [09:22:40]URL: /json_proto [09:22:40]Method is POST - this is cgi request [09:22:40]url: /json_proto [09:22:40]query_string will be loaded in cgi processing [09:22:40]execute_cgi json_proto POST (null) [09:22:40]execute_cgi path=json_proto method=POST [09:22:40]POST find Content-Length [09:22:40]Host: 172.17.39.67:8080 [09:22:40]Content-Length: 683 [09:22:40]Content-Type: application/json [09:22:40] [09:22:40]POST finish read [09:22:40]Found Content-Length = 683 [09:22:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:40]execute_script... [09:22:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:40]POST & json_proto [09:22:40]process_json_proto [09:22:40]json parsed OK: [09:22:40]protocol is kg_v1.0 [09:22:40]action value=close_receipt [09:22:40]process_action close_receipt [09:22:40]cmd_close_receipt [09:22:40]MH_GetDate [09:22:40]Write to MH i2c: F0 00 00 83 0D 7F [09:22:40]Write i2c OK [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: F0 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: F0 09 00 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: F0 09 00 83 0D 00 6E 47 92 66 FA E9 8E 66 0C [09:22:40]GetLastDocTimeStamp 1720862525 [09:22:40]current date 1720862574 [09:22:40]FM_GetShiftState [09:22:40]SAM_PROTO_GetShiftState [09:22:40]wFMCommunicate request_size=4 [09:22:40]MH_SAM_APDU [09:22:40]CAPDU: 80 13 01 00 [09:22:40]Write to MH i2c: E2 08 00 84 0D 80 13 01 00 00 00 00 00 0E [09:22:40]Write i2c OK [09:22:40]MH_I2C_Read... [09:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:40]Read from MH i2c: E2 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: E2 0E 00 [09:22:40]MH_I2C_Read... [09:22:40]Read from MH i2c: E2 0E 00 84 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 08 [09:22:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:22:40]wFMCommunicate OK [09:22:40]SAM_PROTO_GetShiftState done [09:22:40]FM_GetShiftState done [09:22:40]opened in 1720828979 [09:22:40]opened+sec_in_day 1720915379 [09:22:40]quantity*price = 100046 [09:22:40]sum+1 = 100048 [09:22:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 111 13.07.2024 09:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162443 ФПД: 159593473671299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162443&fm=159593473671299&tin=02508201610067®Number=0000000000090858&sum=100000 [09:22:41]StoreToDocumentArchive [09:22:41]shift 462 fd 162443 [09:22:41]save to /storage/0462/doc_00162443 [09:22:41]save last doc name /storage/0462/doc_00162443 to /storage/kkm_last_doc_name [09:22:41]save OK [09:22:41]Clear old archive folders... [09:22:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:22:41]tlvbuf is 01950C90 [09:22:41]SAM_PROTO_ClearQueue [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 09 00 00 [09:22:41]Write to MH i2c: E2 08 00 91 0D 80 09 00 00 00 00 00 00 10 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [09:22:41]RAPDU: 90 00 [09:22:41]wFMCommunicate OK [09:22:41]SAM_PROTO_ClearQueue done [09:22:41]KKMCreateOFDPacket [09:22:41]OFDProtocolAddRootSTLVToBuf [09:22:41]FM_MakeSignedData [09:22:41]FM_MakeSignedData [09:22:41]SAM_PROTO_SignData [09:22:41]wFMCommunicate request_size=4 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 0D 01 02 [09:22:41]Write to MH i2c: E2 08 00 92 0D 80 0D 01 02 00 00 00 00 18 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:41]Read from MH i2c: E2 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 [09:22:41]MH_I2C_Read... [09:22:41]Read from MH i2c: E2 03 00 92 0D 00 90 00 13 [09:22:41]RAPDU: 90 00 [09:22:41]wFMCommunicate OK [09:22:41]wFMCommunicate request_size=255 [09:22:41]MH_SAM_APDU [09:22:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 6E 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7A 02 00 35 04 06 00 91 [09:22:41]Write to MH i2c: E2 02 01 93 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 6E 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7A 02 00 35 04 06 00 91 00 00 A7 [09:22:41]Write i2c OK [09:22:41]MH_I2C_Read... [09:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:42]Read from MH i2c: E2 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 03 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 03 00 93 0D 00 90 00 14 [09:22:42]RAPDU: 90 00 [09:22:42]wFMCommunicate OK [09:22:42]wFMCommunicate request_size=10 [09:22:42]MH_SAM_APDU [09:22:42]CAPDU: 80 0D 02 02 05 26 40 4E 80 83 [09:22:42]Write to MH i2c: E2 0D 00 94 0D 80 0D 02 02 05 00 26 40 4E 80 83 00 00 DC [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:42]Read from MH i2c: E2 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 03 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [09:22:42]RAPDU: 90 00 [09:22:42]wFMCommunicate OK [09:22:42]wFMCommunicate request_size=4 [09:22:42]MH_SAM_APDU [09:22:42]CAPDU: 80 0D 03 02 [09:22:42]Write to MH i2c: E2 08 00 95 0D 80 0D 03 02 00 00 00 00 1D [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:42]Read from MH i2c: E2 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 0B 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 0B 00 95 0D 00 08 24 49 26 CF 63 AF 73 90 00 0D [09:22:42]RAPDU: 08 24 49 26 CF 63 AF 73 90 00 [09:22:42]wFMCommunicate OK [09:22:42]SAM_PROTO_SignData done [09:22:42]FM_MakeSignedData done [09:22:42]CreateOFDProtocolMessage [09:22:42]wFMCommunicate request_size=4 [09:22:42]MH_SAM_APDU [09:22:42]CAPDU: 80 11 00 00 [09:22:42]Write to MH i2c: E2 08 00 96 0D 80 11 00 00 00 00 00 00 1D [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:42]Read from MH i2c: E2 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 17 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: E2 17 00 96 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7D [09:22:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:22:42]wFMCommunicate OK [09:22:42]CreateOFDProtocolMessage done [09:22:42]OFDSenderStorePacket 162443 [09:22:42]StoreOFDPacket docnum=162443 [09:22:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 99 B1 07 01 C7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 6E 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7A 02 00 35 04 06 00 91 26 40 4E 80 83 08 24 49 26 CF 63 AF 73 [09:22:42]CheckFolder [09:22:42]dirname=/storage/ofd_packets [09:22:42]CheckFolder done [09:22:42]ProducePacketName [09:22:42]name=ofd_packets/00162443 [09:22:42]NVStorageSaveData ofd_packets/00162443 [09:22:42]File name is /storage/ofd_packets/00162443 [09:22:42]Write 301 bytes [09:22:42]NVStorageSaveData done [09:22:42]OFDSenderStorePacket done [09:22:42]KKMCreateOFDPacket done [09:22:42]NVStorageSaveData kkm_last_timestamp [09:22:42]File name is /storage/kkm_last_timestamp [09:22:42]Write 4 bytes [09:22:42]NVStorageSaveData done [09:22:42]ExternCall_PrintAddStr [09:22:42]wPrintStart [09:22:42]Write to MH i2c: 01 00 00 97 0D A4 [09:22:42]Write i2c OK [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: 01 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: 01 07 00 [09:22:42]MH_I2C_Read... [09:22:42]Read from MH i2c: 01 07 00 97 0D 00 00 00 00 00 FF 0F B9 [09:22:42]RasterBufferAndPrint [09:22:42]line Счет N : (1)1318977 [09:22:42]line ИНН: 02508201610067 [09:22:42]line Контрольно-Кассовый Чек [09:22:42]line ПРОДАЖА [09:22:42]line ТРК (МРК, ГНК) : 33 [09:22:42]line Товар: 2710124130 [09:22:42]line Аи-92-К-5 [09:22:42]line 15.090 * 66.30 [09:22:42]line = 1000.47 [09:22:42]line НДС 12% НСП 1% [09:22:42]line > о реализуемом товаре [09:22:42]line ОКРУГЛЕНИЕ: -0.47 [09:22:42]line ИТОГО: 1000.00 [09:22:42]line Внесено: 1000.00 [09:22:42]line СДАЧА: 0.00 [09:22:42]line НСП 1% : 8.85 [09:22:42]line НДС 12% : 106.24 [09:22:42]line Наличными: 1000.00 [09:22:42]line Безнал.: 0.00 [09:22:42]line Место: АЗС № 140 "Партнер Нефть" [09:22:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:22:42]line СНО: Общий режим [09:22:42]line Чек 111 13.07.2024 09:22 [09:22:42]line Смена: 462 ФФД: 1.0 [09:22:42]line ЗНМ: 0300000129 [09:22:42]line РНМ: 0000000000090858 [09:22:42]line Версия ККМ: 001 [09:22:42]line ФМ: 0000000000874899 [09:22:42]line ФД: 162443 [09:22:42]line ФПД: 159593473671299 [09:22:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162443&fm=159593473671299&tin=02508201610067®Number=0000000000090858&sum=100000 [09:22:42]OFD Sender: Processing packet 162443 [packets to send 105, broken 104] [09:22:42]ProducePacketName [09:22:42]name=ofd_packets/00162443 [09:22:42]OFD Sender: To server: pG, [09:22:42]CommunicateWithHost lk.salyk.kg:30040 [09:22:42]ConnectInit lk.salyk.kg [09:22:42]written 0, free lines is 4095 [09:22:42]Connected sock=11 [09:22:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 99 B1 07 01 C7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6F 00 00 00 F4 03 04 00 6E 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7A 02 00 35 04 06 00 91 26 40 4E 80 83 08 24 49 26 CF 63 AF 73 [09:22:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BD B1 47 00 9E F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7A 02 00 F4 03 04 00 83 F3 91 66 B6 04 01 00 00 10 4D 63 23 0C 65 BF 56 [09:22:42]CommunicateWithHost err = 0 [09:22:42]CheckOFDResponse [09:22:42]1017 (14) - 77093643461234 [09:22:42]1041 (16) - 0000000000874899 [09:22:42]1040 (4) - 162443 [09:22:42]1012 (4) - 13.07.2024 03:24 [09:22:42]1206 (1) - 0 [09:22:42]OFD Sender: Remove packet 162443 [09:22:42]ProducePacketName [09:22:42]name=ofd_packets/00162443 [09:22:42]NVStorageDeleteData [09:22:43]Write to MH i2c: 01 00 00 C2 0D CF [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 07 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: 01 07 00 C2 0D 00 00 00 00 00 E4 0C C6 [09:22:43]RasterBufferAndPrint [09:22:43]line [09:22:43]line [09:22:43]line [09:22:43]line [09:22:43]line [09:22:43]written 0, free lines is 3306 [09:22:43]MH_Cut [09:22:43]Write to MH i2c: D1 01 00 C9 0D 01 A8 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: D1 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: D1 01 00 [09:22:43]MH_I2C_Read... [09:22:43]Read from MH i2c: D1 01 00 C9 0D 00 A7 [09:22:43]Write to MH i2c: 01 00 00 CA 0D D7 [09:22:43]Write i2c OK [09:22:43]MH_I2C_Read... [09:22:43]OFD Sender: No OFD packet to send [09:22:43]*** Cut start [09:22:43]*** Purtial cut [09:22:43]*** CUTSNS_PIN = 0 [09:22:44]*** Stage 1: CUTSNS_PIN = 1 [09:22:45]Read from MH i2c: 01 [09:22:45]MH_I2C_Read... [09:22:45]*** Stop cut motor [09:22:45]*** Cut end [09:22:45]Read from MH i2c: 01 07 00 [09:22:45]MH_I2C_Read... [09:22:45]Read from MH i2c: 01 07 00 CA 0D 00 00 00 00 00 FF 0F EC [09:22:45]process_action close_receipt done [09:22:45]requested_data is exist [09:22:45]produce_requested_data [09:22:45]requested_item fm.sn is exist - process it [09:22:45]wFMCommunicate request_size=4 [09:22:45]MH_SAM_APDU [09:22:45]CAPDU: 80 11 00 00 [09:22:45]Write to MH i2c: E2 08 00 CB 0D 80 11 00 00 00 00 00 00 52 [09:22:45]Write i2c OK [09:22:45]MH_I2C_Read... [09:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:45]Read from MH i2c: E2 [09:22:45]MH_I2C_Read... [09:22:45]Read from MH i2c: E2 17 00 [09:22:45]MH_I2C_Read... [09:22:45]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 34 38 39 39 90 00 B2 [09:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:22:45]wFMCommunicate OK [09:22:45]requested_item fd.num is exist - process it [09:22:45]SAM_PROTO_GetFieldsCounters [09:22:45]wFMCommunicate request_size=4 [09:22:45]MH_SAM_APDU [09:22:45]CAPDU: 80 13 00 00 [09:22:45]Write to MH i2c: E2 08 00 CC 0D 80 13 00 00 00 00 00 00 55 [09:22:45]Write i2c OK [09:22:45]MH_I2C_Read... [09:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:46]Read from MH i2c: E2 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 62 00 [09:22:46]MH_I2C_Read... [09:22:46]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [09:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:46]wFMCommunicate OK [09:22:46]SAM_PROTO_GetFieldsCounters done [09:22:46]requested_item shift.num is exist - process it [09:22:46]requested_item shift.opened is exist - process it [09:22:46]req_shift_opened [09:22:46]FM_GetShiftState [09:22:46]SAM_PROTO_GetShiftState [09:22:46]wFMCommunicate request_size=4 [09:22:46]MH_SAM_APDU [09:22:46]CAPDU: 80 13 01 00 [09:22:46]Write to MH i2c: E2 08 00 CD 0D 80 13 01 00 00 00 00 00 57 [09:22:46]Write i2c OK [09:22:46]MH_I2C_Read... [09:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:46]Read from MH i2c: E2 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 0E 00 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 0E 00 CD 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 51 [09:22:46]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:22:46]wFMCommunicate OK [09:22:46]SAM_PROTO_GetShiftState done [09:22:46]FM_GetShiftState done [09:22:46]req_shift_opened done [09:22:46]requested_item shift.open_date is exist - process it [09:22:46]req_shift_open_date [09:22:46]req_shift_open_date done [09:22:46]produce_requested_data done [09:22:46]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162443,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:22:46]process_action_free close_receipt [09:22:46]json_value_free [09:22:46]json_value_free done [09:22:46]process_json_proto returns [09:22:46]Send response to host [09:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162443,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:22:46]free response buf [09:22:46]execute_script done [09:22:46]execute_script returns [09:22:46]free content buf [09:22:46]Sock 9.Close socket [09:22:46]Sock 9.Thread stoped [09:22:46]accept exits with 8 [09:22:46]New connection [09:22:46]New thread 3067006308 created [09:22:46]Thread 3066862948 joined [09:22:46]Waiting for new connection... [09:22:46] Sock 8.Parse request [09:22:46]Sock 8.Check first char [09:22:46]Sock 8.First char is OK [09:22:46]request: POST /json_proto HTTP/1.0 [09:22:46]Method: POST [09:22:46]URL: /json_proto [09:22:46]Method is POST - this is cgi request [09:22:46]url: /json_proto [09:22:46]query_string will be loaded in cgi processing [09:22:46]execute_cgi json_proto POST (null) [09:22:46]execute_cgi path=json_proto method=POST [09:22:46]POST find Content-Length [09:22:46]Host: 172.17.39.67:8080 [09:22:46]Content-Length: 688 [09:22:46]Content-Type: application/json [09:22:46] [09:22:46]POST finish read [09:22:46]Found Content-Length = 688 [09:22:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:22:46]execute_script... [09:22: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)1318974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:22:46]POST & json_proto [09:22:46]process_json_proto [09:22:46]json parsed OK: [09:22:46]protocol is kg_v1.0 [09:22:46]action value=close_receipt [09:22:46]process_action close_receipt [09:22:46]cmd_close_receipt [09:22:46]MH_GetDate [09:22:46]Write to MH i2c: F0 00 00 CE 0D CA [09:22:46]Write i2c OK [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: F0 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: F0 09 00 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: F0 09 00 CE 0D 00 74 47 92 66 FA E9 8E 66 5D [09:22:46]GetLastDocTimeStamp 1720862574 [09:22:46]current date 1720862580 [09:22:46]FM_GetShiftState [09:22:46]SAM_PROTO_GetShiftState [09:22:46]wFMCommunicate request_size=4 [09:22:46]MH_SAM_APDU [09:22:46]CAPDU: 80 13 01 00 [09:22:46]Write to MH i2c: E2 08 00 CF 0D 80 13 01 00 00 00 00 00 59 [09:22:46]Write i2c OK [09:22:46]MH_I2C_Read... [09:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:46]Read from MH i2c: E2 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 0E 00 [09:22:46]MH_I2C_Read... [09:22:46]Read from MH i2c: E2 0E 00 CF 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 53 [09:22:46]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:22:46]wFMCommunicate OK [09:22:46]SAM_PROTO_GetShiftState done [09:22:46]FM_GetShiftState done [09:22:46]opened in 1720828979 [09:22:46]opened+sec_in_day 1720915379 [09:22:46]quantity*price = 100042 [09:22:46]sum+1 = 100044 [09:22:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 112 13.07.2024 09:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162444 ФПД: 143637155955648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092300&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162444&fm=143637155955648&tin=02508201610067®Number=0000000000090858&sum=100000 [09:22:47]StoreToDocumentArchive [09:22:47]shift 462 fd 162444 [09:22:47]save to /storage/0462/doc_00162444 [09:22:47]save last doc name /storage/0462/doc_00162444 to /storage/kkm_last_doc_name [09:22:47]save OK [09:22:47]Clear old archive folders... [09:22:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:22:47]tlvbuf is 0197C980 [09:22:47]SAM_PROTO_ClearQueue [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 09 00 00 [09:22:47]Write to MH i2c: E2 08 00 DC 0D 80 09 00 00 00 00 00 00 5B [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [09:22:47]RAPDU: 90 00 [09:22:47]wFMCommunicate OK [09:22:47]SAM_PROTO_ClearQueue done [09:22:47]KKMCreateOFDPacket [09:22:47]OFDProtocolAddRootSTLVToBuf [09:22:47]FM_MakeSignedData [09:22:47]FM_MakeSignedData [09:22:47]SAM_PROTO_SignData [09:22:47]wFMCommunicate request_size=4 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 0D 01 02 [09:22:47]Write to MH i2c: E2 08 00 DD 0D 80 0D 01 02 00 00 00 00 63 [09:22:47]Write i2c OK [09:22:47]MH_I2C_Read... [09:22:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:47]Read from MH i2c: E2 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 [09:22:47]MH_I2C_Read... [09:22:47]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [09:22:47]RAPDU: 90 00 [09:22:47]wFMCommunicate OK [09:22:47]wFMCommunicate request_size=255 [09:22:47]MH_SAM_APDU [09:22:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 70 00 00 00 F4 03 04 00 74 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7A 02 00 35 04 06 00 [09:22:48]Write to MH i2c: E2 02 01 DE 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 70 00 00 00 F4 03 04 00 74 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7A 02 00 35 04 06 00 00 00 F6 [09:22:48]Write i2c OK [09:22:48]MH_I2C_Read... [09:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:48]Read from MH i2c: E2 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: E2 03 00 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: E2 03 00 DE 0D 00 90 00 5F [09:22:48]RAPDU: 90 00 [09:22:48]wFMCommunicate OK [09:22:48]wFMCommunicate request_size=11 [09:22:48]MH_SAM_APDU [09:22:48]CAPDU: 80 0D 02 02 06 82 A3 21 A8 43 C0 [09:22:48]Write to MH i2c: E2 0E 00 DF 0D 80 0D 02 02 06 00 82 A3 21 A8 43 C0 00 00 63 [09:22:48]Write i2c OK [09:22:48]MH_I2C_Read... [09:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:48]Read from MH i2c: E2 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: E2 03 00 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: E2 03 00 DF 0D 00 90 00 60 [09:22:48]RAPDU: 90 00 [09:22:48]wFMCommunicate OK [09:22:48]wFMCommunicate request_size=4 [09:22:48]MH_SAM_APDU [09:22:48]CAPDU: 80 0D 03 02 [09:22:48]Write to MH i2c: E2 08 00 E0 0D 80 0D 03 02 00 00 00 00 68 [09:22:48]Write i2c OK [09:22:48]MH_I2C_Read... [09:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:48]Read from MH i2c: E2 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: E2 0B 00 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: E2 0B 00 E0 0D 00 EF 79 87 25 02 8F 85 64 90 00 F7 [09:22:48]RAPDU: EF 79 87 25 02 8F 85 64 90 00 [09:22:48]wFMCommunicate OK [09:22:48]SAM_PROTO_SignData done [09:22:48]FM_MakeSignedData done [09:22:48]CreateOFDProtocolMessage [09:22:48]wFMCommunicate request_size=4 [09:22:48]MH_SAM_APDU [09:22:48]CAPDU: 80 11 00 00 [09:22:48]Write to MH i2c: E2 08 00 E1 0D 80 11 00 00 00 00 00 00 68 [09:22:48]Write i2c OK [09:22:48]MH_I2C_Read... [09:22:48]OFD Sender: No OFD packet to send [09:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:48]Read from MH i2c: E2 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: E2 17 00 [09:22:48]MH_I2C_Read... [09:22:48]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 34 38 39 39 90 00 C8 [09:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:22:48]wFMCommunicate OK [09:22:48]CreateOFDProtocolMessage done [09:22:48]OFDSenderStorePacket 162444 [09:22:48]StoreOFDPacket docnum=162444 [09:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6E 5A 08 01 FA C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 70 00 00 00 F4 03 04 00 74 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7A 02 00 35 04 06 00 82 A3 21 A8 43 C0 EF 79 87 25 02 8F 85 64 [09:22:48]CheckFolder [09:22:48]dirname=/storage/ofd_packets [09:22:48]CheckFolder done [09:22:48]ProducePacketName [09:22:48]name=ofd_packets/00162444 [09:22:48]NVStorageSaveData ofd_packets/00162444 [09:22:48]File name is /storage/ofd_packets/00162444 [09:22:48]Write 302 bytes [09:22:48]NVStorageSaveData done [09:22:48]OFDSenderStorePacket done [09:22:48]KKMCreateOFDPacket done [09:22:48]NVStorageSaveData kkm_last_timestamp [09:22:48]File name is /storage/kkm_last_timestamp [09:22:48]Write 4 bytes [09:22:48]NVStorageSaveData done [09:22:48]ExternCall_PrintAddStr [09:22:48]wPrintStart [09:22:48]Write to MH i2c: 01 00 00 E2 0D EF [09:22:48]Write i2c OK [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: 01 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: 01 07 00 [09:22:48]MH_I2C_Read... [09:22:48]Read from MH i2c: 01 07 00 E2 0D 00 00 00 00 00 FF 0F 04 [09:22:48]RasterBufferAndPrint [09:22:48]line Счет N : (1)1318974 [09:22:48]line ИНН: 02508201610067 [09:22:48]line Контрольно-Кассовый Чек [09:22:48]line ПРОДАЖА [09:22:48]line ТРК (МРК, ГНК) : 41 [09:22:48]line Товар: 2710194210 [09:22:48]line ДТ(л)-К-5 [09:22:48]line 13.780 * 72.60 [09:22:48]line = 1000.43 [09:22:48]line НДС 12% НСП 1% [09:22:48]line > о реализуемом товаре [09:22:48]line ОКРУГЛЕНИЕ: -0.43 [09:22:48]line ИТОГО: 1000.00 [09:22:48]line Внесено: 1000.00 [09:22:48]line СДАЧА: 0.00 [09:22:48]line НСП 1% : 8.85 [09:22:48]line НДС 12% : 106.24 [09:22:48]line Наличными: 1000.00 [09:22:48]line Безнал.: 0.00 [09:22:48]line Место: АЗС № 140 "Партнер Нефть" [09:22:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:22:48]line СНО: Общий режим [09:22:48]line Чек 112 13.07.2024 09:23 [09:22:48]line Смена: 462 ФФД: 1.0 [09:22:48]line ЗНМ: 0300000129 [09:22:48]line РНМ: 0000000000090858 [09:22:48]line Версия ККМ: 001 [09:22:48]line ФМ: 0000000000874899 [09:22:48]line ФД: 162444 [09:22:48]line ФПД: 143637155955648 [09:22:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092300&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162444&fm=143637155955648&tin=02508201610067®Number=0000000000090858&sum=100000 [09:22:48]OFD Sender: Processing packet 162444 [packets to send 105, broken 104] [09:22:48]ProducePacketName [09:22:48]name=ofd_packets/00162444 [09:22:48]OFD Sender: To server: pG, [09:22:48]CommunicateWithHost lk.salyk.kg:30040 [09:22:48]ConnectInit lk.salyk.kg [09:22:48]written 0, free lines is 4095 [09:22:48]Connected sock=10 [09:22:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6E 5A 08 01 FA C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 70 00 00 00 F4 03 04 00 74 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7A 02 00 35 04 06 00 82 A3 21 A8 43 C0 EF 79 87 25 02 8F 85 64 [09:22:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D9 BC 47 00 E4 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7A 02 00 F4 03 04 00 89 F3 91 66 B6 04 01 00 00 EB 0B 1A 08 D9 AD 77 ED [09:22:49]CommunicateWithHost err = 0 [09:22:49]CheckOFDResponse [09:22:49]1017 (14) - 77093643461234 [09:22:49]1041 (16) - 0000000000874899 [09:22:49]1040 (4) - 162444 [09:22:49]1012 (4) - 13.07.2024 03:24 [09:22:49]1206 (1) - 0 [09:22:49]OFD Sender: Remove packet 162444 [09:22:49]ProducePacketName [09:22:49]name=ofd_packets/00162444 [09:22:49]NVStorageDeleteData [09:22:49]Write to MH i2c: 01 00 00 0D 0E 1B [09:22:49]Write i2c OK [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: 01 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: 01 07 00 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: 01 07 00 0D 0E 00 00 00 00 00 F5 0C 23 [09:22:49]RasterBufferAndPrint [09:22:49]line [09:22:49]line [09:22:49]line [09:22:49]line [09:22:49]line [09:22:49]written 0, free lines is 3329 [09:22:49]MH_Cut [09:22:49]Write to MH i2c: D1 01 00 14 0E 01 F4 [09:22:49]Write i2c OK [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: D1 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: D1 01 00 [09:22:49]MH_I2C_Read... [09:22:49]Read from MH i2c: D1 01 00 14 0E 00 F3 [09:22:49]Write to MH i2c: 01 00 00 15 0E 23 [09:22:49]Write i2c OK [09:22:49]MH_I2C_Read... [09:22:49]OFD Sender: No OFD packet to send [09:22:49]*** Cut start [09:22:49]*** Purtial cut [09:22:49]*** Stage 1: CUTSNS_PIN = 1 [09:22:50]Read from MH i2c: 01 [09:22:50]MH_I2C_Read... [09:22:50]*** Stop cut motor [09:22:50]*** Cut end [09:22:50]Read from MH i2c: 01 07 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: 01 07 00 15 0E 00 00 00 00 00 FF 0F 38 [09:22:50]process_action close_receipt done [09:22:50]requested_data is exist [09:22:50]produce_requested_data [09:22:50]requested_item fm.sn is exist - process it [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 11 00 00 [09:22:50]Write to MH i2c: E2 08 00 16 0E 80 11 00 00 00 00 00 00 9E [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 17 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 17 00 16 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FE [09:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:22:50]wFMCommunicate OK [09:22:50]requested_item fd.num is exist - process it [09:22:50]SAM_PROTO_GetFieldsCounters [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 13 00 00 [09:22:50]Write to MH i2c: E2 08 00 17 0E 80 13 00 00 00 00 00 00 A1 [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 62 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 62 00 17 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [09:22:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:50]wFMCommunicate OK [09:22:50]SAM_PROTO_GetFieldsCounters done [09:22:50]requested_item shift.num is exist - process it [09:22:50]requested_item shift.opened is exist - process it [09:22:50]req_shift_opened [09:22:50]FM_GetShiftState [09:22:50]SAM_PROTO_GetShiftState [09:22:50]wFMCommunicate request_size=4 [09:22:50]MH_SAM_APDU [09:22:50]CAPDU: 80 13 01 00 [09:22:50]Write to MH i2c: E2 08 00 18 0E 80 13 01 00 00 00 00 00 A3 [09:22:50]Write i2c OK [09:22:50]MH_I2C_Read... [09:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:50]Read from MH i2c: E2 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 0E 00 [09:22:50]MH_I2C_Read... [09:22:50]Read from MH i2c: E2 0E 00 18 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9D [09:22:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:22:50]wFMCommunicate OK [09:22:50]SAM_PROTO_GetShiftState done [09:22:50]FM_GetShiftState done [09:22:50]req_shift_opened done [09:22:50]requested_item shift.open_date is exist - process it [09:22:50]req_shift_open_date [09:22:50]req_shift_open_date done [09:22:50]produce_requested_data done [09:22:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162444,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:22:50]process_action_free close_receipt [09:22:50]json_value_free [09:22:50]json_value_free done [09:22:50]process_json_proto returns [09:22:50]Send response to host [09:22:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162444,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:22:50]free response buf [09:22:50]execute_script done [09:22:50]execute_script returns [09:22:50]free content buf [09:22:50]Sock 8.Close socket [09:22:50]Sock 8.Thread stoped [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:23]accept exits with 9 [09:23:23]New connection [09:23:23]New thread 3066862948 created [09:23:23]Thread 3067006308 joined [09:23:23]Waiting for new connection... [09:23:23] Sock 9.Parse request [09:23:23]Sock 9.Check first char [09:23:23]Sock 9.First char is OK [09:23:23]request: POST /json_proto HTTP/1.0 [09:23:23]Method: POST [09:23:23]URL: /json_proto [09:23:23]Method is POST - this is cgi request [09:23:23]url: /json_proto [09:23:23]query_string will be loaded in cgi processing [09:23:23]execute_cgi json_proto POST (null) [09:23:23]execute_cgi path=json_proto method=POST [09:23:23]POST find Content-Length [09:23:23]Host: 172.17.39.67:8080 [09:23:23]Content-Length: 671 [09:23:23]Content-Type: application/json [09:23:23] [09:23:23]POST finish read [09:23:23]Found Content-Length = 671 [09:23:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 4.460, "sum" : 300.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:23]execute_script... [09:23: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)1318975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 4.460, "sum" : 300.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:23]POST & json_proto [09:23:23]process_json_proto [09:23:23]json parsed OK: [09:23:23]protocol is kg_v1.0 [09:23:23]action value=close_receipt [09:23:23]process_action close_receipt [09:23:23]cmd_close_receipt [09:23:23]MH_GetDate [09:23:23]Write to MH i2c: F0 00 00 19 0E 16 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 09 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: F0 09 00 19 0E 00 98 47 92 66 FA E9 8E 66 CD [09:23:23]GetLastDocTimeStamp 1720862580 [09:23:23]current date 1720862616 [09:23:23]FM_GetShiftState [09:23:23]SAM_PROTO_GetShiftState [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 13 01 00 [09:23:23]Write to MH i2c: E2 08 00 1A 0E 80 13 01 00 00 00 00 00 A5 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0E 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0E 00 1A 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9F [09:23:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:23:23]wFMCommunicate OK [09:23:23]SAM_PROTO_GetShiftState done [09:23:23]FM_GetShiftState done [09:23:23]opened in 1720828979 [09:23:23]opened+sec_in_day 1720915379 [09:23:23]quantity*price = 30015 [09:23:23]sum+1 = 30017 [09:23:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.87 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 113 13.07.2024 09:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162445 ФПД: 201041949509094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092336&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162445&fm=201041949509094&tin=02508201610067®Number=0000000000090858&sum=30000 [09:23:24]StoreToDocumentArchive [09:23:24]shift 462 fd 162445 [09:23:24]save to /storage/0462/doc_00162445 [09:23:24]save last doc name /storage/0462/doc_00162445 to /storage/kkm_last_doc_name [09:23:24]save OK [09:23:24]Clear old archive folders... [09:23:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:23:24]tlvbuf is 01C7C7D0 [09:23:24]SAM_PROTO_ClearQueue [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 09 00 00 [09:23:24]Write to MH i2c: E2 08 00 27 0E 80 09 00 00 00 00 00 00 A7 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [09:23:24]RAPDU: 90 00 [09:23:24]wFMCommunicate OK [09:23:24]SAM_PROTO_ClearQueue done [09:23:24]KKMCreateOFDPacket [09:23:24]OFDProtocolAddRootSTLVToBuf [09:23:24]FM_MakeSignedData [09:23:24]FM_MakeSignedData [09:23:24]SAM_PROTO_SignData [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 0D 01 02 [09:23:24]Write to MH i2c: E2 08 00 28 0E 80 0D 01 02 00 00 00 00 AF [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [09:23:24]RAPDU: 90 00 [09:23:24]wFMCommunicate OK [09:23:24]wFMCommunicate request_size=255 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 40 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 98 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7A 02 00 35 04 06 00 [09:23:24]Write to MH i2c: E2 02 01 29 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 40 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 98 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7A 02 00 35 04 06 00 00 00 7F [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]OFD Sender: No OFD packet to send [09:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 29 0E 00 90 00 AB [09:23:24]RAPDU: 90 00 [09:23:24]wFMCommunicate OK [09:23:24]wFMCommunicate request_size=11 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 0D 02 02 06 B6 D8 B9 FC 45 E6 [09:23:24]Write to MH i2c: E2 0E 00 2A 0E 80 0D 02 02 06 00 B6 D8 B9 FC 45 E6 00 00 2C [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 03 00 2A 0E 00 90 00 AC [09:23:24]RAPDU: 90 00 [09:23:24]wFMCommunicate OK [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 0D 03 02 [09:23:24]Write to MH i2c: E2 08 00 2B 0E 80 0D 03 02 00 00 00 00 B4 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0B 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 0B 00 2B 0E 00 69 33 D5 86 8C C1 C9 20 90 00 E2 [09:23:24]RAPDU: 69 33 D5 86 8C C1 C9 20 90 00 [09:23:24]wFMCommunicate OK [09:23:24]SAM_PROTO_SignData done [09:23:24]FM_MakeSignedData done [09:23:24]CreateOFDProtocolMessage [09:23:24]wFMCommunicate request_size=4 [09:23:24]MH_SAM_APDU [09:23:24]CAPDU: 80 11 00 00 [09:23:24]Write to MH i2c: E2 08 00 2C 0E 80 11 00 00 00 00 00 00 B4 [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:24]Read from MH i2c: E2 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 17 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: E2 17 00 2C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 14 [09:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:23:24]wFMCommunicate OK [09:23:24]CreateOFDProtocolMessage done [09:23:24]OFDSenderStorePacket 162445 [09:23:24]StoreOFDPacket docnum=162445 [09:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 97 E2 08 01 3F 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 40 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 98 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7A 02 00 35 04 06 00 B6 D8 B9 FC 45 E6 69 33 D5 86 8C C1 C9 20 [09:23:24]CheckFolder [09:23:24]dirname=/storage/ofd_packets [09:23:24]CheckFolder done [09:23:24]ProducePacketName [09:23:24]name=ofd_packets/00162445 [09:23:24]NVStorageSaveData ofd_packets/00162445 [09:23:24]File name is /storage/ofd_packets/00162445 [09:23:24]Write 302 bytes [09:23:24]NVStorageSaveData done [09:23:24]OFDSenderStorePacket done [09:23:24]KKMCreateOFDPacket done [09:23:24]NVStorageSaveData kkm_last_timestamp [09:23:24]File name is /storage/kkm_last_timestamp [09:23:24]Write 4 bytes [09:23:24]NVStorageSaveData done [09:23:24]ExternCall_PrintAddStr [09:23:24]wPrintStart [09:23:24]Write to MH i2c: 01 00 00 2D 0E 3B [09:23:24]Write i2c OK [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 07 00 [09:23:24]MH_I2C_Read... [09:23:24]Read from MH i2c: 01 07 00 2D 0E 00 00 00 00 00 FF 0F 50 [09:23:24]RasterBufferAndPrint [09:23:24]line Счет N : (1)1318975 [09:23:24]line ИНН: 02508201610067 [09:23:24]line Контрольно-Кассовый Чек [09:23:24]line ПРОДАЖА [09:23:24]line ТРК (МРК, ГНК) : 62 [09:23:24]line Товар: 2710124130 [09:23:24]line Super-92-К-5 [09:23:24]line 4.460 * 67.30 [09:23:24]line = 300.16 [09:23:24]line НДС 12% НСП 1% [09:23:24]line > о реализуемом товаре [09:23:24]line ОКРУГЛЕНИЕ: -0.16 [09:23:24]line ИТОГО: 300.00 [09:23:24]line Внесено: 300.00 [09:23:24]line СДАЧА: 0.00 [09:23:24]line НСП 1% : 2.66 [09:23:24]line НДС 12% : 31.87 [09:23:24]line Наличными: 300.00 [09:23:24]line Безнал.: 0.00 [09:23:24]line Место: АЗС № 140 "Партнер Нефть" [09:23:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:23:24]line СНО: Общий режим [09:23:24]line Чек 113 13.07.2024 09:23 [09:23:24]line Смена: 462 ФФД: 1.0 [09:23:24]line ЗНМ: 0300000129 [09:23:24]line РНМ: 0000000000090858 [09:23:24]line Версия ККМ: 001 [09:23:24]line ФМ: 0000000000874899 [09:23:24]line ФД: 162445 [09:23:24]line ФПД: 201041949509094 [09:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092336&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162445&fm=201041949509094&tin=02508201610067®Number=0000000000090858&sum=30000 [09:23:25]OFD Sender: Processing packet 162445 [packets to send 105, broken 104] [09:23:25]ProducePacketName [09:23:25]name=ofd_packets/00162445 [09:23:25]OFD Sender: To server: pG, [09:23:25]CommunicateWithHost lk.salyk.kg:30040 [09:23:25]ConnectInit lk.salyk.kg [09:23:25]written 0, free lines is 4095 [09:23:25]Connected sock=11 [09:23:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 97 E2 08 01 3F 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 11 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 40 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 73 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 98 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7A 02 00 35 04 06 00 B6 D8 B9 FC 45 E6 69 33 D5 86 8C C1 C9 20 [09:23:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 43 CB 47 00 C1 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7A 02 00 F4 03 04 00 AD F3 91 66 B6 04 01 00 00 B6 49 E9 86 37 FD E4 D8 [09:23:25]CommunicateWithHost err = 0 [09:23:25]CheckOFDResponse [09:23:25]1017 (14) - 77093643461234 [09:23:25]1041 (16) - 0000000000874899 [09:23:25]1040 (4) - 162445 [09:23:25]1012 (4) - 13.07.2024 03:25 [09:23:25]1206 (1) - 0 [09:23:25]OFD Sender: Remove packet 162445 [09:23:25]ProducePacketName [09:23:25]name=ofd_packets/00162445 [09:23:25]NVStorageDeleteData [09:23:25]Write to MH i2c: 01 00 00 58 0E 66 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 EE 0C 67 [09:23:25]RasterBufferAndPrint [09:23:25]line [09:23:25]line [09:23:25]line [09:23:25]line [09:23:25]line [09:23:25]written 0, free lines is 3316 [09:23:25]MH_Cut [09:23:25]Write to MH i2c: D1 01 00 5F 0E 01 3F [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: D1 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: D1 01 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: D1 01 00 5F 0E 00 3E [09:23:25]Write to MH i2c: 01 00 00 60 0E 6E [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:26]OFD Sender: No OFD packet to send [09:23:26]*** Cut start [09:23:26]*** Purtial cut [09:23:26]*** CUTSNS_PIN = 0 [09:23:26]*** Stage 1: CUTSNS_PIN = 1 [09:23:28]Read from MH i2c: 01 [09:23:28]MH_I2C_Read... [09:23:28]*** Stop cut motor [09:23:28]*** Cut end [09:23:28]Read from MH i2c: 01 07 00 [09:23:28]MH_I2C_Read... [09:23:28]Read from MH i2c: 01 07 00 60 0E 00 00 00 00 00 FF 0F 83 [09:23:28]process_action close_receipt done [09:23:28]requested_data is exist [09:23:28]produce_requested_data [09:23:28]requested_item fm.sn is exist - process it [09:23:28]wFMCommunicate request_size=4 [09:23:28]MH_SAM_APDU [09:23:28]CAPDU: 80 11 00 00 [09:23:28]Write to MH i2c: E2 08 00 61 0E 80 11 00 00 00 00 00 00 E9 [09:23:28]Write i2c OK [09:23:28]MH_I2C_Read... [09:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:28]Read from MH i2c: E2 [09:23:28]MH_I2C_Read... [09:23:28]Read from MH i2c: E2 17 00 [09:23:28]MH_I2C_Read... [09:23:28]Read from MH i2c: E2 17 00 61 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 49 [09:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:23:28]wFMCommunicate OK [09:23:28]requested_item fd.num is exist - process it [09:23:28]SAM_PROTO_GetFieldsCounters [09:23:28]wFMCommunicate request_size=4 [09:23:28]MH_SAM_APDU [09:23:28]CAPDU: 80 13 00 00 [09:23:28]Write to MH i2c: E2 08 00 62 0E 80 13 00 00 00 00 00 00 EC [09:23:28]Write i2c OK [09:23:28]MH_I2C_Read... [09:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:28]Read from MH i2c: E2 [09:23:28]MH_I2C_Read... [09:23:28]Read from MH i2c: E2 62 00 [09:23:28]MH_I2C_Read... [09:23:28]Read from MH i2c: E2 62 00 62 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [09:23:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:28]wFMCommunicate OK [09:23:28]SAM_PROTO_GetFieldsCounters done [09:23:28]requested_item shift.num is exist - process it [09:23:28]requested_item shift.opened is exist - process it [09:23:28]req_shift_opened [09:23:28]FM_GetShiftState [09:23:28]SAM_PROTO_GetShiftState [09:23:28]wFMCommunicate request_size=4 [09:23:28]MH_SAM_APDU [09:23:28]CAPDU: 80 13 01 00 [09:23:28]Write to MH i2c: E2 08 00 63 0E 80 13 01 00 00 00 00 00 EE [09:23:28]Write i2c OK [09:23:28]MH_I2C_Read... [09:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:28]Read from MH i2c: E2 [09:23:28]MH_I2C_Read... [09:23:28]Read from MH i2c: E2 0E 00 [09:23:28]MH_I2C_Read... [09:23:28]Read from MH i2c: E2 0E 00 63 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E8 [09:23:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:23:28]wFMCommunicate OK [09:23:28]SAM_PROTO_GetShiftState done [09:23:28]FM_GetShiftState done [09:23:28]req_shift_opened done [09:23:28]requested_item shift.open_date is exist - process it [09:23:28]req_shift_open_date [09:23:28]req_shift_open_date done [09:23:28]produce_requested_data done [09:23:28]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162445,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:23:28]process_action_free close_receipt [09:23:28]json_value_free [09:23:28]json_value_free done [09:23:28]process_json_proto returns [09:23:28]Send response to host [09:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162445,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:23:28]free response buf [09:23:28]execute_script done [09:23:28]execute_script returns [09:23:28]free content buf [09:23:28]Sock 9.Close socket [09:23:28]Sock 9.Thread stoped [09:23:30]recv_with_timeout no data received [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:45]accept exits with 8 [09:23:45]New connection [09:23:45]New thread 3067006308 created [09:23:45]Thread 3066862948 joined [09:23:45]Waiting for new connection... [09:23:45] Sock 8.Parse request [09:23:45]Sock 8.Check first char [09:23:45]Sock 8.First char is OK [09:23:45]request: POST /json_proto HTTP/1.0 [09:23:45]Method: POST [09:23:45]URL: /json_proto [09:23:45]Method is POST - this is cgi request [09:23:45]url: /json_proto [09:23:45]query_string will be loaded in cgi processing [09:23:45]execute_cgi json_proto POST (null) [09:23:45]execute_cgi path=json_proto method=POST [09:23:45]POST find Content-Length [09:23:45]Host: 172.17.39.67:8080 [09:23:45]Content-Length: 679 [09:23:45]Content-Type: application/json [09:23:45] [09:23:45]POST finish read [09:23:45]Found Content-Length = 679 [09:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:45]execute_script... [09:23:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:45]POST & json_proto [09:23:45]process_json_proto [09:23:45]json parsed OK: [09:23:45]protocol is kg_v1.0 [09:23:45]action value=close_receipt [09:23:45]process_action close_receipt [09:23:45]cmd_close_receipt [09:23:45]MH_GetDate [09:23:45]Write to MH i2c: F0 00 00 64 0E 61 [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: F0 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: F0 09 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: F0 09 00 64 0E 00 AE 47 92 66 FA E9 8E 66 2E [09:23:45]GetLastDocTimeStamp 1720862616 [09:23:45]current date 1720862638 [09:23:45]FM_GetShiftState [09:23:45]SAM_PROTO_GetShiftState [09:23:45]wFMCommunicate request_size=4 [09:23:45]MH_SAM_APDU [09:23:45]CAPDU: 80 13 01 00 [09:23:45]Write to MH i2c: E2 08 00 65 0E 80 13 01 00 00 00 00 00 F0 [09:23:45]Write i2c OK [09:23:45]MH_I2C_Read... [09:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:45]Read from MH i2c: E2 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 0E 00 [09:23:45]MH_I2C_Read... [09:23:45]Read from MH i2c: E2 0E 00 65 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EA [09:23:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:23:45]wFMCommunicate OK [09:23:45]SAM_PROTO_GetShiftState done [09:23:45]FM_GetShiftState done [09:23:45]opened in 1720828979 [09:23:45]opened+sec_in_day 1720915379 [09:23:45]quantity*price = 67029 [09:23:45]sum+1 = 67030 [09:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 114 13.07.2024 09:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162446 ФПД: 62641026367347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092358&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162446&fm=62641026367347&tin=02508201610067®Number=0000000000090858&sum=67000 [09:23:46]StoreToDocumentArchive [09:23:46]shift 462 fd 162446 [09:23:46]save to /storage/0462/doc_00162446 [09:23:46]save last doc name /storage/0462/doc_00162446 to /storage/kkm_last_doc_name [09:23:46]save OK [09:23:46]Clear old archive folders... [09:23:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:23:46]tlvbuf is 01A18E60 [09:23:46]SAM_PROTO_ClearQueue [09:23:46]wFMCommunicate request_size=4 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 09 00 00 [09:23:46]Write to MH i2c: E2 08 00 72 0E 80 09 00 00 00 00 00 00 F2 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:46]Read from MH i2c: E2 03 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [09:23:46]RAPDU: 90 00 [09:23:46]wFMCommunicate OK [09:23:46]SAM_PROTO_ClearQueue done [09:23:46]KKMCreateOFDPacket [09:23:46]OFDProtocolAddRootSTLVToBuf [09:23:46]FM_MakeSignedData [09:23:46]FM_MakeSignedData [09:23:46]SAM_PROTO_SignData [09:23:46]wFMCommunicate request_size=4 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 0D 01 02 [09:23:46]Write to MH i2c: E2 08 00 73 0E 80 0D 01 02 00 00 00 00 FA [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 03 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [09:23:46]RAPDU: 90 00 [09:23:46]wFMCommunicate OK [09:23:46]wFMCommunicate request_size=255 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AE 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7A 02 00 35 04 06 00 38 [09:23:46]Write to MH i2c: E2 02 01 74 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AE 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7A 02 00 35 04 06 00 38 00 00 BD [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 03 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 03 00 74 0E 00 90 00 F6 [09:23:46]RAPDU: 90 00 [09:23:46]wFMCommunicate OK [09:23:46]wFMCommunicate request_size=10 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 0D 02 02 05 F8 C0 1F FF 73 [09:23:46]Write to MH i2c: E2 0D 00 75 0E 80 0D 02 02 05 00 F8 C0 1F FF 73 00 00 50 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 03 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 03 00 75 0E 00 90 00 F7 [09:23:46]RAPDU: 90 00 [09:23:46]wFMCommunicate OK [09:23:46]wFMCommunicate request_size=4 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 0D 03 02 [09:23:46]Write to MH i2c: E2 08 00 76 0E 80 0D 03 02 00 00 00 00 FF [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 0B 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 0B 00 76 0E 00 23 FD 65 9D 9E 87 AB E9 90 00 DB [09:23:46]RAPDU: 23 FD 65 9D 9E 87 AB E9 90 00 [09:23:46]wFMCommunicate OK [09:23:46]SAM_PROTO_SignData done [09:23:46]FM_MakeSignedData done [09:23:46]CreateOFDProtocolMessage [09:23:46]wFMCommunicate request_size=4 [09:23:46]MH_SAM_APDU [09:23:46]CAPDU: 80 11 00 00 [09:23:46]Write to MH i2c: E2 08 00 77 0E 80 11 00 00 00 00 00 00 FF [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:46]Read from MH i2c: E2 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 17 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: E2 17 00 77 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5F [09:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:23:46]wFMCommunicate OK [09:23:46]CreateOFDProtocolMessage done [09:23:46]OFDSenderStorePacket 162446 [09:23:46]StoreOFDPacket docnum=162446 [09:23:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F7 B0 07 01 D1 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AE 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7A 02 00 35 04 06 00 38 F8 C0 1F FF 73 23 FD 65 9D 9E 87 AB E9 [09:23:46]CheckFolder [09:23:46]dirname=/storage/ofd_packets [09:23:46]CheckFolder done [09:23:46]ProducePacketName [09:23:46]name=ofd_packets/00162446 [09:23:46]NVStorageSaveData ofd_packets/00162446 [09:23:46]File name is /storage/ofd_packets/00162446 [09:23:46]Write 301 bytes [09:23:46]NVStorageSaveData done [09:23:46]OFDSenderStorePacket done [09:23:46]KKMCreateOFDPacket done [09:23:46]NVStorageSaveData kkm_last_timestamp [09:23:46]File name is /storage/kkm_last_timestamp [09:23:46]Write 4 bytes [09:23:46]NVStorageSaveData done [09:23:46]ExternCall_PrintAddStr [09:23:46]wPrintStart [09:23:46]Write to MH i2c: 01 00 00 78 0E 86 [09:23:46]Write i2c OK [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 [09:23:46]MH_I2C_Read... [09:23:46]Read from MH i2c: 01 07 00 78 0E 00 00 00 00 00 FF 0F 9B [09:23:46]RasterBufferAndPrint [09:23:46]line Счет N : (1)1318976 [09:23:46]line ИНН: 02508201610067 [09:23:46]line Контрольно-Кассовый Чек [09:23:46]line ПРОДАЖА [09:23:46]line ТРК (МРК, ГНК) : 53 [09:23:46]line Товар: 2710124130 [09:23:46]line Аи-92-К-5 [09:23:46]line 10.110 * 66.30 [09:23:46]line = 670.29 [09:23:46]line НДС 12% НСП 1% [09:23:46]line > о реализуемом товаре [09:23:46]line ОКРУГЛЕНИЕ: -0.29 [09:23:46]line ИТОГО: 670.00 [09:23:46]line Внесено: 670.00 [09:23:46]line СДАЧА: 0.00 [09:23:46]line НСП 1% : 5.93 [09:23:46]line НДС 12% : 71.18 [09:23:46]line Наличными: 670.00 [09:23:46]line Безнал.: 0.00 [09:23:46]line Место: АЗС № 140 "Партнер Нефть" [09:23:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:23:46]line СНО: Общий режим [09:23:46]line Чек 114 13.07.2024 09:23 [09:23:46]line Смена: 462 ФФД: 1.0 [09:23:46]line ЗНМ: 0300000129 [09:23:46]line РНМ: 0000000000090858 [09:23:46]line Версия ККМ: 001 [09:23:46]line ФМ: 0000000000874899 [09:23:46]line ФД: 162446 [09:23:46]line ФПД: 62641026367347 [09:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092358&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162446&fm=62641026367347&tin=02508201610067®Number=0000000000090858&sum=67000 [09:23:47]OFD Sender: Processing packet 162446 [packets to send 105, broken 104] [09:23:47]ProducePacketName [09:23:47]name=ofd_packets/00162446 [09:23:47]OFD Sender: To server: pG, [09:23:47]CommunicateWithHost lk.salyk.kg:30040 [09:23:47]ConnectInit lk.salyk.kg [09:23:47]written 0, free lines is 4095 [09:23:47]Connected sock=10 [09:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F7 B0 07 01 D1 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 AE 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7A 02 00 35 04 06 00 38 F8 C0 1F FF 73 23 FD 65 9D 9E 87 AB E9 [09:23:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 70 40 47 00 FD 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7A 02 00 F4 03 04 00 C3 F3 91 66 B6 04 01 00 00 CC 6C 7F 3D 22 22 FF 26 [09:23:47]CommunicateWithHost err = 0 [09:23:47]CheckOFDResponse [09:23:47]1017 (14) - 77093643461234 [09:23:47]1041 (16) - 0000000000874899 [09:23:47]1040 (4) - 162446 [09:23:47]1012 (4) - 13.07.2024 03:25 [09:23:47]1206 (1) - 0 [09:23:47]OFD Sender: Remove packet 162446 [09:23:47]ProducePacketName [09:23:47]name=ofd_packets/00162446 [09:23:47]NVStorageDeleteData [09:23:47]Write to MH i2c: 01 00 00 A3 0E B1 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 07 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: 01 07 00 A3 0E 00 00 00 00 00 E2 0C A6 [09:23:47]RasterBufferAndPrint [09:23:47]line [09:23:47]line [09:23:47]line [09:23:47]line [09:23:47]line [09:23:47]written 0, free lines is 3304 [09:23:47]MH_Cut [09:23:47]Write to MH i2c: D1 01 00 AA 0E 01 8A [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: D1 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: D1 01 00 [09:23:47]MH_I2C_Read... [09:23:47]Read from MH i2c: D1 01 00 AA 0E 00 89 [09:23:47]Write to MH i2c: 01 00 00 AB 0E B9 [09:23:47]Write i2c OK [09:23:47]MH_I2C_Read... [09:23:48]OFD Sender: No OFD packet to send [09:23:48]*** Cut start [09:23:48]*** Purtial cut [09:23:48]*** Stage 1: CUTSNS_PIN = 1 [09:23:48]Read from MH i2c: 01 [09:23:48]MH_I2C_Read... [09:23:48]*** Stop cut motor [09:23:48]*** Cut end [09:23:48]Read from MH i2c: 01 07 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: 01 07 00 AB 0E 00 00 00 00 00 FF 0F CE [09:23:48]process_action close_receipt done [09:23:48]requested_data is exist [09:23:48]produce_requested_data [09:23:48]requested_item fm.sn is exist - process it [09:23:48]wFMCommunicate request_size=4 [09:23:48]MH_SAM_APDU [09:23:48]CAPDU: 80 11 00 00 [09:23:48]Write to MH i2c: E2 08 00 AC 0E 80 11 00 00 00 00 00 00 34 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 17 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 17 00 AC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 94 [09:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:23:48]wFMCommunicate OK [09:23:48]requested_item fd.num is exist - process it [09:23:48]SAM_PROTO_GetFieldsCounters [09:23:48]wFMCommunicate request_size=4 [09:23:48]MH_SAM_APDU [09:23:48]CAPDU: 80 13 00 00 [09:23:48]Write to MH i2c: E2 08 00 AD 0E 80 13 00 00 00 00 00 00 37 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 62 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 62 00 AD 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [09:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:48]wFMCommunicate OK [09:23:48]SAM_PROTO_GetFieldsCounters done [09:23:48]requested_item shift.num is exist - process it [09:23:48]requested_item shift.opened is exist - process it [09:23:48]req_shift_opened [09:23:48]FM_GetShiftState [09:23:48]SAM_PROTO_GetShiftState [09:23:48]wFMCommunicate request_size=4 [09:23:48]MH_SAM_APDU [09:23:48]CAPDU: 80 13 01 00 [09:23:48]Write to MH i2c: E2 08 00 AE 0E 80 13 01 00 00 00 00 00 39 [09:23:48]Write i2c OK [09:23:48]MH_I2C_Read... [09:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:48]Read from MH i2c: E2 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 0E 00 [09:23:48]MH_I2C_Read... [09:23:48]Read from MH i2c: E2 0E 00 AE 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 33 [09:23:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:23:48]wFMCommunicate OK [09:23:48]SAM_PROTO_GetShiftState done [09:23:48]FM_GetShiftState done [09:23:48]req_shift_opened done [09:23:48]requested_item shift.open_date is exist - process it [09:23:48]req_shift_open_date [09:23:48]req_shift_open_date done [09:23:48]produce_requested_data done [09:23:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162446,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:23:48]process_action_free close_receipt [09:23:48]json_value_free [09:23:48]json_value_free done [09:23:48]process_json_proto returns [09:23:48]Send response to host [09:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162446,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:23:48]free response buf [09:23:48]execute_script done [09:23:48]execute_script returns [09:23:48]free content buf [09:23:48]Sock 8.Close socket [09:23:48]Sock 8.Thread stoped [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:07]accept exits with 9 [09:24:07]New connection [09:24:07]New thread 3066862948 created [09:24:07]Thread 3067006308 joined [09:24:07]Waiting for new connection... [09:24:07] Sock 9.Parse request [09:24:07]Sock 9.Check first char [09:24:07]Sock 9.First char is OK [09:24:07]request: POST /json_proto HTTP/1.0 [09:24:07]Method: POST [09:24:07]URL: /json_proto [09:24:07]Method is POST - this is cgi request [09:24:07]url: /json_proto [09:24:07]query_string will be loaded in cgi processing [09:24:07]execute_cgi json_proto POST (null) [09:24:07]execute_cgi path=json_proto method=POST [09:24:07]POST find Content-Length [09:24:07]Host: 172.17.39.67:8080 [09:24:07]Content-Length: 688 [09:24:07]Content-Type: application/json [09:24:07] [09:24:07]POST finish read [09:24:07]Found Content-Length = 688 [09:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:24:07]execute_script... [09:24:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:24:07]POST & json_proto [09:24:07]process_json_proto [09:24:07]json parsed OK: [09:24:07]protocol is kg_v1.0 [09:24:07]action value=close_receipt [09:24:07]process_action close_receipt [09:24:07]cmd_close_receipt [09:24:07]MH_GetDate [09:24:07]Write to MH i2c: F0 00 00 AF 0E AC [09:24:07]Write i2c OK [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: F0 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: F0 09 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: F0 09 00 AF 0E 00 C5 47 92 66 FA E9 8E 66 90 [09:24:07]GetLastDocTimeStamp 1720862638 [09:24:07]current date 1720862661 [09:24:07]FM_GetShiftState [09:24:07]SAM_PROTO_GetShiftState [09:24:07]wFMCommunicate request_size=4 [09:24:07]MH_SAM_APDU [09:24:07]CAPDU: 80 13 01 00 [09:24:07]Write to MH i2c: E2 08 00 B0 0E 80 13 01 00 00 00 00 00 3B [09:24:07]Write i2c OK [09:24:07]MH_I2C_Read... [09:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:07]Read from MH i2c: E2 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 0E 00 [09:24:07]MH_I2C_Read... [09:24:07]Read from MH i2c: E2 0E 00 B0 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 35 [09:24:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:24:07]wFMCommunicate OK [09:24:07]SAM_PROTO_GetShiftState done [09:24:07]FM_GetShiftState done [09:24:07]opened in 1720828979 [09:24:07]opened+sec_in_day 1720915379 [09:24:07]quantity*price = 150064 [09:24:07]sum+1 = 150065 [09:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 115 13.07.2024 09:24 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162447 ФПД: 94359814417610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092421&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162447&fm=94359814417610&tin=02508201610067®Number=0000000000090858&sum=150000 [09:24:08]StoreToDocumentArchive [09:24:08]shift 462 fd 162447 [09:24:08]save to /storage/0462/doc_00162447 [09:24:08]save last doc name /storage/0462/doc_00162447 to /storage/kkm_last_doc_name [09:24:08]save OK [09:24:08]Clear old archive folders... [09:24:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:24:08]tlvbuf is 018417B0 [09:24:08]SAM_PROTO_ClearQueue [09:24:08]wFMCommunicate request_size=4 [09:24:08]MH_SAM_APDU [09:24:08]CAPDU: 80 09 00 00 [09:24:08]Write to MH i2c: E2 08 00 BD 0E 80 09 00 00 00 00 00 00 3D [09:24:08]Write i2c OK [09:24:08]MH_I2C_Read... [09:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:08]Read from MH i2c: E2 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: E2 03 00 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [09:24:08]RAPDU: 90 00 [09:24:08]wFMCommunicate OK [09:24:08]SAM_PROTO_ClearQueue done [09:24:08]KKMCreateOFDPacket [09:24:08]OFDProtocolAddRootSTLVToBuf [09:24:08]FM_MakeSignedData [09:24:08]FM_MakeSignedData [09:24:08]SAM_PROTO_SignData [09:24:08]wFMCommunicate request_size=4 [09:24:08]MH_SAM_APDU [09:24:08]CAPDU: 80 0D 01 02 [09:24:08]Write to MH i2c: E2 08 00 BE 0E 80 0D 01 02 00 00 00 00 45 [09:24:08]Write i2c OK [09:24:08]MH_I2C_Read... [09:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:08]Read from MH i2c: E2 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: E2 03 00 [09:24:08]MH_I2C_Read... [09:24:08]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [09:24:08]RAPDU: 90 00 [09:24:08]wFMCommunicate OK [09:24:08]wFMCommunicate request_size=255 [09:24:08]MH_SAM_APDU [09:24:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 73 00 00 00 F4 03 04 00 C5 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7A 02 00 35 04 06 00 [09:24:08]Write to MH i2c: E2 02 01 BF 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 73 00 00 00 F4 03 04 00 C5 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7A 02 00 35 04 06 00 00 00 18 [09:24:08]Write i2c OK [09:24:08]MH_I2C_Read... [09:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:09]Read from MH i2c: E2 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 03 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 03 00 BF 0E 00 90 00 41 [09:24:09]RAPDU: 90 00 [09:24:09]wFMCommunicate OK [09:24:09]wFMCommunicate request_size=11 [09:24:09]MH_SAM_APDU [09:24:09]CAPDU: 80 0D 02 02 06 55 D1 DB 38 2C CA [09:24:09]Write to MH i2c: E2 0E 00 C0 0E 80 0D 02 02 06 00 55 D1 DB 38 2C CA 00 00 83 [09:24:09]Write i2c OK [09:24:09]MH_I2C_Read... [09:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:09]Read from MH i2c: E2 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 03 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 03 00 C0 0E 00 90 00 42 [09:24:09]RAPDU: 90 00 [09:24:09]wFMCommunicate OK [09:24:09]wFMCommunicate request_size=4 [09:24:09]MH_SAM_APDU [09:24:09]CAPDU: 80 0D 03 02 [09:24:09]Write to MH i2c: E2 08 00 C1 0E 80 0D 03 02 00 00 00 00 4A [09:24:09]Write i2c OK [09:24:09]MH_I2C_Read... [09:24:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:09]Read from MH i2c: E2 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 0B 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 0B 00 C1 0E 00 7F 6E 03 28 54 AB 10 81 90 00 F3 [09:24:09]RAPDU: 7F 6E 03 28 54 AB 10 81 90 00 [09:24:09]wFMCommunicate OK [09:24:09]SAM_PROTO_SignData done [09:24:09]FM_MakeSignedData done [09:24:09]CreateOFDProtocolMessage [09:24:09]wFMCommunicate request_size=4 [09:24:09]MH_SAM_APDU [09:24:09]CAPDU: 80 11 00 00 [09:24:09]Write to MH i2c: E2 08 00 C2 0E 80 11 00 00 00 00 00 00 4A [09:24:09]Write i2c OK [09:24:09]MH_I2C_Read... [09:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:09]Read from MH i2c: E2 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 17 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: E2 17 00 C2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AA [09:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:24:09]wFMCommunicate OK [09:24:09]CreateOFDProtocolMessage done [09:24:09]OFDSenderStorePacket 162447 [09:24:09]StoreOFDPacket docnum=162447 [09:24:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E7 A1 08 01 08 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 73 00 00 00 F4 03 04 00 C5 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7A 02 00 35 04 06 00 55 D1 DB 38 2C CA 7F 6E 03 28 54 AB 10 81 [09:24:09]CheckFolder [09:24:09]dirname=/storage/ofd_packets [09:24:09]CheckFolder done [09:24:09]ProducePacketName [09:24:09]name=ofd_packets/00162447 [09:24:09]NVStorageSaveData ofd_packets/00162447 [09:24:09]File name is /storage/ofd_packets/00162447 [09:24:09]Write 302 bytes [09:24:09]NVStorageSaveData done [09:24:09]OFDSenderStorePacket done [09:24:09]KKMCreateOFDPacket done [09:24:09]NVStorageSaveData kkm_last_timestamp [09:24:09]File name is /storage/kkm_last_timestamp [09:24:09]Write 4 bytes [09:24:09]NVStorageSaveData done [09:24:09]ExternCall_PrintAddStr [09:24:09]wPrintStart [09:24:09]Write to MH i2c: 01 00 00 C3 0E D1 [09:24:09]Write i2c OK [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: 01 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: 01 07 00 [09:24:09]MH_I2C_Read... [09:24:09]Read from MH i2c: 01 07 00 C3 0E 00 00 00 00 00 FF 0F E6 [09:24:09]RasterBufferAndPrint [09:24:09]line Счет N : (1)1318979 [09:24:09]line ИНН: 02508201610067 [09:24:09]line Контрольно-Кассовый Чек [09:24:09]line ПРОДАЖА [09:24:09]line ТРК (МРК, ГНК) : 11 [09:24:09]line Товар: 2710194210 [09:24:09]line ДТ(л)-К-5 [09:24:09]line 20.670 * 72.60 [09:24:09]line = 1500.64 [09:24:09]line НДС 12% НСП 1% [09:24:09]line > о реализуемом товаре [09:24:09]line ОКРУГЛЕНИЕ: -0.64 [09:24:09]line ИТОГО: 1500.00 [09:24:09]line Внесено: 1500.00 [09:24:09]line СДАЧА: 0.00 [09:24:09]line НСП 1% : 13.28 [09:24:09]line НДС 12% : 159.36 [09:24:09]line Наличными: 1500.00 [09:24:09]line Безнал.: 0.00 [09:24:09]line Место: АЗС № 140 "Партнер Нефть" [09:24:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:24:09]line СНО: Общий режим [09:24:09]line Чек 115 13.07.2024 09:24 [09:24:09]line Смена: 462 ФФД: 1.0 [09:24:09]line ЗНМ: 0300000129 [09:24:09]line РНМ: 0000000000090858 [09:24:09]line Версия ККМ: 001 [09:24:09]line ФМ: 0000000000874899 [09:24:09]line ФД: 162447 [09:24:09]line ФПД: 94359814417610 [09:24:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092421&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162447&fm=94359814417610&tin=02508201610067®Number=0000000000090858&sum=150000 [09:24:09]OFD Sender: Processing packet 162447 [packets to send 105, broken 104] [09:24:09]ProducePacketName [09:24:09]name=ofd_packets/00162447 [09:24:09]OFD Sender: To server: pG, [09:24:09]CommunicateWithHost lk.salyk.kg:30040 [09:24:09]ConnectInit lk.salyk.kg [09:24:09]written 0, free lines is 4095 [09:24:09]Connected sock=10 [09:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E7 A1 08 01 08 31 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 73 00 00 00 F4 03 04 00 C5 47 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7A 02 00 35 04 06 00 55 D1 DB 38 2C CA 7F 6E 03 28 54 AB 10 81 [09:24:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9C B7 47 00 FA 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7A 02 00 F4 03 04 00 D9 F3 91 66 B6 04 01 00 00 A5 2E B6 94 F3 4A D3 44 [09:24:09]CommunicateWithHost err = 0 [09:24:09]CheckOFDResponse [09:24:09]1017 (14) - 77093643461234 [09:24:09]1041 (16) - 0000000000874899 [09:24:09]1040 (4) - 162447 [09:24:09]1012 (4) - 13.07.2024 03:26 [09:24:09]1206 (1) - 0 [09:24:09]OFD Sender: Remove packet 162447 [09:24:09]ProducePacketName [09:24:09]name=ofd_packets/00162447 [09:24:09]NVStorageDeleteData [09:24:10]Write to MH i2c: 01 00 00 EE 0E FC [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: 01 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: 01 07 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 04 0D 14 [09:24:10]RasterBufferAndPrint [09:24:10]line [09:24:10]line [09:24:10]line [09:24:10]line [09:24:10]line [09:24:10]written 0, free lines is 3341 [09:24:10]MH_Cut [09:24:10]Write to MH i2c: D1 01 00 F5 0E 01 D5 [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: D1 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: D1 01 00 [09:24:10]MH_I2C_Read... [09:24:10]Read from MH i2c: D1 01 00 F5 0E 00 D4 [09:24:10]Write to MH i2c: 01 00 00 F6 0E 04 [09:24:10]Write i2c OK [09:24:10]MH_I2C_Read... [09:24:10]OFD Sender: No OFD packet to send [09:24:10]*** Cut start [09:24:10]*** Purtial cut [09:24:10]*** CUTSNS_PIN = 0 [09:24:10]*** Stage 1: CUTSNS_PIN = 1 [09:24:12]Read from MH i2c: 01 [09:24:12]MH_I2C_Read... [09:24:12]*** Stop cut motor [09:24:12]*** Cut end [09:24:12]Read from MH i2c: 01 07 00 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: 01 07 00 F6 0E 00 00 00 00 00 FF 0F 19 [09:24:12]process_action close_receipt done [09:24:12]requested_data is exist [09:24:12]produce_requested_data [09:24:12]requested_item fm.sn is exist - process it [09:24:12]wFMCommunicate request_size=4 [09:24:12]MH_SAM_APDU [09:24:12]CAPDU: 80 11 00 00 [09:24:12]Write to MH i2c: E2 08 00 F7 0E 80 11 00 00 00 00 00 00 7F [09:24:12]Write i2c OK [09:24:12]MH_I2C_Read... [09:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:12]Read from MH i2c: E2 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: E2 17 00 [09:24:12]MH_I2C_Read... [09:24:12]Read from MH i2c: E2 17 00 F7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DF [09:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:24:12]wFMCommunicate OK [09:24:12]requested_item fd.num is exist - process it [09:24:12]SAM_PROTO_GetFieldsCounters [09:24:12]wFMCommunicate request_size=4 [09:24:12]MH_SAM_APDU [09:24:12]CAPDU: 80 13 00 00 [09:24:12]Write to MH i2c: E2 08 00 F8 0E 80 13 00 00 00 00 00 00 82 [09:24:12]Write i2c OK [09:24:12]MH_I2C_Read... [09:24:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:12]Read from MH i2c: E2 [09:24:12]MH_I2C_Read... [09:24:13]Read from MH i2c: E2 62 00 [09:24:13]MH_I2C_Read... [09:24:13]Read from MH i2c: E2 62 00 F8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [09:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:13]wFMCommunicate OK [09:24:13]SAM_PROTO_GetFieldsCounters done [09:24:13]requested_item shift.num is exist - process it [09:24:13]requested_item shift.opened is exist - process it [09:24:13]req_shift_opened [09:24:13]FM_GetShiftState [09:24:13]SAM_PROTO_GetShiftState [09:24:13]wFMCommunicate request_size=4 [09:24:13]MH_SAM_APDU [09:24:13]CAPDU: 80 13 01 00 [09:24:13]Write to MH i2c: E2 08 00 F9 0E 80 13 01 00 00 00 00 00 84 [09:24:13]Write i2c OK [09:24:13]MH_I2C_Read... [09:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:13]Read from MH i2c: E2 [09:24:13]MH_I2C_Read... [09:24:13]Read from MH i2c: E2 0E 00 [09:24:13]MH_I2C_Read... [09:24:13]Read from MH i2c: E2 0E 00 F9 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7E [09:24:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:24:13]wFMCommunicate OK [09:24:13]SAM_PROTO_GetShiftState done [09:24:13]FM_GetShiftState done [09:24:13]req_shift_opened done [09:24:13]requested_item shift.open_date is exist - process it [09:24:13]req_shift_open_date [09:24:13]req_shift_open_date done [09:24:13]produce_requested_data done [09:24:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162447,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:24:13]process_action_free close_receipt [09:24:13]json_value_free [09:24:13]json_value_free done [09:24:13]process_json_proto returns [09:24:13]Send response to host [09:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162447,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:24:13]free response buf [09:24:13]execute_script done [09:24:13]execute_script returns [09:24:13]free content buf [09:24:13]Sock 9.Close socket [09:24:13]Sock 9.Thread stoped [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:17]accept exits with 8 [09:25:17]New connection [09:25:17]New thread 3067006308 created [09:25:17]Thread 3066862948 joined [09:25:17]Waiting for new connection... [09:25:17] Sock 8.Parse request [09:25:17]Sock 8.Check first char [09:25:17]Sock 8.First char is OK [09:25:17]request: POST /json_proto HTTP/1.0 [09:25:17]Method: POST [09:25:17]URL: /json_proto [09:25:17]Method is POST - this is cgi request [09:25:17]url: /json_proto [09:25:17]query_string will be loaded in cgi processing [09:25:17]execute_cgi json_proto POST (null) [09:25:17]execute_cgi path=json_proto method=POST [09:25:17]POST find Content-Length [09:25:17]Host: 172.17.39.67:8080 [09:25:17]Content-Length: 825 [09:25:17]Content-Type: application/json [09:25:17] [09:25:17]POST finish read [09:25:17]Found Content-Length = 825 [09:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 85.000, "sum" : 6171.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6171.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:17]execute_script... [09:25: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)1318978", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 85.000, "sum" : 6171.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 6171.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:17]POST & json_proto [09:25:17]process_json_proto [09:25:17]json parsed OK: [09:25:17]protocol is kg_v1.0 [09:25:17]action value=close_receipt [09:25:17]process_action close_receipt [09:25:17]cmd_close_receipt [09:25:17]MH_GetDate [09:25:17]Write to MH i2c: F0 00 00 FA 0E F7 [09:25:17]Write i2c OK [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: F0 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: F0 09 00 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: F0 09 00 FA 0E 00 0A 48 92 66 FA E9 8E 66 21 [09:25:17]GetLastDocTimeStamp 1720862661 [09:25:17]current date 1720862730 [09:25:17]FM_GetShiftState [09:25:17]SAM_PROTO_GetShiftState [09:25:17]wFMCommunicate request_size=4 [09:25:17]MH_SAM_APDU [09:25:17]CAPDU: 80 13 01 00 [09:25:17]Write to MH i2c: E2 08 00 FB 0E 80 13 01 00 00 00 00 00 86 [09:25:17]Write i2c OK [09:25:17]MH_I2C_Read... [09:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:17]Read from MH i2c: E2 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 0E 00 [09:25:17]MH_I2C_Read... [09:25:17]Read from MH i2c: E2 0E 00 FB 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 80 [09:25:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:25:17]wFMCommunicate OK [09:25:17]SAM_PROTO_GetShiftState done [09:25:17]FM_GetShiftState done [09:25:17]opened in 1720828979 [09:25:17]opened+sec_in_day 1720915379 [09:25:17]quantity*price = 617100 [09:25:17]sum+1 = 617101 [09:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6171.00 НСП 1% : 54.61 НДС 12% : 655.33 Наличными: 0.00 Безнал.: 6171.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 116 13.07.2024 09:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162448 ФПД: 106673005402025 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092530&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162448&fm=106673005402025&tin=02508201610067®Number=0000000000090858&sum=617100 [09:25:18]StoreToDocumentArchive [09:25:18]shift 462 fd 162448 [09:25:18]save to /storage/0462/doc_00162448 [09:25:18]save last doc name /storage/0462/doc_00162448 to /storage/kkm_last_doc_name [09:25:18]save OK [09:25:18]Clear old archive folders... [09:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:25:18]tlvbuf is 016FE8A0 [09:25:18]SAM_PROTO_ClearQueue [09:25:18]wFMCommunicate request_size=4 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 09 00 00 [09:25:18]Write to MH i2c: E2 08 00 08 0F 80 09 00 00 00 00 00 00 89 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [09:25:18]RAPDU: 90 00 [09:25:18]wFMCommunicate OK [09:25:18]SAM_PROTO_ClearQueue done [09:25:18]KKMCreateOFDPacket [09:25:18]OFDProtocolAddRootSTLVToBuf [09:25:18]FM_MakeSignedData [09:25:18]FM_MakeSignedData [09:25:18]SAM_PROTO_SignData [09:25:18]wFMCommunicate request_size=4 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 0D 01 02 [09:25:18]Write to MH i2c: E2 08 00 09 0F 80 0D 01 02 00 00 00 00 91 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [09:25:18]RAPDU: 90 00 [09:25:18]wFMCommunicate OK [09:25:18]wFMCommunicate request_size=255 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 4C 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8C 6A 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6A 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD FF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6A 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 0A 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7A 02 00 35 04 06 00 [09:25:18]Write to MH i2c: E2 02 01 0A 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 4C 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8C 6A 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6A 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD FF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6A 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 0A 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7A 02 00 35 04 06 00 00 00 B1 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 0A 0F 00 90 00 8D [09:25:18]RAPDU: 90 00 [09:25:18]wFMCommunicate OK [09:25:18]wFMCommunicate request_size=11 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 0D 02 02 06 61 04 BE 98 17 A9 [09:25:18]Write to MH i2c: E2 0E 00 0B 0F 80 0D 02 02 06 00 61 04 BE 98 17 A9 00 00 1B [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 03 00 0B 0F 00 90 00 8E [09:25:18]RAPDU: 90 00 [09:25:18]wFMCommunicate OK [09:25:18]wFMCommunicate request_size=4 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 0D 03 02 [09:25:18]Write to MH i2c: E2 08 00 0C 0F 80 0D 03 02 00 00 00 00 96 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 0B 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 0B 00 0C 0F 00 06 F3 73 8D D8 87 16 FD 90 00 02 [09:25:18]RAPDU: 06 F3 73 8D D8 87 16 FD 90 00 [09:25:18]wFMCommunicate OK [09:25:18]SAM_PROTO_SignData done [09:25:18]FM_MakeSignedData done [09:25:18]CreateOFDProtocolMessage [09:25:18]wFMCommunicate request_size=4 [09:25:18]MH_SAM_APDU [09:25:18]CAPDU: 80 11 00 00 [09:25:18]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:18]Read from MH i2c: E2 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 17 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F6 [09:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:25:18]wFMCommunicate OK [09:25:18]CreateOFDProtocolMessage done [09:25:18]OFDSenderStorePacket 162448 [09:25:18]StoreOFDPacket docnum=162448 [09:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 10 CF 08 01 C7 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 4C 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8C 6A 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6A 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD FF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6A 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 0A 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7A 02 00 35 04 06 00 61 04 BE 98 17 A9 06 F3 73 8D D8 87 16 FD [09:25:18]CheckFolder [09:25:18]dirname=/storage/ofd_packets [09:25:18]CheckFolder done [09:25:18]ProducePacketName [09:25:18]name=ofd_packets/00162448 [09:25:18]NVStorageSaveData ofd_packets/00162448 [09:25:18]File name is /storage/ofd_packets/00162448 [09:25:18]Write 302 bytes [09:25:18]NVStorageSaveData done [09:25:18]OFDSenderStorePacket done [09:25:18]KKMCreateOFDPacket done [09:25:18]NVStorageSaveData kkm_last_timestamp [09:25:18]File name is /storage/kkm_last_timestamp [09:25:18]Write 4 bytes [09:25:18]NVStorageSaveData done [09:25:18]ExternCall_PrintAddStr [09:25:18]wPrintStart [09:25:18]Write to MH i2c: 01 00 00 0E 0F 1D [09:25:18]Write i2c OK [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 07 00 [09:25:18]MH_I2C_Read... [09:25:18]Read from MH i2c: 01 07 00 0E 0F 00 00 00 00 00 FF 0F 32 [09:25:18]RasterBufferAndPrint [09:25:18]line Счет N : (1)1318978 [09:25:18]line ИНН: 02508201610067 [09:25:18]line Контрольно-Кассовый Чек [09:25:18]line ПРОДАЖА [09:25:18]line ТРК (МРК, ГНК) : 21 [09:25:18]line Товар: 2710194210 [09:25:18]line ДТ(л)-К-5 [09:25:18]line 85.000 * 72.60 [09:25:18]line = 6171.00 [09:25:18]line НДС 12% НСП 1% [09:25:18]line > о реализуемом товаре [09:25:18]line ИТОГО: 6171.00 [09:25:18]line НСП 1% : 54.61 [09:25:18]line НДС 12% : 655.33 [09:25:18]line Наличными: 0.00 [09:25:18]line Безнал.: 6171.00 [09:25:18]line Место: АЗС № 140 "Партнер Нефть" [09:25:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:25:18]line СНО: Общий режим [09:25:18]line Чек 116 13.07.2024 09:25 [09:25:18]line Смена: 462 ФФД: 1.0 [09:25:18]line ЗНМ: 0300000129 [09:25:18]line РНМ: 0000000000090858 [09:25:18]line Версия ККМ: 001 [09:25:18]line Платежная система: Бакай Банк [09:25:18]line ФМ: 0000000000874899 [09:25:18]line ФД: 162448 [09:25:18]line ФПД: 106673005402025 [09:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092530&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162448&fm=106673005402025&tin=02508201610067®Number=0000000000090858&sum=617100 [09:25:19]OFD Sender: Processing packet 162448 [packets to send 105, broken 104] [09:25:19]ProducePacketName [09:25:19]name=ofd_packets/00162448 [09:25:19]OFD Sender: To server: pG, [09:25:19]CommunicateWithHost lk.salyk.kg:30040 [09:25:19]ConnectInit lk.salyk.kg [09:25:19]written 0, free lines is 4095 [09:25:19]Connected sock=10 [09:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 10 CF 08 01 C7 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 08 4C 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8C 6A 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6A 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 15 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD FF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6A 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 0A 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7A 02 00 35 04 06 00 61 04 BE 98 17 A9 06 F3 73 8D D8 87 16 FD [09:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 96 90 47 00 F3 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7A 02 00 F4 03 04 00 1F F4 91 66 B6 04 01 00 00 28 66 3C 2D 1B CD 2A 8B [09:25:19]CommunicateWithHost err = 0 [09:25:19]CheckOFDResponse [09:25:19]1017 (14) - 77093643461234 [09:25:19]1041 (16) - 0000000000874899 [09:25:19]1040 (4) - 162448 [09:25:19]1012 (4) - 13.07.2024 03:27 [09:25:19]1206 (1) - 0 [09:25:19]OFD Sender: Remove packet 162448 [09:25:19]ProducePacketName [09:25:19]name=ofd_packets/00162448 [09:25:19]NVStorageDeleteData [09:25:19]Write to MH i2c: 01 00 00 38 0F 47 [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: 01 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: 01 07 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: 01 07 00 38 0F 00 00 00 00 00 00 0D 5B [09:25:19]RasterBufferAndPrint [09:25:19]line [09:25:19]line [09:25:19]line [09:25:19]line [09:25:19]line [09:25:19]written 0, free lines is 3337 [09:25:19]MH_Cut [09:25:19]Write to MH i2c: D1 01 00 3F 0F 01 20 [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: D1 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: D1 01 00 [09:25:19]MH_I2C_Read... [09:25:19]Read from MH i2c: D1 01 00 3F 0F 00 1F [09:25:19]Write to MH i2c: 01 00 00 40 0F 4F [09:25:19]Write i2c OK [09:25:19]MH_I2C_Read... [09:25:20]OFD Sender: No OFD packet to send [09:25:20]*** Cut start [09:25:20]*** Purtial cut [09:25:20]*** Stage 1: CUTSNS_PIN = 1 [09:25:20]Read from MH i2c: 01 [09:25:20]MH_I2C_Read... [09:25:20]*** Stop cut motor [09:25:20]*** Cut end [09:25:20]Read from MH i2c: 01 07 00 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: 01 07 00 40 0F 00 00 00 00 00 FF 0F 64 [09:25:20]process_action close_receipt done [09:25:20]requested_data is exist [09:25:20]produce_requested_data [09:25:20]requested_item fm.sn is exist - process it [09:25:20]wFMCommunicate request_size=4 [09:25:20]MH_SAM_APDU [09:25:20]CAPDU: 80 11 00 00 [09:25:20]Write to MH i2c: E2 08 00 41 0F 80 11 00 00 00 00 00 00 CA [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:20]Read from MH i2c: E2 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 17 00 [09:25:20]MH_I2C_Read... [09:25:20]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 34 38 39 39 90 00 2A [09:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:25:20]wFMCommunicate OK [09:25:20]requested_item fd.num is exist - process it [09:25:20]SAM_PROTO_GetFieldsCounters [09:25:20]wFMCommunicate request_size=4 [09:25:20]MH_SAM_APDU [09:25:20]CAPDU: 80 13 00 00 [09:25:20]Write to MH i2c: E2 08 00 42 0F 80 13 00 00 00 00 00 00 CD [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:20]Read from MH i2c: E2 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 62 00 [09:25:20]MH_I2C_Read... [09:25:20]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 90 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [09:25:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 90 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:20]wFMCommunicate OK [09:25:20]SAM_PROTO_GetFieldsCounters done [09:25:20]requested_item shift.num is exist - process it [09:25:20]requested_item shift.opened is exist - process it [09:25:20]req_shift_opened [09:25:20]FM_GetShiftState [09:25:20]SAM_PROTO_GetShiftState [09:25:20]wFMCommunicate request_size=4 [09:25:20]MH_SAM_APDU [09:25:20]CAPDU: 80 13 01 00 [09:25:20]Write to MH i2c: E2 08 00 43 0F 80 13 01 00 00 00 00 00 CF [09:25:20]Write i2c OK [09:25:20]MH_I2C_Read... [09:25:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:20]Read from MH i2c: E2 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 0E 00 [09:25:20]MH_I2C_Read... [09:25:20]Read from MH i2c: E2 0E 00 43 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C9 [09:25:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:25:20]wFMCommunicate OK [09:25:20]SAM_PROTO_GetShiftState done [09:25:20]FM_GetShiftState done [09:25:20]req_shift_opened done [09:25:20]requested_item shift.open_date is exist - process it [09:25:20]req_shift_open_date [09:25:20]req_shift_open_date done [09:25:20]produce_requested_data done [09:25:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162448,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:25:20]process_action_free close_receipt [09:25:20]json_value_free [09:25:20]json_value_free done [09:25:20]process_json_proto returns [09:25:20]Send response to host [09:25:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162448,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:25:20]free response buf [09:25:20]execute_script done [09:25:20]execute_script returns [09:25:20]free content buf [09:25:20]Sock 8.Close socket [09:25:20]Sock 8.Thread stoped [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:47]accept exits with 9 [09:25:47]New connection [09:25:47]New thread 3066862948 created [09:25:47]Thread 3067006308 joined [09:25:47]Waiting for new connection... [09:25:47] Sock 9.Parse request [09:25:47]Sock 9.Check first char [09:25:47]Sock 9.First char is OK [09:25:47]request: POST /json_proto HTTP/1.0 [09:25:47]Method: POST [09:25:47]URL: /json_proto [09:25:47]Method is POST - this is cgi request [09:25:47]url: /json_proto [09:25:47]query_string will be loaded in cgi processing [09:25:47]execute_cgi json_proto POST (null) [09:25:47]execute_cgi path=json_proto method=POST [09:25:47]POST find Content-Length [09:25:47]Host: 172.17.39.67:8080 [09:25:47]Content-Length: 678 [09:25:47]Content-Type: application/json [09:25:47] [09:25:47]POST finish read [09:25:47]Found Content-Length = 678 [09:25:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:47]execute_script... [09:25: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)1318981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:47]POST & json_proto [09:25:47]process_json_proto [09:25:47]json parsed OK: [09:25:47]protocol is kg_v1.0 [09:25:47]action value=close_receipt [09:25:47]process_action close_receipt [09:25:47]cmd_close_receipt [09:25:47]MH_GetDate [09:25:47]Write to MH i2c: F0 00 00 44 0F 42 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: F0 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: F0 09 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: F0 09 00 44 0F 00 29 48 92 66 FA E9 8E 66 8B [09:25:47]GetLastDocTimeStamp 1720862730 [09:25:47]current date 1720862761 [09:25:47]FM_GetShiftState [09:25:47]SAM_PROTO_GetShiftState [09:25:47]wFMCommunicate request_size=4 [09:25:47]MH_SAM_APDU [09:25:47]CAPDU: 80 13 01 00 [09:25:47]Write to MH i2c: E2 08 00 45 0F 80 13 01 00 00 00 00 00 D1 [09:25:47]Write i2c OK [09:25:47]MH_I2C_Read... [09:25:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:47]Read from MH i2c: E2 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 0E 00 [09:25:47]MH_I2C_Read... [09:25:47]Read from MH i2c: E2 0E 00 45 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CB [09:25:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:25:47]wFMCommunicate OK [09:25:47]SAM_PROTO_GetShiftState done [09:25:47]FM_GetShiftState done [09:25:47]opened in 1720828979 [09:25:47]opened+sec_in_day 1720915379 [09:25:47]quantity*price = 50056 [09:25:47]sum+1 = 50058 [09:25:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 117 13.07.2024 09:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162449 ФПД: 270787869613595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092601&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162449&fm=270787869613595&tin=02508201610067®Number=0000000000090858&sum=50000 [09:25:48]StoreToDocumentArchive [09:25:48]shift 462 fd 162449 [09:25:48]save to /storage/0462/doc_00162449 [09:25:48]save last doc name /storage/0462/doc_00162449 to /storage/kkm_last_doc_name [09:25:48]save OK [09:25:48]Clear old archive folders... [09:25:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:48]tlvbuf is 017BFF80 [09:25:48]SAM_PROTO_ClearQueue [09:25:48]wFMCommunicate request_size=4 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 09 00 00 [09:25:48]Write to MH i2c: E2 08 00 52 0F 80 09 00 00 00 00 00 00 D3 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 52 0F 00 90 00 D5 [09:25:48]RAPDU: 90 00 [09:25:48]wFMCommunicate OK [09:25:48]SAM_PROTO_ClearQueue done [09:25:48]KKMCreateOFDPacket [09:25:48]OFDProtocolAddRootSTLVToBuf [09:25:48]FM_MakeSignedData [09:25:48]FM_MakeSignedData [09:25:48]SAM_PROTO_SignData [09:25:48]wFMCommunicate request_size=4 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 0D 01 02 [09:25:48]Write to MH i2c: E2 08 00 53 0F 80 0D 01 02 00 00 00 00 DB [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:48]Read from MH i2c: E2 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 [09:25:48]MH_I2C_Read... [09:25:48]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [09:25:48]RAPDU: 90 00 [09:25:48]wFMCommunicate OK [09:25:48]wFMCommunicate request_size=255 [09:25:48]MH_SAM_APDU [09:25:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 29 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7A 02 00 35 04 06 00 F6 [09:25:48]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 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 29 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7A 02 00 35 04 06 00 F6 00 00 47 [09:25:48]Write i2c OK [09:25:48]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [09:25:49]RAPDU: 90 00 [09:25:49]wFMCommunicate OK [09:25:49]wFMCommunicate request_size=10 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 0D 02 02 05 47 B6 C7 1E 1B [09:25:49]Write to MH i2c: E2 0D 00 55 0F 80 0D 02 02 05 00 47 B6 C7 1E 1B 00 00 E5 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [09:25:49]RAPDU: 90 00 [09:25:49]wFMCommunicate OK [09:25:49]wFMCommunicate request_size=4 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 0D 03 02 [09:25:49]Write to MH i2c: E2 08 00 56 0F 80 0D 03 02 00 00 00 00 E0 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 0B 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 0B 00 56 0F 00 48 FE 33 0A 03 94 71 31 90 00 9D [09:25:49]RAPDU: 48 FE 33 0A 03 94 71 31 90 00 [09:25:49]wFMCommunicate OK [09:25:49]SAM_PROTO_SignData done [09:25:49]FM_MakeSignedData done [09:25:49]CreateOFDProtocolMessage [09:25:49]wFMCommunicate request_size=4 [09:25:49]MH_SAM_APDU [09:25:49]CAPDU: 80 11 00 00 [09:25:49]Write to MH i2c: E2 08 00 57 0F 80 11 00 00 00 00 00 00 E0 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:49]Read from MH i2c: E2 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: E2 17 00 [09:25:49]MH_I2C_Read... [09:25:49]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 34 38 39 39 90 00 40 [09:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:25:49]wFMCommunicate OK [09:25:49]CreateOFDProtocolMessage done [09:25:49]OFDSenderStorePacket 162449 [09:25:49]StoreOFDPacket docnum=162449 [09:25:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5B 5B 07 01 22 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 29 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7A 02 00 35 04 06 00 F6 47 B6 C7 1E 1B 48 FE 33 0A 03 94 71 31 [09:25:49]CheckFolder [09:25:49]dirname=/storage/ofd_packets [09:25:49]CheckFolder done [09:25:49]ProducePacketName [09:25:49]name=ofd_packets/00162449 [09:25:49]NVStorageSaveData ofd_packets/00162449 [09:25:49]File name is /storage/ofd_packets/00162449 [09:25:49]Write 301 bytes [09:25:49]NVStorageSaveData done [09:25:49]OFDSenderStorePacket done [09:25:49]KKMCreateOFDPacket done [09:25:49]NVStorageSaveData kkm_last_timestamp [09:25:49]File name is /storage/kkm_last_timestamp [09:25:49]Write 4 bytes [09:25:49]NVStorageSaveData done [09:25:49]ExternCall_PrintAddStr [09:25:49]wPrintStart [09:25:49]Write to MH i2c: 01 00 00 58 0F 67 [09:25:49]Write i2c OK [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 07 00 [09:25:49]MH_I2C_Read... [09:25:49]Read from MH i2c: 01 07 00 58 0F 00 00 00 00 00 FF 0F 7C [09:25:49]RasterBufferAndPrint [09:25:49]line Счет N : (1)1318981 [09:25:49]line ИНН: 02508201610067 [09:25:49]line Контрольно-Кассовый Чек [09:25:49]line ПРОДАЖА [09:25:49]line ТРК (МРК, ГНК) : 53 [09:25:49]line Товар: 2710124130 [09:25:49]line Аи-92-К-5 [09:25:49]line 7.550 * 66.30 [09:25:49]line = 500.57 [09:25:49]line НДС 12% НСП 1% [09:25:49]line > о реализуемом товаре [09:25:49]line ОКРУГЛЕНИЕ: -0.57 [09:25:49]line ИТОГО: 500.00 [09:25:49]line Внесено: 500.00 [09:25:49]line СДАЧА: 0.00 [09:25:49]line НСП 1% : 4.43 [09:25:49]line НДС 12% : 53.16 [09:25:49]line Наличными: 500.00 [09:25:49]line Безнал.: 0.00 [09:25:49]line Место: АЗС № 140 "Партнер Нефть" [09:25:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:25:49]line СНО: Общий режим [09:25:49]line Чек 117 13.07.2024 09:26 [09:25:49]line Смена: 462 ФФД: 1.0 [09:25:49]line ЗНМ: 0300000129 [09:25:49]line РНМ: 0000000000090858 [09:25:49]line Версия ККМ: 001 [09:25:49]line ФМ: 0000000000874899 [09:25:49]line ФД: 162449 [09:25:49]line ФПД: 270787869613595 [09:25:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092601&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162449&fm=270787869613595&tin=02508201610067®Number=0000000000090858&sum=50000 [09:25:49]OFD Sender: Processing packet 162449 [packets to send 105, broken 104] [09:25:49]ProducePacketName [09:25:49]name=ofd_packets/00162449 [09:25:49]OFD Sender: To server: pG, [09:25:49]CommunicateWithHost lk.salyk.kg:30040 [09:25:49]ConnectInit lk.salyk.kg [09:25:49]written 0, free lines is 4095 [09:25:49]Connected sock=10 [09:25:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5B 5B 07 01 22 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 29 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7A 02 00 35 04 06 00 F6 47 B6 C7 1E 1B 48 FE 33 0A 03 94 71 31 [09:25:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 13 1A 47 00 C6 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7A 02 00 F4 03 04 00 3E F4 91 66 B6 04 01 00 00 23 01 08 C7 AD 49 3C 92 [09:25:50]CommunicateWithHost err = 0 [09:25:50]CheckOFDResponse [09:25:50]1017 (14) - 77093643461234 [09:25:50]1041 (16) - 0000000000874899 [09:25:50]1040 (4) - 162449 [09:25:50]1012 (4) - 13.07.2024 03:27 [09:25:50]1206 (1) - 0 [09:25:50]OFD Sender: Remove packet 162449 [09:25:50]ProducePacketName [09:25:50]name=ofd_packets/00162449 [09:25:50]NVStorageDeleteData [09:25:50]Write to MH i2c: 01 00 00 83 0F 92 [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 07 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: 01 07 00 83 0F 00 00 00 00 00 F2 0C 97 [09:25:50]RasterBufferAndPrint [09:25:50]line [09:25:50]line [09:25:50]line [09:25:50]line [09:25:50]line [09:25:50]written 0, free lines is 3323 [09:25:50]MH_Cut [09:25:50]Write to MH i2c: D1 01 00 8A 0F 01 6B [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: D1 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: D1 01 00 [09:25:50]MH_I2C_Read... [09:25:50]Read from MH i2c: D1 01 00 8A 0F 00 6A [09:25:50]Write to MH i2c: 01 00 00 8B 0F 9A [09:25:50]Write i2c OK [09:25:50]MH_I2C_Read... [09:25:50]OFD Sender: No OFD packet to send [09:25:50]*** Cut start [09:25:50]*** Purtial cut [09:25:50]*** CUTSNS_PIN = 0 [09:25:51]*** Stage 1: CUTSNS_PIN = 1 [09:25:52]Read from MH i2c: 01 [09:25:52]MH_I2C_Read... [09:25:52]*** Stop cut motor [09:25:52]*** Cut end [09:25:52]Read from MH i2c: 01 07 00 [09:25:52]MH_I2C_Read... [09:25:52]Read from MH i2c: 01 07 00 8B 0F 00 00 00 00 00 FF 0F AF [09:25:52]process_action close_receipt done [09:25:52]requested_data is exist [09:25:52]produce_requested_data [09:25:52]requested_item fm.sn is exist - process it [09:25:52]wFMCommunicate request_size=4 [09:25:52]MH_SAM_APDU [09:25:52]CAPDU: 80 11 00 00 [09:25:52]Write to MH i2c: E2 08 00 8C 0F 80 11 00 00 00 00 00 00 15 [09:25:52]Write i2c OK [09:25:52]MH_I2C_Read... [09:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:53]Read from MH i2c: E2 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 17 00 [09:25:53]MH_I2C_Read... [09:25:53]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 34 38 39 39 90 00 75 [09:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:25:53]wFMCommunicate OK [09:25:53]requested_item fd.num is exist - process it [09:25:53]SAM_PROTO_GetFieldsCounters [09:25:53]wFMCommunicate request_size=4 [09:25:53]MH_SAM_APDU [09:25:53]CAPDU: 80 13 00 00 [09:25:53]Write to MH i2c: E2 08 00 8D 0F 80 13 00 00 00 00 00 00 18 [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:53]Read from MH i2c: E2 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 62 00 [09:25:53]MH_I2C_Read... [09:25:53]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 91 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [09:25:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 91 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:53]wFMCommunicate OK [09:25:53]SAM_PROTO_GetFieldsCounters done [09:25:53]requested_item shift.num is exist - process it [09:25:53]requested_item shift.opened is exist - process it [09:25:53]req_shift_opened [09:25:53]FM_GetShiftState [09:25:53]SAM_PROTO_GetShiftState [09:25:53]wFMCommunicate request_size=4 [09:25:53]MH_SAM_APDU [09:25:53]CAPDU: 80 13 01 00 [09:25:53]Write to MH i2c: E2 08 00 8E 0F 80 13 01 00 00 00 00 00 1A [09:25:53]Write i2c OK [09:25:53]MH_I2C_Read... [09:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:53]Read from MH i2c: E2 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 0E 00 [09:25:53]MH_I2C_Read... [09:25:53]Read from MH i2c: E2 0E 00 8E 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 14 [09:25:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:25:53]wFMCommunicate OK [09:25:53]SAM_PROTO_GetShiftState done [09:25:53]FM_GetShiftState done [09:25:53]req_shift_opened done [09:25:53]requested_item shift.open_date is exist - process it [09:25:53]req_shift_open_date [09:25:53]req_shift_open_date done [09:25:53]produce_requested_data done [09:25:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162449,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:25:53]process_action_free close_receipt [09:25:53]json_value_free [09:25:53]json_value_free done [09:25:53]process_json_proto returns [09:25:53]Send response to host [09:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162449,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:25:53]free response buf [09:25:53]execute_script done [09:25:53]execute_script returns [09:25:53]free content buf [09:25:53]Sock 9.Close socket [09:25:53]Sock 9.Thread stoped [09:25:55]OFD Sender: No OFD packet to send [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:12]accept exits with 8 [09:29:12]New connection [09:29:12]New thread 3067006308 created [09:29:12]Thread 3066862948 joined [09:29:12]Waiting for new connection... [09:29:12] Sock 8.Parse request [09:29:12]Sock 8.Check first char [09:29:12]Sock 8.First char is OK [09:29:12]request: POST /json_proto HTTP/1.0 [09:29:12]Method: POST [09:29:12]URL: /json_proto [09:29:12]Method is POST - this is cgi request [09:29:12]url: /json_proto [09:29:12]query_string will be loaded in cgi processing [09:29:12]execute_cgi json_proto POST (null) [09:29:12]execute_cgi path=json_proto method=POST [09:29:12]POST find Content-Length [09:29:12]Host: 172.17.39.67:8080 [09:29:12]Content-Length: 679 [09:29:12]Content-Type: application/json [09:29:12] [09:29:12]POST finish read [09:29:12]Found Content-Length = 679 [09:29:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:12]execute_script... [09:29:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:12]POST & json_proto [09:29:12]process_json_proto [09:29:12]json parsed OK: [09:29:12]protocol is kg_v1.0 [09:29:12]action value=close_receipt [09:29:12]process_action close_receipt [09:29:12]cmd_close_receipt [09:29:12]MH_GetDate [09:29:12]Write to MH i2c: F0 00 00 8F 0F 8D [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: F0 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: F0 09 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: F0 09 00 8F 0F 00 F6 48 92 66 FA E9 8E 66 A3 [09:29:12]GetLastDocTimeStamp 1720862761 [09:29:12]current date 1720862966 [09:29:12]FM_GetShiftState [09:29:12]SAM_PROTO_GetShiftState [09:29:12]wFMCommunicate request_size=4 [09:29:12]MH_SAM_APDU [09:29:12]CAPDU: 80 13 01 00 [09:29:12]Write to MH i2c: E2 08 00 90 0F 80 13 01 00 00 00 00 00 1C [09:29:12]Write i2c OK [09:29:12]MH_I2C_Read... [09:29:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:12]Read from MH i2c: E2 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 0E 00 [09:29:12]MH_I2C_Read... [09:29:12]Read from MH i2c: E2 0E 00 90 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 16 [09:29:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:29:12]wFMCommunicate OK [09:29:12]SAM_PROTO_GetShiftState done [09:29:12]FM_GetShiftState done [09:29:12]opened in 1720828979 [09:29:12]opened+sec_in_day 1720915379 [09:29:12]quantity*price = 67029 [09:29:12]sum+1 = 67030 [09:29:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 118 13.07.2024 09:29 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162450 ФПД: 35761170926911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092926&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162450&fm=35761170926911&tin=02508201610067®Number=0000000000090858&sum=67000 [09:29:13]StoreToDocumentArchive [09:29:13]shift 462 fd 162450 [09:29:13]save to /storage/0462/doc_00162450 [09:29:13]save last doc name /storage/0462/doc_00162450 to /storage/kkm_last_doc_name [09:29:13]save OK [09:29:13]Clear old archive folders... [09:29:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:13]tlvbuf is 01C44A80 [09:29:13]SAM_PROTO_ClearQueue [09:29:13]wFMCommunicate request_size=4 [09:29:13]MH_SAM_APDU [09:29:13]CAPDU: 80 09 00 00 [09:29:13]Write to MH i2c: E2 08 00 9D 0F 80 09 00 00 00 00 00 00 1E [09:29:13]Write i2c OK [09:29:13]MH_I2C_Read... [09:29:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:13]Read from MH i2c: E2 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: E2 03 00 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [09:29:13]RAPDU: 90 00 [09:29:13]wFMCommunicate OK [09:29:13]SAM_PROTO_ClearQueue done [09:29:13]KKMCreateOFDPacket [09:29:13]OFDProtocolAddRootSTLVToBuf [09:29:13]FM_MakeSignedData [09:29:13]FM_MakeSignedData [09:29:13]SAM_PROTO_SignData [09:29:13]wFMCommunicate request_size=4 [09:29:13]MH_SAM_APDU [09:29:13]CAPDU: 80 0D 01 02 [09:29:13]Write to MH i2c: E2 08 00 9E 0F 80 0D 01 02 00 00 00 00 26 [09:29:13]Write i2c OK [09:29:13]MH_I2C_Read... [09:29:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:13]Read from MH i2c: E2 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: E2 03 00 [09:29:13]MH_I2C_Read... [09:29:13]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [09:29:13]RAPDU: 90 00 [09:29:13]wFMCommunicate OK [09:29:13]wFMCommunicate request_size=255 [09:29:13]MH_SAM_APDU [09:29:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F6 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7A 02 00 35 04 06 00 20 [09:29:13]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 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F6 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7A 02 00 35 04 06 00 20 00 00 22 [09:29:13]Write i2c OK [09:29:13]MH_I2C_Read... [09:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:14]Read from MH i2c: E2 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 03 00 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [09:29:14]RAPDU: 90 00 [09:29:14]wFMCommunicate OK [09:29:14]wFMCommunicate request_size=10 [09:29:14]MH_SAM_APDU [09:29:14]CAPDU: 80 0D 02 02 05 86 4B E3 CD 3F [09:29:14]Write to MH i2c: E2 0D 00 A0 0F 80 0D 02 02 05 00 86 4B E3 CD 3F 00 00 F3 [09:29:14]Write i2c OK [09:29:14]MH_I2C_Read... [09:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:14]Read from MH i2c: E2 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 03 00 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 03 00 A0 0F 00 90 00 23 [09:29:14]RAPDU: 90 00 [09:29:14]wFMCommunicate OK [09:29:14]wFMCommunicate request_size=4 [09:29:14]MH_SAM_APDU [09:29:14]CAPDU: 80 0D 03 02 [09:29:14]Write to MH i2c: E2 08 00 A1 0F 80 0D 03 02 00 00 00 00 2B [09:29:14]Write i2c OK [09:29:14]MH_I2C_Read... [09:29:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:14]Read from MH i2c: E2 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 0B 00 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 0B 00 A1 0F 00 22 63 D7 7D 9B B5 E8 95 90 00 D2 [09:29:14]RAPDU: 22 63 D7 7D 9B B5 E8 95 90 00 [09:29:14]wFMCommunicate OK [09:29:14]SAM_PROTO_SignData done [09:29:14]FM_MakeSignedData done [09:29:14]CreateOFDProtocolMessage [09:29:14]wFMCommunicate request_size=4 [09:29:14]MH_SAM_APDU [09:29:14]CAPDU: 80 11 00 00 [09:29:14]Write to MH i2c: E2 08 00 A2 0F 80 11 00 00 00 00 00 00 2B [09:29:14]Write i2c OK [09:29:14]MH_I2C_Read... [09:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:14]Read from MH i2c: E2 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: E2 17 00 [09:29:14]MH_I2C_Read... [09:29:14]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 34 38 39 39 90 00 8B [09:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:29:14]wFMCommunicate OK [09:29:14]CreateOFDProtocolMessage done [09:29:14]OFDSenderStorePacket 162450 [09:29:14]StoreOFDPacket docnum=162450 [09:29:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DF 80 07 01 97 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F6 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7A 02 00 35 04 06 00 20 86 4B E3 CD 3F 22 63 D7 7D 9B B5 E8 95 [09:29:14]CheckFolder [09:29:14]dirname=/storage/ofd_packets [09:29:14]CheckFolder done [09:29:14]ProducePacketName [09:29:14]name=ofd_packets/00162450 [09:29:14]NVStorageSaveData ofd_packets/00162450 [09:29:14]File name is /storage/ofd_packets/00162450 [09:29:14]Write 301 bytes [09:29:14]NVStorageSaveData done [09:29:14]OFDSenderStorePacket done [09:29:14]KKMCreateOFDPacket done [09:29:14]NVStorageSaveData kkm_last_timestamp [09:29:14]File name is /storage/kkm_last_timestamp [09:29:14]Write 4 bytes [09:29:14]NVStorageSaveData done [09:29:14]OFD Sender: Processing packet 162450 [packets to send 105, broken 104] [09:29:14]ProducePacketName [09:29:14]name=ofd_packets/00162450 [09:29:14]OFD Sender: To server: pG, [09:29:14]CommunicateWithHost lk.salyk.kg:30040 [09:29:14]ConnectInit lk.salyk.kg [09:29:14]ExternCall_PrintAddStr [09:29:14]wPrintStart [09:29:14]Write to MH i2c: 01 00 00 A3 0F B2 [09:29:14]Write i2c OK [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: 01 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: 01 07 00 [09:29:14]MH_I2C_Read... [09:29:14]Read from MH i2c: 01 07 00 A3 0F 00 00 00 00 00 FF 0F C7 [09:29:14]RasterBufferAndPrint [09:29:14]line Счет N : (1)1318983 [09:29:14]line ИНН: 02508201610067 [09:29:14]line Контрольно-Кассовый Чек [09:29:14]line ПРОДАЖА [09:29:14]line ТРК (МРК, ГНК) : 53 [09:29:14]line Товар: 2710124130 [09:29:14]line Аи-92-К-5 [09:29:14]line 10.110 * 66.30 [09:29:14]line = 670.29 [09:29:14]line НДС 12% НСП 1% [09:29:14]line > о реализуемом товаре [09:29:14]line ОКРУГЛЕНИЕ: -0.29 [09:29:14]line ИТОГО: 670.00 [09:29:14]line Внесено: 670.00 [09:29:14]line СДАЧА: 0.00 [09:29:14]line НСП 1% : 5.93 [09:29:14]line НДС 12% : 71.18 [09:29:14]line Наличными: 670.00 [09:29:14]line Безнал.: 0.00 [09:29:14]line Место: АЗС № 140 "Партнер Нефть" [09:29:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:29:14]line СНО: Общий режим [09:29:14]line Чек 118 13.07.2024 09:29 [09:29:14]line Смена: 462 ФФД: 1.0 [09:29:14]line ЗНМ: 0300000129 [09:29:14]line РНМ: 0000000000090858 [09:29:14]line Версия ККМ: 001 [09:29:14]line ФМ: 0000000000874899 [09:29:14]line ФД: 162450 [09:29:14]line ФПД: 35761170926911 [09:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T092926&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162450&fm=35761170926911&tin=02508201610067®Number=0000000000090858&sum=67000 [09:29:14]Connected sock=11 [09:29:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DF 80 07 01 97 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 F6 48 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7A 02 00 35 04 06 00 20 86 4B E3 CD 3F 22 63 D7 7D 9B B5 E8 95 [09:29:14]written 0, free lines is 4095 [09:29:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 50 33 47 00 5C 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7A 02 00 F4 03 04 00 0A F5 91 66 B6 04 01 00 00 81 FF 20 1C 52 07 7E D6 [09:29:14]CommunicateWithHost err = 0 [09:29:14]CheckOFDResponse [09:29:14]1017 (14) - 77093643461234 [09:29:14]1041 (16) - 0000000000874899 [09:29:14]1040 (4) - 162450 [09:29:14]1012 (4) - 13.07.2024 03:31 [09:29:14]1206 (1) - 0 [09:29:14]OFD Sender: Remove packet 162450 [09:29:14]ProducePacketName [09:29:14]name=ofd_packets/00162450 [09:29:14]NVStorageDeleteData [09:29:15]Write to MH i2c: 01 00 00 CE 0F DD [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: 01 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: 01 07 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: 01 07 00 CE 0F 00 00 00 00 00 DA 0C CA [09:29:15]RasterBufferAndPrint [09:29:15]line [09:29:15]line [09:29:15]line [09:29:15]line [09:29:15]line [09:29:15]written 0, free lines is 3296 [09:29:15]MH_Cut [09:29:15]Write to MH i2c: D1 01 00 D5 0F 01 B6 [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: D1 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: D1 01 00 [09:29:15]MH_I2C_Read... [09:29:15]Read from MH i2c: D1 01 00 D5 0F 00 B5 [09:29:15]Write to MH i2c: 01 00 00 D6 0F E5 [09:29:15]Write i2c OK [09:29:15]MH_I2C_Read... [09:29:15]OFD Sender: No OFD packet to send [09:29:15]*** Cut start [09:29:15]*** Purtial cut [09:29:15]*** Stage 1: CUTSNS_PIN = 1 [09:29:16]Read from MH i2c: 01 [09:29:16]MH_I2C_Read... [09:29:16]*** Stop cut motor [09:29:16]*** Cut end [09:29:16]Read from MH i2c: 01 07 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: 01 07 00 D6 0F 00 00 00 00 00 FF 0F FA [09:29:16]process_action close_receipt done [09:29:16]requested_data is exist [09:29:16]produce_requested_data [09:29:16]requested_item fm.sn is exist - process it [09:29:16]wFMCommunicate request_size=4 [09:29:16]MH_SAM_APDU [09:29:16]CAPDU: 80 11 00 00 [09:29:16]Write to MH i2c: E2 08 00 D7 0F 80 11 00 00 00 00 00 00 60 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 17 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 17 00 D7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C0 [09:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:29:16]wFMCommunicate OK [09:29:16]requested_item fd.num is exist - process it [09:29:16]SAM_PROTO_GetFieldsCounters [09:29:16]wFMCommunicate request_size=4 [09:29:16]MH_SAM_APDU [09:29:16]CAPDU: 80 13 00 00 [09:29:16]Write to MH i2c: E2 08 00 D8 0F 80 13 00 00 00 00 00 00 63 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 62 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 62 00 D8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 92 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [09:29:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 92 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:16]wFMCommunicate OK [09:29:16]SAM_PROTO_GetFieldsCounters done [09:29:16]requested_item shift.num is exist - process it [09:29:16]requested_item shift.opened is exist - process it [09:29:16]req_shift_opened [09:29:16]FM_GetShiftState [09:29:16]SAM_PROTO_GetShiftState [09:29:16]wFMCommunicate request_size=4 [09:29:16]MH_SAM_APDU [09:29:16]CAPDU: 80 13 01 00 [09:29:16]Write to MH i2c: E2 08 00 D9 0F 80 13 01 00 00 00 00 00 65 [09:29:16]Write i2c OK [09:29:16]MH_I2C_Read... [09:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:16]Read from MH i2c: E2 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 0E 00 [09:29:16]MH_I2C_Read... [09:29:16]Read from MH i2c: E2 0E 00 D9 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5F [09:29:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:29:16]wFMCommunicate OK [09:29:16]SAM_PROTO_GetShiftState done [09:29:16]FM_GetShiftState done [09:29:16]req_shift_opened done [09:29:16]requested_item shift.open_date is exist - process it [09:29:16]req_shift_open_date [09:29:16]req_shift_open_date done [09:29:16]produce_requested_data done [09:29:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162450,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:29:16]process_action_free close_receipt [09:29:16]json_value_free [09:29:16]json_value_free done [09:29:16]process_json_proto returns [09:29:16]Send response to host [09:29:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162450,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:29:16]free response buf [09:29:16]execute_script done [09:29:16]execute_script returns [09:29:16]free content buf [09:29:16]Sock 8.Close socket [09:29:16]Sock 8.Thread stoped [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:23]accept exits with 9 [09:31:23]New connection [09:31:23]New thread 3066862948 created [09:31:23]Thread 3067006308 joined [09:31:23]Waiting for new connection... [09:31:23] Sock 9.Parse request [09:31:23]Sock 9.Check first char [09:31:23]Sock 9.First char is OK [09:31:23]request: POST /json_proto HTTP/1.0 [09:31:23]Method: POST [09:31:23]URL: /json_proto [09:31:23]Method is POST - this is cgi request [09:31:23]url: /json_proto [09:31:23]query_string will be loaded in cgi processing [09:31:23]execute_cgi json_proto POST (null) [09:31:23]execute_cgi path=json_proto method=POST [09:31:23]POST find Content-Length [09:31:23]Host: 172.17.39.67:8080 [09:31:23]Content-Length: 809 [09:31:23]Content-Type: application/json [09:31:23] [09:31:23]POST finish read [09:31:23]Found Content-Length = 809 [09:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 96.420, "sum" : 7000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7000.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:23]execute_script... [09:31: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)1318982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 96.420, "sum" : 7000.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 7000.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:23]POST & json_proto [09:31:23]process_json_proto [09:31:23]json parsed OK: [09:31:23]protocol is kg_v1.0 [09:31:23]action value=close_receipt [09:31:23]process_action close_receipt [09:31:23]cmd_close_receipt [09:31:23]MH_GetDate [09:31:23]Write to MH i2c: F0 00 00 DA 0F D8 [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: F0 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: F0 09 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: F0 09 00 DA 0F 00 79 49 92 66 FA E9 8E 66 72 [09:31:23]GetLastDocTimeStamp 1720862966 [09:31:23]current date 1720863097 [09:31:23]FM_GetShiftState [09:31:23]SAM_PROTO_GetShiftState [09:31:23]wFMCommunicate request_size=4 [09:31:23]MH_SAM_APDU [09:31:23]CAPDU: 80 13 01 00 [09:31:23]Write to MH i2c: E2 08 00 DB 0F 80 13 01 00 00 00 00 00 67 [09:31:23]Write i2c OK [09:31:23]MH_I2C_Read... [09:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:23]Read from MH i2c: E2 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 0E 00 [09:31:23]MH_I2C_Read... [09:31:23]Read from MH i2c: E2 0E 00 DB 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 61 [09:31:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:31:23]wFMCommunicate OK [09:31:23]SAM_PROTO_GetShiftState done [09:31:23]FM_GetShiftState done [09:31:23]opened in 1720828979 [09:31:23]opened+sec_in_day 1720915379 [09:31:23]quantity*price = 700009 [09:31:23]sum+1 = 700010 [09:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7000.09 НСП 1% : 61.95 НДС 12% : 743.37 Наличными: 0.00 Безнал.: 7000.09 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 119 13.07.2024 09:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162451 ФПД: 38524725473383 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093137&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162451&fm=38524725473383&tin=02508201610067®Number=0000000000090858&sum=700009 [09:31:24]StoreToDocumentArchive [09:31:24]shift 462 fd 162451 [09:31:24]save to /storage/0462/doc_00162451 [09:31:24]save last doc name /storage/0462/doc_00162451 to /storage/kkm_last_doc_name [09:31:24]save OK [09:31:24]Clear old archive folders... [09:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:31:24]tlvbuf is 017BFE00 [09:31:24]SAM_PROTO_ClearQueue [09:31:24]wFMCommunicate request_size=4 [09:31:24]MH_SAM_APDU [09:31:24]CAPDU: 80 09 00 00 [09:31:24]Write to MH i2c: E2 08 00 E8 0F 80 09 00 00 00 00 00 00 69 [09:31:24]Write i2c OK [09:31:24]MH_I2C_Read... [09:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:24]Read from MH i2c: E2 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: E2 03 00 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: E2 03 00 E8 0F 00 90 00 6B [09:31:24]RAPDU: 90 00 [09:31:24]wFMCommunicate OK [09:31:24]SAM_PROTO_ClearQueue done [09:31:24]KKMCreateOFDPacket [09:31:24]OFDProtocolAddRootSTLVToBuf [09:31:24]FM_MakeSignedData [09:31:24]FM_MakeSignedData [09:31:24]SAM_PROTO_SignData [09:31:24]wFMCommunicate request_size=4 [09:31:24]MH_SAM_APDU [09:31:24]CAPDU: 80 0D 01 02 [09:31:24]Write to MH i2c: E2 08 00 E9 0F 80 0D 01 02 00 00 00 00 71 [09:31:24]Write i2c OK [09:31:24]MH_I2C_Read... [09:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:24]Read from MH i2c: E2 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: E2 03 00 [09:31:24]MH_I2C_Read... [09:31:24]Read from MH i2c: E2 03 00 E9 0F 00 90 00 6C [09:31:24]RAPDU: 90 00 [09:31:24]wFMCommunicate OK [09:31:24]wFMCommunicate request_size=255 [09:31:24]MH_SAM_APDU [09:31:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 78 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 69 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 79 49 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7A 02 00 35 04 06 00 [09:31:24]Write to MH i2c: E2 02 01 EA 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 78 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 69 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 79 49 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7A 02 00 35 04 06 00 00 00 9E [09:31:24]Write i2c OK [09:31:24]MH_I2C_Read... [09:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:25]Read from MH i2c: E2 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 03 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 03 00 EA 0F 00 90 00 6D [09:31:25]RAPDU: 90 00 [09:31:25]wFMCommunicate OK [09:31:25]wFMCommunicate request_size=11 [09:31:25]MH_SAM_APDU [09:31:25]CAPDU: 80 0D 02 02 06 23 09 BC 93 B0 67 [09:31:25]Write to MH i2c: E2 0E 00 EB 0F 80 0D 02 02 06 00 23 09 BC 93 B0 67 00 00 12 [09:31:25]Write i2c OK [09:31:25]MH_I2C_Read... [09:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:25]Read from MH i2c: E2 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 03 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 03 00 EB 0F 00 90 00 6E [09:31:25]RAPDU: 90 00 [09:31:25]wFMCommunicate OK [09:31:25]wFMCommunicate request_size=4 [09:31:25]MH_SAM_APDU [09:31:25]CAPDU: 80 0D 03 02 [09:31:25]Write to MH i2c: E2 08 00 EC 0F 80 0D 03 02 00 00 00 00 76 [09:31:25]Write i2c OK [09:31:25]MH_I2C_Read... [09:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:25]Read from MH i2c: E2 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 0B 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 0B 00 EC 0F 00 EF EF DD 75 A3 6A EC A8 90 00 48 [09:31:25]RAPDU: EF EF DD 75 A3 6A EC A8 90 00 [09:31:25]wFMCommunicate OK [09:31:25]SAM_PROTO_SignData done [09:31:25]FM_MakeSignedData done [09:31:25]CreateOFDProtocolMessage [09:31:25]wFMCommunicate request_size=4 [09:31:25]MH_SAM_APDU [09:31:25]CAPDU: 80 11 00 00 [09:31:25]Write to MH i2c: E2 08 00 ED 0F 80 11 00 00 00 00 00 00 76 [09:31:25]Write i2c OK [09:31:25]MH_I2C_Read... [09:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:25]Read from MH i2c: E2 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 17 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: E2 17 00 ED 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D6 [09:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:31:25]wFMCommunicate OK [09:31:25]CreateOFDProtocolMessage done [09:31:25]OFDSenderStorePacket 162451 [09:31:25]StoreOFDPacket docnum=162451 [09:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 07 63 08 01 97 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 78 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 69 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 79 49 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7A 02 00 35 04 06 00 23 09 BC 93 B0 67 EF EF DD 75 A3 6A EC A8 [09:31:25]CheckFolder [09:31:25]dirname=/storage/ofd_packets [09:31:25]CheckFolder done [09:31:25]ProducePacketName [09:31:25]name=ofd_packets/00162451 [09:31:25]NVStorageSaveData ofd_packets/00162451 [09:31:25]File name is /storage/ofd_packets/00162451 [09:31:25]Write 302 bytes [09:31:25]NVStorageSaveData done [09:31:25]OFDSenderStorePacket done [09:31:25]KKMCreateOFDPacket done [09:31:25]NVStorageSaveData kkm_last_timestamp [09:31:25]File name is /storage/kkm_last_timestamp [09:31:25]Write 4 bytes [09:31:25]NVStorageSaveData done [09:31:25]ExternCall_PrintAddStr [09:31:25]wPrintStart [09:31:25]Write to MH i2c: 01 00 00 EE 0F FD [09:31:25]Write i2c OK [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: 01 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: 01 07 00 [09:31:25]MH_I2C_Read... [09:31:25]Read from MH i2c: 01 07 00 EE 0F 00 00 00 00 00 FF 0F 12 [09:31:25]RasterBufferAndPrint [09:31:25]line Счет N : (1)1318982 [09:31:25]line ИНН: 02508201610067 [09:31:25]line Контрольно-Кассовый Чек [09:31:25]line ПРОДАЖА [09:31:25]line ТРК (МРК, ГНК) : 11 [09:31:25]line Товар: 2710194210 [09:31:25]line ДТ(л)-К-5 [09:31:25]line 96.420 * 72.60 [09:31:25]line = 7000.09 [09:31:25]line НДС 12% НСП 1% [09:31:25]line > о реализуемом товаре [09:31:25]line ИТОГО: 7000.09 [09:31:25]line НСП 1% : 61.95 [09:31:25]line НДС 12% : 743.37 [09:31:25]line Наличными: 0.00 [09:31:25]line Безнал.: 7000.09 [09:31:25]line Место: АЗС № 140 "Партнер Нефть" [09:31:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:31:25]line СНО: Общий режим [09:31:25]line Чек 119 13.07.2024 09:31 [09:31:25]line Смена: 462 ФФД: 1.0 [09:31:25]line ЗНМ: 0300000129 [09:31:25]line РНМ: 0000000000090858 [09:31:25]line Версия ККМ: 001 [09:31:25]line Платежная система: O! деньги [09:31:25]line ФМ: 0000000000874899 [09:31:25]line ФД: 162451 [09:31:25]line ФПД: 38524725473383 [09:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093137&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162451&fm=38524725473383&tin=02508201610067®Number=0000000000090858&sum=700009 [09:31:25]OFD Sender: Processing packet 162451 [packets to send 105, broken 104] [09:31:25]ProducePacketName [09:31:25]name=ofd_packets/00162451 [09:31:25]OFD Sender: To server: pG, [09:31:25]CommunicateWithHost lk.salyk.kg:30040 [09:31:25]ConnectInit lk.salyk.kg [09:31:25]written 0, free lines is 4095 [09:31:25]Connected sock=10 [09:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 07 63 08 01 97 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A4 78 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 69 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 22 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 69 AE 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 79 49 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7A 02 00 35 04 06 00 23 09 BC 93 B0 67 EF EF DD 75 A3 6A EC A8 [09:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C7 D5 47 00 FF 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 34 38 39 39 10 04 04 00 93 7A 02 00 F4 03 04 00 8E F5 91 66 B6 04 01 00 00 86 D0 10 F1 42 DF 48 77 [09:31:26]CommunicateWithHost err = 0 [09:31:26]CheckOFDResponse [09:31:26]1017 (14) - 77093643461234 [09:31:26]1041 (16) - 0000000000874899 [09:31:26]1040 (4) - 162451 [09:31:26]1012 (4) - 13.07.2024 03:33 [09:31:26]1206 (1) - 0 [09:31:26]OFD Sender: Remove packet 162451 [09:31:26]ProducePacketName [09:31:26]name=ofd_packets/00162451 [09:31:26]NVStorageDeleteData [09:31:26]Write to MH i2c: 01 00 00 18 10 28 [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: 01 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: 01 07 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: 01 07 00 18 10 00 00 00 00 00 02 0D 3E [09:31:26]RasterBufferAndPrint [09:31:26]line [09:31:26]line [09:31:26]line [09:31:26]line [09:31:26]line [09:31:26]written 0, free lines is 3338 [09:31:26]MH_Cut [09:31:26]Write to MH i2c: D1 01 00 1F 10 01 01 [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: D1 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: D1 01 00 [09:31:26]MH_I2C_Read... [09:31:26]Read from MH i2c: D1 01 00 1F 10 00 00 [09:31:26]Write to MH i2c: 01 00 00 20 10 30 [09:31:26]Write i2c OK [09:31:26]MH_I2C_Read... [09:31:26]OFD Sender: No OFD packet to send [09:31:26]*** Cut start [09:31:26]*** Purtial cut [09:31:26]*** CUTSNS_PIN = 0 [09:31:27]*** Stage 1: CUTSNS_PIN = 1 [09:31:28]Read from MH i2c: 01 [09:31:28]MH_I2C_Read... [09:31:28]*** Stop cut motor [09:31:28]*** Cut end [09:31:28]Read from MH i2c: 01 07 00 [09:31:28]MH_I2C_Read... [09:31:28]Read from MH i2c: 01 07 00 20 10 00 00 00 00 00 FF 0F 45 [09:31:28]process_action close_receipt done [09:31:28]requested_data is exist [09:31:28]produce_requested_data [09:31:28]requested_item fm.sn is exist - process it [09:31:28]wFMCommunicate request_size=4 [09:31:28]MH_SAM_APDU [09:31:28]CAPDU: 80 11 00 00 [09:31:28]Write to MH i2c: E2 08 00 21 10 80 11 00 00 00 00 00 00 AB [09:31:28]Write i2c OK [09:31:28]MH_I2C_Read... [09:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:28]Read from MH i2c: E2 [09:31:28]MH_I2C_Read... [09:31:28]Read from MH i2c: E2 17 00 [09:31:28]MH_I2C_Read... [09:31:28]Read from MH i2c: E2 17 00 21 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [09:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:31:28]wFMCommunicate OK [09:31:28]requested_item fd.num is exist - process it [09:31:28]SAM_PROTO_GetFieldsCounters [09:31:28]wFMCommunicate request_size=4 [09:31:28]MH_SAM_APDU [09:31:28]CAPDU: 80 13 00 00 [09:31:28]Write to MH i2c: E2 08 00 22 10 80 13 00 00 00 00 00 00 AE [09:31:28]Write i2c OK [09:31:28]MH_I2C_Read... [09:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:29]Read from MH i2c: E2 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 62 00 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 62 00 22 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 93 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [09:31:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 93 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:29]wFMCommunicate OK [09:31:29]SAM_PROTO_GetFieldsCounters done [09:31:29]requested_item shift.num is exist - process it [09:31:29]requested_item shift.opened is exist - process it [09:31:29]req_shift_opened [09:31:29]FM_GetShiftState [09:31:29]SAM_PROTO_GetShiftState [09:31:29]wFMCommunicate request_size=4 [09:31:29]MH_SAM_APDU [09:31:29]CAPDU: 80 13 01 00 [09:31:29]Write to MH i2c: E2 08 00 23 10 80 13 01 00 00 00 00 00 B0 [09:31:29]Write i2c OK [09:31:29]MH_I2C_Read... [09:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:29]Read from MH i2c: E2 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 0E 00 [09:31:29]MH_I2C_Read... [09:31:29]Read from MH i2c: E2 0E 00 23 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AA [09:31:29]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:31:29]wFMCommunicate OK [09:31:29]SAM_PROTO_GetShiftState done [09:31:29]FM_GetShiftState done [09:31:29]req_shift_opened done [09:31:29]requested_item shift.open_date is exist - process it [09:31:29]req_shift_open_date [09:31:29]req_shift_open_date done [09:31:29]produce_requested_data done [09:31:29]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162451,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:31:29]process_action_free close_receipt [09:31:29]json_value_free [09:31:29]json_value_free done [09:31:29]process_json_proto returns [09:31:29]Send response to host [09:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162451,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:31:29]free response buf [09:31:29]execute_script done [09:31:29]execute_script returns [09:31:29]free content buf [09:31:29]Sock 9.Close socket [09:31:29]Sock 9.Thread stoped [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:31:59]accept exits with 8 [09:31:59]New connection [09:31:59]New thread 3067006308 created [09:31:59]Thread 3066862948 joined [09:31:59]Waiting for new connection... [09:31:59] Sock 8.Parse request [09:31:59]Sock 8.Check first char [09:31:59]Sock 8.First char is OK [09:31:59]request: POST /json_proto HTTP/1.0 [09:31:59]Method: POST [09:31:59]URL: /json_proto [09:31:59]Method is POST - this is cgi request [09:31:59]url: /json_proto [09:31:59]query_string will be loaded in cgi processing [09:31:59]execute_cgi json_proto POST (null) [09:31:59]execute_cgi path=json_proto method=POST [09:31:59]POST find Content-Length [09:31:59]Host: 172.17.39.67:8080 [09:31:59]Content-Length: 688 [09:31:59]Content-Type: application/json [09:31:59] [09:31:59]POST finish read [09:31:59]Found Content-Length = 688 [09:31:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:31:59]execute_script... [09:31: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)1318984", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [09:31:59]POST & json_proto [09:31:59]process_json_proto [09:31:59]json parsed OK: [09:31:59]protocol is kg_v1.0 [09:31:59]action value=close_receipt [09:31:59]process_action close_receipt [09:31:59]cmd_close_receipt [09:31:59]MH_GetDate [09:31:59]Write to MH i2c: F0 00 00 24 10 23 [09:31:59]Write i2c OK [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: F0 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: F0 09 00 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: F0 09 00 24 10 00 9D 49 92 66 FA E9 8E 66 E1 [09:31:59]GetLastDocTimeStamp 1720863097 [09:31:59]current date 1720863133 [09:31:59]FM_GetShiftState [09:31:59]SAM_PROTO_GetShiftState [09:31:59]wFMCommunicate request_size=4 [09:31:59]MH_SAM_APDU [09:31:59]CAPDU: 80 13 01 00 [09:31:59]Write to MH i2c: E2 08 00 25 10 80 13 01 00 00 00 00 00 B2 [09:31:59]Write i2c OK [09:31:59]MH_I2C_Read... [09:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:59]Read from MH i2c: E2 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: E2 0E 00 [09:31:59]MH_I2C_Read... [09:31:59]Read from MH i2c: E2 0E 00 25 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AC [09:31:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:31:59]wFMCommunicate OK [09:31:59]SAM_PROTO_GetShiftState done [09:31:59]FM_GetShiftState done [09:31:59]opened in 1720828979 [09:31:59]opened+sec_in_day 1720915379 [09:31:59]quantity*price = 150064 [09:31:59]sum+1 = 150065 [09:31:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 120 13.07.2024 09:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162452 ФПД: 56200466098925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162452&fm=56200466098925&tin=02508201610067®Number=0000000000090858&sum=150000 [09:32:00]StoreToDocumentArchive [09:32:00]shift 462 fd 162452 [09:32:00]save to /storage/0462/doc_00162452 [09:32:00]save last doc name /storage/0462/doc_00162452 to /storage/kkm_last_doc_name [09:32:00]save OK [09:32:00]Clear old archive folders... [09:32:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:32:00]tlvbuf is 016FE870 [09:32:00]SAM_PROTO_ClearQueue [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 09 00 00 [09:32:00]Write to MH i2c: E2 08 00 32 10 80 09 00 00 00 00 00 00 B4 [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 03 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [09:32:00]RAPDU: 90 00 [09:32:00]wFMCommunicate OK [09:32:00]SAM_PROTO_ClearQueue done [09:32:00]KKMCreateOFDPacket [09:32:00]OFDProtocolAddRootSTLVToBuf [09:32:00]FM_MakeSignedData [09:32:00]FM_MakeSignedData [09:32:00]SAM_PROTO_SignData [09:32:00]wFMCommunicate request_size=4 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 0D 01 02 [09:32:00]Write to MH i2c: E2 08 00 33 10 80 0D 01 02 00 00 00 00 BC [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:00]Read from MH i2c: E2 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 03 00 [09:32:00]MH_I2C_Read... [09:32:00]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [09:32:00]RAPDU: 90 00 [09:32:00]wFMCommunicate OK [09:32:00]wFMCommunicate request_size=255 [09:32:00]MH_SAM_APDU [09:32:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 78 00 00 00 F4 03 04 00 9D 49 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7A 02 00 35 04 06 00 [09:32:00]Write to MH i2c: E2 02 01 34 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 78 00 00 00 F4 03 04 00 9D 49 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7A 02 00 35 04 06 00 00 00 73 [09:32:00]Write i2c OK [09:32:00]MH_I2C_Read... [09:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:01]Read from MH i2c: E2 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 03 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [09:32:01]RAPDU: 90 00 [09:32:01]wFMCommunicate OK [09:32:01]wFMCommunicate request_size=11 [09:32:01]MH_SAM_APDU [09:32:01]CAPDU: 80 0D 02 02 06 33 1D 30 D1 6A ED [09:32:01]Write to MH i2c: E2 0E 00 35 10 80 0D 02 02 06 00 33 1D 30 D1 6A ED 00 00 73 [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:01]Read from MH i2c: E2 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 03 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 03 00 35 10 00 90 00 B9 [09:32:01]RAPDU: 90 00 [09:32:01]wFMCommunicate OK [09:32:01]wFMCommunicate request_size=4 [09:32:01]MH_SAM_APDU [09:32:01]CAPDU: 80 0D 03 02 [09:32:01]Write to MH i2c: E2 08 00 36 10 80 0D 03 02 00 00 00 00 C1 [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:01]Read from MH i2c: E2 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 0B 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 0B 00 36 10 00 3A 0E 40 5A 86 40 A0 C2 90 00 CC [09:32:01]RAPDU: 3A 0E 40 5A 86 40 A0 C2 90 00 [09:32:01]wFMCommunicate OK [09:32:01]SAM_PROTO_SignData done [09:32:01]FM_MakeSignedData done [09:32:01]CreateOFDProtocolMessage [09:32:01]wFMCommunicate request_size=4 [09:32:01]MH_SAM_APDU [09:32:01]CAPDU: 80 11 00 00 [09:32:01]Write to MH i2c: E2 08 00 37 10 80 11 00 00 00 00 00 00 C1 [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:01]Read from MH i2c: E2 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 17 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: E2 17 00 37 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [09:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:32:01]wFMCommunicate OK [09:32:01]CreateOFDProtocolMessage done [09:32:01]OFDSenderStorePacket 162452 [09:32:01]StoreOFDPacket docnum=162452 [09:32:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D3 FA 08 01 F0 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 78 00 00 00 F4 03 04 00 9D 49 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7A 02 00 35 04 06 00 33 1D 30 D1 6A ED 3A 0E 40 5A 86 40 A0 C2 [09:32:01]CheckFolder [09:32:01]dirname=/storage/ofd_packets [09:32:01]CheckFolder done [09:32:01]ProducePacketName [09:32:01]name=ofd_packets/00162452 [09:32:01]NVStorageSaveData ofd_packets/00162452 [09:32:01]File name is /storage/ofd_packets/00162452 [09:32:01]Write 302 bytes [09:32:01]NVStorageSaveData done [09:32:01]OFDSenderStorePacket done [09:32:01]KKMCreateOFDPacket done [09:32:01]NVStorageSaveData kkm_last_timestamp [09:32:01]File name is /storage/kkm_last_timestamp [09:32:01]Write 4 bytes [09:32:01]NVStorageSaveData done [09:32:01]ExternCall_PrintAddStr [09:32:01]wPrintStart [09:32:01]Write to MH i2c: 01 00 00 38 10 48 [09:32:01]Write i2c OK [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: 01 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: 01 07 00 [09:32:01]MH_I2C_Read... [09:32:01]Read from MH i2c: 01 07 00 38 10 00 00 00 00 00 FF 0F 5D [09:32:01]RasterBufferAndPrint [09:32:01]line Счет N : (1)1318984 [09:32:01]line ИНН: 02508201610067 [09:32:01]line Контрольно-Кассовый Чек [09:32:01]line ПРОДАЖА [09:32:01]line ТРК (МРК, ГНК) : 31 [09:32:01]line Товар: 2710194210 [09:32:01]line ДТ(л)-К-5 [09:32:01]line 20.670 * 72.60 [09:32:01]line = 1500.64 [09:32:01]line НДС 12% НСП 1% [09:32:01]line > о реализуемом товаре [09:32:01]line ОКРУГЛЕНИЕ: -0.64 [09:32:01]line ИТОГО: 1500.00 [09:32:01]line Внесено: 1500.00 [09:32:01]line СДАЧА: 0.00 [09:32:01]line НСП 1% : 13.28 [09:32:01]line НДС 12% : 159.36 [09:32:01]line Наличными: 1500.00 [09:32:01]line Безнал.: 0.00 [09:32:01]line Место: АЗС № 140 "Партнер Нефть" [09:32:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:32:01]line СНО: Общий режим [09:32:01]line Чек 120 13.07.2024 09:32 [09:32:01]line Смена: 462 ФФД: 1.0 [09:32:01]line ЗНМ: 0300000129 [09:32:01]line РНМ: 0000000000090858 [09:32:01]line Версия ККМ: 001 [09:32:01]line ФМ: 0000000000874899 [09:32:01]line ФД: 162452 [09:32:01]line ФПД: 56200466098925 [09:32:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162452&fm=56200466098925&tin=02508201610067®Number=0000000000090858&sum=150000 [09:32:01]OFD Sender: Processing packet 162452 [packets to send 105, broken 104] [09:32:01]ProducePacketName [09:32:01]name=ofd_packets/00162452 [09:32:01]OFD Sender: To server: pG, [09:32:01]CommunicateWithHost lk.salyk.kg:30040 [09:32:01]ConnectInit lk.salyk.kg [09:32:01]written 0, free lines is 4095 [09:32:01]Connected sock=10 [09:32:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D3 FA 08 01 F0 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 78 00 00 00 F4 03 04 00 9D 49 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7A 02 00 35 04 06 00 33 1D 30 D1 6A ED 3A 0E 40 5A 86 40 A0 C2 [09:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 16 10 47 00 BC 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7A 02 00 F4 03 04 00 B2 F5 91 66 B6 04 01 00 00 A9 79 9E CD D6 36 62 6F [09:32:01]CommunicateWithHost err = 0 [09:32:01]CheckOFDResponse [09:32:01]1017 (14) - 77093643461234 [09:32:01]1041 (16) - 0000000000874899 [09:32:01]1040 (4) - 162452 [09:32:01]1012 (4) - 13.07.2024 03:34 [09:32:01]1206 (1) - 0 [09:32:01]OFD Sender: Remove packet 162452 [09:32:01]ProducePacketName [09:32:01]name=ofd_packets/00162452 [09:32:01]NVStorageDeleteData [09:32:02]Write to MH i2c: 01 00 00 63 10 73 [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 07 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: 01 07 00 63 10 00 00 00 00 00 F1 0C 77 [09:32:02]RasterBufferAndPrint [09:32:02]line [09:32:02]line [09:32:02]line [09:32:02]line [09:32:02]line [09:32:02]written 0, free lines is 3322 [09:32:02]MH_Cut [09:32:02]Write to MH i2c: D1 01 00 6A 10 01 4C [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: D1 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: D1 01 00 [09:32:02]MH_I2C_Read... [09:32:02]Read from MH i2c: D1 01 00 6A 10 00 4B [09:32:02]Write to MH i2c: 01 00 00 6B 10 7B [09:32:02]Write i2c OK [09:32:02]MH_I2C_Read... [09:32:02]OFD Sender: No OFD packet to send [09:32:02]*** Cut start [09:32:02]*** Purtial cut [09:32:02]*** Stage 1: CUTSNS_PIN = 1 [09:32:03]Read from MH i2c: 01 [09:32:03]MH_I2C_Read... [09:32:03]*** Stop cut motor [09:32:03]*** Cut end [09:32:03]Read from MH i2c: 01 07 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: 01 07 00 6B 10 00 00 00 00 00 FF 0F 90 [09:32:03]process_action close_receipt done [09:32:03]requested_data is exist [09:32:03]produce_requested_data [09:32:03]requested_item fm.sn is exist - process it [09:32:03]wFMCommunicate request_size=4 [09:32:03]MH_SAM_APDU [09:32:03]CAPDU: 80 11 00 00 [09:32:03]Write to MH i2c: E2 08 00 6C 10 80 11 00 00 00 00 00 00 F6 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:03]Read from MH i2c: E2 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 17 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 17 00 6C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 56 [09:32:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:32:03]wFMCommunicate OK [09:32:03]requested_item fd.num is exist - process it [09:32:03]SAM_PROTO_GetFieldsCounters [09:32:03]wFMCommunicate request_size=4 [09:32:03]MH_SAM_APDU [09:32:03]CAPDU: 80 13 00 00 [09:32:03]Write to MH i2c: E2 08 00 6D 10 80 13 00 00 00 00 00 00 F9 [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:03]Read from MH i2c: E2 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 62 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 62 00 6D 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 94 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [09:32:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 94 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:03]wFMCommunicate OK [09:32:03]SAM_PROTO_GetFieldsCounters done [09:32:03]requested_item shift.num is exist - process it [09:32:03]requested_item shift.opened is exist - process it [09:32:03]req_shift_opened [09:32:03]FM_GetShiftState [09:32:03]SAM_PROTO_GetShiftState [09:32:03]wFMCommunicate request_size=4 [09:32:03]MH_SAM_APDU [09:32:03]CAPDU: 80 13 01 00 [09:32:03]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [09:32:03]Write i2c OK [09:32:03]MH_I2C_Read... [09:32:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:03]Read from MH i2c: E2 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 0E 00 [09:32:03]MH_I2C_Read... [09:32:03]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F5 [09:32:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:32:03]wFMCommunicate OK [09:32:03]SAM_PROTO_GetShiftState done [09:32:03]FM_GetShiftState done [09:32:03]req_shift_opened done [09:32:03]requested_item shift.open_date is exist - process it [09:32:03]req_shift_open_date [09:32:03]req_shift_open_date done [09:32:03]produce_requested_data done [09:32:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162452,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:32:03]process_action_free close_receipt [09:32:03]json_value_free [09:32:03]json_value_free done [09:32:03]process_json_proto returns [09:32:03]Send response to host [09:32:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162452,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:32:03]free response buf [09:32:03]execute_script done [09:32:03]execute_script returns [09:32:03]free content buf [09:32:03]Sock 8.Close socket [09:32:03]Sock 8.Thread stoped [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]accept exits with 9 [09:37:07]New connection [09:37:07]New thread 3066862948 created [09:37:07]Thread 3067006308 joined [09:37:07]Waiting for new connection... [09:37:07] Sock 9.Parse request [09:37:07]Sock 9.Check first char [09:37:07]Sock 9.First char is OK [09:37:07]request: POST /json_proto HTTP/1.0 [09:37:07]Method: POST [09:37:07]URL: /json_proto [09:37:07]Method is POST - this is cgi request [09:37:07]url: /json_proto [09:37:07]query_string will be loaded in cgi processing [09:37:07]execute_cgi json_proto POST (null) [09:37:07]execute_cgi path=json_proto method=POST [09:37:07]POST find Content-Length [09:37:07]Host: 172.17.39.67:8080 [09:37:07]Content-Length: 676 [09:37:07]Content-Type: application/json [09:37:07] [09:37:07]POST finish read [09:37:07]Found Content-Length = 676 [09:37:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:07]execute_script... [09:37: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)1318985", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:37:07]POST & json_proto [09:37:07]process_json_proto [09:37:07]json parsed OK: [09:37:07]protocol is kg_v1.0 [09:37:07]action value=close_receipt [09:37:07]process_action close_receipt [09:37:07]cmd_close_receipt [09:37:07]MH_GetDate [09:37:07]Write to MH i2c: F0 00 00 6F 10 6E [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: F0 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: F0 09 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: F0 09 00 6F 10 00 D1 4A 92 66 FA E9 8E 66 61 [09:37:07]GetLastDocTimeStamp 1720863133 [09:37:07]current date 1720863441 [09:37:07]FM_GetShiftState [09:37:07]SAM_PROTO_GetShiftState [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 13 01 00 [09:37:07]Write to MH i2c: E2 08 00 70 10 80 13 01 00 00 00 00 00 FD [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0E 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0E 00 70 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F7 [09:37:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_GetShiftState done [09:37:07]FM_GetShiftState done [09:37:07]opened in 1720828979 [09:37:07]opened+sec_in_day 1720915379 [09:37:07]quantity*price = 100007 [09:37:07]sum+1 = 100009 [09:37:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 121 13.07.2024 09:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162453 ФПД: 221854187651653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093721&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162453&fm=221854187651653&tin=02508201610067®Number=0000000000090858&sum=100000 [09:37:08]StoreToDocumentArchive [09:37:08]shift 462 fd 162453 [09:37:08]save to /storage/0462/doc_00162453 [09:37:08]save last doc name /storage/0462/doc_00162453 to /storage/kkm_last_doc_name [09:37:08]save OK [09:37:08]Clear old archive folders... [09:37:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:37:08]tlvbuf is 01864880 [09:37:08]SAM_PROTO_ClearQueue [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 09 00 00 [09:37:08]Write to MH i2c: E2 08 00 7D 10 80 09 00 00 00 00 00 00 FF [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]SAM_PROTO_ClearQueue done [09:37:08]KKMCreateOFDPacket [09:37:08]OFDProtocolAddRootSTLVToBuf [09:37:08]FM_MakeSignedData [09:37:08]FM_MakeSignedData [09:37:08]SAM_PROTO_SignData [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 01 02 [09:37:08]Write to MH i2c: E2 08 00 7E 10 80 0D 01 02 00 00 00 00 07 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=255 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D1 4A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7A 02 00 35 04 06 00 [09:37:08]Write to MH i2c: E2 02 01 7F 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D1 4A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7A 02 00 35 04 06 00 00 00 FD [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 7F 10 00 90 00 03 [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=11 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 02 02 06 C9 C6 74 0C 02 45 [09:37:08]Write to MH i2c: E2 0E 00 80 10 80 0D 02 02 06 00 C9 C6 74 0C 02 45 00 00 6C [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 80 10 00 90 00 04 [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 03 02 [09:37:08]Write to MH i2c: E2 08 00 81 10 80 0D 03 02 00 00 00 00 0C [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0B 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 0B 00 81 10 00 7F 56 D6 99 D4 7C 0B F4 90 00 A0 [09:37:09]RAPDU: 7F 56 D6 99 D4 7C 0B F4 90 00 [09:37:09]wFMCommunicate OK [09:37:09]SAM_PROTO_SignData done [09:37:09]FM_MakeSignedData done [09:37:09]CreateOFDProtocolMessage [09:37:09]wFMCommunicate request_size=4 [09:37:09]MH_SAM_APDU [09:37:09]CAPDU: 80 11 00 00 [09:37:09]Write to MH i2c: E2 08 00 82 10 80 11 00 00 00 00 00 00 0C [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:09]Read from MH i2c: E2 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: E2 17 00 82 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [09:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:37:09]wFMCommunicate OK [09:37:09]CreateOFDProtocolMessage done [09:37:09]OFDSenderStorePacket 162453 [09:37:09]StoreOFDPacket docnum=162453 [09:37:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B2 D9 08 01 DA D0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D1 4A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7A 02 00 35 04 06 00 C9 C6 74 0C 02 45 7F 56 D6 99 D4 7C 0B F4 [09:37:09]CheckFolder [09:37:09]dirname=/storage/ofd_packets [09:37:09]CheckFolder done [09:37:09]ProducePacketName [09:37:09]name=ofd_packets/00162453 [09:37:09]NVStorageSaveData ofd_packets/00162453 [09:37:09]File name is /storage/ofd_packets/00162453 [09:37:09]Write 302 bytes [09:37:09]NVStorageSaveData done [09:37:09]OFDSenderStorePacket done [09:37:09]KKMCreateOFDPacket done [09:37:09]NVStorageSaveData kkm_last_timestamp [09:37:09]File name is /storage/kkm_last_timestamp [09:37:09]Write 4 bytes [09:37:09]NVStorageSaveData done [09:37:09]ExternCall_PrintAddStr [09:37:09]wPrintStart [09:37:09]Write to MH i2c: 01 00 00 83 10 93 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 83 10 00 00 00 00 00 FF 0F A8 [09:37:09]RasterBufferAndPrint [09:37:09]line Счет N : (1)1318985 [09:37:09]line ИНН: 02508201610067 [09:37:09]line Контрольно-Кассовый Чек [09:37:09]line ПРОДАЖА [09:37:09]line ТРК (МРК, ГНК) : 42 [09:37:09]line Товар: 2710124130 [09:37:09]line Super-92-К-5 [09:37:09]line 14.860 * 67.30 [09:37:09]line = 1000.08 [09:37:09]line НДС 12% НСП 1% [09:37:09]line > о реализуемом товаре [09:37:09]line ОКРУГЛЕНИЕ: -0.08 [09:37:09]line ИТОГО: 1000.00 [09:37:09]line Внесено: 1000.00 [09:37:09]line СДАЧА: 0.00 [09:37:09]line НСП 1% : 8.85 [09:37:09]line НДС 12% : 106.20 [09:37:09]line Наличными: 1000.00 [09:37:09]line Безнал.: 0.00 [09:37:09]line Место: АЗС № 140 "Партнер Нефть" [09:37:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:37:09]line СНО: Общий режим [09:37:09]line Чек 121 13.07.2024 09:37 [09:37:09]line Смена: 462 ФФД: 1.0 [09:37:09]line ЗНМ: 0300000129 [09:37:09]line РНМ: 0000000000090858 [09:37:09]line Версия ККМ: 001 [09:37:09]line ФМ: 0000000000874899 [09:37:09]line ФД: 162453 [09:37:09]line ФПД: 221854187651653 [09:37:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T093721&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162453&fm=221854187651653&tin=02508201610067®Number=0000000000090858&sum=100000 [09:37:09]OFD Sender: Processing packet 162453 [packets to send 105, broken 104] [09:37:09]ProducePacketName [09:37:09]name=ofd_packets/00162453 [09:37:09]OFD Sender: To server: pG, [09:37:09]CommunicateWithHost lk.salyk.kg:30040 [09:37:09]ConnectInit lk.salyk.kg [09:37:09]written 0, free lines is 4095 [09:37:09]Connected sock=10 [09:37:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B2 D9 08 01 DA D0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 D1 4A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7A 02 00 35 04 06 00 C9 C6 74 0C 02 45 7F 56 D6 99 D4 7C 0B F4 [09:37:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3F 74 47 00 B9 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7A 02 00 F4 03 04 00 E5 F6 91 66 B6 04 01 00 00 D5 93 92 68 89 04 EE 94 [09:37:09]CommunicateWithHost err = 0 [09:37:09]CheckOFDResponse [09:37:09]1017 (14) - 77093643461234 [09:37:09]1041 (16) - 0000000000874899 [09:37:09]1040 (4) - 162453 [09:37:09]1012 (4) - 13.07.2024 03:39 [09:37:09]1206 (1) - 0 [09:37:09]OFD Sender: Remove packet 162453 [09:37:09]ProducePacketName [09:37:09]name=ofd_packets/00162453 [09:37:09]NVStorageDeleteData [09:37:09]Write to MH i2c: 01 00 00 AE 10 BE [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: 01 07 00 AE 10 00 00 00 00 00 E4 0C B5 [09:37:09]RasterBufferAndPrint [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]line [09:37:09]written 0, free lines is 3306 [09:37:09]MH_Cut [09:37:09]Write to MH i2c: D1 01 00 B5 10 01 97 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 01 00 [09:37:09]MH_I2C_Read... [09:37:09]Read from MH i2c: D1 01 00 B5 10 00 96 [09:37:09]Write to MH i2c: 01 00 00 B6 10 C6 [09:37:09]Write i2c OK [09:37:09]MH_I2C_Read... [09:37:10]OFD Sender: No OFD packet to send [09:37:10]*** Cut start [09:37:10]*** Purtial cut [09:37:10]*** CUTSNS_PIN = 0 [09:37:10]*** Stage 1: CUTSNS_PIN = 1 [09:37:12]Read from MH i2c: 01 [09:37:12]MH_I2C_Read... [09:37:12]*** Stop cut motor [09:37:12]*** Cut end [09:37:12]Read from MH i2c: 01 07 00 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: 01 07 00 B6 10 00 00 00 00 00 FF 0F DB [09:37:12]process_action close_receipt done [09:37:12]requested_data is exist [09:37:12]produce_requested_data [09:37:12]requested_item fm.sn is exist - process it [09:37:12]wFMCommunicate request_size=4 [09:37:12]MH_SAM_APDU [09:37:12]CAPDU: 80 11 00 00 [09:37:12]Write to MH i2c: E2 08 00 B7 10 80 11 00 00 00 00 00 00 41 [09:37:12]Write i2c OK [09:37:12]MH_I2C_Read... [09:37:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:12]Read from MH i2c: E2 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 17 00 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 17 00 B7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A1 [09:37:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:37:12]wFMCommunicate OK [09:37:12]requested_item fd.num is exist - process it [09:37:12]SAM_PROTO_GetFieldsCounters [09:37:12]wFMCommunicate request_size=4 [09:37:12]MH_SAM_APDU [09:37:12]CAPDU: 80 13 00 00 [09:37:12]Write to MH i2c: E2 08 00 B8 10 80 13 00 00 00 00 00 00 44 [09:37:12]Write i2c OK [09:37:12]MH_I2C_Read... [09:37:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:12]Read from MH i2c: E2 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 62 00 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 62 00 B8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 95 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [09:37:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 95 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:12]wFMCommunicate OK [09:37:12]SAM_PROTO_GetFieldsCounters done [09:37:12]requested_item shift.num is exist - process it [09:37:12]requested_item shift.opened is exist - process it [09:37:12]req_shift_opened [09:37:12]FM_GetShiftState [09:37:12]SAM_PROTO_GetShiftState [09:37:12]wFMCommunicate request_size=4 [09:37:12]MH_SAM_APDU [09:37:12]CAPDU: 80 13 01 00 [09:37:12]Write to MH i2c: E2 08 00 B9 10 80 13 01 00 00 00 00 00 46 [09:37:12]Write i2c OK [09:37:12]MH_I2C_Read... [09:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:12]Read from MH i2c: E2 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 0E 00 [09:37:12]MH_I2C_Read... [09:37:12]Read from MH i2c: E2 0E 00 B9 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 40 [09:37:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:37:12]wFMCommunicate OK [09:37:12]SAM_PROTO_GetShiftState done [09:37:12]FM_GetShiftState done [09:37:12]req_shift_opened done [09:37:12]requested_item shift.open_date is exist - process it [09:37:12]req_shift_open_date [09:37:12]req_shift_open_date done [09:37:12]produce_requested_data done [09:37:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162453,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:37:12]process_action_free close_receipt [09:37:12]json_value_free [09:37:12]json_value_free done [09:37:12]process_json_proto returns [09:37:12]Send response to host [09:37:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162453,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:37:12]free response buf [09:37:12]execute_script done [09:37:12]execute_script returns [09:37:12]free content buf [09:37:12]Sock 9.Close socket [09:37:12]Sock 9.Thread stoped [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]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:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:03]accept exits with 8 [09:41:03]New connection [09:41:03]New thread 3067006308 created [09:41:03]Thread 3066862948 joined [09:41:03]Waiting for new connection... [09:41:03] Sock 8.Parse request [09:41:03]Sock 8.Check first char [09:41:03]Sock 8.First char is OK [09:41:03]request: POST /json_proto HTTP/1.0 [09:41:03]Method: POST [09:41:03]URL: /json_proto [09:41:03]Method is POST - this is cgi request [09:41:03]url: /json_proto [09:41:03]query_string will be loaded in cgi processing [09:41:03]execute_cgi json_proto POST (null) [09:41:03]execute_cgi path=json_proto method=POST [09:41:03]POST find Content-Length [09:41:03]Host: 172.17.39.67:8080 [09:41:03]Content-Length: 683 [09:41:03]Content-Type: application/json [09:41:03] [09:41:03]POST finish read [09:41:03]Found Content-Length = 683 [09:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 18.820, "sum" : 1400.21, "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" ] } } [09:41:03]execute_script... [09:41: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)1318986", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 18.820, "sum" : 1400.21, "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" ] } } [09:41:03]POST & json_proto [09:41:03]process_json_proto [09:41:03]json parsed OK: [09:41:03]protocol is kg_v1.0 [09:41:03]action value=close_receipt [09:41:03]process_action close_receipt [09:41:03]cmd_close_receipt [09:41:03]MH_GetDate [09:41:03]Write to MH i2c: F0 00 00 BA 10 B9 [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: F0 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: F0 09 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: F0 09 00 BA 10 00 BD 4B 92 66 FA E9 8E 66 99 [09:41:03]GetLastDocTimeStamp 1720863441 [09:41:03]current date 1720863677 [09:41:03]FM_GetShiftState [09:41:03]SAM_PROTO_GetShiftState [09:41:03]wFMCommunicate request_size=4 [09:41:03]MH_SAM_APDU [09:41:03]CAPDU: 80 13 01 00 [09:41:03]Write to MH i2c: E2 08 00 BB 10 80 13 01 00 00 00 00 00 48 [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:03]Read from MH i2c: E2 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: E2 0E 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: E2 0E 00 BB 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 42 [09:41:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:41:03]wFMCommunicate OK [09:41:03]SAM_PROTO_GetShiftState done [09:41:03]FM_GetShiftState done [09:41:03]opened in 1720828979 [09:41:03]opened+sec_in_day 1720915379 [09:41:03]quantity*price = 140020 [09:41:03]sum+1 = 140022 [09:41:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.69 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 122 13.07.2024 09:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162454 ФПД: 114038728772453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094117&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162454&fm=114038728772453&tin=02508201610067®Number=0000000000090858&sum=140000 [09:41:04]StoreToDocumentArchive [09:41:04]shift 462 fd 162454 [09:41:04]save to /storage/0462/doc_00162454 [09:41:04]save last doc name /storage/0462/doc_00162454 to /storage/kkm_last_doc_name [09:41:04]save OK [09:41:04]Clear old archive folders... [09:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:04]tlvbuf is 01C449B0 [09:41:04]SAM_PROTO_ClearQueue [09:41:04]wFMCommunicate request_size=4 [09:41:04]MH_SAM_APDU [09:41:04]CAPDU: 80 09 00 00 [09:41:04]Write to MH i2c: E2 08 00 C8 10 80 09 00 00 00 00 00 00 4A [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:04]Read from MH i2c: E2 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 03 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [09:41:04]RAPDU: 90 00 [09:41:04]wFMCommunicate OK [09:41:04]SAM_PROTO_ClearQueue done [09:41:04]KKMCreateOFDPacket [09:41:04]OFDProtocolAddRootSTLVToBuf [09:41:04]FM_MakeSignedData [09:41:04]FM_MakeSignedData [09:41:04]SAM_PROTO_SignData [09:41:04]wFMCommunicate request_size=4 [09:41:04]MH_SAM_APDU [09:41:04]CAPDU: 80 0D 01 02 [09:41:04]Write to MH i2c: E2 08 00 C9 10 80 0D 01 02 00 00 00 00 52 [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:04]Read from MH i2c: E2 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 03 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [09:41:04]RAPDU: 90 00 [09:41:04]wFMCommunicate OK [09:41:04]wFMCommunicate request_size=255 [09:41:04]MH_SAM_APDU [09:41: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 84 49 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 F5 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 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 7A 00 00 00 F4 03 04 00 BD 4B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7A 02 00 35 04 06 00 67 [09:41:04]Write to MH i2c: E2 02 01 CA 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 84 49 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 F5 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 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 7A 00 00 00 F4 03 04 00 BD 4B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7A 02 00 35 04 06 00 67 00 00 79 [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:04]Read from MH i2c: E2 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 03 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 03 00 CA 10 00 90 00 4E [09:41:04]RAPDU: 90 00 [09:41:04]wFMCommunicate OK [09:41:04]wFMCommunicate request_size=10 [09:41:04]MH_SAM_APDU [09:41:04]CAPDU: 80 0D 02 02 05 B7 B5 EB 4B 65 [09:41:04]Write to MH i2c: E2 0D 00 CB 10 80 0D 02 02 05 00 B7 B5 EB 4B 65 00 00 66 [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 03 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 03 00 CB 10 00 90 00 4F [09:41:05]RAPDU: 90 00 [09:41:05]wFMCommunicate OK [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 0D 03 02 [09:41:05]Write to MH i2c: E2 08 00 CC 10 80 0D 03 02 00 00 00 00 57 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 0B 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 0B 00 CC 10 00 71 05 89 C1 0B 5E 88 2D 90 00 36 [09:41:05]RAPDU: 71 05 89 C1 0B 5E 88 2D 90 00 [09:41:05]wFMCommunicate OK [09:41:05]SAM_PROTO_SignData done [09:41:05]FM_MakeSignedData done [09:41:05]CreateOFDProtocolMessage [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 11 00 00 [09:41:05]Write to MH i2c: E2 08 00 CD 10 80 11 00 00 00 00 00 00 57 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:05]Read from MH i2c: E2 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 17 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: E2 17 00 CD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [09:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:41:05]wFMCommunicate OK [09:41:05]CreateOFDProtocolMessage done [09:41:05]OFDSenderStorePacket 162454 [09:41:05]StoreOFDPacket docnum=162454 [09:41:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 49 4C 07 01 34 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 49 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 F5 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 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 7A 00 00 00 F4 03 04 00 BD 4B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7A 02 00 35 04 06 00 67 B7 B5 EB 4B 65 71 05 89 C1 0B 5E 88 2D [09:41:05]CheckFolder [09:41:05]dirname=/storage/ofd_packets [09:41:05]CheckFolder done [09:41:05]ProducePacketName [09:41:05]name=ofd_packets/00162454 [09:41:05]NVStorageSaveData ofd_packets/00162454 [09:41:05]File name is /storage/ofd_packets/00162454 [09:41:05]Write 301 bytes [09:41:05]NVStorageSaveData done [09:41:05]OFDSenderStorePacket done [09:41:05]KKMCreateOFDPacket done [09:41:05]NVStorageSaveData kkm_last_timestamp [09:41:05]File name is /storage/kkm_last_timestamp [09:41:05]Write 4 bytes [09:41:05]NVStorageSaveData done [09:41:05]ExternCall_PrintAddStr [09:41:05]wPrintStart [09:41:05]Write to MH i2c: 01 00 00 CE 10 DE [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: 01 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: 01 07 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: 01 07 00 CE 10 00 00 00 00 00 FF 0F F3 [09:41:05]RasterBufferAndPrint [09:41:05]line Счет N : (1)1318986 [09:41:05]line ИНН: 02508201610067 [09:41:05]line Контрольно-Кассовый Чек [09:41:05]line ПРОДАЖА [09:41:05]line ТРК (МРК, ГНК) : 34 [09:41:05]line Товар: 2710124500 [09:41:05]line Аи-95-К-5 [09:41:05]line 18.820 * 74.40 [09:41:05]line = 1400.21 [09:41:05]line НДС 12% НСП 1% [09:41:05]line > о реализуемом товаре [09:41:05]line ОКРУГЛЕНИЕ: -0.21 [09:41:05]line ИТОГО: 1400.00 [09:41:05]line Внесено: 1400.00 [09:41:05]line СДАЧА: 0.00 [09:41:05]line НСП 1% : 12.39 [09:41:05]line НДС 12% : 148.69 [09:41:05]line Наличными: 1400.00 [09:41:05]line Безнал.: 0.00 [09:41:05]line Место: АЗС № 140 "Партнер Нефть" [09:41:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:41:05]line СНО: Общий режим [09:41:05]line Чек 122 13.07.2024 09:41 [09:41:05]line Смена: 462 ФФД: 1.0 [09:41:05]line ЗНМ: 0300000129 [09:41:05]line РНМ: 0000000000090858 [09:41:05]line Версия ККМ: 001 [09:41:05]line ФМ: 0000000000874899 [09:41:05]line ФД: 162454 [09:41:05]line ФПД: 114038728772453 [09:41:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094117&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162454&fm=114038728772453&tin=02508201610067®Number=0000000000090858&sum=140000 [09:41:05]OFD Sender: Processing packet 162454 [packets to send 105, broken 104] [09:41:05]ProducePacketName [09:41:05]name=ofd_packets/00162454 [09:41:05]OFD Sender: To server: pG, [09:41:05]CommunicateWithHost lk.salyk.kg:30040 [09:41:05]ConnectInit lk.salyk.kg [09:41:05]written 0, free lines is 4095 [09:41:05]Connected sock=10 [09:41:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 49 4C 07 01 34 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 84 49 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 F5 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 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 7A 00 00 00 F4 03 04 00 BD 4B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7A 02 00 35 04 06 00 67 B7 B5 EB 4B 65 71 05 89 C1 0B 5E 88 2D [09:41:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7A 1C 47 00 8B 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7A 02 00 F4 03 04 00 D1 F7 91 66 B6 04 01 00 00 A5 98 03 BB 9C B1 6E D3 [09:41:05]CommunicateWithHost err = 0 [09:41:05]CheckOFDResponse [09:41:05]1017 (14) - 77093643461234 [09:41:05]1041 (16) - 0000000000874899 [09:41:05]1040 (4) - 162454 [09:41:05]1012 (4) - 13.07.2024 03:43 [09:41:05]1206 (1) - 0 [09:41:05]OFD Sender: Remove packet 162454 [09:41:05]ProducePacketName [09:41:05]name=ofd_packets/00162454 [09:41:05]NVStorageDeleteData [09:41:05]Write to MH i2c: 01 00 00 F9 10 09 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: 01 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: 01 07 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: 01 07 00 F9 10 00 00 00 00 00 DA 0C F6 [09:41:05]RasterBufferAndPrint [09:41:05]line [09:41:05]line [09:41:05]line [09:41:05]line [09:41:05]line [09:41:05]written 0, free lines is 3299 [09:41:05]MH_Cut [09:41:05]Write to MH i2c: D1 01 00 00 11 01 E3 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: D1 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: D1 01 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: D1 01 00 00 11 00 E2 [09:41:05]Write to MH i2c: 01 00 00 01 11 12 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:06]OFD Sender: No OFD packet to send [09:41:06]*** Cut start [09:41:06]*** Purtial cut [09:41:06]*** Stage 1: CUTSNS_PIN = 1 [09:41:06]Read from MH i2c: 01 [09:41:06]MH_I2C_Read... [09:41:06]*** Stop cut motor [09:41:06]*** Cut end [09:41:06]Read from MH i2c: 01 07 00 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: 01 07 00 01 11 00 00 00 00 00 FF 0F 27 [09:41:06]process_action close_receipt done [09:41:06]requested_data is exist [09:41:06]produce_requested_data [09:41:06]requested_item fm.sn is exist - process it [09:41:06]wFMCommunicate request_size=4 [09:41:06]MH_SAM_APDU [09:41:06]CAPDU: 80 11 00 00 [09:41:06]Write to MH i2c: E2 08 00 02 11 80 11 00 00 00 00 00 00 8D [09:41:06]Write i2c OK [09:41:06]MH_I2C_Read... [09:41:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:06]Read from MH i2c: E2 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 17 00 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 17 00 02 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 ED [09:41:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:41:06]wFMCommunicate OK [09:41:06]requested_item fd.num is exist - process it [09:41:06]SAM_PROTO_GetFieldsCounters [09:41:06]wFMCommunicate request_size=4 [09:41:06]MH_SAM_APDU [09:41:06]CAPDU: 80 13 00 00 [09:41:06]Write to MH i2c: E2 08 00 03 11 80 13 00 00 00 00 00 00 90 [09:41:06]Write i2c OK [09:41:06]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 62 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 62 00 03 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 96 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [09:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 96 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:07]wFMCommunicate OK [09:41:07]SAM_PROTO_GetFieldsCounters done [09:41:07]requested_item shift.num is exist - process it [09:41:07]requested_item shift.opened is exist - process it [09:41:07]req_shift_opened [09:41:07]FM_GetShiftState [09:41:07]SAM_PROTO_GetShiftState [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 13 01 00 [09:41:07]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0E 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8C [09:41:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:41:07]wFMCommunicate OK [09:41:07]SAM_PROTO_GetShiftState done [09:41:07]FM_GetShiftState done [09:41:07]req_shift_opened done [09:41:07]requested_item shift.open_date is exist - process it [09:41:07]req_shift_open_date [09:41:07]req_shift_open_date done [09:41:07]produce_requested_data done [09:41:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162454,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:41:07]process_action_free close_receipt [09:41:07]json_value_free [09:41:07]json_value_free done [09:41:07]process_json_proto returns [09:41:07]Send response to host [09:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162454,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:41:07]free response buf [09:41:07]execute_script done [09:41:07]execute_script returns [09:41:07]free content buf [09:41:07]Sock 8.Close socket [09:41:07]Sock 8.Thread stoped [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:34]accept exits with 9 [09:42:34]New connection [09:42:34]New thread 3066862948 created [09:42:34]Thread 3067006308 joined [09:42:34]Waiting for new connection... [09:42:34] Sock 9.Parse request [09:42:34]Sock 9.Check first char [09:42:34]Sock 9.First char is OK [09:42:34]request: POST /json_proto HTTP/1.0 [09:42:34]Method: POST [09:42:34]URL: /json_proto [09:42:34]Method is POST - this is cgi request [09:42:34]url: /json_proto [09:42:34]query_string will be loaded in cgi processing [09:42:34]execute_cgi json_proto POST (null) [09:42:34]execute_cgi path=json_proto method=POST [09:42:34]POST find Content-Length [09:42:34]Host: 172.17.39.67:8080 [09:42:34]Content-Length: 683 [09:42:34]Content-Type: application/json [09:42:34] [09:42:34]POST finish read [09:42:34]Found Content-Length = 683 [09:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 35.530, "sum" : 2355.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2355.00, "total" : 2355.00, "payments": [ { "type": 0, "sum" : 2355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:34]execute_script... [09:42: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)1318987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 35.530, "sum" : 2355.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2355.00, "total" : 2355.00, "payments": [ { "type": 0, "sum" : 2355.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:34]POST & json_proto [09:42:34]process_json_proto [09:42:34]json parsed OK: [09:42:34]protocol is kg_v1.0 [09:42:34]action value=close_receipt [09:42:34]process_action close_receipt [09:42:34]cmd_close_receipt [09:42:34]MH_GetDate [09:42:34]Write to MH i2c: F0 00 00 05 11 05 [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 09 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: F0 09 00 05 11 00 18 4C 92 66 FA E9 8E 66 41 [09:42:34]GetLastDocTimeStamp 1720863677 [09:42:34]current date 1720863768 [09:42:34]FM_GetShiftState [09:42:34]SAM_PROTO_GetShiftState [09:42:34]wFMCommunicate request_size=4 [09:42:34]MH_SAM_APDU [09:42:34]CAPDU: 80 13 01 00 [09:42:34]Write to MH i2c: E2 08 00 06 11 80 13 01 00 00 00 00 00 94 [09:42:34]Write i2c OK [09:42:34]MH_I2C_Read... [09:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:34]Read from MH i2c: E2 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: E2 0E 00 [09:42:34]MH_I2C_Read... [09:42:34]Read from MH i2c: E2 0E 00 06 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8E [09:42:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:42:34]wFMCommunicate OK [09:42:34]SAM_PROTO_GetShiftState done [09:42:34]FM_GetShiftState done [09:42:34]opened in 1720828979 [09:42:34]opened+sec_in_day 1720915379 [09:42:34]quantity*price = 235563 [09:42:34]sum+1 = 235565 [09:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 2355.00 Внесено: 2355.00 СДАЧА: 0.00 НСП 1% : 20.85 НДС 12% : 250.16 Наличными: 2355.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 123 13.07.2024 09:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162455 ФПД: 257932298539683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094248&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162455&fm=257932298539683&tin=02508201610067®Number=0000000000090858&sum=235500 [09:42:35]StoreToDocumentArchive [09:42:35]shift 462 fd 162455 [09:42:35]save to /storage/0462/doc_00162455 [09:42:35]save last doc name /storage/0462/doc_00162455 to /storage/kkm_last_doc_name [09:42:35]save OK [09:42:35]Clear old archive folders... [09:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:42:35]tlvbuf is 016FEA70 [09:42:35]SAM_PROTO_ClearQueue [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 09 00 00 [09:42:35]Write to MH i2c: E2 08 00 13 11 80 09 00 00 00 00 00 00 96 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [09:42:35]RAPDU: 90 00 [09:42:35]wFMCommunicate OK [09:42:35]SAM_PROTO_ClearQueue done [09:42:35]KKMCreateOFDPacket [09:42:35]OFDProtocolAddRootSTLVToBuf [09:42:35]FM_MakeSignedData [09:42:35]FM_MakeSignedData [09:42:35]SAM_PROTO_SignData [09:42:35]wFMCommunicate request_size=4 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 0D 01 02 [09:42:35]Write to MH i2c: E2 08 00 14 11 80 0D 01 02 00 00 00 00 9E [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:35]Read from MH i2c: E2 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 [09:42:35]MH_I2C_Read... [09:42:35]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [09:42:35]RAPDU: 90 00 [09:42:35]wFMCommunicate OK [09:42:35]wFMCommunicate request_size=255 [09:42:35]MH_SAM_APDU [09:42:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 8A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2C 98 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 97 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 61 00 00 00 00 07 04 06 00 EC 97 03 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 18 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7A 02 00 35 04 06 00 EA [09:42:35]Write to MH i2c: E2 02 01 15 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 8A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2C 98 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 97 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 61 00 00 00 00 07 04 06 00 EC 97 03 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 18 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7A 02 00 35 04 06 00 EA 00 00 C9 [09:42:35]Write i2c OK [09:42:35]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 15 11 00 90 00 9A [09:42:36]RAPDU: 90 00 [09:42:36]wFMCommunicate OK [09:42:36]wFMCommunicate request_size=10 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 0D 02 02 05 96 8B 07 D2 A3 [09:42:36]Write to MH i2c: E2 0D 00 16 11 80 0D 02 02 05 00 96 8B 07 D2 A3 00 00 48 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 03 00 16 11 00 90 00 9B [09:42:36]RAPDU: 90 00 [09:42:36]wFMCommunicate OK [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 0D 03 02 [09:42:36]Write to MH i2c: E2 08 00 17 11 80 0D 03 02 00 00 00 00 A3 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0B 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 0B 00 17 11 00 C8 0F 4A 31 17 35 FE DB 90 00 1B [09:42:36]RAPDU: C8 0F 4A 31 17 35 FE DB 90 00 [09:42:36]wFMCommunicate OK [09:42:36]SAM_PROTO_SignData done [09:42:36]FM_MakeSignedData done [09:42:36]CreateOFDProtocolMessage [09:42:36]wFMCommunicate request_size=4 [09:42:36]MH_SAM_APDU [09:42:36]CAPDU: 80 11 00 00 [09:42:36]Write to MH i2c: E2 08 00 18 11 80 11 00 00 00 00 00 00 A3 [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:36]Read from MH i2c: E2 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 17 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: E2 17 00 18 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [09:42:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:42:36]wFMCommunicate OK [09:42:36]CreateOFDProtocolMessage done [09:42:36]OFDSenderStorePacket 162455 [09:42:36]StoreOFDPacket docnum=162455 [09:42:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 42 5F 07 01 C8 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 8A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2C 98 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 97 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 61 00 00 00 00 07 04 06 00 EC 97 03 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 18 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7A 02 00 35 04 06 00 EA 96 8B 07 D2 A3 C8 0F 4A 31 17 35 FE DB [09:42:36]CheckFolder [09:42:36]dirname=/storage/ofd_packets [09:42:36]CheckFolder done [09:42:36]ProducePacketName [09:42:36]name=ofd_packets/00162455 [09:42:36]NVStorageSaveData ofd_packets/00162455 [09:42:36]File name is /storage/ofd_packets/00162455 [09:42:36]Write 301 bytes [09:42:36]NVStorageSaveData done [09:42:36]OFDSenderStorePacket done [09:42:36]KKMCreateOFDPacket done [09:42:36]NVStorageSaveData kkm_last_timestamp [09:42:36]File name is /storage/kkm_last_timestamp [09:42:36]Write 4 bytes [09:42:36]NVStorageSaveData done [09:42:36]ExternCall_PrintAddStr [09:42:36]wPrintStart [09:42:36]Write to MH i2c: 01 00 00 19 11 2A [09:42:36]Write i2c OK [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 [09:42:36]MH_I2C_Read... [09:42:36]Read from MH i2c: 01 07 00 19 11 00 00 00 00 00 FF 0F 3F [09:42:36]RasterBufferAndPrint [09:42:36]line Счет N : (1)1318987 [09:42:36]line ИНН: 02508201610067 [09:42:36]line Контрольно-Кассовый Чек [09:42:36]line ПРОДАЖА [09:42:36]line ТРК (МРК, ГНК) : 53 [09:42:36]line Товар: 2710124130 [09:42:36]line Аи-92-К-5 [09:42:36]line 35.530 * 66.30 [09:42:36]line = 2355.64 [09:42:36]line НДС 12% НСП 1% [09:42:36]line > о реализуемом товаре [09:42:36]line ОКРУГЛЕНИЕ: -0.64 [09:42:36]line ИТОГО: 2355.00 [09:42:36]line Внесено: 2355.00 [09:42:36]line СДАЧА: 0.00 [09:42:36]line НСП 1% : 20.85 [09:42:36]line НДС 12% : 250.16 [09:42:36]line Наличными: 2355.00 [09:42:36]line Безнал.: 0.00 [09:42:36]line Место: АЗС № 140 "Партнер Нефть" [09:42:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:42:36]line СНО: Общий режим [09:42:36]line Чек 123 13.07.2024 09:42 [09:42:36]line Смена: 462 ФФД: 1.0 [09:42:36]line ЗНМ: 0300000129 [09:42:36]line РНМ: 0000000000090858 [09:42:36]line Версия ККМ: 001 [09:42:36]line ФМ: 0000000000874899 [09:42:36]line ФД: 162455 [09:42:36]line ФПД: 257932298539683 [09:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094248&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162455&fm=257932298539683&tin=02508201610067®Number=0000000000090858&sum=235500 [09:42:36]OFD Sender: Processing packet 162455 [packets to send 105, broken 104] [09:42:36]ProducePacketName [09:42:36]name=ofd_packets/00162455 [09:42:36]OFD Sender: To server: pG, [09:42:36]CommunicateWithHost lk.salyk.kg:30040 [09:42:36]ConnectInit lk.salyk.kg [09:42:36]written 0, free lines is 4095 [09:42:36]Connected sock=11 [09:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 42 5F 07 01 C8 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 8A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 2C 98 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 97 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 61 00 00 00 00 07 04 06 00 EC 97 03 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 18 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7A 02 00 35 04 06 00 EA 96 8B 07 D2 A3 C8 0F 4A 31 17 35 FE DB [09:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6B FD 47 00 F2 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7A 02 00 F4 03 04 00 2C F8 91 66 B6 04 01 00 00 13 75 57 47 CE 5A 82 25 [09:42:36]CommunicateWithHost err = 0 [09:42:36]CheckOFDResponse [09:42:36]1017 (14) - 77093643461234 [09:42:36]1041 (16) - 0000000000874899 [09:42:36]1040 (4) - 162455 [09:42:36]1012 (4) - 13.07.2024 03:44 [09:42:36]1206 (1) - 0 [09:42:36]OFD Sender: Remove packet 162455 [09:42:36]ProducePacketName [09:42:36]name=ofd_packets/00162455 [09:42:36]NVStorageDeleteData [09:42:37]Write to MH i2c: 01 00 00 44 11 55 [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: 01 07 00 44 11 00 00 00 00 00 F1 0C 59 [09:42:37]RasterBufferAndPrint [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]line [09:42:37]written 0, free lines is 3319 [09:42:37]MH_Cut [09:42:37]Write to MH i2c: D1 01 00 4B 11 01 2E [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 01 00 [09:42:37]MH_I2C_Read... [09:42:37]Read from MH i2c: D1 01 00 4B 11 00 2D [09:42:37]Write to MH i2c: 01 00 00 4C 11 5D [09:42:37]Write i2c OK [09:42:37]MH_I2C_Read... [09:42:37]OFD Sender: No OFD packet to send [09:42:37]*** Cut start [09:42:37]*** Purtial cut [09:42:37]*** CUTSNS_PIN = 0 [09:42:37]*** Stage 1: CUTSNS_PIN = 1 [09:42:39]Read from MH i2c: 01 [09:42:39]MH_I2C_Read... [09:42:39]*** Stop cut motor [09:42:39]*** Cut end [09:42:39]Read from MH i2c: 01 07 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: 01 07 00 4C 11 00 00 00 00 00 FF 0F 72 [09:42:39]process_action close_receipt done [09:42:39]requested_data is exist [09:42:39]produce_requested_data [09:42:39]requested_item fm.sn is exist - process it [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 11 00 00 [09:42:39]Write to MH i2c: E2 08 00 4D 11 80 11 00 00 00 00 00 00 D8 [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:39]Read from MH i2c: E2 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 [09:42:39]MH_I2C_Read... [09:42:39]Read from MH i2c: E2 17 00 4D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 38 [09:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:42:39]wFMCommunicate OK [09:42:39]requested_item fd.num is exist - process it [09:42:39]SAM_PROTO_GetFieldsCounters [09:42:39]wFMCommunicate request_size=4 [09:42:39]MH_SAM_APDU [09:42:39]CAPDU: 80 13 00 00 [09:42:39]Write to MH i2c: E2 08 00 4E 11 80 13 00 00 00 00 00 00 DB [09:42:39]Write i2c OK [09:42:39]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 62 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 62 00 4E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 97 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [09: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 97 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_GetFieldsCounters done [09:42:40]requested_item shift.num is exist - process it [09:42:40]requested_item shift.opened is exist - process it [09:42:40]req_shift_opened [09:42:40]FM_GetShiftState [09:42:40]SAM_PROTO_GetShiftState [09:42:40]wFMCommunicate request_size=4 [09:42:40]MH_SAM_APDU [09:42:40]CAPDU: 80 13 01 00 [09:42:40]Write to MH i2c: E2 08 00 4F 11 80 13 01 00 00 00 00 00 DD [09:42:40]Write i2c OK [09:42:40]MH_I2C_Read... [09:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:40]Read from MH i2c: E2 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0E 00 [09:42:40]MH_I2C_Read... [09:42:40]Read from MH i2c: E2 0E 00 4F 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D7 [09:42:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:42:40]wFMCommunicate OK [09:42:40]SAM_PROTO_GetShiftState done [09:42:40]FM_GetShiftState done [09:42:40]req_shift_opened done [09:42:40]requested_item shift.open_date is exist - process it [09:42:40]req_shift_open_date [09:42:40]req_shift_open_date done [09:42:40]produce_requested_data done [09:42:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162455,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:42:40]process_action_free close_receipt [09:42:40]json_value_free [09:42:40]json_value_free done [09:42:40]process_json_proto returns [09:42:40]Send response to host [09:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162455,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:42:40]free response buf [09:42:40]execute_script done [09:42:40]execute_script returns [09:42:40]free content buf [09:42:40]Sock 9.Close socket [09:42:40]Sock 9.Thread stoped [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:35]accept exits with 8 [09:43:35]New connection [09:43:35]New thread 3067006308 created [09:43:35]Thread 3066862948 joined [09:43:35]Waiting for new connection... [09:43:35] Sock 8.Parse request [09:43:35]Sock 8.Check first char [09:43:35]Sock 8.First char is OK [09:43:35]request: POST /json_proto HTTP/1.0 [09:43:35]Method: POST [09:43:35]URL: /json_proto [09:43:35]Method is POST - this is cgi request [09:43:35]url: /json_proto [09:43:35]query_string will be loaded in cgi processing [09:43:35]execute_cgi json_proto POST (null) [09:43:35]execute_cgi path=json_proto method=POST [09:43:35]POST find Content-Length [09:43:35]Host: 172.17.39.67:8080 [09:43:35]Content-Length: 1212 [09:43:35]Content-Type: application/json [09:43:35] [09:43:35]POST finish read [09:43:35]Found Content-Length = 1212 [09:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318988\u000A13.07.2024 09:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 994.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01015\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:35]execute_script... [09:43:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318988\u000A13.07.2024 09:41\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 994.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01015\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:35]POST & json_proto [09:43:35]process_json_proto [09:43:35]json parsed OK: [09:43:35]protocol is kg_v1.0 [09:43:35]action value=print_text [09:43:35]process_action print_text [09:43:35]cmd_print_text [09:43:35]ExternCall_PrintAddStr [09:43:35]wPrintStart [09:43:35]Write to MH i2c: 01 00 00 50 11 61 [09:43:35]Write i2c OK [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 07 00 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 07 00 50 11 00 00 00 00 00 FF 0F 76 [09:43:35]RasterBufferAndPrint [09:43:35]line *****ТОВАРНЫЙ ЧЕК***** [09:43:35]line АЗС 140 [09:43:35]line Партнер нефть [09:43:35]line 02508201610067 [09:43:35]line Кассир : Шамбеталиев А. [09:43:35]line Счет N : (1)1318988 [09:43:35]line 13.07.2024 09:41 [09:43:35]line ПРОДАЖА [09:43:35]line ТРК (МРК, ГНК): 63 [09:43:35]line Вид ГСМ : 2710124130 [09:43:35]line Аи-92-К-5 [09:43:35]line 15.000 x 66.30 [09:43:35]line ИТОГ: 994.50 [09:43:35]line Тип оплаты: Талоны: Топливная Карта [09:43:35]line 01015 [09:43:35]line ______________________ [09:43:35]line (подпись) [09:43:35]written 0, free lines is 4095 [09:43:35]Write to MH i2c: 01 00 00 65 11 76 [09:43:35]Write i2c OK [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 07 00 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: 01 07 00 65 11 00 00 00 00 00 F3 0D 7D [09:43:35]RasterBufferAndPrint [09:43:35]line [09:43:35]line [09:43:35]line [09:43:35]line [09:43:35]line [09:43:35]written 0, free lines is 3573 [09:43:35]MH_Cut [09:43:35]Write to MH i2c: D1 01 00 6C 11 01 4F [09:43:35]Write i2c OK [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: D1 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: D1 01 00 [09:43:35]MH_I2C_Read... [09:43:35]Read from MH i2c: D1 01 00 6C 11 00 4E [09:43:35]Write to MH i2c: 01 00 00 6D 11 7E [09:43:35]Write i2c OK [09:43:35]MH_I2C_Read... [09:43:36]*** Cut start [09:43:36]*** Purtial cut [09:43:36]*** Stage 1: CUTSNS_PIN = 1 [09:43:36]Read from MH i2c: 01 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: 01 07 00 [09:43:36]MH_I2C_Read... [09:43:36]*** Stop cut motor [09:43:36]*** Cut end [09:43:36]Read from MH i2c: 01 07 00 6D 11 00 00 00 00 00 FF 0F 93 [09:43:36]process_action print_text done [09:43:36]requested_data is exist [09:43:36]produce_requested_data [09:43:36]requested_item fm.sn is exist - process it [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 11 00 00 [09:43:36]Write to MH i2c: E2 08 00 6E 11 80 11 00 00 00 00 00 00 F9 [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:36]Read from MH i2c: E2 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 17 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 17 00 6E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [09:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:43:36]wFMCommunicate OK [09:43:36]requested_item fd.num is exist - process it [09:43:36]SAM_PROTO_GetFieldsCounters [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 13 00 00 [09:43:36]Write to MH i2c: E2 08 00 6F 11 80 13 00 00 00 00 00 00 FC [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:36]Read from MH i2c: E2 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 62 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 62 00 6F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 97 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [09:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 97 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:36]wFMCommunicate OK [09:43:36]SAM_PROTO_GetFieldsCounters done [09:43:36]requested_item shift.num is exist - process it [09:43:36]requested_item shift.opened is exist - process it [09:43:36]req_shift_opened [09:43:36]FM_GetShiftState [09:43:36]SAM_PROTO_GetShiftState [09:43:36]wFMCommunicate request_size=4 [09:43:36]MH_SAM_APDU [09:43:36]CAPDU: 80 13 01 00 [09:43:36]Write to MH i2c: E2 08 00 70 11 80 13 01 00 00 00 00 00 FE [09:43:36]Write i2c OK [09:43:36]MH_I2C_Read... [09:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:36]Read from MH i2c: E2 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 0E 00 [09:43:36]MH_I2C_Read... [09:43:36]Read from MH i2c: E2 0E 00 70 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F8 [09:43:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:43:36]wFMCommunicate OK [09:43:36]SAM_PROTO_GetShiftState done [09:43:36]FM_GetShiftState done [09:43:36]req_shift_opened done [09:43:36]requested_item shift.open_date is exist - process it [09:43:36]req_shift_open_date [09:43:36]req_shift_open_date done [09:43:36]produce_requested_data done [09:43:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162455,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:43:36]process_action_free print_text [09:43:36]json_value_free [09:43:36]json_value_free done [09:43:36]process_json_proto returns [09:43:36]Send response to host [09:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162455,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:43:36]free response buf [09:43:36]execute_script done [09:43:36]execute_script returns [09:43:36]free content buf [09:43:36]Sock 8.Close socket [09:43:36]Sock 8.Thread stoped [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:50]accept exits with 9 [09:43:50]New connection [09:43:50]New thread 3066862948 created [09:43:50]Thread 3067006308 joined [09:43:50]Waiting for new connection... [09:43:50] Sock 9.Parse request [09:43:50]Sock 9.Check first char [09:43:50]Sock 9.First char is OK [09:43:50]request: POST /json_proto HTTP/1.0 [09:43:50]Method: POST [09:43:50]URL: /json_proto [09:43:50]Method is POST - this is cgi request [09:43:50]url: /json_proto [09:43:50]query_string will be loaded in cgi processing [09:43:50]execute_cgi json_proto POST (null) [09:43:50]execute_cgi path=json_proto method=POST [09:43:50]POST find Content-Length [09:43:50]Host: 172.17.39.67:8080 [09:43:50]Content-Length: 688 [09:43:50]Content-Type: application/json [09:43:50] [09:43:50]POST finish read [09:43:50]Found Content-Length = 688 [09:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:43:50]execute_script... [09:43: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)1318989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:43:50]POST & json_proto [09:43:50]process_json_proto [09:43:50]json parsed OK: [09:43:50]protocol is kg_v1.0 [09:43:50]action value=close_receipt [09:43:50]process_action close_receipt [09:43:50]cmd_close_receipt [09:43:50]MH_GetDate [09:43:50]Write to MH i2c: F0 00 00 71 11 71 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 09 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 09 00 71 11 00 63 4C 92 66 FA E9 8E 66 F8 [09:43:50]GetLastDocTimeStamp 1720863768 [09:43:50]current date 1720863843 [09:43:50]FM_GetShiftState [09:43:50]SAM_PROTO_GetShiftState [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 13 01 00 [09:43:50]Write to MH i2c: E2 08 00 72 11 80 13 01 00 00 00 00 00 00 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0E 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0E 00 72 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FA [09:43:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_GetShiftState done [09:43:50]FM_GetShiftState done [09:43:50]opened in 1720828979 [09:43:50]opened+sec_in_day 1720915379 [09:43:50]quantity*price = 100042 [09:43:50]sum+1 = 100044 [09:43:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 124 13.07.2024 09:44 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162456 ФПД: 224106762018742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094403&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162456&fm=224106762018742&tin=02508201610067®Number=0000000000090858&sum=100000 [09:43:51]StoreToDocumentArchive [09:43:51]shift 462 fd 162456 [09:43:51]save to /storage/0462/doc_00162456 [09:43:51]save last doc name /storage/0462/doc_00162456 to /storage/kkm_last_doc_name [09:43:51]save OK [09:43:51]Clear old archive folders... [09:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:43:51]tlvbuf is 0171FC30 [09:43:51]SAM_PROTO_ClearQueue [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 09 00 00 [09:43:51]Write to MH i2c: E2 08 00 7F 11 80 09 00 00 00 00 00 00 02 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 7F 11 00 90 00 04 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_ClearQueue done [09:43:51]KKMCreateOFDPacket [09:43:51]OFDProtocolAddRootSTLVToBuf [09:43:51]FM_MakeSignedData [09:43:51]FM_MakeSignedData [09:43:51]SAM_PROTO_SignData [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 01 02 [09:43:51]Write to MH i2c: E2 08 00 80 11 80 0D 01 02 00 00 00 00 0A [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 80 11 00 90 00 05 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=255 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 63 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7A 02 00 35 04 06 00 [09:43:51]Write to MH i2c: E2 02 01 81 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 63 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7A 02 00 35 04 06 00 00 00 A9 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 81 11 00 90 00 06 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=11 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 02 02 06 CB D2 EB F1 1F B6 [09:43:51]Write to MH i2c: E2 0E 00 82 11 80 0D 02 02 06 00 CB D2 EB F1 1F B6 00 00 67 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 82 11 00 90 00 07 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 03 02 [09:43:51]Write to MH i2c: E2 08 00 83 11 80 0D 03 02 00 00 00 00 0F [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0B 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0B 00 83 11 00 D7 A2 61 B1 25 86 68 B7 90 00 65 [09:43:51]RAPDU: D7 A2 61 B1 25 86 68 B7 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_SignData done [09:43:51]FM_MakeSignedData done [09:43:51]CreateOFDProtocolMessage [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 11 00 00 [09:43:51]Write to MH i2c: E2 08 00 84 11 80 11 00 00 00 00 00 00 0F [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 17 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 17 00 84 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6F [09:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:43:51]wFMCommunicate OK [09:43:51]CreateOFDProtocolMessage done [09:43:51]OFDSenderStorePacket 162456 [09:43:51]StoreOFDPacket docnum=162456 [09:43:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BC 3C 08 01 19 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 63 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7A 02 00 35 04 06 00 CB D2 EB F1 1F B6 D7 A2 61 B1 25 86 68 B7 [09:43:51]CheckFolder [09:43:51]dirname=/storage/ofd_packets [09:43:51]CheckFolder done [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00162456 [09:43:51]NVStorageSaveData ofd_packets/00162456 [09:43:51]File name is /storage/ofd_packets/00162456 [09:43:51]Write 302 bytes [09:43:51]NVStorageSaveData done [09:43:51]OFDSenderStorePacket done [09:43:51]KKMCreateOFDPacket done [09:43:51]NVStorageSaveData kkm_last_timestamp [09:43:51]File name is /storage/kkm_last_timestamp [09:43:51]Write 4 bytes [09:43:51]NVStorageSaveData done [09:43:51]ExternCall_PrintAddStr [09:43:51]wPrintStart [09:43:51]Write to MH i2c: 01 00 00 85 11 96 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 85 11 00 00 00 00 00 FF 0F AB [09:43:51]RasterBufferAndPrint [09:43:51]line Счет N : (1)1318989 [09:43:51]line ИНН: 02508201610067 [09:43:51]line Контрольно-Кассовый Чек [09:43:51]line ПРОДАЖА [09:43:51]line ТРК (МРК, ГНК) : 41 [09:43:51]line Товар: 2710194210 [09:43:51]line ДТ(л)-К-5 [09:43:51]line 13.780 * 72.60 [09:43:51]line = 1000.43 [09:43:51]line НДС 12% НСП 1% [09:43:51]line > о реализуемом товаре [09:43:51]line ОКРУГЛЕНИЕ: -0.43 [09:43:51]line ИТОГО: 1000.00 [09:43:51]line Внесено: 1000.00 [09:43:51]line СДАЧА: 0.00 [09:43:51]line НСП 1% : 8.85 [09:43:51]line НДС 12% : 106.24 [09:43:51]line Наличными: 1000.00 [09:43:51]line Безнал.: 0.00 [09:43:51]line Место: АЗС № 140 "Партнер Нефть" [09:43:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:43:51]line СНО: Общий режим [09:43:51]line Чек 124 13.07.2024 09:44 [09:43:51]line Смена: 462 ФФД: 1.0 [09:43:51]line ЗНМ: 0300000129 [09:43:51]line РНМ: 0000000000090858 [09:43:51]line Версия ККМ: 001 [09:43:51]line ФМ: 0000000000874899 [09:43:51]line ФД: 162456 [09:43:51]line ФПД: 224106762018742 [09:43:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094403&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162456&fm=224106762018742&tin=02508201610067®Number=0000000000090858&sum=100000 [09:43:52]OFD Sender: Processing packet 162456 [packets to send 105, broken 104] [09:43:52]ProducePacketName [09:43:52]name=ofd_packets/00162456 [09:43:52]OFD Sender: To server: pG, [09:43:52]CommunicateWithHost lk.salyk.kg:30040 [09:43:52]ConnectInit lk.salyk.kg [09:43:52]written 0, free lines is 4095 [09:43:52]Connected sock=10 [09:43:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BC 3C 08 01 19 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 63 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7A 02 00 35 04 06 00 CB D2 EB F1 1F B6 D7 A2 61 B1 25 86 68 B7 [09:43:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1B B1 47 00 33 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 98 7A 02 00 F4 03 04 00 78 F8 91 66 B6 04 01 00 00 A6 A6 86 93 AD 68 DF FC [09:43:52]CommunicateWithHost err = 0 [09:43:52]CheckOFDResponse [09:43:52]1017 (14) - 77093643461234 [09:43:52]1041 (16) - 0000000000874899 [09:43:52]1040 (4) - 162456 [09:43:52]1012 (4) - 13.07.2024 03:46 [09:43:52]1206 (1) - 0 [09:43:52]OFD Sender: Remove packet 162456 [09:43:52]ProducePacketName [09:43:52]name=ofd_packets/00162456 [09:43:52]NVStorageDeleteData [09:43:52]Write to MH i2c: 01 00 00 B0 11 C1 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 B0 11 00 00 00 00 00 DA 0C AE [09:43:52]RasterBufferAndPrint [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]written 0, free lines is 3299 [09:43:52]MH_Cut [09:43:52]Write to MH i2c: D1 01 00 B7 11 01 9A [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 01 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 01 00 B7 11 00 99 [09:43:52]Write to MH i2c: 01 00 00 B8 11 C9 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]OFD Sender: No OFD packet to send [09:43:53]*** Cut start [09:43:53]*** Purtial cut [09:43:53]*** CUTSNS_PIN = 0 [09:43:53]*** Stage 1: CUTSNS_PIN = 1 [09:43:55]Read from MH i2c: 01 [09:43:55]MH_I2C_Read... [09:43:55]*** Stop cut motor [09:43:55]*** Cut end [09:43:55]Read from MH i2c: 01 07 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: 01 07 00 B8 11 00 00 00 00 00 FF 0F DE [09:43:55]process_action close_receipt done [09:43:55]requested_data is exist [09:43:55]produce_requested_data [09:43:55]requested_item fm.sn is exist - process it [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 11 00 00 [09:43:55]Write to MH i2c: E2 08 00 B9 11 80 11 00 00 00 00 00 00 44 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 17 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 17 00 B9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [09:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:43:55]wFMCommunicate OK [09:43:55]requested_item fd.num is exist - process it [09:43:55]SAM_PROTO_GetFieldsCounters [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 00 00 [09:43:55]Write to MH i2c: E2 08 00 BA 11 80 13 00 00 00 00 00 00 47 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 62 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 62 00 BA 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 98 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [09:43:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 98 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetFieldsCounters done [09:43:55]requested_item shift.num is exist - process it [09:43:55]requested_item shift.opened is exist - process it [09:43:55]req_shift_opened [09:43:55]FM_GetShiftState [09:43:55]SAM_PROTO_GetShiftState [09:43:55]wFMCommunicate request_size=4 [09:43:55]MH_SAM_APDU [09:43:55]CAPDU: 80 13 01 00 [09:43:55]Write to MH i2c: E2 08 00 BB 11 80 13 01 00 00 00 00 00 49 [09:43:55]Write i2c OK [09:43:55]MH_I2C_Read... [09:43:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:55]Read from MH i2c: E2 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 [09:43:55]MH_I2C_Read... [09:43:55]Read from MH i2c: E2 0E 00 BB 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 43 [09:43:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:43:55]wFMCommunicate OK [09:43:55]SAM_PROTO_GetShiftState done [09:43:55]FM_GetShiftState done [09:43:55]req_shift_opened done [09:43:55]requested_item shift.open_date is exist - process it [09:43:55]req_shift_open_date [09:43:55]req_shift_open_date done [09:43:55]produce_requested_data done [09:43:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162456,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:43:55]process_action_free close_receipt [09:43:55]json_value_free [09:43:55]json_value_free done [09:43:55]process_json_proto returns [09:43:55]Send response to host [09:43:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162456,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:43:55]free response buf [09:43:55]execute_script done [09:43:55]execute_script returns [09:43:55]free content buf [09:43:55]Sock 9.Close socket [09:43:55]Sock 9.Thread stoped [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:12]OFD Sender: No OFD packet to send [09:44:17]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:44:59]accept exits with 8 [09:44:59]New connection [09:44:59]New thread 3067006308 created [09:44:59]Thread 3066862948 joined [09:44:59]Waiting for new connection... [09:44:59] Sock 8.Parse request [09:44:59]Sock 8.Check first char [09:44:59]Sock 8.First char is OK [09:44:59]request: POST /json_proto HTTP/1.0 [09:44:59]Method: POST [09:44:59]URL: /json_proto [09:44:59]Method is POST - this is cgi request [09:44:59]url: /json_proto [09:44:59]query_string will be loaded in cgi processing [09:44:59]execute_cgi json_proto POST (null) [09:44:59]execute_cgi path=json_proto method=POST [09:44:59]POST find Content-Length [09:44:59]Host: 172.17.39.67:8080 [09:44:59]Content-Length: 683 [09:44:59]Content-Type: application/json [09:44:59] [09:44:59]POST finish read [09:44:59]Found Content-Length = 683 [09:44:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:59]execute_script... [09:44: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)1318990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:59]POST & json_proto [09:44:59]process_json_proto [09:44:59]json parsed OK: [09:44:59]protocol is kg_v1.0 [09:44:59]action value=close_receipt [09:44:59]process_action close_receipt [09:44:59]cmd_close_receipt [09:44:59]MH_GetDate [09:44:59]Write to MH i2c: F0 00 00 BC 11 BC [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: F0 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: F0 09 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: F0 09 00 BC 11 00 A9 4C 92 66 FA E9 8E 66 89 [09:44:59]GetLastDocTimeStamp 1720863843 [09:44:59]current date 1720863913 [09:44:59]FM_GetShiftState [09:44:59]SAM_PROTO_GetShiftState [09:44:59]wFMCommunicate request_size=4 [09:44:59]MH_SAM_APDU [09:44:59]CAPDU: 80 13 01 00 [09:44:59]Write to MH i2c: E2 08 00 BD 11 80 13 01 00 00 00 00 00 4B [09:44:59]Write i2c OK [09:44:59]MH_I2C_Read... [09:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:59]Read from MH i2c: E2 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 0E 00 [09:44:59]MH_I2C_Read... [09:44:59]Read from MH i2c: E2 0E 00 BD 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 45 [09:44:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:44:59]wFMCommunicate OK [09:44:59]SAM_PROTO_GetShiftState done [09:44:59]FM_GetShiftState done [09:44:59]opened in 1720828979 [09:44:59]opened+sec_in_day 1720915379 [09:44:59]quantity*price = 100046 [09:44:59]sum+1 = 100048 [09:44:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 125 13.07.2024 09:45 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162457 ФПД: 37274387638143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094513&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162457&fm=37274387638143&tin=02508201610067®Number=0000000000090858&sum=100000 [09:45:00]StoreToDocumentArchive [09:45:00]shift 462 fd 162457 [09:45:00]save to /storage/0462/doc_00162457 [09:45:00]save last doc name /storage/0462/doc_00162457 to /storage/kkm_last_doc_name [09:45:00]save OK [09:45:00]Clear old archive folders... [09:45:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:00]tlvbuf is 01C44660 [09:45:00]SAM_PROTO_ClearQueue [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 09 00 00 [09:45:00]Write to MH i2c: E2 08 00 CA 11 80 09 00 00 00 00 00 00 4D [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 CA 11 00 90 00 4F [09:45:00]RAPDU: 90 00 [09:45:00]wFMCommunicate OK [09:45:00]SAM_PROTO_ClearQueue done [09:45:00]KKMCreateOFDPacket [09:45:00]OFDProtocolAddRootSTLVToBuf [09:45:00]FM_MakeSignedData [09:45:00]FM_MakeSignedData [09:45:00]SAM_PROTO_SignData [09:45:00]wFMCommunicate request_size=4 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 0D 01 02 [09:45:00]Write to MH i2c: E2 08 00 CB 11 80 0D 01 02 00 00 00 00 55 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 CB 11 00 90 00 50 [09:45:00]RAPDU: 90 00 [09:45:00]wFMCommunicate OK [09:45:00]wFMCommunicate request_size=255 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 A9 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7A 02 00 35 04 06 00 21 [09:45:00]Write to MH i2c: E2 02 01 CC 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 A9 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7A 02 00 35 04 06 00 21 00 00 D0 [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:00]Read from MH i2c: E2 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 [09:45:00]MH_I2C_Read... [09:45:00]Read from MH i2c: E2 03 00 CC 11 00 90 00 51 [09:45:00]RAPDU: 90 00 [09:45:00]wFMCommunicate OK [09:45:00]wFMCommunicate request_size=10 [09:45:00]MH_SAM_APDU [09:45:00]CAPDU: 80 0D 02 02 05 E6 9E A2 67 7F [09:45:00]Write to MH i2c: E2 0D 00 CD 11 80 0D 02 02 05 00 E6 9E A2 67 7F 00 00 6E [09:45:00]Write i2c OK [09:45:00]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 03 00 CD 11 00 90 00 52 [09:45:01]RAPDU: 90 00 [09:45:01]wFMCommunicate OK [09:45:01]wFMCommunicate request_size=4 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 0D 03 02 [09:45:01]Write to MH i2c: E2 08 00 CE 11 80 0D 03 02 00 00 00 00 5A [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 0B 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 0B 00 CE 11 00 5C 67 83 64 6A 3A 2B EE 90 00 C2 [09:45:01]RAPDU: 5C 67 83 64 6A 3A 2B EE 90 00 [09:45:01]wFMCommunicate OK [09:45:01]SAM_PROTO_SignData done [09:45:01]FM_MakeSignedData done [09:45:01]CreateOFDProtocolMessage [09:45:01]wFMCommunicate request_size=4 [09:45:01]MH_SAM_APDU [09:45:01]CAPDU: 80 11 00 00 [09:45:01]Write to MH i2c: E2 08 00 CF 11 80 11 00 00 00 00 00 00 5A [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:01]Read from MH i2c: E2 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 17 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: E2 17 00 CF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BA [09:45:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:45:01]wFMCommunicate OK [09:45:01]CreateOFDProtocolMessage done [09:45:01]OFDSenderStorePacket 162457 [09:45:01]StoreOFDPacket docnum=162457 [09:45:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DA 25 07 01 CC F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 A9 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7A 02 00 35 04 06 00 21 E6 9E A2 67 7F 5C 67 83 64 6A 3A 2B EE [09:45:01]CheckFolder [09:45:01]dirname=/storage/ofd_packets [09:45:01]CheckFolder done [09:45:01]ProducePacketName [09:45:01]name=ofd_packets/00162457 [09:45:01]NVStorageSaveData ofd_packets/00162457 [09:45:01]File name is /storage/ofd_packets/00162457 [09:45:01]Write 301 bytes [09:45:01]NVStorageSaveData done [09:45:01]OFDSenderStorePacket done [09:45:01]KKMCreateOFDPacket done [09:45:01]NVStorageSaveData kkm_last_timestamp [09:45:01]File name is /storage/kkm_last_timestamp [09:45:01]Write 4 bytes [09:45:01]NVStorageSaveData done [09:45:01]ExternCall_PrintAddStr [09:45:01]wPrintStart [09:45:01]Write to MH i2c: 01 00 00 D0 11 E1 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 07 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 07 00 D0 11 00 00 00 00 00 FF 0F F6 [09:45:01]RasterBufferAndPrint [09:45:01]line Счет N : (1)1318990 [09:45:01]line ИНН: 02508201610067 [09:45:01]line Контрольно-Кассовый Чек [09:45:01]line ПРОДАЖА [09:45:01]line ТРК (МРК, ГНК) : 33 [09:45:01]line Товар: 2710124130 [09:45:01]line Аи-92-К-5 [09:45:01]line 15.090 * 66.30 [09:45:01]line = 1000.47 [09:45:01]line НДС 12% НСП 1% [09:45:01]line > о реализуемом товаре [09:45:01]line ОКРУГЛЕНИЕ: -0.47 [09:45:01]line ИТОГО: 1000.00 [09:45:01]line Внесено: 1000.00 [09:45:01]line СДАЧА: 0.00 [09:45:01]line НСП 1% : 8.85 [09:45:01]line НДС 12% : 106.24 [09:45:01]line Наличными: 1000.00 [09:45:01]line Безнал.: 0.00 [09:45:01]line Место: АЗС № 140 "Партнер Нефть" [09:45:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:45:01]line СНО: Общий режим [09:45:01]line Чек 125 13.07.2024 09:45 [09:45:01]line Смена: 462 ФФД: 1.0 [09:45:01]line ЗНМ: 0300000129 [09:45:01]line РНМ: 0000000000090858 [09:45:01]line Версия ККМ: 001 [09:45:01]line ФМ: 0000000000874899 [09:45:01]line ФД: 162457 [09:45:01]line ФПД: 37274387638143 [09:45:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T094513&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162457&fm=37274387638143&tin=02508201610067®Number=0000000000090858&sum=100000 [09:45:01]OFD Sender: Processing packet 162457 [packets to send 105, broken 104] [09:45:01]ProducePacketName [09:45:01]name=ofd_packets/00162457 [09:45:01]OFD Sender: To server: pG, [09:45:01]CommunicateWithHost lk.salyk.kg:30040 [09:45:01]ConnectInit lk.salyk.kg [09:45:01]written 0, free lines is 4095 [09:45:01]Connected sock=10 [09:45:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DA 25 07 01 CC F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 7D 00 00 00 F4 03 04 00 A9 4C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7A 02 00 35 04 06 00 21 E6 9E A2 67 7F 5C 67 83 64 6A 3A 2B EE [09:45:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 75 6E 47 00 80 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 99 7A 02 00 F4 03 04 00 BD F8 91 66 B6 04 01 00 00 1F 79 9D 40 04 FF BA 44 [09:45:01]CommunicateWithHost err = 0 [09:45:01]CheckOFDResponse [09:45:01]1017 (14) - 77093643461234 [09:45:01]1041 (16) - 0000000000874899 [09:45:01]1040 (4) - 162457 [09:45:01]1012 (4) - 13.07.2024 03:47 [09:45:01]1206 (1) - 0 [09:45:01]OFD Sender: Remove packet 162457 [09:45:01]ProducePacketName [09:45:01]name=ofd_packets/00162457 [09:45:01]NVStorageDeleteData [09:45:01]Write to MH i2c: 01 00 00 FB 11 0C [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 07 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: 01 07 00 FB 11 00 00 00 00 00 DA 0C F9 [09:45:01]RasterBufferAndPrint [09:45:01]line [09:45:01]line [09:45:01]line [09:45:01]line [09:45:01]line [09:45:01]written 0, free lines is 3299 [09:45:01]MH_Cut [09:45:01]Write to MH i2c: D1 01 00 02 12 01 E6 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: D1 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: D1 01 00 [09:45:01]MH_I2C_Read... [09:45:01]Read from MH i2c: D1 01 00 02 12 00 E5 [09:45:01]Write to MH i2c: 01 00 00 03 12 15 [09:45:01]Write i2c OK [09:45:01]MH_I2C_Read... [09:45:02]OFD Sender: No OFD packet to send [09:45:02]*** Cut start [09:45:02]*** Purtial cut [09:45:02]*** Stage 1: CUTSNS_PIN = 1 [09:45:02]Read from MH i2c: 01 [09:45:02]MH_I2C_Read... [09:45:02]*** Stop cut motor [09:45:02]*** Cut end [09:45:02]Read from MH i2c: 01 07 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: 01 07 00 03 12 00 00 00 00 00 FF 0F 2A [09:45:02]process_action close_receipt done [09:45:02]requested_data is exist [09:45:02]produce_requested_data [09:45:02]requested_item fm.sn is exist - process it [09:45:02]wFMCommunicate request_size=4 [09:45:02]MH_SAM_APDU [09:45:02]CAPDU: 80 11 00 00 [09:45:02]Write to MH i2c: E2 08 00 04 12 80 11 00 00 00 00 00 00 90 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:02]Read from MH i2c: E2 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 17 00 [09:45:02]MH_I2C_Read... [09:45:02]Read from MH i2c: E2 17 00 04 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F0 [09:45:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:45:02]wFMCommunicate OK [09:45:02]requested_item fd.num is exist - process it [09:45:02]SAM_PROTO_GetFieldsCounters [09:45:02]wFMCommunicate request_size=4 [09:45:02]MH_SAM_APDU [09:45:02]CAPDU: 80 13 00 00 [09:45:02]Write to MH i2c: E2 08 00 05 12 80 13 00 00 00 00 00 00 93 [09:45:02]Write i2c OK [09:45:02]MH_I2C_Read... [09:45:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:03]Read from MH i2c: E2 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 62 00 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 62 00 05 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 99 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [09:45:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 99 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:03]wFMCommunicate OK [09:45:03]SAM_PROTO_GetFieldsCounters done [09:45:03]requested_item shift.num is exist - process it [09:45:03]requested_item shift.opened is exist - process it [09:45:03]req_shift_opened [09:45:03]FM_GetShiftState [09:45:03]SAM_PROTO_GetShiftState [09:45:03]wFMCommunicate request_size=4 [09:45:03]MH_SAM_APDU [09:45:03]CAPDU: 80 13 01 00 [09:45:03]Write to MH i2c: E2 08 00 06 12 80 13 01 00 00 00 00 00 95 [09:45:03]Write i2c OK [09:45:03]MH_I2C_Read... [09:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:03]Read from MH i2c: E2 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 0E 00 [09:45:03]MH_I2C_Read... [09:45:03]Read from MH i2c: E2 0E 00 06 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8F [09:45:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:45:03]wFMCommunicate OK [09:45:03]SAM_PROTO_GetShiftState done [09:45:03]FM_GetShiftState done [09:45:03]req_shift_opened done [09:45:03]requested_item shift.open_date is exist - process it [09:45:03]req_shift_open_date [09:45:03]req_shift_open_date done [09:45:03]produce_requested_data done [09:45:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162457,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:45:03]process_action_free close_receipt [09:45:03]json_value_free [09:45:03]json_value_free done [09:45:03]process_json_proto returns [09:45:03]Send response to host [09:45:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162457,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:45:03]free response buf [09:45:03]execute_script done [09:45:03]execute_script returns [09:45:03]free content buf [09:45:03]Sock 8.Close socket [09:45:03]Sock 8.Thread stoped [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]accept exits with 9 [09:49:52]New connection [09:49:52]New thread 3066862948 created [09:49:52]Thread 3067006308 joined [09:49:52]Waiting for new connection... [09:49:52] Sock 9.Parse request [09:49:52]Sock 9.Check first char [09:49:52]Sock 9.First char is OK [09:49:52]request: POST /json_proto HTTP/1.0 [09:49:52]Method: POST [09:49:52]URL: /json_proto [09:49:52]Method is POST - this is cgi request [09:49:52]url: /json_proto [09:49:52]query_string will be loaded in cgi processing [09:49:52]execute_cgi json_proto POST (null) [09:49:52]execute_cgi path=json_proto method=POST [09:49:52]POST find Content-Length [09:49:52]Host: 172.17.39.67:8080 [09:49:52]Content-Length: 678 [09:49:52]Content-Type: application/json [09:49:52] [09:49:52]POST finish read [09:49:52]Found Content-Length = 678 [09:49:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52]execute_script... [09:49: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)1318992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52]POST & json_proto [09:49:52]process_json_proto [09:49:52]json parsed OK: [09:49:52]protocol is kg_v1.0 [09:49:52]action value=close_receipt [09:49:52]process_action close_receipt [09:49:52]cmd_close_receipt [09:49:52]MH_GetDate [09:49:52]Write to MH i2c: F0 00 00 07 12 08 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 09 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: F0 09 00 07 12 00 CE 4D 92 66 FA E9 8E 66 FB [09:49:52]GetLastDocTimeStamp 1720863913 [09:49:52]current date 1720864206 [09:49:52]FM_GetShiftState [09:49:52]SAM_PROTO_GetShiftState [09:49:52]wFMCommunicate request_size=4 [09:49:52]MH_SAM_APDU [09:49:52]CAPDU: 80 13 01 00 [09:49:52]Write to MH i2c: E2 08 00 08 12 80 13 01 00 00 00 00 00 97 [09:49:52]Write i2c OK [09:49:52]MH_I2C_Read... [09:49:52]OFD Sender: No OFD packet to send [09:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:52]Read from MH i2c: E2 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0E 00 [09:49:52]MH_I2C_Read... [09:49:52]Read from MH i2c: E2 0E 00 08 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 91 [09:49:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:49:52]wFMCommunicate OK [09:49:52]SAM_PROTO_GetShiftState done [09:49:52]FM_GetShiftState done [09:49:52]opened in 1720828979 [09:49:52]opened+sec_in_day 1720915379 [09:49:52]quantity*price = 50056 [09:49:52]sum+1 = 50058 [09:49:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 126 13.07.2024 09:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162458 ФПД: 89138618107269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095006&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162458&fm=89138618107269&tin=02508201610067®Number=0000000000090858&sum=50000 [09:49:53]StoreToDocumentArchive [09:49:53]shift 462 fd 162458 [09:49:53]save to /storage/0462/doc_00162458 [09:49:53]save last doc name /storage/0462/doc_00162458 to /storage/kkm_last_doc_name [09:49:53]save OK [09:49:53]Clear old archive folders... [09:49:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:53]tlvbuf is 019BFCA0 [09:49:53]SAM_PROTO_ClearQueue [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 09 00 00 [09:49:53]Write to MH i2c: E2 08 00 15 12 80 09 00 00 00 00 00 00 99 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 15 12 00 90 00 9B [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]SAM_PROTO_ClearQueue done [09:49:53]KKMCreateOFDPacket [09:49:53]OFDProtocolAddRootSTLVToBuf [09:49:53]FM_MakeSignedData [09:49:53]FM_MakeSignedData [09:49:53]SAM_PROTO_SignData [09:49:53]wFMCommunicate request_size=4 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 01 02 [09:49:53]Write to MH i2c: E2 08 00 16 12 80 0D 01 02 00 00 00 00 A1 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:53]Read from MH i2c: E2 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 [09:49:53]MH_I2C_Read... [09:49:53]Read from MH i2c: E2 03 00 16 12 00 90 00 9C [09:49:53]RAPDU: 90 00 [09:49:53]wFMCommunicate OK [09:49:53]wFMCommunicate request_size=255 [09:49:53]MH_SAM_APDU [09:49:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 CE 4D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7A 02 00 35 04 06 00 51 [09:49:53]Write to MH i2c: E2 02 01 17 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 CE 4D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7A 02 00 35 04 06 00 51 00 00 24 [09:49:53]Write i2c OK [09:49:53]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 17 12 00 90 00 9D [09:49:54]RAPDU: 90 00 [09:49:54]wFMCommunicate OK [09:49:54]wFMCommunicate request_size=10 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 0D 02 02 05 12 33 AB 05 85 [09:49:54]Write to MH i2c: E2 0D 00 18 12 80 0D 02 02 05 00 12 33 AB 05 85 00 00 28 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 03 00 18 12 00 90 00 9E [09:49:54]RAPDU: 90 00 [09:49:54]wFMCommunicate OK [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 0D 03 02 [09:49:54]Write to MH i2c: E2 08 00 19 12 80 0D 03 02 00 00 00 00 A6 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 0B 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 0B 00 19 12 00 1B 7D E9 DF D8 A9 71 3D 90 00 36 [09:49:54]RAPDU: 1B 7D E9 DF D8 A9 71 3D 90 00 [09:49:54]wFMCommunicate OK [09:49:54]SAM_PROTO_SignData done [09:49:54]FM_MakeSignedData done [09:49:54]CreateOFDProtocolMessage [09:49:54]wFMCommunicate request_size=4 [09:49:54]MH_SAM_APDU [09:49:54]CAPDU: 80 11 00 00 [09:49:54]Write to MH i2c: E2 08 00 1A 12 80 11 00 00 00 00 00 00 A6 [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:54]Read from MH i2c: E2 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 17 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: E2 17 00 1A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 06 [09:49:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:49:54]wFMCommunicate OK [09:49:54]CreateOFDProtocolMessage done [09:49:54]OFDSenderStorePacket 162458 [09:49:54]StoreOFDPacket docnum=162458 [09:49:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F5 2D 07 01 4C B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 CE 4D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7A 02 00 35 04 06 00 51 12 33 AB 05 85 1B 7D E9 DF D8 A9 71 3D [09:49:54]CheckFolder [09:49:54]dirname=/storage/ofd_packets [09:49:54]CheckFolder done [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00162458 [09:49:54]NVStorageSaveData ofd_packets/00162458 [09:49:54]File name is /storage/ofd_packets/00162458 [09:49:54]Write 301 bytes [09:49:54]NVStorageSaveData done [09:49:54]OFDSenderStorePacket done [09:49:54]KKMCreateOFDPacket done [09:49:54]NVStorageSaveData kkm_last_timestamp [09:49:54]File name is /storage/kkm_last_timestamp [09:49:54]Write 4 bytes [09:49:54]NVStorageSaveData done [09:49:54]ExternCall_PrintAddStr [09:49:54]wPrintStart [09:49:54]Write to MH i2c: 01 00 00 1B 12 2D [09:49:54]Write i2c OK [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 [09:49:54]MH_I2C_Read... [09:49:54]Read from MH i2c: 01 07 00 1B 12 00 00 00 00 00 FF 0F 42 [09:49:54]RasterBufferAndPrint [09:49:54]line Счет N : (1)1318992 [09:49:54]line ИНН: 02508201610067 [09:49:54]line Контрольно-Кассовый Чек [09:49:54]line ПРОДАЖА [09:49:54]line ТРК (МРК, ГНК) : 33 [09:49:54]line Товар: 2710124130 [09:49:54]line Аи-92-К-5 [09:49:54]line 7.550 * 66.30 [09:49:54]line = 500.57 [09:49:54]line НДС 12% НСП 1% [09:49:54]line > о реализуемом товаре [09:49:54]line ОКРУГЛЕНИЕ: -0.57 [09:49:54]line ИТОГО: 500.00 [09:49:54]line Внесено: 500.00 [09:49:54]line СДАЧА: 0.00 [09:49:54]line НСП 1% : 4.43 [09:49:54]line НДС 12% : 53.16 [09:49:54]line Наличными: 500.00 [09:49:54]line Безнал.: 0.00 [09:49:54]line Место: АЗС № 140 "Партнер Нефть" [09:49:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:49:54]line СНО: Общий режим [09:49:54]line Чек 126 13.07.2024 09:50 [09:49:54]line Смена: 462 ФФД: 1.0 [09:49:54]line ЗНМ: 0300000129 [09:49:54]line РНМ: 0000000000090858 [09:49:54]line Версия ККМ: 001 [09:49:54]line ФМ: 0000000000874899 [09:49:54]line ФД: 162458 [09:49:54]line ФПД: 89138618107269 [09:49:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095006&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162458&fm=89138618107269&tin=02508201610067®Number=0000000000090858&sum=50000 [09:49:54]OFD Sender: Processing packet 162458 [packets to send 105, broken 104] [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00162458 [09:49:54]OFD Sender: To server: pG, [09:49:54]CommunicateWithHost lk.salyk.kg:30040 [09:49:54]ConnectInit lk.salyk.kg [09:49:54]written 0, free lines is 4095 [09:49:54]Connected sock=11 [09:49:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F5 2D 07 01 4C B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 CE 4D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7A 02 00 35 04 06 00 51 12 33 AB 05 85 1B 7D E9 DF D8 A9 71 3D [09:49:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3D 31 47 00 B4 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9A 7A 02 00 F4 03 04 00 E3 F9 91 66 B6 04 01 00 00 37 D5 D2 15 05 C5 4E AA [09:49:54]CommunicateWithHost err = 0 [09:49:54]CheckOFDResponse [09:49:54]1017 (14) - 77093643461234 [09:49:54]1041 (16) - 0000000000874899 [09:49:54]1040 (4) - 162458 [09:49:54]1012 (4) - 13.07.2024 03:52 [09:49:54]1206 (1) - 0 [09:49:54]OFD Sender: Remove packet 162458 [09:49:54]ProducePacketName [09:49:54]name=ofd_packets/00162458 [09:49:54]NVStorageDeleteData [09:49:55]Write to MH i2c: 01 00 00 46 12 58 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: 01 07 00 46 12 00 00 00 00 00 D6 0C 41 [09:49:55]RasterBufferAndPrint [09:49:55]line [09:49:55]line [09:49:55]line [09:49:55]line [09:49:55]line [09:49:55]written 0, free lines is 3294 [09:49:55]MH_Cut [09:49:55]Write to MH i2c: D1 01 00 4D 12 01 31 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: D1 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: D1 01 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: D1 01 00 4D 12 00 30 [09:49:55]Write to MH i2c: 01 00 00 4E 12 60 [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]OFD Sender: No OFD packet to send [09:49:55]*** Cut start [09:49:55]*** Purtial cut [09:49:55]*** CUTSNS_PIN = 0 [09:49:55]*** Stage 1: CUTSNS_PIN = 1 [09:49:57]Read from MH i2c: 01 [09:49:57]MH_I2C_Read... [09:49:57]*** Stop cut motor [09:49:57]*** Cut end [09:49:57]Read from MH i2c: 01 07 00 [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: 01 07 00 4E 12 00 00 00 00 00 FF 0F 75 [09:49:57]process_action close_receipt done [09:49:57]requested_data is exist [09:49:57]produce_requested_data [09:49:57]requested_item fm.sn is exist - process it [09:49:57]wFMCommunicate request_size=4 [09:49:57]MH_SAM_APDU [09:49:57]CAPDU: 80 11 00 00 [09:49:57]Write to MH i2c: E2 08 00 4F 12 80 11 00 00 00 00 00 00 DB [09:49:57]Write i2c OK [09:49:57]MH_I2C_Read... [09:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:57]Read from MH i2c: E2 [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: E2 17 00 [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: E2 17 00 4F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3B [09:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:49:57]wFMCommunicate OK [09:49:57]requested_item fd.num is exist - process it [09:49:57]SAM_PROTO_GetFieldsCounters [09:49:57]wFMCommunicate request_size=4 [09:49:57]MH_SAM_APDU [09:49:57]CAPDU: 80 13 00 00 [09:49:57]Write to MH i2c: E2 08 00 50 12 80 13 00 00 00 00 00 00 DE [09:49:57]Write i2c OK [09:49:57]MH_I2C_Read... [09:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:58]Read from MH i2c: E2 [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: E2 62 00 [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: E2 62 00 50 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [09:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:58]wFMCommunicate OK [09:49:58]SAM_PROTO_GetFieldsCounters done [09:49:58]requested_item shift.num is exist - process it [09:49:58]requested_item shift.opened is exist - process it [09:49:58]req_shift_opened [09:49:58]FM_GetShiftState [09:49:58]SAM_PROTO_GetShiftState [09:49:58]wFMCommunicate request_size=4 [09:49:58]MH_SAM_APDU [09:49:58]CAPDU: 80 13 01 00 [09:49:58]Write to MH i2c: E2 08 00 51 12 80 13 01 00 00 00 00 00 E0 [09:49:58]Write i2c OK [09:49:58]MH_I2C_Read... [09:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:58]Read from MH i2c: E2 [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: E2 0E 00 [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: E2 0E 00 51 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DA [09:49:58]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:49:58]wFMCommunicate OK [09:49:58]SAM_PROTO_GetShiftState done [09:49:58]FM_GetShiftState done [09:49:58]req_shift_opened done [09:49:58]requested_item shift.open_date is exist - process it [09:49:58]req_shift_open_date [09:49:58]req_shift_open_date done [09:49:58]produce_requested_data done [09:49:58]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162458,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:49:58]process_action_free close_receipt [09:49:58]json_value_free [09:49:58]json_value_free done [09:49:58]process_json_proto returns [09:49:58]Send response to host [09:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162458,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:49:58]free response buf [09:49:58]execute_script done [09:49:58]execute_script returns [09:49:58]free content buf [09:49:58]Sock 9.Close socket [09:49:58]Sock 9.Thread stoped [09:50:00]OFD Sender: No OFD packet to send [09:50:05]OFD Sender: No OFD packet to send [09:50:05]accept exits with 8 [09:50:05]New connection [09:50:05]New thread 3067006308 created [09:50:05]Thread 3066862948 joined [09:50:05]Waiting for new connection... [09:50:05] Sock 8.Parse request [09:50:05]Sock 8.Check first char [09:50:05]Sock 8.First char is OK [09:50:05]request: POST /json_proto HTTP/1.0 [09:50:05]Method: POST [09:50:05]URL: /json_proto [09:50:05]Method is POST - this is cgi request [09:50:05]url: /json_proto [09:50:05]query_string will be loaded in cgi processing [09:50:05]execute_cgi json_proto POST (null) [09:50:05]execute_cgi path=json_proto method=POST [09:50:05]POST find Content-Length [09:50:05]Host: 172.17.39.67:8080 [09:50:05]Content-Length: 1213 [09:50:05]Content-Type: application/json [09:50:05] [09:50:05]POST finish read [09:50:05]Found Content-Length = 1213 [09:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318991\u000A13.07.2024 09:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00419\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:05]execute_script... [09:50:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318991\u000A13.07.2024 09:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00419\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:05]POST & json_proto [09:50:05]process_json_proto [09:50:05]json parsed OK: [09:50:05]protocol is kg_v1.0 [09:50:05]action value=print_text [09:50:05]process_action print_text [09:50:05]cmd_print_text [09:50:05]ExternCall_PrintAddStr [09:50:05]wPrintStart [09:50:05]Write to MH i2c: 01 00 00 52 12 64 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 07 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 07 00 52 12 00 00 00 00 00 FF 0F 79 [09:50:05]RasterBufferAndPrint [09:50:05]line *****ТОВАРНЫЙ ЧЕК***** [09:50:05]line АЗС 140 [09:50:05]line Партнер нефть [09:50:05]line 02508201610067 [09:50:05]line Кассир : Шамбеталиев А. [09:50:05]line Счет N : (1)1318991 [09:50:05]line 13.07.2024 09:47 [09:50:05]line ПРОДАЖА [09:50:05]line ТРК (МРК, ГНК): 53 [09:50:05]line Вид ГСМ : 2710124130 [09:50:05]line Аи-92-К-5 [09:50:05]line 20.000 x 66.30 [09:50:05]line ИТОГ: 1326.00 [09:50:05]line Тип оплаты: Талоны: Топливная Карта [09:50:05]line 00419 [09:50:05]line ______________________ [09:50:05]line (подпись) [09:50:05]written 0, free lines is 4095 [09:50:05]Write to MH i2c: 01 00 00 67 12 79 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 07 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: 01 07 00 67 12 00 00 00 00 00 F4 0D 81 [09:50:05]RasterBufferAndPrint [09:50:05]line [09:50:05]line [09:50:05]line [09:50:05]line [09:50:05]line [09:50:05]written 0, free lines is 3574 [09:50:05]MH_Cut [09:50:05]Write to MH i2c: D1 01 00 6E 12 01 52 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: D1 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: D1 01 00 [09:50:05]MH_I2C_Read... [09:50:05]Read from MH i2c: D1 01 00 6E 12 00 51 [09:50:05]Write to MH i2c: 01 00 00 6F 12 81 [09:50:05]Write i2c OK [09:50:05]MH_I2C_Read... [09:50:06]*** Cut start [09:50:06]*** Purtial cut [09:50:06]*** Stage 1: CUTSNS_PIN = 1 [09:50:06]Read from MH i2c: 01 [09:50:06]MH_I2C_Read... [09:50:06]*** Stop cut motor [09:50:06]*** Cut end [09:50:06]Read from MH i2c: 01 07 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: 01 07 00 6F 12 00 00 00 00 00 FF 0F 96 [09:50:06]process_action print_text done [09:50:06]requested_data is exist [09:50:06]produce_requested_data [09:50:06]requested_item fm.sn is exist - process it [09:50:06]wFMCommunicate request_size=4 [09:50:06]MH_SAM_APDU [09:50:06]CAPDU: 80 11 00 00 [09:50:06]Write to MH i2c: E2 08 00 70 12 80 11 00 00 00 00 00 00 FC [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:06]Read from MH i2c: E2 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 17 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 17 00 70 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5C [09:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:50:06]wFMCommunicate OK [09:50:06]requested_item fd.num is exist - process it [09:50:06]SAM_PROTO_GetFieldsCounters [09:50:06]wFMCommunicate request_size=4 [09:50:06]MH_SAM_APDU [09:50:06]CAPDU: 80 13 00 00 [09:50:06]Write to MH i2c: E2 08 00 71 12 80 13 00 00 00 00 00 00 FF [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:06]Read from MH i2c: E2 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 62 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 62 00 71 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [09:50:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9A 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:06]wFMCommunicate OK [09:50:06]SAM_PROTO_GetFieldsCounters done [09:50:06]requested_item shift.num is exist - process it [09:50:06]requested_item shift.opened is exist - process it [09:50:06]req_shift_opened [09:50:06]FM_GetShiftState [09:50:06]SAM_PROTO_GetShiftState [09:50:06]wFMCommunicate request_size=4 [09:50:06]MH_SAM_APDU [09:50:06]CAPDU: 80 13 01 00 [09:50:06]Write to MH i2c: E2 08 00 72 12 80 13 01 00 00 00 00 00 01 [09:50:06]Write i2c OK [09:50:06]MH_I2C_Read... [09:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:06]Read from MH i2c: E2 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 0E 00 [09:50:06]MH_I2C_Read... [09:50:06]Read from MH i2c: E2 0E 00 72 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FB [09:50:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:50:06]wFMCommunicate OK [09:50:06]SAM_PROTO_GetShiftState done [09:50:06]FM_GetShiftState done [09:50:06]req_shift_opened done [09:50:06]requested_item shift.open_date is exist - process it [09:50:06]req_shift_open_date [09:50:06]req_shift_open_date done [09:50:06]produce_requested_data done [09:50:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162458,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:50:06]process_action_free print_text [09:50:06]json_value_free [09:50:06]json_value_free done [09:50:06]process_json_proto returns [09:50:06]Send response to host [09:50:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162458,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:50:06]free response buf [09:50:06]execute_script done [09:50:06]execute_script returns [09:50:06]free content buf [09:50:06]Sock 8.Close socket [09:50:06]Sock 8.Thread stoped [09:50:10]OFD Sender: No OFD packet to send [09:50:15]OFD Sender: No OFD packet to send [09:50:20]OFD Sender: No OFD packet to send [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:15]OFD Sender: No OFD packet to send [09:51:20]OFD Sender: No OFD packet to send [09:51:25]OFD Sender: No OFD packet to send [09:51:30]OFD Sender: No OFD packet to send [09:51:35]OFD Sender: No OFD packet to send [09:51:40]OFD Sender: No OFD packet to send [09:51:45]OFD Sender: No OFD packet to send [09:51:50]OFD Sender: No OFD packet to send [09:51:55]OFD Sender: No OFD packet to send [09:52:00]OFD Sender: No OFD packet to send [09:52: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:50]OFD Sender: No OFD packet to send [09:52:55]accept exits with 9 [09:52:55]New connection [09:52:55]New thread 3066862948 created [09:52:55]Thread 3067006308 joined [09:52:55]Waiting for new connection... [09:52:55] Sock 9.Parse request [09:52:55]Sock 9.Check first char [09:52:55]Sock 9.First char is OK [09:52:55]request: POST /json_proto HTTP/1.0 [09:52:55]Method: POST [09:52:55]URL: /json_proto [09:52:55]Method is POST - this is cgi request [09:52:55]url: /json_proto [09:52:55]query_string will be loaded in cgi processing [09:52:55]execute_cgi json_proto POST (null) [09:52:55]execute_cgi path=json_proto method=POST [09:52:55]POST find Content-Length [09:52:55]Host: 172.17.39.67:8080 [09:52:55]Content-Length: 683 [09:52:55]Content-Type: application/json [09:52:55] [09:52:55]POST finish read [09:52:55]Found Content-Length = 683 [09:52:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:55]execute_script... [09:52: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)1318993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:55]POST & json_proto [09:52:55]process_json_proto [09:52:55]json parsed OK: [09:52:55]protocol is kg_v1.0 [09:52:55]action value=close_receipt [09:52:55]process_action close_receipt [09:52:55]cmd_close_receipt [09:52:55]MH_GetDate [09:52:55]Write to MH i2c: F0 00 00 73 12 74 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: F0 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: F0 09 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: F0 09 00 73 12 00 85 4E 92 66 FA E9 8E 66 1F [09:52:55]GetLastDocTimeStamp 1720864206 [09:52:55]current date 1720864389 [09:52:55]FM_GetShiftState [09:52:55]SAM_PROTO_GetShiftState [09:52:55]wFMCommunicate request_size=4 [09:52:55]MH_SAM_APDU [09:52:55]CAPDU: 80 13 01 00 [09:52:55]Write to MH i2c: E2 08 00 74 12 80 13 01 00 00 00 00 00 03 [09:52:55]Write i2c OK [09:52:55]MH_I2C_Read... [09:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:55]Read from MH i2c: E2 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0E 00 [09:52:55]MH_I2C_Read... [09:52:55]Read from MH i2c: E2 0E 00 74 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FD [09:52:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:52:55]wFMCommunicate OK [09:52:55]SAM_PROTO_GetShiftState done [09:52:55]FM_GetShiftState done [09:52:55]opened in 1720828979 [09:52:55]opened+sec_in_day 1720915379 [09:52:55]quantity*price = 100068 [09:52:55]sum+1 = 100069 [09:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 127 13.07.2024 09:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162459 ФПД: 186567781658088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095309&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162459&fm=186567781658088&tin=02508201610067®Number=0000000000090858&sum=100000 [09:52:56]StoreToDocumentArchive [09:52:56]shift 462 fd 162459 [09:52:56]save to /storage/0462/doc_00162459 [09:52:56]save last doc name /storage/0462/doc_00162459 to /storage/kkm_last_doc_name [09:52:56]save OK [09:52:56]Clear old archive folders... [09:52:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:56]tlvbuf is 0197C970 [09:52:56]SAM_PROTO_ClearQueue [09:52:56]wFMCommunicate request_size=4 [09:52:56]MH_SAM_APDU [09:52:56]CAPDU: 80 09 00 00 [09:52:56]Write to MH i2c: E2 08 00 81 12 80 09 00 00 00 00 00 00 05 [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 03 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 03 00 81 12 00 90 00 07 [09:52:56]RAPDU: 90 00 [09:52:56]wFMCommunicate OK [09:52:56]SAM_PROTO_ClearQueue done [09:52:56]KKMCreateOFDPacket [09:52:56]OFDProtocolAddRootSTLVToBuf [09:52:56]FM_MakeSignedData [09:52:56]FM_MakeSignedData [09:52:56]SAM_PROTO_SignData [09:52:56]wFMCommunicate request_size=4 [09:52:56]MH_SAM_APDU [09:52:56]CAPDU: 80 0D 01 02 [09:52:56]Write to MH i2c: E2 08 00 82 12 80 0D 01 02 00 00 00 00 0D [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 03 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 03 00 82 12 00 90 00 08 [09:52:56]RAPDU: 90 00 [09:52:56]wFMCommunicate OK [09:52:56]wFMCommunicate request_size=255 [09:52:56]MH_SAM_APDU [09:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 85 4E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7A 02 00 35 04 06 00 A9 [09:52:56]Write to MH i2c: E2 02 01 83 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 85 4E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7A 02 00 35 04 06 00 A9 00 00 CF [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 03 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 03 00 83 12 00 90 00 09 [09:52:56]RAPDU: 90 00 [09:52:56]wFMCommunicate OK [09:52:56]wFMCommunicate request_size=10 [09:52:56]MH_SAM_APDU [09:52:56]CAPDU: 80 0D 02 02 05 AE B2 5A 2D E8 [09:52:56]Write to MH i2c: E2 0D 00 84 12 80 0D 02 02 05 00 AE B2 5A 2D E8 00 00 E9 [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 03 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [09:52:56]RAPDU: 90 00 [09:52:56]wFMCommunicate OK [09:52:56]wFMCommunicate request_size=4 [09:52:56]MH_SAM_APDU [09:52:56]CAPDU: 80 0D 03 02 [09:52:56]Write to MH i2c: E2 08 00 85 12 80 0D 03 02 00 00 00 00 12 [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 0B 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 0B 00 85 12 00 DE 76 53 FC 97 F5 65 03 90 00 AA [09:52:56]RAPDU: DE 76 53 FC 97 F5 65 03 90 00 [09:52:56]wFMCommunicate OK [09:52:56]SAM_PROTO_SignData done [09:52:56]FM_MakeSignedData done [09:52:56]CreateOFDProtocolMessage [09:52:56]wFMCommunicate request_size=4 [09:52:56]MH_SAM_APDU [09:52:56]CAPDU: 80 11 00 00 [09:52:56]Write to MH i2c: E2 08 00 86 12 80 11 00 00 00 00 00 00 12 [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:56]Read from MH i2c: E2 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 17 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: E2 17 00 86 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 72 [09:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:52:56]wFMCommunicate OK [09:52:56]CreateOFDProtocolMessage done [09:52:56]OFDSenderStorePacket 162459 [09:52:56]StoreOFDPacket docnum=162459 [09:52:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DF D0 07 01 AA 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 85 4E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7A 02 00 35 04 06 00 A9 AE B2 5A 2D E8 DE 76 53 FC 97 F5 65 03 [09:52:56]CheckFolder [09:52:56]dirname=/storage/ofd_packets [09:52:56]CheckFolder done [09:52:56]ProducePacketName [09:52:56]name=ofd_packets/00162459 [09:52:56]NVStorageSaveData ofd_packets/00162459 [09:52:56]File name is /storage/ofd_packets/00162459 [09:52:56]Write 301 bytes [09:52:56]NVStorageSaveData done [09:52:56]OFDSenderStorePacket done [09:52:56]KKMCreateOFDPacket done [09:52:56]NVStorageSaveData kkm_last_timestamp [09:52:56]File name is /storage/kkm_last_timestamp [09:52:56]Write 4 bytes [09:52:56]NVStorageSaveData done [09:52:56]ExternCall_PrintAddStr [09:52:56]wPrintStart [09:52:56]Write to MH i2c: 01 00 00 87 12 99 [09:52:56]Write i2c OK [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: 01 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: 01 07 00 [09:52:56]MH_I2C_Read... [09:52:56]Read from MH i2c: 01 07 00 87 12 00 00 00 00 00 FF 0F AE [09:52:56]RasterBufferAndPrint [09:52:56]line Счет N : (1)1318993 [09:52:56]line ИНН: 02508201610067 [09:52:56]line Контрольно-Кассовый Чек [09:52:56]line ПРОДАЖА [09:52:56]line ТРК (МРК, ГНК) : 34 [09:52:56]line Товар: 2710124500 [09:52:56]line Аи-95-К-5 [09:52:56]line 13.450 * 74.40 [09:52:56]line = 1000.68 [09:52:56]line НДС 12% НСП 1% [09:52:56]line > о реализуемом товаре [09:52:56]line ОКРУГЛЕНИЕ: -0.68 [09:52:56]line ИТОГО: 1000.00 [09:52:56]line Внесено: 1000.00 [09:52:56]line СДАЧА: 0.00 [09:52:56]line НСП 1% : 8.86 [09:52:56]line НДС 12% : 106.27 [09:52:56]line Наличными: 1000.00 [09:52:56]line Безнал.: 0.00 [09:52:56]line Место: АЗС № 140 "Партнер Нефть" [09:52:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:52:56]line СНО: Общий режим [09:52:56]line Чек 127 13.07.2024 09:53 [09:52:56]line Смена: 462 ФФД: 1.0 [09:52:56]line ЗНМ: 0300000129 [09:52:56]line РНМ: 0000000000090858 [09:52:56]line Версия ККМ: 001 [09:52:56]line ФМ: 0000000000874899 [09:52:56]line ФД: 162459 [09:52:56]line ФПД: 186567781658088 [09:52:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095309&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162459&fm=186567781658088&tin=02508201610067®Number=0000000000090858&sum=100000 [09:52:57]OFD Sender: Processing packet 162459 [packets to send 105, broken 104] [09:52:57]ProducePacketName [09:52:57]name=ofd_packets/00162459 [09:52:57]OFD Sender: To server: pG, [09:52:57]CommunicateWithHost lk.salyk.kg:30040 [09:52:57]ConnectInit lk.salyk.kg [09:52:57]written 0, free lines is 4095 [09:52:57]Connected sock=10 [09:52:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DF D0 07 01 AA 52 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 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 85 4E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7A 02 00 35 04 06 00 A9 AE B2 5A 2D E8 DE 76 53 FC 97 F5 65 03 [09:52:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1B 77 47 00 6B C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9B 7A 02 00 F4 03 04 00 99 FA 91 66 B6 04 01 00 00 9E D0 37 6A 56 D2 AB E9 [09:52:57]CommunicateWithHost err = 0 [09:52:57]CheckOFDResponse [09:52:57]1017 (14) - 77093643461234 [09:52:57]1041 (16) - 0000000000874899 [09:52:57]1040 (4) - 162459 [09:52:57]1012 (4) - 13.07.2024 03:55 [09:52:57]1206 (1) - 0 [09:52:57]OFD Sender: Remove packet 162459 [09:52:57]ProducePacketName [09:52:57]name=ofd_packets/00162459 [09:52:57]NVStorageDeleteData [09:52:57]Write to MH i2c: 01 00 00 B2 12 C4 [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 07 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: 01 07 00 B2 12 00 00 00 00 00 DF 0C B6 [09:52:57]RasterBufferAndPrint [09:52:57]line [09:52:57]line [09:52:57]line [09:52:57]line [09:52:57]line [09:52:57]written 0, free lines is 3304 [09:52:57]MH_Cut [09:52:57]Write to MH i2c: D1 01 00 B9 12 01 9D [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: D1 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: D1 01 00 [09:52:57]MH_I2C_Read... [09:52:57]Read from MH i2c: D1 01 00 B9 12 00 9C [09:52:57]Write to MH i2c: 01 00 00 BA 12 CC [09:52:57]Write i2c OK [09:52:57]MH_I2C_Read... [09:52:58]OFD Sender: No OFD packet to send [09:52:58]*** Cut start [09:52:58]*** Purtial cut [09:52:58]*** CUTSNS_PIN = 0 [09:52:58]*** Stage 1: CUTSNS_PIN = 1 [09:53:00]Read from MH i2c: 01 [09:53:00]MH_I2C_Read... [09:53:00]*** Stop cut motor [09:53:00]*** Cut end [09:53:00]Read from MH i2c: 01 07 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: 01 07 00 BA 12 00 00 00 00 00 FF 0F E1 [09:53:00]process_action close_receipt done [09:53:00]requested_data is exist [09:53:00]produce_requested_data [09:53:00]requested_item fm.sn is exist - process it [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 11 00 00 [09:53:00]Write to MH i2c: E2 08 00 BB 12 80 11 00 00 00 00 00 00 47 [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 17 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 17 00 BB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A7 [09:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:53:00]wFMCommunicate OK [09:53:00]requested_item fd.num is exist - process it [09:53:00]SAM_PROTO_GetFieldsCounters [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 13 00 00 [09:53:00]Write to MH i2c: E2 08 00 BC 12 80 13 00 00 00 00 00 00 4A [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 62 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 62 00 BC 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9B 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:00]wFMCommunicate OK [09:53:00]SAM_PROTO_GetFieldsCounters done [09:53:00]requested_item shift.num is exist - process it [09:53:00]requested_item shift.opened is exist - process it [09:53:00]req_shift_opened [09:53:00]FM_GetShiftState [09:53:00]SAM_PROTO_GetShiftState [09:53:00]wFMCommunicate request_size=4 [09:53:00]MH_SAM_APDU [09:53:00]CAPDU: 80 13 01 00 [09:53:00]Write to MH i2c: E2 08 00 BD 12 80 13 01 00 00 00 00 00 4C [09:53:00]Write i2c OK [09:53:00]MH_I2C_Read... [09:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:00]Read from MH i2c: E2 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 0E 00 [09:53:00]MH_I2C_Read... [09:53:00]Read from MH i2c: E2 0E 00 BD 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 46 [09:53:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:53:00]wFMCommunicate OK [09:53:00]SAM_PROTO_GetShiftState done [09:53:00]FM_GetShiftState done [09:53:00]req_shift_opened done [09:53:00]requested_item shift.open_date is exist - process it [09:53:00]req_shift_open_date [09:53:00]req_shift_open_date done [09:53:00]produce_requested_data done [09:53:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162459,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:53:00]process_action_free close_receipt [09:53:00]json_value_free [09:53:00]json_value_free done [09:53:00]process_json_proto returns [09:53:00]Send response to host [09:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162459,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:53:00]free response buf [09:53:00]execute_script done [09:53:00]execute_script returns [09:53:00]free content buf [09:53:00]Sock 9.Close socket [09:53:00]Sock 9.Thread stoped [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [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:03]accept exits with 8 [09:57:03]New connection [09:57:03]New thread 3067006308 created [09:57:03]Thread 3066862948 joined [09:57:03]Waiting for new connection... [09:57:03] Sock 8.Parse request [09:57:03]Sock 8.Check first char [09:57:03]Sock 8.First char is OK [09:57:03]request: POST /json_proto HTTP/1.0 [09:57:03]Method: POST [09:57:03]URL: /json_proto [09:57:03]Method is POST - this is cgi request [09:57:03]url: /json_proto [09:57:03]query_string will be loaded in cgi processing [09:57:03]execute_cgi json_proto POST (null) [09:57:03]execute_cgi path=json_proto method=POST [09:57:03]POST find Content-Length [09:57:03]Host: 172.17.39.67:8080 [09:57:03]Content-Length: 676 [09:57:03]Content-Type: application/json [09:57:03] [09:57:03]POST finish read [09:57:03]Found Content-Length = 676 [09:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 44.580, "sum" : 3000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:03]execute_script... [09:57: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)1318994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 44.580, "sum" : 3000.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:03]POST & json_proto [09:57:03]process_json_proto [09:57:03]json parsed OK: [09:57:03]protocol is kg_v1.0 [09:57:03]action value=close_receipt [09:57:03]process_action close_receipt [09:57:03]cmd_close_receipt [09:57:03]MH_GetDate [09:57:03]Write to MH i2c: F0 00 00 BE 12 BF [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: F0 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: F0 09 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: F0 09 00 BE 12 00 7D 4F 92 66 FA E9 8E 66 63 [09:57:03]GetLastDocTimeStamp 1720864389 [09:57:03]current date 1720864637 [09:57:03]FM_GetShiftState [09:57:03]SAM_PROTO_GetShiftState [09:57:03]wFMCommunicate request_size=4 [09:57:03]MH_SAM_APDU [09:57:03]CAPDU: 80 13 01 00 [09:57:03]Write to MH i2c: E2 08 00 BF 12 80 13 01 00 00 00 00 00 4E [09:57:03]Write i2c OK [09:57:03]MH_I2C_Read... [09:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:03]Read from MH i2c: E2 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 0E 00 [09:57:03]MH_I2C_Read... [09:57:03]Read from MH i2c: E2 0E 00 BF 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 48 [09:57:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:57:03]wFMCommunicate OK [09:57:03]SAM_PROTO_GetShiftState done [09:57:03]FM_GetShiftState done [09:57:03]opened in 1720828979 [09:57:03]opened+sec_in_day 1720915379 [09:57:03]quantity*price = 300023 [09:57:03]sum+1 = 300024 [09:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 128 13.07.2024 09:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162460 ФПД: 150386219414417 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095717&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162460&fm=150386219414417&tin=02508201610067®Number=0000000000090858&sum=300000 [09:57:04]StoreToDocumentArchive [09:57:04]shift 462 fd 162460 [09:57:04]save to /storage/0462/doc_00162460 [09:57:04]save last doc name /storage/0462/doc_00162460 to /storage/kkm_last_doc_name [09:57:04]save OK [09:57:04]Clear old archive folders... [09:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:57:04]tlvbuf is 01A1C670 [09:57:04]SAM_PROTO_ClearQueue [09:57:04]wFMCommunicate request_size=4 [09:57:04]MH_SAM_APDU [09:57:04]CAPDU: 80 09 00 00 [09:57:04]Write to MH i2c: E2 08 00 CC 12 80 09 00 00 00 00 00 00 50 [09:57:04]Write i2c OK [09:57:04]MH_I2C_Read... [09:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:04]Read from MH i2c: E2 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 03 00 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 03 00 CC 12 00 90 00 52 [09:57:04]RAPDU: 90 00 [09:57:04]wFMCommunicate OK [09:57:04]SAM_PROTO_ClearQueue done [09:57:04]KKMCreateOFDPacket [09:57:04]OFDProtocolAddRootSTLVToBuf [09:57:04]FM_MakeSignedData [09:57:04]FM_MakeSignedData [09:57:04]SAM_PROTO_SignData [09:57:04]wFMCommunicate request_size=4 [09:57:04]MH_SAM_APDU [09:57:04]CAPDU: 80 0D 01 02 [09:57:04]Write to MH i2c: E2 08 00 CD 12 80 0D 01 02 00 00 00 00 58 [09:57:04]Write i2c OK [09:57:04]MH_I2C_Read... [09:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:04]Read from MH i2c: E2 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 03 00 [09:57:04]MH_I2C_Read... [09:57:04]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [09:57:04]RAPDU: 90 00 [09:57:04]wFMCommunicate OK [09:57:04]wFMCommunicate request_size=255 [09:57:04]MH_SAM_APDU [09:57:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 80 00 00 00 F4 03 04 00 7D 4F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7A 02 00 35 04 06 00 [09:57:04]Write to MH i2c: E2 02 01 CE 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 80 00 00 00 F4 03 04 00 7D 4F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7A 02 00 35 04 06 00 00 00 D5 [09:57:04]Write i2c OK [09:57:04]MH_I2C_Read... [09:57:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 03 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [09:57:05]RAPDU: 90 00 [09:57:05]wFMCommunicate OK [09:57:05]wFMCommunicate request_size=11 [09:57:05]MH_SAM_APDU [09:57:05]CAPDU: 80 0D 02 02 06 88 C6 85 2F F3 91 [09:57:05]Write to MH i2c: E2 0E 00 CF 12 80 0D 02 02 06 00 88 C6 85 2F F3 91 00 00 ED [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 03 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 03 00 CF 12 00 90 00 55 [09:57:05]RAPDU: 90 00 [09:57:05]wFMCommunicate OK [09:57:05]wFMCommunicate request_size=4 [09:57:05]MH_SAM_APDU [09:57:05]CAPDU: 80 0D 03 02 [09:57:05]Write to MH i2c: E2 08 00 D0 12 80 0D 03 02 00 00 00 00 5D [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 0B 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 0B 00 D0 12 00 7A 3A F2 C6 26 DD F2 CF 90 00 8E [09:57:05]RAPDU: 7A 3A F2 C6 26 DD F2 CF 90 00 [09:57:05]wFMCommunicate OK [09:57:05]SAM_PROTO_SignData done [09:57:05]FM_MakeSignedData done [09:57:05]CreateOFDProtocolMessage [09:57:05]wFMCommunicate request_size=4 [09:57:05]MH_SAM_APDU [09:57:05]CAPDU: 80 11 00 00 [09:57:05]Write to MH i2c: E2 08 00 D1 12 80 11 00 00 00 00 00 00 5D [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:05]Read from MH i2c: E2 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 17 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: E2 17 00 D1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BD [09:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:57:05]wFMCommunicate OK [09:57:05]CreateOFDProtocolMessage done [09:57:05]OFDSenderStorePacket 162460 [09:57:05]StoreOFDPacket docnum=162460 [09:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 EC 35 08 01 CC 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 80 00 00 00 F4 03 04 00 7D 4F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7A 02 00 35 04 06 00 88 C6 85 2F F3 91 7A 3A F2 C6 26 DD F2 CF [09:57:05]CheckFolder [09:57:05]dirname=/storage/ofd_packets [09:57:05]CheckFolder done [09:57:05]ProducePacketName [09:57:05]name=ofd_packets/00162460 [09:57:05]NVStorageSaveData ofd_packets/00162460 [09:57:05]File name is /storage/ofd_packets/00162460 [09:57:05]Write 302 bytes [09:57:05]NVStorageSaveData done [09:57:05]OFDSenderStorePacket done [09:57:05]KKMCreateOFDPacket done [09:57:05]NVStorageSaveData kkm_last_timestamp [09:57:05]File name is /storage/kkm_last_timestamp [09:57:05]Write 4 bytes [09:57:05]NVStorageSaveData done [09:57:05]ExternCall_PrintAddStr [09:57:05]wPrintStart [09:57:05]Write to MH i2c: 01 00 00 D2 12 E4 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 07 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 FF 0F F9 [09:57:05]RasterBufferAndPrint [09:57:05]line Счет N : (1)1318994 [09:57:05]line ИНН: 02508201610067 [09:57:05]line Контрольно-Кассовый Чек [09:57:05]line ПРОДАЖА [09:57:05]line ТРК (МРК, ГНК) : 52 [09:57:05]line Товар: 2710124130 [09:57:05]line Super-92-К-5 [09:57:05]line 44.580 * 67.30 [09:57:05]line = 3000.23 [09:57:05]line НДС 12% НСП 1% [09:57:05]line > о реализуемом товаре [09:57:05]line ОКРУГЛЕНИЕ: -0.23 [09:57:05]line ИТОГО: 3000.00 [09:57:05]line Внесено: 3000.00 [09:57:05]line СДАЧА: 0.00 [09:57:05]line НСП 1% : 26.55 [09:57:05]line НДС 12% : 318.61 [09:57:05]line Наличными: 3000.00 [09:57:05]line Безнал.: 0.00 [09:57:05]line Место: АЗС № 140 "Партнер Нефть" [09:57:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:57:05]line СНО: Общий режим [09:57:05]line Чек 128 13.07.2024 09:57 [09:57:05]line Смена: 462 ФФД: 1.0 [09:57:05]line ЗНМ: 0300000129 [09:57:05]line РНМ: 0000000000090858 [09:57:05]line Версия ККМ: 001 [09:57:05]line ФМ: 0000000000874899 [09:57:05]line ФД: 162460 [09:57:05]line ФПД: 150386219414417 [09:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095717&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162460&fm=150386219414417&tin=02508201610067®Number=0000000000090858&sum=300000 [09:57:05]OFD Sender: Processing packet 162460 [packets to send 105, broken 104] [09:57:05]ProducePacketName [09:57:05]name=ofd_packets/00162460 [09:57:05]OFD Sender: To server: pG, [09:57:05]CommunicateWithHost lk.salyk.kg:30040 [09:57:05]ConnectInit lk.salyk.kg [09:57:05]written 0, free lines is 4095 [09:57:05]Connected sock=10 [09:57:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 EC 35 08 01 CC 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 AE 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F7 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 80 00 00 00 F4 03 04 00 7D 4F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7A 02 00 35 04 06 00 88 C6 85 2F F3 91 7A 3A F2 C6 26 DD F2 CF [09:57:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B7 4B 47 00 4B 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9C 7A 02 00 F4 03 04 00 91 FB 91 66 B6 04 01 00 00 D3 14 36 03 AD 5B ED E4 [09:57:05]CommunicateWithHost err = 0 [09:57:05]CheckOFDResponse [09:57:05]1017 (14) - 77093643461234 [09:57:05]1041 (16) - 0000000000874899 [09:57:05]1040 (4) - 162460 [09:57:05]1012 (4) - 13.07.2024 03:59 [09:57:05]1206 (1) - 0 [09:57:05]OFD Sender: Remove packet 162460 [09:57:05]ProducePacketName [09:57:05]name=ofd_packets/00162460 [09:57:05]NVStorageDeleteData [09:57:05]Write to MH i2c: 01 00 00 FD 12 0F [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 07 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: 01 07 00 FD 12 00 00 00 00 00 EA 0C 0C [09:57:05]RasterBufferAndPrint [09:57:05]line [09:57:05]line [09:57:05]line [09:57:05]line [09:57:05]line [09:57:05]written 0, free lines is 3315 [09:57:05]MH_Cut [09:57:05]Write to MH i2c: D1 01 00 04 13 01 E9 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: D1 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: D1 01 00 [09:57:05]MH_I2C_Read... [09:57:05]Read from MH i2c: D1 01 00 04 13 00 E8 [09:57:05]Write to MH i2c: 01 00 00 05 13 18 [09:57:05]Write i2c OK [09:57:05]MH_I2C_Read... [09:57:06]OFD Sender: No OFD packet to send [09:57:06]*** Cut start [09:57:06]*** Purtial cut [09:57:06]*** Stage 1: CUTSNS_PIN = 1 [09:57:06]Read from MH i2c: 01 [09:57:06]MH_I2C_Read... [09:57:06]*** Stop cut motor [09:57:06]*** Cut end [09:57:06]Read from MH i2c: 01 07 00 [09:57:06]MH_I2C_Read... [09:57:06]Read from MH i2c: 01 07 00 05 13 00 00 00 00 00 FF 0F 2D [09:57:06]process_action close_receipt done [09:57:06]requested_data is exist [09:57:06]produce_requested_data [09:57:06]requested_item fm.sn is exist - process it [09:57:06]wFMCommunicate request_size=4 [09:57:06]MH_SAM_APDU [09:57:06]CAPDU: 80 11 00 00 [09:57:06]Write to MH i2c: E2 08 00 06 13 80 11 00 00 00 00 00 00 93 [09:57:06]Write i2c OK [09:57:06]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 17 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 17 00 06 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F3 [09:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:57:07]wFMCommunicate OK [09:57:07]requested_item fd.num is exist - process it [09:57:07]SAM_PROTO_GetFieldsCounters [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 13 00 00 [09:57:07]Write to MH i2c: E2 08 00 07 13 80 13 00 00 00 00 00 00 96 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 62 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 62 00 07 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [09:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9C 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:07]wFMCommunicate OK [09:57:07]SAM_PROTO_GetFieldsCounters done [09:57:07]requested_item shift.num is exist - process it [09:57:07]requested_item shift.opened is exist - process it [09:57:07]req_shift_opened [09:57:07]FM_GetShiftState [09:57:07]SAM_PROTO_GetShiftState [09:57:07]wFMCommunicate request_size=4 [09:57:07]MH_SAM_APDU [09:57:07]CAPDU: 80 13 01 00 [09:57:07]Write to MH i2c: E2 08 00 08 13 80 13 01 00 00 00 00 00 98 [09:57:07]Write i2c OK [09:57:07]MH_I2C_Read... [09:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:07]Read from MH i2c: E2 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 0E 00 [09:57:07]MH_I2C_Read... [09:57:07]Read from MH i2c: E2 0E 00 08 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 92 [09:57:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:57:07]wFMCommunicate OK [09:57:07]SAM_PROTO_GetShiftState done [09:57:07]FM_GetShiftState done [09:57:07]req_shift_opened done [09:57:07]requested_item shift.open_date is exist - process it [09:57:07]req_shift_open_date [09:57:07]req_shift_open_date done [09:57:07]produce_requested_data done [09:57:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162460,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:57:07]process_action_free close_receipt [09:57:07]json_value_free [09:57:07]json_value_free done [09:57:07]process_json_proto returns [09:57:07]Send response to host [09:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162460,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:57:07]free response buf [09:57:07]execute_script done [09:57:07]execute_script returns [09:57:07]free content buf [09:57:07]Sock 8.Close socket [09:57:07]Sock 8.Thread stoped [09:57:11]OFD Sender: No OFD packet to send [09:57:16]OFD Sender: No OFD packet to send [09:57:21]OFD Sender: No OFD packet to send [09:57:26]OFD Sender: No OFD packet to send [09:57:31]OFD Sender: No OFD packet to send [09:57:36]OFD Sender: No OFD packet to send [09:57:41]OFD Sender: No OFD packet to send [09:57:46]OFD Sender: No OFD packet to send [09:57:51]OFD Sender: No OFD packet to send [09:57:56]OFD Sender: No OFD packet to send [09:58:01]OFD Sender: No OFD packet to send [09:58:06]OFD Sender: No OFD packet to send [09:58:11]OFD Sender: No OFD packet to send [09:58:16]OFD Sender: No OFD packet to send [09:58:21]OFD Sender: No OFD packet to send [09:58:26]OFD Sender: No OFD packet to send [09:58:31]OFD Sender: No OFD packet to send [09:58:34]accept exits with 9 [09:58:34]New connection [09:58:34]New thread 3066862948 created [09:58:34]Thread 3067006308 joined [09:58:34]Waiting for new connection... [09:58:34] Sock 9.Parse request [09:58:34]Sock 9.Check first char [09:58:34]Sock 9.First char is OK [09:58:34]request: POST /json_proto HTTP/1.0 [09:58:34]Method: POST [09:58:34]URL: /json_proto [09:58:34]Method is POST - this is cgi request [09:58:34]url: /json_proto [09:58:34]query_string will be loaded in cgi processing [09:58:34]execute_cgi json_proto POST (null) [09:58:34]execute_cgi path=json_proto method=POST [09:58:34]POST find Content-Length [09:58:34]Host: 172.17.39.67:8080 [09:58:34]Content-Length: 678 [09:58:34]Content-Type: application/json [09:58:34] [09:58:34]POST finish read [09:58:34]Found Content-Length = 678 [09:58:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:34]execute_script... [09:58: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)1318996", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:58:34]POST & json_proto [09:58:34]process_json_proto [09:58:34]json parsed OK: [09:58:34]protocol is kg_v1.0 [09:58:34]action value=close_receipt [09:58:34]process_action close_receipt [09:58:34]cmd_close_receipt [09:58:34]MH_GetDate [09:58:34]Write to MH i2c: F0 00 00 09 13 0B [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: F0 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: F0 09 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: F0 09 00 09 13 00 D8 4F 92 66 FA E9 8E 66 0A [09:58:34]GetLastDocTimeStamp 1720864637 [09:58:34]current date 1720864728 [09:58:34]FM_GetShiftState [09:58:34]SAM_PROTO_GetShiftState [09:58:34]wFMCommunicate request_size=4 [09:58:34]MH_SAM_APDU [09:58:34]CAPDU: 80 13 01 00 [09:58:34]Write to MH i2c: E2 08 00 0A 13 80 13 01 00 00 00 00 00 9A [09:58:34]Write i2c OK [09:58:34]MH_I2C_Read... [09:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:34]Read from MH i2c: E2 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 0E 00 [09:58:34]MH_I2C_Read... [09:58:34]Read from MH i2c: E2 0E 00 0A 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 94 [09:58:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:58:34]wFMCommunicate OK [09:58:34]SAM_PROTO_GetShiftState done [09:58:34]FM_GetShiftState done [09:58:34]opened in 1720828979 [09:58:34]opened+sec_in_day 1720915379 [09:58:34]quantity*price = 50056 [09:58:34]sum+1 = 50058 [09:58:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 129 13.07.2024 09:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162461 ФПД: 157674228777643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095848&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162461&fm=157674228777643&tin=02508201610067®Number=0000000000090858&sum=50000 [09:58:35]StoreToDocumentArchive [09:58:35]shift 462 fd 162461 [09:58:35]save to /storage/0462/doc_00162461 [09:58:35]save last doc name /storage/0462/doc_00162461 to /storage/kkm_last_doc_name [09:58:35]save OK [09:58:35]Clear old archive folders... [09:58:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:35]tlvbuf is 01C7CA10 [09:58:35]SAM_PROTO_ClearQueue [09:58:35]wFMCommunicate request_size=4 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 09 00 00 [09:58:35]Write to MH i2c: E2 08 00 17 13 80 09 00 00 00 00 00 00 9C [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:35]Read from MH i2c: E2 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 17 13 00 90 00 9E [09:58:35]RAPDU: 90 00 [09:58:35]wFMCommunicate OK [09:58:35]SAM_PROTO_ClearQueue done [09:58:35]KKMCreateOFDPacket [09:58:35]OFDProtocolAddRootSTLVToBuf [09:58:35]FM_MakeSignedData [09:58:35]FM_MakeSignedData [09:58:35]SAM_PROTO_SignData [09:58:35]wFMCommunicate request_size=4 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 0D 01 02 [09:58:35]Write to MH i2c: E2 08 00 18 13 80 0D 01 02 00 00 00 00 A4 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:35]Read from MH i2c: E2 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 18 13 00 90 00 9F [09:58:35]RAPDU: 90 00 [09:58:35]wFMCommunicate OK [09:58:35]wFMCommunicate request_size=255 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 D8 4F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7A 02 00 35 04 06 00 8F [09:58:35]Write to MH i2c: E2 02 01 19 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 D8 4F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7A 02 00 35 04 06 00 8F 00 00 77 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:35]Read from MH i2c: E2 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 19 13 00 90 00 A0 [09:58:35]RAPDU: 90 00 [09:58:35]wFMCommunicate OK [09:58:35]wFMCommunicate request_size=10 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 0D 02 02 05 67 64 65 82 AB [09:58:35]Write to MH i2c: E2 0D 00 1A 13 80 0D 02 02 05 00 67 64 65 82 AB 00 00 0E [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:35]Read from MH i2c: E2 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 [09:58:35]MH_I2C_Read... [09:58:35]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [09:58:35]RAPDU: 90 00 [09:58:35]wFMCommunicate OK [09:58:35]wFMCommunicate request_size=4 [09:58:35]MH_SAM_APDU [09:58:35]CAPDU: 80 0D 03 02 [09:58:35]Write to MH i2c: E2 08 00 1B 13 80 0D 03 02 00 00 00 00 A9 [09:58:35]Write i2c OK [09:58:35]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 0B 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 0B 00 1B 13 00 80 9D 22 E6 C6 BC A6 37 90 00 2E [09:58:36]RAPDU: 80 9D 22 E6 C6 BC A6 37 90 00 [09:58:36]wFMCommunicate OK [09:58:36]SAM_PROTO_SignData done [09:58:36]FM_MakeSignedData done [09:58:36]CreateOFDProtocolMessage [09:58:36]wFMCommunicate request_size=4 [09:58:36]MH_SAM_APDU [09:58:36]CAPDU: 80 11 00 00 [09:58:36]Write to MH i2c: E2 08 00 1C 13 80 11 00 00 00 00 00 00 A9 [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:36]Read from MH i2c: E2 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 17 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: E2 17 00 1C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 09 [09:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:58:36]wFMCommunicate OK [09:58:36]CreateOFDProtocolMessage done [09:58:36]OFDSenderStorePacket 162461 [09:58:36]StoreOFDPacket docnum=162461 [09:58:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 84 60 07 01 DD 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 D8 4F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7A 02 00 35 04 06 00 8F 67 64 65 82 AB 80 9D 22 E6 C6 BC A6 37 [09:58:36]CheckFolder [09:58:36]dirname=/storage/ofd_packets [09:58:36]CheckFolder done [09:58:36]ProducePacketName [09:58:36]name=ofd_packets/00162461 [09:58:36]NVStorageSaveData ofd_packets/00162461 [09:58:36]File name is /storage/ofd_packets/00162461 [09:58:36]Write 301 bytes [09:58:36]NVStorageSaveData done [09:58:36]OFDSenderStorePacket done [09:58:36]KKMCreateOFDPacket done [09:58:36]NVStorageSaveData kkm_last_timestamp [09:58:36]File name is /storage/kkm_last_timestamp [09:58:36]Write 4 bytes [09:58:36]NVStorageSaveData done [09:58:36]ExternCall_PrintAddStr [09:58:36]wPrintStart [09:58:36]Write to MH i2c: 01 00 00 1D 13 30 [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 07 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 07 00 1D 13 00 00 00 00 00 FF 0F 45 [09:58:36]RasterBufferAndPrint [09:58:36]line Счет N : (1)1318996 [09:58:36]line ИНН: 02508201610067 [09:58:36]line Контрольно-Кассовый Чек [09:58:36]line ПРОДАЖА [09:58:36]line ТРК (МРК, ГНК) : 43 [09:58:36]line Товар: 2710124130 [09:58:36]line Аи-92-К-5 [09:58:36]line 7.550 * 66.30 [09:58:36]line = 500.57 [09:58:36]line НДС 12% НСП 1% [09:58:36]line > о реализуемом товаре [09:58:36]line ОКРУГЛЕНИЕ: -0.57 [09:58:36]line ИТОГО: 500.00 [09:58:36]line Внесено: 500.00 [09:58:36]line СДАЧА: 0.00 [09:58:36]line НСП 1% : 4.43 [09:58:36]line НДС 12% : 53.16 [09:58:36]line Наличными: 500.00 [09:58:36]line Безнал.: 0.00 [09:58:36]line Место: АЗС № 140 "Партнер Нефть" [09:58:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:58:36]line СНО: Общий режим [09:58:36]line Чек 129 13.07.2024 09:58 [09:58:36]line Смена: 462 ФФД: 1.0 [09:58:36]line ЗНМ: 0300000129 [09:58:36]line РНМ: 0000000000090858 [09:58:36]line Версия ККМ: 001 [09:58:36]line ФМ: 0000000000874899 [09:58:36]line ФД: 162461 [09:58:36]line ФПД: 157674228777643 [09:58:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T095848&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162461&fm=157674228777643&tin=02508201610067®Number=0000000000090858&sum=50000 [09:58:36]OFD Sender: Processing packet 162461 [packets to send 105, broken 104] [09:58:36]ProducePacketName [09:58:36]name=ofd_packets/00162461 [09:58:36]OFD Sender: To server: pG, [09:58:36]CommunicateWithHost lk.salyk.kg:30040 [09:58:36]ConnectInit lk.salyk.kg [09:58:36]written 0, free lines is 4095 [09:58:36]Connected sock=10 [09:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 84 60 07 01 DD 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 D8 4F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7A 02 00 35 04 06 00 8F 67 64 65 82 AB 80 9D 22 E6 C6 BC A6 37 [09:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 09 A6 47 00 DA 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9D 7A 02 00 F4 03 04 00 EC FB 91 66 B6 04 01 00 00 A8 1B 83 A9 21 1B 5E E8 [09:58:36]CommunicateWithHost err = 0 [09:58:36]CheckOFDResponse [09:58:36]1017 (14) - 77093643461234 [09:58:36]1041 (16) - 0000000000874899 [09:58:36]1040 (4) - 162461 [09:58:36]1012 (4) - 13.07.2024 04:00 [09:58:36]1206 (1) - 0 [09:58:36]OFD Sender: Remove packet 162461 [09:58:36]ProducePacketName [09:58:36]name=ofd_packets/00162461 [09:58:36]NVStorageDeleteData [09:58:36]Write to MH i2c: 01 00 00 48 13 5B [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 07 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: 01 07 00 48 13 00 00 00 00 00 DA 0C 48 [09:58:36]RasterBufferAndPrint [09:58:36]line [09:58:36]line [09:58:36]line [09:58:36]line [09:58:36]line [09:58:36]written 0, free lines is 3296 [09:58:36]MH_Cut [09:58:36]Write to MH i2c: D1 01 00 4F 13 01 34 [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: D1 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: D1 01 00 [09:58:36]MH_I2C_Read... [09:58:36]Read from MH i2c: D1 01 00 4F 13 00 33 [09:58:36]Write to MH i2c: 01 00 00 50 13 63 [09:58:36]Write i2c OK [09:58:36]MH_I2C_Read... [09:58:37]OFD Sender: No OFD packet to send [09:58:37]*** Cut start [09:58:37]*** Purtial cut [09:58:37]*** CUTSNS_PIN = 0 [09:58:37]*** Stage 1: CUTSNS_PIN = 1 [09:58:39]Read from MH i2c: 01 [09:58:39]MH_I2C_Read... [09:58:39]*** Stop cut motor [09:58:39]*** Cut end [09:58:39]Read from MH i2c: 01 07 00 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: 01 07 00 50 13 00 00 00 00 00 FF 0F 78 [09:58:39]process_action close_receipt done [09:58:39]requested_data is exist [09:58:39]produce_requested_data [09:58:39]requested_item fm.sn is exist - process it [09:58:39]wFMCommunicate request_size=4 [09:58:39]MH_SAM_APDU [09:58:39]CAPDU: 80 11 00 00 [09:58:39]Write to MH i2c: E2 08 00 51 13 80 11 00 00 00 00 00 00 DE [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:39]Read from MH i2c: E2 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 17 00 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 17 00 51 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3E [09:58:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [09:58:39]wFMCommunicate OK [09:58:39]requested_item fd.num is exist - process it [09:58:39]SAM_PROTO_GetFieldsCounters [09:58:39]wFMCommunicate request_size=4 [09:58:39]MH_SAM_APDU [09:58:39]CAPDU: 80 13 00 00 [09:58:39]Write to MH i2c: E2 08 00 52 13 80 13 00 00 00 00 00 00 E1 [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:39]Read from MH i2c: E2 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 62 00 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 62 00 52 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [09:58:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:39]wFMCommunicate OK [09:58:39]SAM_PROTO_GetFieldsCounters done [09:58:39]requested_item shift.num is exist - process it [09:58:39]requested_item shift.opened is exist - process it [09:58:39]req_shift_opened [09:58:39]FM_GetShiftState [09:58:39]SAM_PROTO_GetShiftState [09:58:39]wFMCommunicate request_size=4 [09:58:39]MH_SAM_APDU [09:58:39]CAPDU: 80 13 01 00 [09:58:39]Write to MH i2c: E2 08 00 53 13 80 13 01 00 00 00 00 00 E3 [09:58:39]Write i2c OK [09:58:39]MH_I2C_Read... [09:58:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:39]Read from MH i2c: E2 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 0E 00 [09:58:39]MH_I2C_Read... [09:58:39]Read from MH i2c: E2 0E 00 53 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DD [09:58:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [09:58:39]wFMCommunicate OK [09:58:39]SAM_PROTO_GetShiftState done [09:58:39]FM_GetShiftState done [09:58:39]req_shift_opened done [09:58:39]requested_item shift.open_date is exist - process it [09:58:39]req_shift_open_date [09:58:39]req_shift_open_date done [09:58:39]produce_requested_data done [09:58:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162461,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [09:58:39]process_action_free close_receipt [09:58:39]json_value_free [09:58:39]json_value_free done [09:58:39]process_json_proto returns [09:58:39]Send response to host [09:58:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162461,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [09:58:39]free response buf [09:58:39]execute_script done [09:58:39]execute_script returns [09:58:39]free content buf [09:58:39]Sock 9.Close socket [09:58:39]Sock 9.Thread stoped [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:05]accept exits with 8 [10:00:05]New connection [10:00:05]New thread 3067006308 created [10:00:05]Thread 3066862948 joined [10:00:05]Waiting for new connection... [10:00:05] Sock 8.Parse request [10:00:05]Sock 8.Check first char [10:00:05]Sock 8.First char is OK [10:00:05]request: POST /json_proto HTTP/1.0 [10:00:05]Method: POST [10:00:05]URL: /json_proto [10:00:05]Method is POST - this is cgi request [10:00:05]url: /json_proto [10:00:05]query_string will be loaded in cgi processing [10:00:05]execute_cgi json_proto POST (null) [10:00:05]execute_cgi path=json_proto method=POST [10:00:05]POST find Content-Length [10:00:05]Host: 172.17.39.67:8080 [10:00:05]Content-Length: 1218 [10:00:05]Content-Type: application/json [10:00:05] [10:00:05]POST finish read [10:00:05]Found Content-Length = 1218 [10:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318995\u000A13.07.2024 09:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32789\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:05]execute_script... [10:00:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1318995\u000A13.07.2024 09:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 31\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32789\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:05]POST & json_proto [10:00:05]process_json_proto [10:00:05]json parsed OK: [10:00:05]protocol is kg_v1.0 [10:00:05]action value=print_text [10:00:05]process_action print_text [10:00:05]cmd_print_text [10:00:05]ExternCall_PrintAddStr [10:00:05]wPrintStart [10:00:05]Write to MH i2c: 01 00 00 54 13 67 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 54 13 00 00 00 00 00 FF 0F 7C [10:00:05]RasterBufferAndPrint [10:00:05]line *****ТОВАРНЫЙ ЧЕК***** [10:00:05]line АЗС 140 [10:00:05]line Партнер нефть [10:00:05]line 02508201610067 [10:00:05]line Кассир : Шамбеталиев А. [10:00:05]line Счет N : (1)1318995 [10:00:05]line 13.07.2024 09:57 [10:00:05]line ПРОДАЖА [10:00:05]line ТРК (МРК, ГНК): 31 [10:00:05]line Вид ГСМ : 2710194210 [10:00:05]line ДТ(л)-К-5 [10:00:05]line 20.000 x 72.60 [10:00:05]line ИТОГ: 1452.00 [10:00:05]line Тип оплаты: Талоны: Топливная Карта [10:00:05]line 32789 [10:00:05]line ______________________ [10:00:05]line (подпись) [10:00:05]written 0, free lines is 4095 [10:00:05]Write to MH i2c: 01 00 00 69 13 7C [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 F4 0D 84 [10:00:05]RasterBufferAndPrint [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]line [10:00:05]written 0, free lines is 3573 [10:00:05]MH_Cut [10:00:05]Write to MH i2c: D1 01 00 70 13 01 55 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 01 00 [10:00:05]MH_I2C_Read... [10:00:05]Read from MH i2c: D1 01 00 70 13 00 54 [10:00:05]Write to MH i2c: 01 00 00 71 13 84 [10:00:05]Write i2c OK [10:00:05]MH_I2C_Read... [10:00:06]*** Cut start [10:00:06]*** Purtial cut [10:00:06]*** Stage 1: CUTSNS_PIN = 1 [10:00:06]Read from MH i2c: 01 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: 01 07 00 [10:00:06]MH_I2C_Read... [10:00:06]*** Stop cut motor [10:00:06]*** Cut end [10:00:06]Read from MH i2c: 01 07 00 71 13 00 00 00 00 00 FF 0F 99 [10:00:06]process_action print_text done [10:00:06]requested_data is exist [10:00:06]produce_requested_data [10:00:06]requested_item fm.sn is exist - process it [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 11 00 00 [10:00:06]Write to MH i2c: E2 08 00 72 13 80 11 00 00 00 00 00 00 FF [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 17 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 17 00 72 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5F [10:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:00:06]wFMCommunicate OK [10:00:06]requested_item fd.num is exist - process it [10:00:06]SAM_PROTO_GetFieldsCounters [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 13 00 00 [10:00:06]Write to MH i2c: E2 08 00 73 13 80 13 00 00 00 00 00 00 02 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 62 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 62 00 73 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:00:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9D 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:06]wFMCommunicate OK [10:00:06]SAM_PROTO_GetFieldsCounters done [10:00:06]requested_item shift.num is exist - process it [10:00:06]requested_item shift.opened is exist - process it [10:00:06]req_shift_opened [10:00:06]FM_GetShiftState [10:00:06]SAM_PROTO_GetShiftState [10:00:06]wFMCommunicate request_size=4 [10:00:06]MH_SAM_APDU [10:00:06]CAPDU: 80 13 01 00 [10:00:06]Write to MH i2c: E2 08 00 74 13 80 13 01 00 00 00 00 00 04 [10:00:06]Write i2c OK [10:00:06]MH_I2C_Read... [10:00:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:06]Read from MH i2c: E2 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 0E 00 [10:00:06]MH_I2C_Read... [10:00:06]Read from MH i2c: E2 0E 00 74 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FE [10:00:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:00:06]wFMCommunicate OK [10:00:06]SAM_PROTO_GetShiftState done [10:00:06]FM_GetShiftState done [10:00:06]req_shift_opened done [10:00:06]requested_item shift.open_date is exist - process it [10:00:06]req_shift_open_date [10:00:06]req_shift_open_date done [10:00:06]produce_requested_data done [10:00:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162461,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:00:06]process_action_free print_text [10:00:06]json_value_free [10:00:06]json_value_free done [10:00:06]process_json_proto returns [10:00:06]Send response to host [10:00:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162461,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:00:06]free response buf [10:00:06]execute_script done [10:00:06]execute_script returns [10:00:06]free content buf [10:00:06]Sock 8.Close socket [10:00:06]Sock 8.Thread stoped [10:00:07]accept exits with 9 [10:00:07]New connection [10:00:07]New thread 3066862948 created [10:00:07]Thread 3067006308 joined [10:00:07]Waiting for new connection... [10:00:07] Sock 9.Parse request [10:00:07]Sock 9.Check first char [10:00:07]Sock 9.First char is OK [10:00:07]request: POST /json_proto HTTP/1.0 [10:00:07]Method: POST [10:00:07]URL: /json_proto [10:00:07]Method is POST - this is cgi request [10:00:07]url: /json_proto [10:00:07]query_string will be loaded in cgi processing [10:00:07]execute_cgi json_proto POST (null) [10:00:07]execute_cgi path=json_proto method=POST [10:00:07]POST find Content-Length [10:00:07]Host: 172.17.39.67:8080 [10:00:07]Content-Length: 688 [10:00:07]Content-Type: application/json [10:00:07] [10:00:07]POST finish read [10:00:07]Found Content-Length = 688 [10:00:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:00:07]execute_script... [10:00: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)1318997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:00:07]POST & json_proto [10:00:07]process_json_proto [10:00:07]json parsed OK: [10:00:07]protocol is kg_v1.0 [10:00:07]action value=close_receipt [10:00:07]process_action close_receipt [10:00:07]cmd_close_receipt [10:00:07]MH_GetDate [10:00:07]Write to MH i2c: F0 00 00 75 13 77 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: F0 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: F0 09 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: F0 09 00 75 13 00 34 50 92 66 FA E9 8E 66 D3 [10:00:07]GetLastDocTimeStamp 1720864728 [10:00:07]current date 1720864820 [10:00:07]FM_GetShiftState [10:00:07]SAM_PROTO_GetShiftState [10:00:07]wFMCommunicate request_size=4 [10:00:07]MH_SAM_APDU [10:00:07]CAPDU: 80 13 01 00 [10:00:07]Write to MH i2c: E2 08 00 76 13 80 13 01 00 00 00 00 00 06 [10:00:07]Write i2c OK [10:00:07]MH_I2C_Read... [10:00:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:07]Read from MH i2c: E2 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 0E 00 [10:00:07]MH_I2C_Read... [10:00:07]Read from MH i2c: E2 0E 00 76 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 00 [10:00:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:00:07]wFMCommunicate OK [10:00:07]SAM_PROTO_GetShiftState done [10:00:07]FM_GetShiftState done [10:00:07]opened in 1720828979 [10:00:07]opened+sec_in_day 1720915379 [10:00:07]quantity*price = 300055 [10:00:07]sum+1 = 300057 [10:00:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 130 13.07.2024 10:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162462 ФПД: 188894064824318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100021&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162462&fm=188894064824318&tin=02508201610067®Number=0000000000090858&sum=300000 [10:00:08]StoreToDocumentArchive [10:00:08]shift 462 fd 162462 [10:00:08]save to /storage/0462/doc_00162462 [10:00:08]save last doc name /storage/0462/doc_00162462 to /storage/kkm_last_doc_name [10:00:08]save OK [10:00:08]Clear old archive folders... [10:00:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:00:08]tlvbuf is 01A73C50 [10:00:08]SAM_PROTO_ClearQueue [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 09 00 00 [10:00:08]Write to MH i2c: E2 08 00 83 13 80 09 00 00 00 00 00 00 08 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 83 13 00 90 00 0A [10:00:08]RAPDU: 90 00 [10:00:08]wFMCommunicate OK [10:00:08]SAM_PROTO_ClearQueue done [10:00:08]KKMCreateOFDPacket [10:00:08]OFDProtocolAddRootSTLVToBuf [10:00:08]FM_MakeSignedData [10:00:08]FM_MakeSignedData [10:00:08]SAM_PROTO_SignData [10:00:08]wFMCommunicate request_size=4 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 0D 01 02 [10:00:08]Write to MH i2c: E2 08 00 84 13 80 0D 01 02 00 00 00 00 10 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 84 13 00 90 00 0B [10:00:08]RAPDU: 90 00 [10:00:08]wFMCommunicate OK [10:00:08]wFMCommunicate request_size=255 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 82 00 00 00 F4 03 04 00 35 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7A 02 00 35 04 06 00 [10:00:08]Write to MH i2c: E2 02 01 85 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 82 00 00 00 F4 03 04 00 35 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7A 02 00 35 04 06 00 00 00 D5 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:08]Read from MH i2c: E2 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 [10:00:08]MH_I2C_Read... [10:00:08]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [10:00:08]RAPDU: 90 00 [10:00:08]wFMCommunicate OK [10:00:08]wFMCommunicate request_size=11 [10:00:08]MH_SAM_APDU [10:00:08]CAPDU: 80 0D 02 02 06 AB CC 53 A2 4F FE [10:00:08]Write to MH i2c: E2 0E 00 86 13 80 0D 02 02 06 00 AB CC 53 A2 4F FE 00 00 D8 [10:00:08]Write i2c OK [10:00:08]MH_I2C_Read... [10:00:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:09]Read from MH i2c: E2 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 03 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 03 00 86 13 00 90 00 0D [10:00:09]RAPDU: 90 00 [10:00:09]wFMCommunicate OK [10:00:09]wFMCommunicate request_size=4 [10:00:09]MH_SAM_APDU [10:00:09]CAPDU: 80 0D 03 02 [10:00:09]Write to MH i2c: E2 08 00 87 13 80 0D 03 02 00 00 00 00 15 [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:09]Read from MH i2c: E2 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 0B 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 0B 00 87 13 00 84 A0 58 A5 D6 B5 19 60 90 00 3B [10:00:09]RAPDU: 84 A0 58 A5 D6 B5 19 60 90 00 [10:00:09]wFMCommunicate OK [10:00:09]SAM_PROTO_SignData done [10:00:09]FM_MakeSignedData done [10:00:09]CreateOFDProtocolMessage [10:00:09]wFMCommunicate request_size=4 [10:00:09]MH_SAM_APDU [10:00:09]CAPDU: 80 11 00 00 [10:00:09]Write to MH i2c: E2 08 00 88 13 80 11 00 00 00 00 00 00 15 [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:09]Read from MH i2c: E2 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 17 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: E2 17 00 88 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 75 [10:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:00:09]wFMCommunicate OK [10:00:09]CreateOFDProtocolMessage done [10:00:09]OFDSenderStorePacket 162462 [10:00:09]StoreOFDPacket docnum=162462 [10:00:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FB F0 08 01 D9 29 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 82 00 00 00 F4 03 04 00 35 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7A 02 00 35 04 06 00 AB CC 53 A2 4F FE 84 A0 58 A5 D6 B5 19 60 [10:00:09]CheckFolder [10:00:09]dirname=/storage/ofd_packets [10:00:09]CheckFolder done [10:00:09]ProducePacketName [10:00:09]name=ofd_packets/00162462 [10:00:09]NVStorageSaveData ofd_packets/00162462 [10:00:09]File name is /storage/ofd_packets/00162462 [10:00:09]Write 302 bytes [10:00:09]NVStorageSaveData done [10:00:09]OFDSenderStorePacket done [10:00:09]KKMCreateOFDPacket done [10:00:09]NVStorageSaveData kkm_last_timestamp [10:00:09]File name is /storage/kkm_last_timestamp [10:00:09]Write 4 bytes [10:00:09]NVStorageSaveData done [10:00:09]ExternCall_PrintAddStr [10:00:09]wPrintStart [10:00:09]Write to MH i2c: 01 00 00 89 13 9C [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 07 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 07 00 89 13 00 00 00 00 00 FF 0F B1 [10:00:09]RasterBufferAndPrint [10:00:09]line Счет N : (1)1318997 [10:00:09]line ИНН: 02508201610067 [10:00:09]line Контрольно-Кассовый Чек [10:00:09]line ПРОДАЖА [10:00:09]line ТРК (МРК, ГНК) : 11 [10:00:09]line Товар: 2710194210 [10:00:09]line ДТ(л)-К-5 [10:00:09]line 41.330 * 72.60 [10:00:09]line = 3000.56 [10:00:09]line НДС 12% НСП 1% [10:00:09]line > о реализуемом товаре [10:00:09]line ОКРУГЛЕНИЕ: -0.56 [10:00:09]line ИТОГО: 3000.00 [10:00:09]line Внесено: 3000.00 [10:00:09]line СДАЧА: 0.00 [10:00:09]line НСП 1% : 26.55 [10:00:09]line НДС 12% : 318.64 [10:00:09]line Наличными: 3000.00 [10:00:09]line Безнал.: 0.00 [10:00:09]line Место: АЗС № 140 "Партнер Нефть" [10:00:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:00:09]line СНО: Общий режим [10:00:09]line Чек 130 13.07.2024 10:00 [10:00:09]line Смена: 462 ФФД: 1.0 [10:00:09]line ЗНМ: 0300000129 [10:00:09]line РНМ: 0000000000090858 [10:00:09]line Версия ККМ: 001 [10:00:09]line ФМ: 0000000000874899 [10:00:09]line ФД: 162462 [10:00:09]line ФПД: 188894064824318 [10:00:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100021&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162462&fm=188894064824318&tin=02508201610067®Number=0000000000090858&sum=300000 [10:00:09]OFD Sender: Processing packet 162462 [packets to send 105, broken 104] [10:00:09]ProducePacketName [10:00:09]name=ofd_packets/00162462 [10:00:09]OFD Sender: To server: pG, [10:00:09]CommunicateWithHost lk.salyk.kg:30040 [10:00:09]ConnectInit lk.salyk.kg [10:00:09]written 0, free lines is 4095 [10:00:09]Connected sock=10 [10:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FB F0 08 01 D9 29 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 82 00 00 00 F4 03 04 00 35 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9E 7A 02 00 35 04 06 00 AB CC 53 A2 4F FE 84 A0 58 A5 D6 B5 19 60 [10:00:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CB 46 47 00 FB 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 34 38 39 39 10 04 04 00 9E 7A 02 00 F4 03 04 00 49 FC 91 66 B6 04 01 00 00 C2 6C 60 A6 80 EF 52 F6 [10:00:09]CommunicateWithHost err = 0 [10:00:09]CheckOFDResponse [10:00:09]1017 (14) - 77093643461234 [10:00:09]1041 (16) - 0000000000874899 [10:00:09]1040 (4) - 162462 [10:00:09]1012 (4) - 13.07.2024 04:02 [10:00:09]1206 (1) - 0 [10:00:09]OFD Sender: Remove packet 162462 [10:00:09]ProducePacketName [10:00:09]name=ofd_packets/00162462 [10:00:09]NVStorageDeleteData [10:00:09]Write to MH i2c: 01 00 00 B4 13 C7 [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 07 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 F1 0C CB [10:00:09]RasterBufferAndPrint [10:00:09]line [10:00:09]line [10:00:09]line [10:00:09]line [10:00:09]line [10:00:09]written 0, free lines is 3322 [10:00:09]MH_Cut [10:00:09]Write to MH i2c: D1 01 00 BB 13 01 A0 [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: D1 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: D1 01 00 [10:00:09]MH_I2C_Read... [10:00:09]Read from MH i2c: D1 01 00 BB 13 00 9F [10:00:09]Write to MH i2c: 01 00 00 BC 13 CF [10:00:09]Write i2c OK [10:00:09]MH_I2C_Read... [10:00:10]OFD Sender: No OFD packet to send [10:00:10]*** Cut start [10:00:10]*** Purtial cut [10:00:10]*** CUTSNS_PIN = 0 [10:00:10]*** Stage 1: CUTSNS_PIN = 1 [10:00:12]Read from MH i2c: 01 [10:00:12]MH_I2C_Read... [10:00:12]*** Stop cut motor [10:00:12]*** Cut end [10:00:12]Read from MH i2c: 01 07 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: 01 07 00 BC 13 00 00 00 00 00 FF 0F E4 [10:00:12]process_action close_receipt done [10:00:12]requested_data is exist [10:00:12]produce_requested_data [10:00:12]requested_item fm.sn is exist - process it [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 11 00 00 [10:00:12]Write to MH i2c: E2 08 00 BD 13 80 11 00 00 00 00 00 00 4A [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 17 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 17 00 BD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AA [10:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:00:12]wFMCommunicate OK [10:00:12]requested_item fd.num is exist - process it [10:00:12]SAM_PROTO_GetFieldsCounters [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 13 00 00 [10:00:12]Write to MH i2c: E2 08 00 BE 13 80 13 00 00 00 00 00 00 4D [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 62 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 62 00 BE 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [10:00:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9E 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:12]wFMCommunicate OK [10:00:12]SAM_PROTO_GetFieldsCounters done [10:00:12]requested_item shift.num is exist - process it [10:00:12]requested_item shift.opened is exist - process it [10:00:12]req_shift_opened [10:00:12]FM_GetShiftState [10:00:12]SAM_PROTO_GetShiftState [10:00:12]wFMCommunicate request_size=4 [10:00:12]MH_SAM_APDU [10:00:12]CAPDU: 80 13 01 00 [10:00:12]Write to MH i2c: E2 08 00 BF 13 80 13 01 00 00 00 00 00 4F [10:00:12]Write i2c OK [10:00:12]MH_I2C_Read... [10:00:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:12]Read from MH i2c: E2 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 0E 00 [10:00:12]MH_I2C_Read... [10:00:12]Read from MH i2c: E2 0E 00 BF 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 49 [10:00:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:00:12]wFMCommunicate OK [10:00:12]SAM_PROTO_GetShiftState done [10:00:12]FM_GetShiftState done [10:00:12]req_shift_opened done [10:00:12]requested_item shift.open_date is exist - process it [10:00:12]req_shift_open_date [10:00:12]req_shift_open_date done [10:00:12]produce_requested_data done [10:00:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162462,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:00:12]process_action_free close_receipt [10:00:12]json_value_free [10:00:12]json_value_free done [10:00:12]process_json_proto returns [10:00:12]Send response to host [10:00:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162462,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:00:12]free response buf [10:00:12]execute_script done [10:00:12]execute_script returns [10:00:12]free content buf [10:00:12]Sock 9.Close socket [10:00:12]Sock 9.Thread stoped [10:00:15]OFD Sender: No OFD packet to send [10:00:20]OFD Sender: No OFD packet to send [10:00:25]OFD Sender: No OFD packet to send [10:00:30]OFD Sender: No OFD packet to send [10:00:35]OFD Sender: No OFD packet to send [10:00:40]OFD Sender: No OFD packet to send [10:00:45]OFD Sender: No OFD packet to send [10:00:50]OFD Sender: No OFD packet to send [10:00:55]OFD Sender: No OFD packet to send [10:01:00]OFD Sender: No OFD packet to send [10:01:05]OFD Sender: No OFD packet to send [10:01:10]OFD Sender: No OFD packet to send [10:01:15]OFD Sender: No OFD packet to send [10:01:20]OFD Sender: No OFD packet to send [10:01:25]OFD Sender: No OFD packet to send [10:01:30]OFD Sender: No OFD packet to send [10:01:35]OFD Sender: No OFD packet to send [10:01:40]OFD Sender: No OFD packet to send [10:01:45]OFD Sender: No OFD packet to send [10:01:50]OFD Sender: No OFD packet to send [10:01:55]OFD Sender: No OFD packet to send [10:02:00]OFD Sender: No OFD packet to send [10:02:05]OFD Sender: No OFD packet to send [10:02:10]OFD Sender: No OFD packet to send [10:02:15]OFD Sender: No OFD packet to send [10:02:20]OFD Sender: No OFD packet to send [10:02:25]OFD Sender: No OFD packet to send [10:02:30]OFD Sender: No OFD packet to send [10:02:32]accept exits with 8 [10:02:32]New connection [10:02:32]New thread 3067006308 created [10:02:32]Thread 3066862948 joined [10:02:32]Waiting for new connection... [10:02:32] Sock 8.Parse request [10:02:32]Sock 8.Check first char [10:02:32]Sock 8.First char is OK [10:02:32]request: POST /json_proto HTTP/1.0 [10:02:32]Method: POST [10:02:32]URL: /json_proto [10:02:32]Method is POST - this is cgi request [10:02:32]url: /json_proto [10:02:32]query_string will be loaded in cgi processing [10:02:32]execute_cgi json_proto POST (null) [10:02:32]execute_cgi path=json_proto method=POST [10:02:32]POST find Content-Length [10:02:32]Host: 172.17.39.67:8080 [10:02:32]Content-Length: 794 [10:02:32]Content-Type: application/json [10:02:32] [10:02:32]POST finish read [10:02:32]Found Content-Length = 794 [10:02:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 8.910, "sum" : 599.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" : 599.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:32]execute_script... [10:02:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318999", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 8.910, "sum" : 599.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" : 599.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:32]POST & json_proto [10:02:32]process_json_proto [10:02:32]json parsed OK: [10:02:32]protocol is kg_v1.0 [10:02:32]action value=close_receipt [10:02:32]process_action close_receipt [10:02:32]cmd_close_receipt [10:02:32]MH_GetDate [10:02:32]Write to MH i2c: F0 00 00 C0 13 C2 [10:02:32]Write i2c OK [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: F0 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: F0 09 00 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: F0 09 00 C0 13 00 C5 50 92 66 FA E9 8E 66 AF [10:02:32]GetLastDocTimeStamp 1720864821 [10:02:32]current date 1720864965 [10:02:32]FM_GetShiftState [10:02:32]SAM_PROTO_GetShiftState [10:02:32]wFMCommunicate request_size=4 [10:02:32]MH_SAM_APDU [10:02:32]CAPDU: 80 13 01 00 [10:02:32]Write to MH i2c: E2 08 00 C1 13 80 13 01 00 00 00 00 00 51 [10:02:32]Write i2c OK [10:02:32]MH_I2C_Read... [10:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:32]Read from MH i2c: E2 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: E2 0E 00 [10:02:32]MH_I2C_Read... [10:02:32]Read from MH i2c: E2 0E 00 C1 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4B [10:02:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:02:32]wFMCommunicate OK [10:02:32]SAM_PROTO_GetShiftState done [10:02:32]FM_GetShiftState done [10:02:32]opened in 1720828979 [10:02:32]opened+sec_in_day 1720915379 [10:02:32]quantity*price = 59964 [10:02:32]sum+1 = 59965 [10:02:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 599.64 НСП 1% : 5.31 НДС 12% : 63.68 Наличными: 0.00 Безнал.: 599.64 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 131 13.07.2024 10:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162463 ФПД: 163251870313369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100245&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162463&fm=163251870313369&tin=02508201610067®Number=0000000000090858&sum=59964 [10:02:33]StoreToDocumentArchive [10:02:33]shift 462 fd 162463 [10:02:33]save to /storage/0462/doc_00162463 [10:02:33]save last doc name /storage/0462/doc_00162463 to /storage/kkm_last_doc_name [10:02:33]save OK [10:02:33]Clear old archive folders... [10:02:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:02:33]tlvbuf is 01C7C630 [10:02:33]SAM_PROTO_ClearQueue [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 09 00 00 [10:02:33]Write to MH i2c: E2 08 00 CE 13 80 09 00 00 00 00 00 00 53 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 03 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 03 00 CE 13 00 90 00 55 [10:02:33]RAPDU: 90 00 [10:02:33]wFMCommunicate OK [10:02:33]SAM_PROTO_ClearQueue done [10:02:33]KKMCreateOFDPacket [10:02:33]OFDProtocolAddRootSTLVToBuf [10:02:33]FM_MakeSignedData [10:02:33]FM_MakeSignedData [10:02:33]SAM_PROTO_SignData [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 0D 01 02 [10:02:33]Write to MH i2c: E2 08 00 CF 13 80 0D 01 02 00 00 00 00 5B [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 03 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 03 00 CF 13 00 90 00 56 [10:02:33]RAPDU: 90 00 [10:02:33]wFMCommunicate OK [10:02:33]wFMCommunicate request_size=255 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 3C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 E0 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C5 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7A 02 00 35 04 06 00 [10:02:33]Write to MH i2c: E2 02 01 D0 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 3C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 E0 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C5 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7A 02 00 35 04 06 00 00 00 EE [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 03 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 03 00 D0 13 00 90 00 57 [10:02:33]RAPDU: 90 00 [10:02:33]wFMCommunicate OK [10:02:33]wFMCommunicate request_size=11 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 0D 02 02 06 94 7A 09 BD 2B 99 [10:02:33]Write to MH i2c: E2 0E 00 D1 13 80 0D 02 02 06 00 94 7A 09 BD 2B 99 00 00 02 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 03 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 03 00 D1 13 00 90 00 58 [10:02:33]RAPDU: 90 00 [10:02:33]wFMCommunicate OK [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 0D 03 02 [10:02:33]Write to MH i2c: E2 08 00 D2 13 80 0D 03 02 00 00 00 00 60 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 0B 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 0B 00 D2 13 00 94 83 7F 44 B2 24 7E F5 90 00 84 [10:02:33]RAPDU: 94 83 7F 44 B2 24 7E F5 90 00 [10:02:33]wFMCommunicate OK [10:02:33]SAM_PROTO_SignData done [10:02:33]FM_MakeSignedData done [10:02:33]CreateOFDProtocolMessage [10:02:33]wFMCommunicate request_size=4 [10:02:33]MH_SAM_APDU [10:02:33]CAPDU: 80 11 00 00 [10:02:33]Write to MH i2c: E2 08 00 D3 13 80 11 00 00 00 00 00 00 60 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:33]Read from MH i2c: E2 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 17 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: E2 17 00 D3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C0 [10:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:02:33]wFMCommunicate OK [10:02:33]CreateOFDProtocolMessage done [10:02:33]OFDSenderStorePacket 162463 [10:02:33]StoreOFDPacket docnum=162463 [10:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8E 6E 08 01 78 B1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 3C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 E0 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C5 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7A 02 00 35 04 06 00 94 7A 09 BD 2B 99 94 83 7F 44 B2 24 7E F5 [10:02:33]CheckFolder [10:02:33]dirname=/storage/ofd_packets [10:02:33]CheckFolder done [10:02:33]ProducePacketName [10:02:33]name=ofd_packets/00162463 [10:02:33]NVStorageSaveData ofd_packets/00162463 [10:02:33]File name is /storage/ofd_packets/00162463 [10:02:33]Write 302 bytes [10:02:33]NVStorageSaveData done [10:02:33]OFDSenderStorePacket done [10:02:33]KKMCreateOFDPacket done [10:02:33]NVStorageSaveData kkm_last_timestamp [10:02:33]File name is /storage/kkm_last_timestamp [10:02:33]Write 4 bytes [10:02:33]NVStorageSaveData done [10:02:33]ExternCall_PrintAddStr [10:02:33]wPrintStart [10:02:33]Write to MH i2c: 01 00 00 D4 13 E7 [10:02:33]Write i2c OK [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: 01 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: 01 07 00 [10:02:33]MH_I2C_Read... [10:02:33]Read from MH i2c: 01 07 00 D4 13 00 00 00 00 00 FF 0F FC [10:02:33]RasterBufferAndPrint [10:02:33]line Счет N : (1)1318999 [10:02:33]line ИНН: 02508201610067 [10:02:33]line Контрольно-Кассовый Чек [10:02:33]line ПРОДАЖА [10:02:33]line ТРК (МРК, ГНК) : 42 [10:02:33]line Товар: 2710124130 [10:02:33]line Super-92-К-5 [10:02:33]line 8.910 * 67.30 [10:02:33]line = 599.64 [10:02:33]line НДС 12% НСП 1% [10:02:33]line > о реализуемом товаре [10:02:33]line ИТОГО: 599.64 [10:02:33]line НСП 1% : 5.31 [10:02:33]line НДС 12% : 63.68 [10:02:33]line Наличными: 0.00 [10:02:33]line Безнал.: 599.64 [10:02:33]line Место: АЗС № 140 "Партнер Нефть" [10:02:33]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:02:33]line СНО: Общий режим [10:02:33]line Чек 131 13.07.2024 10:02 [10:02:33]line Смена: 462 ФФД: 1.0 [10:02:33]line ЗНМ: 0300000129 [10:02:33]line РНМ: 0000000000090858 [10:02:33]line Версия ККМ: 001 [10:02:33]line Платежная система: O! деньги [10:02:33]line ФМ: 0000000000874899 [10:02:33]line ФД: 162463 [10:02:33]line ФПД: 163251870313369 [10:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100245&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162463&fm=163251870313369&tin=02508201610067®Number=0000000000090858&sum=59964 [10:02:34]written 0, free lines is 4095 [10:02:34]OFD Sender: Processing packet 162463 [packets to send 105, broken 104] [10:02:34]ProducePacketName [10:02:34]name=ofd_packets/00162463 [10:02:34]OFD Sender: To server: pG, [10:02:34]CommunicateWithHost lk.salyk.kg:30040 [10:02:34]ConnectInit lk.salyk.kg [10:02:34]Connected sock=11 [10:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8E 6E 08 01 78 B1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 22 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 3C EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 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 E0 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 C5 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7A 02 00 35 04 06 00 94 7A 09 BD 2B 99 94 83 7F 44 B2 24 7E F5 [10:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 74 EE 47 00 E0 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 9F 7A 02 00 F4 03 04 00 DA FC 91 66 B6 04 01 00 00 1A E7 3D 54 A7 42 F8 81 [10:02:34]CommunicateWithHost err = 0 [10:02:34]CheckOFDResponse [10:02:34]1017 (14) - 77093643461234 [10:02:34]1041 (16) - 0000000000874899 [10:02:34]1040 (4) - 162463 [10:02:34]1012 (4) - 13.07.2024 04:04 [10:02:34]1206 (1) - 0 [10:02:34]OFD Sender: Remove packet 162463 [10:02:34]ProducePacketName [10:02:34]name=ofd_packets/00162463 [10:02:34]NVStorageDeleteData [10:02:34]Write to MH i2c: 01 00 00 FE 13 11 [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: 01 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: 01 07 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: 01 07 00 FE 13 00 00 00 00 00 EA 0C 0E [10:02:34]RasterBufferAndPrint [10:02:34]line [10:02:34]line [10:02:34]line [10:02:34]line [10:02:34]line [10:02:34]written 0, free lines is 3311 [10:02:34]MH_Cut [10:02:34]Write to MH i2c: D1 01 00 05 14 01 EB [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: D1 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: D1 01 00 [10:02:34]MH_I2C_Read... [10:02:34]Read from MH i2c: D1 01 00 05 14 00 EA [10:02:34]Write to MH i2c: 01 00 00 06 14 1A [10:02:34]Write i2c OK [10:02:34]MH_I2C_Read... [10:02:34]OFD Sender: No OFD packet to send [10:02:35]*** Cut start [10:02:35]*** Purtial cut [10:02:35]*** Stage 1: CUTSNS_PIN = 1 [10:02:35]Read from MH i2c: 01 [10:02:35]MH_I2C_Read... [10:02:35]*** Stop cut motor [10:02:35]*** Cut end [10:02:35]Read from MH i2c: 01 07 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 FF 0F 2F [10:02:35]process_action close_receipt done [10:02:35]requested_data is exist [10:02:35]produce_requested_data [10:02:35]requested_item fm.sn is exist - process it [10:02:35]wFMCommunicate request_size=4 [10:02:35]MH_SAM_APDU [10:02:35]CAPDU: 80 11 00 00 [10:02:35]Write to MH i2c: E2 08 00 07 14 80 11 00 00 00 00 00 00 95 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 [10:02:35]MH_I2C_Read... [10:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:35]Read from MH i2c: E2 17 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 17 00 07 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F5 [10:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:02:35]wFMCommunicate OK [10:02:35]requested_item fd.num is exist - process it [10:02:35]SAM_PROTO_GetFieldsCounters [10:02:35]wFMCommunicate request_size=4 [10:02:35]MH_SAM_APDU [10:02:35]CAPDU: 80 13 00 00 [10:02:35]Write to MH i2c: E2 08 00 08 14 80 13 00 00 00 00 00 00 98 [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:35]Read from MH i2c: E2 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 62 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 62 00 08 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [10:02:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 9F 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:35]wFMCommunicate OK [10:02:35]SAM_PROTO_GetFieldsCounters done [10:02:35]requested_item shift.num is exist - process it [10:02:35]requested_item shift.opened is exist - process it [10:02:35]req_shift_opened [10:02:35]FM_GetShiftState [10:02:35]SAM_PROTO_GetShiftState [10:02:35]wFMCommunicate request_size=4 [10:02:35]MH_SAM_APDU [10:02:35]CAPDU: 80 13 01 00 [10:02:35]Write to MH i2c: E2 08 00 09 14 80 13 01 00 00 00 00 00 9A [10:02:35]Write i2c OK [10:02:35]MH_I2C_Read... [10:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:35]Read from MH i2c: E2 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 0E 00 [10:02:35]MH_I2C_Read... [10:02:35]Read from MH i2c: E2 0E 00 09 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 94 [10:02:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:02:35]wFMCommunicate OK [10:02:35]SAM_PROTO_GetShiftState done [10:02:35]FM_GetShiftState done [10:02:35]req_shift_opened done [10:02:35]requested_item shift.open_date is exist - process it [10:02:35]req_shift_open_date [10:02:35]req_shift_open_date done [10:02:35]produce_requested_data done [10:02:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162463,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:02:35]process_action_free close_receipt [10:02:35]json_value_free [10:02:35]json_value_free done [10:02:35]process_json_proto returns [10:02:35]Send response to host [10:02:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162463,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:02:35]free response buf [10:02:35]execute_script done [10:02:35]execute_script returns [10:02:35]free content buf [10:02:35]Sock 8.Close socket [10:02:35]Sock 8.Thread stoped [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:03]accept exits with 9 [10:03:03]New connection [10:03:03]New thread 3066862948 created [10:03:03]Thread 3067006308 joined [10:03:03]Waiting for new connection... [10:03:03] Sock 9.Parse request [10:03:03]Sock 9.Check first char [10:03:03]Sock 9.First char is OK [10:03:03]request: POST /json_proto HTTP/1.0 [10:03:03]Method: POST [10:03:03]URL: /json_proto [10:03:03]Method is POST - this is cgi request [10:03:03]url: /json_proto [10:03:03]query_string will be loaded in cgi processing [10:03:03]execute_cgi json_proto POST (null) [10:03:03]execute_cgi path=json_proto method=POST [10:03:03]POST find Content-Length [10:03:03]Host: 172.17.39.67:8080 [10:03:03]Content-Length: 683 [10:03:03]Content-Type: application/json [10:03:03] [10:03:03]POST finish read [10:03:03]Found Content-Length = 683 [10:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03]execute_script... [10:03: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)1319000", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03]POST & json_proto [10:03:03]process_json_proto [10:03:03]json parsed OK: [10:03:03]protocol is kg_v1.0 [10:03:03]action value=close_receipt [10:03:03]process_action close_receipt [10:03:03]cmd_close_receipt [10:03:03]MH_GetDate [10:03:03]Write to MH i2c: F0 00 00 0A 14 0D [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: F0 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: F0 09 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: F0 09 00 0A 14 00 E4 50 92 66 FA E9 8E 66 19 [10:03:03]GetLastDocTimeStamp 1720864965 [10:03:03]current date 1720864996 [10:03:03]FM_GetShiftState [10:03:03]SAM_PROTO_GetShiftState [10:03:03]wFMCommunicate request_size=4 [10:03:03]MH_SAM_APDU [10:03:03]CAPDU: 80 13 01 00 [10:03:03]Write to MH i2c: E2 08 00 0B 14 80 13 01 00 00 00 00 00 9C [10:03:03]Write i2c OK [10:03:03]MH_I2C_Read... [10:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:03]Read from MH i2c: E2 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 0E 00 [10:03:03]MH_I2C_Read... [10:03:03]Read from MH i2c: E2 0E 00 0B 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 96 [10:03:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:03:03]wFMCommunicate OK [10:03:03]SAM_PROTO_GetShiftState done [10:03:03]FM_GetShiftState done [10:03:03]opened in 1720828979 [10:03:03]opened+sec_in_day 1720915379 [10:03:03]quantity*price = 100046 [10:03:03]sum+1 = 100048 [10:03:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 132 13.07.2024 10:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162464 ФПД: 34927377951604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100316&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162464&fm=34927377951604&tin=02508201610067®Number=0000000000090858&sum=100000 [10:03:04]StoreToDocumentArchive [10:03:04]shift 462 fd 162464 [10:03:04]save to /storage/0462/doc_00162464 [10:03:04]save last doc name /storage/0462/doc_00162464 to /storage/kkm_last_doc_name [10:03:04]save OK [10:03:04]Clear old archive folders... [10:03:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:04]tlvbuf is 01A1CC90 [10:03:04]SAM_PROTO_ClearQueue [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 09 00 00 [10:03:04]Write to MH i2c: E2 08 00 18 14 80 09 00 00 00 00 00 00 9E [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 03 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 03 00 18 14 00 90 00 A0 [10:03:04]RAPDU: 90 00 [10:03:04]wFMCommunicate OK [10:03:04]SAM_PROTO_ClearQueue done [10:03:04]KKMCreateOFDPacket [10:03:04]OFDProtocolAddRootSTLVToBuf [10:03:04]FM_MakeSignedData [10:03:04]FM_MakeSignedData [10:03:04]SAM_PROTO_SignData [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 0D 01 02 [10:03:04]Write to MH i2c: E2 08 00 19 14 80 0D 01 02 00 00 00 00 A6 [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 03 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 03 00 19 14 00 90 00 A1 [10:03:04]RAPDU: 90 00 [10:03:04]wFMCommunicate OK [10:03:04]wFMCommunicate request_size=255 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E4 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7A 02 00 35 04 06 00 1F [10:03:04]Write to MH i2c: E2 02 01 1A 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E4 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7A 02 00 35 04 06 00 1F 00 00 6C [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 03 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 03 00 1A 14 00 90 00 A2 [10:03:04]RAPDU: 90 00 [10:03:04]wFMCommunicate OK [10:03:04]wFMCommunicate request_size=10 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 0D 02 02 05 C4 29 F4 AB 74 [10:03:04]Write to MH i2c: E2 0D 00 1B 14 80 0D 02 02 05 00 C4 29 F4 AB 74 00 00 B3 [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 03 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [10:03:04]RAPDU: 90 00 [10:03:04]wFMCommunicate OK [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 0D 03 02 [10:03:04]Write to MH i2c: E2 08 00 1C 14 80 0D 03 02 00 00 00 00 AB [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 0B 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 0B 00 1C 14 00 E7 0C 91 B9 DA 7B 8A D8 90 00 A0 [10:03:04]RAPDU: E7 0C 91 B9 DA 7B 8A D8 90 00 [10:03:04]wFMCommunicate OK [10:03:04]SAM_PROTO_SignData done [10:03:04]FM_MakeSignedData done [10:03:04]CreateOFDProtocolMessage [10:03:04]wFMCommunicate request_size=4 [10:03:04]MH_SAM_APDU [10:03:04]CAPDU: 80 11 00 00 [10:03:04]Write to MH i2c: E2 08 00 1D 14 80 11 00 00 00 00 00 00 AB [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:04]Read from MH i2c: E2 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 17 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: E2 17 00 1D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [10:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:03:04]wFMCommunicate OK [10:03:04]CreateOFDProtocolMessage done [10:03:04]OFDSenderStorePacket 162464 [10:03:04]StoreOFDPacket docnum=162464 [10:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DB E4 07 01 C3 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E4 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7A 02 00 35 04 06 00 1F C4 29 F4 AB 74 E7 0C 91 B9 DA 7B 8A D8 [10:03:04]CheckFolder [10:03:04]dirname=/storage/ofd_packets [10:03:04]CheckFolder done [10:03:04]ProducePacketName [10:03:04]name=ofd_packets/00162464 [10:03:04]NVStorageSaveData ofd_packets/00162464 [10:03:04]File name is /storage/ofd_packets/00162464 [10:03:04]Write 301 bytes [10:03:04]NVStorageSaveData done [10:03:04]OFDSenderStorePacket done [10:03:04]KKMCreateOFDPacket done [10:03:04]NVStorageSaveData kkm_last_timestamp [10:03:04]File name is /storage/kkm_last_timestamp [10:03:04]Write 4 bytes [10:03:04]NVStorageSaveData done [10:03:04]ExternCall_PrintAddStr [10:03:04]wPrintStart [10:03:04]Write to MH i2c: 01 00 00 1E 14 32 [10:03:04]Write i2c OK [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: 01 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: 01 07 00 [10:03:04]MH_I2C_Read... [10:03:04]Read from MH i2c: 01 07 00 1E 14 00 00 00 00 00 FF 0F 47 [10:03:04]RasterBufferAndPrint [10:03:04]line Счет N : (1)1319000 [10:03:04]line ИНН: 02508201610067 [10:03:04]line Контрольно-Кассовый Чек [10:03:04]line ПРОДАЖА [10:03:04]line ТРК (МРК, ГНК) : 63 [10:03:04]line Товар: 2710124130 [10:03:04]line Аи-92-К-5 [10:03:04]line 15.090 * 66.30 [10:03:04]line = 1000.47 [10:03:04]line НДС 12% НСП 1% [10:03:04]line > о реализуемом товаре [10:03:04]line ОКРУГЛЕНИЕ: -0.47 [10:03:04]line ИТОГО: 1000.00 [10:03:04]line Внесено: 1000.00 [10:03:04]line СДАЧА: 0.00 [10:03:04]line НСП 1% : 8.85 [10:03:04]line НДС 12% : 106.24 [10:03:04]line Наличными: 1000.00 [10:03:04]line Безнал.: 0.00 [10:03:04]line Место: АЗС № 140 "Партнер Нефть" [10:03:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:03:04]line СНО: Общий режим [10:03:04]line Чек 132 13.07.2024 10:03 [10:03:04]line Смена: 462 ФФД: 1.0 [10:03:04]line ЗНМ: 0300000129 [10:03:04]line РНМ: 0000000000090858 [10:03:04]line Версия ККМ: 001 [10:03:04]line ФМ: 0000000000874899 [10:03:04]line ФД: 162464 [10:03:04]line ФПД: 34927377951604 [10:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100316&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162464&fm=34927377951604&tin=02508201610067®Number=0000000000090858&sum=100000 [10:03:05]OFD Sender: Processing packet 162464 [packets to send 105, broken 104] [10:03:05]ProducePacketName [10:03:05]name=ofd_packets/00162464 [10:03:05]OFD Sender: To server: pG, [10:03:05]CommunicateWithHost lk.salyk.kg:30040 [10:03:05]ConnectInit lk.salyk.kg [10:03:05]written 0, free lines is 4095 [10:03:05]Connected sock=10 [10:03:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DB E4 07 01 C3 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E4 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7A 02 00 35 04 06 00 1F C4 29 F4 AB 74 E7 0C 91 B9 DA 7B 8A D8 [10:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E0 2F 47 00 37 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A0 7A 02 00 F4 03 04 00 F9 FC 91 66 B6 04 01 00 00 9F A4 1E A5 EE 8C 39 F0 [10:03:05]CommunicateWithHost err = 0 [10:03:05]CheckOFDResponse [10:03:05]1017 (14) - 77093643461234 [10:03:05]1041 (16) - 0000000000874899 [10:03:05]1040 (4) - 162464 [10:03:05]1012 (4) - 13.07.2024 04:05 [10:03:05]1206 (1) - 0 [10:03:05]OFD Sender: Remove packet 162464 [10:03:05]ProducePacketName [10:03:05]name=ofd_packets/00162464 [10:03:05]NVStorageDeleteData [10:03:05]Write to MH i2c: 01 00 00 49 14 5D [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: 01 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: 01 07 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: 01 07 00 49 14 00 00 00 00 00 D9 0C 49 [10:03:05]RasterBufferAndPrint [10:03:05]line [10:03:05]line [10:03:05]line [10:03:05]line [10:03:05]line [10:03:05]written 0, free lines is 3295 [10:03:05]MH_Cut [10:03:05]Write to MH i2c: D1 01 00 50 14 01 36 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: D1 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: D1 01 00 [10:03:05]MH_I2C_Read... [10:03:05]Read from MH i2c: D1 01 00 50 14 00 35 [10:03:05]Write to MH i2c: 01 00 00 51 14 65 [10:03:05]Write i2c OK [10:03:05]MH_I2C_Read... [10:03:05]OFD Sender: No OFD packet to send [10:03:06]*** Cut start [10:03:06]*** Purtial cut [10:03:06]*** CUTSNS_PIN = 0 [10:03:06]*** Stage 1: CUTSNS_PIN = 1 [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 51 14 00 00 00 00 00 FF 0F 7A [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 52 14 80 11 00 00 00 00 00 00 E0 [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 52 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 40 [10:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 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 53 14 80 13 00 00 00 00 00 00 E3 [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 53 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 54 14 80 13 01 00 00 00 00 00 E5 [10:03:08]Write i2c OK [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 [10:03:08]MH_I2C_Read... [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 54 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DF [10:03:08]RAPDU: 09 00 01 33 C4 91 66 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":"0000000000874899","fd.num":162464,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [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":"0000000000874899","fd.num":162464,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [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 9.Close socket [10:03:08]Sock 9.Thread stoped [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:20]accept exits with 8 [10:03:20]New connection [10:03:20]New thread 3067006308 created [10:03:20]Thread 3066862948 joined [10:03:20]Waiting for new connection... [10:03:20] Sock 8.Parse request [10:03:20]Sock 8.Check first char [10:03:20]Sock 8.First char is OK [10:03:20]request: POST /json_proto HTTP/1.0 [10:03:20]Method: POST [10:03:20]URL: /json_proto [10:03:20]Method is POST - this is cgi request [10:03:20]url: /json_proto [10:03:20]query_string will be loaded in cgi processing [10:03:20]execute_cgi json_proto POST (null) [10:03:20]execute_cgi path=json_proto method=POST [10:03:20]POST find Content-Length [10:03:20]Host: 172.17.39.67:8080 [10:03:20]Content-Length: 810 [10:03:20]Content-Type: application/json [10:03:20] [10:03:20]POST finish read [10:03:20]Found Content-Length = 810 [10:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1318998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 100.000, "sum" : 7260.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" : 7260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:20]execute_script... [10:03: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)1318998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 100.000, "sum" : 7260.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" : 7260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:20]POST & json_proto [10:03:20]process_json_proto [10:03:20]json parsed OK: [10:03:20]protocol is kg_v1.0 [10:03:20]action value=close_receipt [10:03:20]process_action close_receipt [10:03:20]cmd_close_receipt [10:03:20]MH_GetDate [10:03:20]Write to MH i2c: F0 00 00 55 14 58 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: F0 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: F0 09 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: F0 09 00 55 14 00 F6 50 92 66 FA E9 8E 66 76 [10:03:20]GetLastDocTimeStamp 1720864996 [10:03:20]current date 1720865014 [10:03:20]FM_GetShiftState [10:03:20]SAM_PROTO_GetShiftState [10:03:20]wFMCommunicate request_size=4 [10:03:20]MH_SAM_APDU [10:03:20]CAPDU: 80 13 01 00 [10:03:20]Write to MH i2c: E2 08 00 56 14 80 13 01 00 00 00 00 00 E7 [10:03:20]Write i2c OK [10:03:20]MH_I2C_Read... [10:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:20]Read from MH i2c: E2 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 0E 00 [10:03:20]MH_I2C_Read... [10:03:20]Read from MH i2c: E2 0E 00 56 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E1 [10:03:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:03:20]wFMCommunicate OK [10:03:20]SAM_PROTO_GetShiftState done [10:03:20]FM_GetShiftState done [10:03:20]opened in 1720828979 [10:03:20]opened+sec_in_day 1720915379 [10:03:20]quantity*price = 726000 [10:03:20]sum+1 = 726001 [10:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7260.00 НСП 1% : 64.25 НДС 12% : 770.97 Наличными: 0.00 Безнал.: 7260.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 133 13.07.2024 10:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162465 ФПД: 15409541058801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100334&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162465&fm=15409541058801&tin=02508201610067®Number=0000000000090858&sum=726000 [10:03:21]StoreToDocumentArchive [10:03:21]shift 462 fd 162465 [10:03:21]save to /storage/0462/doc_00162465 [10:03:21]save last doc name /storage/0462/doc_00162465 to /storage/kkm_last_doc_name [10:03:21]save OK [10:03:21]Clear old archive folders... [10:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:03:21]tlvbuf is 0179A0F0 [10:03:21]SAM_PROTO_ClearQueue [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 09 00 00 [10:03:21]Write to MH i2c: E2 08 00 63 14 80 09 00 00 00 00 00 00 E9 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 03 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 03 00 63 14 00 90 00 EB [10:03:21]RAPDU: 90 00 [10:03:21]wFMCommunicate OK [10:03:21]SAM_PROTO_ClearQueue done [10:03:21]KKMCreateOFDPacket [10:03:21]OFDProtocolAddRootSTLVToBuf [10:03:21]FM_MakeSignedData [10:03:21]FM_MakeSignedData [10:03:21]SAM_PROTO_SignData [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 0D 01 02 [10:03:21]Write to MH i2c: E2 08 00 64 14 80 0D 01 02 00 00 00 00 F1 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 03 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 03 00 64 14 00 90 00 EC [10:03:21]RAPDU: 90 00 [10:03:21]wFMCommunicate OK [10:03:21]wFMCommunicate request_size=255 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F0 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 2D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 13 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F6 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7A 02 00 35 04 06 00 [10:03:21]Write to MH i2c: E2 02 01 65 14 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F0 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 2D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 13 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F6 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7A 02 00 35 04 06 00 00 00 49 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 03 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [10:03:21]RAPDU: 90 00 [10:03:21]wFMCommunicate OK [10:03:21]wFMCommunicate request_size=11 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 0D 02 02 06 0E 03 D0 38 90 F1 [10:03:21]Write to MH i2c: E2 0E 00 66 14 80 0D 02 02 06 00 0E 03 D0 38 90 F1 00 00 9A [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:21]Read from MH i2c: E2 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 03 00 [10:03:21]MH_I2C_Read... [10:03:21]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [10:03:21]RAPDU: 90 00 [10:03:21]wFMCommunicate OK [10:03:21]wFMCommunicate request_size=4 [10:03:21]MH_SAM_APDU [10:03:21]CAPDU: 80 0D 03 02 [10:03:21]Write to MH i2c: E2 08 00 67 14 80 0D 03 02 00 00 00 00 F6 [10:03:21]Write i2c OK [10:03:21]MH_I2C_Read... [10:03:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 0B 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 0B 00 67 14 00 2F B6 32 B9 3C 8A C1 2F 90 00 7D [10:03:22]RAPDU: 2F B6 32 B9 3C 8A C1 2F 90 00 [10:03:22]wFMCommunicate OK [10:03:22]SAM_PROTO_SignData done [10:03:22]FM_MakeSignedData done [10:03:22]CreateOFDProtocolMessage [10:03:22]wFMCommunicate request_size=4 [10:03:22]MH_SAM_APDU [10:03:22]CAPDU: 80 11 00 00 [10:03:22]Write to MH i2c: E2 08 00 68 14 80 11 00 00 00 00 00 00 F6 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:22]Read from MH i2c: E2 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 17 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: E2 17 00 68 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 56 [10:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:03:22]wFMCommunicate OK [10:03:22]CreateOFDProtocolMessage done [10:03:22]OFDSenderStorePacket 162465 [10:03:22]StoreOFDPacket docnum=162465 [10:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F0 EA 08 01 BA 67 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F0 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 2D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 13 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F6 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7A 02 00 35 04 06 00 0E 03 D0 38 90 F1 2F B6 32 B9 3C 8A C1 2F [10:03:22]CheckFolder [10:03:22]dirname=/storage/ofd_packets [10:03:22]CheckFolder done [10:03:22]ProducePacketName [10:03:22]name=ofd_packets/00162465 [10:03:22]NVStorageSaveData ofd_packets/00162465 [10:03:22]File name is /storage/ofd_packets/00162465 [10:03:22]Write 302 bytes [10:03:22]NVStorageSaveData done [10:03:22]OFDSenderStorePacket done [10:03:22]KKMCreateOFDPacket done [10:03:22]NVStorageSaveData kkm_last_timestamp [10:03:22]File name is /storage/kkm_last_timestamp [10:03:22]Write 4 bytes [10:03:22]NVStorageSaveData done [10:03:22]ExternCall_PrintAddStr [10:03:22]wPrintStart [10:03:22]Write to MH i2c: 01 00 00 69 14 7D [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 07 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 07 00 69 14 00 00 00 00 00 FF 0F 92 [10:03:22]RasterBufferAndPrint [10:03:22]line Счет N : (1)1318998 [10:03:22]line ИНН: 02508201610067 [10:03:22]line Контрольно-Кассовый Чек [10:03:22]line ПРОДАЖА [10:03:22]line ТРК (МРК, ГНК) : 51 [10:03:22]line Товар: 2710194210 [10:03:22]line ДТ(л)-К-5 [10:03:22]line 100.000 * 72.60 [10:03:22]line = 7260.00 [10:03:22]line НДС 12% НСП 1% [10:03:22]line > о реализуемом товаре [10:03:22]line ИТОГО: 7260.00 [10:03:22]line НСП 1% : 64.25 [10:03:22]line НДС 12% : 770.97 [10:03:22]line Наличными: 0.00 [10:03:22]line Безнал.: 7260.00 [10:03:22]line Место: АЗС № 140 "Партнер Нефть" [10:03:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:03:22]line СНО: Общий режим [10:03:22]line Чек 133 13.07.2024 10:03 [10:03:22]line Смена: 462 ФФД: 1.0 [10:03:22]line ЗНМ: 0300000129 [10:03:22]line РНМ: 0000000000090858 [10:03:22]line Версия ККМ: 001 [10:03:22]line Платежная система: O! деньги [10:03:22]line ФМ: 0000000000874899 [10:03:22]line ФД: 162465 [10:03:22]line ФПД: 15409541058801 [10:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100334&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162465&fm=15409541058801&tin=02508201610067®Number=0000000000090858&sum=726000 [10:03:22]OFD Sender: Processing packet 162465 [packets to send 105, broken 104] [10:03:22]ProducePacketName [10:03:22]name=ofd_packets/00162465 [10:03:22]OFD Sender: To server: pG, [10:03:22]CommunicateWithHost lk.salyk.kg:30040 [10:03:22]ConnectInit lk.salyk.kg [10:03:22]written 0, free lines is 4095 [10:03:22]Connected sock=10 [10:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F0 EA 08 01 BA 67 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F0 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 2D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 13 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 F6 50 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7A 02 00 35 04 06 00 0E 03 D0 38 90 F1 2F B6 32 B9 3C 8A C1 2F [10:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2A 08 47 00 03 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A1 7A 02 00 F4 03 04 00 0A FD 91 66 B6 04 01 00 00 9B F4 F4 ED E3 44 89 82 [10:03:22]CommunicateWithHost err = 0 [10:03:22]CheckOFDResponse [10:03:22]1017 (14) - 77093643461234 [10:03:22]1041 (16) - 0000000000874899 [10:03:22]1040 (4) - 162465 [10:03:22]1012 (4) - 13.07.2024 04:05 [10:03:22]1206 (1) - 0 [10:03:22]OFD Sender: Remove packet 162465 [10:03:22]ProducePacketName [10:03:22]name=ofd_packets/00162465 [10:03:22]NVStorageDeleteData [10:03:22]Write to MH i2c: 01 00 00 93 14 A7 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 07 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: 01 07 00 93 14 00 00 00 00 00 EC 0C A6 [10:03:22]RasterBufferAndPrint [10:03:22]line [10:03:22]line [10:03:22]line [10:03:22]line [10:03:22]line [10:03:22]written 0, free lines is 3314 [10:03:22]MH_Cut [10:03:22]Write to MH i2c: D1 01 00 9A 14 01 80 [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: D1 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: D1 01 00 [10:03:22]MH_I2C_Read... [10:03:22]Read from MH i2c: D1 01 00 9A 14 00 7F [10:03:22]Write to MH i2c: 01 00 00 9B 14 AF [10:03:22]Write i2c OK [10:03:22]MH_I2C_Read... [10:03:23]OFD Sender: No OFD packet to send [10:03:23]*** Cut start [10:03:23]*** Purtial cut [10:03:23]*** Stage 1: CUTSNS_PIN = 1 [10:03:23]Read from MH i2c: 01 [10:03:23]MH_I2C_Read... [10:03:23]*** Stop cut motor [10:03:23]*** Cut end [10:03:23]Read from MH i2c: 01 07 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: 01 07 00 9B 14 00 00 00 00 00 FF 0F C4 [10:03:23]process_action close_receipt done [10:03:23]requested_data is exist [10:03:23]produce_requested_data [10:03:23]requested_item fm.sn is exist - process it [10:03:23]wFMCommunicate request_size=4 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 11 00 00 [10:03:23]Write to MH i2c: E2 08 00 9C 14 80 11 00 00 00 00 00 00 2A [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:23]Read from MH i2c: E2 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 17 00 [10:03:23]MH_I2C_Read... [10:03:23]Read from MH i2c: E2 17 00 9C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8A [10:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:03:23]wFMCommunicate OK [10:03:23]requested_item fd.num is exist - process it [10:03:23]SAM_PROTO_GetFieldsCounters [10:03:23]wFMCommunicate request_size=4 [10:03:23]MH_SAM_APDU [10:03:23]CAPDU: 80 13 00 00 [10:03:23]Write to MH i2c: E2 08 00 9D 14 80 13 00 00 00 00 00 00 2D [10:03:23]Write i2c OK [10:03:23]MH_I2C_Read... [10:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:24]Read from MH i2c: E2 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: E2 62 00 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: E2 62 00 9D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [10:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:24]wFMCommunicate OK [10:03:24]SAM_PROTO_GetFieldsCounters done [10:03:24]requested_item shift.num is exist - process it [10:03:24]requested_item shift.opened is exist - process it [10:03:24]req_shift_opened [10:03:24]FM_GetShiftState [10:03:24]SAM_PROTO_GetShiftState [10:03:24]wFMCommunicate request_size=4 [10:03:24]MH_SAM_APDU [10:03:24]CAPDU: 80 13 01 00 [10:03:24]Write to MH i2c: E2 08 00 9E 14 80 13 01 00 00 00 00 00 2F [10:03:24]Write i2c OK [10:03:24]MH_I2C_Read... [10:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:24]Read from MH i2c: E2 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: E2 0E 00 [10:03:24]MH_I2C_Read... [10:03:24]Read from MH i2c: E2 0E 00 9E 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 29 [10:03:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:03:24]wFMCommunicate OK [10:03:24]SAM_PROTO_GetShiftState done [10:03:24]FM_GetShiftState done [10:03:24]req_shift_opened done [10:03:24]requested_item shift.open_date is exist - process it [10:03:24]req_shift_open_date [10:03:24]req_shift_open_date done [10:03:24]produce_requested_data done [10:03:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162465,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:03:24]process_action_free close_receipt [10:03:24]json_value_free [10:03:24]json_value_free done [10:03:24]process_json_proto returns [10:03:24]Send response to host [10:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162465,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:03:24]free response buf [10:03:24]execute_script done [10:03:24]execute_script returns [10:03:24]free content buf [10:03:24]Sock 8.Close socket [10:03:24]Sock 8.Thread stoped [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [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:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:09]accept exits with 9 [10:09:09]New connection [10:09:09]New thread 3066862948 created [10:09:09]Thread 3067006308 joined [10:09:09]Waiting for new connection... [10:09:09] Sock 9.Parse request [10:09:09]Sock 9.Check first char [10:09:09]Sock 9.First char is OK [10:09:09]request: POST /json_proto HTTP/1.0 [10:09:09]Method: POST [10:09:09]URL: /json_proto [10:09:09]Method is POST - this is cgi request [10:09:09]url: /json_proto [10:09:09]query_string will be loaded in cgi processing [10:09:09]execute_cgi json_proto POST (null) [10:09:09]execute_cgi path=json_proto method=POST [10:09:09]POST find Content-Length [10:09:09]Host: 172.17.39.67:8080 [10:09:09]Content-Length: 683 [10:09:09]Content-Type: application/json [10:09:09] [10:09:09]POST finish read [10:09:09]Found Content-Length = 683 [10:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:09]execute_script... [10:09: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)1319001", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:09]POST & json_proto [10:09:09]process_json_proto [10:09:09]json parsed OK: [10:09:09]protocol is kg_v1.0 [10:09:09]action value=close_receipt [10:09:09]process_action close_receipt [10:09:09]cmd_close_receipt [10:09:09]MH_GetDate [10:09:09]Write to MH i2c: F0 00 00 9F 14 A2 [10:09:09]Write i2c OK [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 09 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: F0 09 00 9F 14 00 53 52 92 66 FA E9 8E 66 1F [10:09:09]GetLastDocTimeStamp 1720865014 [10:09:09]current date 1720865363 [10:09:09]FM_GetShiftState [10:09:09]SAM_PROTO_GetShiftState [10:09:09]wFMCommunicate request_size=4 [10:09:09]MH_SAM_APDU [10:09:09]CAPDU: 80 13 01 00 [10:09:09]Write to MH i2c: E2 08 00 A0 14 80 13 01 00 00 00 00 00 31 [10:09:09]Write i2c OK [10:09:09]MH_I2C_Read... [10:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:09]Read from MH i2c: E2 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 0E 00 [10:09:09]MH_I2C_Read... [10:09:09]Read from MH i2c: E2 0E 00 A0 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2B [10:09:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:09:09]wFMCommunicate OK [10:09:09]SAM_PROTO_GetShiftState done [10:09:09]FM_GetShiftState done [10:09:09]opened in 1720828979 [10:09:09]opened+sec_in_day 1720915379 [10:09:09]quantity*price = 100046 [10:09:09]sum+1 = 100048 [10:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 134 13.07.2024 10:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162466 ФПД: 185691779985569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100923&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162466&fm=185691779985569&tin=02508201610067®Number=0000000000090858&sum=100000 [10:09:10]StoreToDocumentArchive [10:09:10]shift 462 fd 162466 [10:09:10]save to /storage/0462/doc_00162466 [10:09:10]save last doc name /storage/0462/doc_00162466 to /storage/kkm_last_doc_name [10:09:10]save OK [10:09:10]Clear old archive folders... [10:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:10]tlvbuf is 017472D0 [10:09:10]SAM_PROTO_ClearQueue [10:09:10]wFMCommunicate request_size=4 [10:09:10]MH_SAM_APDU [10:09:10]CAPDU: 80 09 00 00 [10:09:10]Write to MH i2c: E2 08 00 AD 14 80 09 00 00 00 00 00 00 33 [10:09:10]Write i2c OK [10:09:10]MH_I2C_Read... [10:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:10]Read from MH i2c: E2 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 [10:09:10]MH_I2C_Read... [10:09:10]Read from MH i2c: E2 03 00 AD 14 00 90 00 35 [10:09:10]RAPDU: 90 00 [10:09:10]wFMCommunicate OK [10:09:10]SAM_PROTO_ClearQueue done [10:09:10]KKMCreateOFDPacket [10:09:10]OFDProtocolAddRootSTLVToBuf [10:09:10]FM_MakeSignedData [10:09:10]FM_MakeSignedData [10:09:10]SAM_PROTO_SignData [10:09:10]wFMCommunicate request_size=4 [10:09:10]MH_SAM_APDU [10:09:10]CAPDU: 80 0D 01 02 [10:09:10]Write to MH i2c: E2 08 00 AE 14 80 0D 01 02 00 00 00 00 3B [10:09:10]Write i2c OK [10:09:10]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 AE 14 00 90 00 36 [10:09:11]RAPDU: 90 00 [10:09:11]wFMCommunicate OK [10:09:11]wFMCommunicate request_size=255 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 86 00 00 00 F4 03 04 00 53 52 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7A 02 00 35 04 06 00 A8 [10:09:11]Write to MH i2c: E2 02 01 AF 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 86 00 00 00 F4 03 04 00 53 52 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7A 02 00 35 04 06 00 A8 00 00 FF [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 AF 14 00 90 00 37 [10:09:11]RAPDU: 90 00 [10:09:11]wFMCommunicate OK [10:09:11]wFMCommunicate request_size=10 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 0D 02 02 05 E2 BC 95 70 A1 [10:09:11]Write to MH i2c: E2 0D 00 B0 14 80 0D 02 02 05 00 E2 BC 95 70 A1 00 00 8C [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [10:09:11]RAPDU: 90 00 [10:09:11]wFMCommunicate OK [10:09:11]wFMCommunicate request_size=4 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 0D 03 02 [10:09:11]Write to MH i2c: E2 08 00 B1 14 80 0D 03 02 00 00 00 00 40 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 0B 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 0B 00 B1 14 00 0F 84 EA 39 FD 45 48 18 90 00 99 [10:09:11]RAPDU: 0F 84 EA 39 FD 45 48 18 90 00 [10:09:11]wFMCommunicate OK [10:09:11]SAM_PROTO_SignData done [10:09:11]FM_MakeSignedData done [10:09:11]CreateOFDProtocolMessage [10:09:11]wFMCommunicate request_size=4 [10:09:11]MH_SAM_APDU [10:09:11]CAPDU: 80 11 00 00 [10:09:11]Write to MH i2c: E2 08 00 B2 14 80 11 00 00 00 00 00 00 40 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:11]Read from MH i2c: E2 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 17 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: E2 17 00 B2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A0 [10:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:09:11]wFMCommunicate OK [10:09:11]CreateOFDProtocolMessage done [10:09:11]OFDSenderStorePacket 162466 [10:09:11]StoreOFDPacket docnum=162466 [10:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 40 38 07 01 7A 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 86 00 00 00 F4 03 04 00 53 52 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7A 02 00 35 04 06 00 A8 E2 BC 95 70 A1 0F 84 EA 39 FD 45 48 18 [10:09:11]CheckFolder [10:09:11]dirname=/storage/ofd_packets [10:09:11]CheckFolder done [10:09:11]ProducePacketName [10:09:11]name=ofd_packets/00162466 [10:09:11]NVStorageSaveData ofd_packets/00162466 [10:09:11]File name is /storage/ofd_packets/00162466 [10:09:11]Write 301 bytes [10:09:11]NVStorageSaveData done [10:09:11]OFDSenderStorePacket done [10:09:11]KKMCreateOFDPacket done [10:09:11]NVStorageSaveData kkm_last_timestamp [10:09:11]File name is /storage/kkm_last_timestamp [10:09:11]Write 4 bytes [10:09:11]NVStorageSaveData done [10:09:11]ExternCall_PrintAddStr [10:09:11]wPrintStart [10:09:11]Write to MH i2c: 01 00 00 B3 14 C7 [10:09:11]Write i2c OK [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 07 00 [10:09:11]MH_I2C_Read... [10:09:11]Read from MH i2c: 01 07 00 B3 14 00 00 00 00 00 FF 0F DC [10:09:11]RasterBufferAndPrint [10:09:11]line Счет N : (1)1319001 [10:09:11]line ИНН: 02508201610067 [10:09:11]line Контрольно-Кассовый Чек [10:09:11]line ПРОДАЖА [10:09:11]line ТРК (МРК, ГНК) : 43 [10:09:11]line Товар: 2710124130 [10:09:11]line Аи-92-К-5 [10:09:11]line 15.090 * 66.30 [10:09:11]line = 1000.47 [10:09:11]line НДС 12% НСП 1% [10:09:11]line > о реализуемом товаре [10:09:11]line ОКРУГЛЕНИЕ: -0.47 [10:09:11]line ИТОГО: 1000.00 [10:09:11]line Внесено: 1000.00 [10:09:11]line СДАЧА: 0.00 [10:09:11]line НСП 1% : 8.85 [10:09:11]line НДС 12% : 106.24 [10:09:11]line Наличными: 1000.00 [10:09:11]line Безнал.: 0.00 [10:09:11]line Место: АЗС № 140 "Партнер Нефть" [10:09:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:09:11]line СНО: Общий режим [10:09:11]line Чек 134 13.07.2024 10:09 [10:09:11]line Смена: 462 ФФД: 1.0 [10:09:11]line ЗНМ: 0300000129 [10:09:11]line РНМ: 0000000000090858 [10:09:11]line Версия ККМ: 001 [10:09:11]line ФМ: 0000000000874899 [10:09:11]line ФД: 162466 [10:09:11]line ФПД: 185691779985569 [10:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T100923&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162466&fm=185691779985569&tin=02508201610067®Number=0000000000090858&sum=100000 [10:09:11]OFD Sender: Processing packet 162466 [packets to send 105, broken 104] [10:09:11]ProducePacketName [10:09:11]name=ofd_packets/00162466 [10:09:11]OFD Sender: To server: pG, [10:09:11]CommunicateWithHost lk.salyk.kg:30040 [10:09:11]ConnectInit lk.salyk.kg [10:09:11]written 0, free lines is 4095 [10:09:11]Connected sock=8 [10:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 40 38 07 01 7A 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 86 00 00 00 F4 03 04 00 53 52 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7A 02 00 35 04 06 00 A8 E2 BC 95 70 A1 0F 84 EA 39 FD 45 48 18 [10:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BD 47 47 00 AA F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A2 7A 02 00 F4 03 04 00 68 FE 91 66 B6 04 01 00 00 B5 1C C0 E7 08 49 C8 7A [10:09:12]CommunicateWithHost err = 0 [10:09:12]CheckOFDResponse [10:09:12]1017 (14) - 77093643461234 [10:09:12]1041 (16) - 0000000000874899 [10:09:12]1040 (4) - 162466 [10:09:12]1012 (4) - 13.07.2024 04:11 [10:09:12]1206 (1) - 0 [10:09:12]OFD Sender: Remove packet 162466 [10:09:12]ProducePacketName [10:09:12]name=ofd_packets/00162466 [10:09:12]NVStorageDeleteData [10:09:12]Write to MH i2c: 01 00 00 DE 14 F2 [10:09:12]Write i2c OK [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: 01 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: 01 07 00 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: 01 07 00 DE 14 00 00 00 00 00 DA 0C DF [10:09:12]RasterBufferAndPrint [10:09:12]line [10:09:12]line [10:09:12]line [10:09:12]line [10:09:12]line [10:09:12]written 0, free lines is 3299 [10:09:12]MH_Cut [10:09:12]Write to MH i2c: D1 01 00 E5 14 01 CB [10:09:12]Write i2c OK [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: D1 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: D1 01 00 [10:09:12]MH_I2C_Read... [10:09:12]Read from MH i2c: D1 01 00 E5 14 00 CA [10:09:12]Write to MH i2c: 01 00 00 E6 14 FA [10:09:12]Write i2c OK [10:09:12]MH_I2C_Read... [10:09:12]OFD Sender: No OFD packet to send [10:09:13]*** Cut start [10:09:13]*** Purtial cut [10:09:13]*** CUTSNS_PIN = 0 [10:09:13]*** Stage 1: CUTSNS_PIN = 1 [10:09:15]Read from MH i2c: 01 [10:09:15]MH_I2C_Read... [10:09:15]*** Stop cut motor [10:09:15]*** Cut end [10:09:15]Read from MH i2c: 01 07 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: 01 07 00 E6 14 00 00 00 00 00 FF 0F 0F [10:09:15]process_action close_receipt done [10:09:15]requested_data is exist [10:09:15]produce_requested_data [10:09:15]requested_item fm.sn is exist - process it [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 11 00 00 [10:09:15]Write to MH i2c: E2 08 00 E7 14 80 11 00 00 00 00 00 00 75 [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 17 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 17 00 E7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D5 [10:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:09:15]wFMCommunicate OK [10:09:15]requested_item fd.num is exist - process it [10:09:15]SAM_PROTO_GetFieldsCounters [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 13 00 00 [10:09:15]Write to MH i2c: E2 08 00 E8 14 80 13 00 00 00 00 00 00 78 [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 62 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 62 00 E8 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [10:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:15]wFMCommunicate OK [10:09:15]SAM_PROTO_GetFieldsCounters done [10:09:15]requested_item shift.num is exist - process it [10:09:15]requested_item shift.opened is exist - process it [10:09:15]req_shift_opened [10:09:15]FM_GetShiftState [10:09:15]SAM_PROTO_GetShiftState [10:09:15]wFMCommunicate request_size=4 [10:09:15]MH_SAM_APDU [10:09:15]CAPDU: 80 13 01 00 [10:09:15]Write to MH i2c: E2 08 00 E9 14 80 13 01 00 00 00 00 00 7A [10:09:15]Write i2c OK [10:09:15]MH_I2C_Read... [10:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:15]Read from MH i2c: E2 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 0E 00 [10:09:15]MH_I2C_Read... [10:09:15]Read from MH i2c: E2 0E 00 E9 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 74 [10:09:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:09:15]wFMCommunicate OK [10:09:15]SAM_PROTO_GetShiftState done [10:09:15]FM_GetShiftState done [10:09:15]req_shift_opened done [10:09:15]requested_item shift.open_date is exist - process it [10:09:15]req_shift_open_date [10:09:15]req_shift_open_date done [10:09:15]produce_requested_data done [10:09:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162466,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:09:15]process_action_free close_receipt [10:09:15]json_value_free [10:09:15]json_value_free done [10:09:15]process_json_proto returns [10:09:15]Send response to host [10:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162466,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:09:15]free response buf [10:09:15]execute_script done [10:09:15]execute_script returns [10:09:15]free content buf [10:09:15]Sock 9.Close socket [10:09:15]Sock 9.Thread stoped [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11:32]OFD Sender: No OFD packet to send [10:11:37]OFD Sender: No OFD packet to send [10:11:42]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:40]accept exits with 10 [10:12:40]New connection [10:12:40]New thread 3067006308 created [10:12:40]Thread 3066862948 joined [10:12:40]Waiting for new connection... [10:12:40] Sock 10.Parse request [10:12:40]Sock 10.Check first char [10:12:40]Sock 10.First char is OK [10:12:40]request: POST /json_proto HTTP/1.0 [10:12:40]Method: POST [10:12:40]URL: /json_proto [10:12:40]Method is POST - this is cgi request [10:12:40]url: /json_proto [10:12:40]query_string will be loaded in cgi processing [10:12:40]execute_cgi json_proto POST (null) [10:12:40]execute_cgi path=json_proto method=POST [10:12:40]POST find Content-Length [10:12:40]Host: 172.17.39.67:8080 [10:12:40]Content-Length: 678 [10:12:40]Content-Type: application/json [10:12:40] [10:12:40]POST finish read [10:12:40]Found Content-Length = 678 [10:12:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.280, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:40]execute_script... [10:12: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)1319002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.280, "sum" : 350.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:40]POST & json_proto [10:12:40]process_json_proto [10:12:40]json parsed OK: [10:12:40]protocol is kg_v1.0 [10:12:40]action value=close_receipt [10:12:40]process_action close_receipt [10:12:40]cmd_close_receipt [10:12:40]MH_GetDate [10:12:40]Write to MH i2c: F0 00 00 EA 14 ED [10:12:40]Write i2c OK [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: F0 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: F0 09 00 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: F0 09 00 EA 14 00 26 53 92 66 FA E9 8E 66 3E [10:12:40]GetLastDocTimeStamp 1720865363 [10:12:40]current date 1720865574 [10:12:40]FM_GetShiftState [10:12:40]SAM_PROTO_GetShiftState [10:12:40]wFMCommunicate request_size=4 [10:12:40]MH_SAM_APDU [10:12:40]CAPDU: 80 13 01 00 [10:12:40]Write to MH i2c: E2 08 00 EB 14 80 13 01 00 00 00 00 00 7C [10:12:40]Write i2c OK [10:12:40]MH_I2C_Read... [10:12:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:40]Read from MH i2c: E2 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: E2 0E 00 [10:12:40]MH_I2C_Read... [10:12:40]Read from MH i2c: E2 0E 00 EB 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 76 [10:12:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:12:40]wFMCommunicate OK [10:12:40]SAM_PROTO_GetShiftState done [10:12:40]FM_GetShiftState done [10:12:40]opened in 1720828979 [10:12:40]opened+sec_in_day 1720915379 [10:12:40]quantity*price = 35006 [10:12:40]sum+1 = 35007 [10:12:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.17 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 135 13.07.2024 10:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162467 ФПД: 253578944071772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162467&fm=253578944071772&tin=02508201610067®Number=0000000000090858&sum=35000 [10:12:42]StoreToDocumentArchive [10:12:42]shift 462 fd 162467 [10:12:42]save to /storage/0462/doc_00162467 [10:12:42]save last doc name /storage/0462/doc_00162467 to /storage/kkm_last_doc_name [10:12:42]save OK [10:12:42]Clear old archive folders... [10:12:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:42]tlvbuf is 01C8B7E0 [10:12:42]SAM_PROTO_ClearQueue [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 09 00 00 [10:12:42]Write to MH i2c: E2 08 00 F8 14 80 09 00 00 00 00 00 00 7E [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 F8 14 00 90 00 80 [10:12:42]RAPDU: 90 00 [10:12:42]wFMCommunicate OK [10:12:42]SAM_PROTO_ClearQueue done [10:12:42]KKMCreateOFDPacket [10:12:42]OFDProtocolAddRootSTLVToBuf [10:12:42]FM_MakeSignedData [10:12:42]FM_MakeSignedData [10:12:42]SAM_PROTO_SignData [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 0D 01 02 [10:12:42]Write to MH i2c: E2 08 00 F9 14 80 0D 01 02 00 00 00 00 86 [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 F9 14 00 90 00 81 [10:12:42]RAPDU: 90 00 [10:12:42]wFMCommunicate OK [10:12:42]wFMCommunicate request_size=255 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 26 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7A 02 00 35 04 06 00 E6 [10:12:42]Write to MH i2c: E2 02 01 FA 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 26 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7A 02 00 35 04 06 00 E6 00 00 B1 [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 FA 14 00 90 00 82 [10:12:42]RAPDU: 90 00 [10:12:42]wFMCommunicate OK [10:12:42]wFMCommunicate request_size=10 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 0D 02 02 05 A0 F2 E2 48 5C [10:12:42]Write to MH i2c: E2 0D 00 FB 14 80 0D 02 02 05 00 A0 F2 E2 48 5C 00 00 AB [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 03 00 FB 14 00 90 00 83 [10:12:42]RAPDU: 90 00 [10:12:42]wFMCommunicate OK [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 0D 03 02 [10:12:42]Write to MH i2c: E2 08 00 FC 14 80 0D 03 02 00 00 00 00 8B [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 0B 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 0B 00 FC 14 00 B7 E1 CD BB 2E 8F FC C2 90 00 27 [10:12:42]RAPDU: B7 E1 CD BB 2E 8F FC C2 90 00 [10:12:42]wFMCommunicate OK [10:12:42]SAM_PROTO_SignData done [10:12:42]FM_MakeSignedData done [10:12:42]CreateOFDProtocolMessage [10:12:42]wFMCommunicate request_size=4 [10:12:42]MH_SAM_APDU [10:12:42]CAPDU: 80 11 00 00 [10:12:42]Write to MH i2c: E2 08 00 FD 14 80 11 00 00 00 00 00 00 8B [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:42]Read from MH i2c: E2 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 17 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: E2 17 00 FD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EB [10:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:12:42]wFMCommunicate OK [10:12:42]CreateOFDProtocolMessage done [10:12:42]OFDSenderStorePacket 162467 [10:12:42]StoreOFDPacket docnum=162467 [10:12:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8D B7 07 01 70 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 26 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7A 02 00 35 04 06 00 E6 A0 F2 E2 48 5C B7 E1 CD BB 2E 8F FC C2 [10:12:42]CheckFolder [10:12:42]dirname=/storage/ofd_packets [10:12:42]CheckFolder done [10:12:42]ProducePacketName [10:12:42]name=ofd_packets/00162467 [10:12:42]NVStorageSaveData ofd_packets/00162467 [10:12:42]File name is /storage/ofd_packets/00162467 [10:12:42]Write 301 bytes [10:12:42]NVStorageSaveData done [10:12:42]OFDSenderStorePacket done [10:12:42]KKMCreateOFDPacket done [10:12:42]NVStorageSaveData kkm_last_timestamp [10:12:42]File name is /storage/kkm_last_timestamp [10:12:42]Write 4 bytes [10:12:42]NVStorageSaveData done [10:12:42]ExternCall_PrintAddStr [10:12:42]wPrintStart [10:12:42]Write to MH i2c: 01 00 00 FE 14 12 [10:12:42]Write i2c OK [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 07 00 [10:12:42]MH_I2C_Read... [10:12:42]Read from MH i2c: 01 07 00 FE 14 00 00 00 00 00 FF 0F 27 [10:12:42]RasterBufferAndPrint [10:12:42]line Счет N : (1)1319002 [10:12:42]line ИНН: 02508201610067 [10:12:42]line Контрольно-Кассовый Чек [10:12:42]line ПРОДАЖА [10:12:42]line ТРК (МРК, ГНК) : 53 [10:12:42]line Товар: 2710124130 [10:12:42]line Аи-92-К-5 [10:12:42]line 5.280 * 66.30 [10:12:42]line = 350.06 [10:12:42]line НДС 12% НСП 1% [10:12:42]line > о реализуемом товаре [10:12:42]line ОКРУГЛЕНИЕ: -0.06 [10:12:42]line ИТОГО: 350.00 [10:12:42]line Внесено: 350.00 [10:12:42]line СДАЧА: 0.00 [10:12:42]line НСП 1% : 3.10 [10:12:42]line НДС 12% : 37.17 [10:12:42]line Наличными: 350.00 [10:12:42]line Безнал.: 0.00 [10:12:42]line Место: АЗС № 140 "Партнер Нефть" [10:12:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:12:42]line СНО: Общий режим [10:12:42]line Чек 135 13.07.2024 10:12 [10:12:42]line Смена: 462 ФФД: 1.0 [10:12:42]line ЗНМ: 0300000129 [10:12:42]line РНМ: 0000000000090858 [10:12:42]line Версия ККМ: 001 [10:12:42]line ФМ: 0000000000874899 [10:12:42]line ФД: 162467 [10:12:42]line ФПД: 253578944071772 [10:12:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162467&fm=253578944071772&tin=02508201610067®Number=0000000000090858&sum=35000 [10:12:42]OFD Sender: Processing packet 162467 [packets to send 105, broken 104] [10:12:42]ProducePacketName [10:12:42]name=ofd_packets/00162467 [10:12:42]OFD Sender: To server: pG, [10:12:42]CommunicateWithHost lk.salyk.kg:30040 [10:12:42]ConnectInit lk.salyk.kg [10:12:42]written 0, free lines is 4095 [10:12:42]Connected sock=8 [10:12:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8D B7 07 01 70 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A0 14 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BE 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 26 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7A 02 00 35 04 06 00 E6 A0 F2 E2 48 5C B7 E1 CD BB 2E 8F FC C2 [10:12:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AD BC 47 00 21 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A3 7A 02 00 F4 03 04 00 3B FF 91 66 B6 04 01 00 00 05 82 A1 1E 75 D9 7A 27 [10:12:43]CommunicateWithHost err = 0 [10:12:43]CheckOFDResponse [10:12:43]1017 (14) - 77093643461234 [10:12:43]1041 (16) - 0000000000874899 [10:12:43]1040 (4) - 162467 [10:12:43]1012 (4) - 13.07.2024 04:14 [10:12:43]1206 (1) - 0 [10:12:43]OFD Sender: Remove packet 162467 [10:12:43]ProducePacketName [10:12:43]name=ofd_packets/00162467 [10:12:43]NVStorageDeleteData [10:12:43]Write to MH i2c: 01 00 00 29 15 3E [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: 01 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: 01 07 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: 01 07 00 29 15 00 00 00 00 00 D4 0C 25 [10:12:43]RasterBufferAndPrint [10:12:43]line [10:12:43]line [10:12:43]line [10:12:43]line [10:12:43]line [10:12:43]written 0, free lines is 3294 [10:12:43]MH_Cut [10:12:43]Write to MH i2c: D1 01 00 30 15 01 17 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: D1 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: D1 01 00 [10:12:43]MH_I2C_Read... [10:12:43]Read from MH i2c: D1 01 00 30 15 00 16 [10:12:43]Write to MH i2c: 01 00 00 31 15 46 [10:12:43]Write i2c OK [10:12:43]MH_I2C_Read... [10:12:43]OFD Sender: No OFD packet to send [10:12:44]*** Cut start [10:12:44]*** Purtial cut [10:12:44]*** Stage 1: CUTSNS_PIN = 1 [10:12:44]Read from MH i2c: 01 [10:12:44]MH_I2C_Read... [10:12:44]*** Stop cut motor [10:12:44]*** Cut end [10:12:44]Read from MH i2c: 01 07 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: 01 07 00 31 15 00 00 00 00 00 FF 0F 5B [10:12:44]process_action close_receipt done [10:12:44]requested_data is exist [10:12:44]produce_requested_data [10:12:44]requested_item fm.sn is exist - process it [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 11 00 00 [10:12:44]Write to MH i2c: E2 08 00 32 15 80 11 00 00 00 00 00 00 C1 [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 17 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 17 00 32 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [10:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:12:44]wFMCommunicate OK [10:12:44]requested_item fd.num is exist - process it [10:12:44]SAM_PROTO_GetFieldsCounters [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 13 00 00 [10:12:44]Write to MH i2c: E2 08 00 33 15 80 13 00 00 00 00 00 00 C4 [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 62 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 62 00 33 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [10:12:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:44]wFMCommunicate OK [10:12:44]SAM_PROTO_GetFieldsCounters done [10:12:44]requested_item shift.num is exist - process it [10:12:44]requested_item shift.opened is exist - process it [10:12:44]req_shift_opened [10:12:44]FM_GetShiftState [10:12:44]SAM_PROTO_GetShiftState [10:12:44]wFMCommunicate request_size=4 [10:12:44]MH_SAM_APDU [10:12:44]CAPDU: 80 13 01 00 [10:12:44]Write to MH i2c: E2 08 00 34 15 80 13 01 00 00 00 00 00 C6 [10:12:44]Write i2c OK [10:12:44]MH_I2C_Read... [10:12:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:44]Read from MH i2c: E2 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 0E 00 [10:12:44]MH_I2C_Read... [10:12:44]Read from MH i2c: E2 0E 00 34 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C0 [10:12:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:12:44]wFMCommunicate OK [10:12:44]SAM_PROTO_GetShiftState done [10:12:44]FM_GetShiftState done [10:12:44]req_shift_opened done [10:12:44]requested_item shift.open_date is exist - process it [10:12:44]req_shift_open_date [10:12:44]req_shift_open_date done [10:12:44]produce_requested_data done [10:12:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162467,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:12:44]process_action_free close_receipt [10:12:44]json_value_free [10:12:44]json_value_free done [10:12:44]process_json_proto returns [10:12:44]Send response to host [10:12:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162467,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:12:44]free response buf [10:12:44]execute_script done [10:12:44]execute_script returns [10:12:44]free content buf [10:12:44]Sock 10.Close socket [10:12:44]Sock 10.Thread stoped [10:12:48]accept exits with 9 [10:12:48]New connection [10:12:48]New thread 3066862948 created [10:12:48]Thread 3067006308 joined [10:12:48]Waiting for new connection... [10:12:48] Sock 9.Parse request [10:12:48]Sock 9.Check first char [10:12:48]Sock 9.First char is OK [10:12:48]request: POST /json_proto HTTP/1.0 [10:12:48]Method: POST [10:12:48]URL: /json_proto [10:12:48]Method is POST - this is cgi request [10:12:48]url: /json_proto [10:12:48]query_string will be loaded in cgi processing [10:12:48]execute_cgi json_proto POST (null) [10:12:48]execute_cgi path=json_proto method=POST [10:12:48]POST find Content-Length [10:12:48]Host: 172.17.39.67:8080 [10:12:48]Content-Length: 683 [10:12:48]Content-Type: application/json [10:12:48] [10:12:48]POST finish read [10:12:48]Found Content-Length = 683 [10:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:48]execute_script... [10:12: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)1319003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:48]POST & json_proto [10:12:48]process_json_proto [10:12:48]json parsed OK: [10:12:48]protocol is kg_v1.0 [10:12:48]action value=close_receipt [10:12:48]process_action close_receipt [10:12:48]cmd_close_receipt [10:12:48]MH_GetDate [10:12:48]Write to MH i2c: F0 00 00 35 15 39 [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 09 00 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 09 00 35 15 00 2E 53 92 66 FA E9 8E 66 92 [10:12:48]GetLastDocTimeStamp 1720865574 [10:12:48]current date 1720865582 [10:12:48]FM_GetShiftState [10:12:48]SAM_PROTO_GetShiftState [10:12:48]wFMCommunicate request_size=4 [10:12:48]MH_SAM_APDU [10:12:48]CAPDU: 80 13 01 00 [10:12:48]Write to MH i2c: E2 08 00 36 15 80 13 01 00 00 00 00 00 C8 [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:48]Read from MH i2c: E2 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: E2 0E 00 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: E2 0E 00 36 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C2 [10:12:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:12:48]wFMCommunicate OK [10:12:48]SAM_PROTO_GetShiftState done [10:12:48]FM_GetShiftState done [10:12:48]opened in 1720828979 [10:12:48]opened+sec_in_day 1720915379 [10:12:48]quantity*price = 100046 [10:12:48]sum+1 = 100048 [10:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 136 13.07.2024 10:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162468 ФПД: 215434732349174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101302&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162468&fm=215434732349174&tin=02508201610067®Number=0000000000090858&sum=100000 [10:12:49]StoreToDocumentArchive [10:12:49]shift 462 fd 162468 [10:12:49]save to /storage/0462/doc_00162468 [10:12:49]save last doc name /storage/0462/doc_00162468 to /storage/kkm_last_doc_name [10:12:49]save OK [10:12:49]Clear old archive folders... [10:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:49]tlvbuf is 01B360D0 [10:12:49]SAM_PROTO_ClearQueue [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 09 00 00 [10:12:49]Write to MH i2c: E2 08 00 43 15 80 09 00 00 00 00 00 00 CA [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 43 15 00 90 00 CC [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]SAM_PROTO_ClearQueue done [10:12:49]KKMCreateOFDPacket [10:12:49]OFDProtocolAddRootSTLVToBuf [10:12:49]FM_MakeSignedData [10:12:49]FM_MakeSignedData [10:12:49]SAM_PROTO_SignData [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 0D 01 02 [10:12:49]Write to MH i2c: E2 08 00 44 15 80 0D 01 02 00 00 00 00 D2 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 44 15 00 90 00 CD [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]wFMCommunicate request_size=255 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 2E 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7A 02 00 35 04 06 00 C3 [10:12:49]Write to MH i2c: E2 02 01 45 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 2E 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7A 02 00 35 04 06 00 C3 00 00 91 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 45 15 00 90 00 CE [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]wFMCommunicate request_size=10 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 0D 02 02 05 EF CE B1 A6 F6 [10:12:49]Write to MH i2c: E2 0D 00 46 15 80 0D 02 02 05 00 EF CE B1 A6 F6 00 00 E9 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 03 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 03 00 46 15 00 90 00 CF [10:12:50]RAPDU: 90 00 [10:12:50]wFMCommunicate OK [10:12:50]wFMCommunicate request_size=4 [10:12:50]MH_SAM_APDU [10:12:50]CAPDU: 80 0D 03 02 [10:12:50]Write to MH i2c: E2 08 00 47 15 80 0D 03 02 00 00 00 00 D7 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 0B 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 0B 00 47 15 00 94 AF EB E8 19 58 80 9B 90 00 7A [10:12:50]RAPDU: 94 AF EB E8 19 58 80 9B 90 00 [10:12:50]wFMCommunicate OK [10:12:50]SAM_PROTO_SignData done [10:12:50]FM_MakeSignedData done [10:12:50]CreateOFDProtocolMessage [10:12:50]wFMCommunicate request_size=4 [10:12:50]MH_SAM_APDU [10:12:50]CAPDU: 80 11 00 00 [10:12:50]Write to MH i2c: E2 08 00 48 15 80 11 00 00 00 00 00 00 D7 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 17 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 17 00 48 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [10:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:12:50]wFMCommunicate OK [10:12:50]CreateOFDProtocolMessage done [10:12:50]OFDSenderStorePacket 162468 [10:12:50]StoreOFDPacket docnum=162468 [10:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4B 56 07 01 43 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 2E 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7A 02 00 35 04 06 00 C3 EF CE B1 A6 F6 94 AF EB E8 19 58 80 9B [10:12:50]CheckFolder [10:12:50]dirname=/storage/ofd_packets [10:12:50]CheckFolder done [10:12:50]ProducePacketName [10:12:50]name=ofd_packets/00162468 [10:12:50]NVStorageSaveData ofd_packets/00162468 [10:12:50]File name is /storage/ofd_packets/00162468 [10:12:50]Write 301 bytes [10:12:50]NVStorageSaveData done [10:12:50]OFDSenderStorePacket done [10:12:50]KKMCreateOFDPacket done [10:12:50]NVStorageSaveData kkm_last_timestamp [10:12:50]File name is /storage/kkm_last_timestamp [10:12:50]Write 4 bytes [10:12:50]NVStorageSaveData done [10:12:50]ExternCall_PrintAddStr [10:12:50]wPrintStart [10:12:50]Write to MH i2c: 01 00 00 49 15 5E [10:12:50]OFD Sender: Processing packet 162468 [packets to send 105, broken 104] [10:12:50]ProducePacketName [10:12:50]name=ofd_packets/00162468 [10:12:50]OFD Sender: To server: pG, [10:12:50]CommunicateWithHost lk.salyk.kg:30040 [10:12:50]ConnectInit lk.salyk.kg [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 49 15 00 00 00 00 00 FF 0F 73 [10:12:50]RasterBufferAndPrint [10:12:50]line Счет N : (1)1319003 [10:12:50]line ИНН: 02508201610067 [10:12:50]line Контрольно-Кассовый Чек [10:12:50]line ПРОДАЖА [10:12:50]line ТРК (МРК, ГНК) : 33 [10:12:50]line Товар: 2710124130 [10:12:50]line Аи-92-К-5 [10:12:50]line 15.090 * 66.30 [10:12:50]line = 1000.47 [10:12:50]line НДС 12% НСП 1% [10:12:50]line > о реализуемом товаре [10:12:50]line ОКРУГЛЕНИЕ: -0.47 [10:12:50]line ИТОГО: 1000.00 [10:12:50]line Внесено: 1000.00 [10:12:50]line СДАЧА: 0.00 [10:12:50]line НСП 1% : 8.85 [10:12:50]line НДС 12% : 106.24 [10:12:50]line Наличными: 1000.00 [10:12:50]line Безнал.: 0.00 [10:12:50]line Место: АЗС № 140 "Партнер Нефть" [10:12:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:12:50]line СНО: Общий режим [10:12:50]line Чек 136 13.07.2024 10:13 [10:12:50]line Смена: 462 ФФД: 1.0 [10:12:50]line ЗНМ: 0300000129 [10:12:50]line РНМ: 0000000000090858 [10:12:50]line Версия ККМ: 001 [10:12:50]line ФМ: 0000000000874899 [10:12:50]line ФД: 162468 [10:12:50]line ФПД: 215434732349174 [10:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101302&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162468&fm=215434732349174&tin=02508201610067®Number=0000000000090858&sum=100000 [10:12:50]written 0, free lines is 4095 [10:12:50]Connected sock=10 [10:12:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4B 56 07 01 43 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 88 00 00 00 F4 03 04 00 2E 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7A 02 00 35 04 06 00 C3 EF CE B1 A6 F6 94 AF EB E8 19 58 80 9B [10:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2F F8 47 00 56 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A4 7A 02 00 F4 03 04 00 42 FF 91 66 B6 04 01 00 00 9B 0B 70 A6 F3 0F 01 4E [10:12:50]CommunicateWithHost err = 0 [10:12:50]CheckOFDResponse [10:12:50]1017 (14) - 77093643461234 [10:12:50]1041 (16) - 0000000000874899 [10:12:50]1040 (4) - 162468 [10:12:50]1012 (4) - 13.07.2024 04:14 [10:12:50]1206 (1) - 0 [10:12:50]OFD Sender: Remove packet 162468 [10:12:50]ProducePacketName [10:12:50]name=ofd_packets/00162468 [10:12:50]NVStorageDeleteData [10:12:50]Write to MH i2c: 01 00 00 74 15 89 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 74 15 00 00 00 00 00 E1 0C 7D [10:12:50]RasterBufferAndPrint [10:12:50]line [10:12:50]line [10:12:50]line [10:12:50]line [10:12:50]line [10:12:50]written 0, free lines is 3312 [10:12:50]MH_Cut [10:12:50]Write to MH i2c: D1 01 00 7B 15 01 62 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: D1 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: D1 01 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: D1 01 00 7B 15 00 61 [10:12:50]Write to MH i2c: 01 00 00 7C 15 91 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:51]OFD Sender: No OFD packet to send [10:12:51]*** Cut start [10:12:51]*** Purtial cut [10:12:51]*** CUTSNS_PIN = 0 [10:12:51]*** Stage 1: CUTSNS_PIN = 1 [10:12:53]Read from MH i2c: 01 [10:12:53]MH_I2C_Read... [10:12:53]*** Stop cut motor [10:12:53]*** Cut end [10:12:53]Read from MH i2c: 01 07 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: 01 07 00 7C 15 00 00 00 00 00 FF 0F A6 [10:12:53]process_action close_receipt done [10:12:53]requested_data is exist [10:12:53]produce_requested_data [10:12:53]requested_item fm.sn is exist - process it [10:12:53]wFMCommunicate request_size=4 [10:12:53]MH_SAM_APDU [10:12:53]CAPDU: 80 11 00 00 [10:12:53]Write to MH i2c: E2 08 00 7D 15 80 11 00 00 00 00 00 00 0C [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 17 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 17 00 7D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [10:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:12:53]wFMCommunicate OK [10:12:53]requested_item fd.num is exist - process it [10:12:53]SAM_PROTO_GetFieldsCounters [10:12:53]wFMCommunicate request_size=4 [10:12:53]MH_SAM_APDU [10:12:53]CAPDU: 80 13 00 00 [10:12:53]Write to MH i2c: E2 08 00 7E 15 80 13 00 00 00 00 00 00 0F [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 62 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 62 00 7E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [10: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:53]wFMCommunicate OK [10:12:53]SAM_PROTO_GetFieldsCounters done [10:12:53]requested_item shift.num is exist - process it [10:12:53]requested_item shift.opened is exist - process it [10:12:53]req_shift_opened [10:12:53]FM_GetShiftState [10:12:53]SAM_PROTO_GetShiftState [10:12:53]wFMCommunicate request_size=4 [10:12:53]MH_SAM_APDU [10:12:53]CAPDU: 80 13 01 00 [10:12:53]Write to MH i2c: E2 08 00 7F 15 80 13 01 00 00 00 00 00 11 [10:12:53]Write i2c OK [10:12:53]MH_I2C_Read... [10:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:53]Read from MH i2c: E2 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 0E 00 [10:12:53]MH_I2C_Read... [10:12:53]Read from MH i2c: E2 0E 00 7F 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 0B [10:12:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:12:53]wFMCommunicate OK [10:12:53]SAM_PROTO_GetShiftState done [10:12:53]FM_GetShiftState done [10:12:53]req_shift_opened done [10:12:53]requested_item shift.open_date is exist - process it [10:12:53]req_shift_open_date [10:12:53]req_shift_open_date done [10:12:53]produce_requested_data done [10:12:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162468,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:12:53]process_action_free close_receipt [10:12:53]json_value_free [10:12:53]json_value_free done [10:12:53]process_json_proto returns [10:12:53]Send response to host [10:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162468,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:12:53]free response buf [10:12:53]execute_script done [10:12:53]execute_script returns [10:12:53]free content buf [10:12:53]Sock 9.Close socket [10:12:53]Sock 9.Thread stoped [10:12:56]OFD Sender: No OFD packet to send [10:13:01]OFD Sender: No OFD packet to send [10:13:06]OFD Sender: No OFD packet to send [10:13:11]OFD Sender: No OFD packet to send [10:13:16]OFD Sender: No OFD packet to send [10:13:21]OFD Sender: No OFD packet to send [10:13:26]OFD Sender: No OFD packet to send [10:13:31]OFD Sender: No OFD packet to send [10:13:36]OFD Sender: No OFD packet to send [10:13:41]OFD Sender: No OFD packet to send [10:13:46]OFD Sender: No OFD packet to send [10:13:51]OFD Sender: No OFD packet to send [10:13:56]OFD Sender: No OFD packet to send [10:14:01]OFD Sender: No OFD packet to send [10:14:06]OFD Sender: No OFD packet to send [10:14:11]OFD Sender: No OFD packet to send [10:14:16]OFD Sender: No OFD packet to send [10:14:21]OFD Sender: No OFD packet to send [10:14:26]OFD Sender: No OFD packet to send [10:14:31]OFD Sender: No OFD packet to send [10:14:36]OFD Sender: No OFD packet to send [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:52]accept exits with 8 [10:14:52]New connection [10:14:52]New thread 3067006308 created [10:14:52]Thread 3066862948 joined [10:14:52]Waiting for new connection... [10:14:52] Sock 8.Parse request [10:14:52]Sock 8.Check first char [10:14:52]Sock 8.First char is OK [10:14:52]request: POST /json_proto HTTP/1.0 [10:14:52]Method: POST [10:14:52]URL: /json_proto [10:14:52]Method is POST - this is cgi request [10:14:52]url: /json_proto [10:14:52]query_string will be loaded in cgi processing [10:14:52]execute_cgi json_proto POST (null) [10:14:52]execute_cgi path=json_proto method=POST [10:14:52]POST find Content-Length [10:14:52]Host: 172.17.39.67:8080 [10:14:52]Content-Length: 688 [10:14:52]Content-Type: application/json [10:14:52] [10:14:52]POST finish read [10:14:52]Found Content-Length = 688 [10:14:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:52]execute_script... [10:14: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)1319004", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:52]POST & json_proto [10:14:52]process_json_proto [10:14:52]json parsed OK: [10:14:52]protocol is kg_v1.0 [10:14:52]action value=close_receipt [10:14:52]process_action close_receipt [10:14:52]cmd_close_receipt [10:14:52]MH_GetDate [10:14:52]Write to MH i2c: F0 00 00 80 15 84 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: F0 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: F0 09 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: F0 09 00 80 15 00 AA 53 92 66 FA E9 8E 66 59 [10:14:52]GetLastDocTimeStamp 1720865582 [10:14:52]current date 1720865706 [10:14:52]FM_GetShiftState [10:14:52]SAM_PROTO_GetShiftState [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 13 01 00 [10:14:52]Write to MH i2c: E2 08 00 81 15 80 13 01 00 00 00 00 00 13 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0E 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0E 00 81 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 0D [10:14:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_GetShiftState done [10:14:52]FM_GetShiftState done [10:14:52]opened in 1720828979 [10:14:52]opened+sec_in_day 1720915379 [10:14:52]quantity*price = 250034 [10:14:52]sum+1 = 250035 [10:14:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 137 13.07.2024 10:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162469 ФПД: 125496568969190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101506&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162469&fm=125496568969190&tin=02508201610067®Number=0000000000090858&sum=250000 [10:14:53]StoreToDocumentArchive [10:14:53]shift 462 fd 162469 [10:14:53]save to /storage/0462/doc_00162469 [10:14:53]save last doc name /storage/0462/doc_00162469 to /storage/kkm_last_doc_name [10:14:53]save OK [10:14:53]Clear old archive folders... [10:14:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:14:53]tlvbuf is 016FEF60 [10:14:53]SAM_PROTO_ClearQueue [10:14:53]wFMCommunicate request_size=4 [10:14:53]MH_SAM_APDU [10:14:53]CAPDU: 80 09 00 00 [10:14:53]Write to MH i2c: E2 08 00 8E 15 80 09 00 00 00 00 00 00 15 [10:14:53]Write i2c OK [10:14:53]MH_I2C_Read... [10:14:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:53]Read from MH i2c: E2 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: E2 03 00 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: E2 03 00 8E 15 00 90 00 17 [10:14:53]RAPDU: 90 00 [10:14:53]wFMCommunicate OK [10:14:53]SAM_PROTO_ClearQueue done [10:14:53]KKMCreateOFDPacket [10:14:53]OFDProtocolAddRootSTLVToBuf [10:14:53]FM_MakeSignedData [10:14:53]FM_MakeSignedData [10:14:53]SAM_PROTO_SignData [10:14:53]wFMCommunicate request_size=4 [10:14:53]MH_SAM_APDU [10:14:53]CAPDU: 80 0D 01 02 [10:14:53]Write to MH i2c: E2 08 00 8F 15 80 0D 01 02 00 00 00 00 1D [10:14:53]Write i2c OK [10:14:53]MH_I2C_Read... [10:14:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:53]Read from MH i2c: E2 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: E2 03 00 [10:14:53]MH_I2C_Read... [10:14:53]Read from MH i2c: E2 03 00 8F 15 00 90 00 18 [10:14:53]RAPDU: 90 00 [10:14:53]wFMCommunicate OK [10:14:53]wFMCommunicate request_size=255 [10:14:53]MH_SAM_APDU [10:14:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AA 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7A 02 00 35 04 06 00 [10:14:53]Write to MH i2c: E2 02 01 90 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AA 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7A 02 00 35 04 06 00 00 00 7F [10:14:53]Write i2c OK [10:14:53]MH_I2C_Read... [10:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:54]Read from MH i2c: E2 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 03 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [10:14:54]RAPDU: 90 00 [10:14:54]wFMCommunicate OK [10:14:54]wFMCommunicate request_size=11 [10:14:54]MH_SAM_APDU [10:14:54]CAPDU: 80 0D 02 02 06 72 23 72 69 F7 E6 [10:14:54]Write to MH i2c: E2 0E 00 91 15 80 0D 02 02 06 00 72 23 72 69 F7 E6 00 00 79 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:54]Read from MH i2c: E2 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 03 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [10:14:54]RAPDU: 90 00 [10:14:54]wFMCommunicate OK [10:14:54]wFMCommunicate request_size=4 [10:14:54]MH_SAM_APDU [10:14:54]CAPDU: 80 0D 03 02 [10:14:54]Write to MH i2c: E2 08 00 92 15 80 0D 03 02 00 00 00 00 22 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:54]Read from MH i2c: E2 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 0B 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 0B 00 92 15 00 B9 8B 83 07 81 35 BD 8E 90 00 F2 [10:14:54]RAPDU: B9 8B 83 07 81 35 BD 8E 90 00 [10:14:54]wFMCommunicate OK [10:14:54]SAM_PROTO_SignData done [10:14:54]FM_MakeSignedData done [10:14:54]CreateOFDProtocolMessage [10:14:54]wFMCommunicate request_size=4 [10:14:54]MH_SAM_APDU [10:14:54]CAPDU: 80 11 00 00 [10:14:54]Write to MH i2c: E2 08 00 93 15 80 11 00 00 00 00 00 00 22 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:54]Read from MH i2c: E2 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 17 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: E2 17 00 93 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 82 [10:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:14:54]wFMCommunicate OK [10:14:54]CreateOFDProtocolMessage done [10:14:54]OFDSenderStorePacket 162469 [10:14:54]StoreOFDPacket docnum=162469 [10:14:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BF A0 08 01 02 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AA 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7A 02 00 35 04 06 00 72 23 72 69 F7 E6 B9 8B 83 07 81 35 BD 8E [10:14:54]CheckFolder [10:14:54]dirname=/storage/ofd_packets [10:14:54]CheckFolder done [10:14:54]ProducePacketName [10:14:54]name=ofd_packets/00162469 [10:14:54]NVStorageSaveData ofd_packets/00162469 [10:14:54]File name is /storage/ofd_packets/00162469 [10:14:54]Write 302 bytes [10:14:54]NVStorageSaveData done [10:14:54]OFDSenderStorePacket done [10:14:54]KKMCreateOFDPacket done [10:14:54]NVStorageSaveData kkm_last_timestamp [10:14:54]File name is /storage/kkm_last_timestamp [10:14:54]Write 4 bytes [10:14:54]NVStorageSaveData done [10:14:54]ExternCall_PrintAddStr [10:14:54]wPrintStart [10:14:54]Write to MH i2c: 01 00 00 94 15 A9 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: 01 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: 01 07 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: 01 07 00 94 15 00 00 00 00 00 FF 0F BE [10:14:54]RasterBufferAndPrint [10:14:54]line Счет N : (1)1319004 [10:14:54]line ИНН: 02508201610067 [10:14:54]line Контрольно-Кассовый Чек [10:14:54]line ПРОДАЖА [10:14:54]line ТРК (МРК, ГНК) : 21 [10:14:54]line Товар: 2710194210 [10:14:54]line ДТ(л)-К-5 [10:14:54]line 34.440 * 72.60 [10:14:54]line = 2500.34 [10:14:54]line НДС 12% НСП 1% [10:14:54]line > о реализуемом товаре [10:14:54]line ОКРУГЛЕНИЕ: -0.34 [10:14:54]line ИТОГО: 2500.00 [10:14:54]line Внесено: 2500.00 [10:14:54]line СДАЧА: 0.00 [10:14:54]line НСП 1% : 22.13 [10:14:54]line НДС 12% : 265.52 [10:14:54]line Наличными: 2500.00 [10:14:54]line Безнал.: 0.00 [10:14:54]line Место: АЗС № 140 "Партнер Нефть" [10:14:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:14:54]line СНО: Общий режим [10:14:54]line Чек 137 13.07.2024 10:15 [10:14:54]line Смена: 462 ФФД: 1.0 [10:14:54]line ЗНМ: 0300000129 [10:14:54]line РНМ: 0000000000090858 [10:14:54]line Версия ККМ: 001 [10:14:54]line ФМ: 0000000000874899 [10:14:54]line ФД: 162469 [10:14:54]line ФПД: 125496568969190 [10:14:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T101506&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162469&fm=125496568969190&tin=02508201610067®Number=0000000000090858&sum=250000 [10:14:54]OFD Sender: Processing packet 162469 [packets to send 105, broken 104] [10:14:54]ProducePacketName [10:14:54]name=ofd_packets/00162469 [10:14:54]OFD Sender: To server: pG, [10:14:54]CommunicateWithHost lk.salyk.kg:30040 [10:14:54]ConnectInit lk.salyk.kg [10:14:54]written 0, free lines is 4095 [10:14:54]Connected sock=9 [10:14:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BF A0 08 01 02 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 AA 53 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7A 02 00 35 04 06 00 72 23 72 69 F7 E6 B9 8B 83 07 81 35 BD 8E [10:14:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2C 8F 47 00 F3 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A5 7A 02 00 F4 03 04 00 BE FF 91 66 B6 04 01 00 00 32 4B A1 09 88 A3 B0 EC [10:14:54]CommunicateWithHost err = 0 [10:14:54]CheckOFDResponse [10:14:54]1017 (14) - 77093643461234 [10:14:54]1041 (16) - 0000000000874899 [10:14:54]1040 (4) - 162469 [10:14:54]1012 (4) - 13.07.2024 04:17 [10:14:54]1206 (1) - 0 [10:14:54]OFD Sender: Remove packet 162469 [10:14:54]ProducePacketName [10:14:54]name=ofd_packets/00162469 [10:14:54]NVStorageDeleteData [10:14:54]Write to MH i2c: 01 00 00 BF 15 D4 [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: 01 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: 01 07 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: 01 07 00 BF 15 00 00 00 00 00 F1 0C D8 [10:14:54]RasterBufferAndPrint [10:14:54]line [10:14:54]line [10:14:54]line [10:14:54]line [10:14:54]line [10:14:54]written 0, free lines is 3322 [10:14:54]MH_Cut [10:14:54]Write to MH i2c: D1 01 00 C6 15 01 AD [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: D1 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: D1 01 00 [10:14:54]MH_I2C_Read... [10:14:54]Read from MH i2c: D1 01 00 C6 15 00 AC [10:14:54]Write to MH i2c: 01 00 00 C7 15 DC [10:14:54]Write i2c OK [10:14:54]MH_I2C_Read... [10:14:55]OFD Sender: No OFD packet to send [10:14:55]*** Cut start [10:14:55]*** Purtial cut [10:14:55]*** Stage 1: CUTSNS_PIN = 1 [10:14:55]Read from MH i2c: 01 [10:14:55]MH_I2C_Read... [10:14:55]*** Stop cut motor [10:14:55]*** Cut end [10:14:55]Read from MH i2c: 01 07 00 [10:14:55]MH_I2C_Read... [10:14:55]Read from MH i2c: 01 07 00 C7 15 00 00 00 00 00 FF 0F F1 [10:14:55]process_action close_receipt done [10:14:55]requested_data is exist [10:14:55]produce_requested_data [10:14:55]requested_item fm.sn is exist - process it [10:14:55]wFMCommunicate request_size=4 [10:14:55]MH_SAM_APDU [10:14:55]CAPDU: 80 11 00 00 [10:14:55]Write to MH i2c: E2 08 00 C8 15 80 11 00 00 00 00 00 00 57 [10:14:55]Write i2c OK [10:14:55]MH_I2C_Read... [10:14:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:56]Read from MH i2c: E2 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 17 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 17 00 C8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [10:14:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:14:56]wFMCommunicate OK [10:14:56]requested_item fd.num is exist - process it [10:14:56]SAM_PROTO_GetFieldsCounters [10:14:56]wFMCommunicate request_size=4 [10:14:56]MH_SAM_APDU [10:14:56]CAPDU: 80 13 00 00 [10:14:56]Write to MH i2c: E2 08 00 C9 15 80 13 00 00 00 00 00 00 5A [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:56]Read from MH i2c: E2 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 62 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 62 00 C9 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [10:14:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:56]wFMCommunicate OK [10:14:56]SAM_PROTO_GetFieldsCounters done [10:14:56]requested_item shift.num is exist - process it [10:14:56]requested_item shift.opened is exist - process it [10:14:56]req_shift_opened [10:14:56]FM_GetShiftState [10:14:56]SAM_PROTO_GetShiftState [10:14:56]wFMCommunicate request_size=4 [10:14:56]MH_SAM_APDU [10:14:56]CAPDU: 80 13 01 00 [10:14:56]Write to MH i2c: E2 08 00 CA 15 80 13 01 00 00 00 00 00 5C [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:56]Read from MH i2c: E2 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 0E 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 0E 00 CA 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 56 [10:14:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:14:56]wFMCommunicate OK [10:14:56]SAM_PROTO_GetShiftState done [10:14:56]FM_GetShiftState done [10:14:56]req_shift_opened done [10:14:56]requested_item shift.open_date is exist - process it [10:14:56]req_shift_open_date [10:14:56]req_shift_open_date done [10:14:56]produce_requested_data done [10:14:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162469,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:14:56]process_action_free close_receipt [10:14:56]json_value_free [10:14:56]json_value_free done [10:14:56]process_json_proto returns [10:14:56]Send response to host [10:14:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162469,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:14:56]free response buf [10:14:56]execute_script done [10:14:56]execute_script returns [10:14:56]free content buf [10:14:56]Sock 8.Close socket [10:14:56]Sock 8.Thread stoped [10:15:00]OFD Sender: No OFD packet to send [10:15:05]OFD Sender: No OFD packet to send [10:15:10]OFD Sender: No OFD packet to send [10:15:15]OFD Sender: No OFD packet to send [10:15:20]OFD Sender: No OFD packet to send [10:15:25]OFD Sender: No OFD packet to send [10:15:30]OFD Sender: No OFD packet to send [10:15:35]OFD Sender: No OFD packet to send [10:15:40]OFD Sender: No OFD packet to send [10:15:45]OFD Sender: No OFD packet to send [10:15:50]OFD Sender: No OFD packet to send [10:15:55]OFD Sender: No OFD packet to send [10:16:00]OFD Sender: No OFD packet to send [10:16:05]OFD Sender: No OFD packet to send [10:16:10]OFD Sender: No OFD packet to send [10:16:15]OFD Sender: No OFD packet to send [10:16:20]OFD Sender: No OFD packet to send [10:16:25]OFD Sender: No OFD packet to send [10:16:30]OFD Sender: No OFD packet to send [10:16:35]OFD Sender: No OFD packet to send [10:16:40]OFD Sender: No OFD packet to send [10:16:45]OFD Sender: No OFD packet to send [10:16:50]OFD Sender: No OFD packet to send [10:16:55]OFD Sender: No OFD packet to send [10:17:00]OFD Sender: No OFD packet to send [10:17:05]OFD Sender: No OFD packet to send [10:17:10]OFD Sender: No OFD packet to send [10:17:15]OFD Sender: No OFD packet to send [10:17:20]OFD Sender: No OFD packet to send [10:17:25]OFD Sender: No OFD packet to send [10:17:30]OFD Sender: No OFD packet to send [10:17:35]OFD Sender: No OFD packet to send [10:17:40]OFD Sender: No OFD packet to send [10:17:45]OFD Sender: No OFD packet to send [10:17:50]OFD Sender: No OFD packet to send [10:17:55]OFD Sender: No OFD packet to send [10:18:00]OFD Sender: No OFD packet to send [10:18:05]OFD Sender: No OFD packet to send [10:18:10]OFD Sender: No OFD packet to send [10:18:15]OFD Sender: No OFD packet to send [10:18:20]OFD Sender: No OFD packet to send [10:18:25]OFD Sender: No OFD packet to send [10:18:30]OFD Sender: No OFD packet to send [10:18:35]OFD Sender: No OFD packet to send [10:18:40]OFD Sender: No OFD packet to send [10:18:45]OFD Sender: No OFD packet to send [10:18:50]OFD Sender: No OFD packet to send [10:18:55]OFD Sender: No OFD packet to send [10:19:00]OFD Sender: No OFD packet to send [10:19:05]OFD Sender: No OFD packet to send [10:19:10]OFD Sender: No OFD packet to send [10:19:15]OFD Sender: No OFD packet to send [10:19:20]OFD Sender: No OFD packet to send [10:19:25]OFD Sender: No OFD packet to send [10:19:30]OFD Sender: No OFD packet to send [10:19:35]OFD Sender: No OFD packet to send [10:19:40]OFD Sender: No OFD packet to send [10:19:45]OFD Sender: No OFD packet to send [10:19:50]OFD Sender: No OFD packet to send [10:19:55]OFD Sender: No OFD packet to send [10:20:00]OFD Sender: No OFD packet to send [10:20:05]OFD Sender: No OFD packet to send [10:20:10]OFD Sender: No OFD packet to send [10:20:15]OFD Sender: No OFD packet to send [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:18]accept exits with 10 [10:22:18]New connection [10:22:18]New thread 3066862948 created [10:22:18]Thread 3067006308 joined [10:22:18]Waiting for new connection... [10:22:18] Sock 10.Parse request [10:22:18]Sock 10.Check first char [10:22:18]Sock 10.First char is OK [10:22:18]request: POST /json_proto HTTP/1.0 [10:22:18]Method: POST [10:22:18]URL: /json_proto [10:22:18]Method is POST - this is cgi request [10:22:18]url: /json_proto [10:22:18]query_string will be loaded in cgi processing [10:22:18]execute_cgi json_proto POST (null) [10:22:18]execute_cgi path=json_proto method=POST [10:22:18]POST find Content-Length [10:22:18]Host: 172.17.39.67:8080 [10:22:18]Content-Length: 683 [10:22:18]Content-Type: application/json [10:22:18] [10:22:18]POST finish read [10:22:18]Found Content-Length = 683 [10:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:22:18]execute_script... [10:22: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)1319005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:22:18]POST & json_proto [10:22:18]process_json_proto [10:22:18]json parsed OK: [10:22:18]protocol is kg_v1.0 [10:22:18]action value=close_receipt [10:22:18]process_action close_receipt [10:22:18]cmd_close_receipt [10:22:18]MH_GetDate [10:22:18]Write to MH i2c: F0 00 00 CB 15 CF [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 09 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: F0 09 00 CB 15 00 67 55 92 66 FA E9 8E 66 63 [10:22:18]GetLastDocTimeStamp 1720865706 [10:22:18]current date 1720866151 [10:22:18]FM_GetShiftState [10:22:18]SAM_PROTO_GetShiftState [10:22:18]wFMCommunicate request_size=4 [10:22:18]MH_SAM_APDU [10:22:18]CAPDU: 80 13 01 00 [10:22:18]Write to MH i2c: E2 08 00 CC 15 80 13 01 00 00 00 00 00 5E [10:22:18]Write i2c OK [10:22:18]MH_I2C_Read... [10:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:18]Read from MH i2c: E2 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 [10:22:18]MH_I2C_Read... [10:22:18]Read from MH i2c: E2 0E 00 CC 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 58 [10:22:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:22:18]wFMCommunicate OK [10:22:18]SAM_PROTO_GetShiftState done [10:22:18]FM_GetShiftState done [10:22:18]opened in 1720828979 [10:22:18]opened+sec_in_day 1720915379 [10:22:18]quantity*price = 70059 [10:22:18]sum+1 = 70060 [10:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 138 13.07.2024 10:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162470 ФПД: 173187901879070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102231&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162470&fm=173187901879070&tin=02508201610067®Number=0000000000090858&sum=70000 [10:22:19]StoreToDocumentArchive [10:22:19]shift 462 fd 162470 [10:22:19]save to /storage/0462/doc_00162470 [10:22:19]save last doc name /storage/0462/doc_00162470 to /storage/kkm_last_doc_name [10:22:19]save OK [10:22:19]Clear old archive folders... [10:22:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:22:19]tlvbuf is 01A1CA10 [10:22:19]SAM_PROTO_ClearQueue [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 09 00 00 [10:22:19]Write to MH i2c: E2 08 00 D9 15 80 09 00 00 00 00 00 00 60 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 D9 15 00 90 00 62 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]SAM_PROTO_ClearQueue done [10:22:19]KKMCreateOFDPacket [10:22:19]OFDProtocolAddRootSTLVToBuf [10:22:19]FM_MakeSignedData [10:22:19]FM_MakeSignedData [10:22:19]SAM_PROTO_SignData [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 01 02 [10:22:19]Write to MH i2c: E2 08 00 DA 15 80 0D 01 02 00 00 00 00 68 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 DA 15 00 90 00 63 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=255 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 8A 00 00 00 F4 03 04 00 67 55 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7A 02 00 35 04 06 00 [10:22:19]Write to MH i2c: E2 02 01 DB 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 8A 00 00 00 F4 03 04 00 67 55 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7A 02 00 35 04 06 00 00 00 99 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=11 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 02 02 06 9D 83 73 5E F3 1E [10:22:19]Write to MH i2c: E2 0E 00 DC 15 80 0D 02 02 06 00 9D 83 73 5E F3 1E 00 00 79 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [10:22:19]RAPDU: 90 00 [10:22:19]wFMCommunicate OK [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 0D 03 02 [10:22:19]Write to MH i2c: E2 08 00 DD 15 80 0D 03 02 00 00 00 00 6D [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 0B 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 0B 00 DD 15 00 60 84 7C D2 55 59 24 CE 90 00 40 [10:22:19]RAPDU: 60 84 7C D2 55 59 24 CE 90 00 [10:22:19]wFMCommunicate OK [10:22:19]SAM_PROTO_SignData done [10:22:19]FM_MakeSignedData done [10:22:19]CreateOFDProtocolMessage [10:22:19]wFMCommunicate request_size=4 [10:22:19]MH_SAM_APDU [10:22:19]CAPDU: 80 11 00 00 [10:22:19]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:19]Read from MH i2c: E2 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 17 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CD [10:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:22:19]wFMCommunicate OK [10:22:19]CreateOFDProtocolMessage done [10:22:19]OFDSenderStorePacket 162470 [10:22:19]StoreOFDPacket docnum=162470 [10:22:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 85 7D 08 01 57 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 8A 00 00 00 F4 03 04 00 67 55 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7A 02 00 35 04 06 00 9D 83 73 5E F3 1E 60 84 7C D2 55 59 24 CE [10:22:19]CheckFolder [10:22:19]dirname=/storage/ofd_packets [10:22:19]CheckFolder done [10:22:19]ProducePacketName [10:22:19]name=ofd_packets/00162470 [10:22:19]NVStorageSaveData ofd_packets/00162470 [10:22:19]File name is /storage/ofd_packets/00162470 [10:22:19]Write 302 bytes [10:22:19]NVStorageSaveData done [10:22:19]OFDSenderStorePacket done [10:22:19]KKMCreateOFDPacket done [10:22:19]NVStorageSaveData kkm_last_timestamp [10:22:19]File name is /storage/kkm_last_timestamp [10:22:19]Write 4 bytes [10:22:19]NVStorageSaveData done [10:22:19]ExternCall_PrintAddStr [10:22:19]wPrintStart [10:22:19]Write to MH i2c: 01 00 00 DF 15 F4 [10:22:19]Write i2c OK [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 07 00 [10:22:19]MH_I2C_Read... [10:22:19]Read from MH i2c: 01 07 00 DF 15 00 00 00 00 00 FF 0F 09 [10:22:19]RasterBufferAndPrint [10:22:19]line Счет N : (1)1319005 [10:22:19]line ИНН: 02508201610067 [10:22:19]line Контрольно-Кассовый Чек [10:22:19]line ПРОДАЖА [10:22:19]line ТРК (МРК, ГНК) : 21 [10:22:19]line Товар: 2710194210 [10:22:19]line ДТ(л)-К-5 [10:22:19]line 9.650 * 72.60 [10:22:19]line = 700.59 [10:22:19]line НДС 12% НСП 1% [10:22:19]line > о реализуемом товаре [10:22:19]line ОКРУГЛЕНИЕ: -0.59 [10:22:19]line ИТОГО: 700.00 [10:22:19]line Внесено: 700.00 [10:22:19]line СДАЧА: 0.00 [10:22:19]line НСП 1% : 6.20 [10:22:19]line НДС 12% : 74.40 [10:22:19]line Наличными: 700.00 [10:22:19]line Безнал.: 0.00 [10:22:19]line Место: АЗС № 140 "Партнер Нефть" [10:22:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:22:19]line СНО: Общий режим [10:22:19]line Чек 138 13.07.2024 10:22 [10:22:19]line Смена: 462 ФФД: 1.0 [10:22:19]line ЗНМ: 0300000129 [10:22:19]line РНМ: 0000000000090858 [10:22:19]line Версия ККМ: 001 [10:22:19]line ФМ: 0000000000874899 [10:22:19]line ФД: 162470 [10:22:19]line ФПД: 173187901879070 [10:22:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102231&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162470&fm=173187901879070&tin=02508201610067®Number=0000000000090858&sum=70000 [10:22:20]OFD Sender: Processing packet 162470 [packets to send 105, broken 104] [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00162470 [10:22:20]OFD Sender: To server: pG, [10:22:20]CommunicateWithHost lk.salyk.kg:30040 [10:22:20]ConnectInit lk.salyk.kg [10:22:20]written 0, free lines is 4095 [10:22:20]Connected sock=9 [10:22:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 85 7D 08 01 57 FE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 8A 00 00 00 F4 03 04 00 67 55 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7A 02 00 35 04 06 00 9D 83 73 5E F3 1E 60 84 7C D2 55 59 24 CE [10:22:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CD 67 47 00 CD 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A6 7A 02 00 F4 03 04 00 7C 01 92 66 B6 04 01 00 00 CE 26 00 D5 AF 52 DC D4 [10:22:20]CommunicateWithHost err = 0 [10:22:20]CheckOFDResponse [10:22:20]1017 (14) - 77093643461234 [10:22:20]1041 (16) - 0000000000874899 [10:22:20]1040 (4) - 162470 [10:22:20]1012 (4) - 13.07.2024 04:24 [10:22:20]1206 (1) - 0 [10:22:20]OFD Sender: Remove packet 162470 [10:22:20]ProducePacketName [10:22:20]name=ofd_packets/00162470 [10:22:20]NVStorageDeleteData [10:22:20]Write to MH i2c: 01 00 00 0A 16 20 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: 01 07 00 0A 16 00 00 00 00 00 D1 0C 04 [10:22:20]RasterBufferAndPrint [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]line [10:22:20]written 0, free lines is 3289 [10:22:20]MH_Cut [10:22:20]Write to MH i2c: D1 01 00 11 16 01 F9 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 01 00 [10:22:20]MH_I2C_Read... [10:22:20]Read from MH i2c: D1 01 00 11 16 00 F8 [10:22:20]Write to MH i2c: 01 00 00 12 16 28 [10:22:20]Write i2c OK [10:22:20]MH_I2C_Read... [10:22:20]OFD Sender: No OFD packet to send [10:22:21]*** Cut start [10:22:21]*** Purtial cut [10:22:21]*** CUTSNS_PIN = 0 [10:22:21]*** Stage 1: CUTSNS_PIN = 1 [10:22:23]Read from MH i2c: 01 [10:22:23]MH_I2C_Read... [10:22:23]*** Stop cut motor [10:22:23]*** Cut end [10:22:23]Read from MH i2c: 01 07 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: 01 07 00 12 16 00 00 00 00 00 FF 0F 3D [10:22:23]process_action close_receipt done [10:22:23]requested_data is exist [10:22:23]produce_requested_data [10:22:23]requested_item fm.sn is exist - process it [10:22:23]wFMCommunicate request_size=4 [10:22:23]MH_SAM_APDU [10:22:23]CAPDU: 80 11 00 00 [10:22:23]Write to MH i2c: E2 08 00 13 16 80 11 00 00 00 00 00 00 A3 [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:23]Read from MH i2c: E2 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 17 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 17 00 13 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [10:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:22:23]wFMCommunicate OK [10:22:23]requested_item fd.num is exist - process it [10:22:23]SAM_PROTO_GetFieldsCounters [10:22:23]wFMCommunicate request_size=4 [10:22:23]MH_SAM_APDU [10:22:23]CAPDU: 80 13 00 00 [10:22:23]Write to MH i2c: E2 08 00 14 16 80 13 00 00 00 00 00 00 A6 [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:23]Read from MH i2c: E2 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 62 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 62 00 14 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [10:22:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:23]wFMCommunicate OK [10:22:23]SAM_PROTO_GetFieldsCounters done [10:22:23]requested_item shift.num is exist - process it [10:22:23]requested_item shift.opened is exist - process it [10:22:23]req_shift_opened [10:22:23]FM_GetShiftState [10:22:23]SAM_PROTO_GetShiftState [10:22:23]wFMCommunicate request_size=4 [10:22:23]MH_SAM_APDU [10:22:23]CAPDU: 80 13 01 00 [10:22:23]Write to MH i2c: E2 08 00 15 16 80 13 01 00 00 00 00 00 A8 [10:22:23]Write i2c OK [10:22:23]MH_I2C_Read... [10:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:23]Read from MH i2c: E2 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 0E 00 [10:22:23]MH_I2C_Read... [10:22:23]Read from MH i2c: E2 0E 00 15 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A2 [10:22:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:22:23]wFMCommunicate OK [10:22:23]SAM_PROTO_GetShiftState done [10:22:23]FM_GetShiftState done [10:22:23]req_shift_opened done [10:22:23]requested_item shift.open_date is exist - process it [10:22:23]req_shift_open_date [10:22:23]req_shift_open_date done [10:22:23]produce_requested_data done [10:22:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162470,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:22:23]process_action_free close_receipt [10:22:23]json_value_free [10:22:23]json_value_free done [10:22:23]process_json_proto returns [10:22:23]Send response to host [10:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162470,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:22:23]free response buf [10:22:23]execute_script done [10:22:23]execute_script returns [10:22:23]free content buf [10:22:23]Sock 10.Close socket [10:22:23]Sock 10.Thread stoped [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:45]OFD Sender: No OFD packet to send [10:22:49]accept exits with 8 [10:22:49]New connection [10:22:49]New thread 3067006308 created [10:22:49]Thread 3066862948 joined [10:22:49]Waiting for new connection... [10:22:49] Sock 8.Parse request [10:22:49]Sock 8.Check first char [10:22:49]Sock 8.First char is OK [10:22:49]request: POST /json_proto HTTP/1.0 [10:22:49]Method: POST [10:22:49]URL: /json_proto [10:22:49]Method is POST - this is cgi request [10:22:49]url: /json_proto [10:22:49]query_string will be loaded in cgi processing [10:22:49]execute_cgi json_proto POST (null) [10:22:49]execute_cgi path=json_proto method=POST [10:22:49]POST find Content-Length [10:22:49]Host: 172.17.39.67:8080 [10:22:49]Content-Length: 688 [10:22:49]Content-Type: application/json [10:22:49] [10:22:49]POST finish read [10:22:49]Found Content-Length = 688 [10:22:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:22:49]execute_script... [10:22: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)1319006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [10:22:49]POST & json_proto [10:22:49]process_json_proto [10:22:49]json parsed OK: [10:22:49]protocol is kg_v1.0 [10:22:49]action value=close_receipt [10:22:49]process_action close_receipt [10:22:49]cmd_close_receipt [10:22:49]MH_GetDate [10:22:49]Write to MH i2c: F0 00 00 16 16 1B [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: F0 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: F0 09 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: F0 09 00 16 16 00 86 55 92 66 FA E9 8E 66 CE [10:22:49]GetLastDocTimeStamp 1720866151 [10:22:49]current date 1720866182 [10:22:49]FM_GetShiftState [10:22:49]SAM_PROTO_GetShiftState [10:22:49]wFMCommunicate request_size=4 [10:22:49]MH_SAM_APDU [10:22:49]CAPDU: 80 13 01 00 [10:22:49]Write to MH i2c: E2 08 00 17 16 80 13 01 00 00 00 00 00 AA [10:22:49]Write i2c OK [10:22:49]MH_I2C_Read... [10:22:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:49]Read from MH i2c: E2 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0E 00 [10:22:49]MH_I2C_Read... [10:22:49]Read from MH i2c: E2 0E 00 17 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A4 [10:22:49]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:22:49]wFMCommunicate OK [10:22:49]SAM_PROTO_GetShiftState done [10:22:49]FM_GetShiftState done [10:22:49]opened in 1720828979 [10:22:49]opened+sec_in_day 1720915379 [10:22:49]quantity*price = 150064 [10:22:49]sum+1 = 150065 [10:22: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 139 13.07.2024 10:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162471 ФПД: 17767157357310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102303&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162471&fm=17767157357310&tin=02508201610067®Number=0000000000090858&sum=150000 [10:22:50]StoreToDocumentArchive [10:22:50]shift 462 fd 162471 [10:22:50]save to /storage/0462/doc_00162471 [10:22:50]save last doc name /storage/0462/doc_00162471 to /storage/kkm_last_doc_name [10:22:50]save OK [10:22:50]Clear old archive folders... [10:22:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:22:50]tlvbuf is 01C128E0 [10:22:50]SAM_PROTO_ClearQueue [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 09 00 00 [10:22:50]Write to MH i2c: E2 08 00 24 16 80 09 00 00 00 00 00 00 AC [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [10:22:50]RAPDU: 90 00 [10:22:50]wFMCommunicate OK [10:22:50]SAM_PROTO_ClearQueue done [10:22:50]KKMCreateOFDPacket [10:22:50]OFDProtocolAddRootSTLVToBuf [10:22:50]FM_MakeSignedData [10:22:50]FM_MakeSignedData [10:22:50]SAM_PROTO_SignData [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 0D 01 02 [10:22:50]Write to MH i2c: E2 08 00 25 16 80 0D 01 02 00 00 00 00 B4 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [10:22:50]RAPDU: 90 00 [10:22:50]wFMCommunicate OK [10:22:50]wFMCommunicate request_size=255 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 8B 00 00 00 F4 03 04 00 87 55 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7A 02 00 35 04 06 00 [10:22:50]Write to MH i2c: E2 02 01 26 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 8B 00 00 00 F4 03 04 00 87 55 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7A 02 00 35 04 06 00 00 00 87 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [10:22:50]RAPDU: 90 00 [10:22:50]wFMCommunicate OK [10:22:50]wFMCommunicate request_size=11 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 0D 02 02 06 10 28 BD 1A 5A FE [10:22:50]Write to MH i2c: E2 0E 00 27 16 80 0D 02 02 06 00 10 28 BD 1A 5A FE 00 00 2A [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [10:22:50]RAPDU: 90 00 [10:22:50]wFMCommunicate OK [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 0D 03 02 [10:22:50]Write to MH i2c: E2 08 00 28 16 80 0D 03 02 00 00 00 00 B9 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 0B 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 0B 00 28 16 00 59 9E 17 E6 E8 6A 9A 28 90 00 C2 [10:22:50]RAPDU: 59 9E 17 E6 E8 6A 9A 28 90 00 [10:22:50]wFMCommunicate OK [10:22:50]SAM_PROTO_SignData done [10:22:50]FM_MakeSignedData done [10:22:50]CreateOFDProtocolMessage [10:22:50]wFMCommunicate request_size=4 [10:22:50]MH_SAM_APDU [10:22:50]CAPDU: 80 11 00 00 [10:22:50]Write to MH i2c: E2 08 00 29 16 80 11 00 00 00 00 00 00 B9 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:50]Read from MH i2c: E2 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 17 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: E2 17 00 29 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 19 [10:22:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:22:50]wFMCommunicate OK [10:22:50]CreateOFDProtocolMessage done [10:22:50]OFDSenderStorePacket 162471 [10:22:50]StoreOFDPacket docnum=162471 [10:22:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D2 25 08 01 02 B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 8B 00 00 00 F4 03 04 00 87 55 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7A 02 00 35 04 06 00 10 28 BD 1A 5A FE 59 9E 17 E6 E8 6A 9A 28 [10:22:50]CheckFolder [10:22:50]dirname=/storage/ofd_packets [10:22:50]CheckFolder done [10:22:50]ProducePacketName [10:22:50]name=ofd_packets/00162471 [10:22:50]NVStorageSaveData ofd_packets/00162471 [10:22:50]File name is /storage/ofd_packets/00162471 [10:22:50]Write 302 bytes [10:22:50]NVStorageSaveData done [10:22:50]OFDSenderStorePacket done [10:22:50]KKMCreateOFDPacket done [10:22:50]NVStorageSaveData kkm_last_timestamp [10:22:50]File name is /storage/kkm_last_timestamp [10:22:50]Write 4 bytes [10:22:50]NVStorageSaveData done [10:22:50]ExternCall_PrintAddStr [10:22:50]wPrintStart [10:22:50]Write to MH i2c: 01 00 00 2A 16 40 [10:22:50]Write i2c OK [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 07 00 [10:22:50]MH_I2C_Read... [10:22:50]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 FF 0F 55 [10:22:50]RasterBufferAndPrint [10:22:50]line Счет N : (1)1319006 [10:22:50]line ИНН: 02508201610067 [10:22:50]line Контрольно-Кассовый Чек [10:22:50]line ПРОДАЖА [10:22:50]line ТРК (МРК, ГНК) : 11 [10:22:50]line Товар: 2710194210 [10:22:50]line ДТ(л)-К-5 [10:22:50]line 20.670 * 72.60 [10:22:50]line = 1500.64 [10:22:50]line НДС 12% НСП 1% [10:22:50]line > о реализуемом товаре [10:22:50]line ОКРУГЛЕНИЕ: -0.64 [10:22:50]line ИТОГО: 1500.00 [10:22:50]line Внесено: 1500.00 [10:22:50]line СДАЧА: 0.00 [10:22:50]line НСП 1% : 13.28 [10:22:50]line НДС 12% : 159.36 [10:22:50]line Наличными: 1500.00 [10:22:50]line Безнал.: 0.00 [10:22:50]line Место: АЗС № 140 "Партнер Нефть" [10:22:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:22:50]line СНО: Общий режим [10:22:50]line Чек 139 13.07.2024 10:23 [10:22:50]line Смена: 462 ФФД: 1.0 [10:22:50]line ЗНМ: 0300000129 [10:22:50]line РНМ: 0000000000090858 [10:22:50]line Версия ККМ: 001 [10:22:50]line ФМ: 0000000000874899 [10:22:50]line ФД: 162471 [10:22:50]line ФПД: 17767157357310 [10:22:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102303&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162471&fm=17767157357310&tin=02508201610067®Number=0000000000090858&sum=150000 [10:22:51]OFD Sender: Processing packet 162471 [packets to send 105, broken 104] [10:22:51]ProducePacketName [10:22:51]name=ofd_packets/00162471 [10:22:51]OFD Sender: To server: pG, [10:22:51]CommunicateWithHost lk.salyk.kg:30040 [10:22:51]ConnectInit lk.salyk.kg [10:22:51]written 0, free lines is 4095 [10:22:51]Connected sock=10 [10:22:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D2 25 08 01 02 B8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 8B 00 00 00 F4 03 04 00 87 55 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7A 02 00 35 04 06 00 10 28 BD 1A 5A FE 59 9E 17 E6 E8 6A 9A 28 [10:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 92 80 47 00 7B 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A7 7A 02 00 F4 03 04 00 9B 01 92 66 B6 04 01 00 00 68 03 5B 22 B7 F3 4D 4A [10:22:51]CommunicateWithHost err = 0 [10:22:51]CheckOFDResponse [10:22:51]1017 (14) - 77093643461234 [10:22:51]1041 (16) - 0000000000874899 [10:22:51]1040 (4) - 162471 [10:22:51]1012 (4) - 13.07.2024 04:24 [10:22:51]1206 (1) - 0 [10:22:51]OFD Sender: Remove packet 162471 [10:22:51]ProducePacketName [10:22:51]name=ofd_packets/00162471 [10:22:51]NVStorageDeleteData [10:22:51]Write to MH i2c: 01 00 00 55 16 6B [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: 01 07 00 55 16 00 00 00 00 00 D4 0C 52 [10:22:51]RasterBufferAndPrint [10:22:51]line [10:22:51]line [10:22:51]line [10:22:51]line [10:22:51]line [10:22:51]written 0, free lines is 3294 [10:22:51]MH_Cut [10:22:51]Write to MH i2c: D1 01 00 5C 16 01 44 [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: D1 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: D1 01 00 [10:22:51]MH_I2C_Read... [10:22:51]Read from MH i2c: D1 01 00 5C 16 00 43 [10:22:51]Write to MH i2c: 01 00 00 5D 16 73 [10:22:51]Write i2c OK [10:22:51]MH_I2C_Read... [10:22:51]OFD Sender: No OFD packet to send [10:22:52]*** Cut start [10:22:52]*** Purtial cut [10:22:52]*** Stage 1: CUTSNS_PIN = 1 [10:22:52]Read from MH i2c: 01 [10:22:52]MH_I2C_Read... [10:22:52]*** Stop cut motor [10:22:52]*** Cut end [10:22:52]Read from MH i2c: 01 07 00 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: 01 07 00 5D 16 00 00 00 00 00 FF 0F 88 [10:22:52]process_action close_receipt done [10:22:52]requested_data is exist [10:22:52]produce_requested_data [10:22:52]requested_item fm.sn is exist - process it [10:22:52]wFMCommunicate request_size=4 [10:22:52]MH_SAM_APDU [10:22:52]CAPDU: 80 11 00 00 [10:22:52]Write to MH i2c: E2 08 00 5E 16 80 11 00 00 00 00 00 00 EE [10:22:52]Write i2c OK [10:22:52]MH_I2C_Read... [10:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:52]Read from MH i2c: E2 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: E2 17 00 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: E2 17 00 5E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [10:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:22:52]wFMCommunicate OK [10:22:52]requested_item fd.num is exist - process it [10:22:52]SAM_PROTO_GetFieldsCounters [10:22:52]wFMCommunicate request_size=4 [10:22:52]MH_SAM_APDU [10:22:52]CAPDU: 80 13 00 00 [10:22:52]Write to MH i2c: E2 08 00 5F 16 80 13 00 00 00 00 00 00 F1 [10:22:52]Write i2c OK [10:22:52]MH_I2C_Read... [10:22:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:52]Read from MH i2c: E2 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: E2 62 00 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: E2 62 00 5F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [10: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:52]wFMCommunicate OK [10:22:52]SAM_PROTO_GetFieldsCounters done [10:22:52]requested_item shift.num is exist - process it [10:22:52]requested_item shift.opened is exist - process it [10:22:52]req_shift_opened [10:22:52]FM_GetShiftState [10:22:52]SAM_PROTO_GetShiftState [10:22:52]wFMCommunicate request_size=4 [10:22:52]MH_SAM_APDU [10:22:52]CAPDU: 80 13 01 00 [10:22:52]Write to MH i2c: E2 08 00 60 16 80 13 01 00 00 00 00 00 F3 [10:22:52]Write i2c OK [10:22:52]MH_I2C_Read... [10:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:52]Read from MH i2c: E2 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: E2 0E 00 [10:22:52]MH_I2C_Read... [10:22:52]Read from MH i2c: E2 0E 00 60 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 ED [10:22:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:22:52]wFMCommunicate OK [10:22:52]SAM_PROTO_GetShiftState done [10:22:52]FM_GetShiftState done [10:22:52]req_shift_opened done [10:22:52]requested_item shift.open_date is exist - process it [10:22:52]req_shift_open_date [10:22:52]req_shift_open_date done [10:22:52]produce_requested_data done [10:22:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162471,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:22:52]process_action_free close_receipt [10:22:52]json_value_free [10:22:52]json_value_free done [10:22:52]process_json_proto returns [10:22:52]Send response to host [10:22:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162471,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:22:52]free response buf [10:22:52]execute_script done [10:22:52]execute_script returns [10:22:52]free content buf [10:22:52]Sock 8.Close socket [10:22:52]Sock 8.Thread stoped [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:37]OFD Sender: No OFD packet to send [10:23:42]OFD Sender: No OFD packet to send [10:23:47]OFD Sender: No OFD packet to send [10:23:52]OFD Sender: No OFD packet to send [10:23:57]OFD Sender: No OFD packet to send [10:24:02]OFD Sender: No OFD packet to send [10:24:07]OFD Sender: No OFD packet to send [10:24:12]OFD Sender: No OFD packet to send [10:24:17]OFD Sender: No OFD packet to send [10:24:22]OFD Sender: No OFD packet to send [10:24:27]OFD Sender: No OFD packet to send [10:24:32]OFD Sender: No OFD packet to send [10:24:37]OFD Sender: No OFD packet to send [10:24:42]OFD Sender: No OFD packet to send [10:24:47]OFD Sender: No OFD packet to send [10:24:52]OFD Sender: No OFD packet to send [10:24:57]OFD Sender: No OFD packet to send [10:25:02]OFD Sender: No OFD packet to send [10:25:07]OFD Sender: No OFD packet to send [10:25:12]OFD Sender: No OFD packet to send [10:25:17]OFD Sender: No OFD packet to send [10:25:22]OFD Sender: No OFD packet to send [10:25:27]OFD Sender: No OFD packet to send [10:25:32]OFD Sender: No OFD packet to send [10:25:37]OFD Sender: No OFD packet to send [10:25:42]OFD Sender: No OFD packet to send [10:25:47]OFD Sender: No OFD packet to send [10:25:52]OFD Sender: No OFD packet to send [10:25:57]OFD Sender: No OFD packet to send [10:26:02]OFD Sender: No OFD packet to send [10:26:07]OFD Sender: No OFD packet to send [10:26:12]OFD Sender: No OFD packet to send [10:26:17]OFD Sender: No OFD packet to send [10:26:22]OFD Sender: No OFD packet to send [10:26:27]OFD Sender: No OFD packet to send [10:26:32]OFD Sender: No OFD packet to send [10:26:37]OFD Sender: No OFD packet to send [10:26:42]OFD Sender: No OFD packet to send [10:26:47]OFD Sender: No OFD packet to send [10:26:52]OFD Sender: No OFD packet to send [10:26:57]OFD Sender: No OFD packet to send [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:50]accept exits with 9 [10:27:50]New connection [10:27:50]New thread 3066862948 created [10:27:50]Thread 3067006308 joined [10:27:50]Waiting for new connection... [10:27:50] Sock 9.Parse request [10:27:50]Sock 9.Check first char [10:27:50]Sock 9.First char is OK [10:27:50]request: POST /json_proto HTTP/1.0 [10:27:50]Method: POST [10:27:50]URL: /json_proto [10:27:50]Method is POST - this is cgi request [10:27:50]url: /json_proto [10:27:50]query_string will be loaded in cgi processing [10:27:50]execute_cgi json_proto POST (null) [10:27:50]execute_cgi path=json_proto method=POST [10:27:50]POST find Content-Length [10:27:50]Host: 172.17.39.67:8080 [10:27:50]Content-Length: 683 [10:27:50]Content-Type: application/json [10:27:50] [10:27:50]POST finish read [10:27:50]Found Content-Length = 683 [10:27:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 22.630, "sum" : 1500.37, "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" ] } } [10:27:50]execute_script... [10: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)1319007", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 22.630, "sum" : 1500.37, "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" ] } } [10:27:50]POST & json_proto [10:27:50]process_json_proto [10:27:50]json parsed OK: [10:27:50]protocol is kg_v1.0 [10:27:50]action value=close_receipt [10:27:50]process_action close_receipt [10:27:50]cmd_close_receipt [10:27:50]MH_GetDate [10:27:50]Write to MH i2c: F0 00 00 61 16 66 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: F0 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: F0 09 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: F0 09 00 61 16 00 B4 56 92 66 FA E9 8E 66 48 [10:27:50]GetLastDocTimeStamp 1720866183 [10:27:50]current date 1720866484 [10:27:50]FM_GetShiftState [10:27:50]SAM_PROTO_GetShiftState [10:27:50]wFMCommunicate request_size=4 [10:27:50]MH_SAM_APDU [10:27:50]CAPDU: 80 13 01 00 [10:27:50]Write to MH i2c: E2 08 00 62 16 80 13 01 00 00 00 00 00 F5 [10:27:50]Write i2c OK [10:27:50]MH_I2C_Read... [10:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:50]Read from MH i2c: E2 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 [10:27:50]MH_I2C_Read... [10:27:50]Read from MH i2c: E2 0E 00 62 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EF [10:27:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:27:50]wFMCommunicate OK [10:27:50]SAM_PROTO_GetShiftState done [10:27:50]FM_GetShiftState done [10:27:50]opened in 1720828979 [10:27:50]opened+sec_in_day 1720915379 [10:27:50]quantity*price = 150036 [10:27:50]sum+1 = 150038 [10:27:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 140 13.07.2024 10:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162472 ФПД: 73942600879322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102804&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162472&fm=73942600879322&tin=02508201610067®Number=0000000000090858&sum=150000 [10:27:51]StoreToDocumentArchive [10:27:51]shift 462 fd 162472 [10:27:51]save to /storage/0462/doc_00162472 [10:27:51]save last doc name /storage/0462/doc_00162472 to /storage/kkm_last_doc_name [10:27:51]save OK [10:27:51]Clear old archive folders... [10:27:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:51]tlvbuf is 01C685D0 [10:27:51]SAM_PROTO_ClearQueue [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 09 00 00 [10:27:51]Write to MH i2c: E2 08 00 6F 16 80 09 00 00 00 00 00 00 F7 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]SAM_PROTO_ClearQueue done [10:27:51]KKMCreateOFDPacket [10:27:51]OFDProtocolAddRootSTLVToBuf [10:27:51]FM_MakeSignedData [10:27:51]FM_MakeSignedData [10:27:51]SAM_PROTO_SignData [10:27:51]wFMCommunicate request_size=4 [10:27:51]MH_SAM_APDU [10:27:51]CAPDU: 80 0D 01 02 [10:27:51]Write to MH i2c: E2 08 00 70 16 80 0D 01 02 00 00 00 00 FF [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:51]Read from MH i2c: E2 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 [10:27:51]MH_I2C_Read... [10:27:51]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [10:27:51]RAPDU: 90 00 [10:27:51]wFMCommunicate OK [10:27:51]wFMCommunicate request_size=255 [10:27:51]MH_SAM_APDU [10: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 35 FF 03 08 00 03 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 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 8C 00 00 00 F4 03 04 00 B4 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7A 02 00 35 04 06 00 43 [10:27:51]Write to MH i2c: E2 02 01 71 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 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 8C 00 00 00 F4 03 04 00 B4 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7A 02 00 35 04 06 00 43 00 00 23 [10:27:51]Write i2c OK [10:27:51]MH_I2C_Read... [10:27:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [10:27:52]RAPDU: 90 00 [10:27:52]wFMCommunicate OK [10:27:52]wFMCommunicate request_size=10 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 0D 02 02 05 40 1A 75 8C DA [10:27:52]Write to MH i2c: E2 0D 00 72 16 80 0D 02 02 05 00 40 1A 75 8C DA 00 00 41 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 03 00 72 16 00 90 00 FC [10:27:52]RAPDU: 90 00 [10:27:52]wFMCommunicate OK [10:27:52]wFMCommunicate request_size=4 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 0D 03 02 [10:27:52]Write to MH i2c: E2 08 00 73 16 80 0D 03 02 00 00 00 00 04 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 0B 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 0B 00 73 16 00 1A B0 74 7F 9B DE 10 5C 90 00 A7 [10:27:52]RAPDU: 1A B0 74 7F 9B DE 10 5C 90 00 [10:27:52]wFMCommunicate OK [10:27:52]SAM_PROTO_SignData done [10:27:52]FM_MakeSignedData done [10:27:52]CreateOFDProtocolMessage [10:27:52]wFMCommunicate request_size=4 [10:27:52]MH_SAM_APDU [10:27:52]CAPDU: 80 11 00 00 [10:27:52]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:52]Read from MH i2c: E2 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 17 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 64 [10:27:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:27:52]wFMCommunicate OK [10:27:52]CreateOFDProtocolMessage done [10:27:52]OFDSenderStorePacket 162472 [10:27:52]StoreOFDPacket docnum=162472 [10:27:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 28 CC 07 01 F1 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 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 8C 00 00 00 F4 03 04 00 B4 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7A 02 00 35 04 06 00 43 40 1A 75 8C DA 1A B0 74 7F 9B DE 10 5C [10:27:52]CheckFolder [10:27:52]dirname=/storage/ofd_packets [10:27:52]CheckFolder done [10:27:52]ProducePacketName [10:27:52]name=ofd_packets/00162472 [10:27:52]NVStorageSaveData ofd_packets/00162472 [10:27:52]File name is /storage/ofd_packets/00162472 [10:27:52]Write 301 bytes [10:27:52]NVStorageSaveData done [10:27:52]OFDSenderStorePacket done [10:27:52]KKMCreateOFDPacket done [10:27:52]NVStorageSaveData kkm_last_timestamp [10:27:52]File name is /storage/kkm_last_timestamp [10:27:52]Write 4 bytes [10:27:52]NVStorageSaveData done [10:27:52]ExternCall_PrintAddStr [10:27:52]wPrintStart [10:27:52]Write to MH i2c: 01 00 00 75 16 8B [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 07 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 07 00 75 16 00 00 00 00 00 FF 0F A0 [10:27:52]RasterBufferAndPrint [10:27:52]line Счет N : (1)1319007 [10:27:52]line ИНН: 02508201610067 [10:27:52]line Контрольно-Кассовый Чек [10:27:52]line ПРОДАЖА [10:27:52]line ТРК (МРК, ГНК) : 63 [10:27:52]line Товар: 2710124130 [10:27:52]line Аи-92-К-5 [10:27:52]line 22.630 * 66.30 [10:27:52]line = 1500.37 [10:27:52]line НДС 12% НСП 1% [10:27:52]line > о реализуемом товаре [10:27:52]line ОКРУГЛЕНИЕ: -0.37 [10:27:52]line ИТОГО: 1500.00 [10:27:52]line Внесено: 1500.00 [10:27:52]line СДАЧА: 0.00 [10:27:52]line НСП 1% : 13.28 [10:27:52]line НДС 12% : 159.33 [10:27:52]line Наличными: 1500.00 [10:27:52]line Безнал.: 0.00 [10:27:52]line Место: АЗС № 140 "Партнер Нефть" [10:27:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:27:52]line СНО: Общий режим [10:27:52]line Чек 140 13.07.2024 10:28 [10:27:52]line Смена: 462 ФФД: 1.0 [10:27:52]line ЗНМ: 0300000129 [10:27:52]line РНМ: 0000000000090858 [10:27:52]line Версия ККМ: 001 [10:27:52]line ФМ: 0000000000874899 [10:27:52]line ФД: 162472 [10:27:52]line ФПД: 73942600879322 [10:27:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102804&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162472&fm=73942600879322&tin=02508201610067®Number=0000000000090858&sum=150000 [10:27:52]OFD Sender: Processing packet 162472 [packets to send 105, broken 104] [10:27:52]ProducePacketName [10:27:52]name=ofd_packets/00162472 [10:27:52]OFD Sender: To server: pG, [10:27:52]CommunicateWithHost lk.salyk.kg:30040 [10:27:52]ConnectInit lk.salyk.kg [10:27:52]written 0, free lines is 4095 [10:27:52]Connected sock=10 [10: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 34 38 39 39 0F 01 00 00 28 CC 07 01 F1 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 58 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 15 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 8C 00 00 00 F4 03 04 00 B4 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7A 02 00 35 04 06 00 43 40 1A 75 8C DA 1A B0 74 7F 9B DE 10 5C [10:27:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 45 04 47 00 90 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A8 7A 02 00 F4 03 04 00 C8 02 92 66 B6 04 01 00 00 44 C1 77 BA 93 0D C0 A3 [10:27:52]CommunicateWithHost err = 0 [10:27:52]CheckOFDResponse [10:27:52]1017 (14) - 77093643461234 [10:27:52]1041 (16) - 0000000000874899 [10:27:52]1040 (4) - 162472 [10:27:52]1012 (4) - 13.07.2024 04:30 [10:27:52]1206 (1) - 0 [10:27:52]OFD Sender: Remove packet 162472 [10:27:52]ProducePacketName [10:27:52]name=ofd_packets/00162472 [10:27:52]NVStorageDeleteData [10:27:52]Write to MH i2c: 01 00 00 A0 16 B6 [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 07 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: 01 07 00 A0 16 00 00 00 00 00 D6 0C 9F [10:27:52]RasterBufferAndPrint [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]line [10:27:52]written 0, free lines is 3294 [10:27:52]MH_Cut [10:27:52]Write to MH i2c: D1 01 00 A7 16 01 8F [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 01 00 [10:27:52]MH_I2C_Read... [10:27:52]Read from MH i2c: D1 01 00 A7 16 00 8E [10:27:52]Write to MH i2c: 01 00 00 A8 16 BE [10:27:52]Write i2c OK [10:27:52]MH_I2C_Read... [10:27:53]OFD Sender: No OFD packet to send [10:27:53]*** Cut start [10:27:53]*** Purtial cut [10:27:53]*** CUTSNS_PIN = 0 [10:27:53]*** Stage 1: CUTSNS_PIN = 1 [10:27:55]Read from MH i2c: 01 [10:27:55]MH_I2C_Read... [10:27:55]*** Stop cut motor [10:27:55]*** Cut end [10:27:55]Read from MH i2c: 01 07 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: 01 07 00 A8 16 00 00 00 00 00 FF 0F D3 [10:27:55]process_action close_receipt done [10:27:55]requested_data is exist [10:27:55]produce_requested_data [10:27:55]requested_item fm.sn is exist - process it [10:27:55]wFMCommunicate request_size=4 [10:27:55]MH_SAM_APDU [10:27:55]CAPDU: 80 11 00 00 [10:27:55]Write to MH i2c: E2 08 00 A9 16 80 11 00 00 00 00 00 00 39 [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:55]Read from MH i2c: E2 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 17 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 17 00 A9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [10:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:27:55]wFMCommunicate OK [10:27:55]requested_item fd.num is exist - process it [10:27:55]SAM_PROTO_GetFieldsCounters [10:27:55]wFMCommunicate request_size=4 [10:27:55]MH_SAM_APDU [10:27:55]CAPDU: 80 13 00 00 [10:27:55]Write to MH i2c: E2 08 00 AA 16 80 13 00 00 00 00 00 00 3C [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:55]Read from MH i2c: E2 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 62 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 62 00 AA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [10:27:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:55]wFMCommunicate OK [10:27:55]SAM_PROTO_GetFieldsCounters done [10:27:55]requested_item shift.num is exist - process it [10:27:55]requested_item shift.opened is exist - process it [10:27:55]req_shift_opened [10:27:55]FM_GetShiftState [10:27:55]SAM_PROTO_GetShiftState [10:27:55]wFMCommunicate request_size=4 [10:27:55]MH_SAM_APDU [10:27:55]CAPDU: 80 13 01 00 [10:27:55]Write to MH i2c: E2 08 00 AB 16 80 13 01 00 00 00 00 00 3E [10:27:55]Write i2c OK [10:27:55]MH_I2C_Read... [10:27:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:55]Read from MH i2c: E2 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 0E 00 [10:27:55]MH_I2C_Read... [10:27:55]Read from MH i2c: E2 0E 00 AB 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 38 [10:27:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:27:55]wFMCommunicate OK [10:27:55]SAM_PROTO_GetShiftState done [10:27:55]FM_GetShiftState done [10:27:55]req_shift_opened done [10:27:55]requested_item shift.open_date is exist - process it [10:27:55]req_shift_open_date [10:27:55]req_shift_open_date done [10:27:55]produce_requested_data done [10:27:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162472,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:27:55]process_action_free close_receipt [10:27:55]json_value_free [10:27:55]json_value_free done [10:27:55]process_json_proto returns [10:27:55]Send response to host [10:27:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162472,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:27:55]free response buf [10:27:55]execute_script done [10:27:55]execute_script returns [10:27:55]free content buf [10:27:55]Sock 9.Close socket [10:27:55]Sock 9.Thread stoped [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:21]accept exits with 8 [10:28:21]New connection [10:28:21]New thread 3067006308 created [10:28:21]Thread 3066862948 joined [10:28:21]Waiting for new connection... [10:28:21] Sock 8.Parse request [10:28:21]Sock 8.Check first char [10:28:21]Sock 8.First char is OK [10:28:21]request: POST /json_proto HTTP/1.0 [10:28:21]Method: POST [10:28:21]URL: /json_proto [10:28:21]Method is POST - this is cgi request [10:28:21]url: /json_proto [10:28:21]query_string will be loaded in cgi processing [10:28:21]execute_cgi json_proto POST (null) [10:28:21]execute_cgi path=json_proto method=POST [10:28:21]POST find Content-Length [10:28:21]Host: 172.17.39.67:8080 [10:28:21]Content-Length: 678 [10:28:21]Content-Type: application/json [10:28:21] [10:28:21]POST finish read [10:28:21]Found Content-Length = 678 [10:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:21]execute_script... [10:28: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)1319009", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:21]POST & json_proto [10:28:21]process_json_proto [10:28:21]json parsed OK: [10:28:21]protocol is kg_v1.0 [10:28:21]action value=close_receipt [10:28:21]process_action close_receipt [10:28:21]cmd_close_receipt [10:28:21]MH_GetDate [10:28:21]Write to MH i2c: F0 00 00 AC 16 B1 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 09 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: F0 09 00 AC 16 00 D2 56 92 66 FA E9 8E 66 B1 [10:28:21]GetLastDocTimeStamp 1720866484 [10:28:21]current date 1720866514 [10:28:21]FM_GetShiftState [10:28:21]SAM_PROTO_GetShiftState [10:28:21]wFMCommunicate request_size=4 [10:28:21]MH_SAM_APDU [10:28:21]CAPDU: 80 13 01 00 [10:28:21]Write to MH i2c: E2 08 00 AD 16 80 13 01 00 00 00 00 00 40 [10:28:21]Write i2c OK [10:28:21]MH_I2C_Read... [10:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:21]Read from MH i2c: E2 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0E 00 [10:28:21]MH_I2C_Read... [10:28:21]Read from MH i2c: E2 0E 00 AD 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3A [10:28:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:28:21]wFMCommunicate OK [10:28:21]SAM_PROTO_GetShiftState done [10:28:21]FM_GetShiftState done [10:28:21]opened in 1720828979 [10:28:21]opened+sec_in_day 1720915379 [10:28:21]quantity*price = 40045 [10:28:21]sum+1 = 40046 [10:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 141 13.07.2024 10:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162473 ФПД: 128050190071988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102835&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162473&fm=128050190071988&tin=02508201610067®Number=0000000000090858&sum=40000 [10:28:22]StoreToDocumentArchive [10:28:22]shift 462 fd 162473 [10:28:22]save to /storage/0462/doc_00162473 [10:28:22]save last doc name /storage/0462/doc_00162473 to /storage/kkm_last_doc_name [10:28:22]save OK [10:28:22]Clear old archive folders... [10:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:22]tlvbuf is 016FEBF0 [10:28:22]SAM_PROTO_ClearQueue [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 09 00 00 [10:28:22]Write to MH i2c: E2 08 00 BA 16 80 09 00 00 00 00 00 00 42 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]SAM_PROTO_ClearQueue done [10:28:22]KKMCreateOFDPacket [10:28:22]OFDProtocolAddRootSTLVToBuf [10:28:22]FM_MakeSignedData [10:28:22]FM_MakeSignedData [10:28:22]SAM_PROTO_SignData [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 01 02 [10:28:22]Write to MH i2c: E2 08 00 BB 16 80 0D 01 02 00 00 00 00 4A [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=255 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8D 00 00 00 F4 03 04 00 D3 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7A 02 00 35 04 06 00 74 [10:28:22]Write to MH i2c: E2 02 01 BC 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8D 00 00 00 F4 03 04 00 D3 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7A 02 00 35 04 06 00 74 00 00 FB [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=10 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 02 02 05 76 02 17 B8 B4 [10:28:22]Write to MH i2c: E2 0D 00 BD 16 80 0D 02 02 05 00 76 02 17 B8 B4 00 00 52 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 03 00 BD 16 00 90 00 47 [10:28:22]RAPDU: 90 00 [10:28:22]wFMCommunicate OK [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 0D 03 02 [10:28:22]Write to MH i2c: E2 08 00 BE 16 80 0D 03 02 00 00 00 00 4F [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 0B 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 0B 00 BE 16 00 6F C2 31 D2 CC 75 7B DF 90 00 1F [10:28:22]RAPDU: 6F C2 31 D2 CC 75 7B DF 90 00 [10:28:22]wFMCommunicate OK [10:28:22]SAM_PROTO_SignData done [10:28:22]FM_MakeSignedData done [10:28:22]CreateOFDProtocolMessage [10:28:22]wFMCommunicate request_size=4 [10:28:22]MH_SAM_APDU [10:28:22]CAPDU: 80 11 00 00 [10:28:22]Write to MH i2c: E2 08 00 BF 16 80 11 00 00 00 00 00 00 4F [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:22]Read from MH i2c: E2 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 17 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: E2 17 00 BF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [10:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:28:22]wFMCommunicate OK [10:28:22]CreateOFDProtocolMessage done [10:28:22]OFDSenderStorePacket 162473 [10:28:22]StoreOFDPacket docnum=162473 [10:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3F DE 07 01 C6 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8D 00 00 00 F4 03 04 00 D3 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7A 02 00 35 04 06 00 74 76 02 17 B8 B4 6F C2 31 D2 CC 75 7B DF [10:28:22]CheckFolder [10:28:22]dirname=/storage/ofd_packets [10:28:22]CheckFolder done [10:28:22]ProducePacketName [10:28:22]name=ofd_packets/00162473 [10:28:22]NVStorageSaveData ofd_packets/00162473 [10:28:22]File name is /storage/ofd_packets/00162473 [10:28:22]Write 301 bytes [10:28:22]NVStorageSaveData done [10:28:22]OFDSenderStorePacket done [10:28:22]KKMCreateOFDPacket done [10:28:22]NVStorageSaveData kkm_last_timestamp [10:28:22]File name is /storage/kkm_last_timestamp [10:28:22]Write 4 bytes [10:28:22]NVStorageSaveData done [10:28:22]ExternCall_PrintAddStr [10:28:22]wPrintStart [10:28:22]Write to MH i2c: 01 00 00 C0 16 D6 [10:28:22]Write i2c OK [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 [10:28:22]MH_I2C_Read... [10:28:22]Read from MH i2c: 01 07 00 C0 16 00 00 00 00 00 FF 0F EB [10:28:22]RasterBufferAndPrint [10:28:22]line Счет N : (1)1319009 [10:28:22]line ИНН: 02508201610067 [10:28:22]line Контрольно-Кассовый Чек [10:28:22]line ПРОДАЖА [10:28:22]line ТРК (МРК, ГНК) : 33 [10:28:22]line Товар: 2710124130 [10:28:22]line Аи-92-К-5 [10:28:22]line 6.040 * 66.30 [10:28:22]line = 400.45 [10:28:22]line НДС 12% НСП 1% [10:28:22]line > о реализуемом товаре [10:28:22]line ОКРУГЛЕНИЕ: -0.45 [10:28:22]line ИТОГО: 400.00 [10:28:22]line Внесено: 400.00 [10:28:22]line СДАЧА: 0.00 [10:28:22]line НСП 1% : 3.54 [10:28:22]line НДС 12% : 42.53 [10:28:22]line Наличными: 400.00 [10:28:22]line Безнал.: 0.00 [10:28:22]line Место: АЗС № 140 "Партнер Нефть" [10:28:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:28:22]line СНО: Общий режим [10:28:22]line Чек 141 13.07.2024 10:28 [10:28:22]line Смена: 462 ФФД: 1.0 [10:28:22]line ЗНМ: 0300000129 [10:28:22]line РНМ: 0000000000090858 [10:28:22]line Версия ККМ: 001 [10:28:22]line ФМ: 0000000000874899 [10:28:22]line ФД: 162473 [10:28:22]line ФПД: 128050190071988 [10:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102835&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162473&fm=128050190071988&tin=02508201610067®Number=0000000000090858&sum=40000 [10:28:23]OFD Sender: Processing packet 162473 [packets to send 105, broken 104] [10:28:23]ProducePacketName [10:28:23]name=ofd_packets/00162473 [10:28:23]OFD Sender: To server: pG, [10:28:23]CommunicateWithHost lk.salyk.kg:30040 [10:28:23]ConnectInit lk.salyk.kg [10:28:23]written 0, free lines is 4095 [10:28:23]Connected sock=10 [10:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3F DE 07 01 C6 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 8D 00 00 00 F4 03 04 00 D3 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7A 02 00 35 04 06 00 74 76 02 17 B8 B4 6F C2 31 D2 CC 75 7B DF [10:28:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DF B5 47 00 ED F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 A9 7A 02 00 F4 03 04 00 E7 02 92 66 B6 04 01 00 00 29 AB 8E B0 10 CC 72 C4 [10:28:23]CommunicateWithHost err = 0 [10:28:23]CheckOFDResponse [10:28:23]1017 (14) - 77093643461234 [10:28:23]1041 (16) - 0000000000874899 [10:28:23]1040 (4) - 162473 [10:28:23]1012 (4) - 13.07.2024 04:30 [10:28:23]1206 (1) - 0 [10:28:23]OFD Sender: Remove packet 162473 [10:28:23]ProducePacketName [10:28:23]name=ofd_packets/00162473 [10:28:23]NVStorageDeleteData [10:28:23]Write to MH i2c: 01 00 00 EB 16 01 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: 01 07 00 EB 16 00 00 00 00 00 F7 0C 0B [10:28:23]RasterBufferAndPrint [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]line [10:28:23]written 0, free lines is 3328 [10:28:23]MH_Cut [10:28:23]Write to MH i2c: D1 01 00 F2 16 01 DA [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 [10:28:23]MH_I2C_Read... [10:28:23]Read from MH i2c: D1 01 00 F2 16 00 D9 [10:28:23]Write to MH i2c: 01 00 00 F3 16 09 [10:28:23]Write i2c OK [10:28:23]MH_I2C_Read... [10:28:23]OFD Sender: No OFD packet to send [10:28:24]*** Cut start [10:28:24]*** Purtial cut [10:28:24]*** Stage 1: CUTSNS_PIN = 1 [10:28:24]Read from MH i2c: 01 [10:28:24]MH_I2C_Read... [10:28:24]*** Stop cut motor [10:28:24]*** Cut end [10:28:24]Read from MH i2c: 01 07 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: 01 07 00 F3 16 00 00 00 00 00 FF 0F 1E [10:28:24]process_action close_receipt done [10:28:24]requested_data is exist [10:28:24]produce_requested_data [10:28:24]requested_item fm.sn is exist - process it [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 11 00 00 [10:28:24]Write to MH i2c: E2 08 00 F4 16 80 11 00 00 00 00 00 00 84 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 17 00 F4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E4 [10:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:28:24]wFMCommunicate OK [10:28:24]requested_item fd.num is exist - process it [10:28:24]SAM_PROTO_GetFieldsCounters [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 00 00 [10:28:24]Write to MH i2c: E2 08 00 F5 16 80 13 00 00 00 00 00 00 87 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 62 00 F5 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [10:28:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 A9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetFieldsCounters done [10:28:24]requested_item shift.num is exist - process it [10:28:24]requested_item shift.opened is exist - process it [10:28:24]req_shift_opened [10:28:24]FM_GetShiftState [10:28:24]SAM_PROTO_GetShiftState [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 01 00 [10:28:24]Write to MH i2c: E2 08 00 F6 16 80 13 01 00 00 00 00 00 89 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 F6 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 83 [10:28:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetShiftState done [10:28:24]FM_GetShiftState done [10:28:24]req_shift_opened done [10:28:24]requested_item shift.open_date is exist - process it [10:28:24]req_shift_open_date [10:28:24]req_shift_open_date done [10:28:24]produce_requested_data done [10:28:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162473,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:28:24]process_action_free close_receipt [10:28:24]json_value_free [10:28:24]json_value_free done [10:28:24]process_json_proto returns [10:28:24]Send response to host [10:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162473,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:28:24]free response buf [10:28:24]execute_script done [10:28:24]execute_script returns [10:28:24]free content buf [10:28:24]Sock 8.Close socket [10:28:24]Sock 8.Thread stoped [10:28:28]OFD Sender: No OFD packet to send [10:28:33]OFD Sender: No OFD packet to send [10:28:38]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:56]accept exits with 9 [10:28:56]New connection [10:28:56]New thread 3066862948 created [10:28:56]Thread 3067006308 joined [10:28:56]Waiting for new connection... [10:28:56] Sock 9.Parse request [10:28:56]Sock 9.Check first char [10:28:56]Sock 9.First char is OK [10:28:56]request: POST /json_proto HTTP/1.0 [10:28:56]Method: POST [10:28:56]URL: /json_proto [10:28:56]Method is POST - this is cgi request [10:28:56]url: /json_proto [10:28:56]query_string will be loaded in cgi processing [10:28:56]execute_cgi json_proto POST (null) [10:28:56]execute_cgi path=json_proto method=POST [10:28:56]POST find Content-Length [10:28:56]Host: 172.17.39.67:8080 [10:28:56]Content-Length: 683 [10:28:56]Content-Type: application/json [10:28:56] [10:28:56]POST finish read [10:28:56]Found Content-Length = 683 [10:28:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.070, "sum" : 1330.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:56]execute_script... [10:28: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)1319008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.070, "sum" : 1330.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1330.00, "total" : 1330.00, "payments": [ { "type": 0, "sum" : 1330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:28:56]POST & json_proto [10:28:56]process_json_proto [10:28:56]json parsed OK: [10:28:56]protocol is kg_v1.0 [10:28:56]action value=close_receipt [10:28:56]process_action close_receipt [10:28:56]cmd_close_receipt [10:28:56]MH_GetDate [10:28:56]Write to MH i2c: F0 00 00 F7 16 FC [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: F0 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: F0 09 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: F0 09 00 F7 16 00 F6 56 92 66 FA E9 8E 66 20 [10:28:56]GetLastDocTimeStamp 1720866515 [10:28:56]current date 1720866550 [10:28:56]FM_GetShiftState [10:28:56]SAM_PROTO_GetShiftState [10:28:56]wFMCommunicate request_size=4 [10:28:56]MH_SAM_APDU [10:28:56]CAPDU: 80 13 01 00 [10:28:56]Write to MH i2c: E2 08 00 F8 16 80 13 01 00 00 00 00 00 8B [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:56]Read from MH i2c: E2 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 0E 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 0E 00 F8 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 85 [10:28:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:28:56]wFMCommunicate OK [10:28:56]SAM_PROTO_GetShiftState done [10:28:56]FM_GetShiftState done [10:28:56]opened in 1720828979 [10:28:56]opened+sec_in_day 1720915379 [10:28:56]quantity*price = 133064 [10:28:56]sum+1 = 133065 [10:28:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.64 ИТОГО: 1330.00 Внесено: 1330.00 СДАЧА: 0.00 НСП 1% : 11.78 НДС 12% : 141.31 Наличными: 1330.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 142 13.07.2024 10:29 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162474 ФПД: 116166895459478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102910&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162474&fm=116166895459478&tin=02508201610067®Number=0000000000090858&sum=133000 [10:28:57]StoreToDocumentArchive [10:28:57]shift 462 fd 162474 [10:28:57]save to /storage/0462/doc_00162474 [10:28:57]save last doc name /storage/0462/doc_00162474 to /storage/kkm_last_doc_name [10:28:57]save OK [10:28:57]Clear old archive folders... [10:28:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:57]tlvbuf is 01A03080 [10:28:57]SAM_PROTO_ClearQueue [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 09 00 00 [10:28:57]Write to MH i2c: E2 08 00 05 17 80 09 00 00 00 00 00 00 8E [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [10:28:57]RAPDU: 90 00 [10:28:57]wFMCommunicate OK [10:28:57]SAM_PROTO_ClearQueue done [10:28:57]KKMCreateOFDPacket [10:28:57]OFDProtocolAddRootSTLVToBuf [10:28:57]FM_MakeSignedData [10:28:57]FM_MakeSignedData [10:28:57]SAM_PROTO_SignData [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 0D 01 02 [10:28:57]Write to MH i2c: E2 08 00 06 17 80 0D 01 02 00 00 00 00 96 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [10:28:57]RAPDU: 90 00 [10:28:57]wFMCommunicate OK [10:28:57]wFMCommunicate request_size=255 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C8 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 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 F6 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7A 02 00 35 04 06 00 69 [10:28:57]Write to MH i2c: E2 02 01 07 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C8 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 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 F6 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7A 02 00 35 04 06 00 69 00 00 90 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:57]Read from MH i2c: E2 03 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [10:28:57]RAPDU: 90 00 [10:28:57]wFMCommunicate OK [10:28:57]wFMCommunicate request_size=10 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 0D 02 02 05 A7 36 89 DC 96 [10:28:57]Write to MH i2c: E2 0D 00 08 17 80 0D 02 02 05 00 A7 36 89 DC 96 00 00 7B [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 03 00 08 17 00 90 00 93 [10:28:57]RAPDU: 90 00 [10:28:57]wFMCommunicate OK [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 0D 03 02 [10:28:57]Write to MH i2c: E2 08 00 09 17 80 0D 03 02 00 00 00 00 9B [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 0B 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 0B 00 09 17 00 97 0C A1 96 08 DD F4 B2 90 00 01 [10:28:57]RAPDU: 97 0C A1 96 08 DD F4 B2 90 00 [10:28:57]wFMCommunicate OK [10:28:57]SAM_PROTO_SignData done [10:28:57]FM_MakeSignedData done [10:28:57]CreateOFDProtocolMessage [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 11 00 00 [10:28:57]Write to MH i2c: E2 08 00 0A 17 80 11 00 00 00 00 00 00 9B [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 17 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 17 00 0A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FB [10:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:28:57]wFMCommunicate OK [10:28:57]CreateOFDProtocolMessage done [10:28:57]OFDSenderStorePacket 162474 [10:28:57]StoreOFDPacket docnum=162474 [10:28:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B7 B2 07 01 92 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C8 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 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 F6 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7A 02 00 35 04 06 00 69 A7 36 89 DC 96 97 0C A1 96 08 DD F4 B2 [10:28:57]CheckFolder [10:28:57]dirname=/storage/ofd_packets [10:28:57]CheckFolder done [10:28:57]ProducePacketName [10:28:57]name=ofd_packets/00162474 [10:28:57]NVStorageSaveData ofd_packets/00162474 [10:28:57]File name is /storage/ofd_packets/00162474 [10:28:57]Write 301 bytes [10:28:57]NVStorageSaveData done [10:28:57]OFDSenderStorePacket done [10:28:57]KKMCreateOFDPacket done [10:28:57]NVStorageSaveData kkm_last_timestamp [10:28:57]File name is /storage/kkm_last_timestamp [10:28:57]Write 4 bytes [10:28:57]NVStorageSaveData done [10:28:57]ExternCall_PrintAddStr [10:28:57]wPrintStart [10:28:57]Write to MH i2c: 01 00 00 0B 17 22 [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: 01 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: 01 07 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: 01 07 00 0B 17 00 00 00 00 00 FF 0F 37 [10:28:57]RasterBufferAndPrint [10:28:57]line Счет N : (1)1319008 [10:28:57]line ИНН: 02508201610067 [10:28:57]line Контрольно-Кассовый Чек [10:28:57]line ПРОДАЖА [10:28:57]line ТРК (МРК, ГНК) : 53 [10:28:57]line Товар: 2710124130 [10:28:57]line Аи-92-К-5 [10:28:57]line 20.070 * 66.30 [10:28:57]line = 1330.64 [10:28:57]line НДС 12% НСП 1% [10:28:57]line > о реализуемом товаре [10:28:57]line ОКРУГЛЕНИЕ: -0.64 [10:28:57]line ИТОГО: 1330.00 [10:28:57]line Внесено: 1330.00 [10:28:57]line СДАЧА: 0.00 [10:28:57]line НСП 1% : 11.78 [10:28:57]line НДС 12% : 141.31 [10:28:57]line Наличными: 1330.00 [10:28:57]line Безнал.: 0.00 [10:28:57]line Место: АЗС № 140 "Партнер Нефть" [10:28:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:28:57]line СНО: Общий режим [10:28:57]line Чек 142 13.07.2024 10:29 [10:28:57]line Смена: 462 ФФД: 1.0 [10:28:57]line ЗНМ: 0300000129 [10:28:57]line РНМ: 0000000000090858 [10:28:57]line Версия ККМ: 001 [10:28:57]line ФМ: 0000000000874899 [10:28:57]line ФД: 162474 [10:28:57]line ФПД: 116166895459478 [10:28:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T102910&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162474&fm=116166895459478&tin=02508201610067®Number=0000000000090858&sum=133000 [10:28:58]OFD Sender: Processing packet 162474 [packets to send 105, broken 104] [10:28:58]ProducePacketName [10:28:58]name=ofd_packets/00162474 [10:28:58]OFD Sender: To server: pG, [10:28:58]CommunicateWithHost lk.salyk.kg:30040 [10:28:58]ConnectInit lk.salyk.kg [10:28:58]written 0, free lines is 4095 [10:28:58]Connected sock=10 [10:28:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B7 B2 07 01 92 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C8 07 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 07 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 37 00 00 00 00 07 04 06 00 88 07 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 F6 56 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AA 7A 02 00 35 04 06 00 69 A7 36 89 DC 96 97 0C A1 96 08 DD F4 B2 [10:28:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CE F2 47 00 71 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 34 38 39 39 10 04 04 00 AA 7A 02 00 F4 03 04 00 0A 03 92 66 B6 04 01 00 00 D9 91 B3 3D 89 68 8B D3 [10:28:58]CommunicateWithHost err = 0 [10:28:58]CheckOFDResponse [10:28:58]1017 (14) - 77093643461234 [10:28:58]1041 (16) - 0000000000874899 [10:28:58]1040 (4) - 162474 [10:28:58]1012 (4) - 13.07.2024 04:31 [10:28:58]1206 (1) - 0 [10:28:58]OFD Sender: Remove packet 162474 [10:28:58]ProducePacketName [10:28:58]name=ofd_packets/00162474 [10:28:58]NVStorageDeleteData [10:28:58]Write to MH i2c: 01 00 00 36 17 4D [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: 01 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: 01 07 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: 01 07 00 36 17 00 00 00 00 00 DF 0C 3F [10:28:58]RasterBufferAndPrint [10:28:58]line [10:28:58]line [10:28:58]line [10:28:58]line [10:28:58]line [10:28:58]written 0, free lines is 3302 [10:28:58]MH_Cut [10:28:58]Write to MH i2c: D1 01 00 3D 17 01 26 [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: D1 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: D1 01 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: D1 01 00 3D 17 00 25 [10:28:58]Write to MH i2c: 01 00 00 3E 17 55 [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:59]OFD Sender: No OFD packet to send [10:28:59]*** Cut start [10:28:59]*** Purtial cut [10:28:59]*** CUTSNS_PIN = 0 [10:28:59]*** Stage 1: CUTSNS_PIN = 1 [10:29:01]Read from MH i2c: 01 [10:29:01]MH_I2C_Read... [10:29:01]*** Stop cut motor [10:29:01]*** Cut end [10:29:01]Read from MH i2c: 01 07 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 07 00 3E 17 00 00 00 00 00 FF 0F 6A [10:29:01]process_action close_receipt done [10:29:01]requested_data is exist [10:29:01]produce_requested_data [10:29:01]requested_item fm.sn is exist - process it [10:29:01]wFMCommunicate request_size=4 [10:29:01]MH_SAM_APDU [10:29:01]CAPDU: 80 11 00 00 [10:29:01]Write to MH i2c: E2 08 00 3F 17 80 11 00 00 00 00 00 00 D0 [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:01]Read from MH i2c: E2 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 17 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 17 00 3F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [10:29:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:29:01]wFMCommunicate OK [10:29:01]requested_item fd.num is exist - process it [10:29:01]SAM_PROTO_GetFieldsCounters [10:29:01]wFMCommunicate request_size=4 [10:29:01]MH_SAM_APDU [10:29:01]CAPDU: 80 13 00 00 [10:29:01]Write to MH i2c: E2 08 00 40 17 80 13 00 00 00 00 00 00 D3 [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:01]Read from MH i2c: E2 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 62 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 62 00 40 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [10:29:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:01]wFMCommunicate OK [10:29:01]SAM_PROTO_GetFieldsCounters done [10:29:01]requested_item shift.num is exist - process it [10:29:01]requested_item shift.opened is exist - process it [10:29:01]req_shift_opened [10:29:01]FM_GetShiftState [10:29:01]SAM_PROTO_GetShiftState [10:29:01]wFMCommunicate request_size=4 [10:29:01]MH_SAM_APDU [10:29:01]CAPDU: 80 13 01 00 [10:29:01]Write to MH i2c: E2 08 00 41 17 80 13 01 00 00 00 00 00 D5 [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:01]Read from MH i2c: E2 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 0E 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 0E 00 41 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CF [10:29:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:29:01]wFMCommunicate OK [10:29:01]SAM_PROTO_GetShiftState done [10:29:01]FM_GetShiftState done [10:29:01]req_shift_opened done [10:29:01]requested_item shift.open_date is exist - process it [10:29:01]req_shift_open_date [10:29:01]req_shift_open_date done [10:29:01]produce_requested_data done [10:29:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162474,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:29:01]process_action_free close_receipt [10:29:01]json_value_free [10:29:01]json_value_free done [10:29:01]process_json_proto returns [10:29:01]Send response to host [10:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162474,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:29:01]free response buf [10:29:01]execute_script done [10:29:01]execute_script returns [10:29:01]free content buf [10:29:01]Sock 9.Close socket [10:29:01]Sock 9.Thread stoped [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:39]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:34]OFD Sender: No OFD packet to send [10:35:39]OFD Sender: No OFD packet to send [10:35:44]OFD Sender: No OFD packet to send [10:35:49]OFD Sender: No OFD packet to send [10:35:54]OFD Sender: No OFD packet to send [10:35:59]OFD Sender: No OFD packet to send [10:36:03]accept exits with 8 [10:36:03]New connection [10:36:03]New thread 3067006308 created [10:36:03]Thread 3066862948 joined [10:36:03]Waiting for new connection... [10:36:03] Sock 8.Parse request [10:36:03]Sock 8.Check first char [10:36:03]Sock 8.First char is OK [10:36:03]request: POST /json_proto HTTP/1.0 [10:36:03]Method: POST [10:36:03]URL: /json_proto [10:36:03]Method is POST - this is cgi request [10:36:03]url: /json_proto [10:36:03]query_string will be loaded in cgi processing [10:36:03]execute_cgi json_proto POST (null) [10:36:03]execute_cgi path=json_proto method=POST [10:36:03]POST find Content-Length [10:36:03]Host: 172.17.39.67:8080 [10:36:03]Content-Length: 684 [10:36:03]Content-Type: application/json [10:36:03] [10:36:03]POST finish read [10:36:03]Found Content-Length = 684 [10:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 12.060, "sum" : 875.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:03]execute_script... [10:36:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 12.060, "sum" : 875.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:03]POST & json_proto [10:36:03]process_json_proto [10:36:03]json parsed OK: [10:36:03]protocol is kg_v1.0 [10:36:03]action value=close_receipt [10:36:03]process_action close_receipt [10:36:03]cmd_close_receipt [10:36:03]MH_GetDate [10:36:03]Write to MH i2c: F0 00 00 42 17 48 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: F0 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: F0 09 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: F0 09 00 42 17 00 A1 58 92 66 FA E9 8E 66 19 [10:36:03]GetLastDocTimeStamp 1720866550 [10:36:03]current date 1720866977 [10:36:03]FM_GetShiftState [10:36:03]SAM_PROTO_GetShiftState [10:36:03]wFMCommunicate request_size=4 [10:36:03]MH_SAM_APDU [10:36:03]CAPDU: 80 13 01 00 [10:36:03]Write to MH i2c: E2 08 00 43 17 80 13 01 00 00 00 00 00 D7 [10:36:03]Write i2c OK [10:36:03]MH_I2C_Read... [10:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:03]Read from MH i2c: E2 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0E 00 [10:36:03]MH_I2C_Read... [10:36:03]Read from MH i2c: E2 0E 00 43 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D1 [10:36:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:36:03]wFMCommunicate OK [10:36:03]SAM_PROTO_GetShiftState done [10:36:03]FM_GetShiftState done [10:36:03]opened in 1720828979 [10:36:03]opened+sec_in_day 1720915379 [10:36:03]quantity*price = 87555 [10:36:03]sum+1 = 87557 [10:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 875.00 Внесено: 875.00 СДАЧА: 0.00 НСП 1% : 7.75 НДС 12% : 92.98 Наличными: 875.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 143 13.07.2024 10:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162475 ФПД: 24537422155211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103617&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162475&fm=24537422155211&tin=02508201610067®Number=0000000000090858&sum=87500 [10:36:04]StoreToDocumentArchive [10:36:04]shift 462 fd 162475 [10:36:04]save to /storage/0462/doc_00162475 [10:36:04]save last doc name /storage/0462/doc_00162475 to /storage/kkm_last_doc_name [10:36:04]save OK [10:36:04]Clear old archive folders... [10:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:36:04]tlvbuf is 01C58CF0 [10:36:04]SAM_PROTO_ClearQueue [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 09 00 00 [10:36:04]Write to MH i2c: E2 08 00 50 17 80 09 00 00 00 00 00 00 D9 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [10:36:04]RAPDU: 90 00 [10:36:04]wFMCommunicate OK [10:36:04]SAM_PROTO_ClearQueue done [10:36:04]KKMCreateOFDPacket [10:36:04]OFDProtocolAddRootSTLVToBuf [10:36:04]FM_MakeSignedData [10:36:04]FM_MakeSignedData [10:36:04]SAM_PROTO_SignData [10:36:04]wFMCommunicate request_size=4 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 0D 01 02 [10:36:04]Write to MH i2c: E2 08 00 51 17 80 0D 01 02 00 00 00 00 E1 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:04]Read from MH i2c: E2 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 [10:36:04]MH_I2C_Read... [10:36:04]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [10:36:04]RAPDU: 90 00 [10:36:04]wFMCommunicate OK [10:36:04]wFMCommunicate request_size=255 [10:36:04]MH_SAM_APDU [10:36:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1C 2F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A1 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7A 02 00 35 04 06 00 [10:36:04]Write to MH i2c: E2 02 01 52 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1C 2F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A1 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7A 02 00 35 04 06 00 00 00 90 [10:36:04]Write i2c OK [10:36:04]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 03 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 03 00 52 17 00 90 00 DD [10:36:05]RAPDU: 90 00 [10:36:05]wFMCommunicate OK [10:36:05]wFMCommunicate request_size=11 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 0D 02 02 06 16 51 10 54 CD CB [10:36:05]Write to MH i2c: E2 0E 00 53 17 80 0D 02 02 06 00 16 51 10 54 CD CB 00 00 53 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 03 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 03 00 53 17 00 90 00 DE [10:36:05]RAPDU: 90 00 [10:36:05]wFMCommunicate OK [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 0D 03 02 [10:36:05]Write to MH i2c: E2 08 00 54 17 80 0D 03 02 00 00 00 00 E6 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0B 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 0B 00 54 17 00 E8 9C 35 15 9F AC E5 54 90 00 39 [10:36:05]RAPDU: E8 9C 35 15 9F AC E5 54 90 00 [10:36:05]wFMCommunicate OK [10:36:05]SAM_PROTO_SignData done [10:36:05]FM_MakeSignedData done [10:36:05]CreateOFDProtocolMessage [10:36:05]wFMCommunicate request_size=4 [10:36:05]MH_SAM_APDU [10:36:05]CAPDU: 80 11 00 00 [10:36:05]Write to MH i2c: E2 08 00 55 17 80 11 00 00 00 00 00 00 E6 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:05]Read from MH i2c: E2 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: E2 17 00 55 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [10:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:36:05]wFMCommunicate OK [10:36:05]CreateOFDProtocolMessage done [10:36:05]OFDSenderStorePacket 162475 [10:36:05]StoreOFDPacket docnum=162475 [10:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8A F6 08 01 1F 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1C 2F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A1 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7A 02 00 35 04 06 00 16 51 10 54 CD CB E8 9C 35 15 9F AC E5 54 [10:36:05]CheckFolder [10:36:05]dirname=/storage/ofd_packets [10:36:05]CheckFolder done [10:36:05]ProducePacketName [10:36:05]name=ofd_packets/00162475 [10:36:05]NVStorageSaveData ofd_packets/00162475 [10:36:05]File name is /storage/ofd_packets/00162475 [10:36:05]Write 302 bytes [10:36:05]NVStorageSaveData done [10:36:05]OFDSenderStorePacket done [10:36:05]KKMCreateOFDPacket done [10:36:05]NVStorageSaveData kkm_last_timestamp [10:36:05]File name is /storage/kkm_last_timestamp [10:36:05]Write 4 bytes [10:36:05]NVStorageSaveData done [10:36:05]ExternCall_PrintAddStr [10:36:05]wPrintStart [10:36:05]Write to MH i2c: 01 00 00 56 17 6D [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 56 17 00 00 00 00 00 FF 0F 82 [10:36:05]RasterBufferAndPrint [10:36:05]line Счет N : (1)1319012 [10:36:05]line ИНН: 02508201610067 [10:36:05]line Контрольно-Кассовый Чек [10:36:05]line ПРОДАЖА [10:36:05]line ТРК (МРК, ГНК) : 61 [10:36:05]line Товар: 2710194210 [10:36:05]line ДТ(л)-К-5 [10:36:05]line 12.060 * 72.60 [10:36:05]line = 875.56 [10:36:05]line НДС 12% НСП 1% [10:36:05]line > о реализуемом товаре [10:36:05]line ОКРУГЛЕНИЕ: -0.56 [10:36:05]line ИТОГО: 875.00 [10:36:05]line Внесено: 875.00 [10:36:05]line СДАЧА: 0.00 [10:36:05]line НСП 1% : 7.75 [10:36:05]line НДС 12% : 92.98 [10:36:05]line Наличными: 875.00 [10:36:05]line Безнал.: 0.00 [10:36:05]line Место: АЗС № 140 "Партнер Нефть" [10:36:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:36:05]line СНО: Общий режим [10:36:05]line Чек 143 13.07.2024 10:36 [10:36:05]line Смена: 462 ФФД: 1.0 [10:36:05]line ЗНМ: 0300000129 [10:36:05]line РНМ: 0000000000090858 [10:36:05]line Версия ККМ: 001 [10:36:05]line ФМ: 0000000000874899 [10:36:05]line ФД: 162475 [10:36:05]line ФПД: 24537422155211 [10:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103617&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162475&fm=24537422155211&tin=02508201610067®Number=0000000000090858&sum=87500 [10:36:05]OFD Sender: Processing packet 162475 [packets to send 105, broken 104] [10:36:05]ProducePacketName [10:36:05]name=ofd_packets/00162475 [10:36:05]OFD Sender: To server: pG, [10:36:05]CommunicateWithHost lk.salyk.kg:30040 [10:36:05]ConnectInit lk.salyk.kg [10:36:05]written 0, free lines is 4095 [10:36:05]Connected sock=10 [10:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8A F6 08 01 1F 07 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 1C 2F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 56 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A1 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7A 02 00 35 04 06 00 16 51 10 54 CD CB E8 9C 35 15 9F AC E5 54 [10:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E0 E6 47 00 A3 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AB 7A 02 00 F4 03 04 00 B6 04 92 66 B6 04 01 00 00 9B 0D D1 4C A0 3B F1 76 [10:36:05]CommunicateWithHost err = 0 [10:36:05]CheckOFDResponse [10:36:05]1017 (14) - 77093643461234 [10:36:05]1041 (16) - 0000000000874899 [10:36:05]1040 (4) - 162475 [10:36:05]1012 (4) - 13.07.2024 04:38 [10:36:05]1206 (1) - 0 [10:36:05]OFD Sender: Remove packet 162475 [10:36:05]ProducePacketName [10:36:05]name=ofd_packets/00162475 [10:36:05]NVStorageDeleteData [10:36:05]Write to MH i2c: 01 00 00 81 17 98 [10:36:05]Write i2c OK [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 [10:36:05]MH_I2C_Read... [10:36:05]Read from MH i2c: 01 07 00 81 17 00 00 00 00 00 EE 0C 99 [10:36:05]RasterBufferAndPrint [10:36:05]line [10:36:05]line [10:36:05]line [10:36:05]line [10:36:05]line [10:36:06]written 0, free lines is 3319 [10:36:06]MH_Cut [10:36:06]Write to MH i2c: D1 01 00 88 17 01 71 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: D1 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: D1 01 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: D1 01 00 88 17 00 70 [10:36:06]Write to MH i2c: 01 00 00 89 17 A0 [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:06]OFD Sender: No OFD packet to send [10:36:06]*** Cut start [10:36:06]*** Purtial cut [10:36:06]*** Stage 1: CUTSNS_PIN = 1 [10:36:06]Read from MH i2c: 01 [10:36:06]MH_I2C_Read... [10:36:06]*** Stop cut motor [10:36:06]*** Cut end [10:36:06]Read from MH i2c: 01 07 00 [10:36:06]MH_I2C_Read... [10:36:06]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 FF 0F B5 [10:36:06]process_action close_receipt done [10:36:06]requested_data is exist [10:36:06]produce_requested_data [10:36:06]requested_item fm.sn is exist - process it [10:36:06]wFMCommunicate request_size=4 [10:36:06]MH_SAM_APDU [10:36:06]CAPDU: 80 11 00 00 [10:36:06]Write to MH i2c: E2 08 00 8A 17 80 11 00 00 00 00 00 00 1B [10:36:06]Write i2c OK [10:36:06]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 17 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 17 00 8A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [10:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:36:07]wFMCommunicate OK [10:36:07]requested_item fd.num is exist - process it [10:36:07]SAM_PROTO_GetFieldsCounters [10:36:07]wFMCommunicate request_size=4 [10:36:07]MH_SAM_APDU [10:36:07]CAPDU: 80 13 00 00 [10:36:07]Write to MH i2c: E2 08 00 8B 17 80 13 00 00 00 00 00 00 1E [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 62 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 62 00 8B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:36:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:07]wFMCommunicate OK [10:36:07]SAM_PROTO_GetFieldsCounters done [10:36:07]requested_item shift.num is exist - process it [10:36:07]requested_item shift.opened is exist - process it [10:36:07]req_shift_opened [10:36:07]FM_GetShiftState [10:36:07]SAM_PROTO_GetShiftState [10:36:07]wFMCommunicate request_size=4 [10:36:07]MH_SAM_APDU [10:36:07]CAPDU: 80 13 01 00 [10:36:07]Write to MH i2c: E2 08 00 8C 17 80 13 01 00 00 00 00 00 20 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 8C 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1A [10:36:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:36:07]wFMCommunicate OK [10:36:07]SAM_PROTO_GetShiftState done [10:36:07]FM_GetShiftState done [10:36:07]req_shift_opened done [10:36:07]requested_item shift.open_date is exist - process it [10:36:07]req_shift_open_date [10:36:07]req_shift_open_date done [10:36:07]produce_requested_data done [10:36:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162475,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:36:07]process_action_free close_receipt [10:36:07]json_value_free [10:36:07]json_value_free done [10:36:07]process_json_proto returns [10:36:07]Send response to host [10:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162475,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:36:07]free response buf [10:36:07]execute_script done [10:36:07]execute_script returns [10:36:07]free content buf [10:36:07]Sock 8.Close socket [10:36:07]Sock 8.Thread stoped [10:36:07]accept exits with 9 [10:36:07]New connection [10:36:07]New thread 3066862948 created [10:36:07]Thread 3067006308 joined [10:36:07]Waiting for new connection... [10:36:07] Sock 9.Parse request [10:36:07]Sock 9.Check first char [10:36:07]Sock 9.First char is OK [10:36:07]request: POST /json_proto HTTP/1.0 [10:36:07]Method: POST [10:36:07]URL: /json_proto [10:36:07]Method is POST - this is cgi request [10:36:07]url: /json_proto [10:36:07]query_string will be loaded in cgi processing [10:36:07]execute_cgi json_proto POST (null) [10:36:07]execute_cgi path=json_proto method=POST [10:36:07]POST find Content-Length [10:36:07]Host: 172.17.39.67:8080 [10:36:07]Content-Length: 679 [10:36:07]Content-Type: application/json [10:36:07] [10:36:07]POST finish read [10:36:07]Found Content-Length = 679 [10:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:07]execute_script... [10:36: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)1319011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:07]POST & json_proto [10:36:07]process_json_proto [10:36:07]json parsed OK: [10:36:07]protocol is kg_v1.0 [10:36:07]action value=close_receipt [10:36:07]process_action close_receipt [10:36:07]cmd_close_receipt [10:36:07]MH_GetDate [10:36:07]Write to MH i2c: F0 00 00 8D 17 93 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 09 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 09 00 8D 17 00 A5 58 92 66 FA E9 8E 66 68 [10:36:07]GetLastDocTimeStamp 1720866977 [10:36:07]current date 1720866981 [10:36:07]FM_GetShiftState [10:36:07]SAM_PROTO_GetShiftState [10:36:07]wFMCommunicate request_size=4 [10:36:07]MH_SAM_APDU [10:36:07]CAPDU: 80 13 01 00 [10:36:07]Write to MH i2c: E2 08 00 8E 17 80 13 01 00 00 00 00 00 22 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 8E 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1C [10:36:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:36:07]wFMCommunicate OK [10:36:07]SAM_PROTO_GetShiftState done [10:36:07]FM_GetShiftState done [10:36:07]opened in 1720828979 [10:36:07]opened+sec_in_day 1720915379 [10:36:07]quantity*price = 67029 [10:36:07]sum+1 = 67030 [10:36:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 144 13.07.2024 10:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162476 ФПД: 17064680606459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103621&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162476&fm=17064680606459&tin=02508201610067®Number=0000000000090858&sum=67000 [10:36:08]StoreToDocumentArchive [10:36:08]shift 462 fd 162476 [10:36:08]save to /storage/0462/doc_00162476 [10:36:08]save last doc name /storage/0462/doc_00162476 to /storage/kkm_last_doc_name [10:36:08]save OK [10:36:08]Clear old archive folders... [10:36:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:08]tlvbuf is 01B84980 [10:36:08]SAM_PROTO_ClearQueue [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 09 00 00 [10:36:08]Write to MH i2c: E2 08 00 9B 17 80 09 00 00 00 00 00 00 24 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 9B 17 00 90 00 26 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_ClearQueue done [10:36:08]KKMCreateOFDPacket [10:36:08]OFDProtocolAddRootSTLVToBuf [10:36:08]FM_MakeSignedData [10:36:08]FM_MakeSignedData [10:36:08]SAM_PROTO_SignData [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 01 02 [10:36:08]Write to MH i2c: E2 08 00 9C 17 80 0D 01 02 00 00 00 00 2C [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 9C 17 00 90 00 27 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=255 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A5 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7A 02 00 35 04 06 00 0F [10:36:08]Write to MH i2c: E2 02 01 9D 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A5 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7A 02 00 35 04 06 00 0F 00 00 0A [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:09]Read from MH i2c: E2 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 03 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 03 00 9D 17 00 90 00 28 [10:36:09]RAPDU: 90 00 [10:36:09]wFMCommunicate OK [10:36:09]wFMCommunicate request_size=10 [10:36:09]MH_SAM_APDU [10:36:09]CAPDU: 80 0D 02 02 05 85 2E 39 CA FB [10:36:09]Write to MH i2c: E2 0D 00 9E 17 80 0D 02 02 05 00 85 2E 39 CA FB 00 00 EA [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:09]Read from MH i2c: E2 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 03 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 03 00 9E 17 00 90 00 29 [10:36:09]RAPDU: 90 00 [10:36:09]wFMCommunicate OK [10:36:09]wFMCommunicate request_size=4 [10:36:09]MH_SAM_APDU [10:36:09]CAPDU: 80 0D 03 02 [10:36:09]Write to MH i2c: E2 08 00 9F 17 80 0D 03 02 00 00 00 00 31 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:09]Read from MH i2c: E2 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 0B 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 0B 00 9F 17 00 37 E1 87 95 1D E6 CF D8 90 00 10 [10:36:09]RAPDU: 37 E1 87 95 1D E6 CF D8 90 00 [10:36:09]wFMCommunicate OK [10:36:09]SAM_PROTO_SignData done [10:36:09]FM_MakeSignedData done [10:36:09]CreateOFDProtocolMessage [10:36:09]wFMCommunicate request_size=4 [10:36:09]MH_SAM_APDU [10:36:09]CAPDU: 80 11 00 00 [10:36:09]Write to MH i2c: E2 08 00 A0 17 80 11 00 00 00 00 00 00 31 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:09]Read from MH i2c: E2 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 17 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: E2 17 00 A0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 91 [10:36:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:36:09]wFMCommunicate OK [10:36:09]CreateOFDProtocolMessage done [10:36:09]OFDSenderStorePacket 162476 [10:36:09]StoreOFDPacket docnum=162476 [10:36:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E5 CE 07 01 79 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A5 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7A 02 00 35 04 06 00 0F 85 2E 39 CA FB 37 E1 87 95 1D E6 CF D8 [10:36:09]CheckFolder [10:36:09]dirname=/storage/ofd_packets [10:36:09]CheckFolder done [10:36:09]ProducePacketName [10:36:09]name=ofd_packets/00162476 [10:36:09]NVStorageSaveData ofd_packets/00162476 [10:36:09]File name is /storage/ofd_packets/00162476 [10:36:09]Write 301 bytes [10:36:09]NVStorageSaveData done [10:36:09]OFDSenderStorePacket done [10:36:09]KKMCreateOFDPacket done [10:36:09]NVStorageSaveData kkm_last_timestamp [10:36:09]File name is /storage/kkm_last_timestamp [10:36:09]Write 4 bytes [10:36:09]NVStorageSaveData done [10:36:09]ExternCall_PrintAddStr [10:36:09]wPrintStart [10:36:09]Write to MH i2c: 01 00 00 A1 17 B8 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 A1 17 00 00 00 00 00 FF 0F CD [10:36:09]RasterBufferAndPrint [10:36:09]line Счет N : (1)1319011 [10:36:09]line ИНН: 02508201610067 [10:36:09]line Контрольно-Кассовый Чек [10:36:09]line ПРОДАЖА [10:36:09]line ТРК (МРК, ГНК) : 33 [10:36:09]line Товар: 2710124130 [10:36:09]line Аи-92-К-5 [10:36:09]line 10.110 * 66.30 [10:36:09]line = 670.29 [10:36:09]line НДС 12% НСП 1% [10:36:09]line > о реализуемом товаре [10:36:09]line ОКРУГЛЕНИЕ: -0.29 [10:36:09]line ИТОГО: 670.00 [10:36:09]line Внесено: 670.00 [10:36:09]line СДАЧА: 0.00 [10:36:09]line НСП 1% : 5.93 [10:36:09]line НДС 12% : 71.18 [10:36:09]line Наличными: 670.00 [10:36:09]line Безнал.: 0.00 [10:36:09]line Место: АЗС № 140 "Партнер Нефть" [10:36:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:36:09]line СНО: Общий режим [10:36:09]line Чек 144 13.07.2024 10:36 [10:36:09]line Смена: 462 ФФД: 1.0 [10:36:09]line ЗНМ: 0300000129 [10:36:09]line РНМ: 0000000000090858 [10:36:09]line Версия ККМ: 001 [10:36:09]line ФМ: 0000000000874899 [10:36:09]line ФД: 162476 [10:36:09]line ФПД: 17064680606459 [10:36:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103621&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162476&fm=17064680606459&tin=02508201610067®Number=0000000000090858&sum=67000 [10:36:09]OFD Sender: Processing packet 162476 [packets to send 105, broken 104] [10:36:09]ProducePacketName [10:36:09]name=ofd_packets/00162476 [10:36:09]OFD Sender: To server: pG, [10:36:09]CommunicateWithHost lk.salyk.kg:30040 [10:36:09]written 0, free lines is 4095 [10:36:09]ConnectInit lk.salyk.kg [10:36:10]Connected sock=10 [10:36:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E5 CE 07 01 79 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 A5 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7A 02 00 35 04 06 00 0F 85 2E 39 CA FB 37 E1 87 95 1D E6 CF D8 [10:36:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A0 DB 47 00 93 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AC 7A 02 00 F4 03 04 00 BA 04 92 66 B6 04 01 00 00 D0 C5 C0 93 C8 2B AA 7C [10:36:10]CommunicateWithHost err = 0 [10:36:10]CheckOFDResponse [10:36:10]1017 (14) - 77093643461234 [10:36:10]1041 (16) - 0000000000874899 [10:36:10]1040 (4) - 162476 [10:36:10]1012 (4) - 13.07.2024 04:38 [10:36:10]1206 (1) - 0 [10:36:10]OFD Sender: Remove packet 162476 [10:36:10]ProducePacketName [10:36:10]name=ofd_packets/00162476 [10:36:10]NVStorageDeleteData [10:36:10]Write to MH i2c: 01 00 00 CC 17 E3 [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: 01 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: 01 07 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: 01 07 00 CC 17 00 00 00 00 00 E5 0C DB [10:36:10]RasterBufferAndPrint [10:36:10]line [10:36:10]line [10:36:10]line [10:36:10]line [10:36:10]line [10:36:10]written 0, free lines is 3316 [10:36:10]MH_Cut [10:36:10]Write to MH i2c: D1 01 00 D3 17 01 BC [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: D1 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: D1 01 00 [10:36:10]MH_I2C_Read... [10:36:10]Read from MH i2c: D1 01 00 D3 17 00 BB [10:36:10]Write to MH i2c: 01 00 00 D4 17 EB [10:36:10]Write i2c OK [10:36:10]MH_I2C_Read... [10:36:10]OFD Sender: No OFD packet to send [10:36:11]*** Cut start [10:36:11]*** Purtial cut [10:36:11]*** CUTSNS_PIN = 0 [10:36:11]*** Stage 1: CUTSNS_PIN = 1 [10:36:13]Read from MH i2c: 01 [10:36:13]MH_I2C_Read... [10:36:13]*** Stop cut motor [10:36:13]*** Cut end [10:36:13]Read from MH i2c: 01 07 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 07 00 D4 17 00 00 00 00 00 FF 0F 00 [10:36:13]process_action close_receipt done [10:36:13]requested_data is exist [10:36:13]produce_requested_data [10:36:13]requested_item fm.sn is exist - process it [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 11 00 00 [10:36:13]Write to MH i2c: E2 08 00 D5 17 80 11 00 00 00 00 00 00 66 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 17 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 17 00 D5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C6 [10:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:36:13]wFMCommunicate OK [10:36:13]requested_item fd.num is exist - process it [10:36:13]SAM_PROTO_GetFieldsCounters [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 13 00 00 [10:36:13]Write to MH i2c: E2 08 00 D6 17 80 13 00 00 00 00 00 00 69 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 62 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 62 00 D6 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [10:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_GetFieldsCounters done [10:36:13]requested_item shift.num is exist - process it [10:36:13]requested_item shift.opened is exist - process it [10:36:13]req_shift_opened [10:36:13]FM_GetShiftState [10:36:13]SAM_PROTO_GetShiftState [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 13 01 00 [10:36:13]Write to MH i2c: E2 08 00 D7 17 80 13 01 00 00 00 00 00 6B [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0E 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0E 00 D7 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 65 [10:36:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_GetShiftState done [10:36:13]FM_GetShiftState done [10:36:13]req_shift_opened done [10:36:13]requested_item shift.open_date is exist - process it [10:36:13]req_shift_open_date [10:36:13]req_shift_open_date done [10:36:13]produce_requested_data done [10:36:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162476,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:36:13]process_action_free close_receipt [10:36:13]json_value_free [10:36:13]json_value_free done [10:36:13]process_json_proto returns [10:36:13]Send response to host [10:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162476,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:36:13]free response buf [10:36:13]execute_script done [10:36:13]execute_script returns [10:36:13]free content buf [10:36:13]Sock 9.Close socket [10:36:13]Sock 9.Thread stoped [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:32]accept exits with 8 [10:36:32]New connection [10:36:32]New thread 3067006308 created [10:36:32]Thread 3066862948 joined [10:36:32]Waiting for new connection... [10:36:32] Sock 8.Parse request [10:36:32]Sock 8.Check first char [10:36:32]Sock 8.First char is OK [10:36:32]request: POST /json_proto HTTP/1.0 [10:36:32]Method: POST [10:36:32]URL: /json_proto [10:36:32]Method is POST - this is cgi request [10:36:32]url: /json_proto [10:36:32]query_string will be loaded in cgi processing [10:36:32]execute_cgi json_proto POST (null) [10:36:32]execute_cgi path=json_proto method=POST [10:36:32]POST find Content-Length [10:36:32]Host: 172.17.39.67:8080 [10:36:32]Content-Length: 678 [10:36:32]Content-Type: application/json [10:36:32] [10:36:32]POST finish read [10:36:32]Found Content-Length = 678 [10:36:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.940, "sum" : 659.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 659.00, "payments": [ { "type": 0, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:32]execute_script... [10:36: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)1319010", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.940, "sum" : 659.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 659.00, "payments": [ { "type": 0, "sum" : 659.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:32]POST & json_proto [10:36:32]process_json_proto [10:36:32]json parsed OK: [10:36:32]protocol is kg_v1.0 [10:36:32]action value=close_receipt [10:36:32]process_action close_receipt [10:36:32]cmd_close_receipt [10:36:32]MH_GetDate [10:36:32]Write to MH i2c: F0 00 00 D8 17 DE [10:36:32]Write i2c OK [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: F0 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: F0 09 00 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: F0 09 00 D8 17 00 BE 58 92 66 FA E9 8E 66 CC [10:36:32]GetLastDocTimeStamp 1720866981 [10:36:32]current date 1720867006 [10:36:32]FM_GetShiftState [10:36:32]SAM_PROTO_GetShiftState [10:36:32]wFMCommunicate request_size=4 [10:36:32]MH_SAM_APDU [10:36:32]CAPDU: 80 13 01 00 [10:36:32]Write to MH i2c: E2 08 00 D9 17 80 13 01 00 00 00 00 00 6D [10:36:32]Write i2c OK [10:36:32]MH_I2C_Read... [10:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:32]Read from MH i2c: E2 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 0E 00 [10:36:32]MH_I2C_Read... [10:36:32]Read from MH i2c: E2 0E 00 D9 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 67 [10:36:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:36:32]wFMCommunicate OK [10:36:32]SAM_PROTO_GetShiftState done [10:36:32]FM_GetShiftState done [10:36:32]opened in 1720828979 [10:36:32]opened+sec_in_day 1720915379 [10:36:32]quantity*price = 65902 [10:36:32]sum+1 = 65903 [10:36:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 659.00 Внесено: 700.00 СДАЧА: 41.00 НСП 1% : 5.83 НДС 12% : 69.98 Наличными: 659.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 145 13.07.2024 10:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162477 ФПД: 176608448764842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103646&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162477&fm=176608448764842&tin=02508201610067®Number=0000000000090858&sum=65900 [10:36:34]StoreToDocumentArchive [10:36:34]shift 462 fd 162477 [10:36:34]save to /storage/0462/doc_00162477 [10:36:34]save last doc name /storage/0462/doc_00162477 to /storage/kkm_last_doc_name [10:36:34]save OK [10:36:34]Clear old archive folders... [10:36:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:34]tlvbuf is 01B84250 [10:36:34]SAM_PROTO_ClearQueue [10:36:34]wFMCommunicate request_size=4 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 09 00 00 [10:36:34]Write to MH i2c: E2 08 00 E6 17 80 09 00 00 00 00 00 00 6F [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 03 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 03 00 E6 17 00 90 00 71 [10:36:34]RAPDU: 90 00 [10:36:34]wFMCommunicate OK [10:36:34]SAM_PROTO_ClearQueue done [10:36:34]KKMCreateOFDPacket [10:36:34]OFDProtocolAddRootSTLVToBuf [10:36:34]FM_MakeSignedData [10:36:34]FM_MakeSignedData [10:36:34]SAM_PROTO_SignData [10:36:34]wFMCommunicate request_size=4 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 0D 01 02 [10:36:34]Write to MH i2c: E2 08 00 E7 17 80 0D 01 02 00 00 00 00 77 [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 03 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 03 00 E7 17 00 90 00 72 [10:36:34]RAPDU: 90 00 [10:36:34]wFMCommunicate OK [10:36:34]wFMCommunicate request_size=255 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6E 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 BE 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7A 02 00 35 04 06 00 A0 [10:36:34]Write to MH i2c: E2 02 01 E8 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6E 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 BE 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7A 02 00 35 04 06 00 A0 00 00 C9 [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 03 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 03 00 E8 17 00 90 00 73 [10:36:34]RAPDU: 90 00 [10:36:34]wFMCommunicate OK [10:36:34]wFMCommunicate request_size=10 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 0D 02 02 05 9F DB DA 5B AA [10:36:34]Write to MH i2c: E2 0D 00 E9 17 80 0D 02 02 05 00 9F DB DA 5B AA 00 00 DD [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 03 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 03 00 E9 17 00 90 00 74 [10:36:34]RAPDU: 90 00 [10:36:34]wFMCommunicate OK [10:36:34]wFMCommunicate request_size=4 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 0D 03 02 [10:36:34]Write to MH i2c: E2 08 00 EA 17 80 0D 03 02 00 00 00 00 7C [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 0B 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 0B 00 EA 17 00 8F D8 A3 37 8B B6 5E AD 90 00 0A [10:36:34]RAPDU: 8F D8 A3 37 8B B6 5E AD 90 00 [10:36:34]wFMCommunicate OK [10:36:34]SAM_PROTO_SignData done [10:36:34]FM_MakeSignedData done [10:36:34]CreateOFDProtocolMessage [10:36:34]wFMCommunicate request_size=4 [10:36:34]MH_SAM_APDU [10:36:34]CAPDU: 80 11 00 00 [10:36:34]Write to MH i2c: E2 08 00 EB 17 80 11 00 00 00 00 00 00 7C [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:34]Read from MH i2c: E2 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 17 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: E2 17 00 EB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DC [10:36:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:36:34]wFMCommunicate OK [10:36:34]CreateOFDProtocolMessage done [10:36:34]OFDSenderStorePacket 162477 [10:36:34]StoreOFDPacket docnum=162477 [10:36:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DB 18 07 01 57 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6E 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 BE 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7A 02 00 35 04 06 00 A0 9F DB DA 5B AA 8F D8 A3 37 8B B6 5E AD [10:36:34]CheckFolder [10:36:34]dirname=/storage/ofd_packets [10:36:34]CheckFolder done [10:36:34]ProducePacketName [10:36:34]name=ofd_packets/00162477 [10:36:34]NVStorageSaveData ofd_packets/00162477 [10:36:34]File name is /storage/ofd_packets/00162477 [10:36:34]Write 301 bytes [10:36:34]NVStorageSaveData done [10:36:34]OFDSenderStorePacket done [10:36:34]KKMCreateOFDPacket done [10:36:34]NVStorageSaveData kkm_last_timestamp [10:36:34]File name is /storage/kkm_last_timestamp [10:36:34]Write 4 bytes [10:36:34]NVStorageSaveData done [10:36:34]ExternCall_PrintAddStr [10:36:34]wPrintStart [10:36:34]Write to MH i2c: 01 00 00 EC 17 03 [10:36:34]Write i2c OK [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: 01 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: 01 07 00 [10:36:34]MH_I2C_Read... [10:36:34]Read from MH i2c: 01 07 00 EC 17 00 00 00 00 00 FF 0F 18 [10:36:34]RasterBufferAndPrint [10:36:34]line Счет N : (1)1319010 [10:36:34]line ИНН: 02508201610067 [10:36:34]line Контрольно-Кассовый Чек [10:36:34]line ПРОДАЖА [10:36:34]line ТРК (МРК, ГНК) : 53 [10:36:34]line Товар: 2710124130 [10:36:34]line Аи-92-К-5 [10:36:34]line 9.940 * 66.30 [10:36:34]line = 659.02 [10:36:34]line НДС 12% НСП 1% [10:36:34]line > о реализуемом товаре [10:36:34]line ОКРУГЛЕНИЕ: -0.02 [10:36:34]line ИТОГО: 659.00 [10:36:34]line Внесено: 700.00 [10:36:34]line СДАЧА: 41.00 [10:36:34]line НСП 1% : 5.83 [10:36:34]line НДС 12% : 69.98 [10:36:34]line Наличными: 659.00 [10:36:34]line Безнал.: 0.00 [10:36:34]line Место: АЗС № 140 "Партнер Нефть" [10:36:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:36:34]line СНО: Общий режим [10:36:34]line Чек 145 13.07.2024 10:36 [10:36:34]line Смена: 462 ФФД: 1.0 [10:36:34]line ЗНМ: 0300000129 [10:36:34]line РНМ: 0000000000090858 [10:36:34]line Версия ККМ: 001 [10:36:34]line ФМ: 0000000000874899 [10:36:34]line ФД: 162477 [10:36:34]line ФПД: 176608448764842 [10:36:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103646&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162477&fm=176608448764842&tin=02508201610067®Number=0000000000090858&sum=65900 [10:36:34]written 0, free lines is 4095 [10:36:34]OFD Sender: Processing packet 162477 [packets to send 105, broken 104] [10:36:34]ProducePacketName [10:36:34]name=ofd_packets/00162477 [10:36:34]OFD Sender: To server: pG, [10:36:34]CommunicateWithHost lk.salyk.kg:30040 [10:36:34]ConnectInit lk.salyk.kg [10:36:34]Connected sock=10 [10:36:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DB 18 07 01 57 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6E 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 1B 00 00 00 00 07 04 06 00 6C 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 BE 58 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7A 02 00 35 04 06 00 A0 9F DB DA 5B AA 8F D8 A3 37 8B B6 5E AD [10:36:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 97 D6 47 00 CB 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AD 7A 02 00 F4 03 04 00 D3 04 92 66 B6 04 01 00 00 84 F3 C5 20 A6 3D 91 0B [10:36:35]CommunicateWithHost err = 0 [10:36:35]CheckOFDResponse [10:36:35]1017 (14) - 77093643461234 [10:36:35]1041 (16) - 0000000000874899 [10:36:35]1040 (4) - 162477 [10:36:35]1012 (4) - 13.07.2024 04:38 [10:36:35]1206 (1) - 0 [10:36:35]OFD Sender: Remove packet 162477 [10:36:35]ProducePacketName [10:36:35]name=ofd_packets/00162477 [10:36:35]NVStorageDeleteData [10:36:35]Write to MH i2c: 01 00 00 17 18 2F [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: 01 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: 01 07 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: 01 07 00 17 18 00 00 00 00 00 F1 0C 33 [10:36:35]RasterBufferAndPrint [10:36:35]line [10:36:35]line [10:36:35]line [10:36:35]line [10:36:35]line [10:36:35]written 0, free lines is 3322 [10:36:35]MH_Cut [10:36:35]Write to MH i2c: D1 01 00 1E 18 01 08 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: D1 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: D1 01 00 [10:36:35]MH_I2C_Read... [10:36:35]Read from MH i2c: D1 01 00 1E 18 00 07 [10:36:35]Write to MH i2c: 01 00 00 1F 18 37 [10:36:35]Write i2c OK [10:36:35]MH_I2C_Read... [10:36:35]OFD Sender: No OFD packet to send [10:36:35]*** Cut start [10:36:35]*** Purtial cut [10:36:35]*** Stage 1: CUTSNS_PIN = 1 [10:36:36]Read from MH i2c: 01 [10:36:36]MH_I2C_Read... [10:36:36]*** Stop cut motor [10:36:36]*** Cut end [10:36:36]Read from MH i2c: 01 07 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: 01 07 00 1F 18 00 00 00 00 00 FF 0F 4C [10:36:36]process_action close_receipt done [10:36:36]requested_data is exist [10:36:36]produce_requested_data [10:36:36]requested_item fm.sn is exist - process it [10:36:36]wFMCommunicate request_size=4 [10:36:36]MH_SAM_APDU [10:36:36]CAPDU: 80 11 00 00 [10:36:36]Write to MH i2c: E2 08 00 20 18 80 11 00 00 00 00 00 00 B2 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:36]Read from MH i2c: E2 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 17 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 17 00 20 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 12 [10:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:36:36]wFMCommunicate OK [10:36:36]requested_item fd.num is exist - process it [10:36:36]SAM_PROTO_GetFieldsCounters [10:36:36]wFMCommunicate request_size=4 [10:36:36]MH_SAM_APDU [10:36:36]CAPDU: 80 13 00 00 [10:36:36]Write to MH i2c: E2 08 00 21 18 80 13 00 00 00 00 00 00 B5 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:36]Read from MH i2c: E2 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 62 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 62 00 21 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [10:36:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:36]wFMCommunicate OK [10:36:36]SAM_PROTO_GetFieldsCounters done [10:36:36]requested_item shift.num is exist - process it [10:36:36]requested_item shift.opened is exist - process it [10:36:36]req_shift_opened [10:36:36]FM_GetShiftState [10:36:36]SAM_PROTO_GetShiftState [10:36:36]wFMCommunicate request_size=4 [10:36:36]MH_SAM_APDU [10:36:36]CAPDU: 80 13 01 00 [10:36:36]Write to MH i2c: E2 08 00 22 18 80 13 01 00 00 00 00 00 B7 [10:36:36]Write i2c OK [10:36:36]MH_I2C_Read... [10:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:36]Read from MH i2c: E2 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 0E 00 [10:36:36]MH_I2C_Read... [10:36:36]Read from MH i2c: E2 0E 00 22 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B1 [10:36:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:36:36]wFMCommunicate OK [10:36:36]SAM_PROTO_GetShiftState done [10:36:36]FM_GetShiftState done [10:36:36]req_shift_opened done [10:36:36]requested_item shift.open_date is exist - process it [10:36:36]req_shift_open_date [10:36:36]req_shift_open_date done [10:36:36]produce_requested_data done [10:36:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162477,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:36:36]process_action_free close_receipt [10:36:36]json_value_free [10:36:36]json_value_free done [10:36:36]process_json_proto returns [10:36:36]Send response to host [10:36:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162477,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:36:36]free response buf [10:36:36]execute_script done [10:36:36]execute_script returns [10:36:36]free content buf [10:36:36]Sock 8.Close socket [10:36:36]Sock 8.Thread stoped [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:52]accept exits with 9 [10:38:52]New connection [10:38:52]New thread 3066862948 created [10:38:52]Thread 3067006308 joined [10:38:52]Waiting for new connection... [10:38:52] Sock 9.Parse request [10:38:52]Sock 9.Check first char [10:38:52]Sock 9.First char is OK [10:38:52]request: POST /json_proto HTTP/1.0 [10:38:52]Method: POST [10:38:52]URL: /json_proto [10:38:52]Method is POST - this is cgi request [10:38:52]url: /json_proto [10:38:52]query_string will be loaded in cgi processing [10:38:52]execute_cgi json_proto POST (null) [10:38:52]execute_cgi path=json_proto method=POST [10:38:52]POST find Content-Length [10:38:52]Host: 172.17.39.67:8080 [10:38:52]Content-Length: 809 [10:38:52]Content-Type: application/json [10:38:52] [10:38:52]POST finish read [10:38:52]Found Content-Length = 809 [10:38:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 60.050, "sum" : 4359.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4359.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:52]execute_script... [10:38:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 60.050, "sum" : 4359.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4359.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:38:52]POST & json_proto [10:38:52]process_json_proto [10:38:52]json parsed OK: [10:38:52]protocol is kg_v1.0 [10:38:52]action value=close_receipt [10:38:52]process_action close_receipt [10:38:52]cmd_close_receipt [10:38:52]MH_GetDate [10:38:52]Write to MH i2c: F0 00 00 23 18 2A [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: F0 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: F0 09 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: F0 09 00 23 18 00 4A 59 92 66 FA E9 8E 66 A5 [10:38:52]GetLastDocTimeStamp 1720867006 [10:38:52]current date 1720867146 [10:38:52]FM_GetShiftState [10:38:52]SAM_PROTO_GetShiftState [10:38:52]wFMCommunicate request_size=4 [10:38:52]MH_SAM_APDU [10:38:52]CAPDU: 80 13 01 00 [10:38:52]Write to MH i2c: E2 08 00 24 18 80 13 01 00 00 00 00 00 B9 [10:38:52]Write i2c OK [10:38:52]MH_I2C_Read... [10:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:52]Read from MH i2c: E2 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 0E 00 [10:38:52]MH_I2C_Read... [10:38:52]Read from MH i2c: E2 0E 00 24 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B3 [10:38:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:38:52]wFMCommunicate OK [10:38:52]SAM_PROTO_GetShiftState done [10:38:52]FM_GetShiftState done [10:38:52]opened in 1720828979 [10:38:52]opened+sec_in_day 1720915379 [10:38:52]quantity*price = 435963 [10:38:52]sum+1 = 435964 [10:38:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4359.63 НСП 1% : 38.58 НДС 12% : 462.97 Наличными: 0.00 Безнал.: 4359.63 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 146 13.07.2024 10:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162478 ФПД: 127481759595290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162478&fm=127481759595290&tin=02508201610067®Number=0000000000090858&sum=435963 [10:38:54]StoreToDocumentArchive [10:38:54]shift 462 fd 162478 [10:38:54]save to /storage/0462/doc_00162478 [10:38:54]save last doc name /storage/0462/doc_00162478 to /storage/kkm_last_doc_name [10:38:54]save OK [10:38:54]Clear old archive folders... [10:38:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:38:54]tlvbuf is 0171FAC0 [10:38:54]SAM_PROTO_ClearQueue [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 09 00 00 [10:38:54]Write to MH i2c: E2 08 00 31 18 80 09 00 00 00 00 00 00 BB [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 31 18 00 90 00 BD [10:38:54]RAPDU: 90 00 [10:38:54]wFMCommunicate OK [10:38:54]SAM_PROTO_ClearQueue done [10:38:54]KKMCreateOFDPacket [10:38:54]OFDProtocolAddRootSTLVToBuf [10:38:54]FM_MakeSignedData [10:38:54]FM_MakeSignedData [10:38:54]SAM_PROTO_SignData [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 0D 01 02 [10:38:54]Write to MH i2c: E2 08 00 32 18 80 0D 01 02 00 00 00 00 C3 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 32 18 00 90 00 BE [10:38:54]RAPDU: 90 00 [10:38:54]wFMCommunicate OK [10:38:54]wFMCommunicate request_size=255 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 92 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FB A6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB A6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB A6 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4A 59 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7A 02 00 35 04 06 00 [10:38:54]Write to MH i2c: E2 02 01 33 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 92 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FB A6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB A6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB A6 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4A 59 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7A 02 00 35 04 06 00 00 00 D7 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:54]Read from MH i2c: E2 03 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 33 18 00 90 00 BF [10:38:54]RAPDU: 90 00 [10:38:54]wFMCommunicate OK [10:38:54]wFMCommunicate request_size=11 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 0D 02 02 06 73 F1 A8 FE FB 1A [10:38:54]Write to MH i2c: E2 0E 00 34 18 80 0D 02 02 06 00 73 F1 A8 FE FB 1A 00 00 F1 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 03 00 34 18 00 90 00 C0 [10:38:54]RAPDU: 90 00 [10:38:54]wFMCommunicate OK [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 0D 03 02 [10:38:54]Write to MH i2c: E2 08 00 35 18 80 0D 03 02 00 00 00 00 C8 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 0B 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 0B 00 35 18 00 96 8A 85 05 47 8F 06 72 90 00 C1 [10:38:54]RAPDU: 96 8A 85 05 47 8F 06 72 90 00 [10:38:54]wFMCommunicate OK [10:38:54]SAM_PROTO_SignData done [10:38:54]FM_MakeSignedData done [10:38:54]CreateOFDProtocolMessage [10:38:54]wFMCommunicate request_size=4 [10:38:54]MH_SAM_APDU [10:38:54]CAPDU: 80 11 00 00 [10:38:54]Write to MH i2c: E2 08 00 36 18 80 11 00 00 00 00 00 00 C8 [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:54]Read from MH i2c: E2 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 17 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: E2 17 00 36 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 28 [10:38:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:38:54]wFMCommunicate OK [10:38:54]CreateOFDProtocolMessage done [10:38:54]OFDSenderStorePacket 162478 [10:38:54]StoreOFDPacket docnum=162478 [10:38:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DA A6 08 01 21 E5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 92 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FB A6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB A6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB A6 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4A 59 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7A 02 00 35 04 06 00 73 F1 A8 FE FB 1A 96 8A 85 05 47 8F 06 72 [10:38:54]CheckFolder [10:38:54]dirname=/storage/ofd_packets [10:38:54]CheckFolder done [10:38:54]ProducePacketName [10:38:54]name=ofd_packets/00162478 [10:38:54]NVStorageSaveData ofd_packets/00162478 [10:38:54]File name is /storage/ofd_packets/00162478 [10:38:54]Write 302 bytes [10:38:54]NVStorageSaveData done [10:38:54]OFDSenderStorePacket done [10:38:54]KKMCreateOFDPacket done [10:38:54]NVStorageSaveData kkm_last_timestamp [10:38:54]File name is /storage/kkm_last_timestamp [10:38:54]Write 4 bytes [10:38:54]NVStorageSaveData done [10:38:54]ExternCall_PrintAddStr [10:38:54]wPrintStart [10:38:54]Write to MH i2c: 01 00 00 37 18 4F [10:38:54]Write i2c OK [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: 01 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: 01 07 00 [10:38:54]MH_I2C_Read... [10:38:54]Read from MH i2c: 01 07 00 37 18 00 00 00 00 00 FF 0F 64 [10:38:54]RasterBufferAndPrint [10:38:54]line Счет N : (1)1319013 [10:38:54]line ИНН: 02508201610067 [10:38:54]line Контрольно-Кассовый Чек [10:38:54]line ПРОДАЖА [10:38:54]line ТРК (МРК, ГНК) : 11 [10:38:54]line Товар: 2710194210 [10:38:54]line ДТ(л)-К-5 [10:38:54]line 60.050 * 72.60 [10:38:54]line = 4359.63 [10:38:54]line НДС 12% НСП 1% [10:38:54]line > о реализуемом товаре [10:38:54]line ИТОГО: 4359.63 [10:38:54]line НСП 1% : 38.58 [10:38:54]line НДС 12% : 462.97 [10:38:54]line Наличными: 0.00 [10:38:54]line Безнал.: 4359.63 [10:38:54]line Место: АЗС № 140 "Партнер Нефть" [10:38:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:38:54]line СНО: Общий режим [10:38:54]line Чек 146 13.07.2024 10:39 [10:38:54]line Смена: 462 ФФД: 1.0 [10:38:54]line ЗНМ: 0300000129 [10:38:54]line РНМ: 0000000000090858 [10:38:54]line Версия ККМ: 001 [10:38:54]line Платежная система: O! деньги [10:38:54]line ФМ: 0000000000874899 [10:38:54]line ФД: 162478 [10:38:54]line ФПД: 127481759595290 [10:38:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162478&fm=127481759595290&tin=02508201610067®Number=0000000000090858&sum=435963 [10:38:54]OFD Sender: Processing packet 162478 [packets to send 105, broken 104] [10:38:54]ProducePacketName [10:38:54]name=ofd_packets/00162478 [10:38:54]OFD Sender: To server: pG, [10:38:54]CommunicateWithHost lk.salyk.kg:30040 [10:38:54]ConnectInit lk.salyk.kg [10:38:54]written 0, free lines is 4095 [10:38:55]Connected sock=10 [10:38:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 DA A6 08 01 21 E5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 92 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FB A6 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FB A6 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 B4 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FB A6 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 4A 59 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7A 02 00 35 04 06 00 73 F1 A8 FE FB 1A 96 8A 85 05 47 8F 06 72 [10:38:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 59 7B 47 00 E5 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AE 7A 02 00 F4 03 04 00 5F 05 92 66 B6 04 01 00 00 22 E0 A7 8B 99 69 9B 16 [10:38:55]CommunicateWithHost err = 0 [10:38:55]CheckOFDResponse [10:38:55]1017 (14) - 77093643461234 [10:38:55]1041 (16) - 0000000000874899 [10:38:55]1040 (4) - 162478 [10:38:55]1012 (4) - 13.07.2024 04:41 [10:38:55]1206 (1) - 0 [10:38:55]OFD Sender: Remove packet 162478 [10:38:55]ProducePacketName [10:38:55]name=ofd_packets/00162478 [10:38:55]NVStorageDeleteData [10:38:55]Write to MH i2c: 01 00 00 61 18 79 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 07 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: 01 07 00 61 18 00 00 00 00 00 F1 0C 7D [10:38:55]RasterBufferAndPrint [10:38:55]line [10:38:55]line [10:38:55]line [10:38:55]line [10:38:55]line [10:38:55]written 0, free lines is 3319 [10:38:55]MH_Cut [10:38:55]Write to MH i2c: D1 01 00 68 18 01 52 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: D1 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: D1 01 00 [10:38:55]MH_I2C_Read... [10:38:55]Read from MH i2c: D1 01 00 68 18 00 51 [10:38:55]Write to MH i2c: 01 00 00 69 18 81 [10:38:55]Write i2c OK [10:38:55]MH_I2C_Read... [10:38:55]OFD Sender: No OFD packet to send [10:38:56]*** Cut start [10:38:56]*** Purtial cut [10:38:56]*** CUTSNS_PIN = 0 [10:38:56]*** Stage 1: CUTSNS_PIN = 1 [10:38:58]Read from MH i2c: 01 [10:38:58]MH_I2C_Read... [10:38:58]*** Stop cut motor [10:38:58]*** Cut end [10:38:58]Read from MH i2c: 01 07 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: 01 07 00 69 18 00 00 00 00 00 FF 0F 96 [10:38:58]process_action close_receipt done [10:38:58]requested_data is exist [10:38:58]produce_requested_data [10:38:58]requested_item fm.sn is exist - process it [10:38:58]wFMCommunicate request_size=4 [10:38:58]MH_SAM_APDU [10:38:58]CAPDU: 80 11 00 00 [10:38:58]Write to MH i2c: E2 08 00 6A 18 80 11 00 00 00 00 00 00 FC [10:38:58]Write i2c OK [10:38:58]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 17 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 17 00 6A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5C [10:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:38:58]wFMCommunicate OK [10:38:58]requested_item fd.num is exist - process it [10:38:58]SAM_PROTO_GetFieldsCounters [10:38:58]wFMCommunicate request_size=4 [10:38:58]MH_SAM_APDU [10:38:58]CAPDU: 80 13 00 00 [10:38:58]Write to MH i2c: E2 08 00 6B 18 80 13 00 00 00 00 00 00 FF [10:38:58]Write i2c OK [10:38:58]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 62 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 62 00 6B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:38:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:38:58]wFMCommunicate OK [10:38:58]SAM_PROTO_GetFieldsCounters done [10:38:58]requested_item shift.num is exist - process it [10:38:58]requested_item shift.opened is exist - process it [10:38:58]req_shift_opened [10:38:58]FM_GetShiftState [10:38:58]SAM_PROTO_GetShiftState [10:38:58]wFMCommunicate request_size=4 [10:38:58]MH_SAM_APDU [10:38:58]CAPDU: 80 13 01 00 [10:38:58]Write to MH i2c: E2 08 00 6C 18 80 13 01 00 00 00 00 00 01 [10:38:58]Write i2c OK [10:38:58]MH_I2C_Read... [10:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:38:58]Read from MH i2c: E2 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 0E 00 [10:38:58]MH_I2C_Read... [10:38:58]Read from MH i2c: E2 0E 00 6C 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FB [10:38:58]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:38:58]wFMCommunicate OK [10:38:58]SAM_PROTO_GetShiftState done [10:38:58]FM_GetShiftState done [10:38:58]req_shift_opened done [10:38:58]requested_item shift.open_date is exist - process it [10:38:58]req_shift_open_date [10:38:58]req_shift_open_date done [10:38:58]produce_requested_data done [10:38:58]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162478,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:38:58]process_action_free close_receipt [10:38:58]json_value_free [10:38:58]json_value_free done [10:38:58]process_json_proto returns [10:38:58]Send response to host [10:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162478,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:38:58]free response buf [10:38:58]execute_script done [10:38:58]execute_script returns [10:38:58]free content buf [10:38:58]Sock 9.Close socket [10:38:58]Sock 9.Thread stoped [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:16]accept exits with 8 [10:39:16]New connection [10:39:16]New thread 3067006308 created [10:39:16]Thread 3066862948 joined [10:39:16]Waiting for new connection... [10:39:16] Sock 8.Parse request [10:39:16]Sock 8.Check first char [10:39:16]Sock 8.First char is OK [10:39:16]request: POST /json_proto HTTP/1.0 [10:39:16]Method: POST [10:39:16]URL: /json_proto [10:39:16]Method is POST - this is cgi request [10:39:16]url: /json_proto [10:39:16]query_string will be loaded in cgi processing [10:39:16]execute_cgi json_proto POST (null) [10:39:16]execute_cgi path=json_proto method=POST [10:39:16]POST find Content-Length [10:39:16]Host: 172.17.39.67:8080 [10:39:16]Content-Length: 688 [10:39:16]Content-Type: application/json [10:39:16] [10:39:16]POST finish read [10:39:16]Found Content-Length = 688 [10:39:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:39:16]execute_script... [10:39: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)1319014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:39:16]POST & json_proto [10:39:16]process_json_proto [10:39:16]json parsed OK: [10:39:16]protocol is kg_v1.0 [10:39:16]action value=close_receipt [10:39:16]process_action close_receipt [10:39:16]cmd_close_receipt [10:39:16]MH_GetDate [10:39:16]Write to MH i2c: F0 00 00 6D 18 74 [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: F0 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: F0 09 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: F0 09 00 6D 18 00 62 59 92 66 FA E9 8E 66 07 [10:39:16]GetLastDocTimeStamp 1720867146 [10:39:16]current date 1720867170 [10:39:16]FM_GetShiftState [10:39:16]SAM_PROTO_GetShiftState [10:39:16]wFMCommunicate request_size=4 [10:39:16]MH_SAM_APDU [10:39:16]CAPDU: 80 13 01 00 [10:39:16]Write to MH i2c: E2 08 00 6E 18 80 13 01 00 00 00 00 00 03 [10:39:16]Write i2c OK [10:39:16]MH_I2C_Read... [10:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:16]Read from MH i2c: E2 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 0E 00 [10:39:16]MH_I2C_Read... [10:39:16]Read from MH i2c: E2 0E 00 6E 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FD [10:39:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:39:16]wFMCommunicate OK [10:39:16]SAM_PROTO_GetShiftState done [10:39:16]FM_GetShiftState done [10:39:16]opened in 1720828979 [10:39:16]opened+sec_in_day 1720915379 [10:39:16]quantity*price = 100042 [10:39:16]sum+1 = 100044 [10:39: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 147 13.07.2024 10:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162479 ФПД: 173218802394357 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103930&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162479&fm=173218802394357&tin=02508201610067®Number=0000000000090858&sum=100000 [10:39:17]StoreToDocumentArchive [10:39:17]shift 462 fd 162479 [10:39:17]save to /storage/0462/doc_00162479 [10:39:17]save last doc name /storage/0462/doc_00162479 to /storage/kkm_last_doc_name [10:39:17]save OK [10:39:17]Clear old archive folders... [10:39:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:39:17]tlvbuf is 01C446A0 [10:39:17]SAM_PROTO_ClearQueue [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 09 00 00 [10:39:17]Write to MH i2c: E2 08 00 7B 18 80 09 00 00 00 00 00 00 05 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 7B 18 00 90 00 07 [10:39:17]RAPDU: 90 00 [10:39:17]wFMCommunicate OK [10:39:17]SAM_PROTO_ClearQueue done [10:39:17]KKMCreateOFDPacket [10:39:17]OFDProtocolAddRootSTLVToBuf [10:39:17]FM_MakeSignedData [10:39:17]FM_MakeSignedData [10:39:17]SAM_PROTO_SignData [10:39:17]wFMCommunicate request_size=4 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 0D 01 02 [10:39:17]Write to MH i2c: E2 08 00 7C 18 80 0D 01 02 00 00 00 00 0D [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:17]Read from MH i2c: E2 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 [10:39:17]MH_I2C_Read... [10:39:17]Read from MH i2c: E2 03 00 7C 18 00 90 00 08 [10:39:17]RAPDU: 90 00 [10:39:17]wFMCommunicate OK [10:39:17]wFMCommunicate request_size=255 [10:39:17]MH_SAM_APDU [10:39:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 93 00 00 00 F4 03 04 00 62 59 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7A 02 00 35 04 06 00 [10:39:17]Write to MH i2c: E2 02 01 7D 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 93 00 00 00 F4 03 04 00 62 59 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7A 02 00 35 04 06 00 00 00 E6 [10:39:17]Write i2c OK [10:39:17]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 7D 18 00 90 00 09 [10:39:18]RAPDU: 90 00 [10:39:18]wFMCommunicate OK [10:39:18]wFMCommunicate request_size=11 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 0D 02 02 06 9D 8A A5 2F 64 F5 [10:39:18]Write to MH i2c: E2 0E 00 7E 18 80 0D 02 02 06 00 9D 8A A5 2F 64 F5 00 00 70 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 03 00 7E 18 00 90 00 0A [10:39:18]RAPDU: 90 00 [10:39:18]wFMCommunicate OK [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 0D 03 02 [10:39:18]Write to MH i2c: E2 08 00 7F 18 80 0D 03 02 00 00 00 00 12 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0B 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 0B 00 7F 18 00 D7 41 DE C9 9F A5 BF D2 90 00 A7 [10:39:18]RAPDU: D7 41 DE C9 9F A5 BF D2 90 00 [10:39:18]wFMCommunicate OK [10:39:18]SAM_PROTO_SignData done [10:39:18]FM_MakeSignedData done [10:39:18]CreateOFDProtocolMessage [10:39:18]wFMCommunicate request_size=4 [10:39:18]MH_SAM_APDU [10:39:18]CAPDU: 80 11 00 00 [10:39:18]Write to MH i2c: E2 08 00 80 18 80 11 00 00 00 00 00 00 12 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:18]Read from MH i2c: E2 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 17 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: E2 17 00 80 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 72 [10:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:39:18]wFMCommunicate OK [10:39:18]CreateOFDProtocolMessage done [10:39:18]OFDSenderStorePacket 162479 [10:39:18]StoreOFDPacket docnum=162479 [10:39:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1B 75 08 01 22 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 93 00 00 00 F4 03 04 00 62 59 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7A 02 00 35 04 06 00 9D 8A A5 2F 64 F5 D7 41 DE C9 9F A5 BF D2 [10:39:18]CheckFolder [10:39:18]dirname=/storage/ofd_packets [10:39:18]CheckFolder done [10:39:18]ProducePacketName [10:39:18]name=ofd_packets/00162479 [10:39:18]NVStorageSaveData ofd_packets/00162479 [10:39:18]File name is /storage/ofd_packets/00162479 [10:39:18]Write 302 bytes [10:39:18]NVStorageSaveData done [10:39:18]OFDSenderStorePacket done [10:39:18]KKMCreateOFDPacket done [10:39:18]NVStorageSaveData kkm_last_timestamp [10:39:18]File name is /storage/kkm_last_timestamp [10:39:18]Write 4 bytes [10:39:18]NVStorageSaveData done [10:39:18]ExternCall_PrintAddStr [10:39:18]wPrintStart [10:39:18]Write to MH i2c: 01 00 00 81 18 99 [10:39:18]Write i2c OK [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 [10:39:18]MH_I2C_Read... [10:39:18]Read from MH i2c: 01 07 00 81 18 00 00 00 00 00 FF 0F AE [10:39:18]RasterBufferAndPrint [10:39:18]line Счет N : (1)1319014 [10:39:18]line ИНН: 02508201610067 [10:39:18]line Контрольно-Кассовый Чек [10:39:18]line ПРОДАЖА [10:39:18]line ТРК (МРК, ГНК) : 21 [10:39:18]line Товар: 2710194210 [10:39:18]line ДТ(л)-К-5 [10:39:18]line 13.780 * 72.60 [10:39:18]line = 1000.43 [10:39:18]line НДС 12% НСП 1% [10:39:18]line > о реализуемом товаре [10:39:18]line ОКРУГЛЕНИЕ: -0.43 [10:39:18]line ИТОГО: 1000.00 [10:39:18]line Внесено: 1000.00 [10:39:18]line СДАЧА: 0.00 [10:39:18]line НСП 1% : 8.85 [10:39:18]line НДС 12% : 106.24 [10:39:18]line Наличными: 1000.00 [10:39:18]line Безнал.: 0.00 [10:39:18]line Место: АЗС № 140 "Партнер Нефть" [10:39:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:39:18]line СНО: Общий режим [10:39:18]line Чек 147 13.07.2024 10:39 [10:39:18]line Смена: 462 ФФД: 1.0 [10:39:18]line ЗНМ: 0300000129 [10:39:18]line РНМ: 0000000000090858 [10:39:18]line Версия ККМ: 001 [10:39:18]line ФМ: 0000000000874899 [10:39:18]line ФД: 162479 [10:39:18]line ФПД: 173218802394357 [10:39:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T103930&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162479&fm=173218802394357&tin=02508201610067®Number=0000000000090858&sum=100000 [10:39:18]OFD Sender: Processing packet 162479 [packets to send 105, broken 104] [10:39:18]ProducePacketName [10:39:18]name=ofd_packets/00162479 [10:39:18]OFD Sender: To server: pG, [10:39:18]CommunicateWithHost lk.salyk.kg:30040 [10:39:18]ConnectInit lk.salyk.kg [10:39:18]written 0, free lines is 4095 [10:39:18]Connected sock=6 [10:39:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1B 75 08 01 22 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 93 00 00 00 F4 03 04 00 62 59 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 AF 7A 02 00 35 04 06 00 9D 8A A5 2F 64 F5 D7 41 DE C9 9F A5 BF D2 [10:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C0 A5 47 00 6E 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 34 38 39 39 10 04 04 00 AF 7A 02 00 F4 03 04 00 77 05 92 66 B6 04 01 00 00 30 64 DA EE D7 F8 97 23 [10:39:19]CommunicateWithHost err = 0 [10:39:19]CheckOFDResponse [10:39:19]1017 (14) - 77093643461234 [10:39:19]1041 (16) - 0000000000874899 [10:39:19]1040 (4) - 162479 [10:39:19]1012 (4) - 13.07.2024 04:41 [10:39:19]1206 (1) - 0 [10:39:19]OFD Sender: Remove packet 162479 [10:39:19]ProducePacketName [10:39:19]name=ofd_packets/00162479 [10:39:19]NVStorageDeleteData [10:39:19]Write to MH i2c: 01 00 00 AC 18 C4 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 07 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: 01 07 00 AC 18 00 00 00 00 00 D9 0C B0 [10:39:19]RasterBufferAndPrint [10:39:19]line [10:39:19]line [10:39:19]line [10:39:19]line [10:39:19]line [10:39:19]written 0, free lines is 3298 [10:39:19]MH_Cut [10:39:19]Write to MH i2c: D1 01 00 B3 18 01 9D [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: D1 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: D1 01 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: D1 01 00 B3 18 00 9C [10:39:19]Write to MH i2c: 01 00 00 B4 18 CC [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]OFD Sender: No OFD packet to send [10:39:19]*** Cut start [10:39:19]*** Purtial cut [10:39:19]*** Stage 1: CUTSNS_PIN = 1 [10:39:20]Read from MH i2c: 01 [10:39:20]MH_I2C_Read... [10:39:20]*** Stop cut motor [10:39:20]*** Cut end [10:39:20]Read from MH i2c: 01 07 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: 01 07 00 B4 18 00 00 00 00 00 FF 0F E1 [10:39:20]process_action close_receipt done [10:39:20]requested_data is exist [10:39:20]produce_requested_data [10:39:20]requested_item fm.sn is exist - process it [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 11 00 00 [10:39:20]Write to MH i2c: E2 08 00 B5 18 80 11 00 00 00 00 00 00 47 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 17 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 17 00 B5 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A7 [10:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:39:20]wFMCommunicate OK [10:39:20]requested_item fd.num is exist - process it [10:39:20]SAM_PROTO_GetFieldsCounters [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 13 00 00 [10:39:20]Write to MH i2c: E2 08 00 B6 18 80 13 00 00 00 00 00 00 4A [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 62 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 62 00 B6 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [10:39:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 AF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:20]wFMCommunicate OK [10:39:20]SAM_PROTO_GetFieldsCounters done [10:39:20]requested_item shift.num is exist - process it [10:39:20]requested_item shift.opened is exist - process it [10:39:20]req_shift_opened [10:39:20]FM_GetShiftState [10:39:20]SAM_PROTO_GetShiftState [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 13 01 00 [10:39:20]Write to MH i2c: E2 08 00 B7 18 80 13 01 00 00 00 00 00 4C [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 0E 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 0E 00 B7 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 46 [10:39:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:39:20]wFMCommunicate OK [10:39:20]SAM_PROTO_GetShiftState done [10:39:20]FM_GetShiftState done [10:39:20]req_shift_opened done [10:39:20]requested_item shift.open_date is exist - process it [10:39:20]req_shift_open_date [10:39:20]req_shift_open_date done [10:39:20]produce_requested_data done [10:39:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162479,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:39:20]process_action_free close_receipt [10:39:20]json_value_free [10:39:20]json_value_free done [10:39:20]process_json_proto returns [10:39:20]Send response to host [10:39:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162479,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:39:20]free response buf [10:39:20]execute_script done [10:39:20]execute_script returns [10:39:20]free content buf [10:39:20]Sock 8.Close socket [10:39:20]Sock 8.Thread stoped [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:54]OFD Sender: No OFD packet to send [10:40:59]OFD Sender: No OFD packet to send [10:41:04]OFD Sender: No OFD packet to send [10:41:09]OFD Sender: No OFD packet to send [10:41:14]OFD Sender: No OFD packet to send [10:41:19]OFD Sender: No OFD packet to send [10:41:24]OFD Sender: No OFD packet to send [10:41:29]OFD Sender: No OFD packet to send [10:41:34]OFD Sender: No OFD packet to send [10:41:39]OFD Sender: No OFD packet to send [10:41:44]OFD Sender: No OFD packet to send [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:09]OFD Sender: No OFD packet to send [10:43:14]OFD Sender: No OFD packet to send [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:17]accept exits with 9 [10:45:17]New connection [10:45:17]New thread 3066862948 created [10:45:17]Thread 3067006308 joined [10:45:17]Waiting for new connection... [10:45:17] Sock 9.Parse request [10:45:17]Sock 9.Check first char [10:45:17]Sock 9.First char is OK [10:45:17]request: POST /json_proto HTTP/1.0 [10:45:17]Method: POST [10:45:17]URL: /json_proto [10:45:17]Method is POST - this is cgi request [10:45:17]url: /json_proto [10:45:17]query_string will be loaded in cgi processing [10:45:17]execute_cgi json_proto POST (null) [10:45:17]execute_cgi path=json_proto method=POST [10:45:17]POST find Content-Length [10:45:17]Host: 172.17.39.67:8080 [10:45:17]Content-Length: 678 [10:45:17]Content-Type: application/json [10:45:17] [10:45:17]POST finish read [10:45:17]Found Content-Length = 678 [10:45:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:17]execute_script... [10:45: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)1319015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:17]POST & json_proto [10:45:17]process_json_proto [10:45:17]json parsed OK: [10:45:17]protocol is kg_v1.0 [10:45:17]action value=close_receipt [10:45:17]process_action close_receipt [10:45:17]cmd_close_receipt [10:45:17]MH_GetDate [10:45:17]Write to MH i2c: F0 00 00 B8 18 BF [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: F0 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: F0 09 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: F0 09 00 B8 18 00 CB 5A 92 66 FA E9 8E 66 BC [10:45:17]GetLastDocTimeStamp 1720867170 [10:45:17]current date 1720867531 [10:45:17]FM_GetShiftState [10:45:17]SAM_PROTO_GetShiftState [10:45:17]wFMCommunicate request_size=4 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 13 01 00 [10:45:17]Write to MH i2c: E2 08 00 B9 18 80 13 01 00 00 00 00 00 4E [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 0E 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 0E 00 B9 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 48 [10:45:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:45:17]wFMCommunicate OK [10:45:17]SAM_PROTO_GetShiftState done [10:45:17]FM_GetShiftState done [10:45:17]opened in 1720828979 [10:45:17]opened+sec_in_day 1720915379 [10:45:17]quantity*price = 60001 [10:45:17]sum+1 = 60003 [10:45:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 148 13.07.2024 10:45 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162480 ФПД: 100450910197083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104531&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162480&fm=100450910197083&tin=02508201610067®Number=0000000000090858&sum=60000 [10:45:18]StoreToDocumentArchive [10:45:18]shift 462 fd 162480 [10:45:18]save to /storage/0462/doc_00162480 [10:45:18]save last doc name /storage/0462/doc_00162480 to /storage/kkm_last_doc_name [10:45:18]save OK [10:45:18]Clear old archive folders... [10:45:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:18]tlvbuf is 01C68730 [10:45:18]SAM_PROTO_ClearQueue [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 09 00 00 [10:45:18]Write to MH i2c: E2 08 00 C6 18 80 09 00 00 00 00 00 00 50 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 C6 18 00 90 00 52 [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]SAM_PROTO_ClearQueue done [10:45:18]KKMCreateOFDPacket [10:45:18]OFDProtocolAddRootSTLVToBuf [10:45:18]FM_MakeSignedData [10:45:18]FM_MakeSignedData [10:45:18]SAM_PROTO_SignData [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 01 02 [10:45:18]Write to MH i2c: E2 08 00 C7 18 80 0D 01 02 00 00 00 00 58 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 C7 18 00 90 00 53 [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=255 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 94 00 00 00 F4 03 04 00 CB 5A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7A 02 00 35 04 06 00 5B [10:45:18]Write to MH i2c: E2 02 01 C8 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 94 00 00 00 F4 03 04 00 CB 5A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7A 02 00 35 04 06 00 5B 00 00 E8 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 C8 18 00 90 00 54 [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=10 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 02 02 05 5C 0C D1 D5 5B [10:45:18]Write to MH i2c: E2 0D 00 C9 18 80 0D 02 02 05 00 5C 0C D1 D5 5B 00 00 CE [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 C9 18 00 90 00 55 [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 03 02 [10:45:18]Write to MH i2c: E2 08 00 CA 18 80 0D 03 02 00 00 00 00 5D [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0B 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0B 00 CA 18 00 6D 1B B1 5C F5 82 DF F3 90 00 3C [10:45:18]RAPDU: 6D 1B B1 5C F5 82 DF F3 90 00 [10:45:18]wFMCommunicate OK [10:45:18]SAM_PROTO_SignData done [10:45:18]FM_MakeSignedData done [10:45:18]CreateOFDProtocolMessage [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 11 00 00 [10:45:18]Write to MH i2c: E2 08 00 CB 18 80 11 00 00 00 00 00 00 5D [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 17 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 17 00 CB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BD [10:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:45:18]wFMCommunicate OK [10:45:18]CreateOFDProtocolMessage done [10:45:18]OFDSenderStorePacket 162480 [10:45:18]StoreOFDPacket docnum=162480 [10:45:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 65 4D 07 01 BE 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 94 00 00 00 F4 03 04 00 CB 5A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7A 02 00 35 04 06 00 5B 5C 0C D1 D5 5B 6D 1B B1 5C F5 82 DF F3 [10:45:18]CheckFolder [10:45:18]dirname=/storage/ofd_packets [10:45:18]CheckFolder done [10:45:18]ProducePacketName [10:45:18]name=ofd_packets/00162480 [10:45:18]NVStorageSaveData ofd_packets/00162480 [10:45:18]File name is /storage/ofd_packets/00162480 [10:45:18]Write 301 bytes [10:45:18]NVStorageSaveData done [10:45:18]OFDSenderStorePacket done [10:45:18]KKMCreateOFDPacket done [10:45:18]NVStorageSaveData kkm_last_timestamp [10:45:18]File name is /storage/kkm_last_timestamp [10:45:18]Write 4 bytes [10:45:18]NVStorageSaveData done [10:45:18]ExternCall_PrintAddStr [10:45:18]wPrintStart [10:45:18]Write to MH i2c: 01 00 00 CC 18 E4 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 07 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 07 00 CC 18 00 00 00 00 00 FF 0F F9 [10:45:18]RasterBufferAndPrint [10:45:18]line Счет N : (1)1319015 [10:45:18]line ИНН: 02508201610067 [10:45:18]line Контрольно-Кассовый Чек [10:45:18]line ПРОДАЖА [10:45:18]line ТРК (МРК, ГНК) : 43 [10:45:18]line Товар: 2710124130 [10:45:18]line Аи-92-К-5 [10:45:18]line 9.050 * 66.30 [10:45:18]line = 600.02 [10:45:18]line НДС 12% НСП 1% [10:45:18]line > о реализуемом товаре [10:45:18]line ОКРУГЛЕНИЕ: -0.02 [10:45:18]line ИТОГО: 600.00 [10:45:18]line Внесено: 600.00 [10:45:18]line СДАЧА: 0.00 [10:45:18]line НСП 1% : 5.31 [10:45:18]line НДС 12% : 63.72 [10:45:18]line Наличными: 600.00 [10:45:18]line Безнал.: 0.00 [10:45:18]line Место: АЗС № 140 "Партнер Нефть" [10:45:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:45:18]line СНО: Общий режим [10:45:18]line Чек 148 13.07.2024 10:45 [10:45:18]line Смена: 462 ФФД: 1.0 [10:45:18]line ЗНМ: 0300000129 [10:45:18]line РНМ: 0000000000090858 [10:45:18]line Версия ККМ: 001 [10:45:18]line ФМ: 0000000000874899 [10:45:18]line ФД: 162480 [10:45:18]line ФПД: 100450910197083 [10:45:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104531&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162480&fm=100450910197083&tin=02508201610067®Number=0000000000090858&sum=60000 [10:45:19]OFD Sender: Processing packet 162480 [packets to send 105, broken 104] [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00162480 [10:45:19]OFD Sender: To server: pG, [10:45:19]CommunicateWithHost lk.salyk.kg:30040 [10:45:19]ConnectInit lk.salyk.kg [10:45:19]written 0, free lines is 4095 [10:45:19]Connected sock=10 [10:45:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 65 4D 07 01 BE 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 94 00 00 00 F4 03 04 00 CB 5A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7A 02 00 35 04 06 00 5B 5C 0C D1 D5 5B 6D 1B B1 5C F5 82 DF F3 [10:45:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B3 38 47 00 EF 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B0 7A 02 00 F4 03 04 00 DF 06 92 66 B6 04 01 00 00 D1 63 78 86 07 9C EF DE [10:45:19]CommunicateWithHost err = 0 [10:45:19]CheckOFDResponse [10:45:19]1017 (14) - 77093643461234 [10:45:19]1041 (16) - 0000000000874899 [10:45:19]1040 (4) - 162480 [10:45:19]1012 (4) - 13.07.2024 04:47 [10:45:19]1206 (1) - 0 [10:45:19]OFD Sender: Remove packet 162480 [10:45:19]ProducePacketName [10:45:19]name=ofd_packets/00162480 [10:45:19]NVStorageDeleteData [10:45:19]Write to MH i2c: 01 00 00 F7 18 0F [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 F7 18 00 00 00 00 00 D9 0C FB [10:45:19]RasterBufferAndPrint [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]written 0, free lines is 3296 [10:45:19]MH_Cut [10:45:19]Write to MH i2c: D1 01 00 FE 18 01 E8 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 01 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 01 00 FE 18 00 E7 [10:45:19]Write to MH i2c: 01 00 00 FF 18 17 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:20]OFD Sender: No OFD packet to send [10:45:20]*** Cut start [10:45:20]*** Purtial cut [10:45:20]*** CUTSNS_PIN = 0 [10:45:20]*** Stage 1: CUTSNS_PIN = 1 [10:45:22]Read from MH i2c: 01 [10:45:22]MH_I2C_Read... [10:45:22]*** Stop cut motor [10:45:22]*** Cut end [10:45:22]Read from MH i2c: 01 07 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: 01 07 00 FF 18 00 00 00 00 00 FF 0F 2C [10:45:22]process_action close_receipt done [10:45:22]requested_data is exist [10:45:22]produce_requested_data [10:45:22]requested_item fm.sn is exist - process it [10:45:22]wFMCommunicate request_size=4 [10:45:22]MH_SAM_APDU [10:45:22]CAPDU: 80 11 00 00 [10:45:22]Write to MH i2c: E2 08 00 00 19 80 11 00 00 00 00 00 00 93 [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:22]Read from MH i2c: E2 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 17 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 17 00 00 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F3 [10:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:45:22]wFMCommunicate OK [10:45:22]requested_item fd.num is exist - process it [10:45:22]SAM_PROTO_GetFieldsCounters [10:45:22]wFMCommunicate request_size=4 [10:45:22]MH_SAM_APDU [10:45:22]CAPDU: 80 13 00 00 [10:45:22]Write to MH i2c: E2 08 00 01 19 80 13 00 00 00 00 00 00 96 [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:22]Read from MH i2c: E2 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 62 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 62 00 01 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [10:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:22]wFMCommunicate OK [10:45:22]SAM_PROTO_GetFieldsCounters done [10:45:22]requested_item shift.num is exist - process it [10:45:22]requested_item shift.opened is exist - process it [10:45:22]req_shift_opened [10:45:22]FM_GetShiftState [10:45:22]SAM_PROTO_GetShiftState [10:45:22]wFMCommunicate request_size=4 [10:45:22]MH_SAM_APDU [10:45:22]CAPDU: 80 13 01 00 [10:45:22]Write to MH i2c: E2 08 00 02 19 80 13 01 00 00 00 00 00 98 [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:22]Read from MH i2c: E2 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 0E 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 0E 00 02 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 92 [10:45:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:45:22]wFMCommunicate OK [10:45:22]SAM_PROTO_GetShiftState done [10:45:22]FM_GetShiftState done [10:45:22]req_shift_opened done [10:45:22]requested_item shift.open_date is exist - process it [10:45:22]req_shift_open_date [10:45:22]req_shift_open_date done [10:45:22]produce_requested_data done [10:45:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162480,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:45:22]process_action_free close_receipt [10:45:22]json_value_free [10:45:22]json_value_free done [10:45:22]process_json_proto returns [10:45:22]Send response to host [10:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162480,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:45:22]free response buf [10:45:22]execute_script done [10:45:22]execute_script returns [10:45:22]free content buf [10:45:22]Sock 9.Close socket [10:45:22]Sock 9.Thread stoped [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:08]accept exits with 8 [10:46:08]New connection [10:46:08]New thread 3067006308 created [10:46:08]Thread 3066862948 joined [10:46:08]Waiting for new connection... [10:46:08] Sock 8.Parse request [10:46:08]Sock 8.Check first char [10:46:08]Sock 8.First char is OK [10:46:08]request: POST /json_proto HTTP/1.0 [10:46:08]Method: POST [10:46:08]URL: /json_proto [10:46:08]Method is POST - this is cgi request [10:46:08]url: /json_proto [10:46:08]query_string will be loaded in cgi processing [10:46:08]execute_cgi json_proto POST (null) [10:46:08]execute_cgi path=json_proto method=POST [10:46:08]POST find Content-Length [10:46:08]Host: 172.17.39.67:8080 [10:46:08]Content-Length: 678 [10:46:08]Content-Type: application/json [10:46:08] [10:46:08]POST finish read [10:46:08]Found Content-Length = 678 [10:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:08]execute_script... [10:46: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)1319016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:08]POST & json_proto [10:46:08]process_json_proto [10:46:08]json parsed OK: [10:46:08]protocol is kg_v1.0 [10:46:08]action value=close_receipt [10:46:08]process_action close_receipt [10:46:08]cmd_close_receipt [10:46:08]MH_GetDate [10:46:08]Write to MH i2c: F0 00 00 03 19 0B [10:46:08]Write i2c OK [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: F0 [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: F0 09 00 [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: F0 09 00 03 19 00 FE 5A 92 66 FA E9 8E 66 3B [10:46:08]GetLastDocTimeStamp 1720867531 [10:46:08]current date 1720867582 [10:46:08]FM_GetShiftState [10:46:08]SAM_PROTO_GetShiftState [10:46:08]wFMCommunicate request_size=4 [10:46:08]MH_SAM_APDU [10:46:08]CAPDU: 80 13 01 00 [10:46:08]Write to MH i2c: E2 08 00 04 19 80 13 01 00 00 00 00 00 9A [10:46:08]Write i2c OK [10:46:08]MH_I2C_Read... [10:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:08]Read from MH i2c: E2 [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: E2 0E 00 [10:46:08]MH_I2C_Read... [10:46:08]Read from MH i2c: E2 0E 00 04 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 94 [10:46:08]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:46:08]wFMCommunicate OK [10:46:08]SAM_PROTO_GetShiftState done [10:46:08]FM_GetShiftState done [10:46:08]opened in 1720828979 [10:46:08]opened+sec_in_day 1720915379 [10:46:08]quantity*price = 50056 [10:46:08]sum+1 = 50058 [10:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 149 13.07.2024 10:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162481 ФПД: 98138822224574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104622&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162481&fm=98138822224574&tin=02508201610067®Number=0000000000090858&sum=50000 [10:46:10]StoreToDocumentArchive [10:46:10]shift 462 fd 162481 [10:46:10]save to /storage/0462/doc_00162481 [10:46:10]save last doc name /storage/0462/doc_00162481 to /storage/kkm_last_doc_name [10:46:10]save OK [10:46:10]Clear old archive folders... [10:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:10]tlvbuf is 0197C4F0 [10:46:10]SAM_PROTO_ClearQueue [10:46:10]wFMCommunicate request_size=4 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 09 00 00 [10:46:10]Write to MH i2c: E2 08 00 11 19 80 09 00 00 00 00 00 00 9C [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 11 19 00 90 00 9E [10:46:10]RAPDU: 90 00 [10:46:10]wFMCommunicate OK [10:46:10]SAM_PROTO_ClearQueue done [10:46:10]KKMCreateOFDPacket [10:46:10]OFDProtocolAddRootSTLVToBuf [10:46:10]FM_MakeSignedData [10:46:10]FM_MakeSignedData [10:46:10]SAM_PROTO_SignData [10:46:10]wFMCommunicate request_size=4 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 0D 01 02 [10:46:10]Write to MH i2c: E2 08 00 12 19 80 0D 01 02 00 00 00 00 A4 [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:10]OFD Sender: No OFD packet to send [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 12 19 00 90 00 9F [10:46:10]RAPDU: 90 00 [10:46:10]wFMCommunicate OK [10:46:10]wFMCommunicate request_size=255 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FE 5A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7A 02 00 35 04 06 00 59 [10:46:10]Write to MH i2c: E2 02 01 13 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FE 5A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7A 02 00 35 04 06 00 59 00 00 9A [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 13 19 00 90 00 A0 [10:46:10]RAPDU: 90 00 [10:46:10]wFMCommunicate OK [10:46:10]wFMCommunicate request_size=10 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 0D 02 02 05 41 B9 A3 2A BE [10:46:10]Write to MH i2c: E2 0D 00 14 19 80 0D 02 02 05 00 41 B9 A3 2A BE 00 00 36 [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 03 00 14 19 00 90 00 A1 [10:46:10]RAPDU: 90 00 [10:46:10]wFMCommunicate OK [10:46:10]wFMCommunicate request_size=4 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 0D 03 02 [10:46:10]Write to MH i2c: E2 08 00 15 19 80 0D 03 02 00 00 00 00 A9 [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 0B 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 0B 00 15 19 00 78 BF D9 6B 99 E1 A6 94 90 00 D9 [10:46:10]RAPDU: 78 BF D9 6B 99 E1 A6 94 90 00 [10:46:10]wFMCommunicate OK [10:46:10]SAM_PROTO_SignData done [10:46:10]FM_MakeSignedData done [10:46:10]CreateOFDProtocolMessage [10:46:10]wFMCommunicate request_size=4 [10:46:10]MH_SAM_APDU [10:46:10]CAPDU: 80 11 00 00 [10:46:10]Write to MH i2c: E2 08 00 16 19 80 11 00 00 00 00 00 00 A9 [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:10]Read from MH i2c: E2 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 17 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: E2 17 00 16 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 09 [10:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:46:10]wFMCommunicate OK [10:46:10]CreateOFDProtocolMessage done [10:46:10]OFDSenderStorePacket 162481 [10:46:10]StoreOFDPacket docnum=162481 [10:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 27 7E 07 01 C9 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FE 5A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7A 02 00 35 04 06 00 59 41 B9 A3 2A BE 78 BF D9 6B 99 E1 A6 94 [10:46:10]CheckFolder [10:46:10]dirname=/storage/ofd_packets [10:46:10]CheckFolder done [10:46:10]ProducePacketName [10:46:10]name=ofd_packets/00162481 [10:46:10]NVStorageSaveData ofd_packets/00162481 [10:46:10]File name is /storage/ofd_packets/00162481 [10:46:10]Write 301 bytes [10:46:10]NVStorageSaveData done [10:46:10]OFDSenderStorePacket done [10:46:10]KKMCreateOFDPacket done [10:46:10]NVStorageSaveData kkm_last_timestamp [10:46:10]File name is /storage/kkm_last_timestamp [10:46:10]Write 4 bytes [10:46:10]NVStorageSaveData done [10:46:10]ExternCall_PrintAddStr [10:46:10]wPrintStart [10:46:10]Write to MH i2c: 01 00 00 17 19 30 [10:46:10]Write i2c OK [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: 01 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: 01 07 00 [10:46:10]MH_I2C_Read... [10:46:10]Read from MH i2c: 01 07 00 17 19 00 00 00 00 00 FF 0F 45 [10:46:10]RasterBufferAndPrint [10:46:10]line Счет N : (1)1319016 [10:46:10]line ИНН: 02508201610067 [10:46:10]line Контрольно-Кассовый Чек [10:46:10]line ПРОДАЖА [10:46:10]line ТРК (МРК, ГНК) : 43 [10:46:10]line Товар: 2710124130 [10:46:10]line Аи-92-К-5 [10:46:10]line 7.550 * 66.30 [10:46:10]line = 500.57 [10:46:10]line НДС 12% НСП 1% [10:46:10]line > о реализуемом товаре [10:46:10]line ОКРУГЛЕНИЕ: -0.57 [10:46:10]line ИТОГО: 500.00 [10:46:10]line Внесено: 500.00 [10:46:10]line СДАЧА: 0.00 [10:46:10]line НСП 1% : 4.43 [10:46:10]line НДС 12% : 53.16 [10:46:10]line Наличными: 500.00 [10:46:10]line Безнал.: 0.00 [10:46:10]line Место: АЗС № 140 "Партнер Нефть" [10:46:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:46:10]line СНО: Общий режим [10:46:10]line Чек 149 13.07.2024 10:46 [10:46:10]line Смена: 462 ФФД: 1.0 [10:46:10]line ЗНМ: 0300000129 [10:46:10]line РНМ: 0000000000090858 [10:46:10]line Версия ККМ: 001 [10:46:10]line ФМ: 0000000000874899 [10:46:10]line ФД: 162481 [10:46:10]line ФПД: 98138822224574 [10:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104622&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162481&fm=98138822224574&tin=02508201610067®Number=0000000000090858&sum=50000 [10:46:10]OFD Sender: Processing packet 162481 [packets to send 105, broken 104] [10:46:10]ProducePacketName [10:46:10]name=ofd_packets/00162481 [10:46:10]OFD Sender: To server: pG, [10:46:10]CommunicateWithHost lk.salyk.kg:30040 [10:46:10]ConnectInit lk.salyk.kg [10:46:10]written 0, free lines is 4095 [10:46:11]Connected sock=10 [10:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 27 7E 07 01 C9 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 FE 5A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7A 02 00 35 04 06 00 59 41 B9 A3 2A BE 78 BF D9 6B 99 E1 A6 94 [10:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CF 59 47 00 BF BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B1 7A 02 00 F4 03 04 00 13 07 92 66 B6 04 01 00 00 10 20 71 82 8B 9B 2B 41 [10:46:11]CommunicateWithHost err = 0 [10:46:11]CheckOFDResponse [10:46:11]1017 (14) - 77093643461234 [10:46:11]1041 (16) - 0000000000874899 [10:46:11]1040 (4) - 162481 [10:46:11]1012 (4) - 13.07.2024 04:48 [10:46:11]1206 (1) - 0 [10:46:11]OFD Sender: Remove packet 162481 [10:46:11]ProducePacketName [10:46:11]name=ofd_packets/00162481 [10:46:11]NVStorageDeleteData [10:46:11]Write to MH i2c: 01 00 00 42 19 5B [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: 01 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: 01 07 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: 01 07 00 42 19 00 00 00 00 00 DC 0C 4A [10:46:11]RasterBufferAndPrint [10:46:11]line [10:46:11]line [10:46:11]line [10:46:11]line [10:46:11]line [10:46:11]written 0, free lines is 3297 [10:46:11]MH_Cut [10:46:11]Write to MH i2c: D1 01 00 49 19 01 34 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: D1 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: D1 01 00 [10:46:11]MH_I2C_Read... [10:46:11]Read from MH i2c: D1 01 00 49 19 00 33 [10:46:11]Write to MH i2c: 01 00 00 4A 19 63 [10:46:11]Write i2c OK [10:46:11]MH_I2C_Read... [10:46:11]OFD Sender: No OFD packet to send [10:46:12]*** Cut start [10:46:12]*** Purtial cut [10:46:12]*** Stage 1: CUTSNS_PIN = 1 [10:46:12]Read from MH i2c: 01 [10:46:12]MH_I2C_Read... [10:46:12]*** Stop cut motor [10:46:12]*** Cut end [10:46:12]Read from MH i2c: 01 07 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: 01 07 00 4A 19 00 00 00 00 00 FF 0F 78 [10:46:12]process_action close_receipt done [10:46:12]requested_data is exist [10:46:12]produce_requested_data [10:46:12]requested_item fm.sn is exist - process it [10:46:12]wFMCommunicate request_size=4 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 11 00 00 [10:46:12]Write to MH i2c: E2 08 00 4B 19 80 11 00 00 00 00 00 00 DE [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 17 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 17 00 4B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3E [10:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:46:12]wFMCommunicate OK [10:46:12]requested_item fd.num is exist - process it [10:46:12]SAM_PROTO_GetFieldsCounters [10:46:12]wFMCommunicate request_size=4 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 13 00 00 [10:46:12]Write to MH i2c: E2 08 00 4C 19 80 13 00 00 00 00 00 00 E1 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 62 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 62 00 4C 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [10:46:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:12]wFMCommunicate OK [10:46:12]SAM_PROTO_GetFieldsCounters done [10:46:12]requested_item shift.num is exist - process it [10:46:12]requested_item shift.opened is exist - process it [10:46:12]req_shift_opened [10:46:12]FM_GetShiftState [10:46:12]SAM_PROTO_GetShiftState [10:46:12]wFMCommunicate request_size=4 [10:46:12]MH_SAM_APDU [10:46:12]CAPDU: 80 13 01 00 [10:46:12]Write to MH i2c: E2 08 00 4D 19 80 13 01 00 00 00 00 00 E3 [10:46:12]Write i2c OK [10:46:12]MH_I2C_Read... [10:46:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:12]Read from MH i2c: E2 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 0E 00 [10:46:12]MH_I2C_Read... [10:46:12]Read from MH i2c: E2 0E 00 4D 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DD [10:46:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:46:12]wFMCommunicate OK [10:46:12]SAM_PROTO_GetShiftState done [10:46:12]FM_GetShiftState done [10:46:12]req_shift_opened done [10:46:12]requested_item shift.open_date is exist - process it [10:46:12]req_shift_open_date [10:46:12]req_shift_open_date done [10:46:12]produce_requested_data done [10:46:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162481,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:46:12]process_action_free close_receipt [10:46:12]json_value_free [10:46:12]json_value_free done [10:46:12]process_json_proto returns [10:46:12]Send response to host [10:46:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162481,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:46:12]free response buf [10:46:12]execute_script done [10:46:12]execute_script returns [10:46:12]free content buf [10:46:12]Sock 8.Close socket [10:46:12]Sock 8.Thread stoped [10:46:16]OFD Sender: No OFD packet to send [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:11]OFD Sender: No OFD packet to send [10:47:16]OFD Sender: No OFD packet to send [10:47:21]OFD Sender: No OFD packet to send [10:47:26]OFD Sender: No OFD packet to send [10:47:31]OFD Sender: No OFD packet to send [10:47:36]OFD Sender: No OFD packet to send [10:47:41]OFD Sender: No OFD packet to send [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:48:58]accept exits with 9 [10:48:58]New connection [10:48:58]New thread 3066862948 created [10:48:58]Thread 3067006308 joined [10:48:58]Waiting for new connection... [10:48:58] Sock 9.Parse request [10:48:58]Sock 9.Check first char [10:48:58]Sock 9.First char is OK [10:48:58]request: POST /json_proto HTTP/1.0 [10:48:58]Method: POST [10:48:58]URL: /json_proto [10:48:58]Method is POST - this is cgi request [10:48:58]url: /json_proto [10:48:58]query_string will be loaded in cgi processing [10:48:58]execute_cgi json_proto POST (null) [10:48:58]execute_cgi path=json_proto method=POST [10:48:58]POST find Content-Length [10:48:58]Host: 172.17.39.67:8080 [10:48:58]Content-Length: 688 [10:48:58]Content-Type: application/json [10:48:58] [10:48:58]POST finish read [10:48:58]Found Content-Length = 688 [10:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:48:58]execute_script... [10:48:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:48:58]POST & json_proto [10:48:58]process_json_proto [10:48:58]json parsed OK: [10:48:58]protocol is kg_v1.0 [10:48:58]action value=close_receipt [10:48:58]process_action close_receipt [10:48:58]cmd_close_receipt [10:48:58]MH_GetDate [10:48:58]Write to MH i2c: F0 00 00 4E 19 56 [10:48:58]Write i2c OK [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: F0 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: F0 09 00 [10:48:58]MH_I2C_Read... [10:48:58]Read from MH i2c: F0 09 00 4E 19 00 A8 5B 92 66 FA E9 8E 66 31 [10:48:58]GetLastDocTimeStamp 1720867582 [10:48:58]current date 1720867752 [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 4F 19 80 13 01 00 00 00 00 00 E5 [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 4F 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DF [10:48:58]RAPDU: 09 00 01 33 C4 91 66 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]opened in 1720828979 [10:48:58]opened+sec_in_day 1720915379 [10:48:58]quantity*price = 100042 [10:48:58]sum+1 = 100044 [10:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 150 13.07.2024 10:49 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162482 ФПД: 146984898459867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104912&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162482&fm=146984898459867&tin=02508201610067®Number=0000000000090858&sum=100000 [10:49:00]StoreToDocumentArchive [10:49:00]shift 462 fd 162482 [10:49:00]save to /storage/0462/doc_00162482 [10:49:00]save last doc name /storage/0462/doc_00162482 to /storage/kkm_last_doc_name [10:49:00]save OK [10:49:00]Clear old archive folders... [10:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:49:00]tlvbuf is 00051400 [10:49:00]SAM_PROTO_ClearQueue [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 09 00 00 [10:49:00]Write to MH i2c: E2 08 00 5C 19 80 09 00 00 00 00 00 00 E7 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 03 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 03 00 5C 19 00 90 00 E9 [10:49:00]RAPDU: 90 00 [10:49:00]wFMCommunicate OK [10:49:00]SAM_PROTO_ClearQueue done [10:49:00]KKMCreateOFDPacket [10:49:00]OFDProtocolAddRootSTLVToBuf [10:49:00]FM_MakeSignedData [10:49:00]FM_MakeSignedData [10:49:00]SAM_PROTO_SignData [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 0D 01 02 [10:49:00]Write to MH i2c: E2 08 00 5D 19 80 0D 01 02 00 00 00 00 EF [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 03 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 03 00 5D 19 00 90 00 EA [10:49:00]RAPDU: 90 00 [10:49:00]wFMCommunicate OK [10:49:00]wFMCommunicate request_size=255 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 96 00 00 00 F4 03 04 00 A8 5B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7A 02 00 35 04 06 00 [10:49:00]Write to MH i2c: E2 02 01 5E 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 96 00 00 00 F4 03 04 00 A8 5B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7A 02 00 35 04 06 00 00 00 16 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 03 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 03 00 5E 19 00 90 00 EB [10:49:00]RAPDU: 90 00 [10:49:00]wFMCommunicate OK [10:49:00]wFMCommunicate request_size=11 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 0D 02 02 06 85 AE 96 A8 F8 DB [10:49:00]Write to MH i2c: E2 0E 00 5F 19 80 0D 02 02 06 00 85 AE 96 A8 F8 DB 00 00 42 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 03 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 03 00 5F 19 00 90 00 EC [10:49:00]RAPDU: 90 00 [10:49:00]wFMCommunicate OK [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 0D 03 02 [10:49:00]Write to MH i2c: E2 08 00 60 19 80 0D 03 02 00 00 00 00 F4 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 0B 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 0B 00 60 19 00 A0 D2 80 06 81 9C B8 74 90 00 36 [10:49:00]RAPDU: A0 D2 80 06 81 9C B8 74 90 00 [10:49:00]wFMCommunicate OK [10:49:00]SAM_PROTO_SignData done [10:49:00]FM_MakeSignedData done [10:49:00]CreateOFDProtocolMessage [10:49:00]wFMCommunicate request_size=4 [10:49:00]MH_SAM_APDU [10:49:00]CAPDU: 80 11 00 00 [10:49:00]Write to MH i2c: E2 08 00 61 19 80 11 00 00 00 00 00 00 F4 [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:00]Read from MH i2c: E2 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 17 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: E2 17 00 61 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 54 [10:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:49:00]wFMCommunicate OK [10:49:00]CreateOFDProtocolMessage done [10:49:00]OFDSenderStorePacket 162482 [10:49:00]StoreOFDPacket docnum=162482 [10:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F6 04 08 01 5C 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 96 00 00 00 F4 03 04 00 A8 5B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7A 02 00 35 04 06 00 85 AE 96 A8 F8 DB A0 D2 80 06 81 9C B8 74 [10:49:00]CheckFolder [10:49:00]dirname=/storage/ofd_packets [10:49:00]CheckFolder done [10:49:00]ProducePacketName [10:49:00]name=ofd_packets/00162482 [10:49:00]NVStorageSaveData ofd_packets/00162482 [10:49:00]File name is /storage/ofd_packets/00162482 [10:49:00]Write 302 bytes [10:49:00]NVStorageSaveData done [10:49:00]OFDSenderStorePacket done [10:49:00]KKMCreateOFDPacket done [10:49:00]NVStorageSaveData kkm_last_timestamp [10:49:00]File name is /storage/kkm_last_timestamp [10:49:00]Write 4 bytes [10:49:00]NVStorageSaveData done [10:49:00]ExternCall_PrintAddStr [10:49:00]wPrintStart [10:49:00]Write to MH i2c: 01 00 00 62 19 7B [10:49:00]Write i2c OK [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: 01 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: 01 07 00 [10:49:00]MH_I2C_Read... [10:49:00]Read from MH i2c: 01 07 00 62 19 00 00 00 00 00 FF 0F 90 [10:49:00]RasterBufferAndPrint [10:49:00]line Счет N : (1)1319017 [10:49:00]line ИНН: 02508201610067 [10:49:00]line Контрольно-Кассовый Чек [10:49:00]line ПРОДАЖА [10:49:00]line ТРК (МРК, ГНК) : 21 [10:49:00]line Товар: 2710194210 [10:49:00]line ДТ(л)-К-5 [10:49:00]line 13.780 * 72.60 [10:49:00]line = 1000.43 [10:49:00]line НДС 12% НСП 1% [10:49:00]line > о реализуемом товаре [10:49:00]line ОКРУГЛЕНИЕ: -0.43 [10:49:00]line ИТОГО: 1000.00 [10:49:00]line Внесено: 1000.00 [10:49:00]line СДАЧА: 0.00 [10:49:00]line НСП 1% : 8.85 [10:49:00]line НДС 12% : 106.24 [10:49:00]line Наличными: 1000.00 [10:49:00]line Безнал.: 0.00 [10:49:00]line Место: АЗС № 140 "Партнер Нефть" [10:49:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:49:00]line СНО: Общий режим [10:49:00]line Чек 150 13.07.2024 10:49 [10:49:00]line Смена: 462 ФФД: 1.0 [10:49:00]line ЗНМ: 0300000129 [10:49:00]line РНМ: 0000000000090858 [10:49:00]line Версия ККМ: 001 [10:49:00]line ФМ: 0000000000874899 [10:49:00]line ФД: 162482 [10:49:00]line ФПД: 146984898459867 [10:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T104912&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162482&fm=146984898459867&tin=02508201610067®Number=0000000000090858&sum=100000 [10:49:00]OFD Sender: Processing packet 162482 [packets to send 105, broken 104] [10:49:00]ProducePacketName [10:49:00]name=ofd_packets/00162482 [10:49:00]OFD Sender: To server: pG, [10:49:00]CommunicateWithHost lk.salyk.kg:30040 [10:49:00]ConnectInit lk.salyk.kg [10:49:00]written 0, free lines is 4095 [10:49:01]Connected sock=10 [10: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 34 38 39 39 10 01 00 00 F6 04 08 01 5C 27 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 96 00 00 00 F4 03 04 00 A8 5B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7A 02 00 35 04 06 00 85 AE 96 A8 F8 DB A0 D2 80 06 81 9C B8 74 [10:49:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2C 6D 47 00 C9 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B2 7A 02 00 F4 03 04 00 BD 07 92 66 B6 04 01 00 00 DE DA 64 59 7E 63 DE D5 [10:49:01]CommunicateWithHost err = 0 [10:49:01]CheckOFDResponse [10:49:01]1017 (14) - 77093643461234 [10:49:01]1041 (16) - 0000000000874899 [10:49:01]1040 (4) - 162482 [10:49:01]1012 (4) - 13.07.2024 04:51 [10:49:01]1206 (1) - 0 [10:49:01]OFD Sender: Remove packet 162482 [10:49:01]ProducePacketName [10:49:01]name=ofd_packets/00162482 [10:49:01]NVStorageDeleteData [10:49:01]Write to MH i2c: 01 00 00 8D 19 A6 [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: 01 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: 01 07 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: 01 07 00 8D 19 00 00 00 00 00 E9 0C A2 [10:49:01]RasterBufferAndPrint [10:49:01]line [10:49:01]line [10:49:01]line [10:49:01]line [10:49:01]line [10:49:01]written 0, free lines is 3311 [10:49:01]MH_Cut [10:49:01]Write to MH i2c: D1 01 00 94 19 01 7F [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: D1 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: D1 01 00 [10:49:01]MH_I2C_Read... [10:49:01]Read from MH i2c: D1 01 00 94 19 00 7E [10:49:01]Write to MH i2c: 01 00 00 95 19 AE [10:49:01]Write i2c OK [10:49:01]MH_I2C_Read... [10:49:01]OFD Sender: No OFD packet to send [10:49:02]*** Cut start [10:49:02]*** Purtial cut [10:49:02]*** CUTSNS_PIN = 0 [10:49:02]*** Stage 1: CUTSNS_PIN = 1 [10:49:04]Read from MH i2c: 01 [10:49:04]MH_I2C_Read... [10:49:04]*** Stop cut motor [10:49:04]*** Cut end [10:49:04]Read from MH i2c: 01 07 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: 01 07 00 95 19 00 00 00 00 00 FF 0F C3 [10:49:04]process_action close_receipt done [10:49:04]requested_data is exist [10:49:04]produce_requested_data [10:49:04]requested_item fm.sn is exist - process it [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 11 00 00 [10:49:04]Write to MH i2c: E2 08 00 96 19 80 11 00 00 00 00 00 00 29 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 17 00 96 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 89 [10:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:49:04]wFMCommunicate OK [10:49:04]requested_item fd.num is exist - process it [10:49:04]SAM_PROTO_GetFieldsCounters [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 13 00 00 [10:49:04]Write to MH i2c: E2 08 00 97 19 80 13 00 00 00 00 00 00 2C [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 62 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 62 00 97 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [10:49:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:04]wFMCommunicate OK [10:49:04]SAM_PROTO_GetFieldsCounters done [10:49:04]requested_item shift.num is exist - process it [10:49:04]requested_item shift.opened is exist - process it [10:49:04]req_shift_opened [10:49:04]FM_GetShiftState [10:49:04]SAM_PROTO_GetShiftState [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 13 01 00 [10:49:04]Write to MH i2c: E2 08 00 98 19 80 13 01 00 00 00 00 00 2E [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 0E 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 0E 00 98 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 28 [10:49:04]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:49:04]wFMCommunicate OK [10:49:04]SAM_PROTO_GetShiftState done [10:49:04]FM_GetShiftState done [10:49:04]req_shift_opened done [10:49:04]requested_item shift.open_date is exist - process it [10:49:04]req_shift_open_date [10:49:04]req_shift_open_date done [10:49:04]produce_requested_data done [10:49:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162482,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:49:04]process_action_free close_receipt [10:49:04]json_value_free [10:49:04]json_value_free done [10:49:04]process_json_proto returns [10:49:04]Send response to host [10:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162482,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:49:04]free response buf [10:49:04]execute_script done [10:49:04]execute_script returns [10:49:04]free content buf [10:49:04]Sock 9.Close socket [10:49:04]Sock 9.Thread stoped [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:49:57]accept exits with 8 [10:49:57]New connection [10:49:57]New thread 3067006308 created [10:49:57]Thread 3066862948 joined [10:49:57]Waiting for new connection... [10:49:57] Sock 8.Parse request [10:49:57]Sock 8.Check first char [10:49:57]Sock 8.First char is OK [10:49:57]request: POST /json_proto HTTP/1.0 [10:49:57]Method: POST [10:49:57]URL: /json_proto [10:49:57]Method is POST - this is cgi request [10:49:57]url: /json_proto [10:49:57]query_string will be loaded in cgi processing [10:49:57]execute_cgi json_proto POST (null) [10:49:57]execute_cgi path=json_proto method=POST [10:49:57]POST find Content-Length [10:49:57]Host: 172.17.39.67:8080 [10:49:57]Content-Length: 641 [10:49:57]Content-Type: application/json [10:49:57] [10:49:57]POST finish read [10:49:57]Found Content-Length = 641 [10:49:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:57]execute_script... [10:49: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)1319019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:57]POST & json_proto [10:49:57]process_json_proto [10:49:57]json parsed OK: [10:49:57]protocol is kg_v1.0 [10:49:57]action value=close_receipt [10:49:57]process_action close_receipt [10:49:57]cmd_close_receipt [10:49:57]MH_GetDate [10:49:57]Write to MH i2c: F0 00 00 99 19 A1 [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: F0 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: F0 09 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: F0 09 00 99 19 00 E3 5B 92 66 FA E9 8E 66 B7 [10:49:57]GetLastDocTimeStamp 1720867752 [10:49:57]current date 1720867811 [10:49:57]FM_GetShiftState [10:49:57]SAM_PROTO_GetShiftState [10:49:57]wFMCommunicate request_size=4 [10:49:57]MH_SAM_APDU [10:49:57]CAPDU: 80 13 01 00 [10:49:57]Write to MH i2c: E2 08 00 9A 19 80 13 01 00 00 00 00 00 30 [10:49:57]Write i2c OK [10:49:57]MH_I2C_Read... [10:49:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:57]Read from MH i2c: E2 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 0E 00 [10:49:57]MH_I2C_Read... [10:49:57]Read from MH i2c: E2 0E 00 9A 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2A [10:49:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:49:57]wFMCommunicate OK [10:49:57]SAM_PROTO_GetShiftState done [10:49:57]FM_GetShiftState done [10:49:57]opened in 1720828979 [10:49:57]opened+sec_in_day 1720915379 [10:49:57]quantity*price = 66300 [10:49:57]sum+1 = 66301 [10:49:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 663.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 151 13.07.2024 10:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162483 ФПД: 74317103043782 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105011&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162483&fm=74317103043782&tin=02508201610067®Number=0000000000090858&sum=66300 [10:49:58]StoreToDocumentArchive [10:49:58]shift 462 fd 162483 [10:49:58]save to /storage/0462/doc_00162483 [10:49:58]save last doc name /storage/0462/doc_00162483 to /storage/kkm_last_doc_name [10:49:58]save OK [10:49:58]Clear old archive folders... [10:49:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:58]tlvbuf is 017A7290 [10:49:58]SAM_PROTO_ClearQueue [10:49:58]wFMCommunicate request_size=4 [10:49:58]MH_SAM_APDU [10:49:58]CAPDU: 80 09 00 00 [10:49:58]Write to MH i2c: E2 08 00 A7 19 80 09 00 00 00 00 00 00 32 [10:49:58]Write i2c OK [10:49:58]MH_I2C_Read... [10:49:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:58]Read from MH i2c: E2 [10:49:58]MH_I2C_Read... [10:49:58]Read from MH i2c: E2 03 00 [10:49:58]MH_I2C_Read... [10:49:58]Read from MH i2c: E2 03 00 A7 19 00 90 00 34 [10:49:58]RAPDU: 90 00 [10:49:58]wFMCommunicate OK [10:49:58]SAM_PROTO_ClearQueue done [10:49:58]KKMCreateOFDPacket [10:49:58]OFDProtocolAddRootSTLVToBuf [10:49:58]FM_MakeSignedData [10:49:58]FM_MakeSignedData [10:49:58]SAM_PROTO_SignData [10:49:58]wFMCommunicate request_size=4 [10:49:58]MH_SAM_APDU [10:49:58]CAPDU: 80 0D 01 02 [10:49:58]Write to MH i2c: E2 08 00 A8 19 80 0D 01 02 00 00 00 00 3A [10:49:58]Write i2c OK [10:49:58]MH_I2C_Read... [10:49:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:58]Read from MH i2c: E2 [10:49:58]MH_I2C_Read... [10:49:58]Read from MH i2c: E2 03 00 [10:49:58]MH_I2C_Read... [10:49:58]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [10:49:58]RAPDU: 90 00 [10:49:58]wFMCommunicate OK [10:49:58]wFMCommunicate request_size=255 [10:49:58]MH_SAM_APDU [10:49:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 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 E3 5B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7A 02 00 35 04 06 00 43 [10:49:58]Write to MH i2c: E2 02 01 A9 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 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 E3 5B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7A 02 00 35 04 06 00 43 00 00 80 [10:49:58]Write i2c OK [10:49:58]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 03 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 03 00 A9 19 00 90 00 36 [10:49:59]RAPDU: 90 00 [10:49:59]wFMCommunicate OK [10:49:59]wFMCommunicate request_size=10 [10:49:59]MH_SAM_APDU [10:49:59]CAPDU: 80 0D 02 02 05 97 4C 87 14 C6 [10:49:59]Write to MH i2c: E2 0D 00 AA 19 80 0D 02 02 05 00 97 4C 87 14 C6 00 00 8B [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 03 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 03 00 AA 19 00 90 00 37 [10:49:59]RAPDU: 90 00 [10:49:59]wFMCommunicate OK [10:49:59]wFMCommunicate request_size=4 [10:49:59]MH_SAM_APDU [10:49:59]CAPDU: 80 0D 03 02 [10:49:59]Write to MH i2c: E2 08 00 AB 19 80 0D 03 02 00 00 00 00 3F [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 0B 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 0B 00 AB 19 00 A2 C2 6E FE 1E AF 93 4D 90 00 BD [10:49:59]RAPDU: A2 C2 6E FE 1E AF 93 4D 90 00 [10:49:59]wFMCommunicate OK [10:49:59]SAM_PROTO_SignData done [10:49:59]FM_MakeSignedData done [10:49:59]CreateOFDProtocolMessage [10:49:59]wFMCommunicate request_size=4 [10:49:59]MH_SAM_APDU [10:49:59]CAPDU: 80 11 00 00 [10:49:59]Write to MH i2c: E2 08 00 AC 19 80 11 00 00 00 00 00 00 3F [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:59]Read from MH i2c: E2 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 17 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: E2 17 00 AC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9F [10:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:49:59]wFMCommunicate OK [10:49:59]CreateOFDProtocolMessage done [10:49:59]OFDSenderStorePacket 162483 [10:49:59]StoreOFDPacket docnum=162483 [10:49:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8E 4E 07 01 3D B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 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 E3 5B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7A 02 00 35 04 06 00 43 97 4C 87 14 C6 A2 C2 6E FE 1E AF 93 4D [10:49:59]CheckFolder [10:49:59]dirname=/storage/ofd_packets [10:49:59]CheckFolder done [10:49:59]ProducePacketName [10:49:59]name=ofd_packets/00162483 [10:49:59]NVStorageSaveData ofd_packets/00162483 [10:49:59]File name is /storage/ofd_packets/00162483 [10:49:59]Write 301 bytes [10:49:59]NVStorageSaveData done [10:49:59]OFDSenderStorePacket done [10:49:59]KKMCreateOFDPacket done [10:49:59]NVStorageSaveData kkm_last_timestamp [10:49:59]File name is /storage/kkm_last_timestamp [10:49:59]Write 4 bytes [10:49:59]NVStorageSaveData done [10:49:59]ExternCall_PrintAddStr [10:49:59]wPrintStart [10:49:59]Write to MH i2c: 01 00 00 AD 19 C6 [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: 01 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: 01 07 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: 01 07 00 AD 19 00 00 00 00 00 FF 0F DB [10:49:59]RasterBufferAndPrint [10:49:59]line Счет N : (1)1319019 [10:49:59]line ИНН: 02508201610067 [10:49:59]line Контрольно-Кассовый Чек [10:49:59]line ПРОДАЖА [10:49:59]line ТРК (МРК, ГНК) : 53 [10:49:59]line Товар: 2710124130 [10:49:59]line Аи-92-К-5 [10:49:59]line 10.000 * 66.30 [10:49:59]line = 663.00 [10:49:59]line НДС 12% НСП 1% [10:49:59]line > о реализуемом товаре [10:49:59]line ИТОГО: 663.00 [10:49:59]line НСП 1% : 5.87 [10:49:59]line НДС 12% : 70.41 [10:49:59]line Наличными: 663.00 [10:49:59]line Безнал.: 0.00 [10:49:59]line Место: АЗС № 140 "Партнер Нефть" [10:49:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:49:59]line СНО: Общий режим [10:49:59]line Чек 151 13.07.2024 10:50 [10:49:59]line Смена: 462 ФФД: 1.0 [10:49:59]line ЗНМ: 0300000129 [10:49:59]line РНМ: 0000000000090858 [10:49:59]line Версия ККМ: 001 [10:49:59]line ФМ: 0000000000874899 [10:49:59]line ФД: 162483 [10:49:59]line ФПД: 74317103043782 [10:49:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105011&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162483&fm=74317103043782&tin=02508201610067®Number=0000000000090858&sum=66300 [10:49:59]OFD Sender: Processing packet 162483 [packets to send 105, broken 104] [10:49:59]ProducePacketName [10:49:59]name=ofd_packets/00162483 [10:49:59]OFD Sender: To server: pG, [10:49:59]CommunicateWithHost lk.salyk.kg:30040 [10:49:59]ConnectInit lk.salyk.kg [10:49:59]written 0, free lines is 4095 [10:49:59]Connected sock=10 [10:49:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8E 4E 07 01 3D B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 FC 02 01 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 E3 5B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7A 02 00 35 04 06 00 43 97 4C 87 14 C6 A2 C2 6E FE 1E AF 93 4D [10:49:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 93 1B 47 00 9F BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B3 7A 02 00 F4 03 04 00 F8 07 92 66 B6 04 01 00 00 49 C7 08 3E 2F 4F E1 7F [10:49:59]CommunicateWithHost err = 0 [10:49:59]CheckOFDResponse [10:49:59]1017 (14) - 77093643461234 [10:49:59]1041 (16) - 0000000000874899 [10:49:59]1040 (4) - 162483 [10:49:59]1012 (4) - 13.07.2024 04:52 [10:49:59]1206 (1) - 0 [10:49:59]OFD Sender: Remove packet 162483 [10:49:59]ProducePacketName [10:49:59]name=ofd_packets/00162483 [10:49:59]NVStorageDeleteData [10:49:59]Write to MH i2c: 01 00 00 D5 19 EE [10:49:59]Write i2c OK [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: 01 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: 01 07 00 [10:49:59]MH_I2C_Read... [10:49:59]Read from MH i2c: 01 07 00 D5 19 00 00 00 00 00 00 0D 02 [10:49:59]RasterBufferAndPrint [10:49:59]line [10:49:59]line [10:49:59]line [10:49:59]line [10:49:59]line [10:49:59]written 0, free lines is 3337 [10:50:00]MH_Cut [10:50:00]Write to MH i2c: D1 01 00 DC 19 01 C7 [10:50:00]Write i2c OK [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: D1 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: D1 01 00 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: D1 01 00 DC 19 00 C6 [10:50:00]Write to MH i2c: 01 00 00 DD 19 F6 [10:50:00]Write i2c OK [10:50:00]MH_I2C_Read... [10:50:00]OFD Sender: No OFD packet to send [10:50:00]*** Cut start [10:50:00]*** Purtial cut [10:50:00]*** Stage 1: CUTSNS_PIN = 1 [10:50:00]Read from MH i2c: 01 [10:50:00]MH_I2C_Read... [10:50:00]*** Stop cut motor [10:50:00]*** Cut end [10:50:00]Read from MH i2c: 01 07 00 [10:50:00]MH_I2C_Read... [10:50:00]Read from MH i2c: 01 07 00 DD 19 00 00 00 00 00 FF 0F 0B [10:50:00]process_action close_receipt done [10:50:00]requested_data is exist [10:50:00]produce_requested_data [10:50:00]requested_item fm.sn is exist - process it [10:50:00]wFMCommunicate request_size=4 [10:50:00]MH_SAM_APDU [10:50:00]CAPDU: 80 11 00 00 [10:50:00]Write to MH i2c: E2 08 00 DE 19 80 11 00 00 00 00 00 00 71 [10:50:00]Write i2c OK [10:50:00]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 17 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 17 00 DE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [10:50:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:50:01]wFMCommunicate OK [10:50:01]requested_item fd.num is exist - process it [10:50:01]SAM_PROTO_GetFieldsCounters [10:50:01]wFMCommunicate request_size=4 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 13 00 00 [10:50:01]Write to MH i2c: E2 08 00 DF 19 80 13 00 00 00 00 00 00 74 [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 62 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 62 00 DF 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [10:50:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:01]wFMCommunicate OK [10:50:01]SAM_PROTO_GetFieldsCounters done [10:50:01]requested_item shift.num is exist - process it [10:50:01]requested_item shift.opened is exist - process it [10:50:01]req_shift_opened [10:50:01]FM_GetShiftState [10:50:01]SAM_PROTO_GetShiftState [10:50:01]wFMCommunicate request_size=4 [10:50:01]MH_SAM_APDU [10:50:01]CAPDU: 80 13 01 00 [10:50:01]Write to MH i2c: E2 08 00 E0 19 80 13 01 00 00 00 00 00 76 [10:50:01]Write i2c OK [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 [10:50:01]MH_I2C_Read... [10:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:01]Read from MH i2c: E2 0E 00 [10:50:01]MH_I2C_Read... [10:50:01]Read from MH i2c: E2 0E 00 E0 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 70 [10:50:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:50:01]wFMCommunicate OK [10:50:01]SAM_PROTO_GetShiftState done [10:50:01]FM_GetShiftState done [10:50:01]req_shift_opened done [10:50:01]requested_item shift.open_date is exist - process it [10:50:01]req_shift_open_date [10:50:01]req_shift_open_date done [10:50:01]produce_requested_data done [10:50:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162483,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:50:01]process_action_free close_receipt [10:50:01]json_value_free [10:50:01]json_value_free done [10:50:01]process_json_proto returns [10:50:01]Send response to host [10:50:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162483,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:50:01]free response buf [10:50:01]execute_script done [10:50:01]execute_script returns [10:50:01]free content buf [10:50:01]Sock 8.Close socket [10:50:01]Sock 8.Thread stoped [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:15]accept exits with 9 [10:51:15]New connection [10:51:15]New thread 3066862948 created [10:51:15]Thread 3067006308 joined [10:51:15]Waiting for new connection... [10:51:15] Sock 9.Parse request [10:51:15]Sock 9.Check first char [10:51:15]Sock 9.First char is OK [10:51:15]request: POST /json_proto HTTP/1.0 [10:51:15]Method: POST [10:51:15]URL: /json_proto [10:51:15]Method is POST - this is cgi request [10:51:15]url: /json_proto [10:51:15]query_string will be loaded in cgi processing [10:51:15]execute_cgi json_proto POST (null) [10:51:15]execute_cgi path=json_proto method=POST [10:51:15]POST find Content-Length [10:51:15]Host: 172.17.39.67:8080 [10:51:15]Content-Length: 1218 [10:51:15]Content-Type: application/json [10:51:15] [10:51:15]POST finish read [10:51:15]Found Content-Length = 1218 [10:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319020\u000A13.07.2024 10:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 15.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1089.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:15]execute_script... [10:51:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319020\u000A13.07.2024 10:49\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 15.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1089.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:15]POST & json_proto [10:51:15]process_json_proto [10:51:15]json parsed OK: [10:51:15]protocol is kg_v1.0 [10:51:15]action value=print_text [10:51:15]process_action print_text [10:51:15]cmd_print_text [10:51:15]ExternCall_PrintAddStr [10:51:15]wPrintStart [10:51:15]Write to MH i2c: 01 00 00 E1 19 FA [10:51:15]Write i2c OK [10:51:15]MH_I2C_Read... [10:51:15]Read from MH i2c: 01 [10:51:15]MH_I2C_Read... [10:51:15]Read from MH i2c: 01 07 00 [10:51:15]MH_I2C_Read... [10:51:15]Read from MH i2c: 01 07 00 E1 19 00 00 00 00 00 FF 0F 0F [10:51:15]RasterBufferAndPrint [10:51:15]line *****ТОВАРНЫЙ ЧЕК***** [10:51:15]line АЗС 140 [10:51:15]line Партнер нефть [10:51:15]line 02508201610067 [10:51:15]line Кассир : Шамбеталиев А. [10:51:15]line Счет N : (1)1319020 [10:51:15]line 13.07.2024 10:49 [10:51:15]line ПРОДАЖА [10:51:15]line ТРК (МРК, ГНК): 41 [10:51:15]line Вид ГСМ : 2710194210 [10:51:15]line ДТ(л)-К-5 [10:51:15]line 15.000 x 72.60 [10:51:15]line ИТОГ: 1089.00 [10:51:15]line Тип оплаты: Талоны: Топливная Карта [10:51:15]line 74684 [10:51:15]line ______________________ [10:51:15]line (подпись) [10:51:15]written 0, free lines is 4095 [10:51:16]Write to MH i2c: 01 00 00 F6 19 0F [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 07 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: 01 07 00 F6 19 00 00 00 00 00 F3 0D 16 [10:51:16]RasterBufferAndPrint [10:51:16]line [10:51:16]line [10:51:16]line [10:51:16]line [10:51:16]line [10:51:16]written 0, free lines is 3573 [10:51:16]MH_Cut [10:51:16]Write to MH i2c: D1 01 00 FD 19 01 E8 [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: D1 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: D1 01 00 [10:51:16]MH_I2C_Read... [10:51:16]Read from MH i2c: D1 01 00 FD 19 00 E7 [10:51:16]Write to MH i2c: 01 00 00 FE 19 17 [10:51:16]Write i2c OK [10:51:16]MH_I2C_Read... [10:51:16]*** Cut start [10:51:16]*** Purtial cut [10:51:16]*** CUTSNS_PIN = 0 [10:51:16]*** Stage 1: CUTSNS_PIN = 1 [10:51:18]Read from MH i2c: 01 [10:51:18]MH_I2C_Read... [10:51:18]*** Stop cut motor [10:51:18]*** Cut end [10:51:18]Read from MH i2c: 01 07 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: 01 07 00 FE 19 00 00 00 00 00 FF 0F 2C [10:51:18]process_action print_text done [10:51:18]requested_data is exist [10:51:18]produce_requested_data [10:51:18]requested_item fm.sn is exist - process it [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 11 00 00 [10:51:18]Write to MH i2c: E2 08 00 FF 19 80 11 00 00 00 00 00 00 92 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 17 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 17 00 FF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F2 [10:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:51:18]wFMCommunicate OK [10:51:18]requested_item fd.num is exist - process it [10:51:18]SAM_PROTO_GetFieldsCounters [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 13 00 00 [10:51:18]Write to MH i2c: E2 08 00 00 1A 80 13 00 00 00 00 00 00 96 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 62 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 62 00 00 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [10:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:18]wFMCommunicate OK [10:51:18]SAM_PROTO_GetFieldsCounters done [10:51:18]requested_item shift.num is exist - process it [10:51:18]requested_item shift.opened is exist - process it [10:51:18]req_shift_opened [10:51:18]FM_GetShiftState [10:51:18]SAM_PROTO_GetShiftState [10:51:18]wFMCommunicate request_size=4 [10:51:18]MH_SAM_APDU [10:51:18]CAPDU: 80 13 01 00 [10:51:18]Write to MH i2c: E2 08 00 01 1A 80 13 01 00 00 00 00 00 98 [10:51:18]Write i2c OK [10:51:18]MH_I2C_Read... [10:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:18]Read from MH i2c: E2 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 0E 00 [10:51:18]MH_I2C_Read... [10:51:18]Read from MH i2c: E2 0E 00 01 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 92 [10:51:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:51:18]wFMCommunicate OK [10:51:18]SAM_PROTO_GetShiftState done [10:51:18]FM_GetShiftState done [10:51:18]req_shift_opened done [10:51:18]requested_item shift.open_date is exist - process it [10:51:18]req_shift_open_date [10:51:18]req_shift_open_date done [10:51:18]produce_requested_data done [10:51:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162483,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:51:18]process_action_free print_text [10:51:18]json_value_free [10:51:18]json_value_free done [10:51:18]process_json_proto returns [10:51:18]Send response to host [10:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162483,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:51:18]free response buf [10:51:18]execute_script done [10:51:18]execute_script returns [10:51:18]free content buf [10:51:18]Sock 9.Close socket [10:51:18]Sock 9.Thread stoped [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:33]accept exits with 8 [10:54:33]New connection [10:54:33]New thread 3067006308 created [10:54:33]Thread 3066862948 joined [10:54:33]Waiting for new connection... [10:54:33] Sock 8.Parse request [10:54:33]Sock 8.Check first char [10:54:33]Sock 8.First char is OK [10:54:33]request: POST /json_proto HTTP/1.0 [10:54:33]Method: POST [10:54:33]URL: /json_proto [10:54:33]Method is POST - this is cgi request [10:54:33]url: /json_proto [10:54:33]query_string will be loaded in cgi processing [10:54:33]execute_cgi json_proto POST (null) [10:54:33]execute_cgi path=json_proto method=POST [10:54:33]POST find Content-Length [10:54:33]Host: 172.17.39.67:8080 [10:54:33]Content-Length: 780 [10:54:33]Content-Type: application/json [10:54:33] [10:54:33]POST finish read [10:54:33]Found Content-Length = 780 [10:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 50.000, "sum" : 3630.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: Balance KG", "payments": [ { "type": 1, "sum" : 3630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:33]execute_script... [10:54: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)1319018", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 50.000, "sum" : 3630.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: Balance KG", "payments": [ { "type": 1, "sum" : 3630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:33]POST & json_proto [10:54:33]process_json_proto [10:54:33]json parsed OK: [10:54:33]protocol is kg_v1.0 [10:54:33]action value=close_receipt [10:54:33]process_action close_receipt [10:54:33]cmd_close_receipt [10:54:33]MH_GetDate [10:54:33]Write to MH i2c: F0 00 00 02 1A 0B [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: F0 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: F0 09 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: F0 09 00 02 1A 00 F7 5C 92 66 FA E9 8E 66 36 [10:54:33]GetLastDocTimeStamp 1720867811 [10:54:33]current date 1720868087 [10:54:33]FM_GetShiftState [10:54:33]SAM_PROTO_GetShiftState [10:54:33]wFMCommunicate request_size=4 [10:54:33]MH_SAM_APDU [10:54:33]CAPDU: 80 13 01 00 [10:54:33]Write to MH i2c: E2 08 00 03 1A 80 13 01 00 00 00 00 00 9A [10:54:33]Write i2c OK [10:54:33]MH_I2C_Read... [10:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:33]Read from MH i2c: E2 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 0E 00 [10:54:33]MH_I2C_Read... [10:54:33]Read from MH i2c: E2 0E 00 03 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 94 [10:54:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:54:33]wFMCommunicate OK [10:54:33]SAM_PROTO_GetShiftState done [10:54:33]FM_GetShiftState done [10:54:33]opened in 1720828979 [10:54:33]opened+sec_in_day 1720915379 [10:54:33]quantity*price = 363000 [10:54:33]sum+1 = 363001 [10:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3630.00 НСП 1% : 32.12 НДС 12% : 385.49 Наличными: 0.00 Безнал.: 3630.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 152 13.07.2024 10:54 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Balance KG ФМ: 0000000000874899 ФД: 162484 ФПД: 9159316255627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105447&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162484&fm=9159316255627&tin=02508201610067®Number=0000000000090858&sum=363000 [10:54:34]StoreToDocumentArchive [10:54:34]shift 462 fd 162484 [10:54:34]save to /storage/0462/doc_00162484 [10:54:34]save last doc name /storage/0462/doc_00162484 to /storage/kkm_last_doc_name [10:54:34]save OK [10:54:34]Clear old archive folders... [10:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:54:34]tlvbuf is 0182EDD0 [10:54:34]SAM_PROTO_ClearQueue [10:54:34]wFMCommunicate request_size=4 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 09 00 00 [10:54:34]Write to MH i2c: E2 08 00 10 1A 80 09 00 00 00 00 00 00 9C [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 03 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 03 00 10 1A 00 90 00 9E [10:54:34]RAPDU: 90 00 [10:54:34]wFMCommunicate OK [10:54:34]SAM_PROTO_ClearQueue done [10:54:34]KKMCreateOFDPacket [10:54:34]OFDProtocolAddRootSTLVToBuf [10:54:34]FM_MakeSignedData [10:54:34]FM_MakeSignedData [10:54:34]SAM_PROTO_SignData [10:54:34]wFMCommunicate request_size=4 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 0D 01 02 [10:54:34]Write to MH i2c: E2 08 00 11 1A 80 0D 01 02 00 00 00 00 A4 [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 03 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 03 00 11 1A 00 90 00 9F [10:54:34]RAPDU: 90 00 [10:54:34]wFMCommunicate OK [10:54:34]wFMCommunicate request_size=255 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F7 5C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7A 02 00 35 04 06 00 [10:54:34]Write to MH i2c: E2 02 01 12 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F7 5C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7A 02 00 35 04 06 00 00 00 BD [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 03 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 03 00 12 1A 00 90 00 A0 [10:54:34]RAPDU: 90 00 [10:54:34]wFMCommunicate OK [10:54:34]wFMCommunicate request_size=11 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 0D 02 02 06 08 54 91 CA B3 8B [10:54:34]Write to MH i2c: E2 0E 00 13 1A 80 0D 02 02 06 00 08 54 91 CA B3 8B 00 00 A8 [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 03 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 03 00 13 1A 00 90 00 A1 [10:54:34]RAPDU: 90 00 [10:54:34]wFMCommunicate OK [10:54:34]wFMCommunicate request_size=4 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 0D 03 02 [10:54:34]Write to MH i2c: E2 08 00 14 1A 80 0D 03 02 00 00 00 00 A9 [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 0B 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 0B 00 14 1A 00 2B 90 03 89 C9 CE 16 77 90 00 15 [10:54:34]RAPDU: 2B 90 03 89 C9 CE 16 77 90 00 [10:54:34]wFMCommunicate OK [10:54:34]SAM_PROTO_SignData done [10:54:34]FM_MakeSignedData done [10:54:34]CreateOFDProtocolMessage [10:54:34]wFMCommunicate request_size=4 [10:54:34]MH_SAM_APDU [10:54:34]CAPDU: 80 11 00 00 [10:54:34]Write to MH i2c: E2 08 00 15 1A 80 11 00 00 00 00 00 00 A9 [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:34]Read from MH i2c: E2 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 17 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: E2 17 00 15 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 09 [10:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:54:34]wFMCommunicate OK [10:54:34]CreateOFDProtocolMessage done [10:54:34]OFDSenderStorePacket 162484 [10:54:34]StoreOFDPacket docnum=162484 [10:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A3 52 08 01 AF 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F7 5C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7A 02 00 35 04 06 00 08 54 91 CA B3 8B 2B 90 03 89 C9 CE 16 77 [10:54:34]CheckFolder [10:54:34]dirname=/storage/ofd_packets [10:54:34]CheckFolder done [10:54:34]ProducePacketName [10:54:34]name=ofd_packets/00162484 [10:54:34]NVStorageSaveData ofd_packets/00162484 [10:54:34]File name is /storage/ofd_packets/00162484 [10:54:34]Write 302 bytes [10:54:34]NVStorageSaveData done [10:54:34]OFDSenderStorePacket done [10:54:34]KKMCreateOFDPacket done [10:54:34]NVStorageSaveData kkm_last_timestamp [10:54:34]File name is /storage/kkm_last_timestamp [10:54:34]Write 4 bytes [10:54:34]NVStorageSaveData done [10:54:34]ExternCall_PrintAddStr [10:54:34]wPrintStart [10:54:34]Write to MH i2c: 01 00 00 16 1A 30 [10:54:34]Write i2c OK [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: 01 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: 01 07 00 [10:54:34]MH_I2C_Read... [10:54:34]Read from MH i2c: 01 07 00 16 1A 00 00 00 00 00 FF 0F 45 [10:54:34]RasterBufferAndPrint [10:54:34]line Счет N : (1)1319018 [10:54:34]line ИНН: 02508201610067 [10:54:34]line Контрольно-Кассовый Чек [10:54:34]line ПРОДАЖА [10:54:34]line ТРК (МРК, ГНК) : 11 [10:54:34]line Товар: 2710194210 [10:54:34]line ДТ(л)-К-5 [10:54:34]line 50.000 * 72.60 [10:54:34]line = 3630.00 [10:54:34]line НДС 12% НСП 1% [10:54:34]line > о реализуемом товаре [10:54:34]line ИТОГО: 3630.00 [10:54:34]line НСП 1% : 32.12 [10:54:34]line НДС 12% : 385.49 [10:54:34]line Наличными: 0.00 [10:54:34]line Безнал.: 3630.00 [10:54:34]line Место: АЗС № 140 "Партнер Нефть" [10:54:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:54:34]line СНО: Общий режим [10:54:34]line Чек 152 13.07.2024 10:54 [10:54:34]line Смена: 462 ФФД: 1.0 [10:54:34]line ЗНМ: 0300000129 [10:54:34]line РНМ: 0000000000090858 [10:54:34]line Версия ККМ: 001 [10:54:34]line Платежная система: Balance KG [10:54:34]line ФМ: 0000000000874899 [10:54:34]line ФД: 162484 [10:54:34]line ФПД: 9159316255627 [10:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T105447&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162484&fm=9159316255627&tin=02508201610067®Number=0000000000090858&sum=363000 [10:54:35]written 0, free lines is 4095 [10:54:35]OFD Sender: Processing packet 162484 [packets to send 105, broken 104] [10:54:35]ProducePacketName [10:54:35]name=ofd_packets/00162484 [10:54:35]OFD Sender: To server: pG, [10:54:35]CommunicateWithHost lk.salyk.kg:30040 [10:54:35]ConnectInit lk.salyk.kg [10:54:35]Connected sock=10 [10:54:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A3 52 08 01 AF 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 F7 5C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7A 02 00 35 04 06 00 08 54 91 CA B3 8B 2B 90 03 89 C9 CE 16 77 [10:54:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 34 CB 47 00 E6 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B4 7A 02 00 F4 03 04 00 0B 09 92 66 B6 04 01 00 00 C6 44 B0 6B C5 5C 50 06 [10:54:35]CommunicateWithHost err = 0 [10:54:35]CheckOFDResponse [10:54:35]1017 (14) - 77093643461234 [10:54:35]1041 (16) - 0000000000874899 [10:54:35]1040 (4) - 162484 [10:54:35]1012 (4) - 13.07.2024 04:56 [10:54:35]1206 (1) - 0 [10:54:35]OFD Sender: Remove packet 162484 [10:54:35]ProducePacketName [10:54:35]name=ofd_packets/00162484 [10:54:35]NVStorageDeleteData [10:54:35]Write to MH i2c: 01 00 00 40 1A 5A [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: 01 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: 01 07 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: 01 07 00 40 1A 00 00 00 00 00 F5 0C 62 [10:54:35]RasterBufferAndPrint [10:54:35]line [10:54:35]line [10:54:35]line [10:54:35]line [10:54:35]line [10:54:35]written 0, free lines is 3323 [10:54:35]MH_Cut [10:54:35]Write to MH i2c: D1 01 00 47 1A 01 33 [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: D1 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: D1 01 00 [10:54:35]MH_I2C_Read... [10:54:35]Read from MH i2c: D1 01 00 47 1A 00 32 [10:54:35]Write to MH i2c: 01 00 00 48 1A 62 [10:54:35]Write i2c OK [10:54:35]MH_I2C_Read... [10:54:36]OFD Sender: No OFD packet to send [10:54:36]*** Cut start [10:54:36]*** Purtial cut [10:54:36]*** Stage 1: CUTSNS_PIN = 1 [10:54:36]Read from MH i2c: 01 [10:54:36]MH_I2C_Read... [10:54:36]*** Stop cut motor [10:54:36]*** Cut end [10:54:36]Read from MH i2c: 01 07 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: 01 07 00 48 1A 00 00 00 00 00 FF 0F 77 [10:54:36]process_action close_receipt done [10:54:36]requested_data is exist [10:54:36]produce_requested_data [10:54:36]requested_item fm.sn is exist - process it [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 11 00 00 [10:54:36]Write to MH i2c: E2 08 00 49 1A 80 11 00 00 00 00 00 00 DD [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 17 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 17 00 49 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3D [10:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [10:54:36]wFMCommunicate OK [10:54:36]requested_item fd.num is exist - process it [10:54:36]SAM_PROTO_GetFieldsCounters [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 13 00 00 [10:54:36]Write to MH i2c: E2 08 00 4A 1A 80 13 00 00 00 00 00 00 E0 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:36]Read from MH i2c: E2 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 62 00 [10:54:36]MH_I2C_Read... [10:54:36]Read from MH i2c: E2 62 00 4A 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [10:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:36]wFMCommunicate OK [10:54:36]SAM_PROTO_GetFieldsCounters done [10:54:36]requested_item shift.num is exist - process it [10:54:36]requested_item shift.opened is exist - process it [10:54:36]req_shift_opened [10:54:36]FM_GetShiftState [10:54:36]SAM_PROTO_GetShiftState [10:54:36]wFMCommunicate request_size=4 [10:54:36]MH_SAM_APDU [10:54:36]CAPDU: 80 13 01 00 [10:54:36]Write to MH i2c: E2 08 00 4B 1A 80 13 01 00 00 00 00 00 E2 [10:54:36]Write i2c OK [10:54:36]MH_I2C_Read... [10:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:37]Read from MH i2c: E2 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 0E 00 [10:54:37]MH_I2C_Read... [10:54:37]Read from MH i2c: E2 0E 00 4B 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DC [10:54:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [10:54:37]wFMCommunicate OK [10:54:37]SAM_PROTO_GetShiftState done [10:54:37]FM_GetShiftState done [10:54:37]req_shift_opened done [10:54:37]requested_item shift.open_date is exist - process it [10:54:37]req_shift_open_date [10:54:37]req_shift_open_date done [10:54:37]produce_requested_data done [10:54:37]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162484,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [10:54:37]process_action_free close_receipt [10:54:37]json_value_free [10:54:37]json_value_free done [10:54:37]process_json_proto returns [10:54:37]Send response to host [10:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162484,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [10:54:37]free response buf [10:54:37]execute_script done [10:54:37]execute_script returns [10:54:37]free content buf [10:54:37]Sock 8.Close socket [10:54:37]Sock 8.Thread stoped [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:04]accept exits with 9 [11:04:04]New connection [11:04:04]New thread 3066862948 created [11:04:04]Thread 3067006308 joined [11:04:04]Waiting for new connection... [11:04:04] Sock 9.Parse request [11:04:04]Sock 9.Check first char [11:04:04]Sock 9.First char is OK [11:04:04]request: POST /json_proto HTTP/1.0 [11:04:04]Method: POST [11:04:04]URL: /json_proto [11:04:04]Method is POST - this is cgi request [11:04:04]url: /json_proto [11:04:04]query_string will be loaded in cgi processing [11:04:04]execute_cgi json_proto POST (null) [11:04:04]execute_cgi path=json_proto method=POST [11:04:04]POST find Content-Length [11:04:04]Host: 172.17.39.67:8080 [11:04:04]Content-Length: 683 [11:04:04]Content-Type: application/json [11:04:04] [11:04:04]POST finish read [11:04:04]Found Content-Length = 683 [11:04:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:04]execute_script... [11:04: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)1319021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.890, "sum" : 500.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:04]POST & json_proto [11:04:04]process_json_proto [11:04:04]json parsed OK: [11:04:04]protocol is kg_v1.0 [11:04:04]action value=close_receipt [11:04:04]process_action close_receipt [11:04:04]cmd_close_receipt [11:04:04]MH_GetDate [11:04:04]Write to MH i2c: F0 00 00 4C 1A 55 [11:04:04]Write i2c OK [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: F0 [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: F0 09 00 [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: F0 09 00 4C 1A 00 32 5F 92 66 FA E9 8E 66 BE [11:04:04]GetLastDocTimeStamp 1720868087 [11:04:04]current date 1720868658 [11:04:04]FM_GetShiftState [11:04:04]SAM_PROTO_GetShiftState [11:04:04]wFMCommunicate request_size=4 [11:04:04]MH_SAM_APDU [11:04:04]CAPDU: 80 13 01 00 [11:04:04]Write to MH i2c: E2 08 00 4D 1A 80 13 01 00 00 00 00 00 E4 [11:04:04]Write i2c OK [11:04:04]MH_I2C_Read... [11:04:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:04]Read from MH i2c: E2 [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: E2 0E 00 [11:04:04]MH_I2C_Read... [11:04:04]Read from MH i2c: E2 0E 00 4D 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DE [11:04:04]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:04:04]wFMCommunicate OK [11:04:04]SAM_PROTO_GetShiftState done [11:04:04]FM_GetShiftState done [11:04:04]opened in 1720828979 [11:04:04]opened+sec_in_day 1720915379 [11:04:04]quantity*price = 50021 [11:04:04]sum+1 = 50022 [11:04: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 153 13.07.2024 11:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162485 ФПД: 255468014745967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110418&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162485&fm=255468014745967&tin=02508201610067®Number=0000000000090858&sum=50000 [11:04:05]StoreToDocumentArchive [11:04:05]shift 462 fd 162485 [11:04:05]save to /storage/0462/doc_00162485 [11:04:05]save last doc name /storage/0462/doc_00162485 to /storage/kkm_last_doc_name [11:04:05]save OK [11:04:05]Clear old archive folders... [11:04:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:04:05]tlvbuf is 01864C00 [11:04:05]SAM_PROTO_ClearQueue [11:04:05]wFMCommunicate request_size=4 [11:04:05]MH_SAM_APDU [11:04:05]CAPDU: 80 09 00 00 [11:04:05]Write to MH i2c: E2 08 00 5A 1A 80 09 00 00 00 00 00 00 E6 [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 5A 1A 00 90 00 E8 [11:04:05]RAPDU: 90 00 [11:04:05]wFMCommunicate OK [11:04:05]SAM_PROTO_ClearQueue done [11:04:05]KKMCreateOFDPacket [11:04:05]OFDProtocolAddRootSTLVToBuf [11:04:05]FM_MakeSignedData [11:04:05]FM_MakeSignedData [11:04:05]SAM_PROTO_SignData [11:04:05]wFMCommunicate request_size=4 [11:04:05]MH_SAM_APDU [11:04:05]CAPDU: 80 0D 01 02 [11:04:05]Write to MH i2c: E2 08 00 5B 1A 80 0D 01 02 00 00 00 00 EE [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 5B 1A 00 90 00 E9 [11:04:05]RAPDU: 90 00 [11:04:05]wFMCommunicate OK [11:04:05]wFMCommunicate request_size=255 [11:04:05]MH_SAM_APDU [11:04:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 99 00 00 00 F4 03 04 00 32 5F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7A 02 00 35 04 06 00 [11:04:05]Write to MH i2c: E2 02 01 5C 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 99 00 00 00 F4 03 04 00 32 5F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7A 02 00 35 04 06 00 00 00 C1 [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 5C 1A 00 90 00 EA [11:04:05]RAPDU: 90 00 [11:04:05]wFMCommunicate OK [11:04:05]wFMCommunicate request_size=11 [11:04:05]MH_SAM_APDU [11:04:05]CAPDU: 80 0D 02 02 06 E8 58 C8 45 39 6F [11:04:05]Write to MH i2c: E2 0E 00 5D 1A 80 0D 02 02 06 00 E8 58 C8 45 39 6F 00 00 F2 [11:04:05]Write i2c OK [11:04:05]MH_I2C_Read... [11:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:05]Read from MH i2c: E2 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 [11:04:05]MH_I2C_Read... [11:04:05]Read from MH i2c: E2 03 00 5D 1A 00 90 00 EB [11:04:06]RAPDU: 90 00 [11:04:06]wFMCommunicate OK [11:04:06]wFMCommunicate request_size=4 [11:04:06]MH_SAM_APDU [11:04:06]CAPDU: 80 0D 03 02 [11:04:06]Write to MH i2c: E2 08 00 5E 1A 80 0D 03 02 00 00 00 00 F3 [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:06]Read from MH i2c: E2 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: E2 0B 00 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: E2 0B 00 5E 1A 00 6F FB 79 85 22 89 6A 3A 90 00 AB [11:04:06]RAPDU: 6F FB 79 85 22 89 6A 3A 90 00 [11:04:06]wFMCommunicate OK [11:04:06]SAM_PROTO_SignData done [11:04:06]FM_MakeSignedData done [11:04:06]CreateOFDProtocolMessage [11:04:06]wFMCommunicate request_size=4 [11:04:06]MH_SAM_APDU [11:04:06]CAPDU: 80 11 00 00 [11:04:06]Write to MH i2c: E2 08 00 5F 1A 80 11 00 00 00 00 00 00 F3 [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:06]Read from MH i2c: E2 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: E2 17 00 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: E2 17 00 5F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 53 [11:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:04:06]wFMCommunicate OK [11:04:06]CreateOFDProtocolMessage done [11:04:06]OFDSenderStorePacket 162485 [11:04:06]StoreOFDPacket docnum=162485 [11:04:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CE AA 08 01 4E 5E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 99 00 00 00 F4 03 04 00 32 5F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7A 02 00 35 04 06 00 E8 58 C8 45 39 6F 6F FB 79 85 22 89 6A 3A [11:04:06]CheckFolder [11:04:06]dirname=/storage/ofd_packets [11:04:06]CheckFolder done [11:04:06]ProducePacketName [11:04:06]name=ofd_packets/00162485 [11:04:06]NVStorageSaveData ofd_packets/00162485 [11:04:06]File name is /storage/ofd_packets/00162485 [11:04:06]Write 302 bytes [11:04:06]NVStorageSaveData done [11:04:06]OFDSenderStorePacket done [11:04:06]KKMCreateOFDPacket done [11:04:06]NVStorageSaveData kkm_last_timestamp [11:04:06]File name is /storage/kkm_last_timestamp [11:04:06]Write 4 bytes [11:04:06]NVStorageSaveData done [11:04:06]ExternCall_PrintAddStr [11:04:06]wPrintStart [11:04:06]Write to MH i2c: 01 00 00 60 1A 7A [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 07 00 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 07 00 60 1A 00 00 00 00 00 FF 0F 8F [11:04:06]RasterBufferAndPrint [11:04:06]line Счет N : (1)1319021 [11:04:06]line ИНН: 02508201610067 [11:04:06]line Контрольно-Кассовый Чек [11:04:06]line ПРОДАЖА [11:04:06]line ТРК (МРК, ГНК) : 31 [11:04:06]line Товар: 2710194210 [11:04:06]line ДТ(л)-К-5 [11:04:06]line 6.890 * 72.60 [11:04:06]line = 500.21 [11:04:06]line НДС 12% НСП 1% [11:04:06]line > о реализуемом товаре [11:04:06]line ОКРУГЛЕНИЕ: -0.21 [11:04:06]line ИТОГО: 500.00 [11:04:06]line Внесено: 500.00 [11:04:06]line СДАЧА: 0.00 [11:04:06]line НСП 1% : 4.43 [11:04:06]line НДС 12% : 53.12 [11:04:06]line Наличными: 500.00 [11:04:06]line Безнал.: 0.00 [11:04:06]line Место: АЗС № 140 "Партнер Нефть" [11:04:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:04:06]line СНО: Общий режим [11:04:06]line Чек 153 13.07.2024 11:04 [11:04:06]line Смена: 462 ФФД: 1.0 [11:04:06]line ЗНМ: 0300000129 [11:04:06]line РНМ: 0000000000090858 [11:04:06]line Версия ККМ: 001 [11:04:06]line ФМ: 0000000000874899 [11:04:06]line ФД: 162485 [11:04:06]line ФПД: 255468014745967 [11:04:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T110418&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162485&fm=255468014745967&tin=02508201610067®Number=0000000000090858&sum=50000 [11:04:06]OFD Sender: Processing packet 162485 [packets to send 105, broken 104] [11:04:06]ProducePacketName [11:04:06]name=ofd_packets/00162485 [11:04:06]OFD Sender: To server: pG, [11:04:06]CommunicateWithHost lk.salyk.kg:30040 [11:04:06]ConnectInit lk.salyk.kg [11:04:06]written 0, free lines is 4095 [11:04:06]Connected sock=10 [11:04:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CE AA 08 01 4E 5E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 99 00 00 00 F4 03 04 00 32 5F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7A 02 00 35 04 06 00 E8 58 C8 45 39 6F 6F FB 79 85 22 89 6A 3A [11:04:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FB 34 47 00 B8 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B5 7A 02 00 F4 03 04 00 46 0B 92 66 B6 04 01 00 00 93 52 31 CE EF E8 3B CA [11:04:06]CommunicateWithHost err = 0 [11:04:06]CheckOFDResponse [11:04:06]1017 (14) - 77093643461234 [11:04:06]1041 (16) - 0000000000874899 [11:04:06]1040 (4) - 162485 [11:04:06]1012 (4) - 13.07.2024 05:06 [11:04:06]1206 (1) - 0 [11:04:06]OFD Sender: Remove packet 162485 [11:04:06]ProducePacketName [11:04:06]name=ofd_packets/00162485 [11:04:06]NVStorageDeleteData [11:04:06]Write to MH i2c: 01 00 00 8B 1A A5 [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 07 00 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: 01 07 00 8B 1A 00 00 00 00 00 D0 0C 88 [11:04:06]RasterBufferAndPrint [11:04:06]line [11:04:06]line [11:04:06]line [11:04:06]line [11:04:06]line [11:04:06]written 0, free lines is 3288 [11:04:06]MH_Cut [11:04:06]Write to MH i2c: D1 01 00 92 1A 01 7E [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: D1 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: D1 01 00 [11:04:06]MH_I2C_Read... [11:04:06]Read from MH i2c: D1 01 00 92 1A 00 7D [11:04:06]Write to MH i2c: 01 00 00 93 1A AD [11:04:06]Write i2c OK [11:04:06]MH_I2C_Read... [11:04:07]OFD Sender: No OFD packet to send [11:04:07]*** Cut start [11:04:07]*** Purtial cut [11:04:07]*** CUTSNS_PIN = 0 [11:04:07]*** Stage 1: CUTSNS_PIN = 1 [11:04:09]Read from MH i2c: 01 [11:04:09]MH_I2C_Read... [11:04:09]*** Stop cut motor [11:04:09]*** Cut end [11:04:09]Read from MH i2c: 01 07 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: 01 07 00 93 1A 00 00 00 00 00 FF 0F C2 [11:04:09]process_action close_receipt done [11:04:09]requested_data is exist [11:04:09]produce_requested_data [11:04:09]requested_item fm.sn is exist - process it [11:04:09]wFMCommunicate request_size=4 [11:04:09]MH_SAM_APDU [11:04:09]CAPDU: 80 11 00 00 [11:04:09]Write to MH i2c: E2 08 00 94 1A 80 11 00 00 00 00 00 00 28 [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:09]Read from MH i2c: E2 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 17 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 17 00 94 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 88 [11:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:04:09]wFMCommunicate OK [11:04:09]requested_item fd.num is exist - process it [11:04:09]SAM_PROTO_GetFieldsCounters [11:04:09]wFMCommunicate request_size=4 [11:04:09]MH_SAM_APDU [11:04:09]CAPDU: 80 13 00 00 [11:04:09]Write to MH i2c: E2 08 00 95 1A 80 13 00 00 00 00 00 00 2B [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:09]Read from MH i2c: E2 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 62 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 62 00 95 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [11:04:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:09]wFMCommunicate OK [11:04:09]SAM_PROTO_GetFieldsCounters done [11:04:09]requested_item shift.num is exist - process it [11:04:09]requested_item shift.opened is exist - process it [11:04:09]req_shift_opened [11:04:09]FM_GetShiftState [11:04:09]SAM_PROTO_GetShiftState [11:04:09]wFMCommunicate request_size=4 [11:04:09]MH_SAM_APDU [11:04:09]CAPDU: 80 13 01 00 [11:04:09]Write to MH i2c: E2 08 00 96 1A 80 13 01 00 00 00 00 00 2D [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:09]Read from MH i2c: E2 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 0E 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 0E 00 96 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 27 [11:04:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:04:09]wFMCommunicate OK [11:04:09]SAM_PROTO_GetShiftState done [11:04:09]FM_GetShiftState done [11:04:09]req_shift_opened done [11:04:09]requested_item shift.open_date is exist - process it [11:04:09]req_shift_open_date [11:04:09]req_shift_open_date done [11:04:09]produce_requested_data done [11:04:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162485,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:04:09]process_action_free close_receipt [11:04:09]json_value_free [11:04:09]json_value_free done [11:04:09]process_json_proto returns [11:04:09]Send response to host [11:04:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162485,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:04:09]free response buf [11:04:09]execute_script done [11:04:09]execute_script returns [11:04:09]free content buf [11:04:09]Sock 9.Close socket [11:04:09]Sock 9.Thread stoped [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:32]OFD Sender: No OFD packet to send [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:00]accept exits with 8 [11:06:00]New connection [11:06:00]New thread 3067006308 created [11:06:00]Thread 3066862948 joined [11:06:00]Waiting for new connection... [11:06:00] Sock 8.Parse request [11:06:00]Sock 8.Check first char [11:06:00]Sock 8.First char is OK [11:06:00]request: POST /json_proto HTTP/1.0 [11:06:00]Method: POST [11:06:00]URL: /json_proto [11:06:00]Method is POST - this is cgi request [11:06:00]url: /json_proto [11:06:00]query_string will be loaded in cgi processing [11:06:00]execute_cgi json_proto POST (null) [11:06:00]execute_cgi path=json_proto method=POST [11:06:00]POST find Content-Length [11:06:00]Host: 172.17.39.67:8080 [11:06:00]Content-Length: 1208 [11:06:00]Content-Type: application/json [11:06:00] [11:06:00]POST finish read [11:06:00]Found Content-Length = 1208 [11:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319022\u000A13.07.2024 11:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092730\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:00]execute_script... [11:06:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319022\u000A13.07.2024 11:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 51\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092730\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:00]POST & json_proto [11:06:00]process_json_proto [11:06:00]json parsed OK: [11:06:00]protocol is kg_v1.0 [11:06:00]action value=print_text [11:06:00]process_action print_text [11:06:00]cmd_print_text [11:06:00]ExternCall_PrintAddStr [11:06:00]wPrintStart [11:06:00]Write to MH i2c: 01 00 00 97 1A B1 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 97 1A 00 00 00 00 00 FF 0F C6 [11:06:00]RasterBufferAndPrint [11:06:00]line *****ТОВАРНЫЙ ЧЕК***** [11:06:00]line АЗС 140 [11:06:00]line Партнер нефть [11:06:00]line 02508201610067 [11:06:00]line Кассир : Шамбеталиев А. [11:06:00]line Счет N : (1)1319022 [11:06:00]line 13.07.2024 11:03 [11:06:00]line ПРОДАЖА [11:06:00]line ТРК (МРК, ГНК): 51 [11:06:00]line Вид ГСМ : 2710194210 [11:06:00]line ДТ(л)-К-5 [11:06:00]line 20.000 x 72.60 [11:06:00]line ИТОГ: 1452.00 [11:06:00]line Тип оплаты: Талоны: Партнер нефть [11:06:00]line 4092730 [11:06:00]line ______________________ [11:06:00]line (подпись) [11:06:00]written 0, free lines is 4095 [11:06:00]Write to MH i2c: 01 00 00 AC 1A C6 [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: 01 07 00 AC 1A 00 00 00 00 00 F4 0D CE [11:06:00]RasterBufferAndPrint [11:06:00]line [11:06:00]line [11:06:00]line [11:06:00]line [11:06:00]line [11:06:00]written 0, free lines is 3574 [11:06:00]MH_Cut [11:06:00]Write to MH i2c: D1 01 00 B3 1A 01 9F [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: D1 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: D1 01 00 [11:06:00]MH_I2C_Read... [11:06:00]Read from MH i2c: D1 01 00 B3 1A 00 9E [11:06:00]Write to MH i2c: 01 00 00 B4 1A CE [11:06:00]Write i2c OK [11:06:00]MH_I2C_Read... [11:06:00]*** Cut start [11:06:00]*** Purtial cut [11:06:00]*** Stage 1: CUTSNS_PIN = 1 [11:06:01]Read from MH i2c: 01 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: 01 07 00 [11:06:01]MH_I2C_Read... [11:06:01]*** Stop cut motor [11:06:01]*** Cut end [11:06:01]Read from MH i2c: 01 07 00 B4 1A 00 00 00 00 00 FF 0F E3 [11:06:01]process_action print_text done [11:06:01]requested_data is exist [11:06:01]produce_requested_data [11:06:01]requested_item fm.sn is exist - process it [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 11 00 00 [11:06:01]Write to MH i2c: E2 08 00 B5 1A 80 11 00 00 00 00 00 00 49 [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 17 00 B5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A9 [11:06:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:06:01]wFMCommunicate OK [11:06:01]requested_item fd.num is exist - process it [11:06:01]SAM_PROTO_GetFieldsCounters [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 13 00 00 [11:06:01]Write to MH i2c: E2 08 00 B6 1A 80 13 00 00 00 00 00 00 4C [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 62 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 62 00 B6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [11:06:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_GetFieldsCounters done [11:06:01]requested_item shift.num is exist - process it [11:06:01]requested_item shift.opened is exist - process it [11:06:01]req_shift_opened [11:06:01]FM_GetShiftState [11:06:01]SAM_PROTO_GetShiftState [11:06:01]wFMCommunicate request_size=4 [11:06:01]MH_SAM_APDU [11:06:01]CAPDU: 80 13 01 00 [11:06:01]Write to MH i2c: E2 08 00 B7 1A 80 13 01 00 00 00 00 00 4E [11:06:01]Write i2c OK [11:06:01]MH_I2C_Read... [11:06:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:01]Read from MH i2c: E2 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0E 00 [11:06:01]MH_I2C_Read... [11:06:01]Read from MH i2c: E2 0E 00 B7 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 48 [11:06:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:06:01]wFMCommunicate OK [11:06:01]SAM_PROTO_GetShiftState done [11:06:01]FM_GetShiftState done [11:06:01]req_shift_opened done [11:06:01]requested_item shift.open_date is exist - process it [11:06:01]req_shift_open_date [11:06:01]req_shift_open_date done [11:06:01]produce_requested_data done [11:06:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162485,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:06:01]process_action_free print_text [11:06:01]json_value_free [11:06:01]json_value_free done [11:06:01]process_json_proto returns [11:06:01]Send response to host [11:06:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162485,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:06:01]free response buf [11:06:01]execute_script done [11:06:01]execute_script returns [11:06:01]free content buf [11:06:01]Sock 8.Close socket [11:06:01]Sock 8.Thread stoped [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:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:50]accept exits with 9 [11:07:50]New connection [11:07:50]New thread 3066862948 created [11:07:50]Thread 3067006308 joined [11:07:50]Waiting for new connection... [11:07:50] Sock 9.Parse request [11:07:50]Sock 9.Check first char [11:07:50]Sock 9.First char is OK [11:07:50]request: POST /json_proto HTTP/1.0 [11:07:50]Method: POST [11:07:50]URL: /json_proto [11:07:50]Method is POST - this is cgi request [11:07:50]url: /json_proto [11:07:50]query_string will be loaded in cgi processing [11:07:50]execute_cgi json_proto POST (null) [11:07:50]execute_cgi path=json_proto method=POST [11:07:50]POST find Content-Length [11:07:50]Host: 172.17.39.67:8080 [11:07:50]Content-Length: 1213 [11:07:50]Content-Type: application/json [11:07:50] [11:07:50]POST finish read [11:07:50]Found Content-Length = 1213 [11:07:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319023\u000A13.07.2024 11:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32801\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:50]execute_script... [11:07:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319023\u000A13.07.2024 11:05\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32801\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:50]POST & json_proto [11:07:50]process_json_proto [11:07:50]json parsed OK: [11:07:50]protocol is kg_v1.0 [11:07:50]action value=print_text [11:07:50]process_action print_text [11:07:50]cmd_print_text [11:07:50]ExternCall_PrintAddStr [11:07:50]wPrintStart [11:07:50]Write to MH i2c: 01 00 00 B8 1A D2 [11:07:50]Write i2c OK [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 07 00 [11:07:50]MH_I2C_Read... [11:07:50]Read from MH i2c: 01 07 00 B8 1A 00 00 00 00 00 FF 0F E7 [11:07:50]RasterBufferAndPrint [11:07:50]line *****ТОВАРНЫЙ ЧЕК***** [11:07:50]line АЗС 140 [11:07:50]line Партнер нефть [11:07:50]line 02508201610067 [11:07:50]line Кассир : Шамбеталиев А. [11:07:50]line Счет N : (1)1319023 [11:07:50]line 13.07.2024 11:05 [11:07:50]line ПРОДАЖА [11:07:50]line ТРК (МРК, ГНК): 43 [11:07:50]line Вид ГСМ : 2710124130 [11:07:50]line Аи-92-К-5 [11:07:50]line 20.000 x 66.30 [11:07:50]line ИТОГ: 1326.00 [11:07:50]line Тип оплаты: Талоны: Топливная Карта [11:07:50]line 32801 [11:07:50]line ______________________ [11:07:50]line (подпись) [11:07:50]written 0, free lines is 4095 [11:07:51]Write to MH i2c: 01 00 00 CD 1A E7 [11:07:51]Write i2c OK [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: 01 [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: 01 07 00 [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: 01 07 00 CD 1A 00 00 00 00 00 F4 0D EF [11:07:51]RasterBufferAndPrint [11:07:51]line [11:07:51]line [11:07:51]line [11:07:51]line [11:07:51]line [11:07:51]written 0, free lines is 3574 [11:07:51]MH_Cut [11:07:51]Write to MH i2c: D1 01 00 D4 1A 01 C0 [11:07:51]Write i2c OK [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: D1 [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: D1 01 00 [11:07:51]MH_I2C_Read... [11:07:51]Read from MH i2c: D1 01 00 D4 1A 00 BF [11:07:51]Write to MH i2c: 01 00 00 D5 1A EF [11:07:51]Write i2c OK [11:07:51]MH_I2C_Read... [11:07:51]*** Cut start [11:07:51]*** Purtial cut [11:07:51]*** CUTSNS_PIN = 0 [11:07:51]*** Stage 1: CUTSNS_PIN = 1 [11:07:52]OFD Sender: No OFD packet to send [11:07:53]Read from MH i2c: 01 [11:07:53]MH_I2C_Read... [11:07:53]*** Stop cut motor [11:07:53]*** Cut end [11:07:53]Read from MH i2c: 01 07 00 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: 01 07 00 D5 1A 00 00 00 00 00 FF 0F 04 [11:07:53]process_action print_text done [11:07:53]requested_data is exist [11:07:53]produce_requested_data [11:07:53]requested_item fm.sn is exist - process it [11:07:53]wFMCommunicate request_size=4 [11:07:53]MH_SAM_APDU [11:07:53]CAPDU: 80 11 00 00 [11:07:53]Write to MH i2c: E2 08 00 D6 1A 80 11 00 00 00 00 00 00 6A [11:07:53]Write i2c OK [11:07:53]MH_I2C_Read... [11:07:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:53]Read from MH i2c: E2 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: E2 17 00 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: E2 17 00 D6 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CA [11:07:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:07:53]wFMCommunicate OK [11:07:53]requested_item fd.num is exist - process it [11:07:53]SAM_PROTO_GetFieldsCounters [11:07:53]wFMCommunicate request_size=4 [11:07:53]MH_SAM_APDU [11:07:53]CAPDU: 80 13 00 00 [11:07:53]Write to MH i2c: E2 08 00 D7 1A 80 13 00 00 00 00 00 00 6D [11:07:53]Write i2c OK [11:07:53]MH_I2C_Read... [11:07:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:53]Read from MH i2c: E2 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: E2 62 00 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: E2 62 00 D7 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [11:07:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:53]wFMCommunicate OK [11:07:53]SAM_PROTO_GetFieldsCounters done [11:07:53]requested_item shift.num is exist - process it [11:07:53]requested_item shift.opened is exist - process it [11:07:53]req_shift_opened [11:07:53]FM_GetShiftState [11:07:53]SAM_PROTO_GetShiftState [11:07:53]wFMCommunicate request_size=4 [11:07:53]MH_SAM_APDU [11:07:53]CAPDU: 80 13 01 00 [11:07:53]Write to MH i2c: E2 08 00 D8 1A 80 13 01 00 00 00 00 00 6F [11:07:53]Write i2c OK [11:07:53]MH_I2C_Read... [11:07:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:53]Read from MH i2c: E2 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: E2 0E 00 [11:07:53]MH_I2C_Read... [11:07:53]Read from MH i2c: E2 0E 00 D8 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 69 [11:07:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:07:53]wFMCommunicate OK [11:07:53]SAM_PROTO_GetShiftState done [11:07:53]FM_GetShiftState done [11:07:53]req_shift_opened done [11:07:53]requested_item shift.open_date is exist - process it [11:07:53]req_shift_open_date [11:07:53]req_shift_open_date done [11:07:53]produce_requested_data done [11:07:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162485,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:07:53]process_action_free print_text [11:07:53]json_value_free [11:07:53]json_value_free done [11:07:53]process_json_proto returns [11:07:53]Send response to host [11:07:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162485,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:07:53]free response buf [11:07:53]execute_script done [11:07:53]execute_script returns [11:07:53]free content buf [11:07:53]Sock 9.Close socket [11:07:53]Sock 9.Thread stoped [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]OFD Sender: No OFD packet to send [11:10:09]accept exits with 8 [11:10:09]New connection [11:10:09]New thread 3067006308 created [11:10:09]Thread 3066862948 joined [11:10:09]Waiting for new connection... [11:10:09] Sock 8.Parse request [11:10:09]Sock 8.Check first char [11:10:09]Sock 8.First char is OK [11:10:09]request: POST /json_proto HTTP/1.0 [11:10:09]Method: POST [11:10:09]URL: /json_proto [11:10:09]Method is POST - this is cgi request [11:10:09]url: /json_proto [11:10:09]query_string will be loaded in cgi processing [11:10:09]execute_cgi json_proto POST (null) [11:10:09]execute_cgi path=json_proto method=POST [11:10:09]POST find Content-Length [11:10:09]Host: 172.17.39.67:8080 [11:10:09]Content-Length: 683 [11:10:09]Content-Type: application/json [11:10:09] [11:10:09]POST finish read [11:10:09]Found Content-Length = 683 [11:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:09]execute_script... [11:10: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)1319024", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:09]POST & json_proto [11:10:09]process_json_proto [11:10:09]json parsed OK: [11:10:09]protocol is kg_v1.0 [11:10:09]action value=close_receipt [11:10:09]process_action close_receipt [11:10:09]cmd_close_receipt [11:10:09]MH_GetDate [11:10:09]Write to MH i2c: F0 00 00 D9 1A E2 [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: F0 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: F0 09 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: F0 09 00 D9 1A 00 9F 60 92 66 FA E9 8E 66 B9 [11:10:09]GetLastDocTimeStamp 1720868658 [11:10:09]current date 1720869023 [11:10:09]FM_GetShiftState [11:10:09]SAM_PROTO_GetShiftState [11:10:09]wFMCommunicate request_size=4 [11:10:09]MH_SAM_APDU [11:10:09]CAPDU: 80 13 01 00 [11:10:09]Write to MH i2c: E2 08 00 DA 1A 80 13 01 00 00 00 00 00 71 [11:10:09]Write i2c OK [11:10:09]MH_I2C_Read... [11:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:09]Read from MH i2c: E2 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 0E 00 [11:10:09]MH_I2C_Read... [11:10:09]Read from MH i2c: E2 0E 00 DA 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6B [11:10:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:10:09]wFMCommunicate OK [11:10:09]SAM_PROTO_GetShiftState done [11:10:09]FM_GetShiftState done [11:10:09]opened in 1720828979 [11:10:09]opened+sec_in_day 1720915379 [11:10:09]quantity*price = 100068 [11:10:09]sum+1 = 100069 [11:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 154 13.07.2024 11:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162486 ФПД: 60592240230587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111023&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162486&fm=60592240230587&tin=02508201610067®Number=0000000000090858&sum=100000 [11:10:10]StoreToDocumentArchive [11:10:10]shift 462 fd 162486 [11:10:10]save to /storage/0462/doc_00162486 [11:10:10]save last doc name /storage/0462/doc_00162486 to /storage/kkm_last_doc_name [11:10:10]save OK [11:10:10]Clear old archive folders... [11:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:10]tlvbuf is 01775A90 [11:10:10]SAM_PROTO_ClearQueue [11:10:10]wFMCommunicate request_size=4 [11:10:10]MH_SAM_APDU [11:10:10]CAPDU: 80 09 00 00 [11:10:10]Write to MH i2c: E2 08 00 E7 1A 80 09 00 00 00 00 00 00 73 [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:10]Read from MH i2c: E2 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 03 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [11:10:10]RAPDU: 90 00 [11:10:10]wFMCommunicate OK [11:10:10]SAM_PROTO_ClearQueue done [11:10:10]KKMCreateOFDPacket [11:10:10]OFDProtocolAddRootSTLVToBuf [11:10:10]FM_MakeSignedData [11:10:10]FM_MakeSignedData [11:10:10]SAM_PROTO_SignData [11:10:10]wFMCommunicate request_size=4 [11:10:10]MH_SAM_APDU [11:10:10]CAPDU: 80 0D 01 02 [11:10:10]Write to MH i2c: E2 08 00 E8 1A 80 0D 01 02 00 00 00 00 7B [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:10]Read from MH i2c: E2 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 03 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [11:10:10]RAPDU: 90 00 [11:10:10]wFMCommunicate OK [11:10:10]wFMCommunicate request_size=255 [11:10:10]MH_SAM_APDU [11:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9F 60 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7A 02 00 35 04 06 00 37 [11:10:10]Write to MH i2c: E2 02 01 E9 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9F 60 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7A 02 00 35 04 06 00 37 00 00 2D [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:10]Read from MH i2c: E2 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 03 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 03 00 E9 1A 00 90 00 77 [11:10:10]RAPDU: 90 00 [11:10:10]wFMCommunicate OK [11:10:10]wFMCommunicate request_size=10 [11:10:10]MH_SAM_APDU [11:10:10]CAPDU: 80 0D 02 02 05 1B BA F4 80 BB [11:10:10]Write to MH i2c: E2 0D 00 EA 1A 80 0D 02 02 05 00 1B BA F4 80 BB 00 00 8C [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:10]Read from MH i2c: E2 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 03 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 03 00 EA 1A 00 90 00 78 [11:10:10]RAPDU: 90 00 [11:10:10]wFMCommunicate OK [11:10:10]wFMCommunicate request_size=4 [11:10:10]MH_SAM_APDU [11:10:10]CAPDU: 80 0D 03 02 [11:10:10]Write to MH i2c: E2 08 00 EB 1A 80 0D 03 02 00 00 00 00 80 [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:10]Read from MH i2c: E2 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 0B 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 0B 00 EB 1A 00 EB 2C ED 0B 7F EF 3E 7D 90 00 B9 [11:10:10]RAPDU: EB 2C ED 0B 7F EF 3E 7D 90 00 [11:10:10]wFMCommunicate OK [11:10:10]SAM_PROTO_SignData done [11:10:10]FM_MakeSignedData done [11:10:10]CreateOFDProtocolMessage [11:10:10]wFMCommunicate request_size=4 [11:10:10]MH_SAM_APDU [11:10:10]CAPDU: 80 11 00 00 [11:10:10]Write to MH i2c: E2 08 00 EC 1A 80 11 00 00 00 00 00 00 80 [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:10]Read from MH i2c: E2 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 17 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: E2 17 00 EC 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E0 [11:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:10:10]wFMCommunicate OK [11:10:10]CreateOFDProtocolMessage done [11:10:10]OFDSenderStorePacket 162486 [11:10:10]StoreOFDPacket docnum=162486 [11:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C5 88 07 01 55 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9F 60 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7A 02 00 35 04 06 00 37 1B BA F4 80 BB EB 2C ED 0B 7F EF 3E 7D [11:10:10]CheckFolder [11:10:10]dirname=/storage/ofd_packets [11:10:10]CheckFolder done [11:10:10]ProducePacketName [11:10:10]name=ofd_packets/00162486 [11:10:10]NVStorageSaveData ofd_packets/00162486 [11:10:10]File name is /storage/ofd_packets/00162486 [11:10:10]Write 301 bytes [11:10:10]NVStorageSaveData done [11:10:10]OFDSenderStorePacket done [11:10:10]KKMCreateOFDPacket done [11:10:10]NVStorageSaveData kkm_last_timestamp [11:10:10]File name is /storage/kkm_last_timestamp [11:10:10]Write 4 bytes [11:10:10]NVStorageSaveData done [11:10:10]ExternCall_PrintAddStr [11:10:10]wPrintStart [11:10:10]Write to MH i2c: 01 00 00 ED 1A 07 [11:10:10]Write i2c OK [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: 01 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: 01 07 00 [11:10:10]MH_I2C_Read... [11:10:10]Read from MH i2c: 01 07 00 ED 1A 00 00 00 00 00 FF 0F 1C [11:10:10]RasterBufferAndPrint [11:10:10]line Счет N : (1)1319024 [11:10:10]line ИНН: 02508201610067 [11:10:10]line Контрольно-Кассовый Чек [11:10:10]line ПРОДАЖА [11:10:10]line ТРК (МРК, ГНК) : 34 [11:10:10]line Товар: 2710124500 [11:10:10]line Аи-95-К-5 [11:10:10]line 13.450 * 74.40 [11:10:10]line = 1000.68 [11:10:10]line НДС 12% НСП 1% [11:10:10]line > о реализуемом товаре [11:10:10]line ОКРУГЛЕНИЕ: -0.68 [11:10:10]line ИТОГО: 1000.00 [11:10:10]line Внесено: 1000.00 [11:10:10]line СДАЧА: 0.00 [11:10:10]line НСП 1% : 8.86 [11:10:10]line НДС 12% : 106.27 [11:10:10]line Наличными: 1000.00 [11:10:10]line Безнал.: 0.00 [11:10:10]line Место: АЗС № 140 "Партнер Нефть" [11:10:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:10:10]line СНО: Общий режим [11:10:10]line Чек 154 13.07.2024 11:10 [11:10:10]line Смена: 462 ФФД: 1.0 [11:10:10]line ЗНМ: 0300000129 [11:10:10]line РНМ: 0000000000090858 [11:10:10]line Версия ККМ: 001 [11:10:10]line ФМ: 0000000000874899 [11:10:10]line ФД: 162486 [11:10:10]line ФПД: 60592240230587 [11:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111023&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162486&fm=60592240230587&tin=02508201610067®Number=0000000000090858&sum=100000 [11:10:11]OFD Sender: Processing packet 162486 [packets to send 105, broken 104] [11:10:11]ProducePacketName [11:10:11]name=ofd_packets/00162486 [11:10:11]OFD Sender: To server: pG, [11:10:11]CommunicateWithHost lk.salyk.kg:30040 [11:10:11]ConnectInit lk.salyk.kg [11:10:11]written 0, free lines is 4095 [11:10:11]Connected sock=10 [11:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C5 88 07 01 55 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 9F 60 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7A 02 00 35 04 06 00 37 1B BA F4 80 BB EB 2C ED 0B 7F EF 3E 7D [11:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A1 70 47 00 7E C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B6 7A 02 00 F4 03 04 00 B3 0C 92 66 B6 04 01 00 00 56 3B 52 3E F0 2C 1A D5 [11:10:11]CommunicateWithHost err = 0 [11:10:11]CheckOFDResponse [11:10:11]1017 (14) - 77093643461234 [11:10:11]1041 (16) - 0000000000874899 [11:10:11]1040 (4) - 162486 [11:10:11]1012 (4) - 13.07.2024 05:12 [11:10:11]1206 (1) - 0 [11:10:11]OFD Sender: Remove packet 162486 [11:10:11]ProducePacketName [11:10:11]name=ofd_packets/00162486 [11:10:11]NVStorageDeleteData [11:10:11]Write to MH i2c: 01 00 00 18 1B 33 [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: 01 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: 01 07 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: 01 07 00 18 1B 00 00 00 00 00 D4 0C 1A [11:10:11]RasterBufferAndPrint [11:10:11]line [11:10:11]line [11:10:11]line [11:10:11]line [11:10:11]line [11:10:11]written 0, free lines is 3293 [11:10:11]MH_Cut [11:10:11]Write to MH i2c: D1 01 00 1F 1B 01 0C [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: D1 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: D1 01 00 [11:10:11]MH_I2C_Read... [11:10:11]Read from MH i2c: D1 01 00 1F 1B 00 0B [11:10:11]Write to MH i2c: 01 00 00 20 1B 3B [11:10:11]Write i2c OK [11:10:11]MH_I2C_Read... [11:10:11]OFD Sender: No OFD packet to send [11:10:12]*** Cut start [11:10:12]*** Purtial cut [11:10:12]*** Stage 1: CUTSNS_PIN = 1 [11:10:12]Read from MH i2c: 01 [11:10:12]MH_I2C_Read... [11:10:12]*** Stop cut motor [11:10:12]*** Cut end [11:10:12]Read from MH i2c: 01 07 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: 01 07 00 20 1B 00 00 00 00 00 FF 0F 50 [11:10:12]process_action close_receipt done [11:10:12]requested_data is exist [11:10:12]produce_requested_data [11:10:12]requested_item fm.sn is exist - process it [11:10:12]wFMCommunicate request_size=4 [11:10:12]MH_SAM_APDU [11:10:12]CAPDU: 80 11 00 00 [11:10:12]Write to MH i2c: E2 08 00 21 1B 80 11 00 00 00 00 00 00 B6 [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:12]Read from MH i2c: E2 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 17 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 17 00 21 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 16 [11:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:10:12]wFMCommunicate OK [11:10:12]requested_item fd.num is exist - process it [11:10:12]SAM_PROTO_GetFieldsCounters [11:10:12]wFMCommunicate request_size=4 [11:10:12]MH_SAM_APDU [11:10:12]CAPDU: 80 13 00 00 [11:10:12]Write to MH i2c: E2 08 00 22 1B 80 13 00 00 00 00 00 00 B9 [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:12]Read from MH i2c: E2 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 62 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 62 00 22 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [11:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:12]wFMCommunicate OK [11:10:12]SAM_PROTO_GetFieldsCounters done [11:10:12]requested_item shift.num is exist - process it [11:10:12]requested_item shift.opened is exist - process it [11:10:12]req_shift_opened [11:10:12]FM_GetShiftState [11:10:12]SAM_PROTO_GetShiftState [11:10:12]wFMCommunicate request_size=4 [11:10:12]MH_SAM_APDU [11:10:12]CAPDU: 80 13 01 00 [11:10:12]Write to MH i2c: E2 08 00 23 1B 80 13 01 00 00 00 00 00 BB [11:10:12]Write i2c OK [11:10:12]MH_I2C_Read... [11:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:12]Read from MH i2c: E2 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 0E 00 [11:10:12]MH_I2C_Read... [11:10:12]Read from MH i2c: E2 0E 00 23 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B5 [11:10:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:10:12]wFMCommunicate OK [11:10:12]SAM_PROTO_GetShiftState done [11:10:12]FM_GetShiftState done [11:10:12]req_shift_opened done [11:10:12]requested_item shift.open_date is exist - process it [11:10:12]req_shift_open_date [11:10:12]req_shift_open_date done [11:10:12]produce_requested_data done [11:10:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162486,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:10:12]process_action_free close_receipt [11:10:12]json_value_free [11:10:12]json_value_free done [11:10:12]process_json_proto returns [11:10:12]Send response to host [11:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162486,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:10:12]free response buf [11:10:12]execute_script done [11:10:12]execute_script returns [11:10:12]free content buf [11:10:12]Sock 8.Close socket [11:10:12]Sock 8.Thread stoped [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:37]OFD Sender: No OFD packet to send [11:10:42]OFD Sender: No OFD packet to send [11:10:47]OFD Sender: No OFD packet to send [11:10:52]OFD Sender: No OFD packet to send [11:10:57]OFD Sender: No OFD packet to send [11:11:02]OFD Sender: No OFD packet to send [11:11:07]OFD Sender: No OFD packet to send [11:11:12]OFD Sender: No OFD packet to send [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [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]accept exits with 9 [11:13:12]New connection [11:13:12]New thread 3066862948 created [11:13:12]Thread 3067006308 joined [11:13:12]Waiting for new connection... [11:13:12] Sock 9.Parse request [11:13:12]Sock 9.Check first char [11:13:12]Sock 9.First char is OK [11:13:12]request: POST /json_proto HTTP/1.0 [11:13:12]Method: POST [11:13:12]URL: /json_proto [11:13:12]Method is POST - this is cgi request [11:13:12]url: /json_proto [11:13:12]query_string will be loaded in cgi processing [11:13:12]execute_cgi json_proto POST (null) [11:13:12]execute_cgi path=json_proto method=POST [11:13:12]POST find Content-Length [11:13:12]Host: 172.17.39.67:8080 [11:13:12]Content-Length: 688 [11:13:12]Content-Type: application/json [11:13:12] [11:13:12]POST finish read [11:13:12]Found Content-Length = 688 [11:13:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:13:12]execute_script... [11:13: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)1319025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:13:12]POST & json_proto [11:13:12]process_json_proto [11:13:12]json parsed OK: [11:13:12]protocol is kg_v1.0 [11:13:12]action value=close_receipt [11:13:12]process_action close_receipt [11:13:12]cmd_close_receipt [11:13:12]MH_GetDate [11:13:12]Write to MH i2c: F0 00 00 24 1B 2E [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: F0 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: F0 09 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: F0 09 00 24 1B 00 56 61 92 66 FA E9 8E 66 BD [11:13:12]GetLastDocTimeStamp 1720869023 [11:13:12]current date 1720869206 [11:13:12]FM_GetShiftState [11:13:12]SAM_PROTO_GetShiftState [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 13 01 00 [11:13:12]Write to MH i2c: E2 08 00 25 1B 80 13 01 00 00 00 00 00 BD [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0E 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0E 00 25 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B7 [11:13:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:13:12]wFMCommunicate OK [11:13:12]SAM_PROTO_GetShiftState done [11:13:12]FM_GetShiftState done [11:13:12]opened in 1720828979 [11:13:12]opened+sec_in_day 1720915379 [11:13:12]quantity*price = 100042 [11:13:12]sum+1 = 100044 [11:13:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 155 13.07.2024 11:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162487 ФПД: 173195087066241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111326&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162487&fm=173195087066241&tin=02508201610067®Number=0000000000090858&sum=100000 [11:13:13]StoreToDocumentArchive [11:13:13]shift 462 fd 162487 [11:13:13]save to /storage/0462/doc_00162487 [11:13:13]save last doc name /storage/0462/doc_00162487 to /storage/kkm_last_doc_name [11:13:13]save OK [11:13:13]Clear old archive folders... [11:13:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:13:13]tlvbuf is 0170C990 [11:13:13]SAM_PROTO_ClearQueue [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 09 00 00 [11:13:13]Write to MH i2c: E2 08 00 32 1B 80 09 00 00 00 00 00 00 BF [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 03 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [11:13:13]RAPDU: 90 00 [11:13:13]wFMCommunicate OK [11:13:13]SAM_PROTO_ClearQueue done [11:13:13]KKMCreateOFDPacket [11:13:13]OFDProtocolAddRootSTLVToBuf [11:13:13]FM_MakeSignedData [11:13:13]FM_MakeSignedData [11:13:13]SAM_PROTO_SignData [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 0D 01 02 [11:13:13]Write to MH i2c: E2 08 00 33 1B 80 0D 01 02 00 00 00 00 C7 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 03 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 03 00 33 1B 00 90 00 C2 [11:13:13]RAPDU: 90 00 [11:13:13]wFMCommunicate OK [11:13:13]wFMCommunicate request_size=255 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9B 00 00 00 F4 03 04 00 56 61 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7A 02 00 35 04 06 00 [11:13:13]Write to MH i2c: E2 02 01 34 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9B 00 00 00 F4 03 04 00 56 61 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7A 02 00 35 04 06 00 00 00 AC [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 03 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 03 00 34 1B 00 90 00 C3 [11:13:13]RAPDU: 90 00 [11:13:13]wFMCommunicate OK [11:13:13]wFMCommunicate request_size=11 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 0D 02 02 06 9D 85 1F A4 34 81 [11:13:13]Write to MH i2c: E2 0E 00 35 1B 80 0D 02 02 06 00 9D 85 1F A4 34 81 00 00 70 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 03 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 03 00 35 1B 00 90 00 C4 [11:13:13]RAPDU: 90 00 [11:13:13]wFMCommunicate OK [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 0D 03 02 [11:13:13]Write to MH i2c: E2 08 00 36 1B 80 0D 03 02 00 00 00 00 CC [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 0B 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 0B 00 36 1B 00 DD 19 7E 3D 54 69 10 E7 90 00 32 [11:13:13]RAPDU: DD 19 7E 3D 54 69 10 E7 90 00 [11:13:13]wFMCommunicate OK [11:13:13]SAM_PROTO_SignData done [11:13:13]FM_MakeSignedData done [11:13:13]CreateOFDProtocolMessage [11:13:13]wFMCommunicate request_size=4 [11:13:13]MH_SAM_APDU [11:13:13]CAPDU: 80 11 00 00 [11:13:13]Write to MH i2c: E2 08 00 37 1B 80 11 00 00 00 00 00 00 CC [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:13]Read from MH i2c: E2 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 17 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: E2 17 00 37 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2C [11:13:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:13:13]wFMCommunicate OK [11:13:13]CreateOFDProtocolMessage done [11:13:13]OFDSenderStorePacket 162487 [11:13:13]StoreOFDPacket docnum=162487 [11:13:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 34 E7 08 01 D5 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9B 00 00 00 F4 03 04 00 56 61 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7A 02 00 35 04 06 00 9D 85 1F A4 34 81 DD 19 7E 3D 54 69 10 E7 [11:13:13]CheckFolder [11:13:13]dirname=/storage/ofd_packets [11:13:13]CheckFolder done [11:13:13]ProducePacketName [11:13:13]name=ofd_packets/00162487 [11:13:13]NVStorageSaveData ofd_packets/00162487 [11:13:13]File name is /storage/ofd_packets/00162487 [11:13:13]Write 302 bytes [11:13:13]NVStorageSaveData done [11:13:13]OFDSenderStorePacket done [11:13:13]KKMCreateOFDPacket done [11:13:13]NVStorageSaveData kkm_last_timestamp [11:13:13]File name is /storage/kkm_last_timestamp [11:13:13]Write 4 bytes [11:13:13]NVStorageSaveData done [11:13:13]ExternCall_PrintAddStr [11:13:13]wPrintStart [11:13:13]Write to MH i2c: 01 00 00 38 1B 53 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 38 1B 00 00 00 00 00 FF 0F 68 [11:13:13]RasterBufferAndPrint [11:13:13]line Счет N : (1)1319025 [11:13:13]line ИНН: 02508201610067 [11:13:13]line Контрольно-Кассовый Чек [11:13:13]line ПРОДАЖА [11:13:13]line ТРК (МРК, ГНК) : 11 [11:13:13]line Товар: 2710194210 [11:13:13]line ДТ(л)-К-5 [11:13:13]line 13.780 * 72.60 [11:13:13]line = 1000.43 [11:13:13]line НДС 12% НСП 1% [11:13:13]line > о реализуемом товаре [11:13:13]line ОКРУГЛЕНИЕ: -0.43 [11:13:13]line ИТОГО: 1000.00 [11:13:13]line Внесено: 1000.00 [11:13:13]line СДАЧА: 0.00 [11:13:13]line НСП 1% : 8.85 [11:13:13]line НДС 12% : 106.24 [11:13:13]line Наличными: 1000.00 [11:13:13]line Безнал.: 0.00 [11:13:13]line Место: АЗС № 140 "Партнер Нефть" [11:13:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:13:13]line СНО: Общий режим [11:13:13]line Чек 155 13.07.2024 11:13 [11:13:13]line Смена: 462 ФФД: 1.0 [11:13:13]line ЗНМ: 0300000129 [11:13:13]line РНМ: 0000000000090858 [11:13:13]line Версия ККМ: 001 [11:13:13]line ФМ: 0000000000874899 [11:13:13]line ФД: 162487 [11:13:13]line ФПД: 173195087066241 [11:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111326&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162487&fm=173195087066241&tin=02508201610067®Number=0000000000090858&sum=100000 [11:13:14]OFD Sender: Processing packet 162487 [packets to send 105, broken 104] [11:13:14]ProducePacketName [11:13:14]name=ofd_packets/00162487 [11:13:14]OFD Sender: To server: pG, [11:13:14]CommunicateWithHost lk.salyk.kg:30040 [11:13:14]ConnectInit lk.salyk.kg [11:13:14]written 0, free lines is 4095 [11:13:14]Connected sock=10 [11:13:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 34 E7 08 01 D5 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9B 00 00 00 F4 03 04 00 56 61 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7A 02 00 35 04 06 00 9D 85 1F A4 34 81 DD 19 7E 3D 54 69 10 E7 [11:13:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 57 9E 47 00 32 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B7 7A 02 00 F4 03 04 00 6A 0D 92 66 B6 04 01 00 00 BE 30 5A C0 EB DF 1D 60 [11:13:14]CommunicateWithHost err = 0 [11:13:14]CheckOFDResponse [11:13:14]1017 (14) - 77093643461234 [11:13:14]1041 (16) - 0000000000874899 [11:13:14]1040 (4) - 162487 [11:13:14]1012 (4) - 13.07.2024 05:15 [11:13:14]1206 (1) - 0 [11:13:14]OFD Sender: Remove packet 162487 [11:13:14]ProducePacketName [11:13:14]name=ofd_packets/00162487 [11:13:14]NVStorageDeleteData [11:13:14]Write to MH i2c: 01 00 00 63 1B 7E [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: 01 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: 01 07 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: 01 07 00 63 1B 00 00 00 00 00 E6 0C 77 [11:13:14]RasterBufferAndPrint [11:13:14]line [11:13:14]line [11:13:14]line [11:13:14]line [11:13:14]line [11:13:14]written 0, free lines is 3311 [11:13:14]MH_Cut [11:13:14]Write to MH i2c: D1 01 00 6A 1B 01 57 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: D1 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: D1 01 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: D1 01 00 6A 1B 00 56 [11:13:14]Write to MH i2c: 01 00 00 6B 1B 86 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]OFD Sender: No OFD packet to send [11:13:15]*** Cut start [11:13:15]*** Purtial cut [11:13:15]*** CUTSNS_PIN = 0 [11:13:15]*** Stage 1: CUTSNS_PIN = 1 [11:13:17]Read from MH i2c: 01 [11:13:17]MH_I2C_Read... [11:13:17]*** Stop cut motor [11:13:17]*** Cut end [11:13:17]Read from MH i2c: 01 07 00 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: 01 07 00 6B 1B 00 00 00 00 00 FF 0F 9B [11:13:17]process_action close_receipt done [11:13:17]requested_data is exist [11:13:17]produce_requested_data [11:13:17]requested_item fm.sn is exist - process it [11:13:17]wFMCommunicate request_size=4 [11:13:17]MH_SAM_APDU [11:13:17]CAPDU: 80 11 00 00 [11:13:17]Write to MH i2c: E2 08 00 6C 1B 80 11 00 00 00 00 00 00 01 [11:13:17]Write i2c OK [11:13:17]MH_I2C_Read... [11:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:17]Read from MH i2c: E2 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 17 00 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 17 00 6C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 61 [11:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:13:17]wFMCommunicate OK [11:13:17]requested_item fd.num is exist - process it [11:13:17]SAM_PROTO_GetFieldsCounters [11:13:17]wFMCommunicate request_size=4 [11:13:17]MH_SAM_APDU [11:13:17]CAPDU: 80 13 00 00 [11:13:17]Write to MH i2c: E2 08 00 6D 1B 80 13 00 00 00 00 00 00 04 [11:13:17]Write i2c OK [11:13:17]MH_I2C_Read... [11:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:17]Read from MH i2c: E2 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 62 00 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 62 00 6D 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [11:13:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:17]wFMCommunicate OK [11:13:17]SAM_PROTO_GetFieldsCounters done [11:13:17]requested_item shift.num is exist - process it [11:13:17]requested_item shift.opened is exist - process it [11:13:17]req_shift_opened [11:13:17]FM_GetShiftState [11:13:17]SAM_PROTO_GetShiftState [11:13:17]wFMCommunicate request_size=4 [11:13:17]MH_SAM_APDU [11:13:17]CAPDU: 80 13 01 00 [11:13:17]Write to MH i2c: E2 08 00 6E 1B 80 13 01 00 00 00 00 00 06 [11:13:17]Write i2c OK [11:13:17]MH_I2C_Read... [11:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:17]Read from MH i2c: E2 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 0E 00 [11:13:17]MH_I2C_Read... [11:13:17]Read from MH i2c: E2 0E 00 6E 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 00 [11:13:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:13:17]wFMCommunicate OK [11:13:17]SAM_PROTO_GetShiftState done [11:13:17]FM_GetShiftState done [11:13:17]req_shift_opened done [11:13:17]requested_item shift.open_date is exist - process it [11:13:17]req_shift_open_date [11:13:17]req_shift_open_date done [11:13:17]produce_requested_data done [11:13:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162487,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:13:17]process_action_free close_receipt [11:13:17]json_value_free [11:13:17]json_value_free done [11:13:17]process_json_proto returns [11:13:17]Send response to host [11:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162487,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:13:17]free response buf [11:13:17]execute_script done [11:13:17]execute_script returns [11:13:17]free content buf [11:13:17]Sock 9.Close socket [11:13:17]Sock 9.Thread stoped [11:13:19]OFD Sender: No OFD packet to send [11:13:24]OFD Sender: No OFD packet to send [11:13:29]OFD Sender: No OFD packet to send [11:13:34]OFD Sender: No OFD packet to send [11:13:39]OFD Sender: No OFD packet to send [11:13:44]OFD Sender: No OFD packet to send [11:13:49]OFD Sender: No OFD packet to send [11:13:54]OFD Sender: No OFD packet to send [11:13:59]OFD Sender: No OFD packet to send [11:14:04]OFD Sender: No OFD packet to send [11:14:09]OFD Sender: No OFD packet to send [11:14:14]OFD Sender: No OFD packet to send [11:14:19]OFD Sender: No OFD packet to send [11:14:24]OFD Sender: No OFD packet to send [11:14:29]OFD Sender: No OFD packet to send [11:14:34]OFD Sender: No OFD packet to send [11:14:39]OFD Sender: No OFD packet to send [11:14:44]OFD Sender: No OFD packet to send [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15: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:34]accept exits with 8 [11:17:34]New connection [11:17:34]New thread 3067006308 created [11:17:34]Thread 3066862948 joined [11:17:34]Waiting for new connection... [11:17:34] Sock 8.Parse request [11:17:34]Sock 8.Check first char [11:17:34]Sock 8.First char is OK [11:17:34]request: POST /json_proto HTTP/1.0 [11:17:34]Method: POST [11:17:34]URL: /json_proto [11:17:34]Method is POST - this is cgi request [11:17:34]url: /json_proto [11:17:34]query_string will be loaded in cgi processing [11:17:34]execute_cgi json_proto POST (null) [11:17:34]execute_cgi path=json_proto method=POST [11:17:34]POST find Content-Length [11:17:34]Host: 172.17.39.67:8080 [11:17:34]Content-Length: 825 [11:17:34]Content-Type: application/json [11:17:34] [11:17:34]POST finish read [11:17:34]Found Content-Length = 825 [11:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:34]execute_script... [11:17:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:34]POST & json_proto [11:17:34]process_json_proto [11:17:34]json parsed OK: [11:17:34]protocol is kg_v1.0 [11:17:34]action value=close_receipt [11:17:34]process_action close_receipt [11:17:34]cmd_close_receipt [11:17:34]MH_GetDate [11:17:34]Write to MH i2c: F0 00 00 6F 1B 79 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: F0 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: F0 09 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: F0 09 00 6F 1B 00 5C 62 92 66 FA E9 8E 66 0F [11:17:34]GetLastDocTimeStamp 1720869206 [11:17:34]current date 1720869468 [11:17:34]FM_GetShiftState [11:17:34]SAM_PROTO_GetShiftState [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 13 01 00 [11:17:34]Write to MH i2c: E2 08 00 70 1B 80 13 01 00 00 00 00 00 08 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0E 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0E 00 70 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 02 [11:17:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_GetShiftState done [11:17:34]FM_GetShiftState done [11:17:34]opened in 1720828979 [11:17:34]opened+sec_in_day 1720915379 [11:17:34]quantity*price = 200013 [11:17:34]sum+1 = 200014 [11:17:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 156 13.07.2024 11:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162488 ФПД: 78954875647373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111749&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162488&fm=78954875647373&tin=02508201610067®Number=0000000000090858&sum=200013 [11:17:36]StoreToDocumentArchive [11:17:36]shift 462 fd 162488 [11:17:36]save to /storage/0462/doc_00162488 [11:17:36]save last doc name /storage/0462/doc_00162488 to /storage/kkm_last_doc_name [11:17:36]save OK [11:17:36]Clear old archive folders... [11:17:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:17:36]tlvbuf is 019C0010 [11:17:36]SAM_PROTO_ClearQueue [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 09 00 00 [11:17:36]Write to MH i2c: E2 08 00 7D 1B 80 09 00 00 00 00 00 00 0A [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [11:17:36]RAPDU: 90 00 [11:17:36]wFMCommunicate OK [11:17:36]SAM_PROTO_ClearQueue done [11:17:36]KKMCreateOFDPacket [11:17:36]OFDProtocolAddRootSTLVToBuf [11:17:36]FM_MakeSignedData [11:17:36]FM_MakeSignedData [11:17:36]SAM_PROTO_SignData [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 0D 01 02 [11:17:36]Write to MH i2c: E2 08 00 7E 1B 80 0D 01 02 00 00 00 00 12 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 7E 1B 00 90 00 0D [11:17:36]RAPDU: 90 00 [11:17:36]wFMCommunicate OK [11:17:36]wFMCommunicate request_size=255 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9C 00 00 00 F4 03 04 00 5D 62 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7A 02 00 35 04 06 00 [11:17:36]Write to MH i2c: E2 02 01 7F 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9C 00 00 00 F4 03 04 00 5D 62 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7A 02 00 35 04 06 00 00 00 91 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 7F 1B 00 90 00 0E [11:17:36]RAPDU: 90 00 [11:17:36]wFMCommunicate OK [11:17:36]wFMCommunicate request_size=11 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 0D 02 02 06 47 CF 1D 50 F5 8D [11:17:36]Write to MH i2c: E2 0E 00 80 1B 80 0D 02 02 06 00 47 CF 1D 50 F5 8D 00 00 26 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 03 00 80 1B 00 90 00 0F [11:17:36]RAPDU: 90 00 [11:17:36]wFMCommunicate OK [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 0D 03 02 [11:17:36]Write to MH i2c: E2 08 00 81 1B 80 0D 03 02 00 00 00 00 17 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 0B 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 0B 00 81 1B 00 2C 73 E9 82 C7 14 EB C1 90 00 A9 [11:17:36]RAPDU: 2C 73 E9 82 C7 14 EB C1 90 00 [11:17:36]wFMCommunicate OK [11:17:36]SAM_PROTO_SignData done [11:17:36]FM_MakeSignedData done [11:17:36]CreateOFDProtocolMessage [11:17:36]wFMCommunicate request_size=4 [11:17:36]MH_SAM_APDU [11:17:36]CAPDU: 80 11 00 00 [11:17:36]Write to MH i2c: E2 08 00 82 1B 80 11 00 00 00 00 00 00 17 [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:36]Read from MH i2c: E2 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 17 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: E2 17 00 82 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [11:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:17:36]wFMCommunicate OK [11:17:36]CreateOFDProtocolMessage done [11:17:36]OFDSenderStorePacket 162488 [11:17:36]StoreOFDPacket docnum=162488 [11:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9A 49 08 01 6D C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9C 00 00 00 F4 03 04 00 5D 62 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7A 02 00 35 04 06 00 47 CF 1D 50 F5 8D 2C 73 E9 82 C7 14 EB C1 [11:17:36]CheckFolder [11:17:36]dirname=/storage/ofd_packets [11:17:36]CheckFolder done [11:17:36]ProducePacketName [11:17:36]name=ofd_packets/00162488 [11:17:36]NVStorageSaveData ofd_packets/00162488 [11:17:36]File name is /storage/ofd_packets/00162488 [11:17:36]Write 302 bytes [11:17:36]NVStorageSaveData done [11:17:36]OFDSenderStorePacket done [11:17:36]KKMCreateOFDPacket done [11:17:36]NVStorageSaveData kkm_last_timestamp [11:17:36]File name is /storage/kkm_last_timestamp [11:17:36]Write 4 bytes [11:17:36]NVStorageSaveData done [11:17:36]ExternCall_PrintAddStr [11:17:36]wPrintStart [11:17:36]Write to MH i2c: 01 00 00 83 1B 9E [11:17:36]Write i2c OK [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 07 00 [11:17:36]MH_I2C_Read... [11:17:36]Read from MH i2c: 01 07 00 83 1B 00 00 00 00 00 FF 0F B3 [11:17:36]RasterBufferAndPrint [11:17:36]line Счет N : (1)1319026 [11:17:36]line ИНН: 02508201610067 [11:17:36]line Контрольно-Кассовый Чек [11:17:36]line ПРОДАЖА [11:17:36]line ТРК (МРК, ГНК) : 41 [11:17:36]line Товар: 2710194210 [11:17:36]line ДТ(л)-К-5 [11:17:36]line 27.550 * 72.60 [11:17:36]line = 2000.13 [11:17:36]line НДС 12% НСП 1% [11:17:36]line > о реализуемом товаре [11:17:36]line ИТОГО: 2000.13 [11:17:36]line НСП 1% : 17.70 [11:17:36]line НДС 12% : 212.40 [11:17:36]line Наличными: 0.00 [11:17:36]line Безнал.: 2000.13 [11:17:36]line Место: АЗС № 140 "Партнер Нефть" [11:17:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:17:36]line СНО: Общий режим [11:17:36]line Чек 156 13.07.2024 11:17 [11:17:36]line Смена: 462 ФФД: 1.0 [11:17:36]line ЗНМ: 0300000129 [11:17:36]line РНМ: 0000000000090858 [11:17:36]line Версия ККМ: 001 [11:17:36]line Платежная система: Бакай Банк [11:17:36]line ФМ: 0000000000874899 [11:17:36]line ФД: 162488 [11:17:36]line ФПД: 78954875647373 [11:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111749&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162488&fm=78954875647373&tin=02508201610067®Number=0000000000090858&sum=200013 [11:17:36]written 0, free lines is 4095 [11:17:36]OFD Sender: Processing packet 162488 [packets to send 105, broken 104] [11:17:36]ProducePacketName [11:17:36]name=ofd_packets/00162488 [11:17:36]OFD Sender: To server: pG, [11:17:36]CommunicateWithHost lk.salyk.kg:30040 [11:17:36]ConnectInit lk.salyk.kg [11:17:37]Connected sock=9 [11:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9A 49 08 01 6D C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 9C 00 00 00 F4 03 04 00 5D 62 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7A 02 00 35 04 06 00 47 CF 1D 50 F5 8D 2C 73 E9 82 C7 14 EB C1 [11:17:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 06 FC 47 00 CD B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B8 7A 02 00 F4 03 04 00 71 0E 92 66 B6 04 01 00 00 7D 11 6E CE 19 39 88 77 [11:17:37]CommunicateWithHost err = 0 [11:17:37]CheckOFDResponse [11:17:37]1017 (14) - 77093643461234 [11:17:37]1041 (16) - 0000000000874899 [11:17:37]1040 (4) - 162488 [11:17:37]1012 (4) - 13.07.2024 05:19 [11:17:37]1206 (1) - 0 [11:17:37]OFD Sender: Remove packet 162488 [11:17:37]ProducePacketName [11:17:37]name=ofd_packets/00162488 [11:17:37]NVStorageDeleteData [11:17:37]Write to MH i2c: 01 00 00 AD 1B C8 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 07 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 07 00 AD 1B 00 00 00 00 00 E9 0C C4 [11:17:37]RasterBufferAndPrint [11:17:37]line [11:17:37]line [11:17:37]line [11:17:37]line [11:17:37]line [11:17:37]written 0, free lines is 3311 [11:17:37]MH_Cut [11:17:37]Write to MH i2c: D1 01 00 B4 1B 01 A1 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: D1 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: D1 01 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: D1 01 00 B4 1B 00 A0 [11:17:37]Write to MH i2c: 01 00 00 B5 1B D0 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]OFD Sender: No OFD packet to send [11:17:38]*** Cut start [11:17:38]*** Purtial cut [11:17:38]*** Stage 1: CUTSNS_PIN = 1 [11:17:38]Read from MH i2c: 01 [11:17:38]MH_I2C_Read... [11:17:38]*** Stop cut motor [11:17:38]*** Cut end [11:17:38]Read from MH i2c: 01 07 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: 01 07 00 B5 1B 00 00 00 00 00 FF 0F E5 [11:17:38]process_action close_receipt done [11:17:38]requested_data is exist [11:17:38]produce_requested_data [11:17:38]requested_item fm.sn is exist - process it [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 11 00 00 [11:17:38]Write to MH i2c: E2 08 00 B6 1B 80 11 00 00 00 00 00 00 4B [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 17 00 B6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AB [11:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:17:38]wFMCommunicate OK [11:17:38]requested_item fd.num is exist - process it [11:17:38]SAM_PROTO_GetFieldsCounters [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 13 00 00 [11:17:38]Write to MH i2c: E2 08 00 B7 1B 80 13 00 00 00 00 00 00 4E [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 62 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 62 00 B7 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [11:17:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_GetFieldsCounters done [11:17:38]requested_item shift.num is exist - process it [11:17:38]requested_item shift.opened is exist - process it [11:17:38]req_shift_opened [11:17:38]FM_GetShiftState [11:17:38]SAM_PROTO_GetShiftState [11:17:38]wFMCommunicate request_size=4 [11:17:38]MH_SAM_APDU [11:17:38]CAPDU: 80 13 01 00 [11:17:38]Write to MH i2c: E2 08 00 B8 1B 80 13 01 00 00 00 00 00 50 [11:17:38]Write i2c OK [11:17:38]MH_I2C_Read... [11:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:38]Read from MH i2c: E2 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0E 00 [11:17:38]MH_I2C_Read... [11:17:38]Read from MH i2c: E2 0E 00 B8 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4A [11:17:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:17:38]wFMCommunicate OK [11:17:38]SAM_PROTO_GetShiftState done [11:17:38]FM_GetShiftState done [11:17:38]req_shift_opened done [11:17:38]requested_item shift.open_date is exist - process it [11:17:38]req_shift_open_date [11:17:38]req_shift_open_date done [11:17:38]produce_requested_data done [11:17:38]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162488,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:17:38]process_action_free close_receipt [11:17:38]json_value_free [11:17:38]json_value_free done [11:17:38]process_json_proto returns [11:17:38]Send response to host [11:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162488,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:17:38]free response buf [11:17:38]execute_script done [11:17:38]execute_script returns [11:17:38]free content buf [11:17:38]Sock 8.Close socket [11:17:38]Sock 8.Thread stoped [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:09]accept exits with 10 [11:18:09]New connection [11:18:09]New thread 3066862948 created [11:18:09]Thread 3067006308 joined [11:18:09]Waiting for new connection... [11:18:09] Sock 10.Parse request [11:18:09]Sock 10.Check first char [11:18:09]Sock 10.First char is OK [11:18:09]request: POST /json_proto HTTP/1.0 [11:18:09]Method: POST [11:18:09]URL: /json_proto [11:18:09]Method is POST - this is cgi request [11:18:09]url: /json_proto [11:18:09]query_string will be loaded in cgi processing [11:18:09]execute_cgi json_proto POST (null) [11:18:09]execute_cgi path=json_proto method=POST [11:18:09]POST find Content-Length [11:18:09]Host: 172.17.39.67:8080 [11:18:09]Content-Length: 809 [11:18:09]Content-Type: application/json [11:18:09] [11:18:09]POST finish read [11:18:09]Found Content-Length = 809 [11:18:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 50.000, "sum" : 3630.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" : 3630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:09]execute_script... [11:18: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)1319027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 50.000, "sum" : 3630.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" : 3630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:09]POST & json_proto [11:18:09]process_json_proto [11:18:09]json parsed OK: [11:18:09]protocol is kg_v1.0 [11:18:09]action value=close_receipt [11:18:09]process_action close_receipt [11:18:09]cmd_close_receipt [11:18:09]MH_GetDate [11:18:09]Write to MH i2c: F0 00 00 B9 1B C3 [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: F0 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: F0 09 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: F0 09 00 B9 1B 00 7F 62 92 66 FA E9 8E 66 7C [11:18:09]GetLastDocTimeStamp 1720869469 [11:18:09]current date 1720869503 [11:18:09]FM_GetShiftState [11:18:09]SAM_PROTO_GetShiftState [11:18:09]wFMCommunicate request_size=4 [11:18:09]MH_SAM_APDU [11:18:09]CAPDU: 80 13 01 00 [11:18:09]Write to MH i2c: E2 08 00 BA 1B 80 13 01 00 00 00 00 00 52 [11:18:09]Write i2c OK [11:18:09]MH_I2C_Read... [11:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:09]Read from MH i2c: E2 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 0E 00 [11:18:09]MH_I2C_Read... [11:18:09]Read from MH i2c: E2 0E 00 BA 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4C [11:18:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:18:09]wFMCommunicate OK [11:18:09]SAM_PROTO_GetShiftState done [11:18:09]FM_GetShiftState done [11:18:09]opened in 1720828979 [11:18:09]opened+sec_in_day 1720915379 [11:18:09]quantity*price = 363000 [11:18:09]sum+1 = 363001 [11:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3630.00 НСП 1% : 32.12 НДС 12% : 385.49 Наличными: 0.00 Безнал.: 3630.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 157 13.07.2024 11:18 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162489 ФПД: 118827121258626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111823&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162489&fm=118827121258626&tin=02508201610067®Number=0000000000090858&sum=363000 [11:18:10]StoreToDocumentArchive [11:18:10]shift 462 fd 162489 [11:18:10]save to /storage/0462/doc_00162489 [11:18:10]save last doc name /storage/0462/doc_00162489 to /storage/kkm_last_doc_name [11:18:10]save OK [11:18:10]Clear old archive folders... [11:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:18:10]tlvbuf is 01C8B960 [11:18:10]SAM_PROTO_ClearQueue [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 09 00 00 [11:18:10]Write to MH i2c: E2 08 00 C7 1B 80 09 00 00 00 00 00 00 54 [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [11:18:10]RAPDU: 90 00 [11:18:10]wFMCommunicate OK [11:18:10]SAM_PROTO_ClearQueue done [11:18:10]KKMCreateOFDPacket [11:18:10]OFDProtocolAddRootSTLVToBuf [11:18:10]FM_MakeSignedData [11:18:10]FM_MakeSignedData [11:18:10]SAM_PROTO_SignData [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 0D 01 02 [11:18:10]Write to MH i2c: E2 08 00 C8 1B 80 0D 01 02 00 00 00 00 5C [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 C8 1B 00 90 00 57 [11:18:10]RAPDU: 90 00 [11:18:10]wFMCommunicate OK [11:18:10]wFMCommunicate request_size=255 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 7F 62 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7A 02 00 35 04 06 00 [11:18:10]Write to MH i2c: E2 02 01 C9 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 7F 62 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7A 02 00 35 04 06 00 00 00 0D [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 C9 1B 00 90 00 58 [11:18:10]RAPDU: 90 00 [11:18:10]wFMCommunicate OK [11:18:10]wFMCommunicate request_size=11 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 0D 02 02 06 6C 12 98 5A 30 82 [11:18:10]Write to MH i2c: E2 0E 00 CA 1B 80 0D 02 02 06 00 6C 12 98 5A 30 82 00 00 8D [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 03 00 CA 1B 00 90 00 59 [11:18:10]RAPDU: 90 00 [11:18:10]wFMCommunicate OK [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 0D 03 02 [11:18:10]Write to MH i2c: E2 08 00 CB 1B 80 0D 03 02 00 00 00 00 61 [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 0B 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 0B 00 CB 1B 00 CE D1 D6 9D 14 A5 E1 9D 90 00 AB [11:18:10]RAPDU: CE D1 D6 9D 14 A5 E1 9D 90 00 [11:18:10]wFMCommunicate OK [11:18:10]SAM_PROTO_SignData done [11:18:10]FM_MakeSignedData done [11:18:10]CreateOFDProtocolMessage [11:18:10]wFMCommunicate request_size=4 [11:18:10]MH_SAM_APDU [11:18:10]CAPDU: 80 11 00 00 [11:18:10]Write to MH i2c: E2 08 00 CC 1B 80 11 00 00 00 00 00 00 61 [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:10]Read from MH i2c: E2 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 17 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: E2 17 00 CC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C1 [11:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:18:10]wFMCommunicate OK [11:18:10]CreateOFDProtocolMessage done [11:18:10]OFDSenderStorePacket 162489 [11:18:10]StoreOFDPacket docnum=162489 [11:18:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E9 87 08 01 BE BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 7F 62 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7A 02 00 35 04 06 00 6C 12 98 5A 30 82 CE D1 D6 9D 14 A5 E1 9D [11:18:10]CheckFolder [11:18:10]dirname=/storage/ofd_packets [11:18:10]CheckFolder done [11:18:10]ProducePacketName [11:18:10]name=ofd_packets/00162489 [11:18:10]NVStorageSaveData ofd_packets/00162489 [11:18:10]File name is /storage/ofd_packets/00162489 [11:18:10]Write 302 bytes [11:18:10]NVStorageSaveData done [11:18:10]OFDSenderStorePacket done [11:18:10]KKMCreateOFDPacket done [11:18:10]NVStorageSaveData kkm_last_timestamp [11:18:10]File name is /storage/kkm_last_timestamp [11:18:10]Write 4 bytes [11:18:10]NVStorageSaveData done [11:18:10]ExternCall_PrintAddStr [11:18:10]wPrintStart [11:18:10]Write to MH i2c: 01 00 00 CD 1B E8 [11:18:10]Write i2c OK [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: 01 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: 01 07 00 [11:18:10]MH_I2C_Read... [11:18:10]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 FF 0F FD [11:18:10]RasterBufferAndPrint [11:18:10]line Счет N : (1)1319027 [11:18:10]line ИНН: 02508201610067 [11:18:10]line Контрольно-Кассовый Чек [11:18:10]line ПРОДАЖА [11:18:10]line ТРК (МРК, ГНК) : 21 [11:18:10]line Товар: 2710194210 [11:18:10]line ДТ(л)-К-5 [11:18:10]line 50.000 * 72.60 [11:18:10]line = 3630.00 [11:18:10]line НДС 12% НСП 1% [11:18:10]line > о реализуемом товаре [11:18:10]line ИТОГО: 3630.00 [11:18:10]line НСП 1% : 32.12 [11:18:10]line НДС 12% : 385.49 [11:18:10]line Наличными: 0.00 [11:18:10]line Безнал.: 3630.00 [11:18:10]line Место: АЗС № 140 "Партнер Нефть" [11:18:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:18:10]line СНО: Общий режим [11:18:10]line Чек 157 13.07.2024 11:18 [11:18:10]line Смена: 462 ФФД: 1.0 [11:18:10]line ЗНМ: 0300000129 [11:18:10]line РНМ: 0000000000090858 [11:18:10]line Версия ККМ: 001 [11:18:10]line Платежная система: O! деньги [11:18:10]line ФМ: 0000000000874899 [11:18:10]line ФД: 162489 [11:18:10]line ФПД: 118827121258626 [11:18:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T111823&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162489&fm=118827121258626&tin=02508201610067®Number=0000000000090858&sum=363000 [11:18:11]OFD Sender: Processing packet 162489 [packets to send 105, broken 104] [11:18:11]ProducePacketName [11:18:11]name=ofd_packets/00162489 [11:18:11]OFD Sender: To server: pG, [11:18:11]CommunicateWithHost lk.salyk.kg:30040 [11:18:11]ConnectInit lk.salyk.kg [11:18:11]written 0, free lines is 4095 [11:18:11]Connected sock=9 [11:18:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E9 87 08 01 BE BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 7F 62 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7A 02 00 35 04 06 00 6C 12 98 5A 30 82 CE D1 D6 9D 14 A5 E1 9D [11:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BB A3 47 00 76 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 B9 7A 02 00 F4 03 04 00 93 0E 92 66 B6 04 01 00 00 B3 4F 81 A5 64 24 2A C3 [11:18:11]CommunicateWithHost err = 0 [11:18:11]CheckOFDResponse [11:18:11]1017 (14) - 77093643461234 [11:18:11]1041 (16) - 0000000000874899 [11:18:11]1040 (4) - 162489 [11:18:11]1012 (4) - 13.07.2024 05:20 [11:18:11]1206 (1) - 0 [11:18:11]OFD Sender: Remove packet 162489 [11:18:11]ProducePacketName [11:18:11]name=ofd_packets/00162489 [11:18:11]NVStorageDeleteData [11:18:11]Write to MH i2c: 01 00 00 F7 1B 12 [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 07 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: 01 07 00 F7 1B 00 00 00 00 00 EC 0C 11 [11:18:11]RasterBufferAndPrint [11:18:11]line [11:18:11]line [11:18:11]line [11:18:11]line [11:18:11]line [11:18:11]written 0, free lines is 3318 [11:18:11]MH_Cut [11:18:11]Write to MH i2c: D1 01 00 FE 1B 01 EB [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: D1 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: D1 01 00 [11:18:11]MH_I2C_Read... [11:18:11]Read from MH i2c: D1 01 00 FE 1B 00 EA [11:18:11]Write to MH i2c: 01 00 00 FF 1B 1A [11:18:11]Write i2c OK [11:18:11]MH_I2C_Read... [11:18:11]OFD Sender: No OFD packet to send [11:18:12]*** Cut start [11:18:12]*** Purtial cut [11:18:12]*** CUTSNS_PIN = 0 [11:18:12]*** Stage 1: CUTSNS_PIN = 1 [11:18:14]Read from MH i2c: 01 [11:18:14]MH_I2C_Read... [11:18:14]*** Stop cut motor [11:18:14]*** Cut end [11:18:14]Read from MH i2c: 01 07 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: 01 07 00 FF 1B 00 00 00 00 00 FF 0F 2F [11:18:14]process_action close_receipt done [11:18:14]requested_data is exist [11:18:14]produce_requested_data [11:18:14]requested_item fm.sn is exist - process it [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 11 00 00 [11:18:14]Write to MH i2c: E2 08 00 00 1C 80 11 00 00 00 00 00 00 96 [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 17 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 17 00 00 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F6 [11:18:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:18:14]wFMCommunicate OK [11:18:14]requested_item fd.num is exist - process it [11:18:14]SAM_PROTO_GetFieldsCounters [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 13 00 00 [11:18:14]Write to MH i2c: E2 08 00 01 1C 80 13 00 00 00 00 00 00 99 [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 62 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 62 00 01 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [11:18:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:14]wFMCommunicate OK [11:18:14]SAM_PROTO_GetFieldsCounters done [11:18:14]requested_item shift.num is exist - process it [11:18:14]requested_item shift.opened is exist - process it [11:18:14]req_shift_opened [11:18:14]FM_GetShiftState [11:18:14]SAM_PROTO_GetShiftState [11:18:14]wFMCommunicate request_size=4 [11:18:14]MH_SAM_APDU [11:18:14]CAPDU: 80 13 01 00 [11:18:14]Write to MH i2c: E2 08 00 02 1C 80 13 01 00 00 00 00 00 9B [11:18:14]Write i2c OK [11:18:14]MH_I2C_Read... [11:18:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:14]Read from MH i2c: E2 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 0E 00 [11:18:14]MH_I2C_Read... [11:18:14]Read from MH i2c: E2 0E 00 02 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 95 [11:18:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:18:14]wFMCommunicate OK [11:18:14]SAM_PROTO_GetShiftState done [11:18:14]FM_GetShiftState done [11:18:14]req_shift_opened done [11:18:14]requested_item shift.open_date is exist - process it [11:18:14]req_shift_open_date [11:18:14]req_shift_open_date done [11:18:14]produce_requested_data done [11:18:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162489,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:18:14]process_action_free close_receipt [11:18:14]json_value_free [11:18:14]json_value_free done [11:18:14]process_json_proto returns [11:18:14]Send response to host [11:18:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162489,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:18:14]free response buf [11:18:14]execute_script done [11:18:14]execute_script returns [11:18:14]free content buf [11:18:14]Sock 10.Close socket [11:18:14]Sock 10.Thread stoped [11:18:16]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:16]accept exits with 8 [11:23:16]New connection [11:23:16]New thread 3067006308 created [11:23:16]Thread 3066862948 joined [11:23:16]Waiting for new connection... [11:23:16] Sock 8.Parse request [11:23:16]Sock 8.Check first char [11:23:16]Sock 8.First char is OK [11:23:16]request: POST /json_proto HTTP/1.0 [11:23:16]Method: POST [11:23:16]URL: /json_proto [11:23:16]Method is POST - this is cgi request [11:23:16]url: /json_proto [11:23:16]query_string will be loaded in cgi processing [11:23:16]execute_cgi json_proto POST (null) [11:23:16]execute_cgi path=json_proto method=POST [11:23:16]POST find Content-Length [11:23:16]Host: 172.17.39.67:8080 [11:23:16]Content-Length: 1213 [11:23:16]Content-Type: application/json [11:23:16] [11:23:16]POST finish read [11:23:16]Found Content-Length = 1213 [11:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319028\u000A13.07.2024 11:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 2652.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32685\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:16]execute_script... [11:23:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319028\u000A13.07.2024 11:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 40.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 2652.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32685\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:16]POST & json_proto [11:23:16]process_json_proto [11:23:16]json parsed OK: [11:23:16]protocol is kg_v1.0 [11:23:16]action value=print_text [11:23:16]process_action print_text [11:23:16]cmd_print_text [11:23:16]ExternCall_PrintAddStr [11:23:16]wPrintStart [11:23:16]Write to MH i2c: 01 00 00 03 1C 1F [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: 01 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: 01 07 00 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: 01 07 00 03 1C 00 00 00 00 00 FF 0F 34 [11:23:16]RasterBufferAndPrint [11:23:16]line *****ТОВАРНЫЙ ЧЕК***** [11:23:16]line АЗС 140 [11:23:16]line Партнер нефть [11:23:16]line 02508201610067 [11:23:16]line Кассир : Шамбеталиев А. [11:23:16]line Счет N : (1)1319028 [11:23:16]line 13.07.2024 11:21 [11:23:16]line ПРОДАЖА [11:23:16]line ТРК (МРК, ГНК): 43 [11:23:16]line Вид ГСМ : 2710124130 [11:23:16]line Аи-92-К-5 [11:23:16]line 40.000 x 66.30 [11:23:16]line ИТОГ: 2652.00 [11:23:16]line Тип оплаты: Талоны: Топливная Карта [11:23:16]line 32685 [11:23:16]line ______________________ [11:23:16]line (подпись) [11:23:16]written 0, free lines is 4095 [11:23:16]Write to MH i2c: 01 00 00 18 1C 34 [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: 01 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: 01 07 00 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: 01 07 00 18 1C 00 00 00 00 00 F5 0D 3D [11:23:16]RasterBufferAndPrint [11:23:16]line [11:23:16]line [11:23:16]line [11:23:16]line [11:23:16]line [11:23:16]written 0, free lines is 3574 [11:23:16]MH_Cut [11:23:16]Write to MH i2c: D1 01 00 1F 1C 01 0D [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: D1 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: D1 01 00 [11:23:16]MH_I2C_Read... [11:23:16]Read from MH i2c: D1 01 00 1F 1C 00 0C [11:23:16]Write to MH i2c: 01 00 00 20 1C 3C [11:23:16]Write i2c OK [11:23:16]MH_I2C_Read... [11:23:17]OFD Sender: No OFD packet to send [11:23:17]*** Cut start [11:23:17]*** Purtial cut [11:23:17]*** Stage 1: CUTSNS_PIN = 1 [11:23:17]Read from MH i2c: 01 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: 01 07 00 [11:23:17]MH_I2C_Read... [11:23:17]*** Stop cut motor [11:23:17]*** Cut end [11:23:17]Read from MH i2c: 01 07 00 20 1C 00 00 00 00 00 FF 0F 51 [11:23:17]process_action print_text done [11:23:17]requested_data is exist [11:23:17]produce_requested_data [11:23:17]requested_item fm.sn is exist - process it [11:23:17]wFMCommunicate request_size=4 [11:23:17]MH_SAM_APDU [11:23:17]CAPDU: 80 11 00 00 [11:23:17]Write to MH i2c: E2 08 00 21 1C 80 11 00 00 00 00 00 00 B7 [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:17]Read from MH i2c: E2 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: E2 17 00 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: E2 17 00 21 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 17 [11:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:23:17]wFMCommunicate OK [11:23:17]requested_item fd.num is exist - process it [11:23:17]SAM_PROTO_GetFieldsCounters [11:23:17]wFMCommunicate request_size=4 [11:23:17]MH_SAM_APDU [11:23:17]CAPDU: 80 13 00 00 [11:23:17]Write to MH i2c: E2 08 00 22 1C 80 13 00 00 00 00 00 00 BA [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:17]Read from MH i2c: E2 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: E2 62 00 [11:23:17]MH_I2C_Read... [11:23:17]Read from MH i2c: E2 62 00 22 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [11:23:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 B9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:17]wFMCommunicate OK [11:23:17]SAM_PROTO_GetFieldsCounters done [11:23:17]requested_item shift.num is exist - process it [11:23:17]requested_item shift.opened is exist - process it [11:23:17]req_shift_opened [11:23:17]FM_GetShiftState [11:23:17]SAM_PROTO_GetShiftState [11:23:17]wFMCommunicate request_size=4 [11:23:17]MH_SAM_APDU [11:23:17]CAPDU: 80 13 01 00 [11:23:17]Write to MH i2c: E2 08 00 23 1C 80 13 01 00 00 00 00 00 BC [11:23:17]Write i2c OK [11:23:17]MH_I2C_Read... [11:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:18]Read from MH i2c: E2 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 0E 00 [11:23:18]MH_I2C_Read... [11:23:18]Read from MH i2c: E2 0E 00 23 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B6 [11:23:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:23:18]wFMCommunicate OK [11:23:18]SAM_PROTO_GetShiftState done [11:23:18]FM_GetShiftState done [11:23:18]req_shift_opened done [11:23:18]requested_item shift.open_date is exist - process it [11:23:18]req_shift_open_date [11:23:18]req_shift_open_date done [11:23:18]produce_requested_data done [11:23:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162489,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:23:18]process_action_free print_text [11:23:18]json_value_free [11:23:18]json_value_free done [11:23:18]process_json_proto returns [11:23:18]Send response to host [11:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162489,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:23:18]free response buf [11:23:18]execute_script done [11:23:18]execute_script returns [11:23:18]free content buf [11:23:18]Sock 8.Close socket [11:23:18]Sock 8.Thread stoped [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:17]accept exits with 9 [11:25:17]New connection [11:25:17]New thread 3066862948 created [11:25:17]Thread 3067006308 joined [11:25:17]Waiting for new connection... [11:25:17] Sock 9.Parse request [11:25:17]Sock 9.Check first char [11:25:17]Sock 9.First char is OK [11:25:17]request: POST /json_proto HTTP/1.0 [11:25:17]Method: POST [11:25:17]URL: /json_proto [11:25:17]Method is POST - this is cgi request [11:25:17]url: /json_proto [11:25:17]query_string will be loaded in cgi processing [11:25:17]execute_cgi json_proto POST (null) [11:25:17]execute_cgi path=json_proto method=POST [11:25:17]POST find Content-Length [11:25:17]Host: 172.17.39.67:8080 [11:25:17]Content-Length: 683 [11:25:17]Content-Type: application/json [11:25:17] [11:25:17]POST finish read [11:25:17]Found Content-Length = 683 [11:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.510, "sum" : 690.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:17]execute_script... [11:25: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)1319029", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 9.510, "sum" : 690.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:17]POST & json_proto [11:25:17]process_json_proto [11:25:17]json parsed OK: [11:25:17]protocol is kg_v1.0 [11:25:17]action value=close_receipt [11:25:17]process_action close_receipt [11:25:17]cmd_close_receipt [11:25:17]MH_GetDate [11:25:17]Write to MH i2c: F0 00 00 24 1C 2F [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: F0 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: F0 09 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: F0 09 00 24 1C 00 2C 64 92 66 FA E9 8E 66 97 [11:25:17]GetLastDocTimeStamp 1720869503 [11:25:17]current date 1720869932 [11:25:17]FM_GetShiftState [11:25:17]SAM_PROTO_GetShiftState [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 13 01 00 [11:25:17]Write to MH i2c: E2 08 00 25 1C 80 13 01 00 00 00 00 00 BE [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0E 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0E 00 25 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B8 [11:25:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:25:17]wFMCommunicate OK [11:25:17]SAM_PROTO_GetShiftState done [11:25:17]FM_GetShiftState done [11:25:17]opened in 1720828979 [11:25:17]opened+sec_in_day 1720915379 [11:25:17]quantity*price = 69042 [11:25:17]sum+1 = 69044 [11:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.32 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 158 13.07.2024 11:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162490 ФПД: 110019179665218 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112532&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162490&fm=110019179665218&tin=02508201610067®Number=0000000000090858&sum=69000 [11:25:19]StoreToDocumentArchive [11:25:19]shift 462 fd 162490 [11:25:19]save to /storage/0462/doc_00162490 [11:25:19]save last doc name /storage/0462/doc_00162490 to /storage/kkm_last_doc_name [11:25:19]save OK [11:25:19]Clear old archive folders... [11:25:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:25:19]tlvbuf is 01C68A20 [11:25:19]SAM_PROTO_ClearQueue [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 09 00 00 [11:25:19]Write to MH i2c: E2 08 00 32 1C 80 09 00 00 00 00 00 00 C0 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:19]Read from MH i2c: E2 03 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [11:25:19]RAPDU: 90 00 [11:25:19]wFMCommunicate OK [11:25:19]SAM_PROTO_ClearQueue done [11:25:19]KKMCreateOFDPacket [11:25:19]OFDProtocolAddRootSTLVToBuf [11:25:19]FM_MakeSignedData [11:25:19]FM_MakeSignedData [11:25:19]SAM_PROTO_SignData [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 0D 01 02 [11:25:19]Write to MH i2c: E2 08 00 33 1C 80 0D 01 02 00 00 00 00 C8 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 33 1C 00 90 00 C3 [11:25:19]RAPDU: 90 00 [11:25:19]wFMCommunicate OK [11:25:19]wFMCommunicate request_size=255 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B3 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 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 2C 64 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7A 02 00 35 04 06 00 [11:25:19]Write to MH i2c: E2 02 01 34 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B3 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 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 2C 64 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7A 02 00 35 04 06 00 00 00 1F [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 34 1C 00 90 00 C4 [11:25:19]RAPDU: 90 00 [11:25:19]wFMCommunicate OK [11:25:19]wFMCommunicate request_size=11 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 0D 02 02 06 64 0F D6 1F 57 42 [11:25:19]Write to MH i2c: E2 0E 00 35 1C 80 0D 02 02 06 00 64 0F D6 1F 57 42 00 00 D8 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 03 00 35 1C 00 90 00 C5 [11:25:19]RAPDU: 90 00 [11:25:19]wFMCommunicate OK [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 0D 03 02 [11:25:19]Write to MH i2c: E2 08 00 36 1C 80 0D 03 02 00 00 00 00 CD [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 0B 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 0B 00 36 1C 00 32 0E B6 48 C3 60 75 B3 90 00 57 [11:25:19]RAPDU: 32 0E B6 48 C3 60 75 B3 90 00 [11:25:19]wFMCommunicate OK [11:25:19]SAM_PROTO_SignData done [11:25:19]FM_MakeSignedData done [11:25:19]CreateOFDProtocolMessage [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 11 00 00 [11:25:19]Write to MH i2c: E2 08 00 37 1C 80 11 00 00 00 00 00 00 CD [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 17 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 17 00 37 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2D [11:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:25:19]wFMCommunicate OK [11:25:19]CreateOFDProtocolMessage done [11:25:19]OFDSenderStorePacket 162490 [11:25:19]StoreOFDPacket docnum=162490 [11:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C8 BD 08 01 C5 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B3 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 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 2C 64 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7A 02 00 35 04 06 00 64 0F D6 1F 57 42 32 0E B6 48 C3 60 75 B3 [11:25:19]CheckFolder [11:25:19]dirname=/storage/ofd_packets [11:25:19]CheckFolder done [11:25:19]ProducePacketName [11:25:19]name=ofd_packets/00162490 [11:25:19]NVStorageSaveData ofd_packets/00162490 [11:25:19]File name is /storage/ofd_packets/00162490 [11:25:19]Write 302 bytes [11:25:19]NVStorageSaveData done [11:25:19]OFDSenderStorePacket done [11:25:19]KKMCreateOFDPacket done [11:25:19]NVStorageSaveData kkm_last_timestamp [11:25:19]File name is /storage/kkm_last_timestamp [11:25:19]Write 4 bytes [11:25:19]NVStorageSaveData done [11:25:19]ExternCall_PrintAddStr [11:25:19]wPrintStart [11:25:19]Write to MH i2c: 01 00 00 38 1C 54 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 38 1C 00 00 00 00 00 FF 0F 69 [11:25:19]RasterBufferAndPrint [11:25:19]line Счет N : (1)1319029 [11:25:19]line ИНН: 02508201610067 [11:25:19]line Контрольно-Кассовый Чек [11:25:19]line ПРОДАЖА [11:25:19]line ТРК (МРК, ГНК) : 11 [11:25:19]line Товар: 2710194210 [11:25:19]line ДТ(л)-К-5 [11:25:19]line 9.510 * 72.60 [11:25:19]line = 690.43 [11:25:19]line НДС 12% НСП 1% [11:25:19]line > о реализуемом товаре [11:25:19]line ОКРУГЛЕНИЕ: -0.43 [11:25:19]line ИТОГО: 690.00 [11:25:19]line Внесено: 690.00 [11:25:19]line СДАЧА: 0.00 [11:25:19]line НСП 1% : 6.11 [11:25:19]line НДС 12% : 73.32 [11:25:19]line Наличными: 690.00 [11:25:19]line Безнал.: 0.00 [11:25:19]line Место: АЗС № 140 "Партнер Нефть" [11:25:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:25:19]line СНО: Общий режим [11:25:19]line Чек 158 13.07.2024 11:25 [11:25:19]line Смена: 462 ФФД: 1.0 [11:25:19]line ЗНМ: 0300000129 [11:25:19]line РНМ: 0000000000090858 [11:25:19]line Версия ККМ: 001 [11:25:19]line ФМ: 0000000000874899 [11:25:19]line ФД: 162490 [11:25:19]line ФПД: 110019179665218 [11:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T112532&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162490&fm=110019179665218&tin=02508201610067®Number=0000000000090858&sum=69000 [11:25:19]OFD Sender: Processing packet 162490 [packets to send 105, broken 104] [11:25:19]ProducePacketName [11:25:19]name=ofd_packets/00162490 [11:25:19]OFD Sender: To server: pG, [11:25:19]CommunicateWithHost lk.salyk.kg:30040 [11:25:19]ConnectInit lk.salyk.kg [11:25:19]written 0, free lines is 4095 [11:25:20]Connected sock=10 [11:25:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C8 BD 08 01 C5 69 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B3 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A4 1C 00 00 00 00 07 04 06 00 88 0D 01 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 2C 64 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7A 02 00 35 04 06 00 64 0F D6 1F 57 42 32 0E B6 48 C3 60 75 B3 [11:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6D 01 47 00 5E 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BA 7A 02 00 F4 03 04 00 40 10 92 66 B6 04 01 00 00 F9 84 4F DB 98 D7 61 26 [11:25:20]CommunicateWithHost err = 0 [11:25:20]CheckOFDResponse [11:25:20]1017 (14) - 77093643461234 [11:25:20]1041 (16) - 0000000000874899 [11:25:20]1040 (4) - 162490 [11:25:20]1012 (4) - 13.07.2024 05:27 [11:25:20]1206 (1) - 0 [11:25:20]OFD Sender: Remove packet 162490 [11:25:20]ProducePacketName [11:25:20]name=ofd_packets/00162490 [11:25:20]NVStorageDeleteData [11:25:20]Write to MH i2c: 01 00 00 63 1C 7F [11:25:20]Write i2c OK [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: 01 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: 01 07 00 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: 01 07 00 63 1C 00 00 00 00 00 D7 0C 69 [11:25:20]RasterBufferAndPrint [11:25:20]line [11:25:20]line [11:25:20]line [11:25:20]line [11:25:20]line [11:25:20]written 0, free lines is 3295 [11:25:20]MH_Cut [11:25:20]Write to MH i2c: D1 01 00 6A 1C 01 58 [11:25:20]Write i2c OK [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: D1 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: D1 01 00 [11:25:20]MH_I2C_Read... [11:25:20]Read from MH i2c: D1 01 00 6A 1C 00 57 [11:25:20]Write to MH i2c: 01 00 00 6B 1C 87 [11:25:20]Write i2c OK [11:25:20]MH_I2C_Read... [11:25:20]OFD Sender: No OFD packet to send [11:25:21]*** Cut start [11:25:21]*** Purtial cut [11:25:21]*** CUTSNS_PIN = 0 [11:25:21]*** Stage 1: CUTSNS_PIN = 1 [11:25:23]Read from MH i2c: 01 [11:25:23]MH_I2C_Read... [11:25:23]*** Stop cut motor [11:25:23]*** Cut end [11:25:23]Read from MH i2c: 01 07 00 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: 01 07 00 6B 1C 00 00 00 00 00 FF 0F 9C [11:25:23]process_action close_receipt done [11:25:23]requested_data is exist [11:25:23]produce_requested_data [11:25:23]requested_item fm.sn is exist - process it [11:25:23]wFMCommunicate request_size=4 [11:25:23]MH_SAM_APDU [11:25:23]CAPDU: 80 11 00 00 [11:25:23]Write to MH i2c: E2 08 00 6C 1C 80 11 00 00 00 00 00 00 02 [11:25:23]Write i2c OK [11:25:23]MH_I2C_Read... [11:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:23]Read from MH i2c: E2 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 17 00 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 17 00 6C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 62 [11:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:25:23]wFMCommunicate OK [11:25:23]requested_item fd.num is exist - process it [11:25:23]SAM_PROTO_GetFieldsCounters [11:25:23]wFMCommunicate request_size=4 [11:25:23]MH_SAM_APDU [11:25:23]CAPDU: 80 13 00 00 [11:25:23]Write to MH i2c: E2 08 00 6D 1C 80 13 00 00 00 00 00 00 05 [11:25:23]Write i2c OK [11:25:23]MH_I2C_Read... [11:25:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:23]Read from MH i2c: E2 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 62 00 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 62 00 6D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [11:25:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:23]wFMCommunicate OK [11:25:23]SAM_PROTO_GetFieldsCounters done [11:25:23]requested_item shift.num is exist - process it [11:25:23]requested_item shift.opened is exist - process it [11:25:23]req_shift_opened [11:25:23]FM_GetShiftState [11:25:23]SAM_PROTO_GetShiftState [11:25:23]wFMCommunicate request_size=4 [11:25:23]MH_SAM_APDU [11:25:23]CAPDU: 80 13 01 00 [11:25:23]Write to MH i2c: E2 08 00 6E 1C 80 13 01 00 00 00 00 00 07 [11:25:23]Write i2c OK [11:25:23]MH_I2C_Read... [11:25:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:23]Read from MH i2c: E2 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 0E 00 [11:25:23]MH_I2C_Read... [11:25:23]Read from MH i2c: E2 0E 00 6E 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 01 [11:25:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:25:23]wFMCommunicate OK [11:25:23]SAM_PROTO_GetShiftState done [11:25:23]FM_GetShiftState done [11:25:23]req_shift_opened done [11:25:23]requested_item shift.open_date is exist - process it [11:25:23]req_shift_open_date [11:25:23]req_shift_open_date done [11:25:23]produce_requested_data done [11:25:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162490,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:25:23]process_action_free close_receipt [11:25:23]json_value_free [11:25:23]json_value_free done [11:25:23]process_json_proto returns [11:25:23]Send response to host [11:25:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162490,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:25:23]free response buf [11:25:23]execute_script done [11:25:23]execute_script returns [11:25:23]free content buf [11:25:23]Sock 9.Close socket [11:25:23]Sock 9.Thread stoped [11:25:25]OFD Sender: No OFD packet to send [11:25:30]OFD Sender: No OFD packet to send [11:25:35]OFD Sender: No OFD packet to send [11:25:40]OFD Sender: No OFD packet to send [11:25:45]OFD Sender: No OFD packet to send [11:25:50]OFD Sender: No OFD packet to send [11:25:55]OFD Sender: No OFD packet to send [11:26:00]OFD Sender: No OFD packet to send [11:26:05]OFD Sender: No OFD packet to send [11:26:10]OFD Sender: No OFD packet to send [11:26:15]OFD Sender: No OFD packet to send [11:26:20]OFD Sender: No OFD packet to send [11:26:25]OFD Sender: No OFD packet to send [11:26:30]OFD Sender: No OFD packet to send [11:26:35]OFD Sender: No OFD packet to send [11:26:40]OFD Sender: No OFD packet to send [11:26:45]OFD Sender: No OFD packet to send [11:26:50]OFD Sender: No OFD packet to send [11:26:55]OFD Sender: No OFD packet to send [11:27:00]OFD Sender: No OFD packet to send [11:27:05]OFD Sender: No OFD packet to send [11:27:10]OFD Sender: No OFD packet to send [11:27:15]OFD Sender: No OFD packet to send [11:27:20]OFD Sender: No OFD packet to send [11:27:25]OFD Sender: No OFD packet to send [11:27:30]OFD Sender: No OFD packet to send [11:27:35]OFD Sender: No OFD packet to send [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:20]accept exits with 8 [11:29:20]New connection [11:29:20]New thread 3067006308 created [11:29:20]Thread 3066862948 joined [11:29:20]Waiting for new connection... [11:29:20] Sock 8.Parse request [11:29:20]Sock 8.Check first char [11:29:20]Sock 8.First char is OK [11:29:20]request: POST /json_proto HTTP/1.0 [11:29:20]Method: POST [11:29:20]URL: /json_proto [11:29:20]Method is POST - this is cgi request [11:29:20]url: /json_proto [11:29:20]query_string will be loaded in cgi processing [11:29:20]execute_cgi json_proto POST (null) [11:29:20]execute_cgi path=json_proto method=POST [11:29:20]POST find Content-Length [11:29:20]Host: 172.17.39.67:8080 [11:29:20]Content-Length: 1207 [11:29:20]Content-Type: application/json [11:29:20] [11:29:20]POST finish read [11:29:20]Found Content-Length = 1207 [11:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319030\u000A13.07.2024 11:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 726.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4023455\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:20]execute_script... [11:29:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319030\u000A13.07.2024 11:27\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 726.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4023455\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:20]POST & json_proto [11:29:20]process_json_proto [11:29:20]json parsed OK: [11:29:20]protocol is kg_v1.0 [11:29:20]action value=print_text [11:29:20]process_action print_text [11:29:20]cmd_print_text [11:29:20]ExternCall_PrintAddStr [11:29:20]wPrintStart [11:29:20]Write to MH i2c: 01 00 00 6F 1C 8B [11:29:20]Write i2c OK [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: 01 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: 01 07 00 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: 01 07 00 6F 1C 00 00 00 00 00 FF 0F A0 [11:29:20]RasterBufferAndPrint [11:29:20]line *****ТОВАРНЫЙ ЧЕК***** [11:29:20]line АЗС 140 [11:29:20]line Партнер нефть [11:29:20]line 02508201610067 [11:29:20]line Кассир : Шамбеталиев А. [11:29:20]line Счет N : (1)1319030 [11:29:20]line 13.07.2024 11:27 [11:29:20]line ПРОДАЖА [11:29:20]line ТРК (МРК, ГНК): 21 [11:29:20]line Вид ГСМ : 2710194210 [11:29:20]line ДТ(л)-К-5 [11:29:20]line 10.000 x 72.60 [11:29:20]line ИТОГ: 726.00 [11:29:20]line Тип оплаты: Талоны: Партнер нефть [11:29:20]line 4023455 [11:29:20]line ______________________ [11:29:20]line (подпись) [11:29:20]written 0, free lines is 4095 [11:29:21]OFD Sender: No OFD packet to send [11:29:21]Write to MH i2c: 01 00 00 84 1C A0 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 07 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 07 00 84 1C 00 00 00 00 00 F5 0D A9 [11:29:21]RasterBufferAndPrint [11:29:21]line [11:29:21]line [11:29:21]line [11:29:21]line [11:29:21]line [11:29:21]written 0, free lines is 3574 [11:29:21]MH_Cut [11:29:21]Write to MH i2c: D1 01 00 8B 1C 01 79 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: D1 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: D1 01 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: D1 01 00 8B 1C 00 78 [11:29:21]Write to MH i2c: 01 00 00 8C 1C A8 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** Cut start [11:29:21]*** Purtial cut [11:29:21]*** Stage 1: CUTSNS_PIN = 1 [11:29:21]Read from MH i2c: 01 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 07 00 [11:29:21]MH_I2C_Read... [11:29:21]*** Stop cut motor [11:29:21]*** Cut end [11:29:21]Read from MH i2c: 01 07 00 8C 1C 00 00 00 00 00 FF 0F BD [11:29:21]process_action print_text done [11:29:21]requested_data is exist [11:29:21]produce_requested_data [11:29:21]requested_item fm.sn is exist - process it [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 11 00 00 [11:29:21]Write to MH i2c: E2 08 00 8D 1C 80 11 00 00 00 00 00 00 23 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 17 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 17 00 8D 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [11:29:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:29:21]wFMCommunicate OK [11:29:21]requested_item fd.num is exist - process it [11:29:21]SAM_PROTO_GetFieldsCounters [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 13 00 00 [11:29:21]Write to MH i2c: E2 08 00 8E 1C 80 13 00 00 00 00 00 00 26 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 62 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 62 00 8E 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [11:29:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:22]wFMCommunicate OK [11:29:22]SAM_PROTO_GetFieldsCounters done [11:29:22]requested_item shift.num is exist - process it [11:29:22]requested_item shift.opened is exist - process it [11:29:22]req_shift_opened [11:29:22]FM_GetShiftState [11:29:22]SAM_PROTO_GetShiftState [11:29:22]wFMCommunicate request_size=4 [11:29:22]MH_SAM_APDU [11:29:22]CAPDU: 80 13 01 00 [11:29:22]Write to MH i2c: E2 08 00 8F 1C 80 13 01 00 00 00 00 00 28 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:22]Read from MH i2c: E2 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 0E 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: E2 0E 00 8F 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 22 [11:29:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:29:22]wFMCommunicate OK [11:29:22]SAM_PROTO_GetShiftState done [11:29:22]FM_GetShiftState done [11:29:22]req_shift_opened done [11:29:22]requested_item shift.open_date is exist - process it [11:29:22]req_shift_open_date [11:29:22]req_shift_open_date done [11:29:22]produce_requested_data done [11:29:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162490,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:29:22]process_action_free print_text [11:29:22]json_value_free [11:29:22]json_value_free done [11:29:22]process_json_proto returns [11:29:22]Send response to host [11:29:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162490,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:29:22]free response buf [11:29:22]execute_script done [11:29:22]execute_script returns [11:29:22]free content buf [11:29:22]Sock 8.Close socket [11:29:22]Sock 8.Thread stoped [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:10]accept exits with 9 [11:30:10]New connection [11:30:10]New thread 3066862948 created [11:30:10]Thread 3067006308 joined [11:30:10]Waiting for new connection... [11:30:10] Sock 9.Parse request [11:30:10]Sock 9.Check first char [11:30:10]Sock 9.First char is OK [11:30:10]request: POST /json_proto HTTP/1.0 [11:30:10]Method: POST [11:30:10]URL: /json_proto [11:30:10]Method is POST - this is cgi request [11:30:10]url: /json_proto [11:30:10]query_string will be loaded in cgi processing [11:30:10]execute_cgi json_proto POST (null) [11:30:10]execute_cgi path=json_proto method=POST [11:30:10]POST find Content-Length [11:30:10]Host: 172.17.39.67:8080 [11:30:10]Content-Length: 688 [11:30:10]Content-Type: application/json [11:30:10] [11:30:10]POST finish read [11:30:10]Found Content-Length = 688 [11:30:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 17.550, "sum" : 1274.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1274.00, "total" : 1274.00, "payments": [ { "type": 0, "sum" : 1274.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:10]execute_script... [11:30: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)1319031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 17.550, "sum" : 1274.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1274.00, "total" : 1274.00, "payments": [ { "type": 0, "sum" : 1274.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:10]POST & json_proto [11:30:10]process_json_proto [11:30:10]json parsed OK: [11:30:10]protocol is kg_v1.0 [11:30:10]action value=close_receipt [11:30:10]process_action close_receipt [11:30:10]cmd_close_receipt [11:30:10]MH_GetDate [11:30:10]Write to MH i2c: F0 00 00 90 1C 9B [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: F0 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: F0 09 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: F0 09 00 90 1C 00 50 65 92 66 FA E9 8E 66 28 [11:30:10]GetLastDocTimeStamp 1720869932 [11:30:10]current date 1720870224 [11:30:10]FM_GetShiftState [11:30:10]SAM_PROTO_GetShiftState [11:30:10]wFMCommunicate request_size=4 [11:30:10]MH_SAM_APDU [11:30:10]CAPDU: 80 13 01 00 [11:30:10]Write to MH i2c: E2 08 00 91 1C 80 13 01 00 00 00 00 00 2A [11:30:10]Write i2c OK [11:30:10]MH_I2C_Read... [11:30:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:10]Read from MH i2c: E2 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 0E 00 [11:30:10]MH_I2C_Read... [11:30:10]Read from MH i2c: E2 0E 00 91 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 24 [11:30:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:30:10]wFMCommunicate OK [11:30:10]SAM_PROTO_GetShiftState done [11:30:10]FM_GetShiftState done [11:30:10]opened in 1720828979 [11:30:10]opened+sec_in_day 1720915379 [11:30:10]quantity*price = 127413 [11:30:10]sum+1 = 127414 [11:30:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1274.00 Внесено: 1274.00 СДАЧА: 0.00 НСП 1% : 11.27 НДС 12% : 135.31 Наличными: 1274.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 159 13.07.2024 11:30 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162491 ФПД: 275028448653388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113024&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162491&fm=275028448653388&tin=02508201610067®Number=0000000000090858&sum=127400 [11:30:11]StoreToDocumentArchive [11:30:11]shift 462 fd 162491 [11:30:11]save to /storage/0462/doc_00162491 [11:30:11]save last doc name /storage/0462/doc_00162491 to /storage/kkm_last_doc_name [11:30:11]save OK [11:30:11]Clear old archive folders... [11:30:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:30:11]tlvbuf is 01A187A0 [11:30:11]SAM_PROTO_ClearQueue [11:30:11]wFMCommunicate request_size=4 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 09 00 00 [11:30:11]Write to MH i2c: E2 08 00 9E 1C 80 09 00 00 00 00 00 00 2C [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 9E 1C 00 90 00 2E [11:30:11]RAPDU: 90 00 [11:30:11]wFMCommunicate OK [11:30:11]SAM_PROTO_ClearQueue done [11:30:11]KKMCreateOFDPacket [11:30:11]OFDProtocolAddRootSTLVToBuf [11:30:11]FM_MakeSignedData [11:30:11]FM_MakeSignedData [11:30:11]SAM_PROTO_SignData [11:30:11]wFMCommunicate request_size=4 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 0D 01 02 [11:30:11]Write to MH i2c: E2 08 00 9F 1C 80 0D 01 02 00 00 00 00 34 [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [11:30:11]RAPDU: 90 00 [11:30:11]wFMCommunicate OK [11:30:11]wFMCommunicate request_size=255 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B5 F1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 F1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 34 00 00 00 00 07 04 06 00 A8 F1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 50 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7A 02 00 35 04 06 00 [11:30:11]Write to MH i2c: E2 02 01 A0 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B5 F1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 F1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 34 00 00 00 00 07 04 06 00 A8 F1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 50 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7A 02 00 35 04 06 00 00 00 7C [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:11]Read from MH i2c: E2 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 [11:30:11]MH_I2C_Read... [11:30:11]Read from MH i2c: E2 03 00 A0 1C 00 90 00 30 [11:30:11]RAPDU: 90 00 [11:30:11]wFMCommunicate OK [11:30:11]wFMCommunicate request_size=11 [11:30:11]MH_SAM_APDU [11:30:11]CAPDU: 80 0D 02 02 06 FA 23 0C FC 30 4C [11:30:11]Write to MH i2c: E2 0E 00 A1 1C 80 0D 02 02 06 00 FA 23 0C FC 30 4C 00 00 E4 [11:30:11]Write i2c OK [11:30:11]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 03 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 03 00 A1 1C 00 90 00 31 [11:30:12]RAPDU: 90 00 [11:30:12]wFMCommunicate OK [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 0D 03 02 [11:30:12]Write to MH i2c: E2 08 00 A2 1C 80 0D 03 02 00 00 00 00 39 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 0B 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 0B 00 A2 1C 00 9D 38 90 87 13 66 BC 4A 90 00 A5 [11:30:12]RAPDU: 9D 38 90 87 13 66 BC 4A 90 00 [11:30:12]wFMCommunicate OK [11:30:12]SAM_PROTO_SignData done [11:30:12]FM_MakeSignedData done [11:30:12]CreateOFDProtocolMessage [11:30:12]wFMCommunicate request_size=4 [11:30:12]MH_SAM_APDU [11:30:12]CAPDU: 80 11 00 00 [11:30:12]Write to MH i2c: E2 08 00 A3 1C 80 11 00 00 00 00 00 00 39 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:12]Read from MH i2c: E2 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 17 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: E2 17 00 A3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [11:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:30:12]wFMCommunicate OK [11:30:12]CreateOFDProtocolMessage done [11:30:12]OFDSenderStorePacket 162491 [11:30:12]StoreOFDPacket docnum=162491 [11:30:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 62 D7 08 01 37 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B5 F1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 F1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 34 00 00 00 00 07 04 06 00 A8 F1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 50 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7A 02 00 35 04 06 00 FA 23 0C FC 30 4C 9D 38 90 87 13 66 BC 4A [11:30:12]CheckFolder [11:30:12]dirname=/storage/ofd_packets [11:30:12]CheckFolder done [11:30:12]ProducePacketName [11:30:12]name=ofd_packets/00162491 [11:30:12]NVStorageSaveData ofd_packets/00162491 [11:30:12]File name is /storage/ofd_packets/00162491 [11:30:12]Write 302 bytes [11:30:12]NVStorageSaveData done [11:30:12]OFDSenderStorePacket done [11:30:12]KKMCreateOFDPacket done [11:30:12]NVStorageSaveData kkm_last_timestamp [11:30:12]File name is /storage/kkm_last_timestamp [11:30:12]Write 4 bytes [11:30:12]NVStorageSaveData done [11:30:12]ExternCall_PrintAddStr [11:30:12]wPrintStart [11:30:12]Write to MH i2c: 01 00 00 A4 1C C0 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 07 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 07 00 A4 1C 00 00 00 00 00 FF 0F D5 [11:30:12]RasterBufferAndPrint [11:30:12]line Счет N : (1)1319031 [11:30:12]line ИНН: 02508201610067 [11:30:12]line Контрольно-Кассовый Чек [11:30:12]line ПРОДАЖА [11:30:12]line ТРК (МРК, ГНК) : 21 [11:30:12]line Товар: 2710194210 [11:30:12]line ДТ(л)-К-5 [11:30:12]line 17.550 * 72.60 [11:30:12]line = 1274.13 [11:30:12]line НДС 12% НСП 1% [11:30:12]line > о реализуемом товаре [11:30:12]line ОКРУГЛЕНИЕ: -0.13 [11:30:12]line ИТОГО: 1274.00 [11:30:12]line Внесено: 1274.00 [11:30:12]line СДАЧА: 0.00 [11:30:12]line НСП 1% : 11.27 [11:30:12]line НДС 12% : 135.31 [11:30:12]line Наличными: 1274.00 [11:30:12]line Безнал.: 0.00 [11:30:12]line Место: АЗС № 140 "Партнер Нефть" [11:30:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:30:12]line СНО: Общий режим [11:30:12]line Чек 159 13.07.2024 11:30 [11:30:12]line Смена: 462 ФФД: 1.0 [11:30:12]line ЗНМ: 0300000129 [11:30:12]line РНМ: 0000000000090858 [11:30:12]line Версия ККМ: 001 [11:30:12]line ФМ: 0000000000874899 [11:30:12]line ФД: 162491 [11:30:12]line ФПД: 275028448653388 [11:30:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113024&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162491&fm=275028448653388&tin=02508201610067®Number=0000000000090858&sum=127400 [11:30:12]OFD Sender: Processing packet 162491 [packets to send 105, broken 104] [11:30:12]ProducePacketName [11:30:12]name=ofd_packets/00162491 [11:30:12]OFD Sender: To server: pG, [11:30:12]CommunicateWithHost lk.salyk.kg:30040 [11:30:12]ConnectInit lk.salyk.kg [11:30:12]written 0, free lines is 4095 [11:30:12]Connected sock=10 [11:30:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 62 D7 08 01 37 C2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 8E 44 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B5 F1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 F1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 34 00 00 00 00 07 04 06 00 A8 F1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 50 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7A 02 00 35 04 06 00 FA 23 0C FC 30 4C 9D 38 90 87 13 66 BC 4A [11:30:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 28 93 47 00 43 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BB 7A 02 00 F4 03 04 00 65 11 92 66 B6 04 01 00 00 98 C3 0F EA FD 40 C6 B1 [11:30:12]CommunicateWithHost err = 0 [11:30:12]CheckOFDResponse [11:30:12]1017 (14) - 77093643461234 [11:30:12]1041 (16) - 0000000000874899 [11:30:12]1040 (4) - 162491 [11:30:12]1012 (4) - 13.07.2024 05:32 [11:30:12]1206 (1) - 0 [11:30:12]OFD Sender: Remove packet 162491 [11:30:12]ProducePacketName [11:30:12]name=ofd_packets/00162491 [11:30:12]NVStorageDeleteData [11:30:12]Write to MH i2c: 01 00 00 CF 1C EB [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 07 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: 01 07 00 CF 1C 00 00 00 00 00 D4 0C D2 [11:30:12]RasterBufferAndPrint [11:30:12]line [11:30:12]line [11:30:12]line [11:30:12]line [11:30:12]line [11:30:12]written 0, free lines is 3294 [11:30:12]MH_Cut [11:30:12]Write to MH i2c: D1 01 00 D6 1C 01 C4 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: D1 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: D1 01 00 [11:30:12]MH_I2C_Read... [11:30:12]Read from MH i2c: D1 01 00 D6 1C 00 C3 [11:30:12]Write to MH i2c: 01 00 00 D7 1C F3 [11:30:12]Write i2c OK [11:30:12]MH_I2C_Read... [11:30:13]OFD Sender: No OFD packet to send [11:30:13]*** Cut start [11:30:13]*** Purtial cut [11:30:13]*** CUTSNS_PIN = 0 [11:30:13]*** Stage 1: CUTSNS_PIN = 1 [11:30:15]Read from MH i2c: 01 [11:30:15]MH_I2C_Read... [11:30:15]*** Stop cut motor [11:30:15]*** Cut end [11:30:15]Read from MH i2c: 01 07 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: 01 07 00 D7 1C 00 00 00 00 00 FF 0F 08 [11:30:15]process_action close_receipt done [11:30:15]requested_data is exist [11:30:15]produce_requested_data [11:30:15]requested_item fm.sn is exist - process it [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 11 00 00 [11:30:15]Write to MH i2c: E2 08 00 D8 1C 80 11 00 00 00 00 00 00 6E [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 17 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 17 00 D8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [11:30:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:30:15]wFMCommunicate OK [11:30:15]requested_item fd.num is exist - process it [11:30:15]SAM_PROTO_GetFieldsCounters [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 13 00 00 [11:30:15]Write to MH i2c: E2 08 00 D9 1C 80 13 00 00 00 00 00 00 71 [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 62 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 62 00 D9 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [11:30:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:15]wFMCommunicate OK [11:30:15]SAM_PROTO_GetFieldsCounters done [11:30:15]requested_item shift.num is exist - process it [11:30:15]requested_item shift.opened is exist - process it [11:30:15]req_shift_opened [11:30:15]FM_GetShiftState [11:30:15]SAM_PROTO_GetShiftState [11:30:15]wFMCommunicate request_size=4 [11:30:15]MH_SAM_APDU [11:30:15]CAPDU: 80 13 01 00 [11:30:15]Write to MH i2c: E2 08 00 DA 1C 80 13 01 00 00 00 00 00 73 [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:15]Read from MH i2c: E2 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 0E 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: E2 0E 00 DA 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6D [11:30:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:30:15]wFMCommunicate OK [11:30:15]SAM_PROTO_GetShiftState done [11:30:15]FM_GetShiftState done [11:30:15]req_shift_opened done [11:30:15]requested_item shift.open_date is exist - process it [11:30:15]req_shift_open_date [11:30:15]req_shift_open_date done [11:30:15]produce_requested_data done [11:30:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162491,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:30:15]process_action_free close_receipt [11:30:15]json_value_free [11:30:15]json_value_free done [11:30:15]process_json_proto returns [11:30:15]Send response to host [11:30:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162491,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:30:15]free response buf [11:30:15]execute_script done [11:30:15]execute_script returns [11:30:15]free content buf [11:30:15]Sock 9.Close socket [11:30:15]Sock 9.Thread stoped [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:47]accept exits with 8 [11:30:47]New connection [11:30:47]New thread 3067006308 created [11:30:47]Thread 3066862948 joined [11:30:47]Waiting for new connection... [11:30:47] Sock 8.Parse request [11:30:47]Sock 8.Check first char [11:30:47]Sock 8.First char is OK [11:30:47]request: POST /json_proto HTTP/1.0 [11:30:47]Method: POST [11:30:47]URL: /json_proto [11:30:47]Method is POST - this is cgi request [11:30:47]url: /json_proto [11:30:47]query_string will be loaded in cgi processing [11:30:47]execute_cgi json_proto POST (null) [11:30:47]execute_cgi path=json_proto method=POST [11:30:47]POST find Content-Length [11:30:47]Host: 172.17.39.67:8080 [11:30:47]Content-Length: 683 [11:30:47]Content-Type: application/json [11:30:47] [11:30:47]POST finish read [11:30:47]Found Content-Length = 683 [11:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:47]execute_script... [11:30:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:47]POST & json_proto [11:30:47]process_json_proto [11:30:47]json parsed OK: [11:30:47]protocol is kg_v1.0 [11:30:47]action value=close_receipt [11:30:47]process_action close_receipt [11:30:47]cmd_close_receipt [11:30:47]MH_GetDate [11:30:47]Write to MH i2c: F0 00 00 DB 1C E6 [11:30:47]Write i2c OK [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: F0 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: F0 09 00 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: F0 09 00 DB 1C 00 75 65 92 66 FA E9 8E 66 98 [11:30:47]GetLastDocTimeStamp 1720870224 [11:30:47]current date 1720870261 [11:30:47]FM_GetShiftState [11:30:47]SAM_PROTO_GetShiftState [11:30:47]wFMCommunicate request_size=4 [11:30:47]MH_SAM_APDU [11:30:47]CAPDU: 80 13 01 00 [11:30:47]Write to MH i2c: E2 08 00 DC 1C 80 13 01 00 00 00 00 00 75 [11:30:47]Write i2c OK [11:30:47]MH_I2C_Read... [11:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:47]Read from MH i2c: E2 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 0E 00 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 0E 00 DC 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6F [11:30:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:30:47]wFMCommunicate OK [11:30:47]SAM_PROTO_GetShiftState done [11:30:47]FM_GetShiftState done [11:30:47]opened in 1720828979 [11:30:47]opened+sec_in_day 1720915379 [11:30:47]quantity*price = 100046 [11:30:47]sum+1 = 100048 [11:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 160 13.07.2024 11:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162492 ФПД: 16390259771358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113101&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162492&fm=16390259771358&tin=02508201610067®Number=0000000000090858&sum=100000 [11:30:48]StoreToDocumentArchive [11:30:48]shift 462 fd 162492 [11:30:48]save to /storage/0462/doc_00162492 [11:30:48]save last doc name /storage/0462/doc_00162492 to /storage/kkm_last_doc_name [11:30:48]save OK [11:30:48]Clear old archive folders... [11:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:48]tlvbuf is 01C12830 [11:30:48]SAM_PROTO_ClearQueue [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 09 00 00 [11:30:48]Write to MH i2c: E2 08 00 E9 1C 80 09 00 00 00 00 00 00 77 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 E9 1C 00 90 00 79 [11:30:48]RAPDU: 90 00 [11:30:48]wFMCommunicate OK [11:30:48]SAM_PROTO_ClearQueue done [11:30:48]KKMCreateOFDPacket [11:30:48]OFDProtocolAddRootSTLVToBuf [11:30:48]FM_MakeSignedData [11:30:48]FM_MakeSignedData [11:30:48]SAM_PROTO_SignData [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 0D 01 02 [11:30:48]Write to MH i2c: E2 08 00 EA 1C 80 0D 01 02 00 00 00 00 7F [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 EA 1C 00 90 00 7A [11:30:48]RAPDU: 90 00 [11:30:48]wFMCommunicate OK [11:30:48]wFMCommunicate request_size=255 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 75 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7A 02 00 35 04 06 00 0E [11:30:48]Write to MH i2c: E2 02 01 EB 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 75 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7A 02 00 35 04 06 00 0E 00 00 12 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 EB 1C 00 90 00 7B [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=10 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 02 02 05 E8 27 9C 87 DE [11:30:49]Write to MH i2c: E2 0D 00 EC 1C 80 0D 02 02 05 00 E8 27 9C 87 DE 00 00 9C [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 EC 1C 00 90 00 7C [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 03 02 [11:30:49]Write to MH i2c: E2 08 00 ED 1C 80 0D 03 02 00 00 00 00 84 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0B 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0B 00 ED 1C 00 09 B4 E8 88 93 B8 68 12 90 00 77 [11:30:49]RAPDU: 09 B4 E8 88 93 B8 68 12 90 00 [11:30:49]wFMCommunicate OK [11:30:49]SAM_PROTO_SignData done [11:30:49]FM_MakeSignedData done [11:30:49]CreateOFDProtocolMessage [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 11 00 00 [11:30:49]Write to MH i2c: E2 08 00 EE 1C 80 11 00 00 00 00 00 00 84 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 EE 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E4 [11:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:30:49]wFMCommunicate OK [11:30:49]CreateOFDProtocolMessage done [11:30:49]OFDSenderStorePacket 162492 [11:30:49]StoreOFDPacket docnum=162492 [11:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8F 54 07 01 36 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 75 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7A 02 00 35 04 06 00 0E E8 27 9C 87 DE 09 B4 E8 88 93 B8 68 12 [11:30:49]CheckFolder [11:30:49]dirname=/storage/ofd_packets [11:30:49]CheckFolder done [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00162492 [11:30:49]NVStorageSaveData ofd_packets/00162492 [11:30:49]File name is /storage/ofd_packets/00162492 [11:30:49]Write 301 bytes [11:30:49]NVStorageSaveData done [11:30:49]OFDSenderStorePacket done [11:30:49]KKMCreateOFDPacket done [11:30:49]NVStorageSaveData kkm_last_timestamp [11:30:49]File name is /storage/kkm_last_timestamp [11:30:49]Write 4 bytes [11:30:49]NVStorageSaveData done [11:30:49]ExternCall_PrintAddStr [11:30:49]wPrintStart [11:30:49]Write to MH i2c: 01 00 00 EF 1C 0B [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 EF 1C 00 00 00 00 00 FF 0F 20 [11:30:49]RasterBufferAndPrint [11:30:49]line Счет N : (1)1319032 [11:30:49]line ИНН: 02508201610067 [11:30:49]line Контрольно-Кассовый Чек [11:30:49]line ПРОДАЖА [11:30:49]line ТРК (МРК, ГНК) : 43 [11:30:49]line Товар: 2710124130 [11:30:49]line Аи-92-К-5 [11:30:49]line 15.090 * 66.30 [11:30:49]line = 1000.47 [11:30:49]line НДС 12% НСП 1% [11:30:49]line > о реализуемом товаре [11:30:49]line ОКРУГЛЕНИЕ: -0.47 [11:30:49]line ИТОГО: 1000.00 [11:30:49]line Внесено: 1000.00 [11:30:49]line СДАЧА: 0.00 [11:30:49]line НСП 1% : 8.85 [11:30:49]line НДС 12% : 106.24 [11:30:49]line Наличными: 1000.00 [11:30:49]line Безнал.: 0.00 [11:30:49]line Место: АЗС № 140 "Партнер Нефть" [11:30:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:30:49]line СНО: Общий режим [11:30:49]line Чек 160 13.07.2024 11:31 [11:30:49]line Смена: 462 ФФД: 1.0 [11:30:49]line ЗНМ: 0300000129 [11:30:49]line РНМ: 0000000000090858 [11:30:49]line Версия ККМ: 001 [11:30:49]line ФМ: 0000000000874899 [11:30:49]line ФД: 162492 [11:30:49]line ФПД: 16390259771358 [11:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113101&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162492&fm=16390259771358&tin=02508201610067®Number=0000000000090858&sum=100000 [11:30:49]OFD Sender: Processing packet 162492 [packets to send 105, broken 104] [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00162492 [11:30:49]OFD Sender: To server: pG, [11:30:49]CommunicateWithHost lk.salyk.kg:30040 [11:30:49]ConnectInit lk.salyk.kg [11:30:49]written 0, free lines is 4095 [11:30:49]Connected sock=10 [11:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8F 54 07 01 36 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A0 00 00 00 F4 03 04 00 75 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7A 02 00 35 04 06 00 0E E8 27 9C 87 DE 09 B4 E8 88 93 B8 68 12 [11:30:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3C 60 47 00 13 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BC 7A 02 00 F4 03 04 00 8A 11 92 66 B6 04 01 00 00 CD 0F 2B C3 A9 8D 9F 90 [11:30:49]CommunicateWithHost err = 0 [11:30:49]CheckOFDResponse [11:30:49]1017 (14) - 77093643461234 [11:30:49]1041 (16) - 0000000000874899 [11:30:49]1040 (4) - 162492 [11:30:49]1012 (4) - 13.07.2024 05:32 [11:30:49]1206 (1) - 0 [11:30:49]OFD Sender: Remove packet 162492 [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00162492 [11:30:49]NVStorageDeleteData [11:30:50]Write to MH i2c: 01 00 00 1A 1D 37 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 07 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 07 00 1A 1D 00 00 00 00 00 D7 0C 21 [11:30:50]RasterBufferAndPrint [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]written 0, free lines is 3296 [11:30:50]MH_Cut [11:30:50]Write to MH i2c: D1 01 00 21 1D 01 10 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 01 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 01 00 21 1D 00 0F [11:30:50]Write to MH i2c: 01 00 00 22 1D 3F [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]OFD Sender: No OFD packet to send [11:30:50]*** Cut start [11:30:50]*** Purtial cut [11:30:50]*** Stage 1: CUTSNS_PIN = 1 [11:30:51]Read from MH i2c: 01 [11:30:51]MH_I2C_Read... [11:30:51]*** Stop cut motor [11:30:51]*** Cut end [11:30:51]Read from MH i2c: 01 07 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: 01 07 00 22 1D 00 00 00 00 00 FF 0F 54 [11:30:51]process_action close_receipt done [11:30:51]requested_data is exist [11:30:51]produce_requested_data [11:30:51]requested_item fm.sn is exist - process it [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 11 00 00 [11:30:51]Write to MH i2c: E2 08 00 23 1D 80 11 00 00 00 00 00 00 BA [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 17 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 17 00 23 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [11:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:30:51]wFMCommunicate OK [11:30:51]requested_item fd.num is exist - process it [11:30:51]SAM_PROTO_GetFieldsCounters [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 13 00 00 [11:30:51]Write to MH i2c: E2 08 00 24 1D 80 13 00 00 00 00 00 00 BD [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 62 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 62 00 24 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [11:30:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:51]wFMCommunicate OK [11:30:51]SAM_PROTO_GetFieldsCounters done [11:30:51]requested_item shift.num is exist - process it [11:30:51]requested_item shift.opened is exist - process it [11:30:51]req_shift_opened [11:30:51]FM_GetShiftState [11:30:51]SAM_PROTO_GetShiftState [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 13 01 00 [11:30:51]Write to MH i2c: E2 08 00 25 1D 80 13 01 00 00 00 00 00 BF [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 0E 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 0E 00 25 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B9 [11:30:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:30:51]wFMCommunicate OK [11:30:51]SAM_PROTO_GetShiftState done [11:30:51]FM_GetShiftState done [11:30:51]req_shift_opened done [11:30:51]requested_item shift.open_date is exist - process it [11:30:51]req_shift_open_date [11:30:51]req_shift_open_date done [11:30:51]produce_requested_data done [11:30:51]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162492,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:30:51]process_action_free close_receipt [11:30:51]json_value_free [11:30:51]json_value_free done [11:30:51]process_json_proto returns [11:30:51]Send response to host [11:30:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162492,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:30:51]free response buf [11:30:51]execute_script done [11:30:51]execute_script returns [11:30:51]free content buf [11:30:51]Sock 8.Close socket [11:30:51]Sock 8.Thread stoped [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:05]OFD Sender: No OFD packet to send [11:31:10]OFD Sender: No OFD packet to send [11:31:15]OFD Sender: No OFD packet to send [11:31:20]OFD Sender: No OFD packet to send [11:31:25]OFD Sender: No OFD packet to send [11:31:30]OFD Sender: No OFD packet to send [11:31:35]OFD Sender: No OFD packet to send [11:31:40]OFD Sender: No OFD packet to send [11:31:45]OFD Sender: No OFD packet to send [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:31:59]accept exits with 9 [11:31:59]New connection [11:31:59]New thread 3066862948 created [11:31:59]Thread 3067006308 joined [11:31:59]Waiting for new connection... [11:31:59] Sock 9.Parse request [11:31:59]Sock 9.Check first char [11:31:59]Sock 9.First char is OK [11:31:59]request: POST /json_proto HTTP/1.0 [11:31:59]Method: POST [11:31:59]URL: /json_proto [11:31:59]Method is POST - this is cgi request [11:31:59]url: /json_proto [11:31:59]query_string will be loaded in cgi processing [11:31:59]execute_cgi json_proto POST (null) [11:31:59]execute_cgi path=json_proto method=POST [11:31:59]POST find Content-Length [11:31:59]Host: 172.17.39.67:8080 [11:31:59]Content-Length: 683 [11:31:59]Content-Type: application/json [11:31:59] [11:31:59]POST finish read [11:31:59]Found Content-Length = 683 [11:31:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:59]execute_script... [11:31: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)1319033", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:59]POST & json_proto [11:31:59]process_json_proto [11:31:59]json parsed OK: [11:31:59]protocol is kg_v1.0 [11:31:59]action value=close_receipt [11:31:59]process_action close_receipt [11:31:59]cmd_close_receipt [11:31:59]MH_GetDate [11:31:59]Write to MH i2c: F0 00 00 26 1D 32 [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: F0 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: F0 09 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: F0 09 00 26 1D 00 BD 65 92 66 FA E9 8E 66 2C [11:31:59]GetLastDocTimeStamp 1720870261 [11:31:59]current date 1720870333 [11:31:59]FM_GetShiftState [11:31:59]SAM_PROTO_GetShiftState [11:31:59]wFMCommunicate request_size=4 [11:31:59]MH_SAM_APDU [11:31:59]CAPDU: 80 13 01 00 [11:31:59]Write to MH i2c: E2 08 00 27 1D 80 13 01 00 00 00 00 00 C1 [11:31:59]Write i2c OK [11:31:59]MH_I2C_Read... [11:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:59]Read from MH i2c: E2 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 0E 00 [11:31:59]MH_I2C_Read... [11:31:59]Read from MH i2c: E2 0E 00 27 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BB [11:31:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:31:59]wFMCommunicate OK [11:31:59]SAM_PROTO_GetShiftState done [11:31:59]FM_GetShiftState done [11:31:59]opened in 1720828979 [11:31:59]opened+sec_in_day 1720915379 [11:31:59]quantity*price = 40002 [11:31:59]sum+1 = 40004 [11:31:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 161 13.07.2024 11:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162493 ФПД: 91099366840129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162493&fm=91099366840129&tin=02508201610067®Number=0000000000090858&sum=40000 [11:32:00]StoreToDocumentArchive [11:32:00]shift 462 fd 162493 [11:32:00]save to /storage/0462/doc_00162493 [11:32:00]save last doc name /storage/0462/doc_00162493 to /storage/kkm_last_doc_name [11:32:00]save OK [11:32:00]Clear old archive folders... [11:32:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:32:00]tlvbuf is 017F4B90 [11:32:00]SAM_PROTO_ClearQueue [11:32:00]wFMCommunicate request_size=4 [11:32:00]MH_SAM_APDU [11:32:00]CAPDU: 80 09 00 00 [11:32:00]Write to MH i2c: E2 08 00 34 1D 80 09 00 00 00 00 00 00 C3 [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:00]Read from MH i2c: E2 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 03 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 03 00 34 1D 00 90 00 C5 [11:32:00]RAPDU: 90 00 [11:32:00]wFMCommunicate OK [11:32:00]SAM_PROTO_ClearQueue done [11:32:00]KKMCreateOFDPacket [11:32:00]OFDProtocolAddRootSTLVToBuf [11:32:00]FM_MakeSignedData [11:32:00]FM_MakeSignedData [11:32:00]SAM_PROTO_SignData [11:32:00]wFMCommunicate request_size=4 [11:32:00]MH_SAM_APDU [11:32:00]CAPDU: 80 0D 01 02 [11:32:00]Write to MH i2c: E2 08 00 35 1D 80 0D 01 02 00 00 00 00 CB [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:00]Read from MH i2c: E2 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 03 00 [11:32:00]MH_I2C_Read... [11:32:00]Read from MH i2c: E2 03 00 35 1D 00 90 00 C6 [11:32:00]RAPDU: 90 00 [11:32:00]wFMCommunicate OK [11:32:00]wFMCommunicate request_size=255 [11:32:00]MH_SAM_APDU [11:32:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 BD 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7A 02 00 35 04 06 00 [11:32:00]Write to MH i2c: E2 02 01 36 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 BD 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7A 02 00 35 04 06 00 00 00 9A [11:32:00]Write i2c OK [11:32:00]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 03 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 03 00 36 1D 00 90 00 C7 [11:32:01]RAPDU: 90 00 [11:32:01]wFMCommunicate OK [11:32:01]wFMCommunicate request_size=11 [11:32:01]MH_SAM_APDU [11:32:01]CAPDU: 80 0D 02 02 06 52 DA B9 66 57 41 [11:32:01]Write to MH i2c: E2 0E 00 37 1D 80 0D 02 02 06 00 52 DA B9 66 57 41 00 00 BD [11:32:01]Write i2c OK [11:32:01]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 03 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 03 00 37 1D 00 90 00 C8 [11:32:01]RAPDU: 90 00 [11:32:01]wFMCommunicate OK [11:32:01]wFMCommunicate request_size=4 [11:32:01]MH_SAM_APDU [11:32:01]CAPDU: 80 0D 03 02 [11:32:01]Write to MH i2c: E2 08 00 38 1D 80 0D 03 02 00 00 00 00 D0 [11:32:01]Write i2c OK [11:32:01]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 0B 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 0B 00 38 1D 00 8B 97 4A 55 AD 91 AA B8 90 00 32 [11:32:01]RAPDU: 8B 97 4A 55 AD 91 AA B8 90 00 [11:32:01]wFMCommunicate OK [11:32:01]SAM_PROTO_SignData done [11:32:01]FM_MakeSignedData done [11:32:01]CreateOFDProtocolMessage [11:32:01]wFMCommunicate request_size=4 [11:32:01]MH_SAM_APDU [11:32:01]CAPDU: 80 11 00 00 [11:32:01]Write to MH i2c: E2 08 00 39 1D 80 11 00 00 00 00 00 00 D0 [11:32:01]Write i2c OK [11:32:01]MH_I2C_Read... [11:32:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:01]Read from MH i2c: E2 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 17 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: E2 17 00 39 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [11:32:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:32:01]wFMCommunicate OK [11:32:01]CreateOFDProtocolMessage done [11:32:01]OFDSenderStorePacket 162493 [11:32:01]StoreOFDPacket docnum=162493 [11:32:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E2 57 08 01 79 CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 BD 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7A 02 00 35 04 06 00 52 DA B9 66 57 41 8B 97 4A 55 AD 91 AA B8 [11:32:01]CheckFolder [11:32:01]dirname=/storage/ofd_packets [11:32:01]CheckFolder done [11:32:01]ProducePacketName [11:32:01]name=ofd_packets/00162493 [11:32:01]NVStorageSaveData ofd_packets/00162493 [11:32:01]File name is /storage/ofd_packets/00162493 [11:32:01]Write 302 bytes [11:32:01]NVStorageSaveData done [11:32:01]OFDSenderStorePacket done [11:32:01]KKMCreateOFDPacket done [11:32:01]NVStorageSaveData kkm_last_timestamp [11:32:01]File name is /storage/kkm_last_timestamp [11:32:01]Write 4 bytes [11:32:01]NVStorageSaveData done [11:32:01]ExternCall_PrintAddStr [11:32:01]wPrintStart [11:32:01]Write to MH i2c: 01 00 00 3A 1D 57 [11:32:01]Write i2c OK [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: 01 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: 01 07 00 [11:32:01]MH_I2C_Read... [11:32:01]Read from MH i2c: 01 07 00 3A 1D 00 00 00 00 00 FF 0F 6C [11:32:01]RasterBufferAndPrint [11:32:01]line Счет N : (1)1319033 [11:32:01]line ИНН: 02508201610067 [11:32:01]line Контрольно-Кассовый Чек [11:32:01]line ПРОДАЖА [11:32:01]line ТРК (МРК, ГНК) : 31 [11:32:01]line Товар: 2710194210 [11:32:01]line ДТ(л)-К-5 [11:32:01]line 5.510 * 72.60 [11:32:01]line = 400.03 [11:32:01]line НДС 12% НСП 1% [11:32:01]line > о реализуемом товаре [11:32:01]line ОКРУГЛЕНИЕ: -0.03 [11:32:01]line ИТОГО: 400.00 [11:32:01]line Внесено: 400.00 [11:32:01]line СДАЧА: 0.00 [11:32:01]line НСП 1% : 3.54 [11:32:01]line НДС 12% : 42.48 [11:32:01]line Наличными: 400.00 [11:32:01]line Безнал.: 0.00 [11:32:01]line Место: АЗС № 140 "Партнер Нефть" [11:32:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:32:01]line СНО: Общий режим [11:32:01]line Чек 161 13.07.2024 11:32 [11:32:01]line Смена: 462 ФФД: 1.0 [11:32:01]line ЗНМ: 0300000129 [11:32:01]line РНМ: 0000000000090858 [11:32:01]line Версия ККМ: 001 [11:32:01]line ФМ: 0000000000874899 [11:32:01]line ФД: 162493 [11:32:01]line ФПД: 91099366840129 [11:32:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113213&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162493&fm=91099366840129&tin=02508201610067®Number=0000000000090858&sum=40000 [11:32:01]OFD Sender: Processing packet 162493 [packets to send 105, broken 104] [11:32:01]ProducePacketName [11:32:01]name=ofd_packets/00162493 [11:32:01]OFD Sender: To server: pG, [11:32:01]CommunicateWithHost lk.salyk.kg:30040 [11:32:01]ConnectInit lk.salyk.kg [11:32:01]written 0, free lines is 4095 [11:32:01]Connected sock=10 [11:32:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E2 57 08 01 79 CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 BD 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7A 02 00 35 04 06 00 52 DA B9 66 57 41 8B 97 4A 55 AD 91 AA B8 [11:32:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EC 45 47 00 AE 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BD 7A 02 00 F4 03 04 00 D2 11 92 66 B6 04 01 00 00 9E 03 CF 51 39 B2 05 EA [11:32:01]CommunicateWithHost err = 0 [11:32:01]CheckOFDResponse [11:32:01]1017 (14) - 77093643461234 [11:32:01]1041 (16) - 0000000000874899 [11:32:01]1040 (4) - 162493 [11:32:01]1012 (4) - 13.07.2024 05:34 [11:32:01]1206 (1) - 0 [11:32:01]OFD Sender: Remove packet 162493 [11:32:01]ProducePacketName [11:32:01]name=ofd_packets/00162493 [11:32:01]NVStorageDeleteData [11:32:02]Write to MH i2c: 01 00 00 65 1D 82 [11:32:02]Write i2c OK [11:32:02]MH_I2C_Read... [11:32:02]Read from MH i2c: 01 [11:32:02]MH_I2C_Read... [11:32:02]Read from MH i2c: 01 07 00 [11:32:02]MH_I2C_Read... [11:32:02]Read from MH i2c: 01 07 00 65 1D 00 00 00 00 00 D6 0C 6B [11:32:02]RasterBufferAndPrint [11:32:02]line [11:32:02]line [11:32:02]line [11:32:02]line [11:32:02]line [11:32:02]written 0, free lines is 3293 [11:32:02]MH_Cut [11:32:02]Write to MH i2c: D1 01 00 6C 1D 01 5B [11:32:02]Write i2c OK [11:32:02]MH_I2C_Read... [11:32:02]Read from MH i2c: D1 [11:32:02]MH_I2C_Read... [11:32:02]Read from MH i2c: D1 01 00 [11:32:02]MH_I2C_Read... [11:32:02]Read from MH i2c: D1 01 00 6C 1D 00 5A [11:32:02]Write to MH i2c: 01 00 00 6D 1D 8A [11:32:02]Write i2c OK [11:32:02]MH_I2C_Read... [11:32:02]OFD Sender: No OFD packet to send [11:32:02]*** Cut start [11:32:02]*** Purtial cut [11:32:02]*** CUTSNS_PIN = 0 [11:32:03]*** Stage 1: CUTSNS_PIN = 1 [11:32:04]Read from MH i2c: 01 [11:32:04]MH_I2C_Read... [11:32:04]*** Stop cut motor [11:32:04]*** Cut end [11:32:04]Read from MH i2c: 01 07 00 [11:32:04]MH_I2C_Read... [11:32:04]Read from MH i2c: 01 07 00 6D 1D 00 00 00 00 00 FF 0F 9F [11:32:04]process_action close_receipt done [11:32:04]requested_data is exist [11:32:04]produce_requested_data [11:32:04]requested_item fm.sn is exist - process it [11:32:04]wFMCommunicate request_size=4 [11:32:04]MH_SAM_APDU [11:32:04]CAPDU: 80 11 00 00 [11:32:04]Write to MH i2c: E2 08 00 6E 1D 80 11 00 00 00 00 00 00 05 [11:32:04]Write i2c OK [11:32:04]MH_I2C_Read... [11:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:04]Read from MH i2c: E2 [11:32:04]MH_I2C_Read... [11:32:04]Read from MH i2c: E2 17 00 [11:32:04]MH_I2C_Read... [11:32:04]Read from MH i2c: E2 17 00 6E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 65 [11:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:32:04]wFMCommunicate OK [11:32:04]requested_item fd.num is exist - process it [11:32:04]SAM_PROTO_GetFieldsCounters [11:32:04]wFMCommunicate request_size=4 [11:32:04]MH_SAM_APDU [11:32:04]CAPDU: 80 13 00 00 [11:32:04]Write to MH i2c: E2 08 00 6F 1D 80 13 00 00 00 00 00 00 08 [11:32:04]Write i2c OK [11:32:04]MH_I2C_Read... [11:32:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:05]Read from MH i2c: E2 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 62 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 62 00 6F 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [11: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:05]wFMCommunicate OK [11:32:05]SAM_PROTO_GetFieldsCounters done [11:32:05]requested_item shift.num is exist - process it [11:32:05]requested_item shift.opened is exist - process it [11:32:05]req_shift_opened [11:32:05]FM_GetShiftState [11:32:05]SAM_PROTO_GetShiftState [11:32:05]wFMCommunicate request_size=4 [11:32:05]MH_SAM_APDU [11:32:05]CAPDU: 80 13 01 00 [11:32:05]Write to MH i2c: E2 08 00 70 1D 80 13 01 00 00 00 00 00 0A [11:32:05]Write i2c OK [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 [11:32:05]MH_I2C_Read... [11:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:05]Read from MH i2c: E2 0E 00 [11:32:05]MH_I2C_Read... [11:32:05]Read from MH i2c: E2 0E 00 70 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 04 [11:32:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:32:05]wFMCommunicate OK [11:32:05]SAM_PROTO_GetShiftState done [11:32:05]FM_GetShiftState done [11:32:05]req_shift_opened done [11:32:05]requested_item shift.open_date is exist - process it [11:32:05]req_shift_open_date [11:32:05]req_shift_open_date done [11:32:05]produce_requested_data done [11:32:05]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162493,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:32:05]process_action_free close_receipt [11:32:05]json_value_free [11:32:05]json_value_free done [11:32:05]process_json_proto returns [11:32:05]Send response to host [11:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162493,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:32:05]free response buf [11:32:05]execute_script done [11:32:05]execute_script returns [11:32:05]free content buf [11:32:05]Sock 9.Close socket [11:32:05]Sock 9.Thread stoped [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:40]accept exits with 8 [11:32:40]New connection [11:32:40]New thread 3067006308 created [11:32:40]Thread 3066862948 joined [11:32:40]Waiting for new connection... [11:32:40] Sock 8.Parse request [11:32:40]Sock 8.Check first char [11:32:40]Sock 8.First char is OK [11:32:40]request: POST /json_proto HTTP/1.0 [11:32:40]Method: POST [11:32:40]URL: /json_proto [11:32:40]Method is POST - this is cgi request [11:32:40]url: /json_proto [11:32:40]query_string will be loaded in cgi processing [11:32:40]execute_cgi json_proto POST (null) [11:32:40]execute_cgi path=json_proto method=POST [11:32:40]POST find Content-Length [11:32:40]Host: 172.17.39.67:8080 [11:32:40]Content-Length: 688 [11:32:40]Content-Type: application/json [11:32:40] [11:32:40]POST finish read [11:32:40]Found Content-Length = 688 [11:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:32:40]execute_script... [11: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)1319034", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:32:40]POST & json_proto [11:32:40]process_json_proto [11:32:40]json parsed OK: [11:32:40]protocol is kg_v1.0 [11:32:40]action value=close_receipt [11:32:40]process_action close_receipt [11:32:40]cmd_close_receipt [11:32:40]MH_GetDate [11:32:40]Write to MH i2c: F0 00 00 71 1D 7D [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: F0 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: F0 09 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: F0 09 00 71 1D 00 E6 65 92 66 FA E9 8E 66 A0 [11:32:40]GetLastDocTimeStamp 1720870333 [11:32:40]current date 1720870374 [11:32:40]FM_GetShiftState [11:32:40]SAM_PROTO_GetShiftState [11:32:40]wFMCommunicate request_size=4 [11:32:40]MH_SAM_APDU [11:32:40]CAPDU: 80 13 01 00 [11:32:40]Write to MH i2c: E2 08 00 72 1D 80 13 01 00 00 00 00 00 0C [11:32:40]Write i2c OK [11:32:40]MH_I2C_Read... [11:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:40]Read from MH i2c: E2 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 0E 00 [11:32:40]MH_I2C_Read... [11:32:40]Read from MH i2c: E2 0E 00 72 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 06 [11:32:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:32:40]wFMCommunicate OK [11:32:40]SAM_PROTO_GetShiftState done [11:32:40]FM_GetShiftState done [11:32:40]opened in 1720828979 [11:32:40]opened+sec_in_day 1720915379 [11:32:40]quantity*price = 100042 [11:32:40]sum+1 = 100044 [11:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 162 13.07.2024 11:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162494 ФПД: 153575688113176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162494&fm=153575688113176&tin=02508201610067®Number=0000000000090858&sum=100000 [11:32:41]StoreToDocumentArchive [11:32:41]shift 462 fd 162494 [11:32:41]save to /storage/0462/doc_00162494 [11:32:41]save last doc name /storage/0462/doc_00162494 to /storage/kkm_last_doc_name [11:32:41]save OK [11:32:41]Clear old archive folders... [11:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:32:41]tlvbuf is 01D147E0 [11:32:41]SAM_PROTO_ClearQueue [11:32:41]wFMCommunicate request_size=4 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 09 00 00 [11:32:41]Write to MH i2c: E2 08 00 7F 1D 80 09 00 00 00 00 00 00 0E [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 03 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 03 00 7F 1D 00 90 00 10 [11:32:41]RAPDU: 90 00 [11:32:41]wFMCommunicate OK [11:32:41]SAM_PROTO_ClearQueue done [11:32:41]KKMCreateOFDPacket [11:32:41]OFDProtocolAddRootSTLVToBuf [11:32:41]FM_MakeSignedData [11:32:41]FM_MakeSignedData [11:32:41]SAM_PROTO_SignData [11:32:41]wFMCommunicate request_size=4 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 0D 01 02 [11:32:41]Write to MH i2c: E2 08 00 80 1D 80 0D 01 02 00 00 00 00 16 [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 03 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 03 00 80 1D 00 90 00 11 [11:32:41]RAPDU: 90 00 [11:32:41]wFMCommunicate OK [11:32:41]wFMCommunicate request_size=255 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A2 00 00 00 F4 03 04 00 E6 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7A 02 00 35 04 06 00 [11:32:41]Write to MH i2c: E2 02 01 81 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A2 00 00 00 F4 03 04 00 E6 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7A 02 00 35 04 06 00 00 00 9D [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 03 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 03 00 81 1D 00 90 00 12 [11:32:41]RAPDU: 90 00 [11:32:41]wFMCommunicate OK [11:32:41]wFMCommunicate request_size=11 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 0D 02 02 06 8B AD 20 56 0C 18 [11:32:41]Write to MH i2c: E2 0E 00 82 1D 80 0D 02 02 06 00 8B AD 20 56 0C 18 00 00 F7 [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 03 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 03 00 82 1D 00 90 00 13 [11:32:41]RAPDU: 90 00 [11:32:41]wFMCommunicate OK [11:32:41]wFMCommunicate request_size=4 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 0D 03 02 [11:32:41]Write to MH i2c: E2 08 00 83 1D 80 0D 03 02 00 00 00 00 1B [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 0B 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 0B 00 83 1D 00 81 F3 2B 8B F0 37 0D 68 90 00 E2 [11:32:41]RAPDU: 81 F3 2B 8B F0 37 0D 68 90 00 [11:32:41]wFMCommunicate OK [11:32:41]SAM_PROTO_SignData done [11:32:41]FM_MakeSignedData done [11:32:41]CreateOFDProtocolMessage [11:32:41]wFMCommunicate request_size=4 [11:32:41]MH_SAM_APDU [11:32:41]CAPDU: 80 11 00 00 [11:32:41]Write to MH i2c: E2 08 00 84 1D 80 11 00 00 00 00 00 00 1B [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:41]Read from MH i2c: E2 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 17 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: E2 17 00 84 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [11:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:32:41]wFMCommunicate OK [11:32:41]CreateOFDProtocolMessage done [11:32:41]OFDSenderStorePacket 162494 [11:32:41]StoreOFDPacket docnum=162494 [11:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FC AB 08 01 EF 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A2 00 00 00 F4 03 04 00 E6 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7A 02 00 35 04 06 00 8B AD 20 56 0C 18 81 F3 2B 8B F0 37 0D 68 [11:32:41]CheckFolder [11:32:41]dirname=/storage/ofd_packets [11:32:41]CheckFolder done [11:32:41]ProducePacketName [11:32:41]name=ofd_packets/00162494 [11:32:41]NVStorageSaveData ofd_packets/00162494 [11:32:41]File name is /storage/ofd_packets/00162494 [11:32:41]Write 302 bytes [11:32:41]NVStorageSaveData done [11:32:41]OFDSenderStorePacket done [11:32:41]KKMCreateOFDPacket done [11:32:41]NVStorageSaveData kkm_last_timestamp [11:32:41]File name is /storage/kkm_last_timestamp [11:32:41]Write 4 bytes [11:32:41]NVStorageSaveData done [11:32:41]ExternCall_PrintAddStr [11:32:41]wPrintStart [11:32:41]Write to MH i2c: 01 00 00 85 1D A2 [11:32:41]Write i2c OK [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 07 00 [11:32:41]MH_I2C_Read... [11:32:41]Read from MH i2c: 01 07 00 85 1D 00 00 00 00 00 FF 0F B7 [11:32:41]RasterBufferAndPrint [11:32:41]line Счет N : (1)1319034 [11:32:41]line ИНН: 02508201610067 [11:32:41]line Контрольно-Кассовый Чек [11:32:41]line ПРОДАЖА [11:32:41]line ТРК (МРК, ГНК) : 21 [11:32:41]line Товар: 2710194210 [11:32:41]line ДТ(л)-К-5 [11:32:41]line 13.780 * 72.60 [11:32:41]line = 1000.43 [11:32:41]line НДС 12% НСП 1% [11:32:41]line > о реализуемом товаре [11:32:41]line ОКРУГЛЕНИЕ: -0.43 [11:32:41]line ИТОГО: 1000.00 [11:32:41]line Внесено: 1000.00 [11:32:41]line СДАЧА: 0.00 [11:32:41]line НСП 1% : 8.85 [11:32:41]line НДС 12% : 106.24 [11:32:41]line Наличными: 1000.00 [11:32:41]line Безнал.: 0.00 [11:32:41]line Место: АЗС № 140 "Партнер Нефть" [11:32:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:32:41]line СНО: Общий режим [11:32:41]line Чек 162 13.07.2024 11:32 [11:32:41]line Смена: 462 ФФД: 1.0 [11:32:41]line ЗНМ: 0300000129 [11:32:41]line РНМ: 0000000000090858 [11:32:41]line Версия ККМ: 001 [11:32:41]line ФМ: 0000000000874899 [11:32:41]line ФД: 162494 [11:32:41]line ФПД: 153575688113176 [11:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162494&fm=153575688113176&tin=02508201610067®Number=0000000000090858&sum=100000 [11:32:42]OFD Sender: Processing packet 162494 [packets to send 105, broken 104] [11:32:42]ProducePacketName [11:32:42]name=ofd_packets/00162494 [11:32:42]OFD Sender: To server: pG, [11:32:42]CommunicateWithHost lk.salyk.kg:30040 [11:32:42]ConnectInit lk.salyk.kg [11:32:42]written 0, free lines is 4095 [11:32:42]Connected sock=10 [11: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 34 38 39 39 10 01 00 00 FC AB 08 01 EF 9D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 A2 00 00 00 F4 03 04 00 E6 65 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7A 02 00 35 04 06 00 8B AD 20 56 0C 18 81 F3 2B 8B F0 37 0D 68 [11:32:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7A 3B 47 00 3E 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BE 7A 02 00 F4 03 04 00 FA 11 92 66 B6 04 01 00 00 01 FC 9E C7 CC 12 0A 85 [11:32:42]CommunicateWithHost err = 0 [11:32:42]CheckOFDResponse [11:32:42]1017 (14) - 77093643461234 [11:32:42]1041 (16) - 0000000000874899 [11:32:42]1040 (4) - 162494 [11:32:42]1012 (4) - 13.07.2024 05:34 [11:32:42]1206 (1) - 0 [11:32:42]OFD Sender: Remove packet 162494 [11:32:42]ProducePacketName [11:32:42]name=ofd_packets/00162494 [11:32:42]NVStorageDeleteData [11:32:42]Write to MH i2c: 01 00 00 B0 1D CD [11:32:42]Write i2c OK [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: 01 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: 01 07 00 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: 01 07 00 B0 1D 00 00 00 00 00 D3 0C B3 [11:32:42]RasterBufferAndPrint [11:32:42]line [11:32:42]line [11:32:42]line [11:32:42]line [11:32:42]line [11:32:42]written 0, free lines is 3289 [11:32:42]MH_Cut [11:32:42]Write to MH i2c: D1 01 00 B7 1D 01 A6 [11:32:42]Write i2c OK [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: D1 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: D1 01 00 [11:32:42]MH_I2C_Read... [11:32:42]Read from MH i2c: D1 01 00 B7 1D 00 A5 [11:32:42]Write to MH i2c: 01 00 00 B8 1D D5 [11:32:42]Write i2c OK [11:32:42]MH_I2C_Read... [11:32:42]OFD Sender: No OFD packet to send [11:32:43]*** Cut start [11:32:43]*** Purtial cut [11:32:43]*** Stage 1: CUTSNS_PIN = 1 [11:32:43]Read from MH i2c: 01 [11:32:43]MH_I2C_Read... [11:32:43]*** Stop cut motor [11:32:43]*** Cut end [11:32:43]Read from MH i2c: 01 07 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: 01 07 00 B8 1D 00 00 00 00 00 FF 0F EA [11:32:43]process_action close_receipt done [11:32:43]requested_data is exist [11:32:43]produce_requested_data [11:32:43]requested_item fm.sn is exist - process it [11:32:43]wFMCommunicate request_size=4 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 11 00 00 [11:32:43]Write to MH i2c: E2 08 00 B9 1D 80 11 00 00 00 00 00 00 50 [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 17 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 17 00 B9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B0 [11:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:32:43]wFMCommunicate OK [11:32:43]requested_item fd.num is exist - process it [11:32:43]SAM_PROTO_GetFieldsCounters [11:32:43]wFMCommunicate request_size=4 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 13 00 00 [11:32:43]Write to MH i2c: E2 08 00 BA 1D 80 13 00 00 00 00 00 00 53 [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 62 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 62 00 BA 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [11:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:43]wFMCommunicate OK [11:32:43]SAM_PROTO_GetFieldsCounters done [11:32:43]requested_item shift.num is exist - process it [11:32:43]requested_item shift.opened is exist - process it [11:32:43]req_shift_opened [11:32:43]FM_GetShiftState [11:32:43]SAM_PROTO_GetShiftState [11:32:43]wFMCommunicate request_size=4 [11:32:43]MH_SAM_APDU [11:32:43]CAPDU: 80 13 01 00 [11:32:43]Write to MH i2c: E2 08 00 BB 1D 80 13 01 00 00 00 00 00 55 [11:32:43]Write i2c OK [11:32:43]MH_I2C_Read... [11:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:43]Read from MH i2c: E2 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 0E 00 [11:32:43]MH_I2C_Read... [11:32:43]Read from MH i2c: E2 0E 00 BB 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4F [11:32:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:32:43]wFMCommunicate OK [11:32:43]SAM_PROTO_GetShiftState done [11:32:43]FM_GetShiftState done [11:32:43]req_shift_opened done [11:32:43]requested_item shift.open_date is exist - process it [11:32:43]req_shift_open_date [11:32:43]req_shift_open_date done [11:32:43]produce_requested_data done [11:32:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162494,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:32:43]process_action_free close_receipt [11:32:43]json_value_free [11:32:43]json_value_free done [11:32:43]process_json_proto returns [11:32:43]Send response to host [11:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162494,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:32:43]free response buf [11:32:43]execute_script done [11:32:43]execute_script returns [11:32:43]free content buf [11:32:43]Sock 8.Close socket [11:32:43]Sock 8.Thread stoped [11:32:47]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]accept exits with 9 [11:34:28]New connection [11:34:28]New thread 3066862948 created [11:34:28]Thread 3067006308 joined [11:34:28]Waiting for new connection... [11:34:28] Sock 9.Parse request [11:34:28]Sock 9.Check first char [11:34:28]Sock 9.First char is OK [11:34:28]request: POST /json_proto HTTP/1.0 [11:34:28]Method: POST [11:34:28]URL: /json_proto [11:34:28]Method is POST - this is cgi request [11:34:28]url: /json_proto [11:34:28]query_string will be loaded in cgi processing [11:34:28]execute_cgi json_proto POST (null) [11:34:28]execute_cgi path=json_proto method=POST [11:34:28]POST find Content-Length [11:34:28]Host: 172.17.39.67:8080 [11:34:28]Content-Length: 683 [11:34:28]Content-Type: application/json [11:34:28] [11:34:28]POST finish read [11:34:28]Found Content-Length = 683 [11:34:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:34:28]execute_script... [11:34: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)1319035", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:34:28]POST & json_proto [11:34:28]process_json_proto [11:34:28]json parsed OK: [11:34:28]protocol is kg_v1.0 [11:34:28]action value=close_receipt [11:34:28]process_action close_receipt [11:34:28]cmd_close_receipt [11:34:28]MH_GetDate [11:34:28]Write to MH i2c: F0 00 00 BC 1D C8 [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: F0 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: F0 09 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: F0 09 00 BC 1D 00 52 66 92 66 FA E9 8E 66 58 [11:34:28]GetLastDocTimeStamp 1720870374 [11:34:28]current date 1720870482 [11:34:28]FM_GetShiftState [11:34:28]SAM_PROTO_GetShiftState [11:34:28]wFMCommunicate request_size=4 [11:34:28]MH_SAM_APDU [11:34:28]CAPDU: 80 13 01 00 [11:34:28]Write to MH i2c: E2 08 00 BD 1D 80 13 01 00 00 00 00 00 57 [11:34:28]Write i2c OK [11:34:28]MH_I2C_Read... [11:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:28]OFD Sender: No OFD packet to send [11:34:28]Read from MH i2c: E2 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 0E 00 [11:34:28]MH_I2C_Read... [11:34:28]Read from MH i2c: E2 0E 00 BD 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 51 [11:34:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:34:28]wFMCommunicate OK [11:34:28]SAM_PROTO_GetShiftState done [11:34:28]FM_GetShiftState done [11:34:28]opened in 1720828979 [11:34:28]opened+sec_in_day 1720915379 [11:34:28]quantity*price = 100046 [11:34:28]sum+1 = 100048 [11:34:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 163 13.07.2024 11:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162495 ФПД: 214553738319675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162495&fm=214553738319675&tin=02508201610067®Number=0000000000090858&sum=100000 [11:34:29]StoreToDocumentArchive [11:34:29]shift 462 fd 162495 [11:34:29]save to /storage/0462/doc_00162495 [11:34:29]save last doc name /storage/0462/doc_00162495 to /storage/kkm_last_doc_name [11:34:29]save OK [11:34:29]Clear old archive folders... [11:34:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:29]tlvbuf is 019C01A0 [11:34:29]SAM_PROTO_ClearQueue [11:34:29]wFMCommunicate request_size=4 [11:34:29]MH_SAM_APDU [11:34:29]CAPDU: 80 09 00 00 [11:34:29]Write to MH i2c: E2 08 00 CA 1D 80 09 00 00 00 00 00 00 59 [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:29]Read from MH i2c: E2 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 03 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 03 00 CA 1D 00 90 00 5B [11:34:29]RAPDU: 90 00 [11:34:29]wFMCommunicate OK [11:34:29]SAM_PROTO_ClearQueue done [11:34:29]KKMCreateOFDPacket [11:34:29]OFDProtocolAddRootSTLVToBuf [11:34:29]FM_MakeSignedData [11:34:29]FM_MakeSignedData [11:34:29]SAM_PROTO_SignData [11:34:29]wFMCommunicate request_size=4 [11:34:29]MH_SAM_APDU [11:34:29]CAPDU: 80 0D 01 02 [11:34:29]Write to MH i2c: E2 08 00 CB 1D 80 0D 01 02 00 00 00 00 61 [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:29]Read from MH i2c: E2 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 03 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 03 00 CB 1D 00 90 00 5C [11:34:29]RAPDU: 90 00 [11:34:29]wFMCommunicate OK [11:34:29]wFMCommunicate request_size=255 [11:34:29]MH_SAM_APDU [11:34:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A3 00 00 00 F4 03 04 00 52 66 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7A 02 00 35 04 06 00 C3 [11:34:29]Write to MH i2c: E2 02 01 CC 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A3 00 00 00 F4 03 04 00 52 66 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7A 02 00 35 04 06 00 C3 00 00 8D [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:29]Read from MH i2c: E2 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 03 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 03 00 CC 1D 00 90 00 5D [11:34:29]RAPDU: 90 00 [11:34:29]wFMCommunicate OK [11:34:29]wFMCommunicate request_size=10 [11:34:29]MH_SAM_APDU [11:34:29]CAPDU: 80 0D 02 02 05 22 AF 5B 97 3B [11:34:29]Write to MH i2c: E2 0D 00 CD 1D 80 0D 02 02 05 00 22 AF 5B 97 3B 00 00 6C [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:29]Read from MH i2c: E2 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 03 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 03 00 CD 1D 00 90 00 5E [11:34:29]RAPDU: 90 00 [11:34:29]wFMCommunicate OK [11:34:29]wFMCommunicate request_size=4 [11:34:29]MH_SAM_APDU [11:34:29]CAPDU: 80 0D 03 02 [11:34:29]Write to MH i2c: E2 08 00 CE 1D 80 0D 03 02 00 00 00 00 66 [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:29]Read from MH i2c: E2 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 0B 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 0B 00 CE 1D 00 56 3C CD E6 69 CF 65 F2 90 00 3B [11:34:29]RAPDU: 56 3C CD E6 69 CF 65 F2 90 00 [11:34:29]wFMCommunicate OK [11:34:29]SAM_PROTO_SignData done [11:34:29]FM_MakeSignedData done [11:34:29]CreateOFDProtocolMessage [11:34:29]wFMCommunicate request_size=4 [11:34:29]MH_SAM_APDU [11:34:29]CAPDU: 80 11 00 00 [11:34:29]Write to MH i2c: E2 08 00 CF 1D 80 11 00 00 00 00 00 00 66 [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:29]Read from MH i2c: E2 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 17 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: E2 17 00 CF 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C6 [11:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:34:29]wFMCommunicate OK [11:34:29]CreateOFDProtocolMessage done [11:34:29]OFDSenderStorePacket 162495 [11:34:29]StoreOFDPacket docnum=162495 [11:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A3 2E 07 01 45 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A3 00 00 00 F4 03 04 00 52 66 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7A 02 00 35 04 06 00 C3 22 AF 5B 97 3B 56 3C CD E6 69 CF 65 F2 [11:34:29]CheckFolder [11:34:29]dirname=/storage/ofd_packets [11:34:29]CheckFolder done [11:34:29]ProducePacketName [11:34:29]name=ofd_packets/00162495 [11:34:29]NVStorageSaveData ofd_packets/00162495 [11:34:29]File name is /storage/ofd_packets/00162495 [11:34:29]Write 301 bytes [11:34:29]NVStorageSaveData done [11:34:29]OFDSenderStorePacket done [11:34:29]KKMCreateOFDPacket done [11:34:29]NVStorageSaveData kkm_last_timestamp [11:34:29]File name is /storage/kkm_last_timestamp [11:34:29]Write 4 bytes [11:34:29]NVStorageSaveData done [11:34:29]ExternCall_PrintAddStr [11:34:29]wPrintStart [11:34:29]Write to MH i2c: 01 00 00 D0 1D ED [11:34:29]Write i2c OK [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: 01 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: 01 07 00 [11:34:29]MH_I2C_Read... [11:34:29]Read from MH i2c: 01 07 00 D0 1D 00 00 00 00 00 FF 0F 02 [11:34:29]RasterBufferAndPrint [11:34:29]line Счет N : (1)1319035 [11:34:29]line ИНН: 02508201610067 [11:34:29]line Контрольно-Кассовый Чек [11:34:29]line ПРОДАЖА [11:34:29]line ТРК (МРК, ГНК) : 63 [11:34:29]line Товар: 2710124130 [11:34:29]line Аи-92-К-5 [11:34:29]line 15.090 * 66.30 [11:34:29]line = 1000.47 [11:34:29]line НДС 12% НСП 1% [11:34:29]line > о реализуемом товаре [11:34:29]line ОКРУГЛЕНИЕ: -0.47 [11:34:29]line ИТОГО: 1000.00 [11:34:29]line Внесено: 1000.00 [11:34:29]line СДАЧА: 0.00 [11:34:29]line НСП 1% : 8.85 [11:34:29]line НДС 12% : 106.24 [11:34:29]line Наличными: 1000.00 [11:34:29]line Безнал.: 0.00 [11:34:29]line Место: АЗС № 140 "Партнер Нефть" [11:34:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:34:29]line СНО: Общий режим [11:34:29]line Чек 163 13.07.2024 11:34 [11:34:29]line Смена: 462 ФФД: 1.0 [11:34:29]line ЗНМ: 0300000129 [11:34:29]line РНМ: 0000000000090858 [11:34:29]line Версия ККМ: 001 [11:34:29]line ФМ: 0000000000874899 [11:34:29]line ФД: 162495 [11:34:29]line ФПД: 214553738319675 [11:34:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113442&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162495&fm=214553738319675&tin=02508201610067®Number=0000000000090858&sum=100000 [11:34:30]OFD Sender: Processing packet 162495 [packets to send 105, broken 104] [11:34:30]ProducePacketName [11:34:30]name=ofd_packets/00162495 [11:34:30]OFD Sender: To server: pG, [11:34:30]CommunicateWithHost lk.salyk.kg:30040 [11:34:30]ConnectInit lk.salyk.kg [11:34:30]written 0, free lines is 4095 [11:34:30]Connected sock=10 [11:34:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A3 2E 07 01 45 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A3 00 00 00 F4 03 04 00 52 66 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7A 02 00 35 04 06 00 C3 22 AF 5B 97 3B 56 3C CD E6 69 CF 65 F2 [11:34:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C0 DE 47 00 11 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 BF 7A 02 00 F4 03 04 00 66 12 92 66 B6 04 01 00 00 BC 8F ED AA AD 2E E3 A8 [11:34:30]CommunicateWithHost err = 0 [11:34:30]CheckOFDResponse [11:34:30]1017 (14) - 77093643461234 [11:34:30]1041 (16) - 0000000000874899 [11:34:30]1040 (4) - 162495 [11:34:30]1012 (4) - 13.07.2024 05:36 [11:34:30]1206 (1) - 0 [11:34:30]OFD Sender: Remove packet 162495 [11:34:30]ProducePacketName [11:34:30]name=ofd_packets/00162495 [11:34:30]NVStorageDeleteData [11:34:30]Write to MH i2c: 01 00 00 FB 1D 18 [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: 01 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: 01 07 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: 01 07 00 FB 1D 00 00 00 00 00 D8 0C 03 [11:34:30]RasterBufferAndPrint [11:34:30]line [11:34:30]line [11:34:30]line [11:34:30]line [11:34:30]line [11:34:30]written 0, free lines is 3298 [11:34:30]MH_Cut [11:34:30]Write to MH i2c: D1 01 00 02 1E 01 F2 [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: D1 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: D1 01 00 [11:34:30]MH_I2C_Read... [11:34:30]Read from MH i2c: D1 01 00 02 1E 00 F1 [11:34:30]Write to MH i2c: 01 00 00 03 1E 21 [11:34:30]Write i2c OK [11:34:30]MH_I2C_Read... [11:34:30]OFD Sender: No OFD packet to send [11:34:31]*** Cut start [11:34:31]*** Purtial cut [11:34:31]*** CUTSNS_PIN = 0 [11:34:31]*** Stage 1: CUTSNS_PIN = 1 [11:34:33]Read from MH i2c: 01 [11:34:33]MH_I2C_Read... [11:34:33]*** Stop cut motor [11:34:33]*** Cut end [11:34:33]Read from MH i2c: 01 07 00 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: 01 07 00 03 1E 00 00 00 00 00 FF 0F 36 [11:34:33]process_action close_receipt done [11:34:33]requested_data is exist [11:34:33]produce_requested_data [11:34:33]requested_item fm.sn is exist - process it [11:34:33]wFMCommunicate request_size=4 [11:34:33]MH_SAM_APDU [11:34:33]CAPDU: 80 11 00 00 [11:34:33]Write to MH i2c: E2 08 00 04 1E 80 11 00 00 00 00 00 00 9C [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:33]Read from MH i2c: E2 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: E2 17 00 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: E2 17 00 04 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FC [11:34:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:34:33]wFMCommunicate OK [11:34:33]requested_item fd.num is exist - process it [11:34:33]SAM_PROTO_GetFieldsCounters [11:34:33]wFMCommunicate request_size=4 [11:34:33]MH_SAM_APDU [11:34:33]CAPDU: 80 13 00 00 [11:34:33]Write to MH i2c: E2 08 00 05 1E 80 13 00 00 00 00 00 00 9F [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:33]Read from MH i2c: E2 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: E2 62 00 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: E2 62 00 05 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [11: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 BF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:33]wFMCommunicate OK [11:34:33]SAM_PROTO_GetFieldsCounters done [11:34:33]requested_item shift.num is exist - process it [11:34:33]requested_item shift.opened is exist - process it [11:34:33]req_shift_opened [11:34:33]FM_GetShiftState [11:34:33]SAM_PROTO_GetShiftState [11:34:33]wFMCommunicate request_size=4 [11:34:33]MH_SAM_APDU [11:34:33]CAPDU: 80 13 01 00 [11:34:33]Write to MH i2c: E2 08 00 06 1E 80 13 01 00 00 00 00 00 A1 [11:34:33]Write i2c OK [11:34:33]MH_I2C_Read... [11:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:33]Read from MH i2c: E2 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: E2 0E 00 [11:34:33]MH_I2C_Read... [11:34:33]Read from MH i2c: E2 0E 00 06 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9B [11:34:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:34:33]wFMCommunicate OK [11:34:33]SAM_PROTO_GetShiftState done [11:34:33]FM_GetShiftState done [11:34:33]req_shift_opened done [11:34:33]requested_item shift.open_date is exist - process it [11:34:33]req_shift_open_date [11:34:33]req_shift_open_date done [11:34:33]produce_requested_data done [11:34:33]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162495,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:34:33]process_action_free close_receipt [11:34:33]json_value_free [11:34:33]json_value_free done [11:34:33]process_json_proto returns [11:34:33]Send response to host [11:34:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162495,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:34:33]free response buf [11:34:33]execute_script done [11:34:33]execute_script returns [11:34:33]free content buf [11:34:33]Sock 9.Close socket [11:34:33]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:36:58]accept exits with 8 [11:36:58]New connection [11:36:58]New thread 3067006308 created [11:36:58]Thread 3066862948 joined [11:36:58]Waiting for new connection... [11:36:58] Sock 8.Parse request [11:36:58]Sock 8.Check first char [11:36:58]Sock 8.First char is OK [11:36:58]request: POST /json_proto HTTP/1.0 [11:36:58]Method: POST [11:36:58]URL: /json_proto [11:36:58]Method is POST - this is cgi request [11:36:58]url: /json_proto [11:36:58]query_string will be loaded in cgi processing [11:36:58]execute_cgi json_proto POST (null) [11:36:58]execute_cgi path=json_proto method=POST [11:36:58]POST find Content-Length [11:36:58]Host: 172.17.39.67:8080 [11:36:58]Content-Length: 809 [11:36:58]Content-Type: application/json [11:36:58] [11:36:58]POST finish read [11:36:58]Found Content-Length = 809 [11:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 52.000, "sum" : 3775.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3775.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:58]execute_script... [11:36:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 52.000, "sum" : 3775.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3775.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:58]POST & json_proto [11:36:58]process_json_proto [11:36:58]json parsed OK: [11:36:58]protocol is kg_v1.0 [11:36:58]action value=close_receipt [11:36:58]process_action close_receipt [11:36:58]cmd_close_receipt [11:36:58]MH_GetDate [11:36:58]Write to MH i2c: F0 00 00 07 1E 14 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: F0 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: F0 09 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: F0 09 00 07 1E 00 E8 66 92 66 FA E9 8E 66 3A [11:36:58]GetLastDocTimeStamp 1720870482 [11:36:58]current date 1720870632 [11:36:58]FM_GetShiftState [11:36:58]SAM_PROTO_GetShiftState [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 13 01 00 [11:36:58]Write to MH i2c: E2 08 00 08 1E 80 13 01 00 00 00 00 00 A3 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 0E 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 0E 00 08 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9D [11:36:58]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:36:58]wFMCommunicate OK [11:36:58]SAM_PROTO_GetShiftState done [11:36:58]FM_GetShiftState done [11:36:58]opened in 1720828979 [11:36:58]opened+sec_in_day 1720915379 [11:36:58]quantity*price = 377520 [11:36:58]sum+1 = 377521 [11:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3775.20 НСП 1% : 33.41 НДС 12% : 400.91 Наличными: 0.00 Безнал.: 3775.20 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 164 13.07.2024 11:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162496 ФПД: 38138702878214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113712&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162496&fm=38138702878214&tin=02508201610067®Number=0000000000090858&sum=377520 [11:36:59]StoreToDocumentArchive [11:36:59]shift 462 fd 162496 [11:36:59]save to /storage/0462/doc_00162496 [11:36:59]save last doc name /storage/0462/doc_00162496 to /storage/kkm_last_doc_name [11:36:59]save OK [11:36:59]Clear old archive folders... [11:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:36:59]tlvbuf is 01951010 [11:36:59]SAM_PROTO_ClearQueue [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 09 00 00 [11:36:59]Write to MH i2c: E2 08 00 15 1E 80 09 00 00 00 00 00 00 A5 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 15 1E 00 90 00 A7 [11:36:59]RAPDU: 90 00 [11:36:59]wFMCommunicate OK [11:36:59]SAM_PROTO_ClearQueue done [11:36:59]KKMCreateOFDPacket [11:36:59]OFDProtocolAddRootSTLVToBuf [11:36:59]FM_MakeSignedData [11:36:59]FM_MakeSignedData [11:36:59]SAM_PROTO_SignData [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 0D 01 02 [11:36:59]Write to MH i2c: E2 08 00 16 1E 80 0D 01 02 00 00 00 00 AD [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 16 1E 00 90 00 A8 [11:36:59]RAPDU: 90 00 [11:36:59]wFMCommunicate OK [11:36:59]wFMCommunicate request_size=255 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B0 C2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 C2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 9C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 C2 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E8 66 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7A 02 00 35 04 06 00 [11:36:59]Write to MH i2c: E2 02 01 17 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B0 C2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 C2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 9C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 C2 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E8 66 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7A 02 00 35 04 06 00 00 00 12 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 17 1E 00 90 00 A9 [11:37:00]RAPDU: 90 00 [11:37:00]wFMCommunicate OK [11:37:00]wFMCommunicate request_size=11 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 0D 02 02 06 22 AF DB D6 56 06 [11:37:00]Write to MH i2c: E2 0E 00 18 1E 80 0D 02 02 06 00 22 AF DB D6 56 06 00 00 9A [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 18 1E 00 90 00 AA [11:37:00]RAPDU: 90 00 [11:37:00]wFMCommunicate OK [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 0D 03 02 [11:37:00]Write to MH i2c: E2 08 00 19 1E 80 0D 03 02 00 00 00 00 B2 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 0B 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 0B 00 19 1E 00 41 60 2F C5 EB 9A 06 54 90 00 27 [11:37:00]RAPDU: 41 60 2F C5 EB 9A 06 54 90 00 [11:37:00]wFMCommunicate OK [11:37:00]SAM_PROTO_SignData done [11:37:00]FM_MakeSignedData done [11:37:00]CreateOFDProtocolMessage [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 11 00 00 [11:37:00]Write to MH i2c: E2 08 00 1A 1E 80 11 00 00 00 00 00 00 B2 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 17 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 17 00 1A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 12 [11:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:37:00]wFMCommunicate OK [11:37:00]CreateOFDProtocolMessage done [11:37:00]OFDSenderStorePacket 162496 [11:37:00]StoreOFDPacket docnum=162496 [11:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E3 3F 08 01 53 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B0 C2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 C2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 9C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 C2 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E8 66 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7A 02 00 35 04 06 00 22 AF DB D6 56 06 41 60 2F C5 EB 9A 06 54 [11:37:00]CheckFolder [11:37:00]dirname=/storage/ofd_packets [11:37:00]CheckFolder done [11:37:00]ProducePacketName [11:37:00]name=ofd_packets/00162496 [11:37:00]NVStorageSaveData ofd_packets/00162496 [11:37:00]File name is /storage/ofd_packets/00162496 [11:37:00]Write 302 bytes [11:37:00]NVStorageSaveData done [11:37:00]OFDSenderStorePacket done [11:37:00]KKMCreateOFDPacket done [11:37:00]NVStorageSaveData kkm_last_timestamp [11:37:00]File name is /storage/kkm_last_timestamp [11:37:00]Write 4 bytes [11:37:00]NVStorageSaveData done [11:37:00]ExternCall_PrintAddStr [11:37:00]wPrintStart [11:37:00]Write to MH i2c: 01 00 00 1B 1E 39 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 07 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 07 00 1B 1E 00 00 00 00 00 FF 0F 4E [11:37:00]RasterBufferAndPrint [11:37:00]line Счет N : (1)1319036 [11:37:00]line ИНН: 02508201610067 [11:37:00]line Контрольно-Кассовый Чек [11:37:00]line ПРОДАЖА [11:37:00]line ТРК (МРК, ГНК) : 31 [11:37:00]line Товар: 2710194210 [11:37:00]line ДТ(л)-К-5 [11:37:00]line 52.000 * 72.60 [11:37:00]line = 3775.20 [11:37:00]line НДС 12% НСП 1% [11:37:00]line > о реализуемом товаре [11:37:00]line ИТОГО: 3775.20 [11:37:00]line НСП 1% : 33.41 [11:37:00]line НДС 12% : 400.91 [11:37:00]line Наличными: 0.00 [11:37:00]line Безнал.: 3775.20 [11:37:00]line Место: АЗС № 140 "Партнер Нефть" [11:37:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:37:00]line СНО: Общий режим [11:37:00]line Чек 164 13.07.2024 11:37 [11:37:00]line Смена: 462 ФФД: 1.0 [11:37:00]line ЗНМ: 0300000129 [11:37:00]line РНМ: 0000000000090858 [11:37:00]line Версия ККМ: 001 [11:37:00]line Платежная система: O! деньги [11:37:00]line ФМ: 0000000000874899 [11:37:00]line ФД: 162496 [11:37:00]line ФПД: 38138702878214 [11:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113712&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162496&fm=38138702878214&tin=02508201610067®Number=0000000000090858&sum=377520 [11:37:00]written 0, free lines is 4095 [11:37:00]OFD Sender: Processing packet 162496 [packets to send 105, broken 104] [11:37:00]ProducePacketName [11:37:00]name=ofd_packets/00162496 [11:37:00]OFD Sender: To server: pG, [11:37:00]CommunicateWithHost lk.salyk.kg:30040 [11:37:00]ConnectInit lk.salyk.kg [11:37:00]Connected sock=11 [11:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E3 3F 08 01 53 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 CB 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B0 C2 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 C2 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 9C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 C2 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E8 66 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7A 02 00 35 04 06 00 22 AF DB D6 56 06 41 60 2F C5 EB 9A 06 54 [11:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 62 6B 47 00 25 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C0 7A 02 00 F4 03 04 00 FD 12 92 66 B6 04 01 00 00 DC CD 0F C0 9F F1 0B F7 [11:37:00]CommunicateWithHost err = 0 [11:37:00]CheckOFDResponse [11:37:00]1017 (14) - 77093643461234 [11:37:00]1041 (16) - 0000000000874899 [11:37:00]1040 (4) - 162496 [11:37:00]1012 (4) - 13.07.2024 05:39 [11:37:00]1206 (1) - 0 [11:37:00]OFD Sender: Remove packet 162496 [11:37:00]ProducePacketName [11:37:00]name=ofd_packets/00162496 [11:37:00]NVStorageDeleteData [11:37:01]Write to MH i2c: 01 00 00 45 1E 63 [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 07 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 07 00 45 1E 00 00 00 00 00 ED 0C 63 [11:37:01]RasterBufferAndPrint [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]written 0, free lines is 3315 [11:37:01]MH_Cut [11:37:01]Write to MH i2c: D1 01 00 4C 1E 01 3C [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 01 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 01 00 4C 1E 00 3B [11:37:01]Write to MH i2c: 01 00 00 4D 1E 6B [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]OFD Sender: No OFD packet to send [11:37:01]*** Cut start [11:37:01]*** Purtial cut [11:37:01]*** Stage 1: CUTSNS_PIN = 1 [11:37:02]Read from MH i2c: 01 [11:37:02]MH_I2C_Read... [11:37:02]*** Stop cut motor [11:37:02]*** Cut end [11:37:02]Read from MH i2c: 01 07 00 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: 01 07 00 4D 1E 00 00 00 00 00 FF 0F 80 [11:37:02]process_action close_receipt done [11:37:02]requested_data is exist [11:37:02]produce_requested_data [11:37:02]requested_item fm.sn is exist - process it [11:37:02]wFMCommunicate request_size=4 [11:37:02]MH_SAM_APDU [11:37:02]CAPDU: 80 11 00 00 [11:37:02]Write to MH i2c: E2 08 00 4E 1E 80 11 00 00 00 00 00 00 E6 [11:37:02]Write i2c OK [11:37:02]MH_I2C_Read... [11:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:02]Read from MH i2c: E2 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 17 00 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 17 00 4E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [11:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:37:02]wFMCommunicate OK [11:37:02]requested_item fd.num is exist - process it [11:37:02]SAM_PROTO_GetFieldsCounters [11:37:02]wFMCommunicate request_size=4 [11:37:02]MH_SAM_APDU [11:37:02]CAPDU: 80 13 00 00 [11:37:02]Write to MH i2c: E2 08 00 4F 1E 80 13 00 00 00 00 00 00 E9 [11:37:02]Write i2c OK [11:37:02]MH_I2C_Read... [11:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:02]Read from MH i2c: E2 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 62 00 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 62 00 4F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [11:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:02]wFMCommunicate OK [11:37:02]SAM_PROTO_GetFieldsCounters done [11:37:02]requested_item shift.num is exist - process it [11:37:02]requested_item shift.opened is exist - process it [11:37:02]req_shift_opened [11:37:02]FM_GetShiftState [11:37:02]SAM_PROTO_GetShiftState [11:37:02]wFMCommunicate request_size=4 [11:37:02]MH_SAM_APDU [11:37:02]CAPDU: 80 13 01 00 [11:37:02]Write to MH i2c: E2 08 00 50 1E 80 13 01 00 00 00 00 00 EB [11:37:02]Write i2c OK [11:37:02]MH_I2C_Read... [11:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:02]Read from MH i2c: E2 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 0E 00 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 0E 00 50 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E5 [11:37:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:37:02]wFMCommunicate OK [11:37:02]SAM_PROTO_GetShiftState done [11:37:02]FM_GetShiftState done [11:37:02]req_shift_opened done [11:37:02]requested_item shift.open_date is exist - process it [11:37:02]req_shift_open_date [11:37:02]req_shift_open_date done [11:37:02]produce_requested_data done [11:37:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162496,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:37:02]process_action_free close_receipt [11:37:02]json_value_free [11:37:02]json_value_free done [11:37:02]process_json_proto returns [11:37:02]Send response to host [11:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162496,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:37:02]free response buf [11:37:02]execute_script done [11:37:02]execute_script returns [11:37:02]free content buf [11:37:02]Sock 8.Close socket [11:37:02]Sock 8.Thread stoped [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]accept exits with 9 [11:39:06]New connection [11:39:06]New thread 3066862948 created [11:39:06]Thread 3067006308 joined [11:39:06]Waiting for new connection... [11:39:06] Sock 9.Parse request [11:39:06]Sock 9.Check first char [11:39:06]Sock 9.First char is OK [11:39:06]request: POST /json_proto HTTP/1.0 [11:39:06]Method: POST [11:39:06]URL: /json_proto [11:39:06]Method is POST - this is cgi request [11:39:06]url: /json_proto [11:39:06]query_string will be loaded in cgi processing [11:39:06]execute_cgi json_proto POST (null) [11:39:06]execute_cgi path=json_proto method=POST [11:39:06]POST find Content-Length [11:39:06]Host: 172.17.39.67:8080 [11:39:06]Content-Length: 683 [11:39:06]Content-Type: application/json [11:39:06] [11:39:06]POST finish read [11:39:06]Found Content-Length = 683 [11:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 30.020, "sum" : 1990.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1990.00, "total" : 1990.00, "payments": [ { "type": 0, "sum" : 1990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:06]execute_script... [11:39:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 30.020, "sum" : 1990.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1990.00, "total" : 1990.00, "payments": [ { "type": 0, "sum" : 1990.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:06]POST & json_proto [11:39:06]process_json_proto [11:39:06]json parsed OK: [11:39:06]protocol is kg_v1.0 [11:39:06]action value=close_receipt [11:39:06]process_action close_receipt [11:39:06]cmd_close_receipt [11:39:06]MH_GetDate [11:39:06]Write to MH i2c: F0 00 00 51 1E 5E [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: F0 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: F0 09 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: F0 09 00 51 1E 00 68 67 92 66 FA E9 8E 66 05 [11:39:06]GetLastDocTimeStamp 1720870632 [11:39:06]current date 1720870760 [11:39:06]FM_GetShiftState [11:39:06]SAM_PROTO_GetShiftState [11:39:06]wFMCommunicate request_size=4 [11:39:06]MH_SAM_APDU [11:39:06]CAPDU: 80 13 01 00 [11:39:06]Write to MH i2c: E2 08 00 52 1E 80 13 01 00 00 00 00 00 ED [11:39:06]Write i2c OK [11:39:06]MH_I2C_Read... [11:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:06]Read from MH i2c: E2 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 0E 00 [11:39:06]MH_I2C_Read... [11:39:06]Read from MH i2c: E2 0E 00 52 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E7 [11:39:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:39:06]wFMCommunicate OK [11:39:06]SAM_PROTO_GetShiftState done [11:39:06]FM_GetShiftState done [11:39:06]opened in 1720828979 [11:39:06]opened+sec_in_day 1720915379 [11:39:06]quantity*price = 199032 [11:39:06]sum+1 = 199034 [11:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1990.00 Внесено: 1990.00 СДАЧА: 0.00 НСП 1% : 17.61 НДС 12% : 211.36 Наличными: 1990.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 165 13.07.2024 11:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162497 ФПД: 201489162806722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113920&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162497&fm=201489162806722&tin=02508201610067®Number=0000000000090858&sum=199000 [11:39:07]StoreToDocumentArchive [11:39:07]shift 462 fd 162497 [11:39:07]save to /storage/0462/doc_00162497 [11:39:07]save last doc name /storage/0462/doc_00162497 to /storage/kkm_last_doc_name [11:39:07]save OK [11:39:07]Clear old archive folders... [11:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:07]tlvbuf is 01C12EE0 [11:39:07]SAM_PROTO_ClearQueue [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 09 00 00 [11:39:07]Write to MH i2c: E2 08 00 5F 1E 80 09 00 00 00 00 00 00 EF [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [11:39:07]RAPDU: 90 00 [11:39:07]wFMCommunicate OK [11:39:07]SAM_PROTO_ClearQueue done [11:39:07]KKMCreateOFDPacket [11:39:07]OFDProtocolAddRootSTLVToBuf [11:39:07]FM_MakeSignedData [11:39:07]FM_MakeSignedData [11:39:07]SAM_PROTO_SignData [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 0D 01 02 [11:39:07]Write to MH i2c: E2 08 00 60 1E 80 0D 01 02 00 00 00 00 F7 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 60 1E 00 90 00 F2 [11:39:07]RAPDU: 90 00 [11:39:07]wFMCommunicate OK [11:39:07]wFMCommunicate request_size=255 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 79 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 52 00 00 00 00 07 04 06 00 58 09 03 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 68 67 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7A 02 00 35 04 06 00 B7 [11:39:07]Write to MH i2c: E2 02 01 61 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 79 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 52 00 00 00 00 07 04 06 00 58 09 03 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 68 67 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7A 02 00 35 04 06 00 B7 00 00 10 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 61 1E 00 90 00 F3 [11:39:07]RAPDU: 90 00 [11:39:07]wFMCommunicate OK [11:39:07]wFMCommunicate request_size=10 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 0D 02 02 05 40 D9 F9 A5 C2 [11:39:07]Write to MH i2c: E2 0D 00 62 1E 80 0D 02 02 05 00 40 D9 F9 A5 C2 00 00 7D [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 03 00 62 1E 00 90 00 F4 [11:39:07]RAPDU: 90 00 [11:39:07]wFMCommunicate OK [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 0D 03 02 [11:39:07]Write to MH i2c: E2 08 00 63 1E 80 0D 03 02 00 00 00 00 FC [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 0B 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 0B 00 63 1E 00 85 81 AE D8 33 B1 2B 4A 90 00 E2 [11:39:07]RAPDU: 85 81 AE D8 33 B1 2B 4A 90 00 [11:39:07]wFMCommunicate OK [11:39:07]SAM_PROTO_SignData done [11:39:07]FM_MakeSignedData done [11:39:07]CreateOFDProtocolMessage [11:39:07]wFMCommunicate request_size=4 [11:39:07]MH_SAM_APDU [11:39:07]CAPDU: 80 11 00 00 [11:39:07]Write to MH i2c: E2 08 00 64 1E 80 11 00 00 00 00 00 00 FC [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:07]Read from MH i2c: E2 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 17 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: E2 17 00 64 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5C [11:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:39:07]wFMCommunicate OK [11:39:07]CreateOFDProtocolMessage done [11:39:07]OFDSenderStorePacket 162497 [11:39:07]StoreOFDPacket docnum=162497 [11:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D4 CC 07 01 1C EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 79 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 52 00 00 00 00 07 04 06 00 58 09 03 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 68 67 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7A 02 00 35 04 06 00 B7 40 D9 F9 A5 C2 85 81 AE D8 33 B1 2B 4A [11:39:07]CheckFolder [11:39:07]dirname=/storage/ofd_packets [11:39:07]CheckFolder done [11:39:07]ProducePacketName [11:39:07]name=ofd_packets/00162497 [11:39:07]NVStorageSaveData ofd_packets/00162497 [11:39:07]File name is /storage/ofd_packets/00162497 [11:39:07]Write 301 bytes [11:39:07]NVStorageSaveData done [11:39:07]OFDSenderStorePacket done [11:39:07]KKMCreateOFDPacket done [11:39:07]NVStorageSaveData kkm_last_timestamp [11:39:07]File name is /storage/kkm_last_timestamp [11:39:07]Write 4 bytes [11:39:07]NVStorageSaveData done [11:39:07]ExternCall_PrintAddStr [11:39:07]wPrintStart [11:39:07]Write to MH i2c: 01 00 00 65 1E 83 [11:39:07]Write i2c OK [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 07 00 [11:39:07]MH_I2C_Read... [11:39:07]Read from MH i2c: 01 07 00 65 1E 00 00 00 00 00 FF 0F 98 [11:39:07]RasterBufferAndPrint [11:39:07]line Счет N : (1)1319037 [11:39:07]line ИНН: 02508201610067 [11:39:07]line Контрольно-Кассовый Чек [11:39:07]line ПРОДАЖА [11:39:07]line ТРК (МРК, ГНК) : 53 [11:39:07]line Товар: 2710124130 [11:39:07]line Аи-92-К-5 [11:39:07]line 30.020 * 66.30 [11:39:07]line = 1990.33 [11:39:07]line НДС 12% НСП 1% [11:39:07]line > о реализуемом товаре [11:39:07]line ОКРУГЛЕНИЕ: -0.33 [11:39:07]line ИТОГО: 1990.00 [11:39:07]line Внесено: 1990.00 [11:39:07]line СДАЧА: 0.00 [11:39:07]line НСП 1% : 17.61 [11:39:07]line НДС 12% : 211.36 [11:39:07]line Наличными: 1990.00 [11:39:07]line Безнал.: 0.00 [11:39:07]line Место: АЗС № 140 "Партнер Нефть" [11:39:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:39:07]line СНО: Общий режим [11:39:07]line Чек 165 13.07.2024 11:39 [11:39:07]line Смена: 462 ФФД: 1.0 [11:39:07]line ЗНМ: 0300000129 [11:39:07]line РНМ: 0000000000090858 [11:39:07]line Версия ККМ: 001 [11:39:07]line ФМ: 0000000000874899 [11:39:08]line ФД: 162497 [11:39:08]line ФПД: 201489162806722 [11:39:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T113920&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162497&fm=201489162806722&tin=02508201610067®Number=0000000000090858&sum=199000 [11:39:08]OFD Sender: Processing packet 162497 [packets to send 105, broken 104] [11:39:08]ProducePacketName [11:39:08]name=ofd_packets/00162497 [11:39:08]OFD Sender: To server: pG, [11:39:08]CommunicateWithHost lk.salyk.kg:30040 [11:39:08]ConnectInit lk.salyk.kg [11:39:08]written 0, free lines is 4095 [11:39:08]Connected sock=10 [11:39:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D4 CC 07 01 1C EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 75 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 79 09 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 09 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 52 00 00 00 00 07 04 06 00 58 09 03 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 68 67 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7A 02 00 35 04 06 00 B7 40 D9 F9 A5 C2 85 81 AE D8 33 B1 2B 4A [11:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 80 97 47 00 B1 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C1 7A 02 00 F4 03 04 00 7C 13 92 66 B6 04 01 00 00 CD E4 9A 3C 61 B7 7B DD [11:39:08]CommunicateWithHost err = 0 [11:39:08]CheckOFDResponse [11:39:08]1017 (14) - 77093643461234 [11:39:08]1041 (16) - 0000000000874899 [11:39:08]1040 (4) - 162497 [11:39:08]1012 (4) - 13.07.2024 05:41 [11:39:08]1206 (1) - 0 [11:39:08]OFD Sender: Remove packet 162497 [11:39:08]ProducePacketName [11:39:08]name=ofd_packets/00162497 [11:39:08]NVStorageDeleteData [11:39:08]Write to MH i2c: 01 00 00 90 1E AE [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: 01 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: 01 07 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: 01 07 00 90 1E 00 00 00 00 00 DD 0C 9E [11:39:08]RasterBufferAndPrint [11:39:08]line [11:39:08]line [11:39:08]line [11:39:08]line [11:39:08]line [11:39:08]written 0, free lines is 3299 [11:39:08]MH_Cut [11:39:08]Write to MH i2c: D1 01 00 97 1E 01 87 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: D1 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: D1 01 00 [11:39:08]MH_I2C_Read... [11:39:08]Read from MH i2c: D1 01 00 97 1E 00 86 [11:39:08]Write to MH i2c: 01 00 00 98 1E B6 [11:39:08]Write i2c OK [11:39:08]MH_I2C_Read... [11:39:09]OFD Sender: No OFD packet to send [11:39:09]*** Cut start [11:39:09]*** Purtial cut [11:39:09]*** CUTSNS_PIN = 0 [11:39:09]*** Stage 1: CUTSNS_PIN = 1 [11:39:11]Read from MH i2c: 01 [11:39:11]MH_I2C_Read... [11:39:11]*** Stop cut motor [11:39:11]*** Cut end [11:39:11]Read from MH i2c: 01 07 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: 01 07 00 98 1E 00 00 00 00 00 FF 0F CB [11:39:11]process_action close_receipt done [11:39:11]requested_data is exist [11:39:11]produce_requested_data [11:39:11]requested_item fm.sn is exist - process it [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 11 00 00 [11:39:11]Write to MH i2c: E2 08 00 99 1E 80 11 00 00 00 00 00 00 31 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 17 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 17 00 99 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 91 [11:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:39:11]wFMCommunicate OK [11:39:11]requested_item fd.num is exist - process it [11:39:11]SAM_PROTO_GetFieldsCounters [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 13 00 00 [11:39:11]Write to MH i2c: E2 08 00 9A 1E 80 13 00 00 00 00 00 00 34 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 62 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 62 00 9A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [11:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:11]wFMCommunicate OK [11:39:11]SAM_PROTO_GetFieldsCounters done [11:39:11]requested_item shift.num is exist - process it [11:39:11]requested_item shift.opened is exist - process it [11:39:11]req_shift_opened [11:39:11]FM_GetShiftState [11:39:11]SAM_PROTO_GetShiftState [11:39:11]wFMCommunicate request_size=4 [11:39:11]MH_SAM_APDU [11:39:11]CAPDU: 80 13 01 00 [11:39:11]Write to MH i2c: E2 08 00 9B 1E 80 13 01 00 00 00 00 00 36 [11:39:11]Write i2c OK [11:39:11]MH_I2C_Read... [11:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:11]Read from MH i2c: E2 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 0E 00 [11:39:11]MH_I2C_Read... [11:39:11]Read from MH i2c: E2 0E 00 9B 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 30 [11:39:11]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:39:11]wFMCommunicate OK [11:39:11]SAM_PROTO_GetShiftState done [11:39:11]FM_GetShiftState done [11:39:11]req_shift_opened done [11:39:11]requested_item shift.open_date is exist - process it [11:39:11]req_shift_open_date [11:39:11]req_shift_open_date done [11:39:11]produce_requested_data done [11:39:11]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162497,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:39:11]process_action_free close_receipt [11:39:11]json_value_free [11:39:11]json_value_free done [11:39:11]process_json_proto returns [11:39:11]Send response to host [11:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162497,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:39:11]free response buf [11:39:11]execute_script done [11:39:11]execute_script returns [11:39:11]free content buf [11:39:11]Sock 9.Close socket [11:39:11]Sock 9.Thread stoped [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:00]accept exits with 8 [11:41:00]New connection [11:41:00]New thread 3067006308 created [11:41:00]Thread 3066862948 joined [11:41:00]Waiting for new connection... [11:41:00] Sock 8.Parse request [11:41:00]Sock 8.Check first char [11:41:00]Sock 8.First char is OK [11:41:00]request: POST /json_proto HTTP/1.0 [11:41:00]Method: POST [11:41:00]URL: /json_proto [11:41:00]Method is POST - this is cgi request [11:41:00]url: /json_proto [11:41:00]query_string will be loaded in cgi processing [11:41:00]execute_cgi json_proto POST (null) [11:41:00]execute_cgi path=json_proto method=POST [11:41:00]POST find Content-Length [11:41:00]Host: 172.17.39.67:8080 [11:41:00]Content-Length: 679 [11:41:00]Content-Type: application/json [11:41:00] [11:41:00]POST finish read [11:41:00]Found Content-Length = 679 [11:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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" ] } } [11:41:00]execute_script... [11:41:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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" ] } } [11:41:00]POST & json_proto [11:41:00]process_json_proto [11:41:00]json parsed OK: [11:41:00]protocol is kg_v1.0 [11:41:00]action value=close_receipt [11:41:00]process_action close_receipt [11:41:00]cmd_close_receipt [11:41:00]MH_GetDate [11:41:00]Write to MH i2c: F0 00 00 9C 1E A9 [11:41:00]Write i2c OK [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: F0 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: F0 09 00 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: F0 09 00 9C 1E 00 DA 67 92 66 FA E9 8E 66 C2 [11:41:00]GetLastDocTimeStamp 1720870760 [11:41:00]current date 1720870874 [11:41:00]FM_GetShiftState [11:41:00]SAM_PROTO_GetShiftState [11:41:00]wFMCommunicate request_size=4 [11:41:00]MH_SAM_APDU [11:41:00]CAPDU: 80 13 01 00 [11:41:00]Write to MH i2c: E2 08 00 9D 1E 80 13 01 00 00 00 00 00 38 [11:41:00]Write i2c OK [11:41:00]MH_I2C_Read... [11:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:00]Read from MH i2c: E2 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: E2 0E 00 [11:41:00]MH_I2C_Read... [11:41:00]Read from MH i2c: E2 0E 00 9D 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 32 [11:41:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:41:00]wFMCommunicate OK [11:41:00]SAM_PROTO_GetShiftState done [11:41:00]FM_GetShiftState done [11:41:00]opened in 1720828979 [11:41:00]opened+sec_in_day 1720915379 [11:41:00]quantity*price = 70012 [11:41:00]sum+1 = 70014 [11:41:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 166 13.07.2024 11:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162498 ФПД: 9737759665488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114114&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162498&fm=9737759665488&tin=02508201610067®Number=0000000000090858&sum=70000 [11:41:01]StoreToDocumentArchive [11:41:01]shift 462 fd 162498 [11:41:01]save to /storage/0462/doc_00162498 [11:41:01]save last doc name /storage/0462/doc_00162498 to /storage/kkm_last_doc_name [11:41:01]save OK [11:41:01]Clear old archive folders... [11:41:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:01]tlvbuf is 017471A0 [11:41:01]SAM_PROTO_ClearQueue [11:41:01]wFMCommunicate request_size=4 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 09 00 00 [11:41:01]Write to MH i2c: E2 08 00 AA 1E 80 09 00 00 00 00 00 00 3A [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 AA 1E 00 90 00 3C [11:41:01]RAPDU: 90 00 [11:41:01]wFMCommunicate OK [11:41:01]SAM_PROTO_ClearQueue done [11:41:01]KKMCreateOFDPacket [11:41:01]OFDProtocolAddRootSTLVToBuf [11:41:01]FM_MakeSignedData [11:41:01]FM_MakeSignedData [11:41:01]SAM_PROTO_SignData [11:41:01]wFMCommunicate request_size=4 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 0D 01 02 [11:41:01]Write to MH i2c: E2 08 00 AB 1E 80 0D 01 02 00 00 00 00 42 [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 AB 1E 00 90 00 3D [11:41:01]RAPDU: 90 00 [11:41:01]wFMCommunicate OK [11:41:01]wFMCommunicate request_size=255 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DA 67 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7A 02 00 35 04 06 00 08 [11:41:01]Write to MH i2c: E2 02 01 AC 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DA 67 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7A 02 00 35 04 06 00 08 00 00 E3 [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 AC 1E 00 90 00 3E [11:41:01]RAPDU: 90 00 [11:41:01]wFMCommunicate OK [11:41:01]wFMCommunicate request_size=10 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 0D 02 02 05 DB 3F B4 AD 50 [11:41:01]Write to MH i2c: E2 0D 00 AD 1E 80 0D 02 02 05 00 DB 3F B4 AD 50 00 00 1A [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 03 00 AD 1E 00 90 00 3F [11:41:01]RAPDU: 90 00 [11:41:01]wFMCommunicate OK [11:41:01]wFMCommunicate request_size=4 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 0D 03 02 [11:41:01]Write to MH i2c: E2 08 00 AE 1E 80 0D 03 02 00 00 00 00 47 [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 0B 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 0B 00 AE 1E 00 4F 2D 2A 06 82 3A D6 A2 90 00 28 [11:41:01]RAPDU: 4F 2D 2A 06 82 3A D6 A2 90 00 [11:41:01]wFMCommunicate OK [11:41:01]SAM_PROTO_SignData done [11:41:01]FM_MakeSignedData done [11:41:01]CreateOFDProtocolMessage [11:41:01]wFMCommunicate request_size=4 [11:41:01]MH_SAM_APDU [11:41:01]CAPDU: 80 11 00 00 [11:41:01]Write to MH i2c: E2 08 00 AF 1E 80 11 00 00 00 00 00 00 47 [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:01]Read from MH i2c: E2 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 17 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: E2 17 00 AF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A7 [11:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:41:01]wFMCommunicate OK [11:41:01]CreateOFDProtocolMessage done [11:41:01]OFDSenderStorePacket 162498 [11:41:01]StoreOFDPacket docnum=162498 [11:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 E1 07 01 3E 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DA 67 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7A 02 00 35 04 06 00 08 DB 3F B4 AD 50 4F 2D 2A 06 82 3A D6 A2 [11:41:01]CheckFolder [11:41:01]dirname=/storage/ofd_packets [11:41:01]CheckFolder done [11:41:01]ProducePacketName [11:41:01]name=ofd_packets/00162498 [11:41:01]NVStorageSaveData ofd_packets/00162498 [11:41:01]File name is /storage/ofd_packets/00162498 [11:41:01]Write 301 bytes [11:41:01]NVStorageSaveData done [11:41:01]OFDSenderStorePacket done [11:41:01]KKMCreateOFDPacket done [11:41:01]NVStorageSaveData kkm_last_timestamp [11:41:01]File name is /storage/kkm_last_timestamp [11:41:01]Write 4 bytes [11:41:01]NVStorageSaveData done [11:41:01]ExternCall_PrintAddStr [11:41:01]wPrintStart [11:41:01]Write to MH i2c: 01 00 00 B0 1E CE [11:41:01]Write i2c OK [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: 01 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: 01 07 00 [11:41:01]MH_I2C_Read... [11:41:01]Read from MH i2c: 01 07 00 B0 1E 00 00 00 00 00 FF 0F E3 [11:41:01]RasterBufferAndPrint [11:41:01]line Счет N : (1)1319039 [11:41:01]line ИНН: 02508201610067 [11:41:01]line Контрольно-Кассовый Чек [11:41:01]line ПРОДАЖА [11:41:01]line ТРК (МРК, ГНК) : 63 [11:41:01]line Товар: 2710124130 [11:41:01]line Аи-92-К-5 [11:41:01]line 10.560 * 66.30 [11:41:01]line = 700.13 [11:41:01]line НДС 12% НСП 1% [11:41:01]line > о реализуемом товаре [11:41:01]line ОКРУГЛЕНИЕ: -0.13 [11:41:01]line ИТОГО: 700.00 [11:41:01]line Внесено: 700.00 [11:41:01]line СДАЧА: 0.00 [11:41:01]line НСП 1% : 6.20 [11:41:01]line НДС 12% : 74.35 [11:41:01]line Наличными: 700.00 [11:41:01]line Безнал.: 0.00 [11:41:01]line Место: АЗС № 140 "Партнер Нефть" [11:41:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:41:01]line СНО: Общий режим [11:41:01]line Чек 166 13.07.2024 11:41 [11:41:01]line Смена: 462 ФФД: 1.0 [11:41:01]line ЗНМ: 0300000129 [11:41:01]line РНМ: 0000000000090858 [11:41:01]line Версия ККМ: 001 [11:41:01]line ФМ: 0000000000874899 [11:41:01]line ФД: 162498 [11:41:01]line ФПД: 9737759665488 [11:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114114&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162498&fm=9737759665488&tin=02508201610067®Number=0000000000090858&sum=70000 [11:41:02]OFD Sender: Processing packet 162498 [packets to send 105, broken 104] [11:41:02]ProducePacketName [11:41:02]name=ofd_packets/00162498 [11:41:02]OFD Sender: To server: pG, [11:41:02]CommunicateWithHost lk.salyk.kg:30040 [11:41:02]ConnectInit lk.salyk.kg [11:41:02]written 0, free lines is 4095 [11:41:02]Connected sock=6 [11:41:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 E1 07 01 3E 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 DA 67 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C2 7A 02 00 35 04 06 00 08 DB 3F B4 AD 50 4F 2D 2A 06 82 3A D6 A2 [11:41:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 49 CB 47 00 7D 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 34 38 39 39 10 04 04 00 C2 7A 02 00 F4 03 04 00 EE 13 92 66 B6 04 01 00 00 CB 47 41 D7 3E E9 13 DA [11:41:02]CommunicateWithHost err = 0 [11:41:02]CheckOFDResponse [11:41:02]1017 (14) - 77093643461234 [11:41:02]1041 (16) - 0000000000874899 [11:41:02]1040 (4) - 162498 [11:41:02]1012 (4) - 13.07.2024 05:43 [11:41:02]1206 (1) - 0 [11:41:02]OFD Sender: Remove packet 162498 [11:41:02]ProducePacketName [11:41:02]name=ofd_packets/00162498 [11:41:02]NVStorageDeleteData [11:41:02]Write to MH i2c: 01 00 00 DB 1E F9 [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: 01 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: 01 07 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: 01 07 00 DB 1E 00 00 00 00 00 D4 0C E0 [11:41:02]RasterBufferAndPrint [11:41:02]line [11:41:02]line [11:41:02]line [11:41:02]line [11:41:02]line [11:41:02]written 0, free lines is 3294 [11:41:02]MH_Cut [11:41:02]Write to MH i2c: D1 01 00 E2 1E 01 D2 [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: D1 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: D1 01 00 [11:41:02]MH_I2C_Read... [11:41:02]Read from MH i2c: D1 01 00 E2 1E 00 D1 [11:41:02]Write to MH i2c: 01 00 00 E3 1E 01 [11:41:02]Write i2c OK [11:41:02]MH_I2C_Read... [11:41:02]OFD Sender: No OFD packet to send [11:41:03]*** Cut start [11:41:03]*** Purtial cut [11:41:03]*** Stage 1: CUTSNS_PIN = 1 [11:41:03]Read from MH i2c: 01 [11:41:03]MH_I2C_Read... [11:41:03]*** Stop cut motor [11:41:03]*** Cut end [11:41:03]Read from MH i2c: 01 07 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: 01 07 00 E3 1E 00 00 00 00 00 FF 0F 16 [11:41:03]process_action close_receipt done [11:41:03]requested_data is exist [11:41:03]produce_requested_data [11:41:03]requested_item fm.sn is exist - process it [11:41:03]wFMCommunicate request_size=4 [11:41:03]MH_SAM_APDU [11:41:03]CAPDU: 80 11 00 00 [11:41:03]Write to MH i2c: E2 08 00 E4 1E 80 11 00 00 00 00 00 00 7C [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:03]Read from MH i2c: E2 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 17 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 17 00 E4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DC [11:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:41:03]wFMCommunicate OK [11:41:03]requested_item fd.num is exist - process it [11:41:03]SAM_PROTO_GetFieldsCounters [11:41:03]wFMCommunicate request_size=4 [11:41:03]MH_SAM_APDU [11:41:03]CAPDU: 80 13 00 00 [11:41:03]Write to MH i2c: E2 08 00 E5 1E 80 13 00 00 00 00 00 00 7F [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:03]Read from MH i2c: E2 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 62 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 62 00 E5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [11:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:03]wFMCommunicate OK [11:41:03]SAM_PROTO_GetFieldsCounters done [11:41:03]requested_item shift.num is exist - process it [11:41:03]requested_item shift.opened is exist - process it [11:41:03]req_shift_opened [11:41:03]FM_GetShiftState [11:41:03]SAM_PROTO_GetShiftState [11:41:03]wFMCommunicate request_size=4 [11:41:03]MH_SAM_APDU [11:41:03]CAPDU: 80 13 01 00 [11:41:03]Write to MH i2c: E2 08 00 E6 1E 80 13 01 00 00 00 00 00 81 [11:41:03]Write i2c OK [11:41:03]MH_I2C_Read... [11:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:03]Read from MH i2c: E2 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 0E 00 [11:41:03]MH_I2C_Read... [11:41:03]Read from MH i2c: E2 0E 00 E6 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7B [11:41:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:41:03]wFMCommunicate OK [11:41:03]SAM_PROTO_GetShiftState done [11:41:03]FM_GetShiftState done [11:41:03]req_shift_opened done [11:41:03]requested_item shift.open_date is exist - process it [11:41:03]req_shift_open_date [11:41:03]req_shift_open_date done [11:41:03]produce_requested_data done [11:41:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162498,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:41:03]process_action_free close_receipt [11:41:03]json_value_free [11:41:03]json_value_free done [11:41:03]process_json_proto returns [11:41:03]Send response to host [11:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162498,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:41:03]free response buf [11:41:03]execute_script done [11:41:03]execute_script returns [11:41:03]free content buf [11:41:03]Sock 8.Close socket [11:41:03]Sock 8.Thread stoped [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]OFD Sender: No OFD packet to send [11:41:22]OFD Sender: No OFD packet to send [11:41:27]OFD Sender: No OFD packet to send [11:41: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:35]accept exits with 9 [11:43:35]New connection [11:43:35]New thread 3066862948 created [11:43:35]Thread 3067006308 joined [11:43:35]Waiting for new connection... [11:43:35] Sock 9.Parse request [11:43:35]Sock 9.Check first char [11:43:35]Sock 9.First char is OK [11:43:35]request: POST /json_proto HTTP/1.0 [11:43:35]Method: POST [11:43:35]URL: /json_proto [11:43:35]Method is POST - this is cgi request [11:43:35]url: /json_proto [11:43:35]query_string will be loaded in cgi processing [11:43:35]execute_cgi json_proto POST (null) [11:43:35]execute_cgi path=json_proto method=POST [11:43:35]POST find Content-Length [11:43:35]Host: 172.17.39.67:8080 [11:43:35]Content-Length: 809 [11:43:35]Content-Type: application/json [11:43:35] [11:43:35]POST finish read [11:43:35]Found Content-Length = 809 [11:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 98.630, "sum" : 7160.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" : 7160.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:35]execute_script... [11:43: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)1319038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 98.630, "sum" : 7160.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" : 7160.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:35]POST & json_proto [11:43:35]process_json_proto [11:43:35]json parsed OK: [11:43:35]protocol is kg_v1.0 [11:43:35]action value=close_receipt [11:43:35]process_action close_receipt [11:43:35]cmd_close_receipt [11:43:35]MH_GetDate [11:43:35]Write to MH i2c: F0 00 00 E7 1E F4 [11:43:35]Write i2c OK [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: F0 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: F0 09 00 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: F0 09 00 E7 1E 00 75 68 92 66 FA E9 8E 66 A9 [11:43:35]GetLastDocTimeStamp 1720870874 [11:43:35]current date 1720871029 [11:43:35]FM_GetShiftState [11:43:35]SAM_PROTO_GetShiftState [11:43:35]wFMCommunicate request_size=4 [11:43:35]MH_SAM_APDU [11:43:35]CAPDU: 80 13 01 00 [11:43:35]Write to MH i2c: E2 08 00 E8 1E 80 13 01 00 00 00 00 00 83 [11:43:35]Write i2c OK [11:43:35]MH_I2C_Read... [11:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:35]Read from MH i2c: E2 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 0E 00 [11:43:35]MH_I2C_Read... [11:43:35]Read from MH i2c: E2 0E 00 E8 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7D [11:43:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:43:35]wFMCommunicate OK [11:43:35]SAM_PROTO_GetShiftState done [11:43:35]FM_GetShiftState done [11:43:35]opened in 1720828979 [11:43:35]opened+sec_in_day 1720915379 [11:43:35]quantity*price = 716053 [11:43:35]sum+1 = 716055 [11:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7160.54 НСП 1% : 63.37 НДС 12% : 760.41 Наличными: 0.00 Безнал.: 7160.54 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 167 13.07.2024 11:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162499 ФПД: 226926669219547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114349&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162499&fm=226926669219547&tin=02508201610067®Number=0000000000090858&sum=716054 [11:43:36]StoreToDocumentArchive [11:43:36]shift 462 fd 162499 [11:43:36]save to /storage/0462/doc_00162499 [11:43:36]save last doc name /storage/0462/doc_00162499 to /storage/kkm_last_doc_name [11:43:36]save OK [11:43:36]Clear old archive folders... [11:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:43:36]tlvbuf is 017C0690 [11:43:36]SAM_PROTO_ClearQueue [11:43:36]wFMCommunicate request_size=4 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 09 00 00 [11:43:36]Write to MH i2c: E2 08 00 F5 1E 80 09 00 00 00 00 00 00 85 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 F5 1E 00 90 00 87 [11:43:36]RAPDU: 90 00 [11:43:36]wFMCommunicate OK [11:43:36]SAM_PROTO_ClearQueue done [11:43:36]KKMCreateOFDPacket [11:43:36]OFDProtocolAddRootSTLVToBuf [11:43:36]FM_MakeSignedData [11:43:36]FM_MakeSignedData [11:43:36]SAM_PROTO_SignData [11:43:36]wFMCommunicate request_size=4 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 0D 01 02 [11:43:36]Write to MH i2c: E2 08 00 F6 1E 80 0D 01 02 00 00 00 00 8D [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:36]Read from MH i2c: E2 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 [11:43:36]MH_I2C_Read... [11:43:36]Read from MH i2c: E2 03 00 F6 1E 00 90 00 88 [11:43:36]RAPDU: 90 00 [11:43:36]wFMCommunicate OK [11:43:36]wFMCommunicate request_size=255 [11:43:36]MH_SAM_APDU [11:43:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 81 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 16 ED 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 ED 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 29 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 ED 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 75 68 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7A 02 00 35 04 06 00 [11:43:36]Write to MH i2c: E2 02 01 F7 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 81 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 16 ED 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 ED 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 29 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 ED 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 75 68 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7A 02 00 35 04 06 00 00 00 E1 [11:43:36]Write i2c OK [11:43:36]MH_I2C_Read... [11:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:37]Read from MH i2c: E2 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 03 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 03 00 F7 1E 00 90 00 89 [11:43:37]RAPDU: 90 00 [11:43:37]wFMCommunicate OK [11:43:37]wFMCommunicate request_size=11 [11:43:37]MH_SAM_APDU [11:43:37]CAPDU: 80 0D 02 02 06 CE 63 7B 82 46 DB [11:43:37]Write to MH i2c: E2 0E 00 F8 1E 80 0D 02 02 06 00 CE 63 7B 82 46 DB 00 00 EB [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:37]Read from MH i2c: E2 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 03 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 03 00 F8 1E 00 90 00 8A [11:43:37]RAPDU: 90 00 [11:43:37]wFMCommunicate OK [11:43:37]wFMCommunicate request_size=4 [11:43:37]MH_SAM_APDU [11:43:37]CAPDU: 80 0D 03 02 [11:43:37]Write to MH i2c: E2 08 00 F9 1E 80 0D 03 02 00 00 00 00 92 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:37]Read from MH i2c: E2 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 0B 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 0B 00 F9 1E 00 63 38 4A 21 C7 18 3F 84 90 00 3B [11:43:37]RAPDU: 63 38 4A 21 C7 18 3F 84 90 00 [11:43:37]wFMCommunicate OK [11:43:37]SAM_PROTO_SignData done [11:43:37]FM_MakeSignedData done [11:43:37]CreateOFDProtocolMessage [11:43:37]wFMCommunicate request_size=4 [11:43:37]MH_SAM_APDU [11:43:37]CAPDU: 80 11 00 00 [11:43:37]Write to MH i2c: E2 08 00 FA 1E 80 11 00 00 00 00 00 00 92 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:37]Read from MH i2c: E2 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 17 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: E2 17 00 FA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F2 [11:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:43:37]wFMCommunicate OK [11:43:37]CreateOFDProtocolMessage done [11:43:37]OFDSenderStorePacket 162499 [11:43:37]StoreOFDPacket docnum=162499 [11:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F4 C3 08 01 39 B5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 81 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 16 ED 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 ED 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 29 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 ED 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 75 68 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7A 02 00 35 04 06 00 CE 63 7B 82 46 DB 63 38 4A 21 C7 18 3F 84 [11:43:37]CheckFolder [11:43:37]dirname=/storage/ofd_packets [11:43:37]CheckFolder done [11:43:37]ProducePacketName [11:43:37]name=ofd_packets/00162499 [11:43:37]NVStorageSaveData ofd_packets/00162499 [11:43:37]File name is /storage/ofd_packets/00162499 [11:43:37]Write 302 bytes [11:43:37]NVStorageSaveData done [11:43:37]OFDSenderStorePacket done [11:43:37]KKMCreateOFDPacket done [11:43:37]NVStorageSaveData kkm_last_timestamp [11:43:37]File name is /storage/kkm_last_timestamp [11:43:37]Write 4 bytes [11:43:37]NVStorageSaveData done [11:43:37]ExternCall_PrintAddStr [11:43:37]wPrintStart [11:43:37]Write to MH i2c: 01 00 00 FB 1E 19 [11:43:37]Write i2c OK [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 [11:43:37]MH_I2C_Read... [11:43:37]Read from MH i2c: 01 07 00 FB 1E 00 00 00 00 00 FF 0F 2E [11:43:37]RasterBufferAndPrint [11:43:37]line Счет N : (1)1319038 [11:43:37]line ИНН: 02508201610067 [11:43:37]line Контрольно-Кассовый Чек [11:43:37]line ПРОДАЖА [11:43:37]line ТРК (МРК, ГНК) : 41 [11:43:37]line Товар: 2710194210 [11:43:37]line ДТ(л)-К-5 [11:43:37]line 98.630 * 72.60 [11:43:37]line = 7160.54 [11:43:37]line НДС 12% НСП 1% [11:43:37]line > о реализуемом товаре [11:43:37]line ИТОГО: 7160.54 [11:43:37]line НСП 1% : 63.37 [11:43:37]line НДС 12% : 760.41 [11:43:37]line Наличными: 0.00 [11:43:37]line Безнал.: 7160.54 [11:43:37]line Место: АЗС № 140 "Партнер Нефть" [11:43:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:43:37]line СНО: Общий режим [11:43:37]line Чек 167 13.07.2024 11:43 [11:43:37]line Смена: 462 ФФД: 1.0 [11:43:37]line ЗНМ: 0300000129 [11:43:37]line РНМ: 0000000000090858 [11:43:37]line Версия ККМ: 001 [11:43:37]line Платежная система: O! деньги [11:43:37]line ФМ: 0000000000874899 [11:43:37]line ФД: 162499 [11:43:37]line ФПД: 226926669219547 [11:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T114349&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162499&fm=226926669219547&tin=02508201610067®Number=0000000000090858&sum=716054 [11:43:37]OFD Sender: Processing packet 162499 [packets to send 105, broken 104] [11:43:37]ProducePacketName [11:43:37]name=ofd_packets/00162499 [11:43:37]OFD Sender: To server: pG, [11:43:37]CommunicateWithHost lk.salyk.kg:30040 [11:43:37]ConnectInit lk.salyk.kg [11:43:37]written 0, free lines is 4095 [11:43:37]Connected sock=10 [11:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F4 C3 08 01 39 B5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 81 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 16 ED 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 ED 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 29 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 ED 0A 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 75 68 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7A 02 00 35 04 06 00 CE 63 7B 82 46 DB 63 38 4A 21 C7 18 3F 84 [11:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5D 89 47 00 74 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C3 7A 02 00 F4 03 04 00 8A 14 92 66 B6 04 01 00 00 15 3C DD 07 64 09 48 66 [11:43:38]CommunicateWithHost err = 0 [11:43:38]CheckOFDResponse [11:43:38]1017 (14) - 77093643461234 [11:43:38]1041 (16) - 0000000000874899 [11:43:38]1040 (4) - 162499 [11:43:38]1012 (4) - 13.07.2024 05:45 [11:43:38]1206 (1) - 0 [11:43:38]OFD Sender: Remove packet 162499 [11:43:38]ProducePacketName [11:43:38]name=ofd_packets/00162499 [11:43:38]NVStorageDeleteData [11:43:38]Write to MH i2c: 01 00 00 25 1F 44 [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: 01 07 00 25 1F 00 00 00 00 00 FB 0C 52 [11:43:38]RasterBufferAndPrint [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]line [11:43:38]written 0, free lines is 3329 [11:43:38]MH_Cut [11:43:38]Write to MH i2c: D1 01 00 2C 1F 01 1D [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 01 00 [11:43:38]MH_I2C_Read... [11:43:38]Read from MH i2c: D1 01 00 2C 1F 00 1C [11:43:38]Write to MH i2c: 01 00 00 2D 1F 4C [11:43:38]Write i2c OK [11:43:38]MH_I2C_Read... [11:43:38]OFD Sender: No OFD packet to send [11:43:38]*** Cut start [11:43:38]*** Purtial cut [11:43:38]*** CUTSNS_PIN = 0 [11:43:39]*** Stage 1: CUTSNS_PIN = 1 [11:43:40]Read from MH i2c: 01 [11:43:40]MH_I2C_Read... [11:43:40]*** Stop cut motor [11:43:40]*** Cut end [11:43:40]Read from MH i2c: 01 07 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: 01 07 00 2D 1F 00 00 00 00 00 FF 0F 61 [11:43:40]process_action close_receipt done [11:43:40]requested_data is exist [11:43:40]produce_requested_data [11:43:40]requested_item fm.sn is exist - process it [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 11 00 00 [11:43:40]Write to MH i2c: E2 08 00 2E 1F 80 11 00 00 00 00 00 00 C7 [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:40]Read from MH i2c: E2 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 17 00 [11:43:40]MH_I2C_Read... [11:43:40]Read from MH i2c: E2 17 00 2E 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 27 [11:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:43:40]wFMCommunicate OK [11:43:40]requested_item fd.num is exist - process it [11:43:40]SAM_PROTO_GetFieldsCounters [11:43:40]wFMCommunicate request_size=4 [11:43:40]MH_SAM_APDU [11:43:40]CAPDU: 80 13 00 00 [11:43:40]Write to MH i2c: E2 08 00 2F 1F 80 13 00 00 00 00 00 00 CA [11:43:40]Write i2c OK [11:43:40]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 62 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 62 00 2F 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [11:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:41]wFMCommunicate OK [11:43:41]SAM_PROTO_GetFieldsCounters done [11:43:41]requested_item shift.num is exist - process it [11:43:41]requested_item shift.opened is exist - process it [11:43:41]req_shift_opened [11:43:41]FM_GetShiftState [11:43:41]SAM_PROTO_GetShiftState [11:43:41]wFMCommunicate request_size=4 [11:43:41]MH_SAM_APDU [11:43:41]CAPDU: 80 13 01 00 [11:43:41]Write to MH i2c: E2 08 00 30 1F 80 13 01 00 00 00 00 00 CC [11:43:41]Write i2c OK [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 [11:43:41]MH_I2C_Read... [11:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:41]Read from MH i2c: E2 0E 00 [11:43:41]MH_I2C_Read... [11:43:41]Read from MH i2c: E2 0E 00 30 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C6 [11:43:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:43:41]wFMCommunicate OK [11:43:41]SAM_PROTO_GetShiftState done [11:43:41]FM_GetShiftState done [11:43:41]req_shift_opened done [11:43:41]requested_item shift.open_date is exist - process it [11:43:41]req_shift_open_date [11:43:41]req_shift_open_date done [11:43:41]produce_requested_data done [11:43:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162499,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:43:41]process_action_free close_receipt [11:43:41]json_value_free [11:43:41]json_value_free done [11:43:41]process_json_proto returns [11:43:41]Send response to host [11:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162499,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:43:41]free response buf [11:43:41]execute_script done [11:43:41]execute_script returns [11:43:41]free content buf [11:43:41]Sock 9.Close socket [11:43:41]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]accept exits with 8 [11:49:58]New connection [11:49:58]New thread 3067006308 created [11:49:58]Thread 3066862948 joined [11:49:58]Waiting for new connection... [11:49:58] Sock 8.Parse request [11:49:58]Sock 8.Check first char [11:49:58]Sock 8.First char is OK [11:49:58]request: POST /json_proto HTTP/1.0 [11:49:58]Method: POST [11:49:58]URL: /json_proto [11:49:58]Method is POST - this is cgi request [11:49:58]url: /json_proto [11:49:58]query_string will be loaded in cgi processing [11:49:58]execute_cgi json_proto POST (null) [11:49:58]execute_cgi path=json_proto method=POST [11:49:58]POST find Content-Length [11:49:58]Host: 172.17.39.67:8080 [11:49:58]Content-Length: 1175 [11:49:58]Content-Type: application/json [11:49:58] [11:49:58]POST finish read [11:49:58]Found Content-Length = 1175 [11:49:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319040\u000A13.07.2024 11:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1657.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102596\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:58]execute_script... [11:49:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319040\u000A13.07.2024 11:47\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1657.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102596\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:58]POST & json_proto [11:49:58]process_json_proto [11:49:58]json parsed OK: [11:49:58]protocol is kg_v1.0 [11:49:58]action value=print_text [11:49:58]process_action print_text [11:49:58]cmd_print_text [11:49:58]ExternCall_PrintAddStr [11:49:58]wPrintStart [11:49:58]Write to MH i2c: 01 00 00 31 1F 50 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 07 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 07 00 31 1F 00 00 00 00 00 FF 0F 65 [11:49:58]RasterBufferAndPrint [11:49:58]line *****ТОВАРНЫЙ ЧЕК***** [11:49:58]line АЗС 140 [11:49:58]line Партнер нефть [11:49:58]line 02508201610067 [11:49:58]line Кассир : Шамбеталиев А. [11:49:58]line Счет N : (1)1319040 [11:49:58]line 13.07.2024 11:47 [11:49:58]line ПРОДАЖА [11:49:58]line ТРК (МРК, ГНК): 53 [11:49:58]line Вид ГСМ : 2710124130 [11:49:58]line Аи-92-К-5 [11:49:58]line 25.000 x 66.30 [11:49:58]line ИТОГ: 1657.50 [11:49:58]line Тип оплаты: Талоны: ТК ГПНА Online [11:49:58]line 30102596 [11:49:58]line ______________________ [11:49:58]line (подпись) [11:49:58]written 0, free lines is 4095 [11:49:58]Write to MH i2c: 01 00 00 46 1F 65 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 07 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 07 00 46 1F 00 00 00 00 00 F3 0D 6C [11:49:58]RasterBufferAndPrint [11:49:58]line [11:49:58]line [11:49:58]line [11:49:58]line [11:49:58]line [11:49:58]written 0, free lines is 3573 [11:49:58]MH_Cut [11:49:58]Write to MH i2c: D1 01 00 4D 1F 01 3E [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: D1 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: D1 01 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: D1 01 00 4D 1F 00 3D [11:49:58]Write to MH i2c: 01 00 00 4E 1F 6D [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]OFD Sender: No OFD packet to send [11:49:59]int [11:49:59]*** FLAG_PRN_PAP2 set [11:49:59]*** Cut start [11:49:59]*** Purtial cut [11:49:59]*** Stage 1: CUTSNS_PIN = 1 [11:49:59]Read from MH i2c: 01 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: 01 07 00 [11:49:59]MH_I2C_Read... [11:49:59]*** Stop cut motor [11:49:59]*** Cut end [11:49:59]Read from MH i2c: 01 07 00 4E 1F 00 02 00 00 00 FF 0F 84 [11:49:59]process_action print_text done [11:49:59]requested_data is exist [11:49:59]produce_requested_data [11:49:59]requested_item fm.sn is exist - process it [11:49:59]wFMCommunicate request_size=4 [11:49:59]MH_SAM_APDU [11:49:59]CAPDU: 80 11 00 00 [11:49:59]Write to MH i2c: E2 08 00 4F 1F 80 11 00 00 00 00 00 00 E8 [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:59]Read from MH i2c: E2 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 17 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 17 00 4F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 48 [11:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:49:59]wFMCommunicate OK [11:49:59]requested_item fd.num is exist - process it [11:49:59]SAM_PROTO_GetFieldsCounters [11:49:59]wFMCommunicate request_size=4 [11:49:59]MH_SAM_APDU [11:49:59]CAPDU: 80 13 00 00 [11:49:59]Write to MH i2c: E2 08 00 50 1F 80 13 00 00 00 00 00 00 EB [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:59]Read from MH i2c: E2 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 62 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 62 00 50 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [11:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:59]wFMCommunicate OK [11:49:59]SAM_PROTO_GetFieldsCounters done [11:49:59]requested_item shift.num is exist - process it [11:49:59]requested_item shift.opened is exist - process it [11:49:59]req_shift_opened [11:49:59]FM_GetShiftState [11:49:59]SAM_PROTO_GetShiftState [11:49:59]wFMCommunicate request_size=4 [11:49:59]MH_SAM_APDU [11:49:59]CAPDU: 80 13 01 00 [11:49:59]Write to MH i2c: E2 08 00 51 1F 80 13 01 00 00 00 00 00 ED [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:59]Read from MH i2c: E2 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 0E 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: E2 0E 00 51 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E7 [11:49:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:49:59]wFMCommunicate OK [11:49:59]SAM_PROTO_GetShiftState done [11:49:59]FM_GetShiftState done [11:49:59]req_shift_opened done [11:49:59]requested_item shift.open_date is exist - process it [11:49:59]req_shift_open_date [11:49:59]req_shift_open_date done [11:49:59]produce_requested_data done [11:49:59]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162499,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:49:59]process_action_free print_text [11:49:59]json_value_free [11:49:59]json_value_free done [11:49:59]process_json_proto returns [11:49:59]Send response to host [11:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162499,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:49:59]free response buf [11:49:59]execute_script done [11:49:59]execute_script returns [11:49:59]free content buf [11:49:59]Sock 8.Close socket [11:49:59]Sock 8.Thread stoped [11:49:59]Write to MH i2c: 01 00 00 52 1F 71 [11:49:59]Write i2c OK [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: 01 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: 01 07 00 [11:49:59]MH_I2C_Read... [11:49:59]Read from MH i2c: 01 07 00 52 1F 00 02 00 00 00 FF 0F 88 [11:49:59]state=0 [11:49:59]Cover opened [11:50:03]OFD Sender: No OFD packet to send [11:50:04]Write to MH i2c: 01 00 00 53 1F 72 [11:50:04]Write i2c OK [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: 01 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: 01 07 00 [11:50:04]MH_I2C_Read... [11:50:04]Read from MH i2c: 01 07 00 53 1F 00 02 00 00 00 FF 0F 89 [11:50:04]state=3 [11:50:04]Cover opened [11:50:08]int [11:50:08]Write to MH i2c: 01 00 00 54 1F 73 [11:50:08]*** FLAG_PRN_PAP1 set [11:50:08]Write i2c OK [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: 01 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: 01 07 00 [11:50:08]MH_I2C_Read... [11:50:08]Read from MH i2c: 01 07 00 54 1F 00 03 00 00 00 FF 0F 8B [11:50:08]state=3 [11:50:08]No paper [11:50:08]Cover opened [11:50:08]OFD Sender: No OFD packet to send [11:50:13]Write to MH i2c: 01 00 00 55 1F 74 [11:50:13]Write i2c OK [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: 01 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: 01 07 00 [11:50:13]MH_I2C_Read... [11:50:13]Read from MH i2c: 01 07 00 55 1F 00 03 00 00 00 FF 0F 8C [11:50:13]state=3 [11:50:13]No paper [11:50:13]Cover opened [11:50:13]OFD Sender: No OFD packet to send [11:50:18]Write to MH i2c: 01 00 00 56 1F 75 [11:50:18]Write i2c OK [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 07 00 [11:50:18]MH_I2C_Read... [11:50:18]Read from MH i2c: 01 07 00 56 1F 00 03 00 00 00 FF 0F 8D [11:50:18]state=3 [11:50:18]No paper [11:50:18]Cover opened [11:50:18]OFD Sender: No OFD packet to send [11:50:23]Write to MH i2c: 01 00 00 57 1F 76 [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 07 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 07 00 57 1F 00 03 00 00 00 FF 0F 8E [11:50:23]state=3 [11:50:23]No paper [11:50:23]Cover opened [11:50:23]OFD Sender: No OFD packet to send [11:50:28]Write to MH i2c: 01 00 00 58 1F 77 [11:50:28]Write i2c OK [11:50:28]MH_I2C_Read... [11:50:28]Read from MH i2c: 01 [11:50:28]MH_I2C_Read... [11:50:28]Read from MH i2c: 01 07 00 [11:50:28]MH_I2C_Read... [11:50:28]Read from MH i2c: 01 07 00 58 1F 00 03 00 00 00 FF 0F 8F [11:50:28]state=3 [11:50:28]No paper [11:50:28]Cover opened [11:50:28]OFD Sender: No OFD packet to send [11:50:33]Write to MH i2c: 01 00 00 59 1F 78 [11:50:33]Write i2c OK [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: 01 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: 01 07 00 [11:50:33]MH_I2C_Read... [11:50:33]Read from MH i2c: 01 07 00 59 1F 00 03 00 00 00 FF 0F 90 [11:50:33]state=3 [11:50:33]No paper [11:50:33]Cover opened [11:50:34]OFD Sender: No OFD packet to send [11:50:37]int [11:50:37]Write to MH i2c: 01 00 00 5A 1F 79 [11:50:37]*** FLAG_PRN_PAP2 reset [11:50:37]Write i2c OK [11:50:37]MH_I2C_Read... [11:50:37]Read from MH i2c: 01 [11:50:37]MH_I2C_Read... [11:50:37]Read from MH i2c: 01 07 00 [11:50:37]MH_I2C_Read... [11:50:37]Read from MH i2c: 01 07 00 5A 1F 00 01 00 00 00 FF 0F 8F [11:50:37]state=3 [11:50:37]No paper [11:50:37]Cover closed [11:50:37]int [11:50:37]Write to MH i2c: 01 00 00 5B 1F 7A [11:50:37]*** FLAG_PRN_PAP1 reset [11:50:37]Write i2c OK [11:50:37]MH_I2C_Read... [11:50:37]Read from MH i2c: 01 [11:50:37]MH_I2C_Read... [11:50:37]Read from MH i2c: 01 07 00 [11:50:37]MH_I2C_Read... [11:50:37]Read from MH i2c: 01 07 00 5B 1F 00 00 00 00 00 FF 0F 8F [11:50:37]state=0 [11:50:38]int [11:50:38]Write to MH i2c: 01 00 00 5C 1F 7B [11:50:38]*** FLAG_PRN_PAP1 set [11:50:38]Write i2c OK [11:50:38]MH_I2C_Read... [11:50:38]Read from MH i2c: 01 [11:50:38]MH_I2C_Read... [11:50:38]Read from MH i2c: 01 07 00 [11:50:38]MH_I2C_Read... [11:50:38]Read from MH i2c: 01 07 00 5C 1F 00 01 00 00 00 FF 0F 91 [11:50:38]state=0 [11:50:38]No paper [11:50:38]int [11:50:38]Write to MH i2c: 01 00 00 5D 1F 7C [11:50:38]*** FLAG_PRN_PAP2 set [11:50:38]Write i2c OK [11:50:38]MH_I2C_Read... [11:50:38]Read from MH i2c: 01 [11:50:38]MH_I2C_Read... [11:50:38]Read from MH i2c: 01 07 00 [11:50:38]MH_I2C_Read... [11:50:38]Read from MH i2c: 01 07 00 5D 1F 00 03 00 00 00 FF 0F 94 [11:50:38]state=0 [11:50:38]No paper [11:50:38]Cover opened [11:50:39]OFD Sender: No OFD packet to send [11:50:39]int [11:50:39]Write to MH i2c: 01 00 00 5E 1F 7D [11:50:39]*** FLAG_PRN_PAP2 reset [11:50:39]Write i2c OK [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: 01 [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: 01 07 00 [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: 01 07 00 5E 1F 00 01 00 00 00 FF 0F 93 [11:50:39]state=3 [11:50:39]No paper [11:50:39]Cover closed [11:50:39]int [11:50:39]Write to MH i2c: 01 00 00 5F 1F 7E [11:50:39]*** FLAG_PRN_PAP1 reset [11:50:39]Write i2c OK [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: 01 [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: 01 07 00 [11:50:39]MH_I2C_Read... [11:50:39]Read from MH i2c: 01 07 00 5F 1F 00 00 00 00 00 FF 0F 93 [11:50:39]state=0 [11:50:44]OFD Sender: No OFD packet to send [11:50:46]accept exits with 9 [11:50:46]New connection [11:50:46]New thread 3066862948 created [11:50:46]Thread 3067006308 joined [11:50:46]Waiting for new connection... [11:50:46] Sock 9.Parse request [11:50:46]Sock 9.Check first char [11:50:46]Sock 9.First char is OK [11:50:46]request: POST /json_proto HTTP/1.0 [11:50:46]Method: POST [11:50:46]URL: /json_proto [11:50:46]Method is POST - this is cgi request [11:50:46]url: /json_proto [11:50:46]query_string will be loaded in cgi processing [11:50:46]execute_cgi json_proto POST (null) [11:50:46]execute_cgi path=json_proto method=POST [11:50:46]POST find Content-Length [11:50:46]Host: 172.17.39.67:8080 [11:50:46]Content-Length: 215 [11:50:46]Content-Type: application/json [11:50:46] [11:50:46]POST finish read [11:50:46]Found Content-Length = 215 [11:50:46]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" ] } } [11:50:46]execute_script... [11:50:46]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" ] } } [11:50:46]POST & json_proto [11:50:46]process_json_proto [11:50:46]json parsed OK: [11:50:46]protocol is kg_v1.0 [11:50:46]action value=get_value [11:50:46]process_action get_value [11:50:46]cmd_get_value [11:50:46]process_action get_value done [11:50:46]requested_data is exist [11:50:46]produce_requested_data [11:50:46]requested_item kkm.sn is exist - process it [11:50:46]requested_item kkm.ver is exist - process it [11:50:46]requested_item fm.sn is exist - process it [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 11 00 00 [11:50:46]Write to MH i2c: E2 08 00 60 1F 80 11 00 00 00 00 00 00 F9 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 17 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 17 00 60 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [11:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:50:46]wFMCommunicate OK [11:50:46]requested_item fd.num is exist - process it [11:50:46]SAM_PROTO_GetFieldsCounters [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 13 00 00 [11:50:46]Write to MH i2c: E2 08 00 61 1F 80 13 00 00 00 00 00 00 FC [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 62 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 62 00 61 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [11:50:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:46]wFMCommunicate OK [11:50:46]SAM_PROTO_GetFieldsCounters done [11:50:46]requested_item shift.num is exist - process it [11:50:46]requested_item shift.opened is exist - process it [11:50:46]req_shift_opened [11:50:46]FM_GetShiftState [11:50:46]SAM_PROTO_GetShiftState [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 13 01 00 [11:50:46]Write to MH i2c: E2 08 00 62 1F 80 13 01 00 00 00 00 00 FE [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:46]Read from MH i2c: E2 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 0E 00 [11:50:46]MH_I2C_Read... [11:50:46]Read from MH i2c: E2 0E 00 62 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F8 [11:50:46]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:50:46]wFMCommunicate OK [11:50:46]SAM_PROTO_GetShiftState done [11:50:46]FM_GetShiftState done [11:50:46]req_shift_opened done [11:50:46]requested_item shift.open_date is exist - process it [11:50:46]req_shift_open_date [11:50:46]req_shift_open_date done [11:50:46]produce_requested_data done [11:50:46]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162499,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:50:46]process_action_free get_value [11:50:46]json_value_free [11:50:46]json_value_free done [11:50:46]process_json_proto returns [11:50:46]Send response to host [11:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162499,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:50:46]free response buf [11:50:46]execute_script done [11:50:46]execute_script returns [11:50:46]free content buf [11:50:46]Sock 9.Close socket [11:50:46]Sock 9.Thread stoped [11:50:46]accept exits with 8 [11:50:46]New connection [11:50:46]New thread 3067006308 created [11:50:46]Thread 3066862948 joined [11:50:46]Waiting for new connection... [11:50:46] Sock 8.Parse request [11:50:46]Sock 8.Check first char [11:50:46]Sock 8.First char is OK [11:50:46]request: POST /json_proto HTTP/1.0 [11:50:46]Method: POST [11:50:46]URL: /json_proto [11:50:46]Method is POST - this is cgi request [11:50:46]url: /json_proto [11:50:46]query_string will be loaded in cgi processing [11:50:46]execute_cgi json_proto POST (null) [11:50:46]execute_cgi path=json_proto method=POST [11:50:46]POST find Content-Length [11:50:46]Host: 172.17.39.67:8080 [11:50:46]Content-Length: 331 [11:50:46]Content-Type: application/json [11:50:46] [11:50:46]POST finish read [11:50:46]Found Content-Length = 331 [11:50:46]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" ] } } [11:50:46]execute_script... [11:50:46]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" ] } } [11:50:46]POST & json_proto [11:50:46]process_json_proto [11:50:46]json parsed OK: [11:50:46]protocol is kg_v1.0 [11:50:46]action value=get_value [11:50:46]process_action get_value [11:50:46]cmd_get_value [11:50:46]process_action get_value done [11:50:46]requested_data is exist [11:50:46]produce_requested_data [11:50:46]requested_item fm.sale.total is exist - process it [11:50:46]SAM_PROTO_GetFMData [11:50:46]wFMCommunicate request_size=4 [11:50:46]MH_SAM_APDU [11:50:46]CAPDU: 80 13 03 00 [11:50:46]Write to MH i2c: E2 08 00 63 1F 80 13 03 00 00 00 00 00 01 [11:50:46]Write i2c OK [11:50:46]MH_I2C_Read... [11:50:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 FD 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 FD 00 63 1F 00 C1 04 85 04 BD 04 6E 04 04 00 27 77 02 00 69 04 A3 00 6F 04 04 00 14 77 02 00 B1 04 05 00 16 DE A3 52 03 70 04 05 00 00 9A 84 B1 02 72 04 04 00 16 44 1F A1 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 FD DC 5A 5A 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 F5 6C 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 EB [11:50:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 27 77 02 00 69 04 A3 00 6F 04 04 00 14 77 02 00 B1 04 05 00 16 DE A3 52 03 70 04 05 00 00 9A 84 B1 02 72 04 04 00 16 44 1F A1 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 FD DC 5A 5A 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 F5 6C 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [11:50:47]wFMCommunicate OK [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 17 00 00 [11:50:47]Write to MH i2c: E2 08 00 64 1F 80 17 00 00 00 00 00 00 03 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 FD 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 FD 00 64 1F 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3C [11:50:47]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:50:47]wFMCommunicate OK [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 17 00 00 [11:50:47]Write to MH i2c: E2 08 00 65 1F 80 17 00 00 00 00 00 00 04 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 FD 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 FD 00 65 1F 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 [11:50:47]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 [11:50:47]wFMCommunicate OK [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 17 00 00 [11:50:47]Write to MH i2c: E2 08 00 66 1F 80 17 00 00 00 00 00 00 05 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:50:47]Read from MH i2c: E2 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 FD 00 [11:50:47]MH_I2C_Read... [11:50:47]Read from MH i2c: E2 FD 00 66 1F 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 [11:50:47]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 [11:50:47]wFMCommunicate OK [11:50:47]wFMCommunicate request_size=4 [11:50:47]MH_SAM_APDU [11:50:47]CAPDU: 80 17 00 00 [11:50:47]Write to MH i2c: E2 08 00 67 1F 80 17 00 00 00 00 00 00 06 [11:50:47]Write i2c OK [11:50:47]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 DE 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 DE 00 67 1F 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [11:50:48]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 [11:50:48]wFMCommunicate OK [11:50:48]SAM_PROTO_GetFMData done [11:50:48]requested_item fm.sale_refund.total is exist - process it [11:50:48]requested_item fm.buy.total is exist - process it [11:50:48]requested_item shift.sale.total is exist - process it [11:50:48]SAM_PROTO_GetShiftData [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 13 02 00 [11:50:48]Write to MH i2c: E2 08 00 68 1F 80 13 02 00 00 00 00 00 05 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 FD 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 FD 00 68 1F 00 B0 04 AA 04 AC 04 6E 04 04 00 A7 00 00 00 69 04 9D 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 CF D1 29 01 70 04 03 00 18 FF BA 72 04 03 00 B7 D2 6E 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 AC A2 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DC A2 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 A5 [11:50:48]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 A7 00 00 00 69 04 9D 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 CF D1 29 01 70 04 03 00 18 FF BA 72 04 03 00 B7 D2 6E 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 AC A2 1F EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 DC A2 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 [11:50:48]wFMCommunicate OK [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 17 00 00 [11:50:48]Write to MH i2c: E2 08 00 69 1F 80 17 00 00 00 00 00 00 08 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:50:48]Read from MH i2c: E2 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 FD 00 [11:50:48]MH_I2C_Read... [11:50:48]Read from MH i2c: E2 FD 00 69 1F 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 22 [11:50:48]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 [11:50:48]wFMCommunicate OK [11:50:48]wFMCommunicate request_size=4 [11:50:48]MH_SAM_APDU [11:50:48]CAPDU: 80 17 00 00 [11:50:48]Write to MH i2c: E2 08 00 6A 1F 80 17 00 00 00 00 00 00 09 [11:50:48]Write i2c OK [11:50:48]MH_I2C_Read... [11:50:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:50:49]OFD Sender: No OFD packet to send [11:50:49]Read from MH i2c: E2 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 FD 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 FD 00 6A 1F 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 C6 [11:50:49]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 [11:50:49]wFMCommunicate OK [11:50:49]wFMCommunicate request_size=4 [11:50:49]MH_SAM_APDU [11:50:49]CAPDU: 80 17 00 00 [11:50:49]Write to MH i2c: E2 08 00 6B 1F 80 17 00 00 00 00 00 00 0A [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:50:49]Read from MH i2c: E2 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 FD 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 FD 00 6B 1F 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 7D [11:50:49]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 [11:50:49]wFMCommunicate OK [11:50:49]wFMCommunicate request_size=4 [11:50:49]MH_SAM_APDU [11:50:49]CAPDU: 80 17 00 00 [11:50:49]Write to MH i2c: E2 08 00 6C 1F 80 17 00 00 00 00 00 00 0B [11:50:49]Write i2c OK [11:50:49]MH_I2C_Read... [11:50:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [11:50:49]Read from MH i2c: E2 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 CD 00 [11:50:49]MH_I2C_Read... [11:50:49]Read from MH i2c: E2 CD 00 6C 1F 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 EF [11:50:49]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 [11:50:49]wFMCommunicate OK [11:50:49]SAM_PROTO_GetShiftData done [11:50:49]requested_item shift.sale.total_cash is exist - process it [11:50:49]requested_item shift.sale_refund.total is exist - process it [11:50:49]requested_item shift.sale_refund.total_cash is exist - process it [11:50:49]requested_item shift.buy.total is exist - process it [11:50:49]requested_item shift.buy.total_cash is exist - process it [11:50:49]produce_requested_data done [11:50:49]produce_requested_data return {"fm.sale.total":142713728.22,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":195179.03,"shift.sale.total_cash":122550.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} [11:50:49]process_action_free get_value [11:50:49]json_value_free [11:50:49]json_value_free done [11:50:49]process_json_proto returns [11:50:49]Send response to host [11:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142713728.22,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":195179.03,"shift.sale.total_cash":122550.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}}} [11:50:49]free response buf [11:50:49]execute_script done [11:50:49]execute_script returns [11:50:49]free content buf [11:50:49]Sock 8.Close socket [11:50:49]Sock 8.Thread stoped [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:52]accept exits with 9 [11:53:52]New connection [11:53:52]New thread 3066862948 created [11:53:52]Thread 3067006308 joined [11:53:52]Waiting for new connection... [11:53:52] Sock 9.Parse request [11:53:52]Sock 9.Check first char [11:53:52]Sock 9.First char is OK [11:53:52]request: POST /json_proto HTTP/1.0 [11:53:52]Method: POST [11:53:52]URL: /json_proto [11:53:52]Method is POST - this is cgi request [11:53:52]url: /json_proto [11:53:52]query_string will be loaded in cgi processing [11:53:52]execute_cgi json_proto POST (null) [11:53:52]execute_cgi path=json_proto method=POST [11:53:52]POST find Content-Length [11:53:52]Host: 172.17.39.67:8080 [11:53:52]Content-Length: 683 [11:53:52]Content-Type: application/json [11:53:52] [11:53:52]POST finish read [11:53:52]Found Content-Length = 683 [11:53:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52]execute_script... [11:53: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)1319041", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 13.450, "sum" : 1000.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52]POST & json_proto [11:53:52]process_json_proto [11:53:52]json parsed OK: [11:53:52]protocol is kg_v1.0 [11:53:52]action value=close_receipt [11:53:52]process_action close_receipt [11:53:52]cmd_close_receipt [11:53:52]MH_GetDate [11:53:52]Write to MH i2c: F0 00 00 6D 1F 7B [11:53:52]Write i2c OK [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: F0 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: F0 09 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: F0 09 00 6D 1F 00 DE 6A 92 66 FA E9 8E 66 9B [11:53:52]GetLastDocTimeStamp 1720871029 [11:53:52]current date 1720871646 [11:53:52]FM_GetShiftState [11:53:52]SAM_PROTO_GetShiftState [11:53:52]wFMCommunicate request_size=4 [11:53:52]MH_SAM_APDU [11:53:52]CAPDU: 80 13 01 00 [11:53:52]Write to MH i2c: E2 08 00 6E 1F 80 13 01 00 00 00 00 00 0A [11:53:52]Write i2c OK [11:53:52]MH_I2C_Read... [11:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:52]Read from MH i2c: E2 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 0E 00 [11:53:52]MH_I2C_Read... [11:53:52]Read from MH i2c: E2 0E 00 6E 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 04 [11:53:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:53:52]wFMCommunicate OK [11:53:52]SAM_PROTO_GetShiftState done [11:53:52]FM_GetShiftState done [11:53:52]opened in 1720828979 [11:53:52]opened+sec_in_day 1720915379 [11:53:52]quantity*price = 100068 [11:53:52]sum+1 = 100069 [11:53:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.86 НДС 12% : 106.27 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 168 13.07.2024 11:54 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162500 ФПД: 162402329677382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115406&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162500&fm=162402329677382&tin=02508201610067®Number=0000000000090858&sum=100000 [11:53:53]StoreToDocumentArchive [11:53:53]shift 462 fd 162500 [11:53:53]save to /storage/0462/doc_00162500 [11:53:53]save last doc name /storage/0462/doc_00162500 to /storage/kkm_last_doc_name [11:53:53]save OK [11:53:53]Clear old archive folders... [11:53:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:53]tlvbuf is 01C686C0 [11:53:53]SAM_PROTO_ClearQueue [11:53:53]wFMCommunicate request_size=4 [11:53:53]MH_SAM_APDU [11:53:53]CAPDU: 80 09 00 00 [11:53:53]Write to MH i2c: E2 08 00 7B 1F 80 09 00 00 00 00 00 00 0C [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:53]Read from MH i2c: E2 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 03 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 03 00 7B 1F 00 90 00 0E [11:53:53]RAPDU: 90 00 [11:53:53]wFMCommunicate OK [11:53:53]SAM_PROTO_ClearQueue done [11:53:53]KKMCreateOFDPacket [11:53:53]OFDProtocolAddRootSTLVToBuf [11:53:53]FM_MakeSignedData [11:53:53]FM_MakeSignedData [11:53:53]SAM_PROTO_SignData [11:53:53]wFMCommunicate request_size=4 [11:53:53]MH_SAM_APDU [11:53:53]CAPDU: 80 0D 01 02 [11:53:53]Write to MH i2c: E2 08 00 7C 1F 80 0D 01 02 00 00 00 00 14 [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:53]Read from MH i2c: E2 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 03 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 03 00 7C 1F 00 90 00 0F [11:53:53]RAPDU: 90 00 [11:53:53]wFMCommunicate OK [11:53:53]wFMCommunicate request_size=255 [11:53:53]MH_SAM_APDU [11:53: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 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 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 DE 6A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7A 02 00 35 04 06 00 93 [11:53:53]Write to MH i2c: E2 02 01 7D 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 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 DE 6A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7A 02 00 35 04 06 00 93 00 00 87 [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:53]Read from MH i2c: E2 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 03 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 03 00 7D 1F 00 90 00 10 [11:53:53]RAPDU: 90 00 [11:53:53]wFMCommunicate OK [11:53:53]wFMCommunicate request_size=10 [11:53:53]MH_SAM_APDU [11:53:53]CAPDU: 80 0D 02 02 05 B4 3D 2B CE 46 [11:53:53]Write to MH i2c: E2 0D 00 7E 1F 80 0D 02 02 05 00 B4 3D 2B CE 46 00 00 51 [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:53]Read from MH i2c: E2 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 03 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 03 00 7E 1F 00 90 00 11 [11:53:53]RAPDU: 90 00 [11:53:53]wFMCommunicate OK [11:53:53]wFMCommunicate request_size=4 [11:53:53]MH_SAM_APDU [11:53:53]CAPDU: 80 0D 03 02 [11:53:53]Write to MH i2c: E2 08 00 7F 1F 80 0D 03 02 00 00 00 00 19 [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:53]Read from MH i2c: E2 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 0B 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 0B 00 7F 1F 00 8E B0 A1 BC FD B6 E2 07 90 00 51 [11:53:53]RAPDU: 8E B0 A1 BC FD B6 E2 07 90 00 [11:53:53]wFMCommunicate OK [11:53:53]SAM_PROTO_SignData done [11:53:53]FM_MakeSignedData done [11:53:53]CreateOFDProtocolMessage [11:53:53]wFMCommunicate request_size=4 [11:53:53]MH_SAM_APDU [11:53:53]CAPDU: 80 11 00 00 [11:53:53]Write to MH i2c: E2 08 00 80 1F 80 11 00 00 00 00 00 00 19 [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:53]Read from MH i2c: E2 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 17 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: E2 17 00 80 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 79 [11:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:53:53]wFMCommunicate OK [11:53:53]CreateOFDProtocolMessage done [11:53:53]OFDSenderStorePacket 162500 [11:53:53]StoreOFDPacket docnum=162500 [11:53:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BE 3F 07 01 ED E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 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 DE 6A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7A 02 00 35 04 06 00 93 B4 3D 2B CE 46 8E B0 A1 BC FD B6 E2 07 [11:53:53]CheckFolder [11:53:53]dirname=/storage/ofd_packets [11:53:53]CheckFolder done [11:53:53]ProducePacketName [11:53:53]name=ofd_packets/00162500 [11:53:53]NVStorageSaveData ofd_packets/00162500 [11:53:53]File name is /storage/ofd_packets/00162500 [11:53:53]Write 301 bytes [11:53:53]NVStorageSaveData done [11:53:53]OFDSenderStorePacket done [11:53:53]KKMCreateOFDPacket done [11:53:53]NVStorageSaveData kkm_last_timestamp [11:53:53]File name is /storage/kkm_last_timestamp [11:53:53]Write 4 bytes [11:53:53]NVStorageSaveData done [11:53:53]ExternCall_PrintAddStr [11:53:53]wPrintStart [11:53:53]Write to MH i2c: 01 00 00 81 1F A0 [11:53:53]Write i2c OK [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 07 00 [11:53:53]MH_I2C_Read... [11:53:53]Read from MH i2c: 01 07 00 81 1F 00 00 00 00 00 FF 0F B5 [11:53:53]RasterBufferAndPrint [11:53:53]line Счет N : (1)1319041 [11:53:53]line ИНН: 02508201610067 [11:53:53]line Контрольно-Кассовый Чек [11:53:53]line ПРОДАЖА [11:53:53]line ТРК (МРК, ГНК) : 44 [11:53:53]line Товар: 2710124500 [11:53:53]line Аи-95-К-5 [11:53:53]line 13.450 * 74.40 [11:53:53]line = 1000.68 [11:53:53]line НДС 12% НСП 1% [11:53:53]line > о реализуемом товаре [11:53:53]line ОКРУГЛЕНИЕ: -0.68 [11:53:53]line ИТОГО: 1000.00 [11:53:53]line Внесено: 1000.00 [11:53:53]line СДАЧА: 0.00 [11:53:53]line НСП 1% : 8.86 [11:53:53]line НДС 12% : 106.27 [11:53:53]line Наличными: 1000.00 [11:53:53]line Безнал.: 0.00 [11:53:53]line Место: АЗС № 140 "Партнер Нефть" [11:53:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:53:53]line СНО: Общий режим [11:53:53]line Чек 168 13.07.2024 11:54 [11:53:53]line Смена: 462 ФФД: 1.0 [11:53:53]line ЗНМ: 0300000129 [11:53:53]line РНМ: 0000000000090858 [11:53:53]line Версия ККМ: 001 [11:53:53]line ФМ: 0000000000874899 [11:53:53]line ФД: 162500 [11:53:53]line ФПД: 162402329677382 [11:53:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115406&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162500&fm=162402329677382&tin=02508201610067®Number=0000000000090858&sum=100000 [11:53:54]OFD Sender: Processing packet 162500 [packets to send 105, broken 104] [11:53:54]ProducePacketName [11:53:54]name=ofd_packets/00162500 [11:53:54]OFD Sender: To server: pG, [11:53:54]CommunicateWithHost lk.salyk.kg:30040 [11:53:54]ConnectInit lk.salyk.kg [11:53:54]written 0, free lines is 4095 [11:53:54]Connected sock=10 [11:53:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BE 3F 07 01 ED E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 34 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 E4 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 83 29 00 00 00 00 07 04 06 00 A0 86 01 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 DE 6A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7A 02 00 35 04 06 00 93 B4 3D 2B CE 46 8E B0 A1 BC FD B6 E2 07 [11:53:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 14 55 47 00 F7 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C4 7A 02 00 F4 03 04 00 F2 16 92 66 B6 04 01 00 00 EA C2 AF 21 7C 0F 01 DF [11:53:54]CommunicateWithHost err = 0 [11:53:54]CheckOFDResponse [11:53:54]1017 (14) - 77093643461234 [11:53:54]1041 (16) - 0000000000874899 [11:53:54]1040 (4) - 162500 [11:53:54]1012 (4) - 13.07.2024 05:56 [11:53:54]1206 (1) - 0 [11:53:54]OFD Sender: Remove packet 162500 [11:53:54]ProducePacketName [11:53:54]name=ofd_packets/00162500 [11:53:54]NVStorageDeleteData [11:53:54]Write to MH i2c: 01 00 00 AC 1F CB [11:53:54]Write i2c OK [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: 01 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: 01 07 00 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: 01 07 00 AC 1F 00 00 00 00 00 DE 0C BC [11:53:54]RasterBufferAndPrint [11:53:54]line [11:53:54]line [11:53:54]line [11:53:54]line [11:53:54]line [11:53:54]written 0, free lines is 3300 [11:53:54]MH_Cut [11:53:54]Write to MH i2c: D1 01 00 B3 1F 01 A4 [11:53:54]Write i2c OK [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: D1 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: D1 01 00 [11:53:54]MH_I2C_Read... [11:53:54]Read from MH i2c: D1 01 00 B3 1F 00 A3 [11:53:54]Write to MH i2c: 01 00 00 B4 1F D3 [11:53:54]Write i2c OK [11:53:54]MH_I2C_Read... [11:53:54]OFD Sender: No OFD packet to send [11:53:55]*** Cut start [11:53:55]*** Purtial cut [11:53:55]*** CUTSNS_PIN = 0 [11:53:55]*** Stage 1: CUTSNS_PIN = 1 [11:53:57]Read from MH i2c: 01 [11:53:57]MH_I2C_Read... [11:53:57]*** Stop cut motor [11:53:57]*** Cut end [11:53:57]Read from MH i2c: 01 07 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: 01 07 00 B4 1F 00 00 00 00 00 FF 0F E8 [11:53:57]process_action close_receipt done [11:53:57]requested_data is exist [11:53:57]produce_requested_data [11:53:57]requested_item fm.sn is exist - process it [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 11 00 00 [11:53:57]Write to MH i2c: E2 08 00 B5 1F 80 11 00 00 00 00 00 00 4E [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 17 00 B5 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AE [11:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:53:57]wFMCommunicate OK [11:53:57]requested_item fd.num is exist - process it [11:53:57]SAM_PROTO_GetFieldsCounters [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 13 00 00 [11:53:57]Write to MH i2c: E2 08 00 B6 1F 80 13 00 00 00 00 00 00 51 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 62 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 62 00 B6 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [11:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:57]wFMCommunicate OK [11:53:57]SAM_PROTO_GetFieldsCounters done [11:53:57]requested_item shift.num is exist - process it [11:53:57]requested_item shift.opened is exist - process it [11:53:57]req_shift_opened [11:53:57]FM_GetShiftState [11:53:57]SAM_PROTO_GetShiftState [11:53:57]wFMCommunicate request_size=4 [11:53:57]MH_SAM_APDU [11:53:57]CAPDU: 80 13 01 00 [11:53:57]Write to MH i2c: E2 08 00 B7 1F 80 13 01 00 00 00 00 00 53 [11:53:57]Write i2c OK [11:53:57]MH_I2C_Read... [11:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:57]Read from MH i2c: E2 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 0E 00 [11:53:57]MH_I2C_Read... [11:53:57]Read from MH i2c: E2 0E 00 B7 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4D [11:53:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:53:57]wFMCommunicate OK [11:53:57]SAM_PROTO_GetShiftState done [11:53:57]FM_GetShiftState done [11:53:57]req_shift_opened done [11:53:57]requested_item shift.open_date is exist - process it [11:53:57]req_shift_open_date [11:53:57]req_shift_open_date done [11:53:57]produce_requested_data done [11:53:57]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162500,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:53:57]process_action_free close_receipt [11:53:57]json_value_free [11:53:57]json_value_free done [11:53:57]process_json_proto returns [11:53:57]Send response to host [11:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162500,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:53:57]free response buf [11:53:57]execute_script done [11:53:57]execute_script returns [11:53:57]free content buf [11:53:57]Sock 9.Close socket [11:53:57]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:16]accept exits with 8 [11:56:16]New connection [11:56:16]New thread 3067006308 created [11:56:16]Thread 3066862948 joined [11:56:16]Waiting for new connection... [11:56:16] Sock 8.Parse request [11:56:16]Sock 8.Check first char [11:56:16]Sock 8.First char is OK [11:56:16]request: POST /json_proto HTTP/1.0 [11:56:16]Method: POST [11:56:16]URL: /json_proto [11:56:16]Method is POST - this is cgi request [11:56:16]url: /json_proto [11:56:16]query_string will be loaded in cgi processing [11:56:16]execute_cgi json_proto POST (null) [11:56:16]execute_cgi path=json_proto method=POST [11:56:16]POST find Content-Length [11:56:16]Host: 172.17.39.67:8080 [11:56:16]Content-Length: 678 [11:56:16]Content-Type: application/json [11:56:16] [11:56:16]POST finish read [11:56:16]Found Content-Length = 678 [11:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:16]execute_script... [11:56: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)1319043", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:16]POST & json_proto [11:56:16]process_json_proto [11:56:16]json parsed OK: [11:56:16]protocol is kg_v1.0 [11:56:16]action value=close_receipt [11:56:16]process_action close_receipt [11:56:16]cmd_close_receipt [11:56:16]MH_GetDate [11:56:16]Write to MH i2c: F0 00 00 B8 1F C6 [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: F0 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: F0 09 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: F0 09 00 B8 1F 00 6E 6B 92 66 FA E9 8E 66 77 [11:56:16]GetLastDocTimeStamp 1720871646 [11:56:16]current date 1720871790 [11:56:16]FM_GetShiftState [11:56:16]SAM_PROTO_GetShiftState [11:56:16]wFMCommunicate request_size=4 [11:56:16]MH_SAM_APDU [11:56:16]CAPDU: 80 13 01 00 [11:56:16]Write to MH i2c: E2 08 00 B9 1F 80 13 01 00 00 00 00 00 55 [11:56:16]Write i2c OK [11:56:16]MH_I2C_Read... [11:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:16]Read from MH i2c: E2 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 0E 00 [11:56:16]MH_I2C_Read... [11:56:16]Read from MH i2c: E2 0E 00 B9 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4F [11:56:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:56:16]wFMCommunicate OK [11:56:16]SAM_PROTO_GetShiftState done [11:56:16]FM_GetShiftState done [11:56:16]opened in 1720828979 [11:56:16]opened+sec_in_day 1720915379 [11:56:16]quantity*price = 50056 [11:56:16]sum+1 = 50058 [11:56:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 169 13.07.2024 11:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162501 ФПД: 229115922335028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115630&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162501&fm=229115922335028&tin=02508201610067®Number=0000000000090858&sum=50000 [11:56:17]StoreToDocumentArchive [11:56:17]shift 462 fd 162501 [11:56:17]save to /storage/0462/doc_00162501 [11:56:17]save last doc name /storage/0462/doc_00162501 to /storage/kkm_last_doc_name [11:56:17]save OK [11:56:17]Clear old archive folders... [11:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:56:17]tlvbuf is 01C7C4B0 [11:56:17]SAM_PROTO_ClearQueue [11:56:17]wFMCommunicate request_size=4 [11:56:17]MH_SAM_APDU [11:56:17]CAPDU: 80 09 00 00 [11:56:17]Write to MH i2c: E2 08 00 C6 1F 80 09 00 00 00 00 00 00 57 [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 03 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 03 00 C6 1F 00 90 00 59 [11:56:17]RAPDU: 90 00 [11:56:17]wFMCommunicate OK [11:56:17]SAM_PROTO_ClearQueue done [11:56:17]KKMCreateOFDPacket [11:56:17]OFDProtocolAddRootSTLVToBuf [11:56:17]FM_MakeSignedData [11:56:17]FM_MakeSignedData [11:56:17]SAM_PROTO_SignData [11:56:17]wFMCommunicate request_size=4 [11:56:17]MH_SAM_APDU [11:56:17]CAPDU: 80 0D 01 02 [11:56:17]Write to MH i2c: E2 08 00 C7 1F 80 0D 01 02 00 00 00 00 5F [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 03 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 03 00 C7 1F 00 90 00 5A [11:56:17]RAPDU: 90 00 [11:56:17]wFMCommunicate OK [11:56:17]wFMCommunicate request_size=255 [11:56:17]MH_SAM_APDU [11:56:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 6E 6B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7A 02 00 35 04 06 00 D0 [11:56:17]Write to MH i2c: E2 02 01 C8 1F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 6E 6B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7A 02 00 35 04 06 00 D0 00 00 75 [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 03 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 03 00 C8 1F 00 90 00 5B [11:56:17]RAPDU: 90 00 [11:56:17]wFMCommunicate OK [11:56:17]wFMCommunicate request_size=10 [11:56:17]MH_SAM_APDU [11:56:17]CAPDU: 80 0D 02 02 05 61 35 29 C5 34 [11:56:17]Write to MH i2c: E2 0D 00 C9 1F 80 0D 02 02 05 00 61 35 29 C5 34 00 00 24 [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 03 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 03 00 C9 1F 00 90 00 5C [11:56:17]RAPDU: 90 00 [11:56:17]wFMCommunicate OK [11:56:17]wFMCommunicate request_size=4 [11:56:17]MH_SAM_APDU [11:56:17]CAPDU: 80 0D 03 02 [11:56:17]Write to MH i2c: E2 08 00 CA 1F 80 0D 03 02 00 00 00 00 64 [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 0B 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 0B 00 CA 1F 00 73 4D F3 99 37 16 CC EF 90 00 B9 [11:56:17]RAPDU: 73 4D F3 99 37 16 CC EF 90 00 [11:56:17]wFMCommunicate OK [11:56:17]SAM_PROTO_SignData done [11:56:17]FM_MakeSignedData done [11:56:17]CreateOFDProtocolMessage [11:56:17]wFMCommunicate request_size=4 [11:56:17]MH_SAM_APDU [11:56:17]CAPDU: 80 11 00 00 [11:56:17]Write to MH i2c: E2 08 00 CB 1F 80 11 00 00 00 00 00 00 64 [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:17]Read from MH i2c: E2 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 17 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: E2 17 00 CB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C4 [11:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:56:17]wFMCommunicate OK [11:56:17]CreateOFDProtocolMessage done [11:56:17]OFDSenderStorePacket 162501 [11:56:17]StoreOFDPacket docnum=162501 [11:56:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2D 12 07 01 D4 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 6E 6B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7A 02 00 35 04 06 00 D0 61 35 29 C5 34 73 4D F3 99 37 16 CC EF [11:56:17]CheckFolder [11:56:17]dirname=/storage/ofd_packets [11:56:17]CheckFolder done [11:56:17]ProducePacketName [11:56:17]name=ofd_packets/00162501 [11:56:17]NVStorageSaveData ofd_packets/00162501 [11:56:17]File name is /storage/ofd_packets/00162501 [11:56:17]Write 301 bytes [11:56:17]NVStorageSaveData done [11:56:17]OFDSenderStorePacket done [11:56:17]KKMCreateOFDPacket done [11:56:17]NVStorageSaveData kkm_last_timestamp [11:56:17]File name is /storage/kkm_last_timestamp [11:56:17]Write 4 bytes [11:56:17]NVStorageSaveData done [11:56:17]ExternCall_PrintAddStr [11:56:17]wPrintStart [11:56:17]Write to MH i2c: 01 00 00 CC 1F EB [11:56:17]Write i2c OK [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: 01 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: 01 07 00 [11:56:17]MH_I2C_Read... [11:56:17]Read from MH i2c: 01 07 00 CC 1F 00 00 00 00 00 FF 0F 00 [11:56:17]RasterBufferAndPrint [11:56:17]line Счет N : (1)1319043 [11:56:17]line ИНН: 02508201610067 [11:56:17]line Контрольно-Кассовый Чек [11:56:17]line ПРОДАЖА [11:56:17]line ТРК (МРК, ГНК) : 53 [11:56:17]line Товар: 2710124130 [11:56:17]line Аи-92-К-5 [11:56:17]line 7.550 * 66.30 [11:56:17]line = 500.57 [11:56:17]line НДС 12% НСП 1% [11:56:17]line > о реализуемом товаре [11:56:17]line ОКРУГЛЕНИЕ: -0.57 [11:56:17]line ИТОГО: 500.00 [11:56:17]line Внесено: 500.00 [11:56:17]line СДАЧА: 0.00 [11:56:17]line НСП 1% : 4.43 [11:56:17]line НДС 12% : 53.16 [11:56:17]line Наличными: 500.00 [11:56:17]line Безнал.: 0.00 [11:56:17]line Место: АЗС № 140 "Партнер Нефть" [11:56:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:56:17]line СНО: Общий режим [11:56:17]line Чек 169 13.07.2024 11:56 [11:56:17]line Смена: 462 ФФД: 1.0 [11:56:17]line ЗНМ: 0300000129 [11:56:17]line РНМ: 0000000000090858 [11:56:17]line Версия ККМ: 001 [11:56:17]line ФМ: 0000000000874899 [11:56:17]line ФД: 162501 [11:56:17]line ФПД: 229115922335028 [11:56:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115630&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162501&fm=229115922335028&tin=02508201610067®Number=0000000000090858&sum=50000 [11:56:17]OFD Sender: Processing packet 162501 [packets to send 105, broken 104] [11:56:17]ProducePacketName [11:56:17]name=ofd_packets/00162501 [11:56:17]OFD Sender: To server: pG, [11:56:17]CommunicateWithHost lk.salyk.kg:30040 [11:56:17]ConnectInit lk.salyk.kg [11:56:18]written 0, free lines is 4095 [11:56:18]Connected sock=9 [11:56:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2D 12 07 01 D4 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 6E 6B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7A 02 00 35 04 06 00 D0 61 35 29 C5 34 73 4D F3 99 37 16 CC EF [11:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 64 94 47 00 5E 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C5 7A 02 00 F4 03 04 00 82 17 92 66 B6 04 01 00 00 4B A7 2A 1D 06 70 80 AB [11:56:18]CommunicateWithHost err = 0 [11:56:18]CheckOFDResponse [11:56:18]1017 (14) - 77093643461234 [11:56:18]1041 (16) - 0000000000874899 [11:56:18]1040 (4) - 162501 [11:56:18]1012 (4) - 13.07.2024 05:58 [11:56:18]1206 (1) - 0 [11:56:18]OFD Sender: Remove packet 162501 [11:56:18]ProducePacketName [11:56:18]name=ofd_packets/00162501 [11:56:18]NVStorageDeleteData [11:56:18]Write to MH i2c: 01 00 00 F7 1F 16 [11:56:18]Write i2c OK [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: 01 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: 01 07 00 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: 01 07 00 F7 1F 00 00 00 00 00 D7 0C 00 [11:56:18]RasterBufferAndPrint [11:56:18]line [11:56:18]line [11:56:18]line [11:56:18]line [11:56:18]line [11:56:18]written 0, free lines is 3295 [11:56:18]MH_Cut [11:56:18]Write to MH i2c: D1 01 00 FE 1F 01 EF [11:56:18]Write i2c OK [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: D1 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: D1 01 00 [11:56:18]MH_I2C_Read... [11:56:18]Read from MH i2c: D1 01 00 FE 1F 00 EE [11:56:18]Write to MH i2c: 01 00 00 FF 1F 1E [11:56:18]Write i2c OK [11:56:18]MH_I2C_Read... [11:56:18]OFD Sender: No OFD packet to send [11:56:19]*** Cut start [11:56:19]*** Purtial cut [11:56:19]*** Stage 1: CUTSNS_PIN = 1 [11:56:19]Read from MH i2c: 01 [11:56:19]MH_I2C_Read... [11:56:19]*** Stop cut motor [11:56:19]*** Cut end [11:56:19]Read from MH i2c: 01 07 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: 01 07 00 FF 1F 00 00 00 00 00 FF 0F 33 [11:56:19]process_action close_receipt done [11:56:19]requested_data is exist [11:56:19]produce_requested_data [11:56:19]requested_item fm.sn is exist - process it [11:56:19]wFMCommunicate request_size=4 [11:56:19]MH_SAM_APDU [11:56:19]CAPDU: 80 11 00 00 [11:56:19]Write to MH i2c: E2 08 00 00 20 80 11 00 00 00 00 00 00 9A [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:19]Read from MH i2c: E2 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 17 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 17 00 00 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FA [11:56:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:56:19]wFMCommunicate OK [11:56:19]requested_item fd.num is exist - process it [11:56:19]SAM_PROTO_GetFieldsCounters [11:56:19]wFMCommunicate request_size=4 [11:56:19]MH_SAM_APDU [11:56:19]CAPDU: 80 13 00 00 [11:56:19]Write to MH i2c: E2 08 00 01 20 80 13 00 00 00 00 00 00 9D [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:19]Read from MH i2c: E2 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 62 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 62 00 01 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [11:56:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:19]wFMCommunicate OK [11:56:19]SAM_PROTO_GetFieldsCounters done [11:56:19]requested_item shift.num is exist - process it [11:56:19]requested_item shift.opened is exist - process it [11:56:19]req_shift_opened [11:56:19]FM_GetShiftState [11:56:19]SAM_PROTO_GetShiftState [11:56:19]wFMCommunicate request_size=4 [11:56:19]MH_SAM_APDU [11:56:19]CAPDU: 80 13 01 00 [11:56:19]Write to MH i2c: E2 08 00 02 20 80 13 01 00 00 00 00 00 9F [11:56:19]Write i2c OK [11:56:19]MH_I2C_Read... [11:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:19]Read from MH i2c: E2 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 0E 00 [11:56:19]MH_I2C_Read... [11:56:19]Read from MH i2c: E2 0E 00 02 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 99 [11:56:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:56:19]wFMCommunicate OK [11:56:19]SAM_PROTO_GetShiftState done [11:56:19]FM_GetShiftState done [11:56:19]req_shift_opened done [11:56:19]requested_item shift.open_date is exist - process it [11:56:19]req_shift_open_date [11:56:19]req_shift_open_date done [11:56:19]produce_requested_data done [11:56:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162501,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:56:19]process_action_free close_receipt [11:56:19]json_value_free [11:56:19]json_value_free done [11:56:19]process_json_proto returns [11:56:19]Send response to host [11:56:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162501,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:56:19]free response buf [11:56:19]execute_script done [11:56:19]execute_script returns [11:56:19]free content buf [11:56:19]Sock 8.Close socket [11:56:19]Sock 8.Thread stoped [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:32]accept exits with 10 [11:57:32]New connection [11:57:32]New thread 3066862948 created [11:57:32]Thread 3067006308 joined [11:57:32]Waiting for new connection... [11:57:32] Sock 10.Parse request [11:57:32]Sock 10.Check first char [11:57:32]Sock 10.First char is OK [11:57:32]request: POST /json_proto HTTP/1.0 [11:57:32]Method: POST [11:57:32]URL: /json_proto [11:57:32]Method is POST - this is cgi request [11:57:32]url: /json_proto [11:57:32]query_string will be loaded in cgi processing [11:57:32]execute_cgi json_proto POST (null) [11:57:32]execute_cgi path=json_proto method=POST [11:57:32]POST find Content-Length [11:57:32]Host: 172.17.39.67:8080 [11:57:32]Content-Length: 672 [11:57:32]Content-Type: application/json [11:57:32] [11:57:32]POST finish read [11:57:32]Found Content-Length = 672 [11:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "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" ] } } [11:57:32]execute_script... [11:57: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)1319044", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "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" ] } } [11:57:32]POST & json_proto [11:57:32]process_json_proto [11:57:32]json parsed OK: [11:57:32]protocol is kg_v1.0 [11:57:32]action value=close_receipt [11:57:32]process_action close_receipt [11:57:32]cmd_close_receipt [11:57:32]MH_GetDate [11:57:32]Write to MH i2c: F0 00 00 03 20 12 [11:57:32]Write i2c OK [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: F0 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: F0 09 00 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: F0 09 00 03 20 00 BA 6B 92 66 FA E9 8E 66 0F [11:57:32]GetLastDocTimeStamp 1720871790 [11:57:32]current date 1720871866 [11:57:32]FM_GetShiftState [11:57:32]SAM_PROTO_GetShiftState [11:57:32]wFMCommunicate request_size=4 [11:57:32]MH_SAM_APDU [11:57:32]CAPDU: 80 13 01 00 [11:57:32]Write to MH i2c: E2 08 00 04 20 80 13 01 00 00 00 00 00 A1 [11:57:32]Write i2c OK [11:57:32]MH_I2C_Read... [11:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:32]Read from MH i2c: E2 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: E2 0E 00 [11:57:32]MH_I2C_Read... [11:57:32]Read from MH i2c: E2 0E 00 04 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9B [11:57:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:57:32]wFMCommunicate OK [11:57:32]SAM_PROTO_GetShiftState done [11:57:32]FM_GetShiftState done [11:57:32]opened in 1720828979 [11:57:32]opened+sec_in_day 1720915379 [11:57:32]quantity*price = 70059 [11:57:32]sum+1 = 70060 [11:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 170 13.07.2024 11:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162502 ФПД: 74900715522158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115746&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162502&fm=74900715522158&tin=02508201610067®Number=0000000000090858&sum=70000 [11:57:33]StoreToDocumentArchive [11:57:33]shift 462 fd 162502 [11:57:33]save to /storage/0462/doc_00162502 [11:57:33]save last doc name /storage/0462/doc_00162502 to /storage/kkm_last_doc_name [11:57:33]save OK [11:57:33]Clear old archive folders... [11:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:57:33]tlvbuf is 01C8B7A0 [11:57:33]SAM_PROTO_ClearQueue [11:57:33]wFMCommunicate request_size=4 [11:57:33]MH_SAM_APDU [11:57:33]CAPDU: 80 09 00 00 [11:57:33]Write to MH i2c: E2 08 00 11 20 80 09 00 00 00 00 00 00 A3 [11:57:33]Write i2c OK [11:57:33]MH_I2C_Read... [11:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:33]Read from MH i2c: E2 [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: E2 03 00 [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: E2 03 00 11 20 00 90 00 A5 [11:57:33]RAPDU: 90 00 [11:57:33]wFMCommunicate OK [11:57:33]SAM_PROTO_ClearQueue done [11:57:33]KKMCreateOFDPacket [11:57:33]OFDProtocolAddRootSTLVToBuf [11:57:33]FM_MakeSignedData [11:57:33]FM_MakeSignedData [11:57:33]SAM_PROTO_SignData [11:57:33]wFMCommunicate request_size=4 [11:57:33]MH_SAM_APDU [11:57:33]CAPDU: 80 0D 01 02 [11:57:33]Write to MH i2c: E2 08 00 12 20 80 0D 01 02 00 00 00 00 AB [11:57:33]Write i2c OK [11:57:33]MH_I2C_Read... [11:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:33]Read from MH i2c: E2 [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: E2 03 00 [11:57:33]MH_I2C_Read... [11:57:33]Read from MH i2c: E2 03 00 12 20 00 90 00 A6 [11:57:33]RAPDU: 90 00 [11:57:33]wFMCommunicate OK [11:57:33]wFMCommunicate request_size=255 [11:57:33]MH_SAM_APDU [11:57:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 AA 00 00 00 F4 03 04 00 BA 6B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7A 02 00 35 04 06 00 [11:57:33]Write to MH i2c: E2 02 01 13 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 AA 00 00 00 F4 03 04 00 BA 6B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7A 02 00 35 04 06 00 00 00 5B [11:57:33]Write i2c OK [11:57:33]MH_I2C_Read... [11:57:33]OFD Sender: No OFD packet to send [11:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 13 20 00 90 00 A7 [11:57:34]RAPDU: 90 00 [11:57:34]wFMCommunicate OK [11:57:34]wFMCommunicate request_size=11 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 0D 02 02 06 44 1F 2E 8A C8 6E [11:57:34]Write to MH i2c: E2 0E 00 14 20 80 0D 02 02 06 00 44 1F 2E 8A C8 6E 00 00 0B [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 03 00 14 20 00 90 00 A8 [11:57:34]RAPDU: 90 00 [11:57:34]wFMCommunicate OK [11:57:34]wFMCommunicate request_size=4 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 0D 03 02 [11:57:34]Write to MH i2c: E2 08 00 15 20 80 0D 03 02 00 00 00 00 B0 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 0B 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 0B 00 15 20 00 49 3D 7F 99 6A A4 63 79 90 00 39 [11:57:34]RAPDU: 49 3D 7F 99 6A A4 63 79 90 00 [11:57:34]wFMCommunicate OK [11:57:34]SAM_PROTO_SignData done [11:57:34]FM_MakeSignedData done [11:57:34]CreateOFDProtocolMessage [11:57:34]wFMCommunicate request_size=4 [11:57:34]MH_SAM_APDU [11:57:34]CAPDU: 80 11 00 00 [11:57:34]Write to MH i2c: E2 08 00 16 20 80 11 00 00 00 00 00 00 B0 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:34]Read from MH i2c: E2 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 17 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: E2 17 00 16 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 10 [11:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:57:34]wFMCommunicate OK [11:57:34]CreateOFDProtocolMessage done [11:57:34]OFDSenderStorePacket 162502 [11:57:34]StoreOFDPacket docnum=162502 [11:57:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8E DA 08 01 5A 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 AA 00 00 00 F4 03 04 00 BA 6B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7A 02 00 35 04 06 00 44 1F 2E 8A C8 6E 49 3D 7F 99 6A A4 63 79 [11:57:34]CheckFolder [11:57:34]dirname=/storage/ofd_packets [11:57:34]CheckFolder done [11:57:34]ProducePacketName [11:57:34]name=ofd_packets/00162502 [11:57:34]NVStorageSaveData ofd_packets/00162502 [11:57:34]File name is /storage/ofd_packets/00162502 [11:57:34]Write 302 bytes [11:57:34]NVStorageSaveData done [11:57:34]OFDSenderStorePacket done [11:57:34]KKMCreateOFDPacket done [11:57:34]NVStorageSaveData kkm_last_timestamp [11:57:34]File name is /storage/kkm_last_timestamp [11:57:34]Write 4 bytes [11:57:34]NVStorageSaveData done [11:57:34]ExternCall_PrintAddStr [11:57:34]wPrintStart [11:57:34]Write to MH i2c: 01 00 00 17 20 37 [11:57:34]Write i2c OK [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: 01 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: 01 07 00 [11:57:34]MH_I2C_Read... [11:57:34]Read from MH i2c: 01 07 00 17 20 00 00 00 00 00 FF 0F 4C [11:57:34]RasterBufferAndPrint [11:57:34]line Счет N : (1)1319044 [11:57:34]line ИНН: 02508201610067 [11:57:34]line Контрольно-Кассовый Чек [11:57:34]line ПРОДАЖА [11:57:34]line ТРК (МРК, ГНК) : 32 [11:57:34]line Товар: 2710124130 [11:57:34]line Super-92-К-5 [11:57:34]line 10.410 * 67.30 [11:57:34]line = 700.59 [11:57:34]line НДС 12% НСП 1% [11:57:34]line > о реализуемом товаре [11:57:34]line ОКРУГЛЕНИЕ: -0.59 [11:57:34]line ИТОГО: 700.00 [11:57:34]line Внесено: 700.00 [11:57:34]line СДАЧА: 0.00 [11:57:34]line НСП 1% : 6.20 [11:57:34]line НДС 12% : 74.40 [11:57:34]line Наличными: 700.00 [11:57:34]line Безнал.: 0.00 [11:57:34]line Место: АЗС № 140 "Партнер Нефть" [11:57:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:57:34]line СНО: Общий режим [11:57:34]line Чек 170 13.07.2024 11:57 [11:57:34]line Смена: 462 ФФД: 1.0 [11:57:34]line ЗНМ: 0300000129 [11:57:34]line РНМ: 0000000000090858 [11:57:34]line Версия ККМ: 001 [11:57:34]line ФМ: 0000000000874899 [11:57:34]line ФД: 162502 [11:57:34]line ФПД: 74900715522158 [11:57:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115746&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162502&fm=74900715522158&tin=02508201610067®Number=0000000000090858&sum=70000 [11:57:34]OFD Sender: Processing packet 162502 [packets to send 105, broken 104] [11:57:34]ProducePacketName [11:57:34]name=ofd_packets/00162502 [11:57:34]OFD Sender: To server: pG, [11:57:34]CommunicateWithHost lk.salyk.kg:30040 [11:57:34]ConnectInit lk.salyk.kg [11:57:34]written 0, free lines is 4095 [11:57:34]Connected sock=9 [11:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8E DA 08 01 5A 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 AA 00 00 00 F4 03 04 00 BA 6B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7A 02 00 35 04 06 00 44 1F 2E 8A C8 6E 49 3D 7F 99 6A A4 63 79 [11:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8B F6 47 00 A3 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C6 7A 02 00 F4 03 04 00 CF 17 92 66 B6 04 01 00 00 3A 4A 73 CE 2F 80 74 CC [11:57:34]CommunicateWithHost err = 0 [11:57:34]CheckOFDResponse [11:57:34]1017 (14) - 77093643461234 [11:57:34]1041 (16) - 0000000000874899 [11:57:34]1040 (4) - 162502 [11:57:34]1012 (4) - 13.07.2024 05:59 [11:57:34]1206 (1) - 0 [11:57:34]OFD Sender: Remove packet 162502 [11:57:34]ProducePacketName [11:57:34]name=ofd_packets/00162502 [11:57:34]NVStorageDeleteData [11:57:35]Write to MH i2c: 01 00 00 42 20 62 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: 01 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: 01 07 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: 01 07 00 42 20 00 00 00 00 00 F7 0C 6C [11:57:35]RasterBufferAndPrint [11:57:35]line [11:57:35]line [11:57:35]line [11:57:35]line [11:57:35]line [11:57:35]written 0, free lines is 3325 [11:57:35]MH_Cut [11:57:35]Write to MH i2c: D1 01 00 49 20 01 3B [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: D1 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: D1 01 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: D1 01 00 49 20 00 3A [11:57:35]Write to MH i2c: 01 00 00 4A 20 6A [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]OFD Sender: No OFD packet to send [11:57:35]*** Cut start [11:57:35]*** Purtial cut [11:57:35]*** CUTSNS_PIN = 0 [11:57:35]*** Stage 1: CUTSNS_PIN = 1 [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [11:57:37]*** Stop cut motor [11:57:37]*** Cut end [11:57:37]Read from MH i2c: 01 07 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 07 00 4A 20 00 00 00 00 00 FF 0F 7F [11:57:37]process_action close_receipt done [11:57:37]requested_data is exist [11:57:37]produce_requested_data [11:57:37]requested_item fm.sn is exist - process it [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 11 00 00 [11:57:37]Write to MH i2c: E2 08 00 4B 20 80 11 00 00 00 00 00 00 E5 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 17 00 4B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 45 [11:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:57:37]wFMCommunicate OK [11:57:37]requested_item fd.num is exist - process it [11:57:37]SAM_PROTO_GetFieldsCounters [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 00 00 [11:57:37]Write to MH i2c: E2 08 00 4C 20 80 13 00 00 00 00 00 00 E8 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:37]Read from MH i2c: E2 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 62 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: E2 62 00 4C 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:57:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:37]wFMCommunicate OK [11:57:37]SAM_PROTO_GetFieldsCounters done [11:57:37]requested_item shift.num is exist - process it [11:57:37]requested_item shift.opened is exist - process it [11:57:37]req_shift_opened [11:57:37]FM_GetShiftState [11:57:37]SAM_PROTO_GetShiftState [11:57:37]wFMCommunicate request_size=4 [11:57:37]MH_SAM_APDU [11:57:37]CAPDU: 80 13 01 00 [11:57:37]Write to MH i2c: E2 08 00 4D 20 80 13 01 00 00 00 00 00 EA [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:38]Read from MH i2c: E2 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 [11:57:38]MH_I2C_Read... [11:57:38]Read from MH i2c: E2 0E 00 4D 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E4 [11:57:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:57:38]wFMCommunicate OK [11:57:38]SAM_PROTO_GetShiftState done [11:57:38]FM_GetShiftState done [11:57:38]req_shift_opened done [11:57:38]requested_item shift.open_date is exist - process it [11:57:38]req_shift_open_date [11:57:38]req_shift_open_date done [11:57:38]produce_requested_data done [11:57:38]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162502,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:57:38]process_action_free close_receipt [11:57:38]json_value_free [11:57:38]json_value_free done [11:57:38]process_json_proto returns [11:57:38]Send response to host [11:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162502,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:57:38]free response buf [11:57:38]execute_script done [11:57:38]execute_script returns [11:57:38]free content buf [11:57:38]Sock 10.Close socket [11:57:38]Sock 10.Thread stoped [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:51]accept exits with 8 [11:58:51]New connection [11:58:51]New thread 3067006308 created [11:58:51]Thread 3066862948 joined [11:58:51]Waiting for new connection... [11:58:51] Sock 8.Parse request [11:58:51]Sock 8.Check first char [11:58:51]Sock 8.First char is OK [11:58:51]request: POST /json_proto HTTP/1.0 [11:58:51]Method: POST [11:58:51]URL: /json_proto [11:58:51]Method is POST - this is cgi request [11:58:51]url: /json_proto [11:58:51]query_string will be loaded in cgi processing [11:58:51]execute_cgi json_proto POST (null) [11:58:51]execute_cgi path=json_proto method=POST [11:58:51]POST find Content-Length [11:58:51]Host: 172.17.39.67:8080 [11:58:51]Content-Length: 825 [11:58:51]Content-Type: application/json [11:58:51] [11:58:51]POST finish read [11:58:51]Found Content-Length = 825 [11:58:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:51]execute_script... [11:58: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)1319045", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:51]POST & json_proto [11:58:51]process_json_proto [11:58:51]json parsed OK: [11:58:51]protocol is kg_v1.0 [11:58:51]action value=close_receipt [11:58:51]process_action close_receipt [11:58:51]cmd_close_receipt [11:58:51]MH_GetDate [11:58:51]Write to MH i2c: F0 00 00 4E 20 5D [11:58:51]Write i2c OK [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: F0 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: F0 09 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: F0 09 00 4E 20 00 0A 6C 92 66 FA E9 8E 66 AB [11:58:51]GetLastDocTimeStamp 1720871866 [11:58:51]current date 1720871946 [11:58:51]FM_GetShiftState [11:58:51]SAM_PROTO_GetShiftState [11:58:51]wFMCommunicate request_size=4 [11:58:51]MH_SAM_APDU [11:58:51]CAPDU: 80 13 01 00 [11:58:51]Write to MH i2c: E2 08 00 4F 20 80 13 01 00 00 00 00 00 EC [11:58:51]Write i2c OK [11:58:51]MH_I2C_Read... [11:58:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:51]Read from MH i2c: E2 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 0E 00 [11:58:51]MH_I2C_Read... [11:58:51]Read from MH i2c: E2 0E 00 4F 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E6 [11:58:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:58:51]wFMCommunicate OK [11:58:51]SAM_PROTO_GetShiftState done [11:58:51]FM_GetShiftState done [11:58:51]opened in 1720828979 [11:58:51]opened+sec_in_day 1720915379 [11:58:51]quantity*price = 100042 [11:58:51]sum+1 = 100044 [11:58:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 171 13.07.2024 11:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162503 ФПД: 156270960899182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162503&fm=156270960899182&tin=02508201610067®Number=0000000000090858&sum=100043 [11:58:53]StoreToDocumentArchive [11:58:53]shift 462 fd 162503 [11:58:53]save to /storage/0462/doc_00162503 [11:58:53]save last doc name /storage/0462/doc_00162503 to /storage/kkm_last_doc_name [11:58:53]save OK [11:58:53]Clear old archive folders... [11:58:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:58:53]tlvbuf is 01C8B9D0 [11:58:53]SAM_PROTO_ClearQueue [11:58:53]wFMCommunicate request_size=4 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 09 00 00 [11:58:53]Write to MH i2c: E2 08 00 5C 20 80 09 00 00 00 00 00 00 EE [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 5C 20 00 90 00 F0 [11:58:53]RAPDU: 90 00 [11:58:53]wFMCommunicate OK [11:58:53]SAM_PROTO_ClearQueue done [11:58:53]KKMCreateOFDPacket [11:58:53]OFDProtocolAddRootSTLVToBuf [11:58:53]FM_MakeSignedData [11:58:53]FM_MakeSignedData [11:58:53]SAM_PROTO_SignData [11:58:53]wFMCommunicate request_size=4 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 0D 01 02 [11:58:53]Write to MH i2c: E2 08 00 5D 20 80 0D 01 02 00 00 00 00 F6 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 5D 20 00 90 00 F1 [11:58:53]RAPDU: 90 00 [11:58:53]wFMCommunicate OK [11:58:53]wFMCommunicate request_size=255 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 0A 6C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7A 02 00 35 04 06 00 [11:58:53]Write to MH i2c: E2 02 01 5E 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 0A 6C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7A 02 00 35 04 06 00 00 00 10 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 5E 20 00 90 00 F2 [11:58:53]RAPDU: 90 00 [11:58:53]wFMCommunicate OK [11:58:53]wFMCommunicate request_size=11 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 0D 02 02 06 8E 20 AB 1C F4 6E [11:58:53]Write to MH i2c: E2 0E 00 5F 20 80 0D 02 02 06 00 8E 20 AB 1C F4 6E 00 00 DC [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 03 00 5F 20 00 90 00 F3 [11:58:53]RAPDU: 90 00 [11:58:53]wFMCommunicate OK [11:58:53]wFMCommunicate request_size=4 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 0D 03 02 [11:58:53]Write to MH i2c: E2 08 00 60 20 80 0D 03 02 00 00 00 00 FB [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 0B 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 0B 00 60 20 00 3A C6 D1 AB 95 E5 88 51 90 00 CB [11:58:53]RAPDU: 3A C6 D1 AB 95 E5 88 51 90 00 [11:58:53]wFMCommunicate OK [11:58:53]SAM_PROTO_SignData done [11:58:53]FM_MakeSignedData done [11:58:53]CreateOFDProtocolMessage [11:58:53]wFMCommunicate request_size=4 [11:58:53]MH_SAM_APDU [11:58:53]CAPDU: 80 11 00 00 [11:58:53]Write to MH i2c: E2 08 00 61 20 80 11 00 00 00 00 00 00 FB [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:53]Read from MH i2c: E2 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 17 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: E2 17 00 61 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5B [11:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:58:53]wFMCommunicate OK [11:58:53]CreateOFDProtocolMessage done [11:58:53]OFDSenderStorePacket 162503 [11:58:53]StoreOFDPacket docnum=162503 [11:58:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CD 3A 08 01 DF 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 0A 6C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7A 02 00 35 04 06 00 8E 20 AB 1C F4 6E 3A C6 D1 AB 95 E5 88 51 [11:58:53]CheckFolder [11:58:53]dirname=/storage/ofd_packets [11:58:53]CheckFolder done [11:58:53]ProducePacketName [11:58:53]name=ofd_packets/00162503 [11:58:53]NVStorageSaveData ofd_packets/00162503 [11:58:53]File name is /storage/ofd_packets/00162503 [11:58:53]Write 302 bytes [11:58:53]NVStorageSaveData done [11:58:53]OFDSenderStorePacket done [11:58:53]KKMCreateOFDPacket done [11:58:53]NVStorageSaveData kkm_last_timestamp [11:58:53]File name is /storage/kkm_last_timestamp [11:58:53]Write 4 bytes [11:58:53]NVStorageSaveData done [11:58:53]ExternCall_PrintAddStr [11:58:53]wPrintStart [11:58:53]Write to MH i2c: 01 00 00 62 20 82 [11:58:53]Write i2c OK [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: 01 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: 01 07 00 [11:58:53]MH_I2C_Read... [11:58:53]Read from MH i2c: 01 07 00 62 20 00 00 00 00 00 FF 0F 97 [11:58:53]RasterBufferAndPrint [11:58:53]line Счет N : (1)1319045 [11:58:53]line ИНН: 02508201610067 [11:58:53]line Контрольно-Кассовый Чек [11:58:53]line ПРОДАЖА [11:58:53]line ТРК (МРК, ГНК) : 41 [11:58:53]line Товар: 2710194210 [11:58:53]line ДТ(л)-К-5 [11:58:53]line 13.780 * 72.60 [11:58:53]line = 1000.43 [11:58:53]line НДС 12% НСП 1% [11:58:53]line > о реализуемом товаре [11:58:53]line ИТОГО: 1000.43 [11:58:53]line НСП 1% : 8.85 [11:58:53]line НДС 12% : 106.24 [11:58:53]line Наличными: 0.00 [11:58:53]line Безнал.: 1000.43 [11:58:53]line Место: АЗС № 140 "Партнер Нефть" [11:58:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:58:53]line СНО: Общий режим [11:58:53]line Чек 171 13.07.2024 11:59 [11:58:53]line Смена: 462 ФФД: 1.0 [11:58:53]line ЗНМ: 0300000129 [11:58:53]line РНМ: 0000000000090858 [11:58:53]line Версия ККМ: 001 [11:58:53]line Платежная система: Бакай Банк [11:58:53]line ФМ: 0000000000874899 [11:58:53]line ФД: 162503 [11:58:53]line ФПД: 156270960899182 [11:58:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T115906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162503&fm=156270960899182&tin=02508201610067®Number=0000000000090858&sum=100043 [11:58:53]OFD Sender: Processing packet 162503 [packets to send 105, broken 104] [11:58:53]ProducePacketName [11:58:53]name=ofd_packets/00162503 [11:58:53]OFD Sender: To server: pG, [11:58:53]CommunicateWithHost lk.salyk.kg:30040 [11:58:53]ConnectInit lk.salyk.kg [11:58:53]written 0, free lines is 4095 [11:58:53]Connected sock=10 [11:58:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CD 3A 08 01 DF 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 0A 6C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7A 02 00 35 04 06 00 8E 20 AB 1C F4 6E 3A C6 D1 AB 95 E5 88 51 [11:58:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F5 0F 47 00 64 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C7 7A 02 00 F4 03 04 00 1E 18 92 66 B6 04 01 00 00 6F 8E 28 07 C8 FF 2E DA [11:58:54]CommunicateWithHost err = 0 [11:58:54]CheckOFDResponse [11:58:54]1017 (14) - 77093643461234 [11:58:54]1041 (16) - 0000000000874899 [11:58:54]1040 (4) - 162503 [11:58:54]1012 (4) - 13.07.2024 06:01 [11:58:54]1206 (1) - 0 [11:58:54]OFD Sender: Remove packet 162503 [11:58:54]ProducePacketName [11:58:54]name=ofd_packets/00162503 [11:58:54]NVStorageDeleteData [11:58:54]Write to MH i2c: 01 00 00 8C 20 AC [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 07 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: 01 07 00 8C 20 00 00 00 00 00 EF 0C AE [11:58:54]RasterBufferAndPrint [11:58:54]line [11:58:54]line [11:58:54]line [11:58:54]line [11:58:54]line [11:58:54]written 0, free lines is 3318 [11:58:54]MH_Cut [11:58:54]Write to MH i2c: D1 01 00 93 20 01 85 [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: D1 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: D1 01 00 [11:58:54]MH_I2C_Read... [11:58:54]Read from MH i2c: D1 01 00 93 20 00 84 [11:58:54]Write to MH i2c: 01 00 00 94 20 B4 [11:58:54]Write i2c OK [11:58:54]MH_I2C_Read... [11:58:54]OFD Sender: No OFD packet to send [11:58:55]*** Cut start [11:58:55]*** Purtial cut [11:58:55]*** Stage 1: CUTSNS_PIN = 1 [11:58:55]Read from MH i2c: 01 [11:58:55]MH_I2C_Read... [11:58:55]*** Stop cut motor [11:58:55]*** Cut end [11:58:55]Read from MH i2c: 01 07 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: 01 07 00 94 20 00 00 00 00 00 FF 0F C9 [11:58:55]process_action close_receipt done [11:58:55]requested_data is exist [11:58:55]produce_requested_data [11:58:55]requested_item fm.sn is exist - process it [11:58:55]wFMCommunicate request_size=4 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 11 00 00 [11:58:55]Write to MH i2c: E2 08 00 95 20 80 11 00 00 00 00 00 00 2F [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 17 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 17 00 95 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8F [11:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [11:58:55]wFMCommunicate OK [11:58:55]requested_item fd.num is exist - process it [11:58:55]SAM_PROTO_GetFieldsCounters [11:58:55]wFMCommunicate request_size=4 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 13 00 00 [11:58:55]Write to MH i2c: E2 08 00 96 20 80 13 00 00 00 00 00 00 32 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 62 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 62 00 96 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [11:58:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:55]wFMCommunicate OK [11:58:55]SAM_PROTO_GetFieldsCounters done [11:58:55]requested_item shift.num is exist - process it [11:58:55]requested_item shift.opened is exist - process it [11:58:55]req_shift_opened [11:58:55]FM_GetShiftState [11:58:55]SAM_PROTO_GetShiftState [11:58:55]wFMCommunicate request_size=4 [11:58:55]MH_SAM_APDU [11:58:55]CAPDU: 80 13 01 00 [11:58:55]Write to MH i2c: E2 08 00 97 20 80 13 01 00 00 00 00 00 34 [11:58:55]Write i2c OK [11:58:55]MH_I2C_Read... [11:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:55]Read from MH i2c: E2 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 0E 00 [11:58:55]MH_I2C_Read... [11:58:55]Read from MH i2c: E2 0E 00 97 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2E [11:58:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [11:58:55]wFMCommunicate OK [11:58:55]SAM_PROTO_GetShiftState done [11:58:55]FM_GetShiftState done [11:58:55]req_shift_opened done [11:58:55]requested_item shift.open_date is exist - process it [11:58:55]req_shift_open_date [11:58:55]req_shift_open_date done [11:58:55]produce_requested_data done [11:58:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162503,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [11:58:55]process_action_free close_receipt [11:58:55]json_value_free [11:58:55]json_value_free done [11:58:55]process_json_proto returns [11:58:55]Send response to host [11:58:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162503,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [11:58:55]free response buf [11:58:55]execute_script done [11:58:55]execute_script returns [11:58:55]free content buf [11:58:55]Sock 8.Close socket [11:58:55]Sock 8.Thread stoped [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:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01: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:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03: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:07]accept exits with 9 [12:04:07]New connection [12:04:07]New thread 3066862948 created [12:04:07]Thread 3067006308 joined [12:04:07]Waiting for new connection... [12:04:07] Sock 9.Parse request [12:04:07]Sock 9.Check first char [12:04:07]Sock 9.First char is OK [12:04:07]request: POST /json_proto HTTP/1.0 [12:04:07]Method: POST [12:04:07]URL: /json_proto [12:04:07]Method is POST - this is cgi request [12:04:07]url: /json_proto [12:04:07]query_string will be loaded in cgi processing [12:04:07]execute_cgi json_proto POST (null) [12:04:07]execute_cgi path=json_proto method=POST [12:04:07]POST find Content-Length [12:04:07]Host: 172.17.39.67:8080 [12:04:07]Content-Length: 688 [12:04:07]Content-Type: application/json [12:04:07] [12:04:07]POST finish read [12:04:07]Found Content-Length = 688 [12:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:07]execute_script... [12:04: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)1319046", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:04:07]POST & json_proto [12:04:07]process_json_proto [12:04:07]json parsed OK: [12:04:07]protocol is kg_v1.0 [12:04:07]action value=close_receipt [12:04:07]process_action close_receipt [12:04:07]cmd_close_receipt [12:04:07]MH_GetDate [12:04:07]Write to MH i2c: F0 00 00 98 20 A7 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: F0 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: F0 09 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: F0 09 00 98 20 00 45 6D 92 66 FA E9 8E 66 31 [12:04:07]GetLastDocTimeStamp 1720871946 [12:04:07]current date 1720872261 [12:04:07]FM_GetShiftState [12:04:07]SAM_PROTO_GetShiftState [12:04:07]wFMCommunicate request_size=4 [12:04:07]MH_SAM_APDU [12:04:07]CAPDU: 80 13 01 00 [12:04:07]Write to MH i2c: E2 08 00 99 20 80 13 01 00 00 00 00 00 36 [12:04:07]Write i2c OK [12:04:07]MH_I2C_Read... [12:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:07]Read from MH i2c: E2 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0E 00 [12:04:07]MH_I2C_Read... [12:04:07]Read from MH i2c: E2 0E 00 99 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 30 [12:04:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:04:07]wFMCommunicate OK [12:04:07]SAM_PROTO_GetShiftState done [12:04:07]FM_GetShiftState done [12:04:07]opened in 1720828979 [12:04:07]opened+sec_in_day 1720915379 [12:04:07]quantity*price = 200013 [12:04:07]sum+1 = 200014 [12:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 172 13.07.2024 12:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162504 ФПД: 112295612888828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120421&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162504&fm=112295612888828&tin=02508201610067®Number=0000000000090858&sum=200000 [12:04:08]StoreToDocumentArchive [12:04:08]shift 462 fd 162504 [12:04:08]save to /storage/0462/doc_00162504 [12:04:08]save last doc name /storage/0462/doc_00162504 to /storage/kkm_last_doc_name [12:04:08]save OK [12:04:08]Clear old archive folders... [12:04:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:04:08]tlvbuf is 01A1C9F0 [12:04:08]SAM_PROTO_ClearQueue [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 09 00 00 [12:04:08]Write to MH i2c: E2 08 00 A6 20 80 09 00 00 00 00 00 00 38 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 A6 20 00 90 00 3A [12:04:08]RAPDU: 90 00 [12:04:08]wFMCommunicate OK [12:04:08]SAM_PROTO_ClearQueue done [12:04:08]KKMCreateOFDPacket [12:04:08]OFDProtocolAddRootSTLVToBuf [12:04:08]FM_MakeSignedData [12:04:08]FM_MakeSignedData [12:04:08]SAM_PROTO_SignData [12:04:08]wFMCommunicate request_size=4 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 0D 01 02 [12:04:08]Write to MH i2c: E2 08 00 A7 20 80 0D 01 02 00 00 00 00 40 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:04:08]Read from MH i2c: E2 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 [12:04:08]MH_I2C_Read... [12:04:08]Read from MH i2c: E2 03 00 A7 20 00 90 00 3B [12:04:08]RAPDU: 90 00 [12:04:08]wFMCommunicate OK [12:04:08]wFMCommunicate request_size=255 [12:04:08]MH_SAM_APDU [12:04:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AC 00 00 00 F4 03 04 00 45 6D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7A 02 00 35 04 06 00 [12:04:08]Write to MH i2c: E2 02 01 A8 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AC 00 00 00 F4 03 04 00 45 6D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7A 02 00 35 04 06 00 00 00 B8 [12:04:08]Write i2c OK [12:04:08]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 A8 20 00 90 00 3C [12:04:09]RAPDU: 90 00 [12:04:09]wFMCommunicate OK [12:04:09]wFMCommunicate request_size=11 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 0D 02 02 06 66 21 DC 1D B6 FC [12:04:09]Write to MH i2c: E2 0E 00 A9 20 80 0D 02 02 06 00 66 21 DC 1D B6 FC 00 00 81 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 03 00 A9 20 00 90 00 3D [12:04:09]RAPDU: 90 00 [12:04:09]wFMCommunicate OK [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 0D 03 02 [12:04:09]Write to MH i2c: E2 08 00 AA 20 80 0D 03 02 00 00 00 00 45 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 0B 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 0B 00 AA 20 00 01 BC 08 1A 80 E0 9D CB 90 00 ED [12:04:09]RAPDU: 01 BC 08 1A 80 E0 9D CB 90 00 [12:04:09]wFMCommunicate OK [12:04:09]SAM_PROTO_SignData done [12:04:09]FM_MakeSignedData done [12:04:09]CreateOFDProtocolMessage [12:04:09]wFMCommunicate request_size=4 [12:04:09]MH_SAM_APDU [12:04:09]CAPDU: 80 11 00 00 [12:04:09]Write to MH i2c: E2 08 00 AB 20 80 11 00 00 00 00 00 00 45 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:09]Read from MH i2c: E2 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 17 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: E2 17 00 AB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A5 [12:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:04:09]wFMCommunicate OK [12:04:09]CreateOFDProtocolMessage done [12:04:09]OFDSenderStorePacket 162504 [12:04:09]StoreOFDPacket docnum=162504 [12:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 EC 3F 08 01 E7 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AC 00 00 00 F4 03 04 00 45 6D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7A 02 00 35 04 06 00 66 21 DC 1D B6 FC 01 BC 08 1A 80 E0 9D CB [12:04:09]CheckFolder [12:04:09]dirname=/storage/ofd_packets [12:04:09]CheckFolder done [12:04:09]ProducePacketName [12:04:09]name=ofd_packets/00162504 [12:04:09]NVStorageSaveData ofd_packets/00162504 [12:04:09]File name is /storage/ofd_packets/00162504 [12:04:09]Write 302 bytes [12:04:09]NVStorageSaveData done [12:04:09]OFDSenderStorePacket done [12:04:09]KKMCreateOFDPacket done [12:04:09]NVStorageSaveData kkm_last_timestamp [12:04:09]File name is /storage/kkm_last_timestamp [12:04:09]Write 4 bytes [12:04:09]NVStorageSaveData done [12:04:09]ExternCall_PrintAddStr [12:04:09]wPrintStart [12:04:09]Write to MH i2c: 01 00 00 AC 20 CC [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 AC 20 00 00 00 00 00 FF 0F E1 [12:04:09]RasterBufferAndPrint [12:04:09]line Счет N : (1)1319046 [12:04:09]line ИНН: 02508201610067 [12:04:09]line Контрольно-Кассовый Чек [12:04:09]line ПРОДАЖА [12:04:09]line ТРК (МРК, ГНК) : 21 [12:04:09]line Товар: 2710194210 [12:04:09]line ДТ(л)-К-5 [12:04:09]line 27.550 * 72.60 [12:04:09]line = 2000.13 [12:04:09]line НДС 12% НСП 1% [12:04:09]line > о реализуемом товаре [12:04:09]line ОКРУГЛЕНИЕ: -0.13 [12:04:09]line ИТОГО: 2000.00 [12:04:09]line Внесено: 2000.00 [12:04:09]line СДАЧА: 0.00 [12:04:09]line НСП 1% : 17.70 [12:04:09]line НДС 12% : 212.40 [12:04:09]line Наличными: 2000.00 [12:04:09]line Безнал.: 0.00 [12:04:09]line Место: АЗС № 140 "Партнер Нефть" [12:04:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:04:09]line СНО: Общий режим [12:04:09]line Чек 172 13.07.2024 12:04 [12:04:09]line Смена: 462 ФФД: 1.0 [12:04:09]line ЗНМ: 0300000129 [12:04:09]line РНМ: 0000000000090858 [12:04:09]line Версия ККМ: 001 [12:04:09]line ФМ: 0000000000874899 [12:04:09]line ФД: 162504 [12:04:09]line ФПД: 112295612888828 [12:04:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120421&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162504&fm=112295612888828&tin=02508201610067®Number=0000000000090858&sum=200000 [12:04:09]OFD Sender: Processing packet 162504 [packets to send 105, broken 104] [12:04:09]ProducePacketName [12:04:09]name=ofd_packets/00162504 [12:04:09]OFD Sender: To server: pG, [12:04:09]CommunicateWithHost lk.salyk.kg:30040 [12:04:09]ConnectInit lk.salyk.kg [12:04:09]written 0, free lines is 4095 [12:04:09]Connected sock=10 [12:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 EC 3F 08 01 E7 90 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AC 00 00 00 F4 03 04 00 45 6D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7A 02 00 35 04 06 00 66 21 DC 1D B6 FC 01 BC 08 1A 80 E0 9D CB [12:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D0 1A 47 00 7C 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C8 7A 02 00 F4 03 04 00 5A 19 92 66 B6 04 01 00 00 5D A6 C8 71 28 3E 34 25 [12:04:09]CommunicateWithHost err = 0 [12:04:09]CheckOFDResponse [12:04:09]1017 (14) - 77093643461234 [12:04:09]1041 (16) - 0000000000874899 [12:04:09]1040 (4) - 162504 [12:04:09]1012 (4) - 13.07.2024 06:06 [12:04:09]1206 (1) - 0 [12:04:09]OFD Sender: Remove packet 162504 [12:04:09]ProducePacketName [12:04:09]name=ofd_packets/00162504 [12:04:09]NVStorageDeleteData [12:04:09]Write to MH i2c: 01 00 00 D7 20 F7 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: 01 07 00 D7 20 00 00 00 00 00 E2 0C EC [12:04:09]RasterBufferAndPrint [12:04:09]line [12:04:09]line [12:04:09]line [12:04:09]line [12:04:09]line [12:04:09]written 0, free lines is 3307 [12:04:09]MH_Cut [12:04:09]Write to MH i2c: D1 01 00 DE 20 01 D0 [12:04:09]Write i2c OK [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: D1 [12:04:09]MH_I2C_Read... [12:04:09]Read from MH i2c: D1 01 00 [12:04:09]MH_I2C_Read... [12:04:10]Read from MH i2c: D1 01 00 DE 20 00 CF [12:04:10]Write to MH i2c: 01 00 00 DF 20 FF [12:04:10]Write i2c OK [12:04:10]MH_I2C_Read... [12:04:10]OFD Sender: No OFD packet to send [12:04:10]*** Cut start [12:04:10]*** Purtial cut [12:04:10]*** CUTSNS_PIN = 0 [12:04:10]*** Stage 1: CUTSNS_PIN = 1 [12:04:12]Read from MH i2c: 01 [12:04:12]MH_I2C_Read... [12:04:12]*** Stop cut motor [12:04:12]*** Cut end [12:04:12]Read from MH i2c: 01 07 00 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: 01 07 00 DF 20 00 00 00 00 00 FF 0F 14 [12:04:12]process_action close_receipt done [12:04:12]requested_data is exist [12:04:12]produce_requested_data [12:04:12]requested_item fm.sn is exist - process it [12:04:12]wFMCommunicate request_size=4 [12:04:12]MH_SAM_APDU [12:04:12]CAPDU: 80 11 00 00 [12:04:12]Write to MH i2c: E2 08 00 E0 20 80 11 00 00 00 00 00 00 7A [12:04:12]Write i2c OK [12:04:12]MH_I2C_Read... [12:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:04:12]Read from MH i2c: E2 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: E2 17 00 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: E2 17 00 E0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DA [12:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:04:12]wFMCommunicate OK [12:04:12]requested_item fd.num is exist - process it [12:04:12]SAM_PROTO_GetFieldsCounters [12:04:12]wFMCommunicate request_size=4 [12:04:12]MH_SAM_APDU [12:04:12]CAPDU: 80 13 00 00 [12:04:12]Write to MH i2c: E2 08 00 E1 20 80 13 00 00 00 00 00 00 7D [12:04:12]Write i2c OK [12:04:12]MH_I2C_Read... [12:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:04:12]Read from MH i2c: E2 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: E2 62 00 [12:04:12]MH_I2C_Read... [12:04:12]Read from MH i2c: E2 62 00 E1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [12:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:04:12]wFMCommunicate OK [12:04:12]SAM_PROTO_GetFieldsCounters done [12:04:12]requested_item shift.num is exist - process it [12:04:12]requested_item shift.opened is exist - process it [12:04:12]req_shift_opened [12:04:12]FM_GetShiftState [12:04:12]SAM_PROTO_GetShiftState [12:04:12]wFMCommunicate request_size=4 [12:04:12]MH_SAM_APDU [12:04:12]CAPDU: 80 13 01 00 [12:04:12]Write to MH i2c: E2 08 00 E2 20 80 13 01 00 00 00 00 00 7F [12:04:12]Write i2c OK [12:04:12]MH_I2C_Read... [12:04:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:04:13]Read from MH i2c: E2 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: E2 0E 00 [12:04:13]MH_I2C_Read... [12:04:13]Read from MH i2c: E2 0E 00 E2 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 79 [12:04:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:04:13]wFMCommunicate OK [12:04:13]SAM_PROTO_GetShiftState done [12:04:13]FM_GetShiftState done [12:04:13]req_shift_opened done [12:04:13]requested_item shift.open_date is exist - process it [12:04:13]req_shift_open_date [12:04:13]req_shift_open_date done [12:04:13]produce_requested_data done [12:04:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162504,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:04:13]process_action_free close_receipt [12:04:13]json_value_free [12:04:13]json_value_free done [12:04:13]process_json_proto returns [12:04:13]Send response to host [12:04:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162504,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:04:13]free response buf [12:04:13]execute_script done [12:04:13]execute_script returns [12:04:13]free content buf [12:04:13]Sock 9.Close socket [12:04:13]Sock 9.Thread stoped [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]accept exits with 8 [12:07:00]New connection [12:07:00]New thread 3067006308 created [12:07:00]Thread 3066862948 joined [12:07:00]Waiting for new connection... [12:07:00] Sock 8.Parse request [12:07:00]Sock 8.Check first char [12:07:00]Sock 8.First char is OK [12:07:00]request: POST /json_proto HTTP/1.0 [12:07:00]Method: POST [12:07:00]URL: /json_proto [12:07:00]Method is POST - this is cgi request [12:07:00]url: /json_proto [12:07:00]query_string will be loaded in cgi processing [12:07:00]execute_cgi json_proto POST (null) [12:07:00]execute_cgi path=json_proto method=POST [12:07:00]POST find Content-Length [12:07:00]Host: 172.17.39.67:8080 [12:07:00]Content-Length: 688 [12:07:00]Content-Type: application/json [12:07:00] [12:07:00]POST finish read [12:07:00]Found Content-Length = 688 [12:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:07:00]execute_script... [12:07: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)1319047", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:07:00]POST & json_proto [12:07:00]process_json_proto [12:07:00]json parsed OK: [12:07:00]protocol is kg_v1.0 [12:07:00]action value=close_receipt [12:07:00]process_action close_receipt [12:07:00]cmd_close_receipt [12:07:00]MH_GetDate [12:07:00]Write to MH i2c: F0 00 00 E3 20 F2 [12:07:00]Write i2c OK [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: F0 [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: F0 09 00 [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: F0 09 00 E3 20 00 F2 6D 92 66 FA E9 8E 66 29 [12:07:00]GetLastDocTimeStamp 1720872261 [12:07:00]current date 1720872434 [12:07:00]FM_GetShiftState [12:07:00]SAM_PROTO_GetShiftState [12:07:00]wFMCommunicate request_size=4 [12:07:00]MH_SAM_APDU [12:07:00]CAPDU: 80 13 01 00 [12:07:00]Write to MH i2c: E2 08 00 E4 20 80 13 01 00 00 00 00 00 81 [12:07:00]Write i2c OK [12:07:00]MH_I2C_Read... [12:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:00]Read from MH i2c: E2 [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: E2 0E 00 [12:07:00]MH_I2C_Read... [12:07:00]Read from MH i2c: E2 0E 00 E4 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7B [12:07:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:07:00]wFMCommunicate OK [12:07:00]SAM_PROTO_GetShiftState done [12:07:00]FM_GetShiftState done [12:07:00]opened in 1720828979 [12:07:00]opened+sec_in_day 1720915379 [12:07:00]quantity*price = 100042 [12:07:00]sum+1 = 100044 [12:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 173 13.07.2024 12:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162505 ФПД: 171271257442027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120714&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162505&fm=171271257442027&tin=02508201610067®Number=0000000000090858&sum=100000 [12:07:01]StoreToDocumentArchive [12:07:01]shift 462 fd 162505 [12:07:01]save to /storage/0462/doc_00162505 [12:07:01]save last doc name /storage/0462/doc_00162505 to /storage/kkm_last_doc_name [12:07:01]save OK [12:07:01]Clear old archive folders... [12:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:07:01]tlvbuf is 01B6A580 [12:07:01]SAM_PROTO_ClearQueue [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 09 00 00 [12:07:01]Write to MH i2c: E2 08 00 F1 20 80 09 00 00 00 00 00 00 83 [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 F1 20 00 90 00 85 [12:07:01]RAPDU: 90 00 [12:07:01]wFMCommunicate OK [12:07:01]SAM_PROTO_ClearQueue done [12:07:01]KKMCreateOFDPacket [12:07:01]OFDProtocolAddRootSTLVToBuf [12:07:01]FM_MakeSignedData [12:07:01]FM_MakeSignedData [12:07:01]SAM_PROTO_SignData [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 0D 01 02 [12:07:01]Write to MH i2c: E2 08 00 F2 20 80 0D 01 02 00 00 00 00 8B [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 F2 20 00 90 00 86 [12:07:01]RAPDU: 90 00 [12:07:01]wFMCommunicate OK [12:07:01]wFMCommunicate request_size=255 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AD 00 00 00 F4 03 04 00 F2 6D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7A 02 00 35 04 06 00 [12:07:01]Write to MH i2c: E2 02 01 F3 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AD 00 00 00 F4 03 04 00 F2 6D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7A 02 00 35 04 06 00 00 00 3C [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 F3 20 00 90 00 87 [12:07:01]RAPDU: 90 00 [12:07:01]wFMCommunicate OK [12:07:01]wFMCommunicate request_size=11 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 0D 02 02 06 9B C5 32 75 C6 EB [12:07:01]Write to MH i2c: E2 0E 00 F4 20 80 0D 02 02 06 00 9B C5 32 75 C6 EB 00 00 52 [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 03 00 F4 20 00 90 00 88 [12:07:01]RAPDU: 90 00 [12:07:01]wFMCommunicate OK [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 0D 03 02 [12:07:01]Write to MH i2c: E2 08 00 F5 20 80 0D 03 02 00 00 00 00 90 [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 0B 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 0B 00 F5 20 00 32 48 FE 28 98 04 83 30 90 00 80 [12:07:01]RAPDU: 32 48 FE 28 98 04 83 30 90 00 [12:07:01]wFMCommunicate OK [12:07:01]SAM_PROTO_SignData done [12:07:01]FM_MakeSignedData done [12:07:01]CreateOFDProtocolMessage [12:07:01]wFMCommunicate request_size=4 [12:07:01]MH_SAM_APDU [12:07:01]CAPDU: 80 11 00 00 [12:07:01]Write to MH i2c: E2 08 00 F6 20 80 11 00 00 00 00 00 00 90 [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:01]Read from MH i2c: E2 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 17 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: E2 17 00 F6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F0 [12:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:07:01]wFMCommunicate OK [12:07:01]CreateOFDProtocolMessage done [12:07:01]OFDSenderStorePacket 162505 [12:07:01]StoreOFDPacket docnum=162505 [12:07:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4F 41 08 01 D0 5D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AD 00 00 00 F4 03 04 00 F2 6D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7A 02 00 35 04 06 00 9B C5 32 75 C6 EB 32 48 FE 28 98 04 83 30 [12:07:01]CheckFolder [12:07:01]dirname=/storage/ofd_packets [12:07:01]CheckFolder done [12:07:01]ProducePacketName [12:07:01]name=ofd_packets/00162505 [12:07:01]NVStorageSaveData ofd_packets/00162505 [12:07:01]File name is /storage/ofd_packets/00162505 [12:07:01]Write 302 bytes [12:07:01]NVStorageSaveData done [12:07:01]OFDSenderStorePacket done [12:07:01]KKMCreateOFDPacket done [12:07:01]NVStorageSaveData kkm_last_timestamp [12:07:01]File name is /storage/kkm_last_timestamp [12:07:01]Write 4 bytes [12:07:01]NVStorageSaveData done [12:07:01]ExternCall_PrintAddStr [12:07:01]wPrintStart [12:07:01]Write to MH i2c: 01 00 00 F7 20 17 [12:07:01]Write i2c OK [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: 01 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: 01 07 00 [12:07:01]MH_I2C_Read... [12:07:01]Read from MH i2c: 01 07 00 F7 20 00 00 00 00 00 FF 0F 2C [12:07:01]RasterBufferAndPrint [12:07:01]line Счет N : (1)1319047 [12:07:01]line ИНН: 02508201610067 [12:07:01]line Контрольно-Кассовый Чек [12:07:01]line ПРОДАЖА [12:07:01]line ТРК (МРК, ГНК) : 11 [12:07:01]line Товар: 2710194210 [12:07:01]line ДТ(л)-К-5 [12:07:01]line 13.780 * 72.60 [12:07:01]line = 1000.43 [12:07:01]line НДС 12% НСП 1% [12:07:01]line > о реализуемом товаре [12:07:01]line ОКРУГЛЕНИЕ: -0.43 [12:07:01]line ИТОГО: 1000.00 [12:07:01]line Внесено: 1000.00 [12:07:01]line СДАЧА: 0.00 [12:07:01]line НСП 1% : 8.85 [12:07:01]line НДС 12% : 106.24 [12:07:01]line Наличными: 1000.00 [12:07:01]line Безнал.: 0.00 [12:07:01]line Место: АЗС № 140 "Партнер Нефть" [12:07:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:07:01]line СНО: Общий режим [12:07:01]line Чек 173 13.07.2024 12:07 [12:07:01]line Смена: 462 ФФД: 1.0 [12:07:01]line ЗНМ: 0300000129 [12:07:01]line РНМ: 0000000000090858 [12:07:02]line Версия ККМ: 001 [12:07:02]line ФМ: 0000000000874899 [12:07:02]line ФД: 162505 [12:07:02]line ФПД: 171271257442027 [12:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120714&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162505&fm=171271257442027&tin=02508201610067®Number=0000000000090858&sum=100000 [12:07:02]OFD Sender: Processing packet 162505 [packets to send 105, broken 104] [12:07:02]ProducePacketName [12:07:02]name=ofd_packets/00162505 [12:07:02]OFD Sender: To server: pG, [12:07:02]CommunicateWithHost lk.salyk.kg:30040 [12:07:02]ConnectInit lk.salyk.kg [12:07:02]written 0, free lines is 4095 [12:07:02]Connected sock=10 [12:07:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4F 41 08 01 D0 5D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AD 00 00 00 F4 03 04 00 F2 6D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 C9 7A 02 00 35 04 06 00 9B C5 32 75 C6 EB 32 48 FE 28 98 04 83 30 [12:07:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EE A9 47 00 8A 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 34 38 39 39 10 04 04 00 C9 7A 02 00 F4 03 04 00 06 1A 92 66 B6 04 01 00 00 1F 3E A0 5B 5B 70 A2 8C [12:07:02]CommunicateWithHost err = 0 [12:07:02]CheckOFDResponse [12:07:02]1017 (14) - 77093643461234 [12:07:02]1041 (16) - 0000000000874899 [12:07:02]1040 (4) - 162505 [12:07:02]1012 (4) - 13.07.2024 06:09 [12:07:02]1206 (1) - 0 [12:07:02]OFD Sender: Remove packet 162505 [12:07:02]ProducePacketName [12:07:02]name=ofd_packets/00162505 [12:07:02]NVStorageDeleteData [12:07:02]Write to MH i2c: 01 00 00 22 21 43 [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: 01 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: 01 07 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: 01 07 00 22 21 00 00 00 00 00 EB 0C 41 [12:07:02]RasterBufferAndPrint [12:07:02]line [12:07:02]line [12:07:02]line [12:07:02]line [12:07:02]line [12:07:02]written 0, free lines is 3316 [12:07:02]MH_Cut [12:07:02]Write to MH i2c: D1 01 00 29 21 01 1C [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: D1 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: D1 01 00 [12:07:02]MH_I2C_Read... [12:07:02]Read from MH i2c: D1 01 00 29 21 00 1B [12:07:02]Write to MH i2c: 01 00 00 2A 21 4B [12:07:02]Write i2c OK [12:07:02]MH_I2C_Read... [12:07:03]OFD Sender: No OFD packet to send [12:07:03]*** Cut start [12:07:03]*** Purtial cut [12:07:03]*** Stage 1: CUTSNS_PIN = 1 [12:07:03]Read from MH i2c: 01 [12:07:03]MH_I2C_Read... [12:07:03]*** Stop cut motor [12:07:03]*** Cut end [12:07:03]Read from MH i2c: 01 07 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: 01 07 00 2A 21 00 00 00 00 00 FF 0F 60 [12:07:03]process_action close_receipt done [12:07:03]requested_data is exist [12:07:03]produce_requested_data [12:07:03]requested_item fm.sn is exist - process it [12:07:03]wFMCommunicate request_size=4 [12:07:03]MH_SAM_APDU [12:07:03]CAPDU: 80 11 00 00 [12:07:03]Write to MH i2c: E2 08 00 2B 21 80 11 00 00 00 00 00 00 C6 [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:03]Read from MH i2c: E2 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 17 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 17 00 2B 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 26 [12:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:07:03]wFMCommunicate OK [12:07:03]requested_item fd.num is exist - process it [12:07:03]SAM_PROTO_GetFieldsCounters [12:07:03]wFMCommunicate request_size=4 [12:07:03]MH_SAM_APDU [12:07:03]CAPDU: 80 13 00 00 [12:07:03]Write to MH i2c: E2 08 00 2C 21 80 13 00 00 00 00 00 00 C9 [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:03]Read from MH i2c: E2 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 62 00 [12:07:03]MH_I2C_Read... [12:07:03]Read from MH i2c: E2 62 00 2C 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [12:07:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 C9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:03]wFMCommunicate OK [12:07:03]SAM_PROTO_GetFieldsCounters done [12:07:03]requested_item shift.num is exist - process it [12:07:03]requested_item shift.opened is exist - process it [12:07:03]req_shift_opened [12:07:03]FM_GetShiftState [12:07:03]SAM_PROTO_GetShiftState [12:07:03]wFMCommunicate request_size=4 [12:07:03]MH_SAM_APDU [12:07:03]CAPDU: 80 13 01 00 [12:07:03]Write to MH i2c: E2 08 00 2D 21 80 13 01 00 00 00 00 00 CB [12:07:03]Write i2c OK [12:07:03]MH_I2C_Read... [12:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:04]Read from MH i2c: E2 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 0E 00 [12:07:04]MH_I2C_Read... [12:07:04]Read from MH i2c: E2 0E 00 2D 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C5 [12:07:04]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:07:04]wFMCommunicate OK [12:07:04]SAM_PROTO_GetShiftState done [12:07:04]FM_GetShiftState done [12:07:04]req_shift_opened done [12:07:04]requested_item shift.open_date is exist - process it [12:07:04]req_shift_open_date [12:07:04]req_shift_open_date done [12:07:04]produce_requested_data done [12:07:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162505,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:07:04]process_action_free close_receipt [12:07:04]json_value_free [12:07:04]json_value_free done [12:07:04]process_json_proto returns [12:07:04]Send response to host [12:07:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162505,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:07:04]free response buf [12:07:04]execute_script done [12:07:04]execute_script returns [12:07:04]free content buf [12:07:04]Sock 8.Close socket [12:07:04]Sock 8.Thread stoped [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:43]OFD Sender: No OFD packet to send [12:08:48]OFD Sender: No OFD packet to send [12:08:53]OFD Sender: No OFD packet to send [12:08:58]OFD Sender: No OFD packet to send [12:09:03]OFD Sender: No OFD packet to send [12:09:08]OFD Sender: No OFD packet to send [12:09:13]OFD Sender: No OFD packet to send [12:09:18]OFD Sender: No OFD packet to send [12:09:23]OFD Sender: No OFD packet to send [12:09:26]accept exits with 9 [12:09:26]New connection [12:09:26]New thread 3066862948 created [12:09:26]Thread 3067006308 joined [12:09:26]Waiting for new connection... [12:09:26] Sock 9.Parse request [12:09:26]Sock 9.Check first char [12:09:26]Sock 9.First char is OK [12:09:26]request: POST /json_proto HTTP/1.0 [12:09:26]Method: POST [12:09:26]URL: /json_proto [12:09:26]Method is POST - this is cgi request [12:09:26]url: /json_proto [12:09:26]query_string will be loaded in cgi processing [12:09:26]execute_cgi json_proto POST (null) [12:09:26]execute_cgi path=json_proto method=POST [12:09:26]POST find Content-Length [12:09:26]Host: 172.17.39.67:8080 [12:09:26]Content-Length: 683 [12:09:26]Content-Type: application/json [12:09:26] [12:09:26]POST finish read [12:09:26]Found Content-Length = 683 [12:09:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 25.650, "sum" : 1700.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:26]execute_script... [12:09: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)1319048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 25.650, "sum" : 1700.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:09:26]POST & json_proto [12:09:26]process_json_proto [12:09:26]json parsed OK: [12:09:26]protocol is kg_v1.0 [12:09:26]action value=close_receipt [12:09:26]process_action close_receipt [12:09:26]cmd_close_receipt [12:09:26]MH_GetDate [12:09:26]Write to MH i2c: F0 00 00 2E 21 3E [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: F0 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: F0 09 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: F0 09 00 2E 21 00 84 6E 92 66 FA E9 8E 66 08 [12:09:26]GetLastDocTimeStamp 1720872434 [12:09:26]current date 1720872580 [12:09:26]FM_GetShiftState [12:09:26]SAM_PROTO_GetShiftState [12:09:26]wFMCommunicate request_size=4 [12:09:26]MH_SAM_APDU [12:09:26]CAPDU: 80 13 01 00 [12:09:26]Write to MH i2c: E2 08 00 2F 21 80 13 01 00 00 00 00 00 CD [12:09:26]Write i2c OK [12:09:26]MH_I2C_Read... [12:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:26]Read from MH i2c: E2 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 0E 00 [12:09:26]MH_I2C_Read... [12:09:26]Read from MH i2c: E2 0E 00 2F 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C7 [12:09:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:09:26]wFMCommunicate OK [12:09:26]SAM_PROTO_GetShiftState done [12:09:26]FM_GetShiftState done [12:09:26]opened in 1720828979 [12:09:26]opened+sec_in_day 1720915379 [12:09:26]quantity*price = 170059 [12:09:26]sum+1 = 170061 [12:09:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.59 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 174 13.07.2024 12:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162506 ФПД: 25536026640080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120940&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162506&fm=25536026640080&tin=02508201610067®Number=0000000000090858&sum=170000 [12:09:27]StoreToDocumentArchive [12:09:27]shift 462 fd 162506 [12:09:27]save to /storage/0462/doc_00162506 [12:09:27]save last doc name /storage/0462/doc_00162506 to /storage/kkm_last_doc_name [12:09:27]save OK [12:09:27]Clear old archive folders... [12:09:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:27]tlvbuf is 01C8BC90 [12:09:27]SAM_PROTO_ClearQueue [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 09 00 00 [12:09:27]Write to MH i2c: E2 08 00 3C 21 80 09 00 00 00 00 00 00 CF [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 3C 21 00 90 00 D1 [12:09:27]RAPDU: 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_ClearQueue done [12:09:27]KKMCreateOFDPacket [12:09:27]OFDProtocolAddRootSTLVToBuf [12:09:27]FM_MakeSignedData [12:09:27]FM_MakeSignedData [12:09:27]SAM_PROTO_SignData [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 0D 01 02 [12:09:27]Write to MH i2c: E2 08 00 3D 21 80 0D 01 02 00 00 00 00 D7 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:27]Read from MH i2c: E2 03 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 3D 21 00 90 00 D2 [12:09:27]RAPDU: 90 00 [12:09:27]wFMCommunicate OK [12:09:27]wFMCommunicate request_size=255 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 64 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 84 6E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7A 02 00 35 04 06 00 17 [12:09:27]Write to MH i2c: E2 02 01 3E 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 64 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 84 6E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7A 02 00 35 04 06 00 17 00 00 3D [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 3E 21 00 90 00 D3 [12:09:27]RAPDU: 90 00 [12:09:27]wFMCommunicate OK [12:09:27]wFMCommunicate request_size=10 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 0D 02 02 05 39 91 CB FE D0 [12:09:27]Write to MH i2c: E2 0D 00 3F 21 80 0D 02 02 05 00 39 91 CB FE D0 00 00 47 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 03 00 3F 21 00 90 00 D4 [12:09:27]RAPDU: 90 00 [12:09:27]wFMCommunicate OK [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 0D 03 02 [12:09:27]Write to MH i2c: E2 08 00 40 21 80 0D 03 02 00 00 00 00 DC [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0B 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 0B 00 40 21 00 A3 10 30 26 B1 9A 5F 0C 90 00 9C [12:09:27]RAPDU: A3 10 30 26 B1 9A 5F 0C 90 00 [12:09:27]wFMCommunicate OK [12:09:27]SAM_PROTO_SignData done [12:09:27]FM_MakeSignedData done [12:09:27]CreateOFDProtocolMessage [12:09:27]wFMCommunicate request_size=4 [12:09:27]MH_SAM_APDU [12:09:27]CAPDU: 80 11 00 00 [12:09:27]Write to MH i2c: E2 08 00 41 21 80 11 00 00 00 00 00 00 DC [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:27]Read from MH i2c: E2 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 17 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: E2 17 00 41 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3C [12:09:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:09:27]wFMCommunicate OK [12:09:27]CreateOFDProtocolMessage done [12:09:27]OFDSenderStorePacket 162506 [12:09:27]StoreOFDPacket docnum=162506 [12:09:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 36 21 07 01 36 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 64 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 84 6E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7A 02 00 35 04 06 00 17 39 91 CB FE D0 A3 10 30 26 B1 9A 5F 0C [12:09:27]CheckFolder [12:09:27]dirname=/storage/ofd_packets [12:09:27]CheckFolder done [12:09:27]ProducePacketName [12:09:27]name=ofd_packets/00162506 [12:09:27]NVStorageSaveData ofd_packets/00162506 [12:09:27]File name is /storage/ofd_packets/00162506 [12:09:27]Write 301 bytes [12:09:27]NVStorageSaveData done [12:09:27]OFDSenderStorePacket done [12:09:27]KKMCreateOFDPacket done [12:09:27]NVStorageSaveData kkm_last_timestamp [12:09:27]File name is /storage/kkm_last_timestamp [12:09:27]Write 4 bytes [12:09:27]NVStorageSaveData done [12:09:27]ExternCall_PrintAddStr [12:09:27]wPrintStart [12:09:27]Write to MH i2c: 01 00 00 42 21 63 [12:09:27]Write i2c OK [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: 01 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: 01 07 00 [12:09:27]MH_I2C_Read... [12:09:27]Read from MH i2c: 01 07 00 42 21 00 00 00 00 00 FF 0F 78 [12:09:27]RasterBufferAndPrint [12:09:27]line Счет N : (1)1319048 [12:09:27]line ИНН: 02508201610067 [12:09:27]line Контрольно-Кассовый Чек [12:09:27]line ПРОДАЖА [12:09:27]line ТРК (МРК, ГНК) : 33 [12:09:27]line Товар: 2710124130 [12:09:27]line Аи-92-К-5 [12:09:27]line 25.650 * 66.30 [12:09:27]line = 1700.60 [12:09:27]line НДС 12% НСП 1% [12:09:27]line > о реализуемом товаре [12:09:27]line ОКРУГЛЕНИЕ: -0.60 [12:09:27]line ИТОГО: 1700.00 [12:09:27]line Внесено: 1700.00 [12:09:27]line СДАЧА: 0.00 [12:09:27]line НСП 1% : 15.05 [12:09:27]line НДС 12% : 180.59 [12:09:27]line Наличными: 1700.00 [12:09:27]line Безнал.: 0.00 [12:09:27]line Место: АЗС № 140 "Партнер Нефть" [12:09:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:09:27]line СНО: Общий режим [12:09:27]line Чек 174 13.07.2024 12:09 [12:09:27]line Смена: 462 ФФД: 1.0 [12:09:27]line ЗНМ: 0300000129 [12:09:27]line РНМ: 0000000000090858 [12:09:27]line Версия ККМ: 001 [12:09:27]line ФМ: 0000000000874899 [12:09:27]line ФД: 162506 [12:09:27]line ФПД: 25536026640080 [12:09:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120940&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162506&fm=25536026640080&tin=02508201610067®Number=0000000000090858&sum=170000 [12:09:28]OFD Sender: Processing packet 162506 [packets to send 105, broken 104] [12:09:28]ProducePacketName [12:09:28]name=ofd_packets/00162506 [12:09:28]OFD Sender: To server: pG, [12:09:28]CommunicateWithHost lk.salyk.kg:30040 [12:09:28]ConnectInit lk.salyk.kg [12:09:28]written 0, free lines is 4095 [12:09:28]Connected sock=10 [12:09:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 36 21 07 01 36 29 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 64 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4C 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 84 6E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7A 02 00 35 04 06 00 17 39 91 CB FE D0 A3 10 30 26 B1 9A 5F 0C [12:09:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AE 7A 47 00 FE A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CA 7A 02 00 F4 03 04 00 98 1A 92 66 B6 04 01 00 00 86 9B 56 99 E4 F8 A9 9C [12:09:28]CommunicateWithHost err = 0 [12:09:28]CheckOFDResponse [12:09:28]1017 (14) - 77093643461234 [12:09:28]1041 (16) - 0000000000874899 [12:09:28]1040 (4) - 162506 [12:09:28]1012 (4) - 13.07.2024 06:11 [12:09:28]1206 (1) - 0 [12:09:28]OFD Sender: Remove packet 162506 [12:09:28]ProducePacketName [12:09:28]name=ofd_packets/00162506 [12:09:28]NVStorageDeleteData [12:09:28]Write to MH i2c: 01 00 00 6D 21 8E [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 07 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: 01 07 00 6D 21 00 00 00 00 00 DF 0C 80 [12:09:28]RasterBufferAndPrint [12:09:28]line [12:09:28]line [12:09:28]line [12:09:28]line [12:09:28]line [12:09:28]written 0, free lines is 3301 [12:09:28]MH_Cut [12:09:28]Write to MH i2c: D1 01 00 74 21 01 67 [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: D1 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: D1 01 00 [12:09:28]MH_I2C_Read... [12:09:28]Read from MH i2c: D1 01 00 74 21 00 66 [12:09:28]Write to MH i2c: 01 00 00 75 21 96 [12:09:28]Write i2c OK [12:09:28]MH_I2C_Read... [12:09:29]OFD Sender: No OFD packet to send [12:09:29]*** Cut start [12:09:29]*** Purtial cut [12:09:29]*** CUTSNS_PIN = 0 [12:09:29]*** Stage 1: CUTSNS_PIN = 1 [12:09:31]Read from MH i2c: 01 [12:09:31]MH_I2C_Read... [12:09:31]*** Stop cut motor [12:09:31]*** Cut end [12:09:31]Read from MH i2c: 01 07 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: 01 07 00 75 21 00 00 00 00 00 FF 0F AB [12:09:31]process_action close_receipt done [12:09:31]requested_data is exist [12:09:31]produce_requested_data [12:09:31]requested_item fm.sn is exist - process it [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 11 00 00 [12:09:31]Write to MH i2c: E2 08 00 76 21 80 11 00 00 00 00 00 00 11 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 17 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 17 00 76 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 71 [12:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:09:31]wFMCommunicate OK [12:09:31]requested_item fd.num is exist - process it [12:09:31]SAM_PROTO_GetFieldsCounters [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 13 00 00 [12:09:31]Write to MH i2c: E2 08 00 77 21 80 13 00 00 00 00 00 00 14 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 62 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 62 00 77 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [12:09:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:31]wFMCommunicate OK [12:09:31]SAM_PROTO_GetFieldsCounters done [12:09:31]requested_item shift.num is exist - process it [12:09:31]requested_item shift.opened is exist - process it [12:09:31]req_shift_opened [12:09:31]FM_GetShiftState [12:09:31]SAM_PROTO_GetShiftState [12:09:31]wFMCommunicate request_size=4 [12:09:31]MH_SAM_APDU [12:09:31]CAPDU: 80 13 01 00 [12:09:31]Write to MH i2c: E2 08 00 78 21 80 13 01 00 00 00 00 00 16 [12:09:31]Write i2c OK [12:09:31]MH_I2C_Read... [12:09:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:31]Read from MH i2c: E2 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 0E 00 [12:09:31]MH_I2C_Read... [12:09:31]Read from MH i2c: E2 0E 00 78 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 10 [12:09:31]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:09:31]wFMCommunicate OK [12:09:31]SAM_PROTO_GetShiftState done [12:09:31]FM_GetShiftState done [12:09:31]req_shift_opened done [12:09:31]requested_item shift.open_date is exist - process it [12:09:31]req_shift_open_date [12:09:31]req_shift_open_date done [12:09:31]produce_requested_data done [12:09:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162506,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:09:31]process_action_free close_receipt [12:09:31]json_value_free [12:09:31]json_value_free done [12:09:31]process_json_proto returns [12:09:31]Send response to host [12:09:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162506,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:09:31]free response buf [12:09:31]execute_script done [12:09:31]execute_script returns [12:09:31]free content buf [12:09:31]Sock 9.Close socket [12:09:31]Sock 9.Thread stoped [12:09:33]accept exits with 8 [12:09:33]New connection [12:09:33]New thread 3067006308 created [12:09:33]Thread 3066862948 joined [12:09:33]Waiting for new connection... [12:09:33] Sock 8.Parse request [12:09:33]Sock 8.Check first char [12:09:33]Sock 8.First char is OK [12:09:33]request: POST /json_proto HTTP/1.0 [12:09:33]Method: POST [12:09:33]URL: /json_proto [12:09:33]Method is POST - this is cgi request [12:09:33]url: /json_proto [12:09:33]query_string will be loaded in cgi processing [12:09:33]execute_cgi json_proto POST (null) [12:09:33]execute_cgi path=json_proto method=POST [12:09:33]POST find Content-Length [12:09:33]Host: 172.17.39.67:8080 [12:09:33]Content-Length: 688 [12:09:33]Content-Type: application/json [12:09:33] [12:09:33]POST finish read [12:09:33]Found Content-Length = 688 [12:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:09:33]execute_script... [12:09:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:09:33]POST & json_proto [12:09:33]process_json_proto [12:09:33]json parsed OK: [12:09:33]protocol is kg_v1.0 [12:09:33]action value=close_receipt [12:09:33]process_action close_receipt [12:09:33]cmd_close_receipt [12:09:33]MH_GetDate [12:09:33]Write to MH i2c: F0 00 00 79 21 89 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: F0 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: F0 09 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: F0 09 00 79 21 00 8B 6E 92 66 FA E9 8E 66 5A [12:09:33]GetLastDocTimeStamp 1720872580 [12:09:33]current date 1720872587 [12:09:33]FM_GetShiftState [12:09:33]SAM_PROTO_GetShiftState [12:09:33]wFMCommunicate request_size=4 [12:09:33]MH_SAM_APDU [12:09:33]CAPDU: 80 13 01 00 [12:09:33]Write to MH i2c: E2 08 00 7A 21 80 13 01 00 00 00 00 00 18 [12:09:33]Write i2c OK [12:09:33]MH_I2C_Read... [12:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:33]Read from MH i2c: E2 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 0E 00 [12:09:33]MH_I2C_Read... [12:09:33]Read from MH i2c: E2 0E 00 7A 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 12 [12:09:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:09:33]wFMCommunicate OK [12:09:33]SAM_PROTO_GetShiftState done [12:09:33]FM_GetShiftState done [12:09:33]opened in 1720828979 [12:09:33]opened+sec_in_day 1720915379 [12:09:33]quantity*price = 100042 [12:09:33]sum+1 = 100044 [12:09: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 175 13.07.2024 12:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162507 ФПД: 137203743760607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120947&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162507&fm=137203743760607&tin=02508201610067®Number=0000000000090858&sum=100000 [12:09:34]StoreToDocumentArchive [12:09:34]shift 462 fd 162507 [12:09:34]save to /storage/0462/doc_00162507 [12:09:34]save last doc name /storage/0462/doc_00162507 to /storage/kkm_last_doc_name [12:09:34]save OK [12:09:34]Clear old archive folders... [12:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:09:34]tlvbuf is 016F2CD0 [12:09:34]SAM_PROTO_ClearQueue [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 09 00 00 [12:09:34]Write to MH i2c: E2 08 00 87 21 80 09 00 00 00 00 00 00 1A [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 87 21 00 90 00 1C [12:09:34]RAPDU: 90 00 [12:09:34]wFMCommunicate OK [12:09:34]SAM_PROTO_ClearQueue done [12:09:34]KKMCreateOFDPacket [12:09:34]OFDProtocolAddRootSTLVToBuf [12:09:34]FM_MakeSignedData [12:09:34]FM_MakeSignedData [12:09:34]SAM_PROTO_SignData [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 0D 01 02 [12:09:34]Write to MH i2c: E2 08 00 88 21 80 0D 01 02 00 00 00 00 22 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 88 21 00 90 00 1D [12:09:34]RAPDU: 90 00 [12:09:34]wFMCommunicate OK [12:09:34]wFMCommunicate request_size=255 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AF 00 00 00 F4 03 04 00 8B 6E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7A 02 00 35 04 06 00 [12:09:34]Write to MH i2c: E2 02 01 89 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AF 00 00 00 F4 03 04 00 8B 6E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7A 02 00 35 04 06 00 00 00 71 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 89 21 00 90 00 1E [12:09:34]RAPDU: 90 00 [12:09:34]wFMCommunicate OK [12:09:34]wFMCommunicate request_size=11 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 0D 02 02 06 7C C9 3C 68 A0 DF [12:09:34]Write to MH i2c: E2 0E 00 8A 21 80 0D 02 02 06 00 7C C9 3C 68 A0 DF 00 00 99 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 03 00 8A 21 00 90 00 1F [12:09:34]RAPDU: 90 00 [12:09:34]wFMCommunicate OK [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 0D 03 02 [12:09:34]Write to MH i2c: E2 08 00 8B 21 80 0D 03 02 00 00 00 00 27 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 0B 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 0B 00 8B 21 00 51 CD 76 1A 33 41 87 50 90 00 21 [12:09:34]RAPDU: 51 CD 76 1A 33 41 87 50 90 00 [12:09:34]wFMCommunicate OK [12:09:34]SAM_PROTO_SignData done [12:09:34]FM_MakeSignedData done [12:09:34]CreateOFDProtocolMessage [12:09:34]wFMCommunicate request_size=4 [12:09:34]MH_SAM_APDU [12:09:34]CAPDU: 80 11 00 00 [12:09:34]Write to MH i2c: E2 08 00 8C 21 80 11 00 00 00 00 00 00 27 [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:34]Read from MH i2c: E2 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 17 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: E2 17 00 8C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 87 [12:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:09:34]wFMCommunicate OK [12:09:34]CreateOFDProtocolMessage done [12:09:34]OFDSenderStorePacket 162507 [12:09:34]StoreOFDPacket docnum=162507 [12:09:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AD AC 08 01 B8 FF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AF 00 00 00 F4 03 04 00 8B 6E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7A 02 00 35 04 06 00 7C C9 3C 68 A0 DF 51 CD 76 1A 33 41 87 50 [12:09:34]CheckFolder [12:09:34]dirname=/storage/ofd_packets [12:09:34]CheckFolder done [12:09:34]ProducePacketName [12:09:34]name=ofd_packets/00162507 [12:09:34]NVStorageSaveData ofd_packets/00162507 [12:09:34]File name is /storage/ofd_packets/00162507 [12:09:34]Write 302 bytes [12:09:34]NVStorageSaveData done [12:09:34]OFDSenderStorePacket done [12:09:34]KKMCreateOFDPacket done [12:09:34]NVStorageSaveData kkm_last_timestamp [12:09:34]File name is /storage/kkm_last_timestamp [12:09:34]Write 4 bytes [12:09:34]NVStorageSaveData done [12:09:34]ExternCall_PrintAddStr [12:09:34]wPrintStart [12:09:34]Write to MH i2c: 01 00 00 8D 21 AE [12:09:34]Write i2c OK [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 07 00 [12:09:34]MH_I2C_Read... [12:09:34]Read from MH i2c: 01 07 00 8D 21 00 00 00 00 00 FF 0F C3 [12:09:34]RasterBufferAndPrint [12:09:34]line Счет N : (1)1319049 [12:09:34]line ИНН: 02508201610067 [12:09:34]line Контрольно-Кассовый Чек [12:09:34]line ПРОДАЖА [12:09:34]line ТРК (МРК, ГНК) : 21 [12:09:34]line Товар: 2710194210 [12:09:34]line ДТ(л)-К-5 [12:09:34]line 13.780 * 72.60 [12:09:34]line = 1000.43 [12:09:34]line НДС 12% НСП 1% [12:09:34]line > о реализуемом товаре [12:09:34]line ОКРУГЛЕНИЕ: -0.43 [12:09:34]line ИТОГО: 1000.00 [12:09:34]line Внесено: 1000.00 [12:09:34]line СДАЧА: 0.00 [12:09:34]line НСП 1% : 8.85 [12:09:34]line НДС 12% : 106.24 [12:09:34]line Наличными: 1000.00 [12:09:34]line Безнал.: 0.00 [12:09:34]line Место: АЗС № 140 "Партнер Нефть" [12:09:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:09:34]line СНО: Общий режим [12:09:34]line Чек 175 13.07.2024 12:09 [12:09:34]line Смена: 462 ФФД: 1.0 [12:09:34]line ЗНМ: 0300000129 [12:09:34]line РНМ: 0000000000090858 [12:09:34]line Версия ККМ: 001 [12:09:34]line ФМ: 0000000000874899 [12:09:34]line ФД: 162507 [12:09:34]line ФПД: 137203743760607 [12:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T120947&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162507&fm=137203743760607&tin=02508201610067®Number=0000000000090858&sum=100000 [12:09:34]written 0, free lines is 4095 [12:09:34]OFD Sender: Processing packet 162507 [packets to send 105, broken 104] [12:09:34]ProducePacketName [12:09:34]name=ofd_packets/00162507 [12:09:34]OFD Sender: To server: pG, [12:09:34]CommunicateWithHost lk.salyk.kg:30040 [12:09:34]ConnectInit lk.salyk.kg [12:09:34]Connected sock=10 [12:09:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AD AC 08 01 B8 FF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 AF 00 00 00 F4 03 04 00 8B 6E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7A 02 00 35 04 06 00 7C C9 3C 68 A0 DF 51 CD 76 1A 33 41 87 50 [12:09:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 20 58 47 00 6E F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CB 7A 02 00 F4 03 04 00 9F 1A 92 66 B6 04 01 00 00 42 46 00 B9 58 80 26 82 [12:09:35]CommunicateWithHost err = 0 [12:09:35]CheckOFDResponse [12:09:35]1017 (14) - 77093643461234 [12:09:35]1041 (16) - 0000000000874899 [12:09:35]1040 (4) - 162507 [12:09:35]1012 (4) - 13.07.2024 06:11 [12:09:35]1206 (1) - 0 [12:09:35]OFD Sender: Remove packet 162507 [12:09:35]ProducePacketName [12:09:35]name=ofd_packets/00162507 [12:09:35]NVStorageDeleteData [12:09:35]Write to MH i2c: 01 00 00 B8 21 D9 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 07 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: 01 07 00 B8 21 00 00 00 00 00 F7 0C E3 [12:09:35]RasterBufferAndPrint [12:09:35]line [12:09:35]line [12:09:35]line [12:09:35]line [12:09:35]line [12:09:35]written 0, free lines is 3328 [12:09:35]MH_Cut [12:09:35]Write to MH i2c: D1 01 00 BF 21 01 B2 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: D1 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: D1 01 00 [12:09:35]MH_I2C_Read... [12:09:35]Read from MH i2c: D1 01 00 BF 21 00 B1 [12:09:35]Write to MH i2c: 01 00 00 C0 21 E1 [12:09:35]Write i2c OK [12:09:35]MH_I2C_Read... [12:09:35]OFD Sender: No OFD packet to send [12:09:36]*** Cut start [12:09:36]*** Purtial cut [12:09:36]*** Stage 1: CUTSNS_PIN = 1 [12:09:36]Read from MH i2c: 01 [12:09:36]MH_I2C_Read... [12:09:36]*** Stop cut motor [12:09:36]*** Cut end [12:09:36]Read from MH i2c: 01 07 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: 01 07 00 C0 21 00 00 00 00 00 FF 0F F6 [12:09:36]process_action close_receipt done [12:09:36]requested_data is exist [12:09:36]produce_requested_data [12:09:36]requested_item fm.sn is exist - process it [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 11 00 00 [12:09:36]Write to MH i2c: E2 08 00 C1 21 80 11 00 00 00 00 00 00 5C [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 17 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 17 00 C1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BC [12:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:09:36]wFMCommunicate OK [12:09:36]requested_item fd.num is exist - process it [12:09:36]SAM_PROTO_GetFieldsCounters [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 13 00 00 [12:09:36]Write to MH i2c: E2 08 00 C2 21 80 13 00 00 00 00 00 00 5F [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 62 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 62 00 C2 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [12:09:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:36]wFMCommunicate OK [12:09:36]SAM_PROTO_GetFieldsCounters done [12:09:36]requested_item shift.num is exist - process it [12:09:36]requested_item shift.opened is exist - process it [12:09:36]req_shift_opened [12:09:36]FM_GetShiftState [12:09:36]SAM_PROTO_GetShiftState [12:09:36]wFMCommunicate request_size=4 [12:09:36]MH_SAM_APDU [12:09:36]CAPDU: 80 13 01 00 [12:09:36]Write to MH i2c: E2 08 00 C3 21 80 13 01 00 00 00 00 00 61 [12:09:36]Write i2c OK [12:09:36]MH_I2C_Read... [12:09:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:36]Read from MH i2c: E2 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 0E 00 [12:09:36]MH_I2C_Read... [12:09:36]Read from MH i2c: E2 0E 00 C3 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5B [12:09:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:09:36]wFMCommunicate OK [12:09:36]SAM_PROTO_GetShiftState done [12:09:36]FM_GetShiftState done [12:09:36]req_shift_opened done [12:09:36]requested_item shift.open_date is exist - process it [12:09:36]req_shift_open_date [12:09:36]req_shift_open_date done [12:09:36]produce_requested_data done [12:09:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162507,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:09:36]process_action_free close_receipt [12:09:36]json_value_free [12:09:36]json_value_free done [12:09:36]process_json_proto returns [12:09:36]Send response to host [12:09:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162507,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:09:36]free response buf [12:09:36]execute_script done [12:09:36]execute_script returns [12:09:36]free content buf [12:09:36]Sock 8.Close socket [12:09:36]Sock 8.Thread stoped [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:01]accept exits with 9 [12:13:01]New connection [12:13:01]New thread 3066862948 created [12:13:01]Thread 3067006308 joined [12:13:01]Waiting for new connection... [12:13:01] Sock 9.Parse request [12:13:01]Sock 9.Check first char [12:13:01]Sock 9.First char is OK [12:13:01]request: POST /json_proto HTTP/1.0 [12:13:01]Method: POST [12:13:01]URL: /json_proto [12:13:01]Method is POST - this is cgi request [12:13:01]url: /json_proto [12:13:01]query_string will be loaded in cgi processing [12:13:01]execute_cgi json_proto POST (null) [12:13:01]execute_cgi path=json_proto method=POST [12:13:01]POST find Content-Length [12:13:01]Host: 172.17.39.67:8080 [12:13:01]Content-Length: 813 [12:13:01]Content-Type: application/json [12:13:01] [12:13:01]POST finish read [12:13:01]Found Content-Length = 813 [12:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 23.090, "sum" : 1553.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1553.96 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:01]execute_script... [12:13:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 23.090, "sum" : 1553.96, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1553.96 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:01]POST & json_proto [12:13:01]process_json_proto [12:13:01]json parsed OK: [12:13:01]protocol is kg_v1.0 [12:13:01]action value=close_receipt [12:13:01]process_action close_receipt [12:13:01]cmd_close_receipt [12:13:01]MH_GetDate [12:13:01]Write to MH i2c: F0 00 00 C4 21 D4 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: F0 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: F0 09 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: F0 09 00 C4 21 00 5B 6F 92 66 FA E9 8E 66 76 [12:13:01]GetLastDocTimeStamp 1720872587 [12:13:01]current date 1720872795 [12:13:01]FM_GetShiftState [12:13:01]SAM_PROTO_GetShiftState [12:13:01]wFMCommunicate request_size=4 [12:13:01]MH_SAM_APDU [12:13:01]CAPDU: 80 13 01 00 [12:13:01]Write to MH i2c: E2 08 00 C5 21 80 13 01 00 00 00 00 00 63 [12:13:01]Write i2c OK [12:13:01]MH_I2C_Read... [12:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:01]Read from MH i2c: E2 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 0E 00 [12:13:01]MH_I2C_Read... [12:13:01]Read from MH i2c: E2 0E 00 C5 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5D [12:13:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:13:01]wFMCommunicate OK [12:13:01]SAM_PROTO_GetShiftState done [12:13:01]FM_GetShiftState done [12:13:01]opened in 1720828979 [12:13:01]opened+sec_in_day 1720915379 [12:13:01]quantity*price = 155395 [12:13:01]sum+1 = 155397 [12:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1553.96 НСП 1% : 13.75 НДС 12% : 165.02 Наличными: 0.00 Безнал.: 1553.96 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 176 13.07.2024 12:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162508 ФПД: 70220852411186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121315&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162508&fm=70220852411186&tin=02508201610067®Number=0000000000090858&sum=155396 [12:13:02]StoreToDocumentArchive [12:13:02]shift 462 fd 162508 [12:13:02]save to /storage/0462/doc_00162508 [12:13:02]save last doc name /storage/0462/doc_00162508 to /storage/kkm_last_doc_name [12:13:02]save OK [12:13:02]Clear old archive folders... [12:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:13:02]tlvbuf is 0197C420 [12:13:02]SAM_PROTO_ClearQueue [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 09 00 00 [12:13:02]Write to MH i2c: E2 08 00 D2 21 80 09 00 00 00 00 00 00 65 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 D2 21 00 90 00 67 [12:13:02]RAPDU: 90 00 [12:13:02]wFMCommunicate OK [12:13:02]SAM_PROTO_ClearQueue done [12:13:02]KKMCreateOFDPacket [12:13:02]OFDProtocolAddRootSTLVToBuf [12:13:02]FM_MakeSignedData [12:13:02]FM_MakeSignedData [12:13:02]SAM_PROTO_SignData [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 0D 01 02 [12:13:02]Write to MH i2c: E2 08 00 D3 21 80 0D 01 02 00 00 00 00 6D [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [12:13:02]RAPDU: 90 00 [12:13:02]wFMCommunicate OK [12:13:02]wFMCommunicate request_size=255 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 5A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 04 5F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 5F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5B 6F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7A 02 00 35 04 06 00 [12:13:02]Write to MH i2c: E2 02 01 D4 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 5A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 04 5F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 5F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5B 6F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7A 02 00 35 04 06 00 00 00 75 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 D4 21 00 90 00 69 [12:13:02]RAPDU: 90 00 [12:13:02]wFMCommunicate OK [12:13:02]wFMCommunicate request_size=11 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 0D 02 02 06 3F DD 90 F6 BB 32 [12:13:02]Write to MH i2c: E2 0E 00 D5 21 80 0D 02 02 06 00 3F DD 90 F6 BB 32 00 00 0B [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 03 00 D5 21 00 90 00 6A [12:13:02]RAPDU: 90 00 [12:13:02]wFMCommunicate OK [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 0D 03 02 [12:13:02]Write to MH i2c: E2 08 00 D6 21 80 0D 03 02 00 00 00 00 72 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 0B 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 0B 00 D6 21 00 74 04 89 0D 63 93 16 2A 90 00 B7 [12:13:02]RAPDU: 74 04 89 0D 63 93 16 2A 90 00 [12:13:02]wFMCommunicate OK [12:13:02]SAM_PROTO_SignData done [12:13:02]FM_MakeSignedData done [12:13:02]CreateOFDProtocolMessage [12:13:02]wFMCommunicate request_size=4 [12:13:02]MH_SAM_APDU [12:13:02]CAPDU: 80 11 00 00 [12:13:02]Write to MH i2c: E2 08 00 D7 21 80 11 00 00 00 00 00 00 72 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:02]Read from MH i2c: E2 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 17 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: E2 17 00 D7 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D2 [12:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:13:02]wFMCommunicate OK [12:13:02]CreateOFDProtocolMessage done [12:13:02]OFDSenderStorePacket 162508 [12:13:02]StoreOFDPacket docnum=162508 [12:13:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 16 8D 08 01 B0 76 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 5A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 04 5F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 5F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5B 6F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7A 02 00 35 04 06 00 3F DD 90 F6 BB 32 74 04 89 0D 63 93 16 2A [12:13:02]CheckFolder [12:13:02]dirname=/storage/ofd_packets [12:13:02]CheckFolder done [12:13:02]ProducePacketName [12:13:02]name=ofd_packets/00162508 [12:13:02]NVStorageSaveData ofd_packets/00162508 [12:13:02]File name is /storage/ofd_packets/00162508 [12:13:02]Write 302 bytes [12:13:02]NVStorageSaveData done [12:13:02]OFDSenderStorePacket done [12:13:02]KKMCreateOFDPacket done [12:13:02]NVStorageSaveData kkm_last_timestamp [12:13:02]File name is /storage/kkm_last_timestamp [12:13:02]Write 4 bytes [12:13:02]NVStorageSaveData done [12:13:02]ExternCall_PrintAddStr [12:13:02]wPrintStart [12:13:02]Write to MH i2c: 01 00 00 D8 21 F9 [12:13:02]Write i2c OK [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 07 00 [12:13:02]MH_I2C_Read... [12:13:02]Read from MH i2c: 01 07 00 D8 21 00 00 00 00 00 FF 0F 0E [12:13:02]RasterBufferAndPrint [12:13:02]line Счет N : (1)1319051 [12:13:02]line ИНН: 02508201610067 [12:13:02]line Контрольно-Кассовый Чек [12:13:02]line ПРОДАЖА [12:13:02]line ТРК (МРК, ГНК) : 52 [12:13:02]line Товар: 2710124130 [12:13:02]line Super-92-К-5 [12:13:02]line 23.090 * 67.30 [12:13:02]line = 1553.96 [12:13:02]line НДС 12% НСП 1% [12:13:02]line > о реализуемом товаре [12:13:02]line ИТОГО: 1553.96 [12:13:02]line НСП 1% : 13.75 [12:13:02]line НДС 12% : 165.02 [12:13:02]line Наличными: 0.00 [12:13:02]line Безнал.: 1553.96 [12:13:02]line Место: АЗС № 140 "Партнер Нефть" [12:13:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:13:02]line СНО: Общий режим [12:13:02]line Чек 176 13.07.2024 12:13 [12:13:02]line Смена: 462 ФФД: 1.0 [12:13:02]line ЗНМ: 0300000129 [12:13:02]line РНМ: 0000000000090858 [12:13:02]line Версия ККМ: 001 [12:13:02]line Платежная система: Бакай Банк [12:13:02]line ФМ: 0000000000874899 [12:13:02]line ФД: 162508 [12:13:02]line ФПД: 70220852411186 [12:13:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121315&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162508&fm=70220852411186&tin=02508201610067®Number=0000000000090858&sum=155396 [12:13:03]written 0, free lines is 4095 [12:13:03]OFD Sender: Processing packet 162508 [packets to send 105, broken 104] [12:13:03]ProducePacketName [12:13:03]name=ofd_packets/00162508 [12:13:03]OFD Sender: To server: pG, [12:13:03]CommunicateWithHost lk.salyk.kg:30040 [12:13:03]ConnectInit lk.salyk.kg [12:13:03]Connected sock=10 [12:13:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 16 8D 08 01 B0 76 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 5A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 04 5F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 5F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 5F 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 5B 6F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CC 7A 02 00 35 04 06 00 3F DD 90 F6 BB 32 74 04 89 0D 63 93 16 2A [12:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 14 35 47 00 4A 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 34 38 39 39 10 04 04 00 CC 7A 02 00 F4 03 04 00 6F 1B 92 66 B6 04 01 00 00 82 BF D1 39 4A CB 7F 3E [12:13:03]CommunicateWithHost err = 0 [12:13:03]CheckOFDResponse [12:13:03]1017 (14) - 77093643461234 [12:13:03]1041 (16) - 0000000000874899 [12:13:03]1040 (4) - 162508 [12:13:03]1012 (4) - 13.07.2024 06:15 [12:13:03]1206 (1) - 0 [12:13:03]OFD Sender: Remove packet 162508 [12:13:03]ProducePacketName [12:13:03]name=ofd_packets/00162508 [12:13:03]NVStorageDeleteData [12:13:03]Write to MH i2c: 01 00 00 02 22 24 [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 07 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: 01 07 00 02 22 00 00 00 00 00 F9 0C 30 [12:13:03]RasterBufferAndPrint [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]line [12:13:03]written 0, free lines is 3328 [12:13:03]MH_Cut [12:13:03]Write to MH i2c: D1 01 00 09 22 01 FD [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 01 00 [12:13:03]MH_I2C_Read... [12:13:03]Read from MH i2c: D1 01 00 09 22 00 FC [12:13:03]Write to MH i2c: 01 00 00 0A 22 2C [12:13:03]Write i2c OK [12:13:03]MH_I2C_Read... [12:13:03]OFD Sender: No OFD packet to send [12:13:04]*** Cut start [12:13:04]*** Purtial cut [12:13:04]*** CUTSNS_PIN = 0 [12:13:04]*** Stage 1: CUTSNS_PIN = 1 [12:13:06]Read from MH i2c: 01 [12:13:06]MH_I2C_Read... [12:13:06]*** Stop cut motor [12:13:06]*** Cut end [12:13:06]Read from MH i2c: 01 07 00 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: 01 07 00 0A 22 00 00 00 00 00 FF 0F 41 [12:13:06]process_action close_receipt done [12:13:06]requested_data is exist [12:13:06]produce_requested_data [12:13:06]requested_item fm.sn is exist - process it [12:13:06]wFMCommunicate request_size=4 [12:13:06]MH_SAM_APDU [12:13:06]CAPDU: 80 11 00 00 [12:13:06]Write to MH i2c: E2 08 00 0B 22 80 11 00 00 00 00 00 00 A7 [12:13:06]Write i2c OK [12:13:06]MH_I2C_Read... [12:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:06]Read from MH i2c: E2 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 17 00 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 17 00 0B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 07 [12:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:13:06]wFMCommunicate OK [12:13:06]requested_item fd.num is exist - process it [12:13:06]SAM_PROTO_GetFieldsCounters [12:13:06]wFMCommunicate request_size=4 [12:13:06]MH_SAM_APDU [12:13:06]CAPDU: 80 13 00 00 [12:13:06]Write to MH i2c: E2 08 00 0C 22 80 13 00 00 00 00 00 00 AA [12:13:06]Write i2c OK [12:13:06]MH_I2C_Read... [12:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:06]Read from MH i2c: E2 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 62 00 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 62 00 0C 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [12: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:06]wFMCommunicate OK [12:13:06]SAM_PROTO_GetFieldsCounters done [12:13:06]requested_item shift.num is exist - process it [12:13:06]requested_item shift.opened is exist - process it [12:13:06]req_shift_opened [12:13:06]FM_GetShiftState [12:13:06]SAM_PROTO_GetShiftState [12:13:06]wFMCommunicate request_size=4 [12:13:06]MH_SAM_APDU [12:13:06]CAPDU: 80 13 01 00 [12:13:06]Write to MH i2c: E2 08 00 0D 22 80 13 01 00 00 00 00 00 AC [12:13:06]Write i2c OK [12:13:06]MH_I2C_Read... [12:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:06]Read from MH i2c: E2 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 0E 00 [12:13:06]MH_I2C_Read... [12:13:06]Read from MH i2c: E2 0E 00 0D 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A6 [12:13:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:13:06]wFMCommunicate OK [12:13:06]SAM_PROTO_GetShiftState done [12:13:06]FM_GetShiftState done [12:13:06]req_shift_opened done [12:13:06]requested_item shift.open_date is exist - process it [12:13:06]req_shift_open_date [12:13:06]req_shift_open_date done [12:13:06]produce_requested_data done [12:13:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162508,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:13:06]process_action_free close_receipt [12:13:06]json_value_free [12:13:06]json_value_free done [12:13:06]process_json_proto returns [12:13:06]Send response to host [12:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162508,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:13:06]free response buf [12:13:06]execute_script done [12:13:06]execute_script returns [12:13:06]free content buf [12:13:06]Sock 9.Close socket [12:13:06]Sock 9.Thread stoped [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:42]accept exits with 8 [12:14:42]New connection [12:14:42]New thread 3067006308 created [12:14:42]Thread 3066862948 joined [12:14:42]Waiting for new connection... [12:14:42] Sock 8.Parse request [12:14:42]Sock 8.Check first char [12:14:42]Sock 8.First char is OK [12:14:42]request: POST /json_proto HTTP/1.0 [12:14:42]Method: POST [12:14:42]URL: /json_proto [12:14:42]Method is POST - this is cgi request [12:14:42]url: /json_proto [12:14:42]query_string will be loaded in cgi processing [12:14:42]execute_cgi json_proto POST (null) [12:14:42]execute_cgi path=json_proto method=POST [12:14:42]POST find Content-Length [12:14:42]Host: 172.17.39.67:8080 [12:14:42]Content-Length: 678 [12:14:42]Content-Type: application/json [12:14:42] [12:14:42]POST finish read [12:14:42]Found Content-Length = 678 [12:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:42]execute_script... [12:14: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)1319052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:42]POST & json_proto [12:14:42]process_json_proto [12:14:42]json parsed OK: [12:14:42]protocol is kg_v1.0 [12:14:42]action value=close_receipt [12:14:42]process_action close_receipt [12:14:42]cmd_close_receipt [12:14:42]MH_GetDate [12:14:42]Write to MH i2c: F0 00 00 0E 22 1F [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: F0 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: F0 09 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: F0 09 00 0E 22 00 C1 6F 92 66 FA E9 8E 66 27 [12:14:42]GetLastDocTimeStamp 1720872795 [12:14:42]current date 1720872897 [12:14:42]FM_GetShiftState [12:14:42]SAM_PROTO_GetShiftState [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 13 01 00 [12:14:42]Write to MH i2c: E2 08 00 0F 22 80 13 01 00 00 00 00 00 AE [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0E 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0E 00 0F 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A8 [12:14:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:14:42]wFMCommunicate OK [12:14:42]SAM_PROTO_GetShiftState done [12:14:42]FM_GetShiftState done [12:14:42]opened in 1720828979 [12:14:42]opened+sec_in_day 1720915379 [12:14:42]quantity*price = 30033 [12:14:42]sum+1 = 30035 [12:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 177 13.07.2024 12:14 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162509 ФПД: 43940340077289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121457&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162509&fm=43940340077289&tin=02508201610067®Number=0000000000090858&sum=30000 [12:14:44]StoreToDocumentArchive [12:14:44]shift 462 fd 162509 [12:14:44]save to /storage/0462/doc_00162509 [12:14:44]save last doc name /storage/0462/doc_00162509 to /storage/kkm_last_doc_name [12:14:44]save OK [12:14:44]Clear old archive folders... [12:14:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:14:44]tlvbuf is 018133B0 [12:14:44]SAM_PROTO_ClearQueue [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 09 00 00 [12:14:44]Write to MH i2c: E2 08 00 1C 22 80 09 00 00 00 00 00 00 B0 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 1C 22 00 90 00 B2 [12:14:44]RAPDU: 90 00 [12:14:44]wFMCommunicate OK [12:14:44]SAM_PROTO_ClearQueue done [12:14:44]KKMCreateOFDPacket [12:14:44]OFDProtocolAddRootSTLVToBuf [12:14:44]FM_MakeSignedData [12:14:44]FM_MakeSignedData [12:14:44]SAM_PROTO_SignData [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 0D 01 02 [12:14:44]Write to MH i2c: E2 08 00 1D 22 80 0D 01 02 00 00 00 00 B8 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 1D 22 00 90 00 B3 [12:14:44]RAPDU: 90 00 [12:14:44]wFMCommunicate OK [12:14:44]wFMCommunicate request_size=255 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 B1 00 00 00 F4 03 04 00 C1 6F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7A 02 00 35 04 06 00 27 [12:14:44]Write to MH i2c: E2 02 01 1E 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 B1 00 00 00 F4 03 04 00 C1 6F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7A 02 00 35 04 06 00 27 00 00 4B [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 1E 22 00 90 00 B4 [12:14:44]RAPDU: 90 00 [12:14:44]wFMCommunicate OK [12:14:44]wFMCommunicate request_size=10 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 0D 02 02 05 F6 A8 5C 92 E9 [12:14:44]Write to MH i2c: E2 0D 00 1F 22 80 0D 02 02 05 00 F6 A8 5C 92 E9 00 00 3A [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 03 00 1F 22 00 90 00 B5 [12:14:44]RAPDU: 90 00 [12:14:44]wFMCommunicate OK [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 0D 03 02 [12:14:44]Write to MH i2c: E2 08 00 20 22 80 0D 03 02 00 00 00 00 BD [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 0B 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 0B 00 20 22 00 8A D2 07 77 59 7E A6 EC 90 00 01 [12:14:44]RAPDU: 8A D2 07 77 59 7E A6 EC 90 00 [12:14:44]wFMCommunicate OK [12:14:44]SAM_PROTO_SignData done [12:14:44]FM_MakeSignedData done [12:14:44]CreateOFDProtocolMessage [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 11 00 00 [12:14:44]Write to MH i2c: E2 08 00 21 22 80 11 00 00 00 00 00 00 BD [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 17 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 17 00 21 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1D [12:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:14:44]wFMCommunicate OK [12:14:44]CreateOFDProtocolMessage done [12:14:44]OFDSenderStorePacket 162509 [12:14:44]StoreOFDPacket docnum=162509 [12:14:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BB 1E 07 01 42 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 B1 00 00 00 F4 03 04 00 C1 6F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7A 02 00 35 04 06 00 27 F6 A8 5C 92 E9 8A D2 07 77 59 7E A6 EC [12:14:44]CheckFolder [12:14:44]dirname=/storage/ofd_packets [12:14:44]CheckFolder done [12:14:44]ProducePacketName [12:14:44]name=ofd_packets/00162509 [12:14:44]NVStorageSaveData ofd_packets/00162509 [12:14:44]File name is /storage/ofd_packets/00162509 [12:14:44]Write 301 bytes [12:14:44]NVStorageSaveData done [12:14:44]OFDSenderStorePacket done [12:14:44]KKMCreateOFDPacket done [12:14:44]NVStorageSaveData kkm_last_timestamp [12:14:44]File name is /storage/kkm_last_timestamp [12:14:44]Write 4 bytes [12:14:44]NVStorageSaveData done [12:14:44]ExternCall_PrintAddStr [12:14:44]wPrintStart [12:14:44]Write to MH i2c: 01 00 00 22 22 44 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 22 22 00 00 00 00 00 FF 0F 59 [12:14:44]RasterBufferAndPrint [12:14:44]line Счет N : (1)1319052 [12:14:44]line ИНН: 02508201610067 [12:14:44]line Контрольно-Кассовый Чек [12:14:44]line ПРОДАЖА [12:14:44]line ТРК (МРК, ГНК) : 33 [12:14:44]line Товар: 2710124130 [12:14:44]line Аи-92-К-5 [12:14:44]line 4.530 * 66.30 [12:14:44]line = 300.34 [12:14:44]line НДС 12% НСП 1% [12:14:44]line > о реализуемом товаре [12:14:44]line ОКРУГЛЕНИЕ: -0.34 [12:14:44]line ИТОГО: 300.00 [12:14:44]line Внесено: 300.00 [12:14:44]line СДАЧА: 0.00 [12:14:44]line НСП 1% : 2.66 [12:14:44]line НДС 12% : 31.89 [12:14:44]line Наличными: 300.00 [12:14:44]line Безнал.: 0.00 [12:14:44]line Место: АЗС № 140 "Партнер Нефть" [12:14:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:14:44]line СНО: Общий режим [12:14:44]line Чек 177 13.07.2024 12:14 [12:14:44]line Смена: 462 ФФД: 1.0 [12:14:44]line ЗНМ: 0300000129 [12:14:44]line РНМ: 0000000000090858 [12:14:44]line Версия ККМ: 001 [12:14:44]line ФМ: 0000000000874899 [12:14:44]line ФД: 162509 [12:14:44]line ФПД: 43940340077289 [12:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T121457&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162509&fm=43940340077289&tin=02508201610067®Number=0000000000090858&sum=30000 [12:14:44]OFD Sender: Processing packet 162509 [packets to send 105, broken 104] [12:14:44]ProducePacketName [12:14:44]name=ofd_packets/00162509 [12:14:44]OFD Sender: To server: pG, [12:14:44]CommunicateWithHost lk.salyk.kg:30040 [12:14:44]ConnectInit lk.salyk.kg [12:14:44]written 0, free lines is 4095 [12:14:44]Connected sock=10 [12:14:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BB 1E 07 01 42 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 B1 00 00 00 F4 03 04 00 C1 6F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7A 02 00 35 04 06 00 27 F6 A8 5C 92 E9 8A D2 07 77 59 7E A6 EC [12:14:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CF 09 47 00 0B 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CD 7A 02 00 F4 03 04 00 D5 1B 92 66 B6 04 01 00 00 AD 3B 1D B1 AA 2B 59 70 [12:14:45]CommunicateWithHost err = 0 [12:14:45]CheckOFDResponse [12:14:45]1017 (14) - 77093643461234 [12:14:45]1041 (16) - 0000000000874899 [12:14:45]1040 (4) - 162509 [12:14:45]1012 (4) - 13.07.2024 06:16 [12:14:45]1206 (1) - 0 [12:14:45]OFD Sender: Remove packet 162509 [12:14:45]ProducePacketName [12:14:45]name=ofd_packets/00162509 [12:14:45]NVStorageDeleteData [12:14:45]Write to MH i2c: 01 00 00 4D 22 6F [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 07 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: 01 07 00 4D 22 00 00 00 00 00 EA 0C 6C [12:14:45]RasterBufferAndPrint [12:14:45]line [12:14:45]line [12:14:45]line [12:14:45]line [12:14:45]line [12:14:45]written 0, free lines is 3312 [12:14:45]MH_Cut [12:14:45]Write to MH i2c: D1 01 00 54 22 01 48 [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: D1 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: D1 01 00 [12:14:45]MH_I2C_Read... [12:14:45]Read from MH i2c: D1 01 00 54 22 00 47 [12:14:45]Write to MH i2c: 01 00 00 55 22 77 [12:14:45]Write i2c OK [12:14:45]MH_I2C_Read... [12:14:45]OFD Sender: No OFD packet to send [12:14:46]*** Cut start [12:14:46]*** Purtial cut [12:14:46]*** Stage 1: CUTSNS_PIN = 1 [12:14:46]Read from MH i2c: 01 [12:14:46]MH_I2C_Read... [12:14:46]*** Stop cut motor [12:14:46]*** Cut end [12:14:46]Read from MH i2c: 01 07 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: 01 07 00 55 22 00 00 00 00 00 FF 0F 8C [12:14:46]process_action close_receipt done [12:14:46]requested_data is exist [12:14:46]produce_requested_data [12:14:46]requested_item fm.sn is exist - process it [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 11 00 00 [12:14:46]Write to MH i2c: E2 08 00 56 22 80 11 00 00 00 00 00 00 F2 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 17 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 17 00 56 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 52 [12:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:14:46]wFMCommunicate OK [12:14:46]requested_item fd.num is exist - process it [12:14:46]SAM_PROTO_GetFieldsCounters [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 13 00 00 [12:14:46]Write to MH i2c: E2 08 00 57 22 80 13 00 00 00 00 00 00 F5 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 62 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 62 00 57 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:14:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:46]wFMCommunicate OK [12:14:46]SAM_PROTO_GetFieldsCounters done [12:14:46]requested_item shift.num is exist - process it [12:14:46]requested_item shift.opened is exist - process it [12:14:46]req_shift_opened [12:14:46]FM_GetShiftState [12:14:46]SAM_PROTO_GetShiftState [12:14:46]wFMCommunicate request_size=4 [12:14:46]MH_SAM_APDU [12:14:46]CAPDU: 80 13 01 00 [12:14:46]Write to MH i2c: E2 08 00 58 22 80 13 01 00 00 00 00 00 F7 [12:14:46]Write i2c OK [12:14:46]MH_I2C_Read... [12:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:46]Read from MH i2c: E2 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 0E 00 [12:14:46]MH_I2C_Read... [12:14:46]Read from MH i2c: E2 0E 00 58 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F1 [12:14:46]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:14:46]wFMCommunicate OK [12:14:46]SAM_PROTO_GetShiftState done [12:14:46]FM_GetShiftState done [12:14:46]req_shift_opened done [12:14:46]requested_item shift.open_date is exist - process it [12:14:46]req_shift_open_date [12:14:46]req_shift_open_date done [12:14:46]produce_requested_data done [12:14:46]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162509,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:14:46]process_action_free close_receipt [12:14:46]json_value_free [12:14:46]json_value_free done [12:14:46]process_json_proto returns [12:14:46]Send response to host [12:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162509,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:14:46]free response buf [12:14:46]execute_script done [12:14:46]execute_script returns [12:14:46]free content buf [12:14:46]Sock 8.Close socket [12:14:46]Sock 8.Thread stoped [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:46]accept exits with 9 [12:19:46]New connection [12:19:46]New thread 3066862948 created [12:19:46]Thread 3067006308 joined [12:19:46]Waiting for new connection... [12:19:46] Sock 9.Parse request [12:19:46]Sock 9.Check first char [12:19:46]Sock 9.First char is OK [12:19:46]request: POST /json_proto HTTP/1.0 [12:19:46]Method: POST [12:19:46]URL: /json_proto [12:19:46]Method is POST - this is cgi request [12:19:46]url: /json_proto [12:19:46]query_string will be loaded in cgi processing [12:19:46]execute_cgi json_proto POST (null) [12:19:46]execute_cgi path=json_proto method=POST [12:19:46]POST find Content-Length [12:19:46]Host: 172.17.39.67:8080 [12:19:46]Content-Length: 809 [12:19:46]Content-Type: application/json [12:19:46] [12:19:46]POST finish read [12:19:46]Found Content-Length = 809 [12:19:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:46]execute_script... [12:19: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)1319053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:46]POST & json_proto [12:19:46]process_json_proto [12:19:46]json parsed OK: [12:19:46]protocol is kg_v1.0 [12:19:46]action value=close_receipt [12:19:46]process_action close_receipt [12:19:46]cmd_close_receipt [12:19:46]MH_GetDate [12:19:46]Write to MH i2c: F0 00 00 59 22 6A [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 09 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: F0 09 00 59 22 00 F1 70 92 66 FA E9 8E 66 A3 [12:19:46]GetLastDocTimeStamp 1720872897 [12:19:46]current date 1720873201 [12:19:46]FM_GetShiftState [12:19:46]SAM_PROTO_GetShiftState [12:19:46]wFMCommunicate request_size=4 [12:19:46]MH_SAM_APDU [12:19:46]CAPDU: 80 13 01 00 [12:19:46]Write to MH i2c: E2 08 00 5A 22 80 13 01 00 00 00 00 00 F9 [12:19:46]Write i2c OK [12:19:46]MH_I2C_Read... [12:19:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:46]Read from MH i2c: E2 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 [12:19:46]MH_I2C_Read... [12:19:46]Read from MH i2c: E2 0E 00 5A 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F3 [12:19:46]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:19:46]wFMCommunicate OK [12:19:46]SAM_PROTO_GetShiftState done [12:19:46]FM_GetShiftState done [12:19:46]opened in 1720828979 [12:19:46]opened+sec_in_day 1720915379 [12:19:46]quantity*price = 199940 [12:19:46]sum+1 = 199941 [12:19:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1999.40 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 0.00 Безнал.: 1999.40 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 178 13.07.2024 12:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162510 ФПД: 138422436814427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122001&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162510&fm=138422436814427&tin=02508201610067®Number=0000000000090858&sum=199940 [12:19:47]StoreToDocumentArchive [12:19:47]shift 462 fd 162510 [12:19:47]save to /storage/0462/doc_00162510 [12:19:47]save last doc name /storage/0462/doc_00162510 to /storage/kkm_last_doc_name [12:19:47]save OK [12:19:47]Clear old archive folders... [12:19:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:19:47]tlvbuf is 01C58570 [12:19:47]SAM_PROTO_ClearQueue [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 09 00 00 [12:19:47]Write to MH i2c: E2 08 00 67 22 80 09 00 00 00 00 00 00 FB [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 67 22 00 90 00 FD [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]SAM_PROTO_ClearQueue done [12:19:47]KKMCreateOFDPacket [12:19:47]OFDProtocolAddRootSTLVToBuf [12:19:47]FM_MakeSignedData [12:19:47]FM_MakeSignedData [12:19:47]SAM_PROTO_SignData [12:19:47]wFMCommunicate request_size=4 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 01 02 [12:19:47]Write to MH i2c: E2 08 00 68 22 80 0D 01 02 00 00 00 00 03 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:47]Read from MH i2c: E2 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 [12:19:47]MH_I2C_Read... [12:19:47]Read from MH i2c: E2 03 00 68 22 00 90 00 FE [12:19:47]RAPDU: 90 00 [12:19:47]wFMCommunicate OK [12:19:47]wFMCommunicate request_size=255 [12:19:47]MH_SAM_APDU [12:19:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F1 70 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7A 02 00 35 04 06 00 [12:19:47]Write to MH i2c: E2 02 01 69 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F1 70 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7A 02 00 35 04 06 00 00 00 63 [12:19:47]Write i2c OK [12:19:47]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 69 22 00 90 00 FF [12:19:48]RAPDU: 90 00 [12:19:48]wFMCommunicate OK [12:19:48]wFMCommunicate request_size=11 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 0D 02 02 06 7D E4 FC 2C DE 5B [12:19:48]Write to MH i2c: E2 0E 00 6A 22 80 0D 02 02 06 00 7D E4 FC 2C DE 5B 00 00 D4 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 03 00 6A 22 00 90 00 00 [12:19:48]RAPDU: 90 00 [12:19:48]wFMCommunicate OK [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 0D 03 02 [12:19:48]Write to MH i2c: E2 08 00 6B 22 80 0D 03 02 00 00 00 00 08 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 0B 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 0B 00 6B 22 00 71 45 77 0B DF B9 38 1D 90 00 2E [12:19:48]RAPDU: 71 45 77 0B DF B9 38 1D 90 00 [12:19:48]wFMCommunicate OK [12:19:48]SAM_PROTO_SignData done [12:19:48]FM_MakeSignedData done [12:19:48]CreateOFDProtocolMessage [12:19:48]wFMCommunicate request_size=4 [12:19:48]MH_SAM_APDU [12:19:48]CAPDU: 80 11 00 00 [12:19:48]Write to MH i2c: E2 08 00 6C 22 80 11 00 00 00 00 00 00 08 [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:48]Read from MH i2c: E2 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 17 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: E2 17 00 6C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 68 [12:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:19:48]wFMCommunicate OK [12:19:48]CreateOFDProtocolMessage done [12:19:48]OFDSenderStorePacket 162510 [12:19:48]StoreOFDPacket docnum=162510 [12:19:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6D 84 08 01 DE 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F1 70 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7A 02 00 35 04 06 00 7D E4 FC 2C DE 5B 71 45 77 0B DF B9 38 1D [12:19:48]CheckFolder [12:19:48]dirname=/storage/ofd_packets [12:19:48]CheckFolder done [12:19:48]ProducePacketName [12:19:48]name=ofd_packets/00162510 [12:19:48]NVStorageSaveData ofd_packets/00162510 [12:19:48]File name is /storage/ofd_packets/00162510 [12:19:48]Write 302 bytes [12:19:48]NVStorageSaveData done [12:19:48]OFDSenderStorePacket done [12:19:48]KKMCreateOFDPacket done [12:19:48]NVStorageSaveData kkm_last_timestamp [12:19:48]File name is /storage/kkm_last_timestamp [12:19:48]Write 4 bytes [12:19:48]NVStorageSaveData done [12:19:48]ExternCall_PrintAddStr [12:19:48]wPrintStart [12:19:48]Write to MH i2c: 01 00 00 6D 22 8F [12:19:48]Write i2c OK [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 [12:19:48]MH_I2C_Read... [12:19:48]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 FF 0F A4 [12:19:48]RasterBufferAndPrint [12:19:48]line Счет N : (1)1319053 [12:19:48]line ИНН: 02508201610067 [12:19:48]line Контрольно-Кассовый Чек [12:19:48]line ПРОДАЖА [12:19:48]line ТРК (МРК, ГНК) : 31 [12:19:48]line Товар: 2710194210 [12:19:48]line ДТ(л)-К-5 [12:19:48]line 27.540 * 72.60 [12:19:48]line = 1999.40 [12:19:48]line НДС 12% НСП 1% [12:19:48]line > о реализуемом товаре [12:19:48]line ИТОГО: 1999.40 [12:19:48]line НСП 1% : 17.69 [12:19:48]line НДС 12% : 212.33 [12:19:48]line Наличными: 0.00 [12:19:48]line Безнал.: 1999.40 [12:19:48]line Место: АЗС № 140 "Партнер Нефть" [12:19:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:19:48]line СНО: Общий режим [12:19:48]line Чек 178 13.07.2024 12:20 [12:19:48]line Смена: 462 ФФД: 1.0 [12:19:48]line ЗНМ: 0300000129 [12:19:48]line РНМ: 0000000000090858 [12:19:48]line Версия ККМ: 001 [12:19:48]line Платежная система: O! деньги [12:19:48]line ФМ: 0000000000874899 [12:19:48]line ФД: 162510 [12:19:48]line ФПД: 138422436814427 [12:19:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T122001&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162510&fm=138422436814427&tin=02508201610067®Number=0000000000090858&sum=199940 [12:19:48]written 0, free lines is 4095 [12:19:48]OFD Sender: Processing packet 162510 [packets to send 105, broken 104] [12:19:48]ProducePacketName [12:19:48]name=ofd_packets/00162510 [12:19:48]OFD Sender: To server: pG, [12:19:48]CommunicateWithHost lk.salyk.kg:30040 [12:19:48]ConnectInit lk.salyk.kg [12:19:48]Connected sock=10 [12:19:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6D 84 08 01 DE 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 F1 70 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7A 02 00 35 04 06 00 7D E4 FC 2C DE 5B 71 45 77 0B DF B9 38 1D [12:19:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 14 2E 47 00 AB CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CE 7A 02 00 F4 03 04 00 05 1D 92 66 B6 04 01 00 00 2B 10 C3 43 83 76 E6 B2 [12:19:49]CommunicateWithHost err = 0 [12:19:49]CheckOFDResponse [12:19:49]1017 (14) - 77093643461234 [12:19:49]1041 (16) - 0000000000874899 [12:19:49]1040 (4) - 162510 [12:19:49]1012 (4) - 13.07.2024 06:21 [12:19:49]1206 (1) - 0 [12:19:49]OFD Sender: Remove packet 162510 [12:19:49]ProducePacketName [12:19:49]name=ofd_packets/00162510 [12:19:49]NVStorageDeleteData [12:19:49]Write to MH i2c: 01 00 00 97 22 B9 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 07 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: 01 07 00 97 22 00 00 00 00 00 ED 0C B9 [12:19:49]RasterBufferAndPrint [12:19:49]line [12:19:49]line [12:19:49]line [12:19:49]line [12:19:49]line [12:19:49]written 0, free lines is 3316 [12:19:49]MH_Cut [12:19:49]Write to MH i2c: D1 01 00 9E 22 01 92 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: D1 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: D1 01 00 [12:19:49]MH_I2C_Read... [12:19:49]Read from MH i2c: D1 01 00 9E 22 00 91 [12:19:49]Write to MH i2c: 01 00 00 9F 22 C1 [12:19:49]Write i2c OK [12:19:49]MH_I2C_Read... [12:19:49]OFD Sender: No OFD packet to send [12:19:49]*** Cut start [12:19:49]*** Purtial cut [12:19:49]*** CUTSNS_PIN = 0 [12:19:50]*** Stage 1: CUTSNS_PIN = 1 [12:19:51]Read from MH i2c: 01 [12:19:51]MH_I2C_Read... [12:19:51]*** Stop cut motor [12:19:51]*** Cut end [12:19:51]Read from MH i2c: 01 07 00 [12:19:51]MH_I2C_Read... [12:19:51]Read from MH i2c: 01 07 00 9F 22 00 00 00 00 00 FF 0F D6 [12:19:51]process_action close_receipt done [12:19:51]requested_data is exist [12:19:51]produce_requested_data [12:19:51]requested_item fm.sn is exist - process it [12:19:51]wFMCommunicate request_size=4 [12:19:51]MH_SAM_APDU [12:19:51]CAPDU: 80 11 00 00 [12:19:51]Write to MH i2c: E2 08 00 A0 22 80 11 00 00 00 00 00 00 3C [12:19:51]Write i2c OK [12:19:51]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 17 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 17 00 A0 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9C [12:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:19:52]wFMCommunicate OK [12:19:52]requested_item fd.num is exist - process it [12:19:52]SAM_PROTO_GetFieldsCounters [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 13 00 00 [12:19:52]Write to MH i2c: E2 08 00 A1 22 80 13 00 00 00 00 00 00 3F [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 62 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 62 00 A1 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [12:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:52]wFMCommunicate OK [12:19:52]SAM_PROTO_GetFieldsCounters done [12:19:52]requested_item shift.num is exist - process it [12:19:52]requested_item shift.opened is exist - process it [12:19:52]req_shift_opened [12:19:52]FM_GetShiftState [12:19:52]SAM_PROTO_GetShiftState [12:19:52]wFMCommunicate request_size=4 [12:19:52]MH_SAM_APDU [12:19:52]CAPDU: 80 13 01 00 [12:19:52]Write to MH i2c: E2 08 00 A2 22 80 13 01 00 00 00 00 00 41 [12:19:52]Write i2c OK [12:19:52]MH_I2C_Read... [12:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:52]Read from MH i2c: E2 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 [12:19:52]MH_I2C_Read... [12:19:52]Read from MH i2c: E2 0E 00 A2 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3B [12:19:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:19:52]wFMCommunicate OK [12:19:52]SAM_PROTO_GetShiftState done [12:19:52]FM_GetShiftState done [12:19:52]req_shift_opened done [12:19:52]requested_item shift.open_date is exist - process it [12:19:52]req_shift_open_date [12:19:52]req_shift_open_date done [12:19:52]produce_requested_data done [12:19:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162510,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:19:52]process_action_free close_receipt [12:19:52]json_value_free [12:19:52]json_value_free done [12:19:52]process_json_proto returns [12:19:52]Send response to host [12:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162510,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:19:52]free response buf [12:19:52]execute_script done [12:19:52]execute_script returns [12:19:52]free content buf [12:19:52]Sock 9.Close socket [12:19:52]Sock 9.Thread stoped [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:18]accept exits with 8 [12:32:18]New connection [12:32:18]New thread 3067006308 created [12:32:18]Thread 3066862948 joined [12:32:18]Waiting for new connection... [12:32:18] Sock 8.Parse request [12:32:18]Sock 8.Check first char [12:32:18]Sock 8.First char is OK [12:32:18]request: POST /json_proto HTTP/1.0 [12:32:18]Method: POST [12:32:18]URL: /json_proto [12:32:18]Method is POST - this is cgi request [12:32:18]url: /json_proto [12:32:18]query_string will be loaded in cgi processing [12:32:18]execute_cgi json_proto POST (null) [12:32:18]execute_cgi path=json_proto method=POST [12:32:18]POST find Content-Length [12:32:18]Host: 172.17.39.67:8080 [12:32:18]Content-Length: 683 [12:32:18]Content-Type: application/json [12:32:18] [12:32:18]POST finish read [12:32:18]Found Content-Length = 683 [12:32:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:18]execute_script... [12:32:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:32:18]POST & json_proto [12:32:18]process_json_proto [12:32:18]json parsed OK: [12:32:18]protocol is kg_v1.0 [12:32:18]action value=close_receipt [12:32:18]process_action close_receipt [12:32:18]cmd_close_receipt [12:32:18]MH_GetDate [12:32:18]Write to MH i2c: F0 00 00 A3 22 B4 [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: F0 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: F0 09 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: F0 09 00 A3 22 00 E0 73 92 66 FA E9 8E 66 DF [12:32:18]GetLastDocTimeStamp 1720873201 [12:32:18]current date 1720873952 [12:32:18]FM_GetShiftState [12:32:18]SAM_PROTO_GetShiftState [12:32:18]wFMCommunicate request_size=4 [12:32:18]MH_SAM_APDU [12:32:18]CAPDU: 80 13 01 00 [12:32:18]Write to MH i2c: E2 08 00 A4 22 80 13 01 00 00 00 00 00 43 [12:32:18]Write i2c OK [12:32:18]MH_I2C_Read... [12:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:18]Read from MH i2c: E2 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 0E 00 [12:32:18]MH_I2C_Read... [12:32:18]Read from MH i2c: E2 0E 00 A4 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3D [12:32:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:32:18]wFMCommunicate OK [12:32:18]SAM_PROTO_GetShiftState done [12:32:18]FM_GetShiftState done [12:32:18]opened in 1720828979 [12:32:18]opened+sec_in_day 1720915379 [12:32:18]quantity*price = 100046 [12:32:18]sum+1 = 100048 [12:32:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 179 13.07.2024 12:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162511 ФПД: 256962836745607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123233&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162511&fm=256962836745607&tin=02508201610067®Number=0000000000090858&sum=100000 [12:32:19]StoreToDocumentArchive [12:32:19]shift 462 fd 162511 [12:32:19]save to /storage/0462/doc_00162511 [12:32:19]save last doc name /storage/0462/doc_00162511 to /storage/kkm_last_doc_name [12:32:19]save OK [12:32:19]Clear old archive folders... [12:32:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:19]tlvbuf is 017C05B0 [12:32:19]SAM_PROTO_ClearQueue [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 09 00 00 [12:32:19]Write to MH i2c: E2 08 00 B1 22 80 09 00 00 00 00 00 00 45 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 03 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 03 00 B1 22 00 90 00 47 [12:32:19]RAPDU: 90 00 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_ClearQueue done [12:32:19]KKMCreateOFDPacket [12:32:19]OFDProtocolAddRootSTLVToBuf [12:32:19]FM_MakeSignedData [12:32:19]FM_MakeSignedData [12:32:19]SAM_PROTO_SignData [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 0D 01 02 [12:32:19]Write to MH i2c: E2 08 00 B2 22 80 0D 01 02 00 00 00 00 4D [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 03 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 03 00 B2 22 00 90 00 48 [12:32:19]RAPDU: 90 00 [12:32:19]wFMCommunicate OK [12:32:19]wFMCommunicate request_size=255 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 00 00 00 F4 03 04 00 E1 73 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7A 02 00 35 04 06 00 E9 [12:32:19]Write to MH i2c: E2 02 01 B3 22 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 00 00 00 F4 03 04 00 E1 73 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7A 02 00 35 04 06 00 E9 00 00 5B [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 B3 22 00 90 00 49 [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]wFMCommunicate request_size=10 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 02 02 05 B4 D2 9A CD 87 [12:32:20]Write to MH i2c: E2 0D 00 B4 22 80 0D 02 02 05 00 B4 D2 9A CD 87 00 00 CE [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 B4 22 00 90 00 4A [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 03 02 [12:32:20]Write to MH i2c: E2 08 00 B5 22 80 0D 03 02 00 00 00 00 52 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0B 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 0B 00 B5 22 00 C0 6A 42 46 E5 05 B6 92 90 00 37 [12:32:20]RAPDU: C0 6A 42 46 E5 05 B6 92 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_SignData done [12:32:20]FM_MakeSignedData done [12:32:20]CreateOFDProtocolMessage [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 11 00 00 [12:32:20]Write to MH i2c: E2 08 00 B6 22 80 11 00 00 00 00 00 00 52 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 17 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 17 00 B6 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B2 [12:32:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:32:20]wFMCommunicate OK [12:32:20]CreateOFDProtocolMessage done [12:32:20]OFDSenderStorePacket 162511 [12:32:20]StoreOFDPacket docnum=162511 [12:32:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9F B8 07 01 49 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 00 00 00 F4 03 04 00 E1 73 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7A 02 00 35 04 06 00 E9 B4 D2 9A CD 87 C0 6A 42 46 E5 05 B6 92 [12:32:20]CheckFolder [12:32:20]dirname=/storage/ofd_packets [12:32:20]CheckFolder done [12:32:20]ProducePacketName [12:32:20]name=ofd_packets/00162511 [12:32:20]NVStorageSaveData ofd_packets/00162511 [12:32:20]File name is /storage/ofd_packets/00162511 [12:32:20]Write 301 bytes [12:32:20]NVStorageSaveData done [12:32:20]OFDSenderStorePacket done [12:32:20]KKMCreateOFDPacket done [12:32:20]NVStorageSaveData kkm_last_timestamp [12:32:20]File name is /storage/kkm_last_timestamp [12:32:20]Write 4 bytes [12:32:20]NVStorageSaveData done [12:32:20]ExternCall_PrintAddStr [12:32:20]wPrintStart [12:32:20]Write to MH i2c: 01 00 00 B7 22 D9 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 07 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: 01 07 00 B7 22 00 00 00 00 00 FF 0F EE [12:32:20]RasterBufferAndPrint [12:32:20]line Счет N : (1)1319054 [12:32:20]line ИНН: 02508201610067 [12:32:20]line Контрольно-Кассовый Чек [12:32:20]line ПРОДАЖА [12:32:20]line ТРК (МРК, ГНК) : 53 [12:32:20]line Товар: 2710124130 [12:32:20]line Аи-92-К-5 [12:32:20]line 15.090 * 66.30 [12:32:20]line = 1000.47 [12:32:20]line НДС 12% НСП 1% [12:32:20]line > о реализуемом товаре [12:32:20]line ОКРУГЛЕНИЕ: -0.47 [12:32:20]line ИТОГО: 1000.00 [12:32:20]line Внесено: 1000.00 [12:32:20]line СДАЧА: 0.00 [12:32:20]line НСП 1% : 8.85 [12:32:20]line НДС 12% : 106.24 [12:32:20]line Наличными: 1000.00 [12:32:20]line Безнал.: 0.00 [12:32:20]line Место: АЗС № 140 "Партнер Нефть" [12:32:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:32:20]line СНО: Общий режим [12:32:20]line Чек 179 13.07.2024 12:32 [12:32:20]line Смена: 462 ФФД: 1.0 [12:32:20]line ЗНМ: 0300000129 [12:32:20]line РНМ: 0000000000090858 [12:32:20]line Версия ККМ: 001 [12:32:20]line ФМ: 0000000000874899 [12:32:20]line ФД: 162511 [12:32:20]line ФПД: 256962836745607 [12:32:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123233&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162511&fm=256962836745607&tin=02508201610067®Number=0000000000090858&sum=100000 [12:32:20]OFD Sender: Processing packet 162511 [packets to send 105, broken 104] [12:32:20]ProducePacketName [12:32:20]name=ofd_packets/00162511 [12:32:20]OFD Sender: To server: pG, [12:32:20]CommunicateWithHost lk.salyk.kg:30040 [12:32:20]ConnectInit lk.salyk.kg [12:32:20]written 0, free lines is 4095 [12:32:20]Connected sock=10 [12:32:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9F B8 07 01 49 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 B3 00 00 00 F4 03 04 00 E1 73 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7A 02 00 35 04 06 00 E9 B4 D2 9A CD 87 C0 6A 42 46 E5 05 B6 92 [12:32:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 26 A7 47 00 15 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 CF 7A 02 00 F4 03 04 00 F5 1F 92 66 B6 04 01 00 00 24 9C 65 2A BE B7 FE 79 [12:32:21]CommunicateWithHost err = 0 [12:32:21]CheckOFDResponse [12:32:21]1017 (14) - 77093643461234 [12:32:21]1041 (16) - 0000000000874899 [12:32:21]1040 (4) - 162511 [12:32:21]1012 (4) - 13.07.2024 06:34 [12:32:21]1206 (1) - 0 [12:32:21]OFD Sender: Remove packet 162511 [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00162511 [12:32:21]NVStorageDeleteData [12:32:21]Write to MH i2c: 01 00 00 E2 22 04 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 E2 22 00 00 00 00 00 F4 0C 0B [12:32:21]RasterBufferAndPrint [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]line [12:32:21]written 0, free lines is 3325 [12:32:21]MH_Cut [12:32:21]Write to MH i2c: D1 01 00 E9 22 01 DD [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 01 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: D1 01 00 E9 22 00 DC [12:32:21]Write to MH i2c: 01 00 00 EA 22 0C [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]OFD Sender: No OFD packet to send [12:32:21]*** Cut start [12:32:21]*** Purtial cut [12:32:21]*** Stage 1: CUTSNS_PIN = 1 [12:32:22]Read from MH i2c: 01 [12:32:22]MH_I2C_Read... [12:32:22]*** Stop cut motor [12:32:22]*** Cut end [12:32:22]Read from MH i2c: 01 07 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 07 00 EA 22 00 00 00 00 00 FF 0F 21 [12:32:22]process_action close_receipt done [12:32:22]requested_data is exist [12:32:22]produce_requested_data [12:32:22]requested_item fm.sn is exist - process it [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 11 00 00 [12:32:22]Write to MH i2c: E2 08 00 EB 22 80 11 00 00 00 00 00 00 87 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 17 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 17 00 EB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E7 [12:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:32:22]wFMCommunicate OK [12:32:22]requested_item fd.num is exist - process it [12:32:22]SAM_PROTO_GetFieldsCounters [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 13 00 00 [12:32:22]Write to MH i2c: E2 08 00 EC 22 80 13 00 00 00 00 00 00 8A [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 62 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 62 00 EC 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [12:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 CF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:22]wFMCommunicate OK [12:32:22]SAM_PROTO_GetFieldsCounters done [12:32:22]requested_item shift.num is exist - process it [12:32:22]requested_item shift.opened is exist - process it [12:32:22]req_shift_opened [12:32:22]FM_GetShiftState [12:32:22]SAM_PROTO_GetShiftState [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 13 01 00 [12:32:22]Write to MH i2c: E2 08 00 ED 22 80 13 01 00 00 00 00 00 8C [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 0E 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 0E 00 ED 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 86 [12:32:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:32:22]wFMCommunicate OK [12:32:22]SAM_PROTO_GetShiftState done [12:32:22]FM_GetShiftState done [12:32:22]req_shift_opened done [12:32:22]requested_item shift.open_date is exist - process it [12:32:22]req_shift_open_date [12:32:22]req_shift_open_date done [12:32:22]produce_requested_data done [12:32:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162511,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:32:22]process_action_free close_receipt [12:32:22]json_value_free [12:32:22]json_value_free done [12:32:22]process_json_proto returns [12:32:22]Send response to host [12:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162511,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:32:22]free response buf [12:32:22]execute_script done [12:32:22]execute_script returns [12:32:22]free content buf [12:32:22]Sock 8.Close socket [12:32:22]Sock 8.Thread stoped [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:02]accept exits with 9 [12:34:02]New connection [12:34:02]New thread 3066862948 created [12:34:02]Thread 3067006308 joined [12:34:02]Waiting for new connection... [12:34:02] Sock 9.Parse request [12:34:02]Sock 9.Check first char [12:34:02]Sock 9.First char is OK [12:34:02]request: POST /json_proto HTTP/1.0 [12:34:02]Method: POST [12:34:02]URL: /json_proto [12:34:02]Method is POST - this is cgi request [12:34:02]url: /json_proto [12:34:02]query_string will be loaded in cgi processing [12:34:02]execute_cgi json_proto POST (null) [12:34:02]execute_cgi path=json_proto method=POST [12:34:02]POST find Content-Length [12:34:02]Host: 172.17.39.67:8080 [12:34:02]Content-Length: 688 [12:34:02]Content-Type: application/json [12:34:02] [12:34:02]POST finish read [12:34:02]Found Content-Length = 688 [12:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:34:02]execute_script... [12:34: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)1319055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:34:02]POST & json_proto [12:34:02]process_json_proto [12:34:02]json parsed OK: [12:34:02]protocol is kg_v1.0 [12:34:02]action value=close_receipt [12:34:02]process_action close_receipt [12:34:02]cmd_close_receipt [12:34:02]MH_GetDate [12:34:02]Write to MH i2c: F0 00 00 EE 22 FF [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: F0 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: F0 09 00 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: F0 09 00 EE 22 00 48 74 92 66 FA E9 8E 66 93 [12:34:02]GetLastDocTimeStamp 1720873953 [12:34:02]current date 1720874056 [12:34:02]FM_GetShiftState [12:34:02]SAM_PROTO_GetShiftState [12:34:02]wFMCommunicate request_size=4 [12:34:02]MH_SAM_APDU [12:34:02]CAPDU: 80 13 01 00 [12:34:02]Write to MH i2c: E2 08 00 EF 22 80 13 01 00 00 00 00 00 8E [12:34:02]Write i2c OK [12:34:02]MH_I2C_Read... [12:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:02]Read from MH i2c: E2 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: E2 0E 00 [12:34:02]MH_I2C_Read... [12:34:02]Read from MH i2c: E2 0E 00 EF 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 88 [12:34:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:34:02]wFMCommunicate OK [12:34:02]SAM_PROTO_GetShiftState done [12:34:02]FM_GetShiftState done [12:34:02]opened in 1720828979 [12:34:02]opened+sec_in_day 1720915379 [12:34:02]quantity*price = 100042 [12:34:02]sum+1 = 100044 [12:34: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 180 13.07.2024 12:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162512 ФПД: 261436804006712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162512&fm=261436804006712&tin=02508201610067®Number=0000000000090858&sum=100000 [12:34:03]StoreToDocumentArchive [12:34:03]shift 462 fd 162512 [12:34:03]save to /storage/0462/doc_00162512 [12:34:03]save last doc name /storage/0462/doc_00162512 to /storage/kkm_last_doc_name [12:34:03]save OK [12:34:03]Clear old archive folders... [12:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:34:03]tlvbuf is 0170C4B0 [12:34:03]SAM_PROTO_ClearQueue [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 09 00 00 [12:34:03]Write to MH i2c: E2 08 00 FC 22 80 09 00 00 00 00 00 00 90 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 FC 22 00 90 00 92 [12:34:03]RAPDU: 90 00 [12:34:03]wFMCommunicate OK [12:34:03]SAM_PROTO_ClearQueue done [12:34:03]KKMCreateOFDPacket [12:34:03]OFDProtocolAddRootSTLVToBuf [12:34:03]FM_MakeSignedData [12:34:03]FM_MakeSignedData [12:34:03]SAM_PROTO_SignData [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 0D 01 02 [12:34:03]Write to MH i2c: E2 08 00 FD 22 80 0D 01 02 00 00 00 00 98 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 FD 22 00 90 00 93 [12:34:03]RAPDU: 90 00 [12:34:03]wFMCommunicate OK [12:34:03]wFMCommunicate request_size=255 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B4 00 00 00 F4 03 04 00 48 74 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7A 02 00 35 04 06 00 [12:34:03]Write to MH i2c: E2 02 01 FE 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B4 00 00 00 F4 03 04 00 48 74 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7A 02 00 35 04 06 00 00 00 B4 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 FE 22 00 90 00 94 [12:34:03]RAPDU: 90 00 [12:34:03]wFMCommunicate OK [12:34:03]wFMCommunicate request_size=11 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 0D 02 02 06 ED C6 7F D5 83 38 [12:34:03]Write to MH i2c: E2 0E 00 FF 22 80 0D 02 02 06 00 ED C6 7F D5 83 38 00 00 69 [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:03]Read from MH i2c: E2 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 [12:34:03]MH_I2C_Read... [12:34:03]Read from MH i2c: E2 03 00 FF 22 00 90 00 95 [12:34:03]RAPDU: 90 00 [12:34:03]wFMCommunicate OK [12:34:03]wFMCommunicate request_size=4 [12:34:03]MH_SAM_APDU [12:34:03]CAPDU: 80 0D 03 02 [12:34:03]Write to MH i2c: E2 08 00 00 23 80 0D 03 02 00 00 00 00 9E [12:34:03]Write i2c OK [12:34:03]MH_I2C_Read... [12:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:04]Read from MH i2c: E2 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: E2 0B 00 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: E2 0B 00 00 23 00 2F BC 72 BA 88 EF 76 E3 90 00 86 [12:34:04]RAPDU: 2F BC 72 BA 88 EF 76 E3 90 00 [12:34:04]wFMCommunicate OK [12:34:04]SAM_PROTO_SignData done [12:34:04]FM_MakeSignedData done [12:34:04]CreateOFDProtocolMessage [12:34:04]wFMCommunicate request_size=4 [12:34:04]MH_SAM_APDU [12:34:04]CAPDU: 80 11 00 00 [12:34:04]Write to MH i2c: E2 08 00 01 23 80 11 00 00 00 00 00 00 9E [12:34:04]Write i2c OK [12:34:04]MH_I2C_Read... [12:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:04]Read from MH i2c: E2 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: E2 17 00 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: E2 17 00 01 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FE [12:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:34:04]wFMCommunicate OK [12:34:04]CreateOFDProtocolMessage done [12:34:04]OFDSenderStorePacket 162512 [12:34:04]StoreOFDPacket docnum=162512 [12:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7C A5 08 01 06 F9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B4 00 00 00 F4 03 04 00 48 74 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7A 02 00 35 04 06 00 ED C6 7F D5 83 38 2F BC 72 BA 88 EF 76 E3 [12:34:04]CheckFolder [12:34:04]dirname=/storage/ofd_packets [12:34:04]CheckFolder done [12:34:04]ProducePacketName [12:34:04]name=ofd_packets/00162512 [12:34:04]NVStorageSaveData ofd_packets/00162512 [12:34:04]File name is /storage/ofd_packets/00162512 [12:34:04]Write 302 bytes [12:34:04]NVStorageSaveData done [12:34:04]OFDSenderStorePacket done [12:34:04]KKMCreateOFDPacket done [12:34:04]NVStorageSaveData kkm_last_timestamp [12:34:04]File name is /storage/kkm_last_timestamp [12:34:04]Write 4 bytes [12:34:04]NVStorageSaveData done [12:34:04]ExternCall_PrintAddStr [12:34:04]wPrintStart [12:34:04]Write to MH i2c: 01 00 00 02 23 25 [12:34:04]Write i2c OK [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: 01 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: 01 07 00 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: 01 07 00 02 23 00 00 00 00 00 FF 0F 3A [12:34:04]RasterBufferAndPrint [12:34:04]line Счет N : (1)1319055 [12:34:04]line ИНН: 02508201610067 [12:34:04]line Контрольно-Кассовый Чек [12:34:04]line ПРОДАЖА [12:34:04]line ТРК (МРК, ГНК) : 21 [12:34:04]line Товар: 2710194210 [12:34:04]line ДТ(л)-К-5 [12:34:04]line 13.780 * 72.60 [12:34:04]line = 1000.43 [12:34:04]line НДС 12% НСП 1% [12:34:04]line > о реализуемом товаре [12:34:04]line ОКРУГЛЕНИЕ: -0.43 [12:34:04]line ИТОГО: 1000.00 [12:34:04]line Внесено: 1000.00 [12:34:04]line СДАЧА: 0.00 [12:34:04]line НСП 1% : 8.85 [12:34:04]line НДС 12% : 106.24 [12:34:04]line Наличными: 1000.00 [12:34:04]line Безнал.: 0.00 [12:34:04]line Место: АЗС № 140 "Партнер Нефть" [12:34:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:34:04]line СНО: Общий режим [12:34:04]line Чек 180 13.07.2024 12:34 [12:34:04]line Смена: 462 ФФД: 1.0 [12:34:04]line ЗНМ: 0300000129 [12:34:04]line РНМ: 0000000000090858 [12:34:04]line Версия ККМ: 001 [12:34:04]line ФМ: 0000000000874899 [12:34:04]line ФД: 162512 [12:34:04]line ФПД: 261436804006712 [12:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162512&fm=261436804006712&tin=02508201610067®Number=0000000000090858&sum=100000 [12:34:04]OFD Sender: Processing packet 162512 [packets to send 105, broken 104] [12:34:04]ProducePacketName [12:34:04]name=ofd_packets/00162512 [12:34:04]OFD Sender: To server: pG, [12:34:04]CommunicateWithHost lk.salyk.kg:30040 [12:34:04]ConnectInit lk.salyk.kg [12:34:04]written 0, free lines is 4095 [12:34:04]Connected sock=10 [12:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7C A5 08 01 06 F9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 B4 00 00 00 F4 03 04 00 48 74 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7A 02 00 35 04 06 00 ED C6 7F D5 83 38 2F BC 72 BA 88 EF 76 E3 [12:34:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7E B1 47 00 24 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D0 7A 02 00 F4 03 04 00 5D 20 92 66 B6 04 01 00 00 84 06 9C 9D 8B 19 10 61 [12:34:04]CommunicateWithHost err = 0 [12:34:04]CheckOFDResponse [12:34:04]1017 (14) - 77093643461234 [12:34:04]1041 (16) - 0000000000874899 [12:34:04]1040 (4) - 162512 [12:34:04]1012 (4) - 13.07.2024 06:36 [12:34:04]1206 (1) - 0 [12:34:04]OFD Sender: Remove packet 162512 [12:34:04]ProducePacketName [12:34:04]name=ofd_packets/00162512 [12:34:04]NVStorageDeleteData [12:34:04]Write to MH i2c: 01 00 00 2D 23 50 [12:34:04]Write i2c OK [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: 01 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: 01 07 00 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: 01 07 00 2D 23 00 00 00 00 00 E3 0C 46 [12:34:04]RasterBufferAndPrint [12:34:04]line [12:34:04]line [12:34:04]line [12:34:04]line [12:34:04]line [12:34:04]written 0, free lines is 3305 [12:34:04]MH_Cut [12:34:04]Write to MH i2c: D1 01 00 34 23 01 29 [12:34:04]Write i2c OK [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: D1 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: D1 01 00 [12:34:04]MH_I2C_Read... [12:34:04]Read from MH i2c: D1 01 00 34 23 00 28 [12:34:04]Write to MH i2c: 01 00 00 35 23 58 [12:34:04]Write i2c OK [12:34:04]MH_I2C_Read... [12:34:05]OFD Sender: No OFD packet to send [12:34:05]*** Cut start [12:34:05]*** Purtial cut [12:34:05]*** CUTSNS_PIN = 0 [12:34:05]*** Stage 1: CUTSNS_PIN = 1 [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 35 23 00 00 00 00 00 FF 0F 6D [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 36 23 80 11 00 00 00 00 00 00 D3 [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 36 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 33 [12:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 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 37 23 80 13 00 00 00 00 00 00 D6 [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 37 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 38 23 80 13 01 00 00 00 00 00 D8 [12:34:07]Write i2c OK [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 [12:34:07]MH_I2C_Read... [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 38 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D2 [12:34:07]RAPDU: 09 00 01 33 C4 91 66 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":"0000000000874899","fd.num":162512,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [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":"0000000000874899","fd.num":162512,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [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 9.Close socket [12:34:07]Sock 9.Thread stoped [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:40]accept exits with 8 [12:36:40]New connection [12:36:40]New thread 3067006308 created [12:36:40]Thread 3066862948 joined [12:36:40]Waiting for new connection... [12:36:40] Sock 8.Parse request [12:36:40]Sock 8.Check first char [12:36:40]Sock 8.First char is OK [12:36:40]request: POST /json_proto HTTP/1.0 [12:36:40]Method: POST [12:36:40]URL: /json_proto [12:36:40]Method is POST - this is cgi request [12:36:40]url: /json_proto [12:36:40]query_string will be loaded in cgi processing [12:36:40]execute_cgi json_proto POST (null) [12:36:40]execute_cgi path=json_proto method=POST [12:36:40]POST find Content-Length [12:36:40]Host: 172.17.39.67:8080 [12:36:40]Content-Length: 672 [12:36:40]Content-Type: application/json [12:36:40] [12:36:40]POST finish read [12:36:40]Found Content-Length = 672 [12:36:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.110, "sum" : 680.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:40]execute_script... [12:36: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)1319056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.110, "sum" : 680.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:40]POST & json_proto [12:36:40]process_json_proto [12:36:40]json parsed OK: [12:36:40]protocol is kg_v1.0 [12:36:40]action value=close_receipt [12:36:40]process_action close_receipt [12:36:40]cmd_close_receipt [12:36:40]MH_GetDate [12:36:40]Write to MH i2c: F0 00 00 39 23 4B [12:36:40]Write i2c OK [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: F0 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: F0 09 00 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: F0 09 00 39 23 00 E7 74 92 66 FA E9 8E 66 7E [12:36:40]GetLastDocTimeStamp 1720874056 [12:36:40]current date 1720874215 [12:36:40]FM_GetShiftState [12:36:40]SAM_PROTO_GetShiftState [12:36:40]wFMCommunicate request_size=4 [12:36:40]MH_SAM_APDU [12:36:40]CAPDU: 80 13 01 00 [12:36:40]Write to MH i2c: E2 08 00 3A 23 80 13 01 00 00 00 00 00 DA [12:36:40]Write i2c OK [12:36:40]MH_I2C_Read... [12:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:40]Read from MH i2c: E2 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: E2 0E 00 [12:36:40]MH_I2C_Read... [12:36:40]Read from MH i2c: E2 0E 00 3A 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D4 [12:36:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:36:40]wFMCommunicate OK [12:36:40]SAM_PROTO_GetShiftState done [12:36:40]FM_GetShiftState done [12:36:40]opened in 1720828979 [12:36:40]opened+sec_in_day 1720915379 [12:36:40]quantity*price = 68040 [12:36:40]sum+1 = 68041 [12:36:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 181 13.07.2024 12:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162513 ФПД: 81234440695390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123655&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162513&fm=81234440695390&tin=02508201610067®Number=0000000000090858&sum=68000 [12:36:41]StoreToDocumentArchive [12:36:41]shift 462 fd 162513 [12:36:41]save to /storage/0462/doc_00162513 [12:36:41]save last doc name /storage/0462/doc_00162513 to /storage/kkm_last_doc_name [12:36:41]save OK [12:36:41]Clear old archive folders... [12:36:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:36:41]tlvbuf is 01C7C650 [12:36:41]SAM_PROTO_ClearQueue [12:36:41]wFMCommunicate request_size=4 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 09 00 00 [12:36:41]Write to MH i2c: E2 08 00 47 23 80 09 00 00 00 00 00 00 DC [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 47 23 00 90 00 DE [12:36:41]RAPDU: 90 00 [12:36:41]wFMCommunicate OK [12:36:41]SAM_PROTO_ClearQueue done [12:36:41]KKMCreateOFDPacket [12:36:41]OFDProtocolAddRootSTLVToBuf [12:36:41]FM_MakeSignedData [12:36:41]FM_MakeSignedData [12:36:41]SAM_PROTO_SignData [12:36:41]wFMCommunicate request_size=4 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 0D 01 02 [12:36:41]Write to MH i2c: E2 08 00 48 23 80 0D 01 02 00 00 00 00 E4 [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:41]Read from MH i2c: E2 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 [12:36:41]MH_I2C_Read... [12:36:41]Read from MH i2c: E2 03 00 48 23 00 90 00 DF [12:36:41]RAPDU: 90 00 [12:36:41]wFMCommunicate OK [12:36:41]wFMCommunicate request_size=255 [12:36:41]MH_SAM_APDU [12:36:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 C8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 E7 74 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7A 02 00 35 04 06 00 [12:36:41]Write to MH i2c: E2 02 01 49 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 C8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 E7 74 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7A 02 00 35 04 06 00 00 00 2E [12:36:41]Write i2c OK [12:36:41]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 03 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 03 00 49 23 00 90 00 E0 [12:36:42]RAPDU: 90 00 [12:36:42]wFMCommunicate OK [12:36:42]wFMCommunicate request_size=11 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 0D 02 02 06 49 E1 DD FB 2E 5E [12:36:42]Write to MH i2c: E2 0E 00 4A 23 80 0D 02 02 06 00 49 E1 DD FB 2E 5E 00 00 81 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 03 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 03 00 4A 23 00 90 00 E1 [12:36:42]RAPDU: 90 00 [12:36:42]wFMCommunicate OK [12:36:42]wFMCommunicate request_size=4 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 0D 03 02 [12:36:42]Write to MH i2c: E2 08 00 4B 23 80 0D 03 02 00 00 00 00 E9 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0B 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 0B 00 4B 23 00 9B C1 A3 FB 5A 39 3E 7F 90 00 34 [12:36:42]RAPDU: 9B C1 A3 FB 5A 39 3E 7F 90 00 [12:36:42]wFMCommunicate OK [12:36:42]SAM_PROTO_SignData done [12:36:42]FM_MakeSignedData done [12:36:42]CreateOFDProtocolMessage [12:36:42]wFMCommunicate request_size=4 [12:36:42]MH_SAM_APDU [12:36:42]CAPDU: 80 11 00 00 [12:36:42]Write to MH i2c: E2 08 00 4C 23 80 11 00 00 00 00 00 00 E9 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:42]Read from MH i2c: E2 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 17 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: E2 17 00 4C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 49 [12:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:36:42]wFMCommunicate OK [12:36:42]CreateOFDProtocolMessage done [12:36:42]OFDSenderStorePacket 162513 [12:36:42]StoreOFDPacket docnum=162513 [12:36:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 96 8C 08 01 B4 D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 C8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 E7 74 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7A 02 00 35 04 06 00 49 E1 DD FB 2E 5E 9B C1 A3 FB 5A 39 3E 7F [12:36:42]CheckFolder [12:36:42]dirname=/storage/ofd_packets [12:36:42]CheckFolder done [12:36:42]ProducePacketName [12:36:42]name=ofd_packets/00162513 [12:36:42]NVStorageSaveData ofd_packets/00162513 [12:36:42]File name is /storage/ofd_packets/00162513 [12:36:42]Write 302 bytes [12:36:42]NVStorageSaveData done [12:36:42]OFDSenderStorePacket done [12:36:42]KKMCreateOFDPacket done [12:36:42]NVStorageSaveData kkm_last_timestamp [12:36:42]File name is /storage/kkm_last_timestamp [12:36:42]Write 4 bytes [12:36:42]NVStorageSaveData done [12:36:42]ExternCall_PrintAddStr [12:36:42]wPrintStart [12:36:42]Write to MH i2c: 01 00 00 4D 23 70 [12:36:42]Write i2c OK [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: 01 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: 01 07 00 [12:36:42]MH_I2C_Read... [12:36:42]Read from MH i2c: 01 07 00 4D 23 00 00 00 00 00 FF 0F 85 [12:36:42]RasterBufferAndPrint [12:36:42]line Счет N : (1)1319056 [12:36:42]line ИНН: 02508201610067 [12:36:42]line Контрольно-Кассовый Чек [12:36:42]line ПРОДАЖА [12:36:42]line ТРК (МРК, ГНК) : 52 [12:36:42]line Товар: 2710124130 [12:36:42]line Super-92-К-5 [12:36:42]line 10.110 * 67.30 [12:36:42]line = 680.40 [12:36:42]line НДС 12% НСП 1% [12:36:42]line > о реализуемом товаре [12:36:42]line ОКРУГЛЕНИЕ: -0.40 [12:36:42]line ИТОГО: 680.00 [12:36:42]line Внесено: 680.00 [12:36:42]line СДАЧА: 0.00 [12:36:42]line НСП 1% : 6.02 [12:36:42]line НДС 12% : 72.25 [12:36:42]line Наличными: 680.00 [12:36:42]line Безнал.: 0.00 [12:36:42]line Место: АЗС № 140 "Партнер Нефть" [12:36:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:36:42]line СНО: Общий режим [12:36:42]line Чек 181 13.07.2024 12:36 [12:36:42]line Смена: 462 ФФД: 1.0 [12:36:42]line ЗНМ: 0300000129 [12:36:42]line РНМ: 0000000000090858 [12:36:42]line Версия ККМ: 001 [12:36:42]line ФМ: 0000000000874899 [12:36:42]line ФД: 162513 [12:36:42]line ФПД: 81234440695390 [12:36:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123655&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162513&fm=81234440695390&tin=02508201610067®Number=0000000000090858&sum=68000 [12:36:42]OFD Sender: Processing packet 162513 [packets to send 105, broken 104] [12:36:42]ProducePacketName [12:36:42]name=ofd_packets/00162513 [12:36:42]OFD Sender: To server: pG, [12:36:42]CommunicateWithHost lk.salyk.kg:30040 [12:36:42]ConnectInit lk.salyk.kg [12:36:42]written 0, free lines is 4095 [12:36:42]Connected sock=10 [12:36:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 96 8C 08 01 B4 D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 C8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 E7 74 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7A 02 00 35 04 06 00 49 E1 DD FB 2E 5E 9B C1 A3 FB 5A 39 3E 7F [12:36:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FC 18 47 00 A5 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D1 7A 02 00 F4 03 04 00 FB 20 92 66 B6 04 01 00 00 A3 77 9A AB 02 49 D8 31 [12:36:43]CommunicateWithHost err = 0 [12:36:43]CheckOFDResponse [12:36:43]1017 (14) - 77093643461234 [12:36:43]1041 (16) - 0000000000874899 [12:36:43]1040 (4) - 162513 [12:36:43]1012 (4) - 13.07.2024 06:38 [12:36:43]1206 (1) - 0 [12:36:43]OFD Sender: Remove packet 162513 [12:36:43]ProducePacketName [12:36:43]name=ofd_packets/00162513 [12:36:43]NVStorageDeleteData [12:36:43]Write to MH i2c: 01 00 00 78 23 9B [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: 01 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: 01 07 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: 01 07 00 78 23 00 00 00 00 00 DF 0C 8D [12:36:43]RasterBufferAndPrint [12:36:43]line [12:36:43]line [12:36:43]line [12:36:43]line [12:36:43]line [12:36:43]written 0, free lines is 3301 [12:36:43]MH_Cut [12:36:43]Write to MH i2c: D1 01 00 7F 23 01 74 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: D1 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: D1 01 00 [12:36:43]MH_I2C_Read... [12:36:43]Read from MH i2c: D1 01 00 7F 23 00 73 [12:36:43]Write to MH i2c: 01 00 00 80 23 A3 [12:36:43]Write i2c OK [12:36:43]MH_I2C_Read... [12:36:43]OFD Sender: No OFD packet to send [12:36:43]*** Cut start [12:36:43]*** Purtial cut [12:36:43]*** Stage 1: CUTSNS_PIN = 1 [12:36:44]Read from MH i2c: 01 [12:36:44]MH_I2C_Read... [12:36:44]*** Stop cut motor [12:36:44]*** Cut end [12:36:44]Read from MH i2c: 01 07 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: 01 07 00 80 23 00 00 00 00 00 FF 0F B8 [12:36:44]process_action close_receipt done [12:36:44]requested_data is exist [12:36:44]produce_requested_data [12:36:44]requested_item fm.sn is exist - process it [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 11 00 00 [12:36:44]Write to MH i2c: E2 08 00 81 23 80 11 00 00 00 00 00 00 1E [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 17 00 81 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7E [12:36:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:36:44]wFMCommunicate OK [12:36:44]requested_item fd.num is exist - process it [12:36:44]SAM_PROTO_GetFieldsCounters [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 13 00 00 [12:36:44]Write to MH i2c: E2 08 00 82 23 80 13 00 00 00 00 00 00 21 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 62 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 62 00 82 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [12:36:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_GetFieldsCounters done [12:36:44]requested_item shift.num is exist - process it [12:36:44]requested_item shift.opened is exist - process it [12:36:44]req_shift_opened [12:36:44]FM_GetShiftState [12:36:44]SAM_PROTO_GetShiftState [12:36:44]wFMCommunicate request_size=4 [12:36:44]MH_SAM_APDU [12:36:44]CAPDU: 80 13 01 00 [12:36:44]Write to MH i2c: E2 08 00 83 23 80 13 01 00 00 00 00 00 23 [12:36:44]Write i2c OK [12:36:44]MH_I2C_Read... [12:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:44]Read from MH i2c: E2 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0E 00 [12:36:44]MH_I2C_Read... [12:36:44]Read from MH i2c: E2 0E 00 83 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1D [12:36:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:36:44]wFMCommunicate OK [12:36:44]SAM_PROTO_GetShiftState done [12:36:44]FM_GetShiftState done [12:36:44]req_shift_opened done [12:36:44]requested_item shift.open_date is exist - process it [12:36:44]req_shift_open_date [12:36:44]req_shift_open_date done [12:36:44]produce_requested_data done [12:36:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162513,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:36:44]process_action_free close_receipt [12:36:44]json_value_free [12:36:44]json_value_free done [12:36:44]process_json_proto returns [12:36:44]Send response to host [12:36:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162513,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:36:44]free response buf [12:36:44]execute_script done [12:36:44]execute_script returns [12:36:44]free content buf [12:36:44]Sock 8.Close socket [12:36:44]Sock 8.Thread stoped [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:06]accept exits with 9 [12:39:06]New connection [12:39:06]New thread 3066862948 created [12:39:06]Thread 3067006308 joined [12:39:06]Waiting for new connection... [12:39:06] Sock 9.Parse request [12:39:06]Sock 9.Check first char [12:39:06]Sock 9.First char is OK [12:39:06]request: POST /json_proto HTTP/1.0 [12:39:06]Method: POST [12:39:06]URL: /json_proto [12:39:06]Method is POST - this is cgi request [12:39:06]url: /json_proto [12:39:06]query_string will be loaded in cgi processing [12:39:06]execute_cgi json_proto POST (null) [12:39:06]execute_cgi path=json_proto method=POST [12:39:06]POST find Content-Length [12:39:06]Host: 172.17.39.67:8080 [12:39:06]Content-Length: 801 [12:39:06]Content-Type: application/json [12:39:06] [12:39:06]POST finish read [12:39:06]Found Content-Length = 801 [12:39:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.990, "sum" : 662.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 662.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:06]execute_script... [12:39:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.990, "sum" : 662.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 662.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:06]POST & json_proto [12:39:06]process_json_proto [12:39:06]json parsed OK: [12:39:06]protocol is kg_v1.0 [12:39:06]action value=close_receipt [12:39:06]process_action close_receipt [12:39:06]cmd_close_receipt [12:39:06]MH_GetDate [12:39:06]Write to MH i2c: F0 00 00 84 23 96 [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: F0 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: F0 09 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: F0 09 00 84 23 00 78 75 92 66 FA E9 8E 66 5B [12:39:06]GetLastDocTimeStamp 1720874215 [12:39:06]current date 1720874360 [12:39:06]FM_GetShiftState [12:39:06]SAM_PROTO_GetShiftState [12:39:06]wFMCommunicate request_size=4 [12:39:06]MH_SAM_APDU [12:39:06]CAPDU: 80 13 01 00 [12:39:06]Write to MH i2c: E2 08 00 85 23 80 13 01 00 00 00 00 00 25 [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:06]Read from MH i2c: E2 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 0E 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: E2 0E 00 85 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1F [12:39:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:39:06]wFMCommunicate OK [12:39:06]SAM_PROTO_GetShiftState done [12:39:06]FM_GetShiftState done [12:39:06]opened in 1720828979 [12:39:06]opened+sec_in_day 1720915379 [12:39:06]quantity*price = 66233 [12:39:06]sum+1 = 66235 [12:39:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 662.34 НСП 1% : 5.86 НДС 12% : 70.34 Наличными: 0.00 Безнал.: 662.34 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 182 13.07.2024 12:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162514 ФПД: 234978283535780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123920&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162514&fm=234978283535780&tin=02508201610067®Number=0000000000090858&sum=66234 [12:39:07]StoreToDocumentArchive [12:39:07]shift 462 fd 162514 [12:39:07]save to /storage/0462/doc_00162514 [12:39:07]save last doc name /storage/0462/doc_00162514 to /storage/kkm_last_doc_name [12:39:07]save OK [12:39:07]Clear old archive folders... [12:39:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:07]tlvbuf is 01C449F0 [12:39:07]SAM_PROTO_ClearQueue [12:39:07]wFMCommunicate request_size=4 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 09 00 00 [12:39:07]Write to MH i2c: E2 08 00 92 23 80 09 00 00 00 00 00 00 27 [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 03 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 03 00 92 23 00 90 00 29 [12:39:07]RAPDU: 90 00 [12:39:07]wFMCommunicate OK [12:39:07]SAM_PROTO_ClearQueue done [12:39:07]KKMCreateOFDPacket [12:39:07]OFDProtocolAddRootSTLVToBuf [12:39:07]FM_MakeSignedData [12:39:07]FM_MakeSignedData [12:39:07]SAM_PROTO_SignData [12:39:07]wFMCommunicate request_size=4 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 0D 01 02 [12:39:07]Write to MH i2c: E2 08 00 93 23 80 0D 01 02 00 00 00 00 2F [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 03 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 03 00 93 23 00 90 00 2A [12:39:07]RAPDU: 90 00 [12:39:07]wFMCommunicate OK [12:39:07]wFMCommunicate request_size=255 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 78 75 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7A 02 00 35 04 06 00 D5 [12:39:07]Write to MH i2c: E2 02 01 94 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 78 75 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7A 02 00 35 04 06 00 D5 00 00 1C [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 03 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 03 00 94 23 00 90 00 2B [12:39:07]RAPDU: 90 00 [12:39:07]wFMCommunicate OK [12:39:07]wFMCommunicate request_size=10 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 0D 02 02 05 B6 25 1E BD A4 [12:39:07]Write to MH i2c: E2 0D 00 95 23 80 0D 02 02 05 00 B6 25 1E BD A4 00 00 96 [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 03 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 03 00 95 23 00 90 00 2C [12:39:07]RAPDU: 90 00 [12:39:07]wFMCommunicate OK [12:39:07]wFMCommunicate request_size=4 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 0D 03 02 [12:39:07]Write to MH i2c: E2 08 00 96 23 80 0D 03 02 00 00 00 00 34 [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 0B 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 0B 00 96 23 00 3B B9 AE 50 52 7F FA F7 90 00 E9 [12:39:07]RAPDU: 3B B9 AE 50 52 7F FA F7 90 00 [12:39:07]wFMCommunicate OK [12:39:07]SAM_PROTO_SignData done [12:39:07]FM_MakeSignedData done [12:39:07]CreateOFDProtocolMessage [12:39:07]wFMCommunicate request_size=4 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 11 00 00 [12:39:07]Write to MH i2c: E2 08 00 97 23 80 11 00 00 00 00 00 00 34 [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 17 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 17 00 97 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 94 [12:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:39:07]wFMCommunicate OK [12:39:07]CreateOFDProtocolMessage done [12:39:07]OFDSenderStorePacket 162514 [12:39:07]StoreOFDPacket docnum=162514 [12:39:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 00 F6 07 01 DF 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 78 75 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7A 02 00 35 04 06 00 D5 B6 25 1E BD A4 3B B9 AE 50 52 7F FA F7 [12:39:07]CheckFolder [12:39:07]dirname=/storage/ofd_packets [12:39:07]CheckFolder done [12:39:07]ProducePacketName [12:39:07]name=ofd_packets/00162514 [12:39:07]NVStorageSaveData ofd_packets/00162514 [12:39:07]File name is /storage/ofd_packets/00162514 [12:39:07]Write 301 bytes [12:39:07]NVStorageSaveData done [12:39:07]OFDSenderStorePacket done [12:39:07]KKMCreateOFDPacket done [12:39:07]NVStorageSaveData kkm_last_timestamp [12:39:07]File name is /storage/kkm_last_timestamp [12:39:07]Write 4 bytes [12:39:07]NVStorageSaveData done [12:39:07]ExternCall_PrintAddStr [12:39:07]wPrintStart [12:39:07]Write to MH i2c: 01 00 00 98 23 BB [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: 01 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: 01 07 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: 01 07 00 98 23 00 00 00 00 00 FF 0F D0 [12:39:07]RasterBufferAndPrint [12:39:07]line Счет N : (1)1319057 [12:39:07]line ИНН: 02508201610067 [12:39:07]line Контрольно-Кассовый Чек [12:39:07]line ПРОДАЖА [12:39:07]line ТРК (МРК, ГНК) : 33 [12:39:07]line Товар: 2710124130 [12:39:07]line Аи-92-К-5 [12:39:07]line 9.990 * 66.30 [12:39:07]line = 662.34 [12:39:07]line НДС 12% НСП 1% [12:39:07]line > о реализуемом товаре [12:39:07]line ИТОГО: 662.34 [12:39:07]line НСП 1% : 5.86 [12:39:07]line НДС 12% : 70.34 [12:39:07]line Наличными: 0.00 [12:39:07]line Безнал.: 662.34 [12:39:07]line Место: АЗС № 140 "Партнер Нефть" [12:39:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:39:07]line СНО: Общий режим [12:39:07]line Чек 182 13.07.2024 12:39 [12:39:07]line Смена: 462 ФФД: 1.0 [12:39:07]line ЗНМ: 0300000129 [12:39:07]line РНМ: 0000000000090858 [12:39:07]line Версия ККМ: 001 [12:39:07]line Платежная система: O! деньги [12:39:07]line ФМ: 0000000000874899 [12:39:07]line ФД: 162514 [12:39:07]line ФПД: 234978283535780 [12:39:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T123920&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162514&fm=234978283535780&tin=02508201610067®Number=0000000000090858&sum=66234 [12:39:07]written 0, free lines is 4095 [12:39:07]OFD Sender: Processing packet 162514 [packets to send 105, broken 104] [12:39:07]ProducePacketName [12:39:07]name=ofd_packets/00162514 [12:39:07]OFD Sender: To server: pG, [12:39:07]CommunicateWithHost lk.salyk.kg:30040 [12:39:07]ConnectInit lk.salyk.kg [12:39:07]Connected sock=10 [12:39:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 00 F6 07 01 DF 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 BA 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BA 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BA 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 78 75 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7A 02 00 35 04 06 00 D5 B6 25 1E BD A4 3B B9 AE 50 52 7F FA F7 [12:39:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 59 DD 47 00 65 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D2 7A 02 00 F4 03 04 00 8C 21 92 66 B6 04 01 00 00 2F AB 43 CF 18 99 03 3A [12:39:08]CommunicateWithHost err = 0 [12:39:08]CheckOFDResponse [12:39:08]1017 (14) - 77093643461234 [12:39:08]1041 (16) - 0000000000874899 [12:39:08]1040 (4) - 162514 [12:39:08]1012 (4) - 13.07.2024 06:41 [12:39:08]1206 (1) - 0 [12:39:08]OFD Sender: Remove packet 162514 [12:39:08]ProducePacketName [12:39:08]name=ofd_packets/00162514 [12:39:08]NVStorageDeleteData [12:39:08]Write to MH i2c: 01 00 00 C2 23 E5 [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: 01 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: 01 07 00 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: 01 07 00 C2 23 00 00 00 00 00 05 0D FE [12:39:08]RasterBufferAndPrint [12:39:08]line [12:39:08]line [12:39:08]line [12:39:08]line [12:39:08]line [12:39:08]written 0, free lines is 3342 [12:39:08]MH_Cut [12:39:08]Write to MH i2c: D1 01 00 C9 23 01 BE [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: D1 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: D1 01 00 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: D1 01 00 C9 23 00 BD [12:39:08]Write to MH i2c: 01 00 00 CA 23 ED [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:08]OFD Sender: No OFD packet to send [12:39:08]*** Cut start [12:39:08]*** Purtial cut [12:39:08]*** CUTSNS_PIN = 0 [12:39:09]*** Stage 1: CUTSNS_PIN = 1 [12:39:10]Read from MH i2c: 01 [12:39:10]MH_I2C_Read... [12:39:10]*** Stop cut motor [12:39:10]*** Cut end [12:39:10]Read from MH i2c: 01 07 00 [12:39:10]MH_I2C_Read... [12:39:10]Read from MH i2c: 01 07 00 CA 23 00 00 00 00 00 FF 0F 02 [12:39:10]process_action close_receipt done [12:39:10]requested_data is exist [12:39:10]produce_requested_data [12:39:10]requested_item fm.sn is exist - process it [12:39:10]wFMCommunicate request_size=4 [12:39:10]MH_SAM_APDU [12:39:10]CAPDU: 80 11 00 00 [12:39:10]Write to MH i2c: E2 08 00 CB 23 80 11 00 00 00 00 00 00 68 [12:39:10]Write i2c OK [12:39:10]MH_I2C_Read... [12:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:11]Read from MH i2c: E2 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 17 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 17 00 CB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C8 [12:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:39:11]wFMCommunicate OK [12:39:11]requested_item fd.num is exist - process it [12:39:11]SAM_PROTO_GetFieldsCounters [12:39:11]wFMCommunicate request_size=4 [12:39:11]MH_SAM_APDU [12:39:11]CAPDU: 80 13 00 00 [12:39:11]Write to MH i2c: E2 08 00 CC 23 80 13 00 00 00 00 00 00 6B [12:39:11]Write i2c OK [12:39:11]MH_I2C_Read... [12:39:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:11]Read from MH i2c: E2 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 62 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 62 00 CC 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [12:39:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:11]wFMCommunicate OK [12:39:11]SAM_PROTO_GetFieldsCounters done [12:39:11]requested_item shift.num is exist - process it [12:39:11]requested_item shift.opened is exist - process it [12:39:11]req_shift_opened [12:39:11]FM_GetShiftState [12:39:11]SAM_PROTO_GetShiftState [12:39:11]wFMCommunicate request_size=4 [12:39:11]MH_SAM_APDU [12:39:11]CAPDU: 80 13 01 00 [12:39:11]Write to MH i2c: E2 08 00 CD 23 80 13 01 00 00 00 00 00 6D [12:39:11]Write i2c OK [12:39:11]MH_I2C_Read... [12:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:11]Read from MH i2c: E2 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 0E 00 [12:39:11]MH_I2C_Read... [12:39:11]Read from MH i2c: E2 0E 00 CD 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 67 [12:39:11]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:39:11]wFMCommunicate OK [12:39:11]SAM_PROTO_GetShiftState done [12:39:11]FM_GetShiftState done [12:39:11]req_shift_opened done [12:39:11]requested_item shift.open_date is exist - process it [12:39:11]req_shift_open_date [12:39:11]req_shift_open_date done [12:39:11]produce_requested_data done [12:39:11]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162514,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:39:11]process_action_free close_receipt [12:39:11]json_value_free [12:39:11]json_value_free done [12:39:11]process_json_proto returns [12:39:11]Send response to host [12:39:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162514,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:39:11]free response buf [12:39:11]execute_script done [12:39:11]execute_script returns [12:39:11]free content buf [12:39:11]Sock 9.Close socket [12:39:11]Sock 9.Thread stoped [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:15]accept exits with 8 [12:40:15]New connection [12:40:15]New thread 3067006308 created [12:40:15]Thread 3066862948 joined [12:40:15]Waiting for new connection... [12:40:15] Sock 8.Parse request [12:40:15]Sock 8.Check first char [12:40:15]Sock 8.First char is OK [12:40:15]request: POST /json_proto HTTP/1.0 [12:40:15]Method: POST [12:40:15]URL: /json_proto [12:40:15]Method is POST - this is cgi request [12:40:15]url: /json_proto [12:40:15]query_string will be loaded in cgi processing [12:40:15]execute_cgi json_proto POST (null) [12:40:15]execute_cgi path=json_proto method=POST [12:40:15]POST find Content-Length [12:40:15]Host: 172.17.39.67:8080 [12:40:15]Content-Length: 1218 [12:40:15]Content-Type: application/json [12:40:15] [12:40:15]POST finish read [12:40:15]Found Content-Length = 1218 [12:40:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319058\u000A13.07.2024 12:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.670 x 72.60\u000A\u0418\u0422\u041E\u0413: 1500.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00435\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:15]execute_script... [12:40:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319058\u000A13.07.2024 12:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.670 x 72.60\u000A\u0418\u0422\u041E\u0413: 1500.64\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00435\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:15]POST & json_proto [12:40:15]process_json_proto [12:40:15]json parsed OK: [12:40:15]protocol is kg_v1.0 [12:40:15]action value=print_text [12:40:15]process_action print_text [12:40:15]cmd_print_text [12:40:15]ExternCall_PrintAddStr [12:40:15]wPrintStart [12:40:15]Write to MH i2c: 01 00 00 CE 23 F1 [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 07 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 07 00 CE 23 00 00 00 00 00 FF 0F 06 [12:40:15]RasterBufferAndPrint [12:40:15]line *****ТОВАРНЫЙ ЧЕК***** [12:40:15]line АЗС 140 [12:40:15]line Партнер нефть [12:40:15]line 02508201610067 [12:40:15]line Кассир : Шамбеталиев А. [12:40:15]line Счет N : (1)1319058 [12:40:15]line 13.07.2024 12:38 [12:40:15]line ПРОДАЖА [12:40:15]line ТРК (МРК, ГНК): 21 [12:40:15]line Вид ГСМ : 2710194210 [12:40:15]line ДТ(л)-К-5 [12:40:15]line 20.670 x 72.60 [12:40:15]line ИТОГ: 1500.64 [12:40:15]line Тип оплаты: Талоны: Топливная Карта [12:40:15]line 00435 [12:40:15]line ______________________ [12:40:15]line (подпись) [12:40:15]written 0, free lines is 4095 [12:40:15]Write to MH i2c: 01 00 00 E3 23 06 [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 07 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: 01 07 00 E3 23 00 00 00 00 00 F5 0D 0F [12:40:15]RasterBufferAndPrint [12:40:15]line [12:40:15]line [12:40:15]line [12:40:15]line [12:40:15]line [12:40:15]written 0, free lines is 3575 [12:40:15]MH_Cut [12:40:15]Write to MH i2c: D1 01 00 EA 23 01 DF [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: D1 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: D1 01 00 [12:40:15]MH_I2C_Read... [12:40:15]Read from MH i2c: D1 01 00 EA 23 00 DE [12:40:15]Write to MH i2c: 01 00 00 EB 23 0E [12:40:15]Write i2c OK [12:40:15]MH_I2C_Read... [12:40:16]*** Cut start [12:40:16]*** Purtial cut [12:40:16]*** Stage 1: CUTSNS_PIN = 1 [12:40:16]Read from MH i2c: 01 [12:40:16]MH_I2C_Read... [12:40:16]*** Stop cut motor [12:40:16]*** Cut end [12:40:16]Read from MH i2c: 01 07 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: 01 07 00 EB 23 00 00 00 00 00 FF 0F 23 [12:40:16]process_action print_text done [12:40:16]requested_data is exist [12:40:16]produce_requested_data [12:40:16]requested_item fm.sn is exist - process it [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 11 00 00 [12:40:16]Write to MH i2c: E2 08 00 EC 23 80 11 00 00 00 00 00 00 89 [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 17 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 17 00 EC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E9 [12:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:40:16]wFMCommunicate OK [12:40:16]requested_item fd.num is exist - process it [12:40:16]SAM_PROTO_GetFieldsCounters [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 13 00 00 [12:40:16]Write to MH i2c: E2 08 00 ED 23 80 13 00 00 00 00 00 00 8C [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 62 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 62 00 ED 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [12:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:16]wFMCommunicate OK [12:40:16]SAM_PROTO_GetFieldsCounters done [12:40:16]requested_item shift.num is exist - process it [12:40:16]requested_item shift.opened is exist - process it [12:40:16]req_shift_opened [12:40:16]FM_GetShiftState [12:40:16]SAM_PROTO_GetShiftState [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 13 01 00 [12:40:16]Write to MH i2c: E2 08 00 EE 23 80 13 01 00 00 00 00 00 8E [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 0E 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 0E 00 EE 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 88 [12:40:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:40:16]wFMCommunicate OK [12:40:16]SAM_PROTO_GetShiftState done [12:40:16]FM_GetShiftState done [12:40:16]req_shift_opened done [12:40:16]requested_item shift.open_date is exist - process it [12:40:16]req_shift_open_date [12:40:16]req_shift_open_date done [12:40:16]produce_requested_data done [12:40:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162514,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:40:16]process_action_free print_text [12:40:16]json_value_free [12:40:16]json_value_free done [12:40:16]process_json_proto returns [12:40:16]Send response to host [12:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162514,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:40:16]free response buf [12:40:16]execute_script done [12:40:16]execute_script returns [12:40:16]free content buf [12:40:16]Sock 8.Close socket [12:40:16]Sock 8.Thread stoped [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]accept exits with 9 [12:42:03]New connection [12:42:03]New thread 3066862948 created [12:42:03]Thread 3067006308 joined [12:42:03]Waiting for new connection... [12:42:03] Sock 9.Parse request [12:42:03]Sock 9.Check first char [12:42:03]Sock 9.First char is OK [12:42:03]request: POST /json_proto HTTP/1.0 [12:42:03]Method: POST [12:42:03]URL: /json_proto [12:42:03]Method is POST - this is cgi request [12:42:03]url: /json_proto [12:42:03]query_string will be loaded in cgi processing [12:42:03]execute_cgi json_proto POST (null) [12:42:03]execute_cgi path=json_proto method=POST [12:42:03]POST find Content-Length [12:42:03]Host: 172.17.39.67:8080 [12:42:03]Content-Length: 683 [12:42:03]Content-Type: application/json [12:42:03] [12:42:03]POST finish read [12:42:03]Found Content-Length = 683 [12:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.220, "sum" : 1340.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:03]execute_script... [12:42: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)1319060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.220, "sum" : 1340.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1340.00, "total" : 1340.00, "payments": [ { "type": 0, "sum" : 1340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:03]POST & json_proto [12:42:03]process_json_proto [12:42:03]json parsed OK: [12:42:03]protocol is kg_v1.0 [12:42:03]action value=close_receipt [12:42:03]process_action close_receipt [12:42:03]cmd_close_receipt [12:42:03]MH_GetDate [12:42:03]Write to MH i2c: F0 00 00 EF 23 01 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 09 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: F0 09 00 EF 23 00 29 76 92 66 FA E9 8E 66 78 [12:42:03]GetLastDocTimeStamp 1720874360 [12:42:03]current date 1720874537 [12:42:03]FM_GetShiftState [12:42:03]SAM_PROTO_GetShiftState [12:42:03]wFMCommunicate request_size=4 [12:42:03]MH_SAM_APDU [12:42:03]CAPDU: 80 13 01 00 [12:42:03]Write to MH i2c: E2 08 00 F0 23 80 13 01 00 00 00 00 00 90 [12:42:03]Write i2c OK [12:42:03]MH_I2C_Read... [12:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:03]Read from MH i2c: E2 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 [12:42:03]MH_I2C_Read... [12:42:03]Read from MH i2c: E2 0E 00 F0 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8A [12:42:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:42:03]wFMCommunicate OK [12:42:03]SAM_PROTO_GetShiftState done [12:42:03]FM_GetShiftState done [12:42:03]opened in 1720828979 [12:42:03]opened+sec_in_day 1720915379 [12:42:03]quantity*price = 134058 [12:42:03]sum+1 = 134060 [12:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1340.00 Внесено: 1340.00 СДАЧА: 0.00 НСП 1% : 11.86 НДС 12% : 142.36 Наличными: 1340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 183 13.07.2024 12:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162515 ФПД: 3287721913727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124217&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162515&fm=3287721913727&tin=02508201610067®Number=0000000000090858&sum=134000 [12:42:04]StoreToDocumentArchive [12:42:04]shift 462 fd 162515 [12:42:04]save to /storage/0462/doc_00162515 [12:42:04]save last doc name /storage/0462/doc_00162515 to /storage/kkm_last_doc_name [12:42:04]save OK [12:42:04]Clear old archive folders... [12:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:04]tlvbuf is 0170C360 [12:42:04]SAM_PROTO_ClearQueue [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 09 00 00 [12:42:04]Write to MH i2c: E2 08 00 FD 23 80 09 00 00 00 00 00 00 92 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 FD 23 00 90 00 94 [12:42:04]RAPDU: 90 00 [12:42:04]wFMCommunicate OK [12:42:04]SAM_PROTO_ClearQueue done [12:42:04]KKMCreateOFDPacket [12:42:04]OFDProtocolAddRootSTLVToBuf [12:42:04]FM_MakeSignedData [12:42:04]FM_MakeSignedData [12:42:04]SAM_PROTO_SignData [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 0D 01 02 [12:42:04]Write to MH i2c: E2 08 00 FE 23 80 0D 01 02 00 00 00 00 9A [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 FE 23 00 90 00 95 [12:42:04]RAPDU: 90 00 [12:42:04]wFMCommunicate OK [12:42:04]wFMCommunicate request_size=255 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 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 29 76 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7A 02 00 35 04 06 00 02 [12:42:04]Write to MH i2c: E2 02 01 FF 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 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 29 76 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7A 02 00 35 04 06 00 02 00 00 98 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 FF 23 00 90 00 96 [12:42:04]RAPDU: 90 00 [12:42:04]wFMCommunicate OK [12:42:04]wFMCommunicate request_size=10 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 0D 02 02 05 FD 7B 7F 2D 7F [12:42:04]Write to MH i2c: E2 0D 00 00 24 80 0D 02 02 05 00 FD 7B 7F 2D 7F 00 00 4B [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 03 00 00 24 00 90 00 98 [12:42:04]RAPDU: 90 00 [12:42:04]wFMCommunicate OK [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 0D 03 02 [12:42:04]Write to MH i2c: E2 08 00 01 24 80 0D 03 02 00 00 00 00 A0 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 0B 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 0B 00 01 24 00 77 CF 39 78 CD 82 4B DB 90 00 0D [12:42:04]RAPDU: 77 CF 39 78 CD 82 4B DB 90 00 [12:42:04]wFMCommunicate OK [12:42:04]SAM_PROTO_SignData done [12:42:04]FM_MakeSignedData done [12:42:04]CreateOFDProtocolMessage [12:42:04]wFMCommunicate request_size=4 [12:42:04]MH_SAM_APDU [12:42:04]CAPDU: 80 11 00 00 [12:42:04]Write to MH i2c: E2 08 00 02 24 80 11 00 00 00 00 00 00 A0 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:04]Read from MH i2c: E2 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 17 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: E2 17 00 02 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 00 [12:42:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:42:04]wFMCommunicate OK [12:42:04]CreateOFDProtocolMessage done [12:42:04]OFDSenderStorePacket 162515 [12:42:04]StoreOFDPacket docnum=162515 [12:42:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 99 71 07 01 F2 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 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 29 76 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7A 02 00 35 04 06 00 02 FD 7B 7F 2D 7F 77 CF 39 78 CD 82 4B DB [12:42:04]CheckFolder [12:42:04]dirname=/storage/ofd_packets [12:42:04]CheckFolder done [12:42:04]ProducePacketName [12:42:04]name=ofd_packets/00162515 [12:42:04]NVStorageSaveData ofd_packets/00162515 [12:42:04]File name is /storage/ofd_packets/00162515 [12:42:04]Write 301 bytes [12:42:04]NVStorageSaveData done [12:42:04]OFDSenderStorePacket done [12:42:04]KKMCreateOFDPacket done [12:42:04]NVStorageSaveData kkm_last_timestamp [12:42:04]File name is /storage/kkm_last_timestamp [12:42:04]Write 4 bytes [12:42:04]NVStorageSaveData done [12:42:04]ExternCall_PrintAddStr [12:42:04]wPrintStart [12:42:04]Write to MH i2c: 01 00 00 03 24 27 [12:42:04]Write i2c OK [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 07 00 [12:42:04]MH_I2C_Read... [12:42:04]Read from MH i2c: 01 07 00 03 24 00 00 00 00 00 FF 0F 3C [12:42:04]RasterBufferAndPrint [12:42:04]line Счет N : (1)1319060 [12:42:04]line ИНН: 02508201610067 [12:42:04]line Контрольно-Кассовый Чек [12:42:04]line ПРОДАЖА [12:42:04]line ТРК (МРК, ГНК) : 53 [12:42:04]line Товар: 2710124130 [12:42:04]line Аи-92-К-5 [12:42:04]line 20.220 * 66.30 [12:42:04]line = 1340.59 [12:42:04]line НДС 12% НСП 1% [12:42:04]line > о реализуемом товаре [12:42:04]line ОКРУГЛЕНИЕ: -0.59 [12:42:04]line ИТОГО: 1340.00 [12:42:04]line Внесено: 1340.00 [12:42:04]line СДАЧА: 0.00 [12:42:04]line НСП 1% : 11.86 [12:42:04]line НДС 12% : 142.36 [12:42:04]line Наличными: 1340.00 [12:42:04]line Безнал.: 0.00 [12:42:04]line Место: АЗС № 140 "Партнер Нефть" [12:42:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:42:04]line СНО: Общий режим [12:42:04]line Чек 183 13.07.2024 12:42 [12:42:04]line Смена: 462 ФФД: 1.0 [12:42:04]line ЗНМ: 0300000129 [12:42:04]line РНМ: 0000000000090858 [12:42:04]line Версия ККМ: 001 [12:42:04]line ФМ: 0000000000874899 [12:42:04]line ФД: 162515 [12:42:04]line ФПД: 3287721913727 [12:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124217&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162515&fm=3287721913727&tin=02508201610067®Number=0000000000090858&sum=134000 [12:42:05]OFD Sender: Processing packet 162515 [packets to send 105, broken 104] [12:42:05]ProducePacketName [12:42:05]name=ofd_packets/00162515 [12:42:05]OFD Sender: To server: pG, [12:42:05]CommunicateWithHost lk.salyk.kg:30040 [12:42:05]ConnectInit lk.salyk.kg [12:42:05]written 0, free lines is 4095 [12:42:05]Connected sock=10 [12:42:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 99 71 07 01 F2 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AB 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 37 00 00 00 00 07 04 06 00 70 0B 02 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 29 76 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7A 02 00 35 04 06 00 02 FD 7B 7F 2D 7F 77 CF 39 78 CD 82 4B DB [12:42:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8F 92 47 00 BB 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D3 7A 02 00 F4 03 04 00 3D 22 92 66 B6 04 01 00 00 34 CA 36 3E D9 A9 CC B9 [12:42:05]CommunicateWithHost err = 0 [12:42:05]CheckOFDResponse [12:42:05]1017 (14) - 77093643461234 [12:42:05]1041 (16) - 0000000000874899 [12:42:05]1040 (4) - 162515 [12:42:05]1012 (4) - 13.07.2024 06:44 [12:42:05]1206 (1) - 0 [12:42:05]OFD Sender: Remove packet 162515 [12:42:05]ProducePacketName [12:42:05]name=ofd_packets/00162515 [12:42:05]NVStorageDeleteData [12:42:05]Write to MH i2c: 01 00 00 2E 24 52 [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 07 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: 01 07 00 2E 24 00 00 00 00 00 EE 0C 53 [12:42:05]RasterBufferAndPrint [12:42:05]line [12:42:05]line [12:42:05]line [12:42:05]line [12:42:05]line [12:42:05]written 0, free lines is 3316 [12:42:05]MH_Cut [12:42:05]Write to MH i2c: D1 01 00 35 24 01 2B [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: D1 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: D1 01 00 [12:42:05]MH_I2C_Read... [12:42:05]Read from MH i2c: D1 01 00 35 24 00 2A [12:42:05]Write to MH i2c: 01 00 00 36 24 5A [12:42:05]Write i2c OK [12:42:05]MH_I2C_Read... [12:42:05]OFD Sender: No OFD packet to send [12:42:06]*** Cut start [12:42:06]*** Purtial cut [12:42:06]*** CUTSNS_PIN = 0 [12:42:06]*** Stage 1: CUTSNS_PIN = 1 [12:42:08]Read from MH i2c: 01 [12:42:08]MH_I2C_Read... [12:42:08]*** Stop cut motor [12:42:08]*** Cut end [12:42:08]Read from MH i2c: 01 07 00 [12:42:08]MH_I2C_Read... [12:42:08]Read from MH i2c: 01 07 00 36 24 00 00 00 00 00 FF 0F 6F [12:42:08]process_action close_receipt done [12:42:08]requested_data is exist [12:42:08]produce_requested_data [12:42:08]requested_item fm.sn is exist - process it [12:42:08]wFMCommunicate request_size=4 [12:42:08]MH_SAM_APDU [12:42:08]CAPDU: 80 11 00 00 [12:42:08]Write to MH i2c: E2 08 00 37 24 80 11 00 00 00 00 00 00 D5 [12:42:08]Write i2c OK [12:42:08]MH_I2C_Read... [12:42:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:08]Read from MH i2c: E2 [12:42:08]MH_I2C_Read... [12:42:08]Read from MH i2c: E2 17 00 [12:42:08]MH_I2C_Read... [12:42:08]Read from MH i2c: E2 17 00 37 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 35 [12:42:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:42:08]wFMCommunicate OK [12:42:08]requested_item fd.num is exist - process it [12:42:08]SAM_PROTO_GetFieldsCounters [12:42:08]wFMCommunicate request_size=4 [12:42:08]MH_SAM_APDU [12:42:08]CAPDU: 80 13 00 00 [12:42:08]Write to MH i2c: E2 08 00 38 24 80 13 00 00 00 00 00 00 D8 [12:42:08]Write i2c OK [12:42:08]MH_I2C_Read... [12:42:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:08]Read from MH i2c: E2 [12:42:08]MH_I2C_Read... [12:42:08]Read from MH i2c: E2 62 00 [12:42:08]MH_I2C_Read... [12:42:08]Read from MH i2c: E2 62 00 38 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [12:42:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:08]wFMCommunicate OK [12:42:08]SAM_PROTO_GetFieldsCounters done [12:42:08]requested_item shift.num is exist - process it [12:42:08]requested_item shift.opened is exist - process it [12:42:08]req_shift_opened [12:42:08]FM_GetShiftState [12:42:08]SAM_PROTO_GetShiftState [12:42:08]wFMCommunicate request_size=4 [12:42:08]MH_SAM_APDU [12:42:08]CAPDU: 80 13 01 00 [12:42:08]Write to MH i2c: E2 08 00 39 24 80 13 01 00 00 00 00 00 DA [12:42:08]Write i2c OK [12:42:08]MH_I2C_Read... [12:42:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:08]Read from MH i2c: E2 [12:42:08]MH_I2C_Read... [12:42:08]Read from MH i2c: E2 0E 00 [12:42:08]MH_I2C_Read... [12:42:08]Read from MH i2c: E2 0E 00 39 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D4 [12:42:08]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:42:08]wFMCommunicate OK [12:42:08]SAM_PROTO_GetShiftState done [12:42:08]FM_GetShiftState done [12:42:08]req_shift_opened done [12:42:08]requested_item shift.open_date is exist - process it [12:42:08]req_shift_open_date [12:42:08]req_shift_open_date done [12:42:08]produce_requested_data done [12:42:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162515,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:42:08]process_action_free close_receipt [12:42:08]json_value_free [12:42:08]json_value_free done [12:42:08]process_json_proto returns [12:42:08]Send response to host [12:42:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162515,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:42:08]free response buf [12:42:08]execute_script done [12:42:08]execute_script returns [12:42:08]free content buf [12:42:08]Sock 9.Close socket [12:42:08]Sock 9.Thread stoped [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:28]accept exits with 8 [12:43:28]New connection [12:43:28]New thread 3067006308 created [12:43:28]Thread 3066862948 joined [12:43:28]Waiting for new connection... [12:43:28] Sock 8.Parse request [12:43:28]Sock 8.Check first char [12:43:28]Sock 8.First char is OK [12:43:28]request: POST /json_proto HTTP/1.0 [12:43:28]Method: POST [12:43:28]URL: /json_proto [12:43:28]Method is POST - this is cgi request [12:43:28]url: /json_proto [12:43:28]query_string will be loaded in cgi processing [12:43:28]execute_cgi json_proto POST (null) [12:43:28]execute_cgi path=json_proto method=POST [12:43:28]POST find Content-Length [12:43:28]Host: 172.17.39.67:8080 [12:43:28]Content-Length: 688 [12:43:28]Content-Type: application/json [12:43:28] [12:43:28]POST finish read [12:43:28]Found Content-Length = 688 [12:43:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 99.990, "sum" : 7259.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7259.00, "total" : 7259.00, "payments": [ { "type": 0, "sum" : 7259.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:28]execute_script... [12:43: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)1319059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 99.990, "sum" : 7259.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7259.00, "total" : 7259.00, "payments": [ { "type": 0, "sum" : 7259.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:28]POST & json_proto [12:43:28]process_json_proto [12:43:28]json parsed OK: [12:43:28]protocol is kg_v1.0 [12:43:28]action value=close_receipt [12:43:28]process_action close_receipt [12:43:28]cmd_close_receipt [12:43:28]MH_GetDate [12:43:28]Write to MH i2c: F0 00 00 3A 24 4D [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: F0 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: F0 09 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: F0 09 00 3A 24 00 7F 76 92 66 FA E9 8E 66 1A [12:43:28]GetLastDocTimeStamp 1720874537 [12:43:28]current date 1720874623 [12:43:28]FM_GetShiftState [12:43:28]SAM_PROTO_GetShiftState [12:43:28]wFMCommunicate request_size=4 [12:43:28]MH_SAM_APDU [12:43:28]CAPDU: 80 13 01 00 [12:43:28]Write to MH i2c: E2 08 00 3B 24 80 13 01 00 00 00 00 00 DC [12:43:28]Write i2c OK [12:43:28]MH_I2C_Read... [12:43:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:28]Read from MH i2c: E2 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0E 00 [12:43:28]MH_I2C_Read... [12:43:28]Read from MH i2c: E2 0E 00 3B 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D6 [12:43:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:43:28]wFMCommunicate OK [12:43:28]SAM_PROTO_GetShiftState done [12:43:28]FM_GetShiftState done [12:43:28]opened in 1720828979 [12:43:28]opened+sec_in_day 1720915379 [12:43:28]quantity*price = 725927 [12:43:28]sum+1 = 725928 [12:43:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 7259.00 Внесено: 7259.00 СДАЧА: 0.00 НСП 1% : 64.24 НДС 12% : 770.90 Наличными: 7259.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 184 13.07.2024 12:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162516 ФПД: 36830693192673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124343&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162516&fm=36830693192673&tin=02508201610067®Number=0000000000090858&sum=725900 [12:43:29]StoreToDocumentArchive [12:43:29]shift 462 fd 162516 [12:43:29]save to /storage/0462/doc_00162516 [12:43:29]save last doc name /storage/0462/doc_00162516 to /storage/kkm_last_doc_name [12:43:29]save OK [12:43:29]Clear old archive folders... [12:43:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:43:29]tlvbuf is 018FBE70 [12:43:29]SAM_PROTO_ClearQueue [12:43:29]wFMCommunicate request_size=4 [12:43:29]MH_SAM_APDU [12:43:29]CAPDU: 80 09 00 00 [12:43:29]Write to MH i2c: E2 08 00 48 24 80 09 00 00 00 00 00 00 DE [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:29]Read from MH i2c: E2 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 03 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 03 00 48 24 00 90 00 E0 [12:43:29]RAPDU: 90 00 [12:43:29]wFMCommunicate OK [12:43:29]SAM_PROTO_ClearQueue done [12:43:29]KKMCreateOFDPacket [12:43:29]OFDProtocolAddRootSTLVToBuf [12:43:29]FM_MakeSignedData [12:43:29]FM_MakeSignedData [12:43:29]SAM_PROTO_SignData [12:43:29]wFMCommunicate request_size=4 [12:43:29]MH_SAM_APDU [12:43:29]CAPDU: 80 0D 01 02 [12:43:29]Write to MH i2c: E2 08 00 49 24 80 0D 01 02 00 00 00 00 E6 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:29]Read from MH i2c: E2 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 03 00 [12:43:29]MH_I2C_Read... [12:43:29]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [12:43:29]RAPDU: 90 00 [12:43:29]wFMCommunicate OK [12:43:29]wFMCommunicate request_size=255 [12:43:29]MH_SAM_APDU [12:43:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 96 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A7 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 2D 01 00 00 00 07 04 06 00 8C 13 0B 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 7F 76 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7A 02 00 35 04 06 00 [12:43:29]Write to MH i2c: E2 02 01 4A 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 96 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A7 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 2D 01 00 00 00 07 04 06 00 8C 13 0B 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 7F 76 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7A 02 00 35 04 06 00 00 00 30 [12:43:29]Write i2c OK [12:43:29]MH_I2C_Read... [12:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:30]Read from MH i2c: E2 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 03 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [12:43:30]RAPDU: 90 00 [12:43:30]wFMCommunicate OK [12:43:30]wFMCommunicate request_size=11 [12:43:30]MH_SAM_APDU [12:43:30]CAPDU: 80 0D 02 02 06 21 7F 50 62 73 E1 [12:43:30]Write to MH i2c: E2 0E 00 4B 24 80 0D 02 02 06 00 21 7F 50 62 73 E1 00 00 9B [12:43:30]Write i2c OK [12:43:30]MH_I2C_Read... [12:43:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:30]Read from MH i2c: E2 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 03 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 03 00 4B 24 00 90 00 E3 [12:43:30]RAPDU: 90 00 [12:43:30]wFMCommunicate OK [12:43:30]wFMCommunicate request_size=4 [12:43:30]MH_SAM_APDU [12:43:30]CAPDU: 80 0D 03 02 [12:43:30]Write to MH i2c: E2 08 00 4C 24 80 0D 03 02 00 00 00 00 EB [12:43:30]Write i2c OK [12:43:30]MH_I2C_Read... [12:43:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:30]Read from MH i2c: E2 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 0B 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 0B 00 4C 24 00 F2 46 D6 2F 96 E4 6A 15 90 00 22 [12:43:30]RAPDU: F2 46 D6 2F 96 E4 6A 15 90 00 [12:43:30]wFMCommunicate OK [12:43:30]SAM_PROTO_SignData done [12:43:30]FM_MakeSignedData done [12:43:30]CreateOFDProtocolMessage [12:43:30]wFMCommunicate request_size=4 [12:43:30]MH_SAM_APDU [12:43:30]CAPDU: 80 11 00 00 [12:43:30]Write to MH i2c: E2 08 00 4D 24 80 11 00 00 00 00 00 00 EB [12:43:30]Write i2c OK [12:43:30]MH_I2C_Read... [12:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:30]Read from MH i2c: E2 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 17 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: E2 17 00 4D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4B [12:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:43:30]wFMCommunicate OK [12:43:30]CreateOFDProtocolMessage done [12:43:30]OFDSenderStorePacket 162516 [12:43:30]StoreOFDPacket docnum=162516 [12:43:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 16 D1 08 01 00 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 96 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A7 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 2D 01 00 00 00 07 04 06 00 8C 13 0B 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 7F 76 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7A 02 00 35 04 06 00 21 7F 50 62 73 E1 F2 46 D6 2F 96 E4 6A 15 [12:43:30]CheckFolder [12:43:30]dirname=/storage/ofd_packets [12:43:30]CheckFolder done [12:43:30]ProducePacketName [12:43:30]name=ofd_packets/00162516 [12:43:30]NVStorageSaveData ofd_packets/00162516 [12:43:30]File name is /storage/ofd_packets/00162516 [12:43:30]Write 302 bytes [12:43:30]NVStorageSaveData done [12:43:30]OFDSenderStorePacket done [12:43:30]KKMCreateOFDPacket done [12:43:30]NVStorageSaveData kkm_last_timestamp [12:43:30]File name is /storage/kkm_last_timestamp [12:43:30]Write 4 bytes [12:43:30]NVStorageSaveData done [12:43:30]ExternCall_PrintAddStr [12:43:30]wPrintStart [12:43:30]Write to MH i2c: 01 00 00 4E 24 72 [12:43:30]Write i2c OK [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: 01 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: 01 07 00 [12:43:30]MH_I2C_Read... [12:43:30]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 FF 0F 87 [12:43:30]RasterBufferAndPrint [12:43:30]line Счет N : (1)1319059 [12:43:30]line ИНН: 02508201610067 [12:43:30]line Контрольно-Кассовый Чек [12:43:30]line ПРОДАЖА [12:43:30]line ТРК (МРК, ГНК) : 31 [12:43:30]line Товар: 2710194210 [12:43:30]line ДТ(л)-К-5 [12:43:30]line 99.990 * 72.60 [12:43:30]line = 7259.27 [12:43:30]line НДС 12% НСП 1% [12:43:30]line > о реализуемом товаре [12:43:30]line ОКРУГЛЕНИЕ: -0.27 [12:43:30]line ИТОГО: 7259.00 [12:43:30]line Внесено: 7259.00 [12:43:30]line СДАЧА: 0.00 [12:43:30]line НСП 1% : 64.24 [12:43:30]line НДС 12% : 770.90 [12:43:30]line Наличными: 7259.00 [12:43:30]line Безнал.: 0.00 [12:43:30]line Место: АЗС № 140 "Партнер Нефть" [12:43:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:43:30]line СНО: Общий режим [12:43:30]line Чек 184 13.07.2024 12:43 [12:43:30]line Смена: 462 ФФД: 1.0 [12:43:30]line ЗНМ: 0300000129 [12:43:30]line РНМ: 0000000000090858 [12:43:30]line Версия ККМ: 001 [12:43:30]line ФМ: 0000000000874899 [12:43:30]line ФД: 162516 [12:43:30]line ФПД: 36830693192673 [12:43:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124343&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162516&fm=36830693192673&tin=02508201610067®Number=0000000000090858&sum=725900 [12:43:30]OFD Sender: Processing packet 162516 [packets to send 105, broken 104] [12:43:30]ProducePacketName [12:43:30]name=ofd_packets/00162516 [12:43:30]OFD Sender: To server: pG, [12:43:30]CommunicateWithHost lk.salyk.kg:30040 [12:43:30]ConnectInit lk.salyk.kg [12:43:30]written 0, free lines is 4095 [12:43:30]Connected sock=10 [12:43:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 16 D1 08 01 00 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 96 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 A7 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 18 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 2D 01 00 00 00 07 04 06 00 8C 13 0B 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 7F 76 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7A 02 00 35 04 06 00 21 7F 50 62 73 E1 F2 46 D6 2F 96 E4 6A 15 [12:43:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E2 6A 47 00 7C FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D4 7A 02 00 F4 03 04 00 93 22 92 66 B6 04 01 00 00 11 67 83 ED FE FB 0C B2 [12:43:31]CommunicateWithHost err = 0 [12:43:31]CheckOFDResponse [12:43:31]1017 (14) - 77093643461234 [12:43:31]1041 (16) - 0000000000874899 [12:43:31]1040 (4) - 162516 [12:43:31]1012 (4) - 13.07.2024 06:45 [12:43:31]1206 (1) - 0 [12:43:31]OFD Sender: Remove packet 162516 [12:43:31]ProducePacketName [12:43:31]name=ofd_packets/00162516 [12:43:31]NVStorageDeleteData [12:43:31]Write to MH i2c: 01 00 00 79 24 9D [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: 01 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: 01 07 00 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: 01 07 00 79 24 00 00 00 00 00 F1 0C A1 [12:43:31]RasterBufferAndPrint [12:43:31]line [12:43:31]line [12:43:31]line [12:43:31]line [12:43:31]line [12:43:31]written 0, free lines is 3319 [12:43:31]MH_Cut [12:43:31]Write to MH i2c: D1 01 00 80 24 01 76 [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: D1 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: D1 01 00 [12:43:31]MH_I2C_Read... [12:43:31]Read from MH i2c: D1 01 00 80 24 00 75 [12:43:31]Write to MH i2c: 01 00 00 81 24 A5 [12:43:31]Write i2c OK [12:43:31]MH_I2C_Read... [12:43:31]OFD Sender: No OFD packet to send [12:43:31]*** Cut start [12:43:31]*** Purtial cut [12:43:31]*** Stage 1: CUTSNS_PIN = 1 [12:43:32]Read from MH i2c: 01 [12:43:32]MH_I2C_Read... [12:43:32]*** Stop cut motor [12:43:32]*** Cut end [12:43:32]Read from MH i2c: 01 07 00 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: 01 07 00 81 24 00 00 00 00 00 FF 0F BA [12:43:32]process_action close_receipt done [12:43:32]requested_data is exist [12:43:32]produce_requested_data [12:43:32]requested_item fm.sn is exist - process it [12:43:32]wFMCommunicate request_size=4 [12:43:32]MH_SAM_APDU [12:43:32]CAPDU: 80 11 00 00 [12:43:32]Write to MH i2c: E2 08 00 82 24 80 11 00 00 00 00 00 00 20 [12:43:32]Write i2c OK [12:43:32]MH_I2C_Read... [12:43:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:32]Read from MH i2c: E2 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 17 00 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 17 00 82 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 80 [12:43:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:43:32]wFMCommunicate OK [12:43:32]requested_item fd.num is exist - process it [12:43:32]SAM_PROTO_GetFieldsCounters [12:43:32]wFMCommunicate request_size=4 [12:43:32]MH_SAM_APDU [12:43:32]CAPDU: 80 13 00 00 [12:43:32]Write to MH i2c: E2 08 00 83 24 80 13 00 00 00 00 00 00 23 [12:43:32]Write i2c OK [12:43:32]MH_I2C_Read... [12:43:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:32]Read from MH i2c: E2 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 62 00 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 62 00 83 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [12:43:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:32]wFMCommunicate OK [12:43:32]SAM_PROTO_GetFieldsCounters done [12:43:32]requested_item shift.num is exist - process it [12:43:32]requested_item shift.opened is exist - process it [12:43:32]req_shift_opened [12:43:32]FM_GetShiftState [12:43:32]SAM_PROTO_GetShiftState [12:43:32]wFMCommunicate request_size=4 [12:43:32]MH_SAM_APDU [12:43:32]CAPDU: 80 13 01 00 [12:43:32]Write to MH i2c: E2 08 00 84 24 80 13 01 00 00 00 00 00 25 [12:43:32]Write i2c OK [12:43:32]MH_I2C_Read... [12:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:32]Read from MH i2c: E2 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 0E 00 [12:43:32]MH_I2C_Read... [12:43:32]Read from MH i2c: E2 0E 00 84 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1F [12:43:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:43:32]wFMCommunicate OK [12:43:32]SAM_PROTO_GetShiftState done [12:43:32]FM_GetShiftState done [12:43:32]req_shift_opened done [12:43:32]requested_item shift.open_date is exist - process it [12:43:32]req_shift_open_date [12:43:32]req_shift_open_date done [12:43:32]produce_requested_data done [12:43:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162516,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:43:32]process_action_free close_receipt [12:43:32]json_value_free [12:43:32]json_value_free done [12:43:32]process_json_proto returns [12:43:32]Send response to host [12:43:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162516,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:43:32]free response buf [12:43:32]execute_script done [12:43:32]execute_script returns [12:43:32]free content buf [12:43:32]Sock 8.Close socket [12:43:32]Sock 8.Thread stoped [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:26]OFD Sender: No OFD packet to send [12:45:31]OFD Sender: No OFD packet to send [12:45:36]OFD Sender: No OFD packet to send [12:45:41]OFD Sender: No OFD packet to send [12:45:46]OFD Sender: No OFD packet to send [12:45:51]OFD Sender: No OFD packet to send [12:45:56]OFD Sender: No OFD packet to send [12:46:01]OFD Sender: No OFD packet to send [12:46:06]OFD Sender: No OFD packet to send [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:38]accept exits with 9 [12:46:38]New connection [12:46:38]New thread 3066862948 created [12:46:38]Thread 3067006308 joined [12:46:38]Waiting for new connection... [12:46:38] Sock 9.Parse request [12:46:38]Sock 9.Check first char [12:46:38]Sock 9.First char is OK [12:46:38]request: POST /json_proto HTTP/1.0 [12:46:38]Method: POST [12:46:38]URL: /json_proto [12:46:38]Method is POST - this is cgi request [12:46:38]url: /json_proto [12:46:38]query_string will be loaded in cgi processing [12:46:38]execute_cgi json_proto POST (null) [12:46:38]execute_cgi path=json_proto method=POST [12:46:38]POST find Content-Length [12:46:38]Host: 172.17.39.67:8080 [12:46:38]Content-Length: 215 [12:46:38]Content-Type: application/json [12:46:38] [12:46:38]POST finish read [12:46:38]Found Content-Length = 215 [12:46: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" ] } } [12:46:38]execute_script... [12:46: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" ] } } [12:46:38]POST & json_proto [12:46:38]process_json_proto [12:46:38]json parsed OK: [12:46:38]protocol is kg_v1.0 [12:46:38]action value=get_value [12:46:38]process_action get_value [12:46:38]cmd_get_value [12:46:38]process_action get_value done [12:46:38]requested_data is exist [12:46:38]produce_requested_data [12:46:38]requested_item kkm.sn is exist - process it [12:46:38]requested_item kkm.ver is exist - process it [12:46:38]requested_item fm.sn is exist - process it [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 11 00 00 [12:46:38]Write to MH i2c: E2 08 00 85 24 80 11 00 00 00 00 00 00 23 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:38]Read from MH i2c: E2 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 [12:46:38]MH_I2C_Read... [12:46:38]Read from MH i2c: E2 17 00 85 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [12:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:46:38]wFMCommunicate OK [12:46:38]requested_item fd.num is exist - process it [12:46:38]SAM_PROTO_GetFieldsCounters [12:46:38]wFMCommunicate request_size=4 [12:46:38]MH_SAM_APDU [12:46:38]CAPDU: 80 13 00 00 [12:46:38]Write to MH i2c: E2 08 00 86 24 80 13 00 00 00 00 00 00 26 [12:46:38]Write i2c OK [12:46:38]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 62 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 62 00 86 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [12:46:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:39]wFMCommunicate OK [12:46:39]SAM_PROTO_GetFieldsCounters done [12:46:39]requested_item shift.num is exist - process it [12:46:39]requested_item shift.opened is exist - process it [12:46:39]req_shift_opened [12:46:39]FM_GetShiftState [12:46:39]SAM_PROTO_GetShiftState [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 13 01 00 [12:46:39]Write to MH i2c: E2 08 00 87 24 80 13 01 00 00 00 00 00 28 [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 0E 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 0E 00 87 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 22 [12:46:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:46:39]wFMCommunicate OK [12:46:39]SAM_PROTO_GetShiftState done [12:46:39]FM_GetShiftState done [12:46:39]req_shift_opened done [12:46:39]requested_item shift.open_date is exist - process it [12:46:39]req_shift_open_date [12:46:39]req_shift_open_date done [12:46:39]produce_requested_data done [12:46:39]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162516,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:46:39]process_action_free get_value [12:46:39]json_value_free [12:46:39]json_value_free done [12:46:39]process_json_proto returns [12:46:39]Send response to host [12:46:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162516,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:46:39]free response buf [12:46:39]execute_script done [12:46:39]execute_script returns [12:46:39]free content buf [12:46:39]Sock 9.Close socket [12:46:39]Sock 9.Thread stoped [12:46:39]accept exits with 8 [12:46:39]New connection [12:46:39]New thread 3067006308 created [12:46:39]Thread 3066862948 joined [12:46:39]Waiting for new connection... [12:46:39] Sock 8.Parse request [12:46:39]Sock 8.Check first char [12:46:39]Sock 8.First char is OK [12:46:39]request: POST /json_proto HTTP/1.0 [12:46:39]Method: POST [12:46:39]URL: /json_proto [12:46:39]Method is POST - this is cgi request [12:46:39]url: /json_proto [12:46:39]query_string will be loaded in cgi processing [12:46:39]execute_cgi json_proto POST (null) [12:46:39]execute_cgi path=json_proto method=POST [12:46:39]POST find Content-Length [12:46:39]Host: 172.17.39.67:8080 [12:46:39]Content-Length: 331 [12:46:39]Content-Type: application/json [12:46:39] [12:46:39]POST finish read [12:46:39]Found Content-Length = 331 [12:46:39]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" ] } } [12:46:39]execute_script... [12:46:39]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" ] } } [12:46:39]POST & json_proto [12:46:39]process_json_proto [12:46:39]json parsed OK: [12:46:39]protocol is kg_v1.0 [12:46:39]action value=get_value [12:46:39]process_action get_value [12:46:39]cmd_get_value [12:46:39]process_action get_value done [12:46:39]requested_data is exist [12:46:39]produce_requested_data [12:46:39]requested_item fm.sale.total is exist - process it [12:46:39]SAM_PROTO_GetFMData [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 13 03 00 [12:46:39]Write to MH i2c: E2 08 00 88 24 80 13 03 00 00 00 00 00 2B [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:39]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:46:39]Read from MH i2c: E2 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 FD 00 [12:46:39]MH_I2C_Read... [12:46:39]Read from MH i2c: E2 FD 00 88 24 00 C1 04 85 04 BD 04 6E 04 04 00 38 77 02 00 69 04 A3 00 6F 04 04 00 25 77 02 00 B1 04 05 00 9F 8C C9 52 03 70 04 05 00 FC 52 A2 B1 02 72 04 04 00 A3 39 27 A1 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 A4 DD 5E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 56 C2 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 53 [12:46:39]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 38 77 02 00 69 04 A3 00 6F 04 04 00 25 77 02 00 B1 04 05 00 9F 8C C9 52 03 70 04 05 00 FC 52 A2 B1 02 72 04 04 00 A3 39 27 A1 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 A4 DD 5E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 56 C2 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [12:46:39]wFMCommunicate OK [12:46:39]wFMCommunicate request_size=4 [12:46:39]MH_SAM_APDU [12:46:39]CAPDU: 80 17 00 00 [12:46:39]Write to MH i2c: E2 08 00 89 24 80 17 00 00 00 00 00 00 2D [12:46:39]Write i2c OK [12:46:39]MH_I2C_Read... [12:46:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:40]Read from MH i2c: E2 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: E2 FD 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: E2 FD 00 89 24 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [12:46:40]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:46:40]wFMCommunicate OK [12:46:40]wFMCommunicate request_size=4 [12:46:40]MH_SAM_APDU [12:46:40]CAPDU: 80 17 00 00 [12:46:40]Write to MH i2c: E2 08 00 8A 24 80 17 00 00 00 00 00 00 2E [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:40]Read from MH i2c: E2 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: E2 FD 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: E2 FD 00 8A 24 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 CE [12:46:40]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 [12:46:40]wFMCommunicate OK [12:46:40]wFMCommunicate request_size=4 [12:46:40]MH_SAM_APDU [12:46:40]CAPDU: 80 17 00 00 [12:46:40]Write to MH i2c: E2 08 00 8B 24 80 17 00 00 00 00 00 00 2F [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:40]Read from MH i2c: E2 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: E2 FD 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: E2 FD 00 8B 24 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 B4 [12:46:40]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 [12:46:40]wFMCommunicate OK [12:46:40]wFMCommunicate request_size=4 [12:46:40]MH_SAM_APDU [12:46:40]CAPDU: 80 17 00 00 [12:46:40]Write to MH i2c: E2 08 00 8C 24 80 17 00 00 00 00 00 00 30 [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [12:46:40]Read from MH i2c: E2 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: E2 DE 00 [12:46:40]MH_I2C_Read... [12:46:40]Read from MH i2c: E2 DE 00 8C 24 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0F [12:46: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 [12:46:40]wFMCommunicate OK [12:46:40]SAM_PROTO_GetFMData done [12:46:40]requested_item fm.sale_refund.total is exist - process it [12:46:40]requested_item fm.buy.total is exist - process it [12:46:40]requested_item shift.sale.total is exist - process it [12:46:40]SAM_PROTO_GetShiftData [12:46:40]wFMCommunicate request_size=4 [12:46:40]MH_SAM_APDU [12:46:40]CAPDU: 80 13 02 00 [12:46:40]Write to MH i2c: E2 08 00 8D 24 80 13 02 00 00 00 00 00 2F [12:46:40]Write i2c OK [12:46:40]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 FD 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 FD 00 8D 24 00 B0 04 AA 04 AC 04 6E 04 04 00 B8 00 00 00 69 04 9D 00 6F 04 04 00 B8 00 00 00 B1 04 04 00 58 80 4F 01 70 04 03 00 14 B8 D8 72 04 03 00 44 C8 76 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 53 A3 23 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 3D F8 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 10 [12:46:41]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B8 00 00 00 69 04 9D 00 6F 04 04 00 B8 00 00 00 B1 04 04 00 58 80 4F 01 70 04 03 00 14 B8 D8 72 04 03 00 44 C8 76 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 53 A3 23 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 3D F8 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 [12:46:41]wFMCommunicate OK [12:46:41]wFMCommunicate request_size=4 [12:46:41]MH_SAM_APDU [12:46:41]CAPDU: 80 17 00 00 [12:46:41]Write to MH i2c: E2 08 00 8E 24 80 17 00 00 00 00 00 00 32 [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 FD 00 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 FD 00 8E 24 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C [12:46:41]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 [12:46:41]wFMCommunicate OK [12:46:41]wFMCommunicate request_size=4 [12:46:41]MH_SAM_APDU [12:46:41]CAPDU: 80 17 00 00 [12:46:41]Write to MH i2c: E2 08 00 8F 24 80 17 00 00 00 00 00 00 33 [12:46:41]Write i2c OK [12:46:41]MH_I2C_Read... [12:46:41]OFD Sender: No OFD packet to send [12:46:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:41]Read from MH i2c: E2 [12:46:41]MH_I2C_Read... [12:46:41]Read from MH i2c: E2 FD 00 [12:46:41]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 FD 00 8F 24 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 F0 [12:46:42]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 [12:46:42]wFMCommunicate OK [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 17 00 00 [12:46:42]Write to MH i2c: E2 08 00 90 24 80 17 00 00 00 00 00 00 34 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:42]Read from MH i2c: E2 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 FD 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 FD 00 90 24 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 A7 [12:46:42]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 [12:46:42]wFMCommunicate OK [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 17 00 00 [12:46:42]Write to MH i2c: E2 08 00 91 24 80 17 00 00 00 00 00 00 35 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [12:46:42]Read from MH i2c: E2 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 CD 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: E2 CD 00 91 24 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 19 [12:46:42]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 [12:46:42]wFMCommunicate OK [12:46:42]SAM_PROTO_GetShiftData done [12:46:42]requested_item shift.sale.total_cash is exist - process it [12:46:42]requested_item shift.sale_refund.total is exist - process it [12:46:42]requested_item shift.sale_refund.total_cash is exist - process it [12:46:42]requested_item shift.buy.total is exist - process it [12:46:42]requested_item shift.buy.total_cash is exist - process it [12:46:42]produce_requested_data done [12:46:42]produce_requested_data return {"fm.sale.total":142738423.35,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":219874.16,"shift.sale.total_cash":142029.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} [12:46:42]process_action_free get_value [12:46:42]json_value_free [12:46:42]json_value_free done [12:46:42]process_json_proto returns [12:46:42]Send response to host [12:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142738423.35,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":219874.16,"shift.sale.total_cash":142029.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}}} [12:46:42]free response buf [12:46:42]execute_script done [12:46:42]execute_script returns [12:46:42]free content buf [12:46:42]Sock 8.Close socket [12:46:42]Sock 8.Thread stoped [12:46:42]accept exits with 9 [12:46:42]New connection [12:46:42]New thread 3066862948 created [12:46:42]Thread 3067006308 joined [12:46:42]Waiting for new connection... [12:46:42] Sock 9.Parse request [12:46:42]Sock 9.Check first char [12:46:42]Sock 9.First char is OK [12:46:42]request: POST /json_proto HTTP/1.0 [12:46:42]Method: POST [12:46:42]URL: /json_proto [12:46:42]Method is POST - this is cgi request [12:46:42]url: /json_proto [12:46:42]query_string will be loaded in cgi processing [12:46:42]execute_cgi json_proto POST (null) [12:46:42]execute_cgi path=json_proto method=POST [12:46:42]POST find Content-Length [12:46:42]Host: 172.17.39.67:8080 [12:46:42]Content-Length: 331 [12:46:42]Content-Type: application/json [12:46:42] [12:46:42]POST finish read [12:46:42]Found Content-Length = 331 [12:46:42]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" ] } } [12:46:42]execute_script... [12:46:42]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" ] } } [12:46:42]POST & json_proto [12:46:42]process_json_proto [12:46:42]json parsed OK: [12:46:42]protocol is kg_v1.0 [12:46:42]action value=get_value [12:46:42]process_action get_value [12:46:42]cmd_get_value [12:46:42]process_action get_value done [12:46:42]requested_data is exist [12:46:42]produce_requested_data [12:46:42]requested_item fm.sale.total is exist - process it [12:46:42]SAM_PROTO_GetFMData [12:46:42]wFMCommunicate request_size=4 [12:46:42]MH_SAM_APDU [12:46:42]CAPDU: 80 13 03 00 [12:46:42]Write to MH i2c: E2 08 00 92 24 80 13 03 00 00 00 00 00 35 [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 FD 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 FD 00 92 24 00 C1 04 85 04 BD 04 6E 04 04 00 38 77 02 00 69 04 A3 00 6F 04 04 00 25 77 02 00 B1 04 05 00 9F 8C C9 52 03 70 04 05 00 FC 52 A2 B1 02 72 04 04 00 A3 39 27 A1 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 A4 DD 5E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 56 C2 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 5D [12:46:43]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 38 77 02 00 69 04 A3 00 6F 04 04 00 25 77 02 00 B1 04 05 00 9F 8C C9 52 03 70 04 05 00 FC 52 A2 B1 02 72 04 04 00 A3 39 27 A1 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 A4 DD 5E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 56 C2 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [12:46:43]wFMCommunicate OK [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 17 00 00 [12:46:43]Write to MH i2c: E2 08 00 93 24 80 17 00 00 00 00 00 00 37 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 FD 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 FD 00 93 24 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 70 [12:46:43]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:46:43]wFMCommunicate OK [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 17 00 00 [12:46:43]Write to MH i2c: E2 08 00 94 24 80 17 00 00 00 00 00 00 38 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 FD 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 FD 00 94 24 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 D8 [12:46:43]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 [12:46:44]wFMCommunicate OK [12:46:44]wFMCommunicate request_size=4 [12:46:44]MH_SAM_APDU [12:46:44]CAPDU: 80 17 00 00 [12:46:44]Write to MH i2c: E2 08 00 95 24 80 17 00 00 00 00 00 00 39 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:44]Read from MH i2c: E2 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 FD 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 FD 00 95 24 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 BE [12:46:44]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 [12:46:44]wFMCommunicate OK [12:46:44]wFMCommunicate request_size=4 [12:46:44]MH_SAM_APDU [12:46:44]CAPDU: 80 17 00 00 [12:46:44]Write to MH i2c: E2 08 00 96 24 80 17 00 00 00 00 00 00 3A [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [12:46:44]Read from MH i2c: E2 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 DE 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 DE 00 96 24 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 19 [12:46:44]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 [12:46:44]wFMCommunicate OK [12:46:44]SAM_PROTO_GetFMData done [12:46:44]requested_item fm.sale_refund.total is exist - process it [12:46:44]requested_item fm.buy.total is exist - process it [12:46:44]requested_item shift.sale.total is exist - process it [12:46:44]SAM_PROTO_GetShiftData [12:46:44]wFMCommunicate request_size=4 [12:46:44]MH_SAM_APDU [12:46:44]CAPDU: 80 13 02 00 [12:46:44]Write to MH i2c: E2 08 00 97 24 80 13 02 00 00 00 00 00 39 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:46:45]Read from MH i2c: E2 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 FD 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 FD 00 97 24 00 B0 04 AA 04 AC 04 6E 04 04 00 B8 00 00 00 69 04 9D 00 6F 04 04 00 B8 00 00 00 B1 04 04 00 58 80 4F 01 70 04 03 00 14 B8 D8 72 04 03 00 44 C8 76 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 53 A3 23 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 3D F8 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 1A [12:46:45]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B8 00 00 00 69 04 9D 00 6F 04 04 00 B8 00 00 00 B1 04 04 00 58 80 4F 01 70 04 03 00 14 B8 D8 72 04 03 00 44 C8 76 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 53 A3 23 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 3D F8 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 [12:46:45]wFMCommunicate OK [12:46:45]wFMCommunicate request_size=4 [12:46:45]MH_SAM_APDU [12:46:45]CAPDU: 80 17 00 00 [12:46:45]Write to MH i2c: E2 08 00 98 24 80 17 00 00 00 00 00 00 3C [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:45]Read from MH i2c: E2 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 FD 00 [12:46:45]MH_I2C_Read... [12:46:45]Read from MH i2c: E2 FD 00 98 24 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 56 [12:46:45]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 [12:46:45]wFMCommunicate OK [12:46:45]wFMCommunicate request_size=4 [12:46:45]MH_SAM_APDU [12:46:45]CAPDU: 80 17 00 00 [12:46:45]Write to MH i2c: E2 08 00 99 24 80 17 00 00 00 00 00 00 3D [12:46:45]Write i2c OK [12:46:45]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 FD 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 FD 00 99 24 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 FA [12:46:46]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 [12:46:46]wFMCommunicate OK [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 17 00 00 [12:46:46]Write to MH i2c: E2 08 00 9A 24 80 17 00 00 00 00 00 00 3E [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 FD 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 FD 00 9A 24 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 B1 [12:46:46]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 [12:46:46]wFMCommunicate OK [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 17 00 00 [12:46:46]Write to MH i2c: E2 08 00 9B 24 80 17 00 00 00 00 00 00 3F [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 CD 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 CD 00 9B 24 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 23 [12:46:46]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 [12:46:47]wFMCommunicate OK [12:46:47]SAM_PROTO_GetShiftData done [12:46:47]requested_item shift.sale.total_cash is exist - process it [12:46:47]requested_item shift.sale_refund.total is exist - process it [12:46:47]requested_item shift.sale_refund.total_cash is exist - process it [12:46:47]requested_item shift.buy.total is exist - process it [12:46:47]requested_item shift.buy.total_cash is exist - process it [12:46:47]produce_requested_data done [12:46:47]produce_requested_data return {"fm.sale.total":142738423.35,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":219874.16,"shift.sale.total_cash":142029.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} [12:46:47]process_action_free get_value [12:46:47]json_value_free [12:46:47]json_value_free done [12:46:47]process_json_proto returns [12:46:47]Send response to host [12:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142738423.35,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":219874.16,"shift.sale.total_cash":142029.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}}} [12:46:47]free response buf [12:46:47]execute_script done [12:46:47]execute_script returns [12:46:47]free content buf [12:46:47]Sock 9.Close socket [12:46:47]Sock 9.Thread stoped [12:46:47]OFD Sender: No OFD packet to send [12:46:47]accept exits with 8 [12:46:47]New connection [12:46:47]New thread 3067006308 created [12:46:47]Thread 3066862948 joined [12:46:47]Waiting for new connection... [12:46:47] Sock 8.Parse request [12:46:47]Sock 8.Check first char [12:46:47]Sock 8.First char is OK [12:46:47]request: POST /json_proto HTTP/1.0 [12:46:47]Method: POST [12:46:47]URL: /json_proto [12:46:47]Method is POST - this is cgi request [12:46:47]url: /json_proto [12:46:47]query_string will be loaded in cgi processing [12:46:47]execute_cgi json_proto POST (null) [12:46:47]execute_cgi path=json_proto method=POST [12:46:47]POST find Content-Length [12:46:47]Host: 172.17.39.67:8080 [12:46:47]Content-Length: 274 [12:46:47]Content-Type: application/json [12:46:47] [12:46:47]POST finish read [12:46:47]Found Content-Length = 274 [12:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:47]execute_script... [12:46:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:47]POST & json_proto [12:46:47]process_json_proto [12:46:47]json parsed OK: [12:46:47]protocol is kg_v1.0 [12:46:47]action value=x_report [12:46:47]process_action x_report [12:46:47]cmd_x_report [12:46:47]MH_GetDate [12:46:47]Write to MH i2c: F0 00 00 9C 24 AF [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: F0 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: F0 09 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: F0 09 00 9C 24 00 45 77 92 66 FA E9 8E 66 43 [12:46:47]GetLastDocTimeStamp 1720874623 [12:46:47]current date 1720874821 [12:46:47]FM_GetShiftState [12:46:47]SAM_PROTO_GetShiftState [12:46:47]wFMCommunicate request_size=4 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 13 01 00 [12:46:47]Write to MH i2c: E2 08 00 9D 24 80 13 01 00 00 00 00 00 3E [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 0E 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 0E 00 9D 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 38 [12:46:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:46:47]wFMCommunicate OK [12:46:47]SAM_PROTO_GetShiftState done [12:46:47]FM_GetShiftState done [12:46:47]KKMCreateXReportDocument [12:46:47]Load OK [12:46:47]Malloc new data [12:46:47]MH_GetDate [12:46:47]Write to MH i2c: F0 00 00 9E 24 B1 [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: F0 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: F0 09 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: F0 09 00 9E 24 00 45 77 92 66 FA E9 8E 66 45 [12:46:47]Malloc new data [12:46:47]Malloc new data [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 9F 24 80 11 00 00 00 00 00 00 3D [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 9F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9D [12:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:46:47]wFMCommunicate OK [12:46:47]SAM_PROTO_GetFieldsCounters [12:46:47]wFMCommunicate request_size=4 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 13 00 00 [12:46:47]Write to MH i2c: E2 08 00 A0 24 80 13 00 00 00 00 00 00 40 [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 62 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 62 00 A0 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [12:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:47]wFMCommunicate OK [12:46:47]SAM_PROTO_GetFieldsCounters done [12:46:47]Malloc new data [12:46:47]Malloc new data [12:46:47]Malloc new data [12:46:47]KKMCreateXReportDocument OK [12:46:47]KKMSetXReportData OK [12:46:47]KKMPrepareXReportFMData [12:46:47]SAM_PROTO_GetShiftData [12:46:47]wFMCommunicate request_size=4 [12:46:47]MH_SAM_APDU [12:46:47]CAPDU: 80 13 02 00 [12:46:47]Write to MH i2c: E2 08 00 A1 24 80 13 02 00 00 00 00 00 43 [12:46:47]Write i2c OK [12:46:47]MH_I2C_Read... [12:46:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:46:47]Read from MH i2c: E2 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 FD 00 [12:46:47]MH_I2C_Read... [12:46:47]Read from MH i2c: E2 FD 00 A1 24 00 B0 04 AA 04 AC 04 6E 04 04 00 B8 00 00 00 69 04 9D 00 6F 04 04 00 B8 00 00 00 B1 04 04 00 58 80 4F 01 70 04 03 00 14 B8 D8 72 04 03 00 44 C8 76 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 53 A3 23 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 3D F8 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 24 [12:46:48]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 B8 00 00 00 69 04 9D 00 6F 04 04 00 B8 00 00 00 B1 04 04 00 58 80 4F 01 70 04 03 00 14 B8 D8 72 04 03 00 44 C8 76 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 53 A3 23 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 3D F8 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 [12:46:48]wFMCommunicate OK [12:46:48]wFMCommunicate request_size=4 [12:46:48]MH_SAM_APDU [12:46:48]CAPDU: 80 17 00 00 [12:46:48]Write to MH i2c: E2 08 00 A2 24 80 17 00 00 00 00 00 00 46 [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:48]Read from MH i2c: E2 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 FD 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 FD 00 A2 24 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 60 [12:46:48]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 [12:46:48]wFMCommunicate OK [12:46:48]wFMCommunicate request_size=4 [12:46:48]MH_SAM_APDU [12:46:48]CAPDU: 80 17 00 00 [12:46:48]Write to MH i2c: E2 08 00 A3 24 80 17 00 00 00 00 00 00 47 [12:46:48]Write i2c OK [12:46:48]MH_I2C_Read... [12:46:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:48]Read from MH i2c: E2 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 FD 00 [12:46:48]MH_I2C_Read... [12:46:48]Read from MH i2c: E2 FD 00 A3 24 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 04 [12:46:48]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 [12:46:49]wFMCommunicate OK [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 17 00 00 [12:46:49]Write to MH i2c: E2 08 00 A4 24 80 17 00 00 00 00 00 00 48 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 FD 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 FD 00 A4 24 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 BB [12:46:49]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 [12:46:49]wFMCommunicate OK [12:46:49]wFMCommunicate request_size=4 [12:46:49]MH_SAM_APDU [12:46:49]CAPDU: 80 17 00 00 [12:46:49]Write to MH i2c: E2 08 00 A5 24 80 17 00 00 00 00 00 00 49 [12:46:49]Write i2c OK [12:46:49]MH_I2C_Read... [12:46:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [12:46:49]Read from MH i2c: E2 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 CD 00 [12:46:49]MH_I2C_Read... [12:46:49]Read from MH i2c: E2 CD 00 A5 24 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D [12:46:49]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 [12:46:50]wFMCommunicate OK [12:46:50]SAM_PROTO_GetShiftData done [12:46:50]1194 (1196) - счетчики итогов смены [12:46:50] 1134 (4) - 184 - количество чеков со всеми признаками расчетов [12:46:50] 1129 (157) - счетчики операций «приход» [12:46:50] 1135 (4) - 184 - количество чеков по признаку расчетов [12:46:50] 1201 (4) - 219874.16 - общая итоговая сумма в чеках [12:46:50] 1136 (3) - 142029.00 - итоговая сумма в чеках наличными [12:46:50] 1138 (3) - 77845.16 - итоговая сумма в чеках безналичными [12:46:50] 1024 (123) - суммы налогов [12:46:50] 1006 (9) - суммы НДС [12:46:50] 1010 (1) - 0% - код ставки НДС [12:46:50] 1011 (0) - 0.00 - сумма НДС по ставке [12:46:50] 1006 (12) - суммы НДС [12:46:50] 1010 (1) - 12% - код ставки НДС [12:46:50] 1011 (3) - 23355.71 - сумма НДС по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 0% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (12) - суммы НСП [12:46:50] 1014 (1) - 1% - код ставки НСП [12:46:50] 1015 (3) - 1946.21 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 2% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 3% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 5% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 0,50% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 1,50% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1130 (141) - счетчики операций «возврат прихода» [12:46:50] 1135 (4) - 0 - количество чеков по признаку расчетов [12:46:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:46:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:46:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:46:50] 1024 (117) - суммы налогов [12:46:50] 1006 (9) - суммы НДС [12:46:50] 1010 (1) - 0% - код ставки НДС [12:46:50] 1011 (0) - 0.00 - сумма НДС по ставке [12:46:50] 1006 (9) - суммы НДС [12:46:50] 1010 (1) - 12% - код ставки НДС [12:46:50] 1011 (0) - 0.00 - сумма НДС по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 0% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 1% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 2% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 3% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 5% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 0,50% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 1,50% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1131 (141) - счетчики операций «расход» [12:46:50] 1135 (4) - 0 - количество чеков по признаку расчетов [12:46:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:46:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:46:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:46:50] 1024 (117) - суммы налогов [12:46:50] 1006 (9) - суммы НДС [12:46:50] 1010 (1) - 0% - код ставки НДС [12:46:50] 1011 (0) - 0.00 - сумма НДС по ставке [12:46:50] 1006 (9) - суммы НДС [12:46:50] 1010 (1) - 12% - код ставки НДС [12:46:50] 1011 (0) - 0.00 - сумма НДС по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 0% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 1% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 2% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 3% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 5% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 0,50% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 1,50% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1132 (141) - счетчики операций «возврат расхода» [12:46:50] 1135 (4) - 0 - количество чеков по признаку расчетов [12:46:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [12:46:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [12:46:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [12:46:50] 1024 (117) - суммы налогов [12:46:50] 1006 (9) - суммы НДС [12:46:50] 1010 (1) - 0% - код ставки НДС [12:46:50] 1011 (0) - 0.00 - сумма НДС по ставке [12:46:50] 1006 (9) - суммы НДС [12:46:50] 1010 (1) - 12% - код ставки НДС [12:46:50] 1011 (0) - 0.00 - сумма НДС по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 0% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 1% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 2% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 3% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 5% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 0,50% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1007 (9) - суммы НСП [12:46:50] 1014 (1) - 1,50% - код ставки НСП [12:46:50] 1015 (0) - 0.00 - сумма НСП по ставке [12:46:50] 1133 (588) - - счетчики коррекции - не используются [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1194 (04AA) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1134 (046E) [12:46:50]Malloc new data [12:46:50]Processing tag 1129 (0469) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1135 (046F) [12:46:50]Malloc new data [12:46:50]Processing tag 1201 (04B1) [12:46:50]Malloc new data [12:46:50]Processing tag 1136 (0470) [12:46:50]Malloc new data [12:46:50]Processing tag 1138 (0472) [12:46:50]Malloc new data [12:46:50]Processing tag 1024 (0400) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1006 (03EE) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1010 (03F2) [12:46:50]Malloc new data [12:46:50]Processing tag 1011 (03F3) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1006 (03EE) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1010 (03F2) [12:46:50]Malloc new data [12:46:50]Processing tag 1011 (03F3) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]SetTLVBufToDocument err=0 [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1130 (046A) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1135 (046F) [12:46:50]Malloc new data [12:46:50]Processing tag 1201 (04B1) [12:46:50]Malloc new data [12:46:50]Processing tag 1136 (0470) [12:46:50]Malloc new data [12:46:50]Processing tag 1138 (0472) [12:46:50]Malloc new data [12:46:50]Processing tag 1024 (0400) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1006 (03EE) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1010 (03F2) [12:46:50]Malloc new data [12:46:50]Processing tag 1011 (03F3) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1006 (03EE) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1010 (03F2) [12:46:50]Malloc new data [12:46:50]Processing tag 1011 (03F3) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]SetTLVBufToDocument err=0 [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1131 (046B) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1135 (046F) [12:46:50]Malloc new data [12:46:50]Processing tag 1201 (04B1) [12:46:50]Malloc new data [12:46:50]Processing tag 1136 (0470) [12:46:50]Malloc new data [12:46:50]Processing tag 1138 (0472) [12:46:50]Malloc new data [12:46:50]Processing tag 1024 (0400) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1006 (03EE) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1010 (03F2) [12:46:50]Malloc new data [12:46:50]Processing tag 1011 (03F3) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1006 (03EE) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1010 (03F2) [12:46:50]Malloc new data [12:46:50]Processing tag 1011 (03F3) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]SetTLVBufToDocument err=0 [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1132 (046C) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1135 (046F) [12:46:50]Malloc new data [12:46:50]Processing tag 1201 (04B1) [12:46:50]Malloc new data [12:46:50]Processing tag 1136 (0470) [12:46:50]Malloc new data [12:46:50]Processing tag 1138 (0472) [12:46:50]Malloc new data [12:46:50]Processing tag 1024 (0400) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1006 (03EE) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1010 (03F2) [12:46:50]Malloc new data [12:46:50]Processing tag 1011 (03F3) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1006 (03EE) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1010 (03F2) [12:46:50]Malloc new data [12:46:50]Processing tag 1011 (03F3) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:50]SetTLVBufToDocument [12:46:50]Processing tag 1014 (03F6) [12:46:50]Malloc new data [12:46:50]Processing tag 1015 (03F7) [12:46:50]Malloc new data [12:46:50]SetTLVBufToDocument err=0 [12:46:50]Processing tag 1007 (03EF) [12:46:50]Load OK [12:46:51]SetTLVBufToDocument [12:46:51]Processing tag 1014 (03F6) [12:46:51]Malloc new data [12:46:51]Processing tag 1015 (03F7) [12:46:51]Malloc new data [12:46:51]SetTLVBufToDocument err=0 [12:46:51]Processing tag 1007 (03EF) [12:46:51]Load OK [12:46:51]SetTLVBufToDocument [12:46:51]Processing tag 1014 (03F6) [12:46:51]Malloc new data [12:46:51]Processing tag 1015 (03F7) [12:46:51]Malloc new data [12:46:51]SetTLVBufToDocument err=0 [12:46:51]Processing tag 1007 (03EF) [12:46:51]Load OK [12:46:51]SetTLVBufToDocument [12:46:51]Processing tag 1014 (03F6) [12:46:51]Malloc new data [12:46:51]Processing tag 1015 (03F7) [12:46:51]Malloc new data [12:46:51]SetTLVBufToDocument err=0 [12:46:51]Processing tag 1007 (03EF) [12:46:51]Load OK [12:46:51]SetTLVBufToDocument [12:46:51]Processing tag 1014 (03F6) [12:46:51]Malloc new data [12:46:51]Processing tag 1015 (03F7) [12:46:51]Malloc new data [12:46:51]SetTLVBufToDocument err=0 [12:46:51]Processing tag 1007 (03EF) [12:46:51]Load OK [12:46:51]SetTLVBufToDocument [12:46:51]Processing tag 1014 (03F6) [12:46:51]Malloc new data [12:46:51]Processing tag 1015 (03F7) [12:46:51]Malloc new data [12:46:51]SetTLVBufToDocument err=0 [12:46:51]Processing tag 1007 (03EF) [12:46:51]Load OK [12:46:51]SetTLVBufToDocument [12:46:51]Processing tag 1014 (03F6) [12:46:51]Malloc new data [12:46:51]Processing tag 1015 (03F7) [12:46:51]Malloc new data [12:46:51]SetTLVBufToDocument err=0 [12:46:51]SetTLVBufToDocument err=0 [12:46:51]SetTLVBufToDocument err=0 [12:46:51]Processing tag 1133 (046D) [12:46:51]Malloc new data [12:46:51]SetTLVBufToDocument err=0 [12:46:51]SetTLVBufToDocument err=0 [12:46:51]Malloc new data [12:46:51]SAM_PROTO_GetFMData [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 13 03 00 [12:46:51]Write to MH i2c: E2 08 00 A6 24 80 13 03 00 00 00 00 00 49 [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:51]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:46:51]Read from MH i2c: E2 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 [12:46:51]MH_I2C_Read... [12:46:51]Read from MH i2c: E2 FD 00 A6 24 00 C1 04 85 04 BD 04 6E 04 04 00 38 77 02 00 69 04 A3 00 6F 04 04 00 25 77 02 00 B1 04 05 00 9F 8C C9 52 03 70 04 05 00 FC 52 A2 B1 02 72 04 04 00 A3 39 27 A1 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 A4 DD 5E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 56 C2 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 71 [12:46:51]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 38 77 02 00 69 04 A3 00 6F 04 04 00 25 77 02 00 B1 04 05 00 9F 8C C9 52 03 70 04 05 00 FC 52 A2 B1 02 72 04 04 00 A3 39 27 A1 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 A4 DD 5E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 56 C2 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [12:46:51]wFMCommunicate OK [12:46:51]wFMCommunicate request_size=4 [12:46:51]MH_SAM_APDU [12:46:51]CAPDU: 80 17 00 00 [12:46:51]Write to MH i2c: E2 08 00 A7 24 80 17 00 00 00 00 00 00 4B [12:46:51]Write i2c OK [12:46:51]MH_I2C_Read... [12:46:52]OFD Sender: No OFD packet to send [12:46:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 FD 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 FD 00 A7 24 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 84 [12:46:52]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 17 00 00 [12:46:52]Write to MH i2c: E2 08 00 A8 24 80 17 00 00 00 00 00 00 4C [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:52]Read from MH i2c: E2 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 FD 00 [12:46:52]MH_I2C_Read... [12:46:52]Read from MH i2c: E2 FD 00 A8 24 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 EC [12:46:52]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 [12:46:52]wFMCommunicate OK [12:46:52]wFMCommunicate request_size=4 [12:46:52]MH_SAM_APDU [12:46:52]CAPDU: 80 17 00 00 [12:46:52]Write to MH i2c: E2 08 00 A9 24 80 17 00 00 00 00 00 00 4D [12:46:52]Write i2c OK [12:46:52]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 FD 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 FD 00 A9 24 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 D2 [12:46: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 [12:46:53]wFMCommunicate OK [12:46:53]wFMCommunicate request_size=4 [12:46:53]MH_SAM_APDU [12:46:53]CAPDU: 80 17 00 00 [12:46:53]Write to MH i2c: E2 08 00 AA 24 80 17 00 00 00 00 00 00 4E [12:46:53]Write i2c OK [12:46:53]MH_I2C_Read... [12:46:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [12:46:53]Read from MH i2c: E2 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 DE 00 [12:46:53]MH_I2C_Read... [12:46:53]Read from MH i2c: E2 DE 00 AA 24 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D [12:46: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 [12:46:54]wFMCommunicate OK [12:46:54]SAM_PROTO_GetFMData done [12:46:54]FM_GetFMData:85 04 BD 04 6E 04 04 00 38 77 02 00 69 04 A3 00 6F 04 04 00 25 77 02 00 B1 04 05 00 9F 8C C9 52 03 70 04 05 00 FC 52 A2 B1 02 72 04 04 00 A3 39 27 A1 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 A4 DD 5E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 56 C2 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A 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 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:46:54]oper:6F 04 04 00 25 77 02 00 B1 04 05 00 9F 8C C9 52 03 70 04 05 00 FC 52 A2 B1 02 72 04 04 00 A3 39 27 A1 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 A4 DD 5E 5A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 56 C2 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:46:54]total:9F 8C C9 52 03 [12:46:54]Malloc new data [12:46:54]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A 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 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [12:46:54]total:94 DE 5F [12:46:54]Malloc new data [12:46:54]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 [12:46:55]total: [12:46:55]Malloc new data [12:46:55]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 [12:46:55]total: [12:46:55]Malloc new data [12:46:55]KKMPrepareXReportFMData err=0 [12:46:55]Х отчет ИНН: 02508201610067 Кассир: Шамбеталиев А. 13.07.2024 12:47 Смена: 266 РНМ: 0000000000090858 ЗНМ: 0300000129 СНО: Общий режим Всего чеков: 184 ИТОГИ ПРИХОД Чеков: 184 Общий итог: 219874.16 Итого наличными: 142029.00 Итого безнал.: 77845.16 НДС 0% : 0.00 НДС 12% : 23355.71 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1946.21 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 142029.00 НС Приход: 142738423.35 НС Возвр.Прихода: 62829.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874899 [12:46:55]StoreToDocumentArchive [12:46:55]MH_GetDate [12:46:55]Write to MH i2c: F0 00 00 AB 24 BE [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 09 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: F0 09 00 AB 24 00 4D 77 92 66 FA E9 8E 66 5A [12:46:55]shift 266 fd 1720874829 [12:46:55]Create dir for shift 0266 [12:46:55]save to /storage/0266/doc_1720874829 [12:46:55]save last doc name /storage/0266/doc_1720874829 to /storage/kkm_last_doc_name [12:46:55]save OK [12:46:55]Clear old archive folders... [12:46:55]NVStorageSaveData kkm_last_timestamp [12:46:55]File name is /storage/kkm_last_timestamp [12:46:55]Write 4 bytes [12:46:55]NVStorageSaveData done [12:46:55]ExternCall_PrintAddStr [12:46:55]wPrintStart [12:46:55]Write to MH i2c: 01 00 00 AC 24 D0 [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 07 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 07 00 AC 24 00 00 00 00 00 FF 0F E5 [12:46:55]RasterBufferAndPrint [12:46:55]line Х отчет [12:46:55]line ИНН: 02508201610067 [12:46:55]line Кассир: Шамбеталиев А. [12:46:55]line 13.07.2024 12:47 [12:46:55]line Смена: 266 [12:46:55]line РНМ: 0000000000090858 [12:46:55]line ЗНМ: 0300000129 [12:46:55]line СНО: Общий режим [12:46:55]line Всего чеков: 184 [12:46:55]line ИТОГИ ПРИХОД [12:46:55]line Чеков: 184 [12:46:55]line Общий итог: 219874.16 [12:46:55]line Итого наличными: 142029.00 [12:46:55]line Итого безнал.: 77845.16 [12:46:55]line НДС 0% : 0.00 [12:46:55]line НДС 12% : 23355.71 [12:46:55]line НСП 0% : 0.00 [12:46:55]line НСП 1,50% : 0.00 [12:46:55]line НСП 0,50% : 0.00 [12:46:55]line НСП 5% : 0.00 [12:46:55]line НСП 3% : 0.00 [12:46:55]line НСП 2% : 0.00 [12:46:55]line НСП 1% : 1946.21 [12:46:55]line ИТОГИ ВОЗВРАТ ПРИХОДА [12:46:55]line Чеков: 0 [12:46:55]line Общий итог: 0.00 [12:46:55]line Итого наличными: 0.00 [12:46:55]line Итого безнал.: 0.00 [12:46:55]line НДС 0% : 0.00 [12:46:55]line НДС 12% : 0.00 [12:46:55]line НСП 0% : 0.00 [12:46:55]line НСП 1,50% : 0.00 [12:46:55]line НСП 0,50% : 0.00 [12:46:55]line НСП 5% : 0.00 [12:46:55]line НСП 3% : 0.00 [12:46:55]line НСП 2% : 0.00 [12:46:55]line НСП 1% : 0.00 [12:46:55]line ИТОГИ РАСХОД [12:46:55]line Чеков: 0 [12:46:55]line Общий итог: 0.00 [12:46:55]line Итого наличными: 0.00 [12:46:55]line Итого безнал.: 0.00 [12:46:55]line НДС 0% : 0.00 [12:46:55]line НДС 12% : 0.00 [12:46:55]line НСП 0% : 0.00 [12:46:55]line НСП 1,50% : 0.00 [12:46:55]line НСП 0,50% : 0.00 [12:46:55]line НСП 5% : 0.00 [12:46:55]line НСП 3% : 0.00 [12:46:55]line НСП 2% : 0.00 [12:46:55]line НСП 1% : 0.00 [12:46:55]line ИТОГИ ВОЗВРАТ РАСХОДА [12:46:55]line Чеков: 0 [12:46:55]line Общий итог: 0.00 [12:46:55]line Итого наличными: 0.00 [12:46:55]line Итого безнал.: 0.00 [12:46:55]line НДС 0% : 0.00 [12:46:55]line НДС 12% : 0.00 [12:46:55]line НСП 0% : 0.00 [12:46:55]line НСП 1,50% : 0.00 [12:46:55]line НСП 0,50% : 0.00 [12:46:55]line НСП 5% : 0.00 [12:46:55]line НСП 3% : 0.00 [12:46:55]line НСП 2% : 0.00 [12:46:55]line НСП 1% : 0.00 [12:46:55]line Сумма внесений: 0.00 [12:46:55]line Сумма выплат: 0.00 [12:46:55]line Нал. в кассе: 142029.00 [12:46:55]line НС Приход: 142738423.35 [12:46:55]line НС Возвр.Прихода: 62829.00 [12:46:55]line НС Расход: 0.00 [12:46:55]line НС Возвр.Расхода: 0.00 [12:46:55]line ФМ: 0000000000874899 [12:46:55]written 0, free lines is 4095 [12:46:55]Write to MH i2c: 01 00 00 F7 24 1B [12:46:55]Write i2c OK [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 07 00 [12:46:55]MH_I2C_Read... [12:46:55]Read from MH i2c: 01 07 00 F7 24 00 00 00 00 00 BE 0A EA [12:46:56]RasterBufferAndPrint [12:46:56]line [12:46:56]line [12:46:56]line [12:46:56]line [12:46:56]line [12:46:56]written 0, free lines is 2784 [12:46:56]MH_Cut [12:46:56]Write to MH i2c: D1 01 00 FE 24 01 F4 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: D1 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: D1 01 00 [12:46:56]MH_I2C_Read... [12:46:56]Read from MH i2c: D1 01 00 FE 24 00 F3 [12:46:56]Write to MH i2c: 01 00 00 FF 24 23 [12:46:56]Write i2c OK [12:46:56]MH_I2C_Read... [12:46:57]*** Cut start [12:46:57]*** Purtial cut [12:46:57]*** CUTSNS_PIN = 0 [12:46:57]OFD Sender: No OFD packet to send [12:46:57]*** Stage 1: CUTSNS_PIN = 1 [12:46:59]Read from MH i2c: 01 [12:46:59]MH_I2C_Read... [12:46:59]*** Stop cut motor [12:46:59]*** Cut end [12:46:59]Read from MH i2c: 01 07 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: 01 07 00 FF 24 00 00 00 00 00 FF 0F 38 [12:46:59]process_action x_report done [12:46:59]requested_data is exist [12:46:59]produce_requested_data [12:46:59]requested_item fd.num is exist - process it [12:46:59]SAM_PROTO_GetFieldsCounters [12:46:59]wFMCommunicate request_size=4 [12:46:59]MH_SAM_APDU [12:46:59]CAPDU: 80 13 00 00 [12:46:59]Write to MH i2c: E2 08 00 00 25 80 13 00 00 00 00 00 00 A1 [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:59]Read from MH i2c: E2 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 62 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 62 00 00 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [12:46:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:59]wFMCommunicate OK [12:46:59]SAM_PROTO_GetFieldsCounters done [12:46:59]requested_item shift.num is exist - process it [12:46:59]requested_item shift.opened is exist - process it [12:46:59]req_shift_opened [12:46:59]FM_GetShiftState [12:46:59]SAM_PROTO_GetShiftState [12:46:59]wFMCommunicate request_size=4 [12:46:59]MH_SAM_APDU [12:46:59]CAPDU: 80 13 01 00 [12:46:59]Write to MH i2c: E2 08 00 01 25 80 13 01 00 00 00 00 00 A3 [12:46:59]Write i2c OK [12:46:59]MH_I2C_Read... [12:46:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:59]Read from MH i2c: E2 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 0E 00 [12:46:59]MH_I2C_Read... [12:46:59]Read from MH i2c: E2 0E 00 01 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9D [12:46:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:46:59]wFMCommunicate OK [12:46:59]SAM_PROTO_GetShiftState done [12:46:59]FM_GetShiftState done [12:46:59]req_shift_opened done [12:46:59]requested_item shift.open_date is exist - process it [12:46:59]req_shift_open_date [12:46:59]req_shift_open_date done [12:46:59]produce_requested_data done [12:46:59]produce_requested_data return {"fd.num":162516,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:46:59]process_action_free x_report [12:46:59]json_value_free [12:46:59]json_value_free done [12:46:59]process_json_proto returns [12:46:59]Send response to host [12:46:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":162516,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:46:59]free response buf [12:46:59]execute_script done [12:46:59]execute_script returns [12:46:59]free content buf [12:46:59]Sock 8.Close socket [12:46:59]Sock 8.Thread stoped [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:32]OFD Sender: No OFD packet to send [12:47:37]OFD Sender: No OFD packet to send [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:57]OFD Sender: No OFD packet to send [12:48:02]OFD Sender: No OFD packet to send [12:48:07]OFD Sender: No OFD packet to send [12:48:12]OFD Sender: No OFD packet to send [12:48:17]OFD Sender: No OFD packet to send [12:48:22]OFD Sender: No OFD packet to send [12:48:27]OFD Sender: No OFD packet to send [12:48:32]OFD Sender: No OFD packet to send [12:48:37]OFD Sender: No OFD packet to send [12:48:40]accept exits with 9 [12:48:40]New connection [12:48:40]New thread 3066862948 created [12:48:40]Thread 3067006308 joined [12:48:40]Waiting for new connection... [12:48:40] Sock 9.Parse request [12:48:40]Sock 9.Check first char [12:48:40]Sock 9.First char is OK [12:48:40]request: POST /json_proto HTTP/1.0 [12:48:40]Method: POST [12:48:40]URL: /json_proto [12:48:40]Method is POST - this is cgi request [12:48:40]url: /json_proto [12:48:40]query_string will be loaded in cgi processing [12:48:40]execute_cgi json_proto POST (null) [12:48:40]execute_cgi path=json_proto method=POST [12:48:40]POST find Content-Length [12:48:40]Host: 172.17.39.67:8080 [12:48:40]Content-Length: 679 [12:48:40]Content-Type: application/json [12:48:40] [12:48:40]POST finish read [12:48:40]Found Content-Length = 679 [12:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 12.220, "sum" : 810.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:40]execute_script... [12:48:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 12.220, "sum" : 810.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:40]POST & json_proto [12:48:40]process_json_proto [12:48:40]json parsed OK: [12:48:40]protocol is kg_v1.0 [12:48:40]action value=close_receipt [12:48:40]process_action close_receipt [12:48:40]cmd_close_receipt [12:48:40]MH_GetDate [12:48:40]Write to MH i2c: F0 00 00 02 25 16 [12:48:40]Write i2c OK [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: F0 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: F0 09 00 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: F0 09 00 02 25 00 B7 77 92 66 FA E9 8E 66 1C [12:48:40]GetLastDocTimeStamp 1720874821 [12:48:40]current date 1720874935 [12:48:40]FM_GetShiftState [12:48:40]SAM_PROTO_GetShiftState [12:48:40]wFMCommunicate request_size=4 [12:48:40]MH_SAM_APDU [12:48:40]CAPDU: 80 13 01 00 [12:48:40]Write to MH i2c: E2 08 00 03 25 80 13 01 00 00 00 00 00 A5 [12:48:40]Write i2c OK [12:48:40]MH_I2C_Read... [12:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:40]Read from MH i2c: E2 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: E2 0E 00 [12:48:40]MH_I2C_Read... [12:48:40]Read from MH i2c: E2 0E 00 03 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9F [12:48:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:48:40]wFMCommunicate OK [12:48:40]SAM_PROTO_GetShiftState done [12:48:40]FM_GetShiftState done [12:48:40]opened in 1720828979 [12:48:40]opened+sec_in_day 1720915379 [12:48:40]quantity*price = 81018 [12:48:40]sum+1 = 81020 [12:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 810.00 Внесено: 810.00 СДАЧА: 0.00 НСП 1% : 7.17 НДС 12% : 86.04 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 185 13.07.2024 12:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162517 ФПД: 117789462254393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124855&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162517&fm=117789462254393&tin=02508201610067®Number=0000000000090858&sum=81000 [12:48:42]StoreToDocumentArchive [12:48:42]shift 462 fd 162517 [12:48:42]save to /storage/0462/doc_00162517 [12:48:42]save last doc name /storage/0462/doc_00162517 to /storage/kkm_last_doc_name [12:48:42]save OK [12:48:42]Clear old archive folders... [12:48:42]Remove dir /storage/0266 [12:48:42]opendir ok [12:48:42]file . [12:48:42]file .. [12:48:42]file doc_1720874829 [12:48:42]remove file /storage/0266/doc_1720874829 [12:48:42]remove dir /storage/0266 [12:48:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:42]tlvbuf is 0170C8C0 [12:48:42]SAM_PROTO_ClearQueue [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 09 00 00 [12:48:42]Write to MH i2c: E2 08 00 10 25 80 09 00 00 00 00 00 00 A7 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 10 25 00 90 00 A9 [12:48:42]RAPDU: 90 00 [12:48:42]wFMCommunicate OK [12:48:42]SAM_PROTO_ClearQueue done [12:48:42]KKMCreateOFDPacket [12:48:42]OFDProtocolAddRootSTLVToBuf [12:48:42]FM_MakeSignedData [12:48:42]FM_MakeSignedData [12:48:42]SAM_PROTO_SignData [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 0D 01 02 [12:48:42]Write to MH i2c: E2 08 00 11 25 80 0D 01 02 00 00 00 00 AF [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 11 25 00 90 00 AA [12:48:42]RAPDU: 90 00 [12:48:42]wFMCommunicate OK [12:48:42]wFMCommunicate request_size=255 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7B 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 68 3C 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 B7 77 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7A 02 00 35 04 06 00 6B [12:48:42]Write to MH i2c: E2 02 01 12 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7B 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 68 3C 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 B7 77 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7A 02 00 35 04 06 00 6B 00 00 AD [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]OFD Sender: No OFD packet to send [12:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 12 25 00 90 00 AB [12:48:42]RAPDU: 90 00 [12:48:42]wFMCommunicate OK [12:48:42]wFMCommunicate request_size=10 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 0D 02 02 05 20 FF 0E 53 39 [12:48:42]Write to MH i2c: E2 0D 00 13 25 80 0D 02 02 05 00 20 FF 0E 53 39 00 00 75 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 03 00 13 25 00 90 00 AC [12:48:42]RAPDU: 90 00 [12:48:42]wFMCommunicate OK [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 0D 03 02 [12:48:42]Write to MH i2c: E2 08 00 14 25 80 0D 03 02 00 00 00 00 B4 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 0B 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 0B 00 14 25 00 DF E7 E6 6F 1C 1C 50 8F 90 00 E7 [12:48:42]RAPDU: DF E7 E6 6F 1C 1C 50 8F 90 00 [12:48:42]wFMCommunicate OK [12:48:42]SAM_PROTO_SignData done [12:48:42]FM_MakeSignedData done [12:48:42]CreateOFDProtocolMessage [12:48:42]wFMCommunicate request_size=4 [12:48:42]MH_SAM_APDU [12:48:42]CAPDU: 80 11 00 00 [12:48:42]Write to MH i2c: E2 08 00 15 25 80 11 00 00 00 00 00 00 B4 [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:42]Read from MH i2c: E2 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 17 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: E2 17 00 15 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 14 [12:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:48:42]wFMCommunicate OK [12:48:42]CreateOFDProtocolMessage done [12:48:42]OFDSenderStorePacket 162517 [12:48:42]StoreOFDPacket docnum=162517 [12:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B3 7C 07 01 D4 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7B 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 68 3C 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 B7 77 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7A 02 00 35 04 06 00 6B 20 FF 0E 53 39 DF E7 E6 6F 1C 1C 50 8F [12:48:42]CheckFolder [12:48:42]dirname=/storage/ofd_packets [12:48:42]CheckFolder done [12:48:42]ProducePacketName [12:48:42]name=ofd_packets/00162517 [12:48:42]NVStorageSaveData ofd_packets/00162517 [12:48:42]File name is /storage/ofd_packets/00162517 [12:48:42]Write 301 bytes [12:48:42]NVStorageSaveData done [12:48:42]OFDSenderStorePacket done [12:48:42]KKMCreateOFDPacket done [12:48:42]NVStorageSaveData kkm_last_timestamp [12:48:42]File name is /storage/kkm_last_timestamp [12:48:42]Write 4 bytes [12:48:42]NVStorageSaveData done [12:48:42]ExternCall_PrintAddStr [12:48:42]wPrintStart [12:48:42]Write to MH i2c: 01 00 00 16 25 3B [12:48:42]Write i2c OK [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: 01 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: 01 07 00 [12:48:42]MH_I2C_Read... [12:48:42]Read from MH i2c: 01 07 00 16 25 00 00 00 00 00 FF 0F 50 [12:48:42]RasterBufferAndPrint [12:48:42]line Счет N : (1)1319061 [12:48:42]line ИНН: 02508201610067 [12:48:42]line Контрольно-Кассовый Чек [12:48:42]line ПРОДАЖА [12:48:42]line ТРК (МРК, ГНК) : 53 [12:48:42]line Товар: 2710124130 [12:48:42]line Аи-92-К-5 [12:48:42]line 12.220 * 66.30 [12:48:42]line = 810.19 [12:48:42]line НДС 12% НСП 1% [12:48:42]line > о реализуемом товаре [12:48:42]line ОКРУГЛЕНИЕ: -0.19 [12:48:42]line ИТОГО: 810.00 [12:48:42]line Внесено: 810.00 [12:48:42]line СДАЧА: 0.00 [12:48:42]line НСП 1% : 7.17 [12:48:42]line НДС 12% : 86.04 [12:48:42]line Наличными: 810.00 [12:48:42]line Безнал.: 0.00 [12:48:42]line Место: АЗС № 140 "Партнер Нефть" [12:48:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:48:42]line СНО: Общий режим [12:48:42]line Чек 185 13.07.2024 12:48 [12:48:42]line Смена: 462 ФФД: 1.0 [12:48:42]line ЗНМ: 0300000129 [12:48:42]line РНМ: 0000000000090858 [12:48:42]line Версия ККМ: 001 [12:48:42]line ФМ: 0000000000874899 [12:48:42]line ФД: 162517 [12:48:42]line ФПД: 117789462254393 [12:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124855&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162517&fm=117789462254393&tin=02508201610067®Number=0000000000090858&sum=81000 [12:48:42]OFD Sender: Processing packet 162517 [packets to send 105, broken 104] [12:48:42]ProducePacketName [12:48:42]name=ofd_packets/00162517 [12:48:42]OFD Sender: To server: pG, [12:48:42]CommunicateWithHost lk.salyk.kg:30040 [12:48:42]ConnectInit lk.salyk.kg [12:48:42]written 0, free lines is 4095 [12:48:43]Connected sock=10 [12:48:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B3 7C 07 01 D4 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BC 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7B 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9C 21 00 00 00 00 07 04 06 00 68 3C 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 B7 77 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7A 02 00 35 04 06 00 6B 20 FF 0E 53 39 DF E7 E6 6F 1C 1C 50 8F [12:48:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 88 E2 47 00 2A BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D5 7A 02 00 F4 03 04 00 CB 23 92 66 B6 04 01 00 00 C5 79 6F BF 9E 53 CF DE [12:48:43]CommunicateWithHost err = 0 [12:48:43]CheckOFDResponse [12:48:43]1017 (14) - 77093643461234 [12:48:43]1041 (16) - 0000000000874899 [12:48:43]1040 (4) - 162517 [12:48:43]1012 (4) - 13.07.2024 06:50 [12:48:43]1206 (1) - 0 [12:48:43]OFD Sender: Remove packet 162517 [12:48:43]ProducePacketName [12:48:43]name=ofd_packets/00162517 [12:48:43]NVStorageDeleteData [12:48:43]Write to MH i2c: 01 00 00 41 25 66 [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: 01 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: 01 07 00 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 D9 0C 52 [12:48:43]RasterBufferAndPrint [12:48:43]line [12:48:43]line [12:48:43]line [12:48:43]line [12:48:43]line [12:48:43]written 0, free lines is 3298 [12:48:43]MH_Cut [12:48:43]Write to MH i2c: D1 01 00 48 25 01 3F [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: D1 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: D1 01 00 [12:48:43]MH_I2C_Read... [12:48:43]Read from MH i2c: D1 01 00 48 25 00 3E [12:48:43]Write to MH i2c: 01 00 00 49 25 6E [12:48:43]Write i2c OK [12:48:43]MH_I2C_Read... [12:48:43]OFD Sender: No OFD packet to send [12:48:44]*** Cut start [12:48:44]*** Purtial cut [12:48:44]*** Stage 1: CUTSNS_PIN = 1 [12:48:44]Read from MH i2c: 01 [12:48:44]MH_I2C_Read... [12:48:44]*** Stop cut motor [12:48:44]*** Cut end [12:48:44]Read from MH i2c: 01 07 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 FF 0F 83 [12:48:44]process_action close_receipt done [12:48:44]requested_data is exist [12:48:44]produce_requested_data [12:48:44]requested_item fm.sn is exist - process it [12:48:44]wFMCommunicate request_size=4 [12:48:44]MH_SAM_APDU [12:48:44]CAPDU: 80 11 00 00 [12:48:44]Write to MH i2c: E2 08 00 4A 25 80 11 00 00 00 00 00 00 E9 [12:48:44]Write i2c OK [12:48:44]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 17 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 17 00 4A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 49 [12:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:48:44]wFMCommunicate OK [12:48:44]requested_item fd.num is exist - process it [12:48:44]SAM_PROTO_GetFieldsCounters [12:48:44]wFMCommunicate request_size=4 [12:48:44]MH_SAM_APDU [12:48:44]CAPDU: 80 13 00 00 [12:48:44]Write to MH i2c: E2 08 00 4B 25 80 13 00 00 00 00 00 00 EC [12:48:44]Write i2c OK [12:48:44]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 62 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 62 00 4B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [12:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:44]wFMCommunicate OK [12:48:44]SAM_PROTO_GetFieldsCounters done [12:48:44]requested_item shift.num is exist - process it [12:48:44]requested_item shift.opened is exist - process it [12:48:44]req_shift_opened [12:48:44]FM_GetShiftState [12:48:44]SAM_PROTO_GetShiftState [12:48:44]wFMCommunicate request_size=4 [12:48:44]MH_SAM_APDU [12:48:44]CAPDU: 80 13 01 00 [12:48:44]Write to MH i2c: E2 08 00 4C 25 80 13 01 00 00 00 00 00 EE [12:48:44]Write i2c OK [12:48:44]MH_I2C_Read... [12:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:44]Read from MH i2c: E2 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 0E 00 [12:48:44]MH_I2C_Read... [12:48:44]Read from MH i2c: E2 0E 00 4C 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E8 [12:48:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:48:44]wFMCommunicate OK [12:48:44]SAM_PROTO_GetShiftState done [12:48:44]FM_GetShiftState done [12:48:44]req_shift_opened done [12:48:44]requested_item shift.open_date is exist - process it [12:48:44]req_shift_open_date [12:48:44]req_shift_open_date done [12:48:44]produce_requested_data done [12:48:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162517,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:48:44]process_action_free close_receipt [12:48:44]json_value_free [12:48:44]json_value_free done [12:48:44]process_json_proto returns [12:48:44]Send response to host [12:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162517,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:48:44]free response buf [12:48:44]execute_script done [12:48:44]execute_script returns [12:48:44]free content buf [12:48:44]Sock 9.Close socket [12:48:44]Sock 9.Thread stoped [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:17]accept exits with 8 [12:49:17]New connection [12:49:17]New thread 3067006308 created [12:49:17]Thread 3066862948 joined [12:49:17]Waiting for new connection... [12:49:17] Sock 8.Parse request [12:49:17]Sock 8.Check first char [12:49:17]Sock 8.First char is OK [12:49:17]request: POST /json_proto HTTP/1.0 [12:49:17]Method: POST [12:49:17]URL: /json_proto [12:49:17]Method is POST - this is cgi request [12:49:17]url: /json_proto [12:49:17]query_string will be loaded in cgi processing [12:49:17]execute_cgi json_proto POST (null) [12:49:17]execute_cgi path=json_proto method=POST [12:49:17]POST find Content-Length [12:49:17]Host: 172.17.39.67:8080 [12:49:17]Content-Length: 676 [12:49:17]Content-Type: application/json [12:49:17] [12:49:17]POST finish read [12:49:17]Found Content-Length = 676 [12:49:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "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:49:17]execute_script... [12:49: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)1319062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 22.290, "sum" : 1500.12, "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:49:17]POST & json_proto [12:49:17]process_json_proto [12:49:17]json parsed OK: [12:49:17]protocol is kg_v1.0 [12:49:17]action value=close_receipt [12:49:17]process_action close_receipt [12:49:17]cmd_close_receipt [12:49:17]MH_GetDate [12:49:17]Write to MH i2c: F0 00 00 4D 25 61 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: F0 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: F0 09 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: F0 09 00 4D 25 00 DB 77 92 66 FA E9 8E 66 8B [12:49:17]GetLastDocTimeStamp 1720874935 [12:49:17]current date 1720874971 [12:49:17]FM_GetShiftState [12:49:17]SAM_PROTO_GetShiftState [12:49:17]wFMCommunicate request_size=4 [12:49:17]MH_SAM_APDU [12:49:17]CAPDU: 80 13 01 00 [12:49:17]Write to MH i2c: E2 08 00 4E 25 80 13 01 00 00 00 00 00 F0 [12:49:17]Write i2c OK [12:49:17]MH_I2C_Read... [12:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:17]Read from MH i2c: E2 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 0E 00 [12:49:17]MH_I2C_Read... [12:49:17]Read from MH i2c: E2 0E 00 4E 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EA [12:49:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:49:17]wFMCommunicate OK [12:49:17]SAM_PROTO_GetShiftState done [12:49:17]FM_GetShiftState done [12:49:17]opened in 1720828979 [12:49:17]opened+sec_in_day 1720915379 [12:49:17]quantity*price = 150011 [12:49:17]sum+1 = 150013 [12:49:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 186 13.07.2024 12:49 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162518 ФПД: 181650808064355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124931&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162518&fm=181650808064355&tin=02508201610067®Number=0000000000090858&sum=150000 [12:49:18]StoreToDocumentArchive [12:49:18]shift 462 fd 162518 [12:49:18]save to /storage/0462/doc_00162518 [12:49:18]save last doc name /storage/0462/doc_00162518 to /storage/kkm_last_doc_name [12:49:18]save OK [12:49:18]Clear old archive folders... [12:49:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:49:18]tlvbuf is 01C12BD0 [12:49:18]SAM_PROTO_ClearQueue [12:49:18]wFMCommunicate request_size=4 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 09 00 00 [12:49:18]Write to MH i2c: E2 08 00 5B 25 80 09 00 00 00 00 00 00 F2 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:18]Read from MH i2c: E2 03 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 03 00 5B 25 00 90 00 F4 [12:49:18]RAPDU: 90 00 [12:49:18]wFMCommunicate OK [12:49:18]SAM_PROTO_ClearQueue done [12:49:18]KKMCreateOFDPacket [12:49:18]OFDProtocolAddRootSTLVToBuf [12:49:18]FM_MakeSignedData [12:49:18]FM_MakeSignedData [12:49:18]SAM_PROTO_SignData [12:49:18]wFMCommunicate request_size=4 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 0D 01 02 [12:49:18]Write to MH i2c: E2 08 00 5C 25 80 0D 01 02 00 00 00 00 FA [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 03 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 03 00 5C 25 00 90 00 F5 [12:49:18]RAPDU: 90 00 [12:49:18]wFMCommunicate OK [12:49:18]wFMCommunicate request_size=255 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 BA 00 00 00 F4 03 04 00 DB 77 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7A 02 00 35 04 06 00 [12:49:18]Write to MH i2c: E2 02 01 5D 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 BA 00 00 00 F4 03 04 00 DB 77 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7A 02 00 35 04 06 00 00 00 9B [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 03 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 03 00 5D 25 00 90 00 F6 [12:49:18]RAPDU: 90 00 [12:49:18]wFMCommunicate OK [12:49:18]wFMCommunicate request_size=11 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 0D 02 02 06 A5 35 DF E3 49 63 [12:49:18]Write to MH i2c: E2 0E 00 5E 25 80 0D 02 02 06 00 A5 35 DF E3 49 63 00 00 51 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 03 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 03 00 5E 25 00 90 00 F7 [12:49:18]RAPDU: 90 00 [12:49:18]wFMCommunicate OK [12:49:18]wFMCommunicate request_size=4 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 0D 03 02 [12:49:18]Write to MH i2c: E2 08 00 5F 25 80 0D 03 02 00 00 00 00 FF [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 0B 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 0B 00 5F 25 00 CD FD 1C 59 63 3C F8 D6 90 00 AC [12:49:18]RAPDU: CD FD 1C 59 63 3C F8 D6 90 00 [12:49:18]wFMCommunicate OK [12:49:18]SAM_PROTO_SignData done [12:49:18]FM_MakeSignedData done [12:49:18]CreateOFDProtocolMessage [12:49:18]wFMCommunicate request_size=4 [12:49:18]MH_SAM_APDU [12:49:18]CAPDU: 80 11 00 00 [12:49:18]Write to MH i2c: E2 08 00 60 25 80 11 00 00 00 00 00 00 FF [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:18]Read from MH i2c: E2 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 17 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: E2 17 00 60 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5F [12:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:49:18]wFMCommunicate OK [12:49:18]CreateOFDProtocolMessage done [12:49:18]OFDSenderStorePacket 162518 [12:49:18]StoreOFDPacket docnum=162518 [12:49:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 39 07 08 01 69 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 BA 00 00 00 F4 03 04 00 DB 77 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7A 02 00 35 04 06 00 A5 35 DF E3 49 63 CD FD 1C 59 63 3C F8 D6 [12:49:18]CheckFolder [12:49:18]dirname=/storage/ofd_packets [12:49:18]CheckFolder done [12:49:18]ProducePacketName [12:49:18]name=ofd_packets/00162518 [12:49:18]NVStorageSaveData ofd_packets/00162518 [12:49:18]File name is /storage/ofd_packets/00162518 [12:49:18]Write 302 bytes [12:49:18]NVStorageSaveData done [12:49:18]OFDSenderStorePacket done [12:49:18]KKMCreateOFDPacket done [12:49:18]NVStorageSaveData kkm_last_timestamp [12:49:18]File name is /storage/kkm_last_timestamp [12:49:18]Write 4 bytes [12:49:18]NVStorageSaveData done [12:49:18]ExternCall_PrintAddStr [12:49:18]wPrintStart [12:49:18]Write to MH i2c: 01 00 00 61 25 86 [12:49:18]Write i2c OK [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 07 00 [12:49:18]MH_I2C_Read... [12:49:18]Read from MH i2c: 01 07 00 61 25 00 00 00 00 00 FF 0F 9B [12:49:18]RasterBufferAndPrint [12:49:18]line Счет N : (1)1319062 [12:49:18]line ИНН: 02508201610067 [12:49:18]line Контрольно-Кассовый Чек [12:49:18]line ПРОДАЖА [12:49:18]line ТРК (МРК, ГНК) : 42 [12:49:18]line Товар: 2710124130 [12:49:18]line Super-92-К-5 [12:49:18]line 22.290 * 67.30 [12:49:18]line = 1500.12 [12:49:18]line НДС 12% НСП 1% [12:49:18]line > о реализуемом товаре [12:49:18]line ОКРУГЛЕНИЕ: -0.12 [12:49:18]line ИТОГО: 1500.00 [12:49:18]line Внесено: 1500.00 [12:49:18]line СДАЧА: 0.00 [12:49:18]line НСП 1% : 13.27 [12:49:18]line НДС 12% : 159.30 [12:49:18]line Наличными: 1500.00 [12:49:18]line Безнал.: 0.00 [12:49:18]line Место: АЗС № 140 "Партнер Нефть" [12:49:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:49:18]line СНО: Общий режим [12:49:18]line Чек 186 13.07.2024 12:49 [12:49:18]line Смена: 462 ФФД: 1.0 [12:49:18]line ЗНМ: 0300000129 [12:49:18]line РНМ: 0000000000090858 [12:49:18]line Версия ККМ: 001 [12:49:18]line ФМ: 0000000000874899 [12:49:18]line ФД: 162518 [12:49:18]line ФПД: 181650808064355 [12:49:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T124931&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162518&fm=181650808064355&tin=02508201610067®Number=0000000000090858&sum=150000 [12:49:19]OFD Sender: Processing packet 162518 [packets to send 105, broken 104] [12:49:19]ProducePacketName [12:49:19]name=ofd_packets/00162518 [12:49:19]OFD Sender: To server: pG, [12:49:19]CommunicateWithHost lk.salyk.kg:30040 [12:49:19]ConnectInit lk.salyk.kg [12:49:19]written 0, free lines is 4095 [12:49:19]Connected sock=10 [12:49:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 39 07 08 01 69 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 57 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FC 49 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 2F 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 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 BA 00 00 00 F4 03 04 00 DB 77 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D6 7A 02 00 35 04 06 00 A5 35 DF E3 49 63 CD FD 1C 59 63 3C F8 D6 [12:49:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3F 5F 47 00 34 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 34 38 39 39 10 04 04 00 D6 7A 02 00 F4 03 04 00 EF 23 92 66 B6 04 01 00 00 B0 8C 86 B1 C8 7A 81 75 [12:49:19]CommunicateWithHost err = 0 [12:49:19]CheckOFDResponse [12:49:19]1017 (14) - 77093643461234 [12:49:19]1041 (16) - 0000000000874899 [12:49:19]1040 (4) - 162518 [12:49:19]1012 (4) - 13.07.2024 06:51 [12:49:19]1206 (1) - 0 [12:49:19]OFD Sender: Remove packet 162518 [12:49:19]ProducePacketName [12:49:19]name=ofd_packets/00162518 [12:49:19]NVStorageDeleteData [12:49:19]Write to MH i2c: 01 00 00 8C 25 B1 [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: 01 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: 01 07 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: 01 07 00 8C 25 00 00 00 00 00 EB 0C AF [12:49:19]RasterBufferAndPrint [12:49:19]line [12:49:19]line [12:49:19]line [12:49:19]line [12:49:19]line [12:49:19]written 0, free lines is 3313 [12:49:19]MH_Cut [12:49:19]Write to MH i2c: D1 01 00 93 25 01 8A [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: D1 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: D1 01 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: D1 01 00 93 25 00 89 [12:49:19]Write to MH i2c: 01 00 00 94 25 B9 [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]OFD Sender: No OFD packet to send [12:49:20]*** Cut start [12:49:20]*** Purtial cut [12:49:20]*** CUTSNS_PIN = 0 [12:49:20]*** Stage 1: CUTSNS_PIN = 1 [12:49:22]Read from MH i2c: 01 [12:49:22]MH_I2C_Read... [12:49:22]*** Stop cut motor [12:49:22]*** Cut end [12:49:22]Read from MH i2c: 01 07 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: 01 07 00 94 25 00 00 00 00 00 FF 0F CE [12:49:22]process_action close_receipt done [12:49:22]requested_data is exist [12:49:22]produce_requested_data [12:49:22]requested_item fm.sn is exist - process it [12:49:22]wFMCommunicate request_size=4 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 11 00 00 [12:49:22]Write to MH i2c: E2 08 00 95 25 80 11 00 00 00 00 00 00 34 [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 17 00 [12:49:22]MH_I2C_Read... [12:49:22]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 34 38 39 39 90 00 94 [12:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:49:22]wFMCommunicate OK [12:49:22]requested_item fd.num is exist - process it [12:49:22]SAM_PROTO_GetFieldsCounters [12:49:22]wFMCommunicate request_size=4 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 13 00 00 [12:49:22]Write to MH i2c: E2 08 00 96 25 80 13 00 00 00 00 00 00 37 [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 62 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 62 00 96 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [12:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:22]wFMCommunicate OK [12:49:22]SAM_PROTO_GetFieldsCounters done [12:49:22]requested_item shift.num is exist - process it [12:49:22]requested_item shift.opened is exist - process it [12:49:22]req_shift_opened [12:49:22]FM_GetShiftState [12:49:22]SAM_PROTO_GetShiftState [12:49:22]wFMCommunicate request_size=4 [12:49:22]MH_SAM_APDU [12:49:22]CAPDU: 80 13 01 00 [12:49:22]Write to MH i2c: E2 08 00 97 25 80 13 01 00 00 00 00 00 39 [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:22]Read from MH i2c: E2 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 0E 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: E2 0E 00 97 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 33 [12:49:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:49:22]wFMCommunicate OK [12:49:22]SAM_PROTO_GetShiftState done [12:49:22]FM_GetShiftState done [12:49:22]req_shift_opened done [12:49:22]requested_item shift.open_date is exist - process it [12:49:22]req_shift_open_date [12:49:22]req_shift_open_date done [12:49:22]produce_requested_data done [12:49:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162518,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:49:22]process_action_free close_receipt [12:49:22]json_value_free [12:49:22]json_value_free done [12:49:22]process_json_proto returns [12:49:22]Send response to host [12:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162518,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:49:22]free response buf [12:49:22]execute_script done [12:49:22]execute_script returns [12:49:22]free content buf [12:49:22]Sock 8.Close socket [12:49:22]Sock 8.Thread stoped [12:49:24]OFD Sender: No OFD packet to send [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:45]accept exits with 9 [12:53:45]New connection [12:53:45]New thread 3066862948 created [12:53:45]Thread 3067006308 joined [12:53:45]Waiting for new connection... [12:53:45] Sock 9.Parse request [12:53:45]Sock 9.Check first char [12:53:45]Sock 9.First char is OK [12:53:45]request: POST /json_proto HTTP/1.0 [12:53:45]Method: POST [12:53:45]URL: /json_proto [12:53:45]Method is POST - this is cgi request [12:53:45]url: /json_proto [12:53:45]query_string will be loaded in cgi processing [12:53:45]execute_cgi json_proto POST (null) [12:53:45]execute_cgi path=json_proto method=POST [12:53:45]POST find Content-Length [12:53:45]Host: 172.17.39.67:8080 [12:53:45]Content-Length: 807 [12:53:45]Content-Type: application/json [12:53:45] [12:53:45]POST finish read [12:53:45]Found Content-Length = 807 [12:53:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:45]execute_script... [12: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)1319063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:45]POST & json_proto [12:53:45]process_json_proto [12:53:45]json parsed OK: [12:53:45]protocol is kg_v1.0 [12:53:45]action value=close_receipt [12:53:45]process_action close_receipt [12:53:45]cmd_close_receipt [12:53:45]MH_GetDate [12:53:45]Write to MH i2c: F0 00 00 98 25 AC [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: F0 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: F0 09 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: F0 09 00 98 25 00 E7 78 92 66 FA E9 8E 66 E3 [12:53:45]GetLastDocTimeStamp 1720874971 [12:53:45]current date 1720875239 [12:53:45]FM_GetShiftState [12:53:45]SAM_PROTO_GetShiftState [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 13 01 00 [12:53:45]Write to MH i2c: E2 08 00 99 25 80 13 01 00 00 00 00 00 3B [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 0E 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 0E 00 99 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 35 [12:53:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:53:45]wFMCommunicate OK [12:53:45]SAM_PROTO_GetShiftState done [12:53:45]FM_GetShiftState done [12:53:45]opened in 1720828979 [12:53:45]opened+sec_in_day 1720915379 [12:53:45]quantity*price = 99970 [12:53:45]sum+1 = 99971 [12:53:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.70 НСП 1% : 8.85 НДС 12% : 106.16 Наличными: 0.00 Безнал.: 999.70 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 187 13.07.2024 12:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162519 ФПД: 70466762526106 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125359&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162519&fm=70466762526106&tin=02508201610067®Number=0000000000090858&sum=99970 [12:53:46]StoreToDocumentArchive [12:53:46]shift 462 fd 162519 [12:53:46]save to /storage/0462/doc_00162519 [12:53:46]save last doc name /storage/0462/doc_00162519 to /storage/kkm_last_doc_name [12:53:46]save OK [12:53:46]Clear old archive folders... [12:53:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:53:46]tlvbuf is 01A187F0 [12:53:46]SAM_PROTO_ClearQueue [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 09 00 00 [12:53:46]Write to MH i2c: E2 08 00 A6 25 80 09 00 00 00 00 00 00 3D [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 A6 25 00 90 00 3F [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_ClearQueue done [12:53:46]KKMCreateOFDPacket [12:53:46]OFDProtocolAddRootSTLVToBuf [12:53:46]FM_MakeSignedData [12:53:46]FM_MakeSignedData [12:53:46]SAM_PROTO_SignData [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 01 02 [12:53:46]Write to MH i2c: E2 08 00 A7 25 80 0D 01 02 00 00 00 00 45 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 A7 25 00 90 00 40 [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=255 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 E7 78 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7A 02 00 35 04 06 00 [12:53:46]Write to MH i2c: E2 02 01 A8 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 E7 78 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7A 02 00 35 04 06 00 00 00 7B [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 A8 25 00 90 00 41 [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=11 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 02 02 06 40 16 D2 59 4D 9A [12:53:46]Write to MH i2c: E2 0E 00 A9 25 80 0D 02 02 06 00 40 16 D2 59 4D 9A 00 00 BC [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 A9 25 00 90 00 42 [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 03 02 [12:53:46]Write to MH i2c: E2 08 00 AA 25 80 0D 03 02 00 00 00 00 4A [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0B 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0B 00 AA 25 00 EF 1B 29 8E 1B 99 2A B1 90 00 9B [12:53:46]RAPDU: EF 1B 29 8E 1B 99 2A B1 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_SignData done [12:53:46]FM_MakeSignedData done [12:53:46]CreateOFDProtocolMessage [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 11 00 00 [12:53:46]Write to MH i2c: E2 08 00 AB 25 80 11 00 00 00 00 00 00 4A [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 17 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 17 00 AB 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AA [12:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:53:46]wFMCommunicate OK [12:53:46]CreateOFDProtocolMessage done [12:53:46]OFDSenderStorePacket 162519 [12:53:46]StoreOFDPacket docnum=162519 [12:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D9 87 08 01 54 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 E7 78 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7A 02 00 35 04 06 00 40 16 D2 59 4D 9A EF 1B 29 8E 1B 99 2A B1 [12:53:46]CheckFolder [12:53:46]dirname=/storage/ofd_packets [12:53:46]CheckFolder done [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00162519 [12:53:46]NVStorageSaveData ofd_packets/00162519 [12:53:46]File name is /storage/ofd_packets/00162519 [12:53:46]Write 302 bytes [12:53:46]NVStorageSaveData done [12:53:46]OFDSenderStorePacket done [12:53:46]KKMCreateOFDPacket done [12:53:46]NVStorageSaveData kkm_last_timestamp [12:53:46]File name is /storage/kkm_last_timestamp [12:53:46]Write 4 bytes [12:53:46]NVStorageSaveData done [12:53:46]ExternCall_PrintAddStr [12:53:46]wPrintStart [12:53:46]Write to MH i2c: 01 00 00 AC 25 D1 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 07 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 07 00 AC 25 00 00 00 00 00 FF 0F E6 [12:53:46]RasterBufferAndPrint [12:53:46]line Счет N : (1)1319063 [12:53:46]line ИНН: 02508201610067 [12:53:46]line Контрольно-Кассовый Чек [12:53:46]line ПРОДАЖА [12:53:46]line ТРК (МРК, ГНК) : 41 [12:53:46]line Товар: 2710194210 [12:53:46]line ДТ(л)-К-5 [12:53:46]line 13.770 * 72.60 [12:53:46]line = 999.70 [12:53:46]line НДС 12% НСП 1% [12:53:46]line > о реализуемом товаре [12:53:46]line ИТОГО: 999.70 [12:53:46]line НСП 1% : 8.85 [12:53:46]line НДС 12% : 106.16 [12:53:46]line Наличными: 0.00 [12:53:46]line Безнал.: 999.70 [12:53:46]line Место: АЗС № 140 "Партнер Нефть" [12:53:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:53:46]line СНО: Общий режим [12:53:46]line Чек 187 13.07.2024 12:53 [12:53:46]line Смена: 462 ФФД: 1.0 [12:53:46]line ЗНМ: 0300000129 [12:53:46]line РНМ: 0000000000090858 [12:53:46]line Версия ККМ: 001 [12:53:46]line Платежная система: O! деньги [12:53:46]line ФМ: 0000000000874899 [12:53:46]line ФД: 162519 [12:53:46]line ФПД: 70466762526106 [12:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125359&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162519&fm=70466762526106&tin=02508201610067®Number=0000000000090858&sum=99970 [12:53:47]OFD Sender: Processing packet 162519 [packets to send 105, broken 104] [12:53:47]ProducePacketName [12:53:47]name=ofd_packets/00162519 [12:53:47]OFD Sender: To server: pG, [12:53:47]CommunicateWithHost lk.salyk.kg:30040 [12:53:47]ConnectInit lk.salyk.kg [12:53:47]written 0, free lines is 4095 [12:53:47]Connected sock=11 [12: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 34 38 39 39 10 01 00 00 D9 87 08 01 54 94 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 E7 78 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7A 02 00 35 04 06 00 40 16 D2 59 4D 9A EF 1B 29 8E 1B 99 2A B1 [12:53:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BC 4A 47 00 E4 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D7 7A 02 00 F4 03 04 00 FB 24 92 66 B6 04 01 00 00 D8 B4 0C 8B 71 DF D4 EE [12:53:47]CommunicateWithHost err = 0 [12:53:47]CheckOFDResponse [12:53:47]1017 (14) - 77093643461234 [12:53:47]1041 (16) - 0000000000874899 [12:53:47]1040 (4) - 162519 [12:53:47]1012 (4) - 13.07.2024 06:55 [12:53:47]1206 (1) - 0 [12:53:47]OFD Sender: Remove packet 162519 [12:53:47]ProducePacketName [12:53:47]name=ofd_packets/00162519 [12:53:47]NVStorageDeleteData [12:53:47]Write to MH i2c: 01 00 00 D6 25 FB [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 07 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 07 00 D6 25 00 00 00 00 00 E4 0C F2 [12:53:47]RasterBufferAndPrint [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]written 0, free lines is 3306 [12:53:47]MH_Cut [12:53:47]Write to MH i2c: D1 01 00 DD 25 01 D4 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 01 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 01 00 DD 25 00 D3 [12:53:47]Write to MH i2c: 01 00 00 DE 25 03 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:48]OFD Sender: No OFD packet to send [12:53:48]*** Cut start [12:53:48]*** Purtial cut [12:53:48]*** Stage 1: CUTSNS_PIN = 1 [12:53:48]Read from MH i2c: 01 [12:53:48]MH_I2C_Read... [12:53:48]*** Stop cut motor [12:53:48]*** Cut end [12:53:48]Read from MH i2c: 01 07 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 07 00 DE 25 00 00 00 00 00 FF 0F 18 [12:53:48]process_action close_receipt done [12:53:48]requested_data is exist [12:53:48]produce_requested_data [12:53:48]requested_item fm.sn is exist - process it [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 11 00 00 [12:53:48]Write to MH i2c: E2 08 00 DF 25 80 11 00 00 00 00 00 00 7E [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 17 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 17 00 DF 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DE [12:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:53:48]wFMCommunicate OK [12:53:48]requested_item fd.num is exist - process it [12:53:48]SAM_PROTO_GetFieldsCounters [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 13 00 00 [12:53:48]Write to MH i2c: E2 08 00 E0 25 80 13 00 00 00 00 00 00 81 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 62 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 62 00 E0 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [12:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:48]wFMCommunicate OK [12:53:48]SAM_PROTO_GetFieldsCounters done [12:53:48]requested_item shift.num is exist - process it [12:53:48]requested_item shift.opened is exist - process it [12:53:48]req_shift_opened [12:53:48]FM_GetShiftState [12:53:48]SAM_PROTO_GetShiftState [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 13 01 00 [12:53:48]Write to MH i2c: E2 08 00 E1 25 80 13 01 00 00 00 00 00 83 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 0E 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 0E 00 E1 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7D [12:53:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:53:48]wFMCommunicate OK [12:53:48]SAM_PROTO_GetShiftState done [12:53:48]FM_GetShiftState done [12:53:48]req_shift_opened done [12:53:48]requested_item shift.open_date is exist - process it [12:53:48]req_shift_open_date [12:53:48]req_shift_open_date done [12:53:48]produce_requested_data done [12:53:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162519,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:53:48]process_action_free close_receipt [12:53:48]json_value_free [12:53:48]json_value_free done [12:53:48]process_json_proto returns [12:53:48]Send response to host [12:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162519,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:53:48]free response buf [12:53:48]execute_script done [12:53:48]execute_script returns [12:53:48]free content buf [12:53:48]Sock 9.Close socket [12:53:48]Sock 9.Thread stoped [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:08]accept exits with 8 [12:55:08]New connection [12:55:08]New thread 3067006308 created [12:55:08]Thread 3066862948 joined [12:55:08]Waiting for new connection... [12:55:08] Sock 8.Parse request [12:55:08]Sock 8.Check first char [12:55:08]Sock 8.First char is OK [12:55:08]request: POST /json_proto HTTP/1.0 [12:55:08]Method: POST [12:55:08]URL: /json_proto [12:55:08]Method is POST - this is cgi request [12:55:08]url: /json_proto [12:55:08]query_string will be loaded in cgi processing [12:55:08]execute_cgi json_proto POST (null) [12:55:08]execute_cgi path=json_proto method=POST [12:55:08]POST find Content-Length [12:55:08]Host: 172.17.39.67:8080 [12:55:08]Content-Length: 807 [12:55:08]Content-Type: application/json [12:55:08] [12:55:08]POST finish read [12:55:08]Found Content-Length = 807 [12:55:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:08]execute_script... [12:55: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)1319064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:08]POST & json_proto [12:55:08]process_json_proto [12:55:08]json parsed OK: [12:55:08]protocol is kg_v1.0 [12:55:08]action value=close_receipt [12:55:08]process_action close_receipt [12:55:08]cmd_close_receipt [12:55:08]MH_GetDate [12:55:08]Write to MH i2c: F0 00 00 E2 25 F6 [12:55:08]Write i2c OK [12:55:08]MH_I2C_Read... [12:55:08]Read from MH i2c: F0 [12:55:08]MH_I2C_Read... [12:55:08]Read from MH i2c: F0 09 00 [12:55:08]MH_I2C_Read... [12:55:08]Read from MH i2c: F0 09 00 E2 25 00 3B 79 92 66 FA E9 8E 66 82 [12:55:08]GetLastDocTimeStamp 1720875239 [12:55:08]current date 1720875323 [12:55:08]FM_GetShiftState [12:55:08]SAM_PROTO_GetShiftState [12:55:08]wFMCommunicate request_size=4 [12:55:08]MH_SAM_APDU [12:55:08]CAPDU: 80 13 01 00 [12:55:08]Write to MH i2c: E2 08 00 E3 25 80 13 01 00 00 00 00 00 85 [12:55:08]Write i2c OK [12:55:08]MH_I2C_Read... [12:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:09]Read from MH i2c: E2 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: E2 0E 00 [12:55:09]MH_I2C_Read... [12:55:09]Read from MH i2c: E2 0E 00 E3 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7F [12:55:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:55:09]wFMCommunicate OK [12:55:09]SAM_PROTO_GetShiftState done [12:55:09]FM_GetShiftState done [12:55:09]opened in 1720828979 [12:55:09]opened+sec_in_day 1720915379 [12:55:09]quantity*price = 99970 [12:55:09]sum+1 = 99971 [12:55:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.70 НСП 1% : 8.85 НДС 12% : 106.16 Наличными: 0.00 Безнал.: 999.70 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 188 13.07.2024 12:55 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162520 ФПД: 86339482760770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125523&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162520&fm=86339482760770&tin=02508201610067®Number=0000000000090858&sum=99970 [12:55:10]StoreToDocumentArchive [12:55:10]shift 462 fd 162520 [12:55:10]save to /storage/0462/doc_00162520 [12:55:10]save last doc name /storage/0462/doc_00162520 to /storage/kkm_last_doc_name [12:55:10]save OK [12:55:10]Clear old archive folders... [12:55:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:55:10]tlvbuf is 01B6A870 [12:55:10]SAM_PROTO_ClearQueue [12:55:10]wFMCommunicate request_size=4 [12:55:10]MH_SAM_APDU [12:55:10]CAPDU: 80 09 00 00 [12:55:10]Write to MH i2c: E2 08 00 F0 25 80 09 00 00 00 00 00 00 87 [12:55:10]Write i2c OK [12:55:10]MH_I2C_Read... [12:55:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:10]Read from MH i2c: E2 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 03 00 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 03 00 F0 25 00 90 00 89 [12:55:10]RAPDU: 90 00 [12:55:10]wFMCommunicate OK [12:55:10]SAM_PROTO_ClearQueue done [12:55:10]KKMCreateOFDPacket [12:55:10]OFDProtocolAddRootSTLVToBuf [12:55:10]FM_MakeSignedData [12:55:10]FM_MakeSignedData [12:55:10]SAM_PROTO_SignData [12:55:10]wFMCommunicate request_size=4 [12:55:10]MH_SAM_APDU [12:55:10]CAPDU: 80 0D 01 02 [12:55:10]Write to MH i2c: E2 08 00 F1 25 80 0D 01 02 00 00 00 00 8F [12:55:10]Write i2c OK [12:55:10]MH_I2C_Read... [12:55:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:10]Read from MH i2c: E2 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 03 00 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 03 00 F1 25 00 90 00 8A [12:55:10]RAPDU: 90 00 [12:55:10]wFMCommunicate OK [12:55:10]wFMCommunicate request_size=255 [12:55:10]MH_SAM_APDU [12:55:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 3B 79 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7A 02 00 35 04 06 00 [12:55:10]Write to MH i2c: E2 02 01 F2 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 3B 79 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7A 02 00 35 04 06 00 00 00 1C [12:55:10]Write i2c OK [12:55:10]MH_I2C_Read... [12:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:10]Read from MH i2c: E2 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 03 00 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 03 00 F2 25 00 90 00 8B [12:55:10]RAPDU: 90 00 [12:55:10]wFMCommunicate OK [12:55:10]wFMCommunicate request_size=11 [12:55:10]MH_SAM_APDU [12:55:10]CAPDU: 80 0D 02 02 06 4E 86 7A 33 36 42 [12:55:10]Write to MH i2c: E2 0E 00 F3 25 80 0D 02 02 06 00 4E 86 7A 33 36 42 00 00 97 [12:55:10]Write i2c OK [12:55:10]MH_I2C_Read... [12:55:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:10]Read from MH i2c: E2 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 03 00 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 03 00 F3 25 00 90 00 8C [12:55:10]RAPDU: 90 00 [12:55:10]wFMCommunicate OK [12:55:10]wFMCommunicate request_size=4 [12:55:10]MH_SAM_APDU [12:55:10]CAPDU: 80 0D 03 02 [12:55:10]Write to MH i2c: E2 08 00 F4 25 80 0D 03 02 00 00 00 00 94 [12:55:10]Write i2c OK [12:55:10]MH_I2C_Read... [12:55:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:10]Read from MH i2c: E2 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 0B 00 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 0B 00 F4 25 00 2E 83 9B 5A E1 14 C5 DA 90 00 CF [12:55:10]RAPDU: 2E 83 9B 5A E1 14 C5 DA 90 00 [12:55:10]wFMCommunicate OK [12:55:10]SAM_PROTO_SignData done [12:55:10]FM_MakeSignedData done [12:55:10]CreateOFDProtocolMessage [12:55:10]wFMCommunicate request_size=4 [12:55:10]MH_SAM_APDU [12:55:10]CAPDU: 80 11 00 00 [12:55:10]Write to MH i2c: E2 08 00 F5 25 80 11 00 00 00 00 00 00 94 [12:55:10]Write i2c OK [12:55:10]MH_I2C_Read... [12:55:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:10]Read from MH i2c: E2 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 17 00 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: E2 17 00 F5 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F4 [12:55:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:55:10]wFMCommunicate OK [12:55:10]CreateOFDProtocolMessage done [12:55:10]OFDSenderStorePacket 162520 [12:55:10]StoreOFDPacket docnum=162520 [12:55:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 12 34 08 01 86 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 3B 79 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7A 02 00 35 04 06 00 4E 86 7A 33 36 42 2E 83 9B 5A E1 14 C5 DA [12:55:10]CheckFolder [12:55:10]dirname=/storage/ofd_packets [12:55:10]CheckFolder done [12:55:10]ProducePacketName [12:55:10]name=ofd_packets/00162520 [12:55:10]NVStorageSaveData ofd_packets/00162520 [12:55:10]File name is /storage/ofd_packets/00162520 [12:55:10]Write 302 bytes [12:55:10]NVStorageSaveData done [12:55:10]OFDSenderStorePacket done [12:55:10]KKMCreateOFDPacket done [12:55:10]NVStorageSaveData kkm_last_timestamp [12:55:10]File name is /storage/kkm_last_timestamp [12:55:10]Write 4 bytes [12:55:10]NVStorageSaveData done [12:55:10]ExternCall_PrintAddStr [12:55:10]wPrintStart [12:55:10]Write to MH i2c: 01 00 00 F6 25 1B [12:55:10]Write i2c OK [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: 01 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: 01 07 00 [12:55:10]MH_I2C_Read... [12:55:10]Read from MH i2c: 01 07 00 F6 25 00 00 00 00 00 FF 0F 30 [12:55:10]RasterBufferAndPrint [12:55:10]line Счет N : (1)1319064 [12:55:10]line ИНН: 02508201610067 [12:55:10]line Контрольно-Кассовый Чек [12:55:10]line ПРОДАЖА [12:55:10]line ТРК (МРК, ГНК) : 21 [12:55:10]line Товар: 2710194210 [12:55:10]line ДТ(л)-К-5 [12:55:10]line 13.770 * 72.60 [12:55:10]line = 999.70 [12:55:10]line НДС 12% НСП 1% [12:55:10]line > о реализуемом товаре [12:55:10]line ИТОГО: 999.70 [12:55:10]line НСП 1% : 8.85 [12:55:10]line НДС 12% : 106.16 [12:55:10]line Наличными: 0.00 [12:55:10]line Безнал.: 999.70 [12:55:10]line Место: АЗС № 140 "Партнер Нефть" [12:55:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:55:10]line СНО: Общий режим [12:55:10]line Чек 188 13.07.2024 12:55 [12:55:10]line Смена: 462 ФФД: 1.0 [12:55:10]line ЗНМ: 0300000129 [12:55:10]line РНМ: 0000000000090858 [12:55:10]line Версия ККМ: 001 [12:55:10]line Платежная система: O! деньги [12:55:10]line ФМ: 0000000000874899 [12:55:10]line ФД: 162520 [12:55:10]line ФПД: 86339482760770 [12:55:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125523&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162520&fm=86339482760770&tin=02508201610067®Number=0000000000090858&sum=99970 [12:55:11]written 0, free lines is 4095 [12:55:11]OFD Sender: Processing packet 162520 [packets to send 105, broken 104] [12:55:11]ProducePacketName [12:55:11]name=ofd_packets/00162520 [12:55:11]OFD Sender: To server: pG, [12:55:11]CommunicateWithHost lk.salyk.kg:30040 [12:55:11]ConnectInit lk.salyk.kg [12:55:11]Connected sock=10 [12:55:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 12 34 08 01 86 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 3B 79 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7A 02 00 35 04 06 00 4E 86 7A 33 36 42 2E 83 9B 5A E1 14 C5 DA [12:55:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CD 92 47 00 68 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D8 7A 02 00 F4 03 04 00 4F 25 92 66 B6 04 01 00 00 B4 35 81 A6 92 DC D5 4D [12:55:11]CommunicateWithHost err = 0 [12:55:11]CheckOFDResponse [12:55:11]1017 (14) - 77093643461234 [12:55:11]1041 (16) - 0000000000874899 [12:55:11]1040 (4) - 162520 [12:55:11]1012 (4) - 13.07.2024 06:57 [12:55:11]1206 (1) - 0 [12:55:11]OFD Sender: Remove packet 162520 [12:55:11]ProducePacketName [12:55:11]name=ofd_packets/00162520 [12:55:11]NVStorageDeleteData [12:55:11]Write to MH i2c: 01 00 00 20 26 46 [12:55:11]Write i2c OK [12:55:11]MH_I2C_Read... [12:55:11]Read from MH i2c: 01 [12:55:11]MH_I2C_Read... [12:55:11]Read from MH i2c: 01 07 00 [12:55:11]MH_I2C_Read... [12:55:11]Read from MH i2c: 01 07 00 20 26 00 00 00 00 00 E4 0C 3D [12:55:11]RasterBufferAndPrint [12:55:11]line [12:55:11]line [12:55:11]line [12:55:11]line [12:55:11]line [12:55:11]written 0, free lines is 3308 [12:55:11]MH_Cut [12:55:11]Write to MH i2c: D1 01 00 27 26 01 1F [12:55:11]Write i2c OK [12:55:11]MH_I2C_Read... [12:55:11]Read from MH i2c: D1 [12:55:11]MH_I2C_Read... [12:55:11]Read from MH i2c: D1 01 00 [12:55:11]MH_I2C_Read... [12:55:11]Read from MH i2c: D1 01 00 27 26 00 1E [12:55:11]Write to MH i2c: 01 00 00 28 26 4E [12:55:11]Write i2c OK [12:55:11]MH_I2C_Read... [12:55:11]OFD Sender: No OFD packet to send [12:55:12]*** Cut start [12:55:12]*** Purtial cut [12:55:12]*** CUTSNS_PIN = 0 [12:55:12]*** Stage 1: CUTSNS_PIN = 1 [12:55:14]Read from MH i2c: 01 [12:55:14]MH_I2C_Read... [12:55:14]*** Stop cut motor [12:55:14]*** Cut end [12:55:14]Read from MH i2c: 01 07 00 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: 01 07 00 28 26 00 00 00 00 00 FF 0F 63 [12:55:14]process_action close_receipt done [12:55:14]requested_data is exist [12:55:14]produce_requested_data [12:55:14]requested_item fm.sn is exist - process it [12:55:14]wFMCommunicate request_size=4 [12:55:14]MH_SAM_APDU [12:55:14]CAPDU: 80 11 00 00 [12:55:14]Write to MH i2c: E2 08 00 29 26 80 11 00 00 00 00 00 00 C9 [12:55:14]Write i2c OK [12:55:14]MH_I2C_Read... [12:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:14]Read from MH i2c: E2 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: E2 17 00 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: E2 17 00 29 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 29 [12:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:55:14]wFMCommunicate OK [12:55:14]requested_item fd.num is exist - process it [12:55:14]SAM_PROTO_GetFieldsCounters [12:55:14]wFMCommunicate request_size=4 [12:55:14]MH_SAM_APDU [12:55:14]CAPDU: 80 13 00 00 [12:55:14]Write to MH i2c: E2 08 00 2A 26 80 13 00 00 00 00 00 00 CC [12:55:14]Write i2c OK [12:55:14]MH_I2C_Read... [12:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:14]Read from MH i2c: E2 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: E2 62 00 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: E2 62 00 2A 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [12:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:14]wFMCommunicate OK [12:55:14]SAM_PROTO_GetFieldsCounters done [12:55:14]requested_item shift.num is exist - process it [12:55:14]requested_item shift.opened is exist - process it [12:55:14]req_shift_opened [12:55:14]FM_GetShiftState [12:55:14]SAM_PROTO_GetShiftState [12:55:14]wFMCommunicate request_size=4 [12:55:14]MH_SAM_APDU [12:55:14]CAPDU: 80 13 01 00 [12:55:14]Write to MH i2c: E2 08 00 2B 26 80 13 01 00 00 00 00 00 CE [12:55:14]Write i2c OK [12:55:14]MH_I2C_Read... [12:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:14]Read from MH i2c: E2 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: E2 0E 00 [12:55:14]MH_I2C_Read... [12:55:14]Read from MH i2c: E2 0E 00 2B 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C8 [12:55:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:55:14]wFMCommunicate OK [12:55:14]SAM_PROTO_GetShiftState done [12:55:14]FM_GetShiftState done [12:55:14]req_shift_opened done [12:55:14]requested_item shift.open_date is exist - process it [12:55:14]req_shift_open_date [12:55:14]req_shift_open_date done [12:55:14]produce_requested_data done [12:55:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162520,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:55:14]process_action_free close_receipt [12:55:14]json_value_free [12:55:14]json_value_free done [12:55:14]process_json_proto returns [12:55:14]Send response to host [12:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162520,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:55:14]free response buf [12:55:14]execute_script done [12:55:14]execute_script returns [12:55:14]free content buf [12:55:14]Sock 8.Close socket [12:55:14]Sock 8.Thread stoped [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:23]accept exits with 9 [12:55:23]New connection [12:55:23]New thread 3066862948 created [12:55:23]Thread 3067006308 joined [12:55:23]Waiting for new connection... [12:55:23] Sock 9.Parse request [12:55:23]Sock 9.Check first char [12:55:23]Sock 9.First char is OK [12:55:23]request: POST /json_proto HTTP/1.0 [12:55:23]Method: POST [12:55:23]URL: /json_proto [12:55:23]Method is POST - this is cgi request [12:55:23]url: /json_proto [12:55:23]query_string will be loaded in cgi processing [12:55:23]execute_cgi json_proto POST (null) [12:55:23]execute_cgi path=json_proto method=POST [12:55:23]POST find Content-Length [12:55:23]Host: 172.17.39.67:8080 [12:55:23]Content-Length: 678 [12:55:23]Content-Type: application/json [12:55:23] [12:55:23]POST finish read [12:55:23]Found Content-Length = 678 [12:55:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:23]execute_script... [12:55: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)1319065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55:23]POST & json_proto [12:55:23]process_json_proto [12:55:23]json parsed OK: [12:55:23]protocol is kg_v1.0 [12:55:23]action value=close_receipt [12:55:23]process_action close_receipt [12:55:23]cmd_close_receipt [12:55:23]MH_GetDate [12:55:23]Write to MH i2c: F0 00 00 2C 26 41 [12:55:23]Write i2c OK [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: F0 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: F0 09 00 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: F0 09 00 2C 26 00 49 79 92 66 FA E9 8E 66 DB [12:55:23]GetLastDocTimeStamp 1720875323 [12:55:23]current date 1720875337 [12:55:23]FM_GetShiftState [12:55:23]SAM_PROTO_GetShiftState [12:55:23]wFMCommunicate request_size=4 [12:55:23]MH_SAM_APDU [12:55:23]CAPDU: 80 13 01 00 [12:55:23]Write to MH i2c: E2 08 00 2D 26 80 13 01 00 00 00 00 00 D0 [12:55:23]Write i2c OK [12:55:23]MH_I2C_Read... [12:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:23]Read from MH i2c: E2 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: E2 0E 00 [12:55:23]MH_I2C_Read... [12:55:23]Read from MH i2c: E2 0E 00 2D 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CA [12:55:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:55:23]wFMCommunicate OK [12:55:23]SAM_PROTO_GetShiftState done [12:55:23]FM_GetShiftState done [12:55:23]opened in 1720828979 [12:55:23]opened+sec_in_day 1720915379 [12:55:23]quantity*price = 50056 [12:55:23]sum+1 = 50058 [12:55:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 189 13.07.2024 12:55 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162521 ФПД: 229611878838399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125537&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162521&fm=229611878838399&tin=02508201610067®Number=0000000000090858&sum=50000 [12:55:24]StoreToDocumentArchive [12:55:24]shift 462 fd 162521 [12:55:24]save to /storage/0462/doc_00162521 [12:55:24]save last doc name /storage/0462/doc_00162521 to /storage/kkm_last_doc_name [12:55:24]save OK [12:55:24]Clear old archive folders... [12:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:55:24]tlvbuf is 01C12D10 [12:55:24]SAM_PROTO_ClearQueue [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 09 00 00 [12:55:24]Write to MH i2c: E2 08 00 3A 26 80 09 00 00 00 00 00 00 D2 [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 03 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 03 00 3A 26 00 90 00 D4 [12:55:24]RAPDU: 90 00 [12:55:24]wFMCommunicate OK [12:55:24]SAM_PROTO_ClearQueue done [12:55:24]KKMCreateOFDPacket [12:55:24]OFDProtocolAddRootSTLVToBuf [12:55:24]FM_MakeSignedData [12:55:24]FM_MakeSignedData [12:55:24]SAM_PROTO_SignData [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 0D 01 02 [12:55:24]Write to MH i2c: E2 08 00 3B 26 80 0D 01 02 00 00 00 00 DA [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 03 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 03 00 3B 26 00 90 00 D5 [12:55:24]RAPDU: 90 00 [12:55:24]wFMCommunicate OK [12:55:24]wFMCommunicate request_size=255 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 49 79 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7A 02 00 35 04 06 00 D0 [12:55:24]Write to MH i2c: E2 02 01 3C 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 49 79 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7A 02 00 35 04 06 00 D0 00 00 01 [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 03 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 03 00 3C 26 00 90 00 D6 [12:55:24]RAPDU: 90 00 [12:55:24]wFMCommunicate OK [12:55:24]wFMCommunicate request_size=10 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 0D 02 02 05 D4 AE 79 70 7F [12:55:24]Write to MH i2c: E2 0D 00 3D 26 80 0D 02 02 05 00 D4 AE 79 70 7F 00 00 D1 [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 03 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 03 00 3D 26 00 90 00 D7 [12:55:24]RAPDU: 90 00 [12:55:24]wFMCommunicate OK [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 0D 03 02 [12:55:24]Write to MH i2c: E2 08 00 3E 26 80 0D 03 02 00 00 00 00 DF [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 0B 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 0B 00 3E 26 00 DA 16 E3 1A E9 8E 01 DB 90 00 20 [12:55:24]RAPDU: DA 16 E3 1A E9 8E 01 DB 90 00 [12:55:24]wFMCommunicate OK [12:55:24]SAM_PROTO_SignData done [12:55:24]FM_MakeSignedData done [12:55:24]CreateOFDProtocolMessage [12:55:24]wFMCommunicate request_size=4 [12:55:24]MH_SAM_APDU [12:55:24]CAPDU: 80 11 00 00 [12:55:24]Write to MH i2c: E2 08 00 3F 26 80 11 00 00 00 00 00 00 DF [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:24]Read from MH i2c: E2 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 17 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: E2 17 00 3F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3F [12:55:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:55:24]wFMCommunicate OK [12:55:24]CreateOFDProtocolMessage done [12:55:24]OFDSenderStorePacket 162521 [12:55:24]StoreOFDPacket docnum=162521 [12:55:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DD C6 07 01 89 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 49 79 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7A 02 00 35 04 06 00 D0 D4 AE 79 70 7F DA 16 E3 1A E9 8E 01 DB [12:55:24]CheckFolder [12:55:24]dirname=/storage/ofd_packets [12:55:24]CheckFolder done [12:55:24]ProducePacketName [12:55:24]name=ofd_packets/00162521 [12:55:24]NVStorageSaveData ofd_packets/00162521 [12:55:24]File name is /storage/ofd_packets/00162521 [12:55:24]Write 301 bytes [12:55:24]NVStorageSaveData done [12:55:24]OFDSenderStorePacket done [12:55:24]KKMCreateOFDPacket done [12:55:24]NVStorageSaveData kkm_last_timestamp [12:55:24]File name is /storage/kkm_last_timestamp [12:55:24]Write 4 bytes [12:55:24]NVStorageSaveData done [12:55:24]ExternCall_PrintAddStr [12:55:24]wPrintStart [12:55:24]Write to MH i2c: 01 00 00 40 26 66 [12:55:24]Write i2c OK [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: 01 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: 01 07 00 [12:55:24]MH_I2C_Read... [12:55:24]Read from MH i2c: 01 07 00 40 26 00 00 00 00 00 FF 0F 7B [12:55:24]RasterBufferAndPrint [12:55:24]line Счет N : (1)1319065 [12:55:24]line ИНН: 02508201610067 [12:55:24]line Контрольно-Кассовый Чек [12:55:24]line ПРОДАЖА [12:55:24]line ТРК (МРК, ГНК) : 53 [12:55:24]line Товар: 2710124130 [12:55:24]line Аи-92-К-5 [12:55:24]line 7.550 * 66.30 [12:55:24]line = 500.57 [12:55:24]line НДС 12% НСП 1% [12:55:24]line > о реализуемом товаре [12:55:24]line ОКРУГЛЕНИЕ: -0.57 [12:55:24]line ИТОГО: 500.00 [12:55:24]line Внесено: 500.00 [12:55:24]line СДАЧА: 0.00 [12:55:24]line НСП 1% : 4.43 [12:55:24]line НДС 12% : 53.16 [12:55:24]line Наличными: 500.00 [12:55:24]line Безнал.: 0.00 [12:55:24]line Место: АЗС № 140 "Партнер Нефть" [12:55:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:55:24]line СНО: Общий режим [12:55:24]line Чек 189 13.07.2024 12:55 [12:55:24]line Смена: 462 ФФД: 1.0 [12:55:24]line ЗНМ: 0300000129 [12:55:24]line РНМ: 0000000000090858 [12:55:24]line Версия ККМ: 001 [12:55:24]line ФМ: 0000000000874899 [12:55:24]line ФД: 162521 [12:55:24]line ФПД: 229611878838399 [12:55:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T125537&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162521&fm=229611878838399&tin=02508201610067®Number=0000000000090858&sum=50000 [12:55:25]OFD Sender: Processing packet 162521 [packets to send 105, broken 104] [12:55:25]ProducePacketName [12:55:25]name=ofd_packets/00162521 [12:55:25]OFD Sender: To server: pG, [12:55:25]CommunicateWithHost lk.salyk.kg:30040 [12:55:25]ConnectInit lk.salyk.kg [12:55:25]written 0, free lines is 4095 [12:55:25]Connected sock=10 [12:55:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DD C6 07 01 89 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 49 79 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7A 02 00 35 04 06 00 D0 D4 AE 79 70 7F DA 16 E3 1A E9 8E 01 DB [12:55:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 35 17 47 00 6F 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 D9 7A 02 00 F4 03 04 00 5D 25 92 66 B6 04 01 00 00 7C C9 D0 A4 DC 0E CF 1B [12:55:25]CommunicateWithHost err = 0 [12:55:25]CheckOFDResponse [12:55:25]1017 (14) - 77093643461234 [12:55:25]1041 (16) - 0000000000874899 [12:55:25]1040 (4) - 162521 [12:55:25]1012 (4) - 13.07.2024 06:57 [12:55:25]1206 (1) - 0 [12:55:25]OFD Sender: Remove packet 162521 [12:55:25]ProducePacketName [12:55:25]name=ofd_packets/00162521 [12:55:25]NVStorageDeleteData [12:55:25]Write to MH i2c: 01 00 00 6B 26 91 [12:55:25]Write i2c OK [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: 01 [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: 01 07 00 [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: 01 07 00 6B 26 00 00 00 00 00 DC 0C 80 [12:55:25]RasterBufferAndPrint [12:55:25]line [12:55:25]line [12:55:25]line [12:55:25]line [12:55:25]line [12:55:25]written 0, free lines is 3300 [12:55:25]MH_Cut [12:55:25]Write to MH i2c: D1 01 00 72 26 01 6A [12:55:25]Write i2c OK [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: D1 [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: D1 01 00 [12:55:25]MH_I2C_Read... [12:55:25]Read from MH i2c: D1 01 00 72 26 00 69 [12:55:25]Write to MH i2c: 01 00 00 73 26 99 [12:55:25]Write i2c OK [12:55:25]MH_I2C_Read... [12:55:25]OFD Sender: No OFD packet to send [12:55:26]*** Cut start [12:55:26]*** Purtial cut [12:55:26]*** Stage 1: CUTSNS_PIN = 1 [12:55:26]Read from MH i2c: 01 [12:55:26]MH_I2C_Read... [12:55:26]*** Stop cut motor [12:55:26]*** Cut end [12:55:26]Read from MH i2c: 01 07 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: 01 07 00 73 26 00 00 00 00 00 FF 0F AE [12:55:26]process_action close_receipt done [12:55:26]requested_data is exist [12:55:26]produce_requested_data [12:55:26]requested_item fm.sn is exist - process it [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 11 00 00 [12:55:26]Write to MH i2c: E2 08 00 74 26 80 11 00 00 00 00 00 00 14 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 17 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 17 00 74 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 74 [12:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [12:55:26]wFMCommunicate OK [12:55:26]requested_item fd.num is exist - process it [12:55:26]SAM_PROTO_GetFieldsCounters [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 13 00 00 [12:55:26]Write to MH i2c: E2 08 00 75 26 80 13 00 00 00 00 00 00 17 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 62 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 62 00 75 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [12:55:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 D9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:26]wFMCommunicate OK [12:55:26]SAM_PROTO_GetFieldsCounters done [12:55:26]requested_item shift.num is exist - process it [12:55:26]requested_item shift.opened is exist - process it [12:55:26]req_shift_opened [12:55:26]FM_GetShiftState [12:55:26]SAM_PROTO_GetShiftState [12:55:26]wFMCommunicate request_size=4 [12:55:26]MH_SAM_APDU [12:55:26]CAPDU: 80 13 01 00 [12:55:26]Write to MH i2c: E2 08 00 76 26 80 13 01 00 00 00 00 00 19 [12:55:26]Write i2c OK [12:55:26]MH_I2C_Read... [12:55:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:26]Read from MH i2c: E2 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 0E 00 [12:55:26]MH_I2C_Read... [12:55:26]Read from MH i2c: E2 0E 00 76 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 13 [12:55:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [12:55:26]wFMCommunicate OK [12:55:26]SAM_PROTO_GetShiftState done [12:55:26]FM_GetShiftState done [12:55:26]req_shift_opened done [12:55:26]requested_item shift.open_date is exist - process it [12:55:26]req_shift_open_date [12:55:26]req_shift_open_date done [12:55:26]produce_requested_data done [12:55:26]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162521,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [12:55:26]process_action_free close_receipt [12:55:26]json_value_free [12:55:26]json_value_free done [12:55:26]process_json_proto returns [12:55:26]Send response to host [12:55:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162521,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [12:55:26]free response buf [12:55:26]execute_script done [12:55:26]execute_script returns [12:55:26]free content buf [12:55:26]Sock 9.Close socket [12:55:26]Sock 9.Thread stoped [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00: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:40]accept exits with 8 [13:00:40]New connection [13:00:40]New thread 3067006308 created [13:00:40]Thread 3066862948 joined [13:00:40]Waiting for new connection... [13:00:40] Sock 8.Parse request [13:00:40]Sock 8.Check first char [13:00:40]Sock 8.First char is OK [13:00:40]request: POST /json_proto HTTP/1.0 [13:00:40]Method: POST [13:00:40]URL: /json_proto [13:00:40]Method is POST - this is cgi request [13:00:40]url: /json_proto [13:00:40]query_string will be loaded in cgi processing [13:00:40]execute_cgi json_proto POST (null) [13:00:40]execute_cgi path=json_proto method=POST [13:00:40]POST find Content-Length [13:00:40]Host: 172.17.39.67:8080 [13:00:40]Content-Length: 678 [13:00:40]Content-Type: application/json [13:00:40] [13:00:40]POST finish read [13:00:40]Found Content-Length = 678 [13:00:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:40]execute_script... [13:00: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)1319068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:40]POST & json_proto [13:00:40]process_json_proto [13:00:40]json parsed OK: [13:00:40]protocol is kg_v1.0 [13:00:40]action value=close_receipt [13:00:40]process_action close_receipt [13:00:40]cmd_close_receipt [13:00:40]MH_GetDate [13:00:40]Write to MH i2c: F0 00 00 77 26 8C [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: F0 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: F0 09 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: F0 09 00 77 26 00 86 7A 92 66 FA E9 8E 66 64 [13:00:40]GetLastDocTimeStamp 1720875337 [13:00:40]current date 1720875654 [13:00:40]FM_GetShiftState [13:00:40]SAM_PROTO_GetShiftState [13:00:40]wFMCommunicate request_size=4 [13:00:40]MH_SAM_APDU [13:00:40]CAPDU: 80 13 01 00 [13:00:40]Write to MH i2c: E2 08 00 78 26 80 13 01 00 00 00 00 00 1B [13:00:40]Write i2c OK [13:00:40]MH_I2C_Read... [13:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:40]Read from MH i2c: E2 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: E2 0E 00 [13:00:40]MH_I2C_Read... [13:00:40]Read from MH i2c: E2 0E 00 78 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 15 [13:00:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:00:40]wFMCommunicate OK [13:00:40]SAM_PROTO_GetShiftState done [13:00:40]FM_GetShiftState done [13:00:40]opened in 1720828979 [13:00:40]opened+sec_in_day 1720915379 [13:00:40]quantity*price = 50056 [13:00:40]sum+1 = 50058 [13:00:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 190 13.07.2024 13:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162522 ФПД: 211588272484651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130055&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162522&fm=211588272484651&tin=02508201610067®Number=0000000000090858&sum=50000 [13:00:41]StoreToDocumentArchive [13:00:41]shift 462 fd 162522 [13:00:41]save to /storage/0462/doc_00162522 [13:00:41]save last doc name /storage/0462/doc_00162522 to /storage/kkm_last_doc_name [13:00:41]save OK [13:00:41]Clear old archive folders... [13:00:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:41]tlvbuf is 01C12BA0 [13:00:41]SAM_PROTO_ClearQueue [13:00:41]wFMCommunicate request_size=4 [13:00:41]MH_SAM_APDU [13:00:41]CAPDU: 80 09 00 00 [13:00:41]Write to MH i2c: E2 08 00 85 26 80 09 00 00 00 00 00 00 1D [13:00:41]Write i2c OK [13:00:41]MH_I2C_Read... [13:00:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:41]Read from MH i2c: E2 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 03 00 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 03 00 85 26 00 90 00 1F [13:00:41]RAPDU: 90 00 [13:00:41]wFMCommunicate OK [13:00:41]SAM_PROTO_ClearQueue done [13:00:41]KKMCreateOFDPacket [13:00:41]OFDProtocolAddRootSTLVToBuf [13:00:41]FM_MakeSignedData [13:00:41]FM_MakeSignedData [13:00:41]SAM_PROTO_SignData [13:00:41]wFMCommunicate request_size=4 [13:00:41]MH_SAM_APDU [13:00:41]CAPDU: 80 0D 01 02 [13:00:41]Write to MH i2c: E2 08 00 86 26 80 0D 01 02 00 00 00 00 25 [13:00:41]Write i2c OK [13:00:41]MH_I2C_Read... [13:00:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:41]Read from MH i2c: E2 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 03 00 [13:00:41]MH_I2C_Read... [13:00:41]Read from MH i2c: E2 03 00 86 26 00 90 00 20 [13:00:41]RAPDU: 90 00 [13:00:41]wFMCommunicate OK [13:00:41]wFMCommunicate request_size=255 [13:00:41]MH_SAM_APDU [13:00:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 87 7A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DA 7A 02 00 35 04 06 00 C0 [13:00:41]Write to MH i2c: E2 02 01 87 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 87 7A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DA 7A 02 00 35 04 06 00 C0 00 00 7D [13:00:41]Write i2c OK [13:00:41]MH_I2C_Read... [13:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:42]Read from MH i2c: E2 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 03 00 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 03 00 87 26 00 90 00 21 [13:00:42]RAPDU: 90 00 [13:00:42]wFMCommunicate OK [13:00:42]wFMCommunicate request_size=10 [13:00:42]MH_SAM_APDU [13:00:42]CAPDU: 80 0D 02 02 05 70 3B D1 F1 2B [13:00:42]Write to MH i2c: E2 0D 00 88 26 80 0D 02 02 05 00 70 3B D1 F1 2B 00 00 CA [13:00:42]Write i2c OK [13:00:42]MH_I2C_Read... [13:00:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:42]Read from MH i2c: E2 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 03 00 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 03 00 88 26 00 90 00 22 [13:00:42]RAPDU: 90 00 [13:00:42]wFMCommunicate OK [13:00:42]wFMCommunicate request_size=4 [13:00:42]MH_SAM_APDU [13:00:42]CAPDU: 80 0D 03 02 [13:00:42]Write to MH i2c: E2 08 00 89 26 80 0D 03 02 00 00 00 00 2A [13:00:42]Write i2c OK [13:00:42]MH_I2C_Read... [13:00:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:42]Read from MH i2c: E2 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 0B 00 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 0B 00 89 26 00 4E BF 46 AF 71 97 63 8A 90 00 22 [13:00:42]RAPDU: 4E BF 46 AF 71 97 63 8A 90 00 [13:00:42]wFMCommunicate OK [13:00:42]SAM_PROTO_SignData done [13:00:42]FM_MakeSignedData done [13:00:42]CreateOFDProtocolMessage [13:00:42]wFMCommunicate request_size=4 [13:00:42]MH_SAM_APDU [13:00:42]CAPDU: 80 11 00 00 [13:00:42]Write to MH i2c: E2 08 00 8A 26 80 11 00 00 00 00 00 00 2A [13:00:42]Write i2c OK [13:00:42]MH_I2C_Read... [13:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:42]Read from MH i2c: E2 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 17 00 [13:00:42]MH_I2C_Read... [13:00:42]Read from MH i2c: E2 17 00 8A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8A [13:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:00:42]wFMCommunicate OK [13:00:42]CreateOFDProtocolMessage done [13:00:42]OFDSenderStorePacket 162522 [13:00:42]StoreOFDPacket docnum=162522 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 71 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 AD [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30515, crc_r 5823D75D, crc_c: 5823D75D, size: 52480 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E318 010246F9) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903 init start (LINUX_LIGHT) [00:00:10]*** Serial: 3139303353513838 5400000000572571 (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 10+0=10 [00:00:10]*** BPK Status Register BPK_RDY = 0x2 [00:00:10]*** SEN State Register SEN_STATE = 0xff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33510623 [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 33 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 71 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 AE [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30515 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 0B 00 00 00 00 00 00 00 0A [00:00:11]Current date/time: 01.01.1970 00:00 [00:00:11]FM_Init [00:00:11]wFMConnect [00:00:11]MH_SAM_On [00:00:11]Write to MH i2c: E0 00 00 08 00 E7 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_init finished! [00:00:11]*** atr: [00:00:11]*** 0F 3B D5 18 FF 81 91 FE [00:00:11]*** 1F C3 80 73 C8 21 10 0A [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]*** 00 00 00 00 00 00 00 00 [00:00:11]Read from MH i2c: E0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E0 10 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [00:00:11]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [00:00:11]wFMCommunicate request_size=10 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [00:00:11]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 11 00 00 [00:00:11]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E4 [00:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:00:11]wFMCommunicate OK [00:00:11]Detected FM SN is 0000000000874899 [00:00:11]Stored FM SN is 0000000000874899 [00:00:11]wFMCommunicate request_size=9 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 16 00 00 04 53 C3 00 00 [00:00:11]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 53 C3 00 00 00 00 A8 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]FM PIN OK [00:00:11]wFMCommunicate request_size=8 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 14 04 00 03 02 00 01 [00:00:11]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=13 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [00:00:11]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 11 00 00 [00:00:11]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E8 [00:00:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:00:11]wFMCommunicate OK [00:00:11]DocumentArchiveInit [00:00:11]Start Httpd... [00:00:11]Httpd thread 3067747684 created [00:00:11]Write to MH i2c: 01 00 00 0F 00 0F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [00:00:11]MH Int Process started [00:00:11]int [00:00:11]Write to MH i2c: 01 00 00 10 00 10 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Allocated Socket 7 [00:00:11]Bind OK [00:00:11]Listen OK [00:00:11]httpd running on port 8080 [00:00:11]Waiting for new connection... [00:00:11]Read from MH i2c: 01 07 00 10 00 00 00 00 00 00 FF 0F 25 [00:00:11]state=0 [00:00:11]OFD Sender: No OFD packet to send [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:19]accept exits with 8 [00:01:19]New connection [00:01:19]New thread 3067460964 created [00:01:19]Waiting for new connection... [00:01:19] Sock 8.Parse request [00:01:19]Sock 8.Check first char [00:01:19]Sock 8.First char is OK [00:01:19]request: POST /json_proto HTTP/1.0 [00:01:19]Method: POST [00:01:19]URL: /json_proto [00:01:19]Method is POST - this is cgi request [00:01:19]url: /json_proto [00:01:19]query_string will be loaded in cgi processing [00:01:19]execute_cgi json_proto POST (null) [00:01:19]execute_cgi path=json_proto method=POST [00:01:19]POST find Content-Length [00:01:19]Host: 172.17.39.67:8080 [00:01:19]Content-Length: 215 [00:01:19]Content-Type: application/json [00:01:19] [00:01:19]POST finish read [00:01:19]Found Content-Length = 215 [00:01:19]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:01:19]execute_script... [00:01:19]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:01:19]POST & json_proto [00:01:19]process_json_proto [00:01:19]json parsed OK: [00:01:19]protocol is kg_v1.0 [00:01:19]action value=get_value [00:01:19]process_action get_value [00:01:19]cmd_get_value [00:01:19]process_action get_value done [00:01:19]requested_data is exist [00:01:19]produce_requested_data [00:01:19]requested_item kkm.sn is exist - process it [00:01:19]requested_item kkm.ver is exist - process it [00:01:19]requested_item fm.sn is exist - process it [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 11 00 00 [00:01:19]Write to MH i2c: E2 08 00 11 00 80 11 00 00 00 00 00 00 8B [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:19]Read from MH i2c: E2 17 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 17 00 11 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EB [00:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:01:19]wFMCommunicate OK [00:01:19]requested_item fd.num is exist - process it [00:01:19]SAM_PROTO_GetFieldsCounters [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 13 00 00 [00:01:19]Write to MH i2c: E2 08 00 12 00 80 13 00 00 00 00 00 00 8E [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 62 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 62 00 12 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [00:01:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:19]wFMCommunicate OK [00:01:19]SAM_PROTO_GetFieldsCounters done [00:01:19]requested_item shift.num is exist - process it [00:01:19]requested_item shift.opened is exist - process it [00:01:19]req_shift_opened [00:01:19]FM_GetShiftState [00:01:19]SAM_PROTO_GetShiftState [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 13 01 00 [00:01:19]Write to MH i2c: E2 08 00 13 00 80 13 01 00 00 00 00 00 90 [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:19]Read from MH i2c: E2 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 0E 00 [00:01:19]MH_I2C_Read... [00:01:19]Read from MH i2c: E2 0E 00 13 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8A [00:01:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [00:01:19]wFMCommunicate OK [00:01:19]SAM_PROTO_GetShiftState done [00:01:19]FM_GetShiftState done [00:01:19]req_shift_opened done [00:01:19]requested_item shift.open_date is exist - process it [00:01:19]req_shift_open_date [00:01:19]req_shift_open_date done [00:01:19]produce_requested_data done [00:01:19]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162523,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [00:01:19]process_action_free get_value [00:01:19]json_value_free [00:01:19]json_value_free done [00:01:19]process_json_proto returns [00:01:19]Send response to host [00:01:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162523,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [00:01:19]free response buf [00:01:19]execute_script done [00:01:19]execute_script returns [00:01:19]free content buf [00:01:19]Sock 8.Close socket [00:01:19]Sock 8.Thread stoped [00:01:19]accept exits with 9 [00:01:19]New connection [00:01:19]New thread 3067317604 created [00:01:19]Thread 3067460964 joined [00:01:19]Waiting for new connection... [00:01:19] Sock 9.Parse request [00:01:19]Sock 9.Check first char [00:01:19]Sock 9.First char is OK [00:01:19]request: POST /json_proto HTTP/1.0 [00:01:19]Method: POST [00:01:19]URL: /json_proto [00:01:19]Method is POST - this is cgi request [00:01:19]url: /json_proto [00:01:19]query_string will be loaded in cgi processing [00:01:19]execute_cgi json_proto POST (null) [00:01:19]execute_cgi path=json_proto method=POST [00:01:19]POST find Content-Length [00:01:19]Host: 172.17.39.67:8080 [00:01:19]Content-Length: 331 [00:01:19]Content-Type: application/json [00:01:19] [00:01:19]POST finish read [00:01:19]Found Content-Length = 331 [00:01:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:19]execute_script... [00:01:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:19]POST & json_proto [00:01:19]process_json_proto [00:01:19]json parsed OK: [00:01:19]protocol is kg_v1.0 [00:01:19]action value=get_value [00:01:19]process_action get_value [00:01:19]cmd_get_value [00:01:19]process_action get_value done [00:01:19]requested_data is exist [00:01:19]produce_requested_data [00:01:19]requested_item fm.sale.total is exist - process it [00:01:19]SAM_PROTO_GetFMData [00:01:19]wFMCommunicate request_size=4 [00:01:19]MH_SAM_APDU [00:01:19]CAPDU: 80 13 03 00 [00:01:19]Write to MH i2c: E2 08 00 14 00 80 13 03 00 00 00 00 00 93 [00:01:19]Write i2c OK [00:01:19]MH_I2C_Read... [00:01:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:20]Read from MH i2c: E2 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 14 00 00 C1 04 85 04 BD 04 6E 04 04 00 3F 77 02 00 69 04 A3 00 6F 04 04 00 2C 77 02 00 B1 04 05 00 A9 DC D3 52 03 70 04 05 00 F4 5F A7 B1 02 72 04 04 00 B5 7C 2C A1 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 0F F6 5F 5A 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 B4 D9 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 8B [00:01:20]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 3F 77 02 00 69 04 A3 00 6F 04 04 00 2C 77 02 00 B1 04 05 00 A9 DC D3 52 03 70 04 05 00 F4 5F A7 B1 02 72 04 04 00 B5 7C 2C A1 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 0F F6 5F 5A 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 B4 D9 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [00:01:20]wFMCommunicate OK [00:01:20]wFMCommunicate request_size=4 [00:01:20]MH_SAM_APDU [00:01:20]CAPDU: 80 17 00 00 [00:01:20]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [00:01:20]Write i2c OK [00:01:20]MH_I2C_Read... [00:01:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:20]Read from MH i2c: E2 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 15 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE [00:01:20]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:20]wFMCommunicate OK [00:01:20]wFMCommunicate request_size=4 [00:01:20]MH_SAM_APDU [00:01:20]CAPDU: 80 17 00 00 [00:01:20]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [00:01:20]Write i2c OK [00:01:20]MH_I2C_Read... [00:01:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:20]Read from MH i2c: E2 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 [00:01:20]MH_I2C_Read... [00:01:20]Read from MH i2c: E2 FD 00 16 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 36 [00:01:20]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:01:20]wFMCommunicate OK [00:01:20]wFMCommunicate request_size=4 [00:01:20]MH_SAM_APDU [00:01:20]CAPDU: 80 17 00 00 [00:01:20]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [00:01:20]Write i2c OK [00:01:20]MH_I2C_Read... [00:01:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:21]Read from MH i2c: E2 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 17 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 1C [00:01:21]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:01:21]wFMCommunicate OK [00:01:21]wFMCommunicate request_size=4 [00:01:21]MH_SAM_APDU [00:01:21]CAPDU: 80 17 00 00 [00:01:21]Write to MH i2c: E2 08 00 18 00 80 17 00 00 00 00 00 00 98 [00:01:21]Write i2c OK [00:01:21]MH_I2C_Read... [00:01:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:01:21]Read from MH i2c: E2 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 DE 00 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 DE 00 18 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 77 [00:01:21]RAPDU: F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:21]wFMCommunicate OK [00:01:21]SAM_PROTO_GetFMData done [00:01:21]requested_item fm.sale_refund.total is exist - process it [00:01:21]requested_item fm.buy.total is exist - process it [00:01:21]requested_item shift.sale.total is exist - process it [00:01:21]SAM_PROTO_GetShiftData [00:01:21]wFMCommunicate request_size=4 [00:01:21]MH_SAM_APDU [00:01:21]CAPDU: 80 13 02 00 [00:01:21]Write to MH i2c: E2 08 00 19 00 80 13 02 00 00 00 00 00 97 [00:01:21]Write i2c OK [00:01:21]MH_I2C_Read... [00:01:21]OFD Sender: No OFD packet to send [00:01:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:21]Read from MH i2c: E2 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 [00:01:21]MH_I2C_Read... [00:01:21]Read from MH i2c: E2 FD 00 19 00 00 B0 04 AA 04 AC 04 6E 04 04 00 BF 00 00 00 69 04 9D 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 62 D0 59 01 70 04 03 00 0C C5 DD 72 04 03 00 56 0B 7C 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 BE BB 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 9B 0F 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 00 90 00 49 [00:01:21]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 BF 00 00 00 69 04 9D 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 62 D0 59 01 70 04 03 00 0C C5 DD 72 04 03 00 56 0B 7C 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 BE BB 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 9B 0F 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 00 90 00 [00:01:21]wFMCommunicate OK [00:01:21]wFMCommunicate request_size=4 [00:01:21]MH_SAM_APDU [00:01:21]CAPDU: 80 17 00 00 [00:01:21]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [00:01:21]Write i2c OK [00:01:21]MH_I2C_Read... [00:01:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:22]Read from MH i2c: E2 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 1A 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 B4 [00:01:22]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [00:01:22]wFMCommunicate OK [00:01:22]wFMCommunicate request_size=4 [00:01:22]MH_SAM_APDU [00:01:22]CAPDU: 80 17 00 00 [00:01:22]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [00:01:22]Write i2c OK [00:01:22]MH_I2C_Read... [00:01:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:22]Read from MH i2c: E2 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 1B 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 58 [00:01:22]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:01:22]wFMCommunicate OK [00:01:22]wFMCommunicate request_size=4 [00:01:22]MH_SAM_APDU [00:01:22]CAPDU: 80 17 00 00 [00:01:22]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [00:01:22]Write i2c OK [00:01:22]MH_I2C_Read... [00:01:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:22]Read from MH i2c: E2 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 FD 00 1C 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 0F [00:01:22]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:01:22]wFMCommunicate OK [00:01:22]wFMCommunicate request_size=4 [00:01:22]MH_SAM_APDU [00:01:22]CAPDU: 80 17 00 00 [00:01:22]Write to MH i2c: E2 08 00 1D 00 80 17 00 00 00 00 00 00 9D [00:01:22]Write i2c OK [00:01:22]MH_I2C_Read... [00:01:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:01:22]Read from MH i2c: E2 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 CD 00 [00:01:22]MH_I2C_Read... [00:01:22]Read from MH i2c: E2 CD 00 1D 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 81 [00:01:22]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:23]wFMCommunicate OK [00:01:23]SAM_PROTO_GetShiftData done [00:01:23]requested_item shift.sale.total_cash is exist - process it [00:01:23]requested_item shift.sale_refund.total is exist - process it [00:01:23]requested_item shift.sale_refund.total_cash is exist - process it [00:01:23]requested_item shift.buy.total is exist - process it [00:01:23]requested_item shift.buy.total_cash is exist - process it [00:01:23]produce_requested_data done [00:01:23]produce_requested_data return {"fm.sale.total":142745181.85,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":226632.66,"shift.sale.total_cash":145339.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:01:23]process_action_free get_value [00:01:23]json_value_free [00:01:23]json_value_free done [00:01:23]process_json_proto returns [00:01:23]Send response to host [00:01:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142745181.85,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":226632.66,"shift.sale.total_cash":145339.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:01:23]free response buf [00:01:23]execute_script done [00:01:23]execute_script returns [00:01:23]free content buf [00:01:23]Sock 9.Close socket [00:01:23]Sock 9.Thread stoped [00:01:23]accept exits with 8 [00:01:23]New connection [00:01:23]New thread 3067460964 created [00:01:23]Thread 3067317604 joined [00:01:23]Waiting for new connection... [00:01:23] Sock 8.Parse request [00:01:23]Sock 8.Check first char [00:01:23]Sock 8.First char is OK [00:01:23]request: POST /json_proto HTTP/1.0 [00:01:23]Method: POST [00:01:23]URL: /json_proto [00:01:23]Method is POST - this is cgi request [00:01:23]url: /json_proto [00:01:23]query_string will be loaded in cgi processing [00:01:23]execute_cgi json_proto POST (null) [00:01:23]execute_cgi path=json_proto method=POST [00:01:23]POST find Content-Length [00:01:23]Host: 172.17.39.67:8080 [00:01:23]Content-Length: 144 [00:01:23]Content-Type: application/json [00:01:23] [00:01:23]POST finish read [00:01:23]Found Content-Length = 144 [00:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [00:01:23]execute_script... [00:01:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [00:01:23]POST & json_proto [00:01:23]process_json_proto [00:01:23]json parsed OK: [00:01:23]protocol is kg_v1.0 [00:01:23]action value=print_doc [00:01:23]process_action print_doc [00:01:23]process_action_free print_doc [00:01:23]json_value_free [00:01:23]json_value_free done [00:01:23]process_json_proto returns [00:01:23]Send response to host [00:01:23]{"protocol":"kg_v1.0","response":{"error":1000,"error_desc":"Open file error(LoadLastDocumentFromArchive)"}} [00:01:23]free response buf [00:01:23]execute_script done [00:01:23]execute_script returns [00:01:23]free content buf [00:01:23]Sock 8.Close socket [00:01:23]Sock 8.Thread stoped [00:01:26]OFD Sender: No OFD packet to send [00:01:27]accept exits with 9 [00:01:27]New connection [00:01:27]New thread 3067317604 created [00:01:27]Thread 3067460964 joined [00:01:27]Waiting for new connection... [00:01:27] Sock 9.Parse request [00:01:27]Sock 9.Check first char [00:01:27]Sock 9.First char is OK [00:01:27]request: POST /json_proto HTTP/1.0 [00:01:27]Method: POST [00:01:27]URL: /json_proto [00:01:27]Method is POST - this is cgi request [00:01:27]url: /json_proto [00:01:27]query_string will be loaded in cgi processing [00:01:27]execute_cgi json_proto POST (null) [00:01:27]execute_cgi path=json_proto method=POST [00:01:27]POST find Content-Length [00:01:27]Host: 172.17.39.67:8080 [00:01:27]Content-Length: 215 [00:01:27]Content-Type: application/json [00:01:27] [00:01:27]POST finish read [00:01:27]Found Content-Length = 215 [00:01:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:27]execute_script... [00:01:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:27]POST & json_proto [00:01:27]process_json_proto [00:01:27]json parsed OK: [00:01:27]protocol is kg_v1.0 [00:01:27]action value=get_value [00:01:27]process_action get_value [00:01:27]cmd_get_value [00:01:27]process_action get_value done [00:01:27]requested_data is exist [00:01:27]produce_requested_data [00:01:27]requested_item kkm.sn is exist - process it [00:01:27]requested_item kkm.ver is exist - process it [00:01:27]requested_item fm.sn is exist - process it [00:01:27]wFMCommunicate request_size=4 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 11 00 00 [00:01:27]Write to MH i2c: E2 08 00 1E 00 80 11 00 00 00 00 00 00 98 [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 17 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 17 00 1E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F8 [00:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:01:27]wFMCommunicate OK [00:01:27]requested_item fd.num is exist - process it [00:01:27]SAM_PROTO_GetFieldsCounters [00:01:27]wFMCommunicate request_size=4 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 13 00 00 [00:01:27]Write to MH i2c: E2 08 00 1F 00 80 13 00 00 00 00 00 00 9B [00:01:27]Write i2c OK [00:01:27]MH_I2C_Read... [00:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:27]Read from MH i2c: E2 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 62 00 [00:01:27]MH_I2C_Read... [00:01:27]Read from MH i2c: E2 62 00 1F 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [00:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:27]wFMCommunicate OK [00:01:27]SAM_PROTO_GetFieldsCounters done [00:01:27]requested_item shift.num is exist - process it [00:01:27]requested_item shift.opened is exist - process it [00:01:27]req_shift_opened [00:01:27]FM_GetShiftState [00:01:27]SAM_PROTO_GetShiftState [00:01:27]wFMCommunicate request_size=4 [00:01:27]MH_SAM_APDU [00:01:27]CAPDU: 80 13 01 00 [00:01:27]Write to MH i2c: E2 08 00 20 00 80 13 01 00 00 00 00 00 9D [00:01:28]Write i2c OK [00:01:28]MH_I2C_Read... [00:01:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:28]Read from MH i2c: E2 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 0E 00 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 0E 00 20 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 97 [00:01:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [00:01:28]wFMCommunicate OK [00:01:28]SAM_PROTO_GetShiftState done [00:01:28]FM_GetShiftState done [00:01:28]req_shift_opened done [00:01:28]requested_item shift.open_date is exist - process it [00:01:28]req_shift_open_date [00:01:28]req_shift_open_date done [00:01:28]produce_requested_data done [00:01:28]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162523,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [00:01:28]process_action_free get_value [00:01:28]json_value_free [00:01:28]json_value_free done [00:01:28]process_json_proto returns [00:01:28]Send response to host [00:01:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162523,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [00:01:28]free response buf [00:01:28]execute_script done [00:01:28]execute_script returns [00:01:28]free content buf [00:01:28]Sock 9.Close socket [00:01:28]Sock 9.Thread stoped [00:01:28]accept exits with 8 [00:01:28]New connection [00:01:28]New thread 3067460964 created [00:01:28]Thread 3067317604 joined [00:01:28]Waiting for new connection... [00:01:28] Sock 8.Parse request [00:01:28]Sock 8.Check first char [00:01:28]Sock 8.First char is OK [00:01:28]request: POST /json_proto HTTP/1.0 [00:01:28]Method: POST [00:01:28]URL: /json_proto [00:01:28]Method is POST - this is cgi request [00:01:28]url: /json_proto [00:01:28]query_string will be loaded in cgi processing [00:01:28]execute_cgi json_proto POST (null) [00:01:28]execute_cgi path=json_proto method=POST [00:01:28]POST find Content-Length [00:01:28]Host: 172.17.39.67:8080 [00:01:28]Content-Length: 331 [00:01:28]Content-Type: application/json [00:01:28] [00:01:28]POST finish read [00:01:28]Found Content-Length = 331 [00:01:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:28]execute_script... [00:01:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:01:28]POST & json_proto [00:01:28]process_json_proto [00:01:28]json parsed OK: [00:01:28]protocol is kg_v1.0 [00:01:28]action value=get_value [00:01:28]process_action get_value [00:01:28]cmd_get_value [00:01:28]process_action get_value done [00:01:28]requested_data is exist [00:01:28]produce_requested_data [00:01:28]requested_item fm.sale.total is exist - process it [00:01:28]SAM_PROTO_GetFMData [00:01:28]wFMCommunicate request_size=4 [00:01:28]MH_SAM_APDU [00:01:28]CAPDU: 80 13 03 00 [00:01:28]Write to MH i2c: E2 08 00 21 00 80 13 03 00 00 00 00 00 A0 [00:01:28]Write i2c OK [00:01:28]MH_I2C_Read... [00:01:28]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:01:28]Read from MH i2c: E2 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 FD 00 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 FD 00 21 00 00 C1 04 85 04 BD 04 6E 04 04 00 3F 77 02 00 69 04 A3 00 6F 04 04 00 2C 77 02 00 B1 04 05 00 A9 DC D3 52 03 70 04 05 00 F4 5F A7 B1 02 72 04 04 00 B5 7C 2C A1 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 0F F6 5F 5A 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 B4 D9 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 98 [00:01:28]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 3F 77 02 00 69 04 A3 00 6F 04 04 00 2C 77 02 00 B1 04 05 00 A9 DC D3 52 03 70 04 05 00 F4 5F A7 B1 02 72 04 04 00 B5 7C 2C A1 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 0F F6 5F 5A 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 B4 D9 87 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [00:01:28]wFMCommunicate OK [00:01:28]wFMCommunicate request_size=4 [00:01:28]MH_SAM_APDU [00:01:28]CAPDU: 80 17 00 00 [00:01:28]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [00:01:28]Write i2c OK [00:01:28]MH_I2C_Read... [00:01:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:28]Read from MH i2c: E2 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 FD 00 [00:01:28]MH_I2C_Read... [00:01:28]Read from MH i2c: E2 FD 00 22 00 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:28]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:01:28]wFMCommunicate OK [00:01:28]wFMCommunicate request_size=4 [00:01:28]MH_SAM_APDU [00:01:28]CAPDU: 80 17 00 00 [00:01:28]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [00:01:28]Write i2c OK [00:01:28]MH_I2C_Read... [00:01:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:29]Read from MH i2c: E2 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 FD 00 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 FD 00 23 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 43 [00:01:29]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [00:01:29]wFMCommunicate OK [00:01:29]wFMCommunicate request_size=4 [00:01:29]MH_SAM_APDU [00:01:29]CAPDU: 80 17 00 00 [00:01:29]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [00:01:29]Write i2c OK [00:01:29]MH_I2C_Read... [00:01:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:29]Read from MH i2c: E2 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 FD 00 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 FD 00 24 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 29 [00:01:29]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [00:01:29]wFMCommunicate OK [00:01:29]wFMCommunicate request_size=4 [00:01:29]MH_SAM_APDU [00:01:29]CAPDU: 80 17 00 00 [00:01:29]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [00:01:29]Write i2c OK [00:01:29]MH_I2C_Read... [00:01:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:01:29]Read from MH i2c: E2 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 DE 00 [00:01:29]MH_I2C_Read... [00:01:29]Read from MH i2c: E2 DE 00 25 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 84 [00:01:29]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:01:29]wFMCommunicate OK [00:01:29]SAM_PROTO_GetFMData done [00:01:29]requested_item fm.sale_refund.total is exist - process it [00:01:29]requested_item fm.buy.total is exist - process it [00:01:29]requested_item shift.sale.total is exist - process it [00:01:29]SAM_PROTO_GetShiftData [00:01:29]wFMCommunicate request_size=4 [00:01:29]MH_SAM_APDU [00:01:29]CAPDU: 80 13 02 00 [00:01:29]Write to MH i2c: E2 08 00 26 00 80 13 02 00 00 00 00 00 A4 [00:01:29]Write i2c OK [00:01:29]MH_I2C_Read... [00:01:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:01:30]Read from MH i2c: E2 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 FD 00 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 FD 00 26 00 00 B0 04 AA 04 AC 04 6E 04 04 00 BF 00 00 00 69 04 9D 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 62 D0 59 01 70 04 03 00 0C C5 DD 72 04 03 00 56 0B 7C 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 BE BB 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 9B 0F 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 00 90 00 56 [00:01:30]RAPDU: B0 04 AA 04 AC 04 6E 04 04 00 BF 00 00 00 69 04 9D 00 6F 04 04 00 BF 00 00 00 B1 04 04 00 62 D0 59 01 70 04 03 00 0C C5 DD 72 04 03 00 56 0B 7C 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 BE BB 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 9B 0F 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 00 90 00 [00:01:30]wFMCommunicate OK [00:01:30]wFMCommunicate request_size=4 [00:01:30]MH_SAM_APDU [00:01:30]CAPDU: 80 17 00 00 [00:01:30]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [00:01:30]Write i2c OK [00:01:30]MH_I2C_Read... [00:01:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:30]Read from MH i2c: E2 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 FD 00 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 FD 00 27 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 C1 [00:01:30]RAPDU: 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 90 00 [00:01:30]wFMCommunicate OK [00:01:30]wFMCommunicate request_size=4 [00:01:30]MH_SAM_APDU [00:01:30]CAPDU: 80 17 00 00 [00:01:30]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [00:01:30]Write i2c OK [00:01:30]MH_I2C_Read... [00:01:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:30]Read from MH i2c: E2 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 FD 00 [00:01:30]MH_I2C_Read... [00:01:30]Read from MH i2c: E2 FD 00 28 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 65 [00:01:30]RAPDU: 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 90 00 [00:01:30]wFMCommunicate OK [00:01:30]wFMCommunicate request_size=4 [00:01:30]MH_SAM_APDU [00:01:30]CAPDU: 80 17 00 00 [00:01:30]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [00:01:30]Write i2c OK [00:01:30]MH_I2C_Read... [00:01:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:01:31]Read from MH i2c: E2 [00:01:31]MH_I2C_Read... [00:01:31]Read from MH i2c: E2 FD 00 [00:01:31]MH_I2C_Read... [00:01:31]Read from MH i2c: E2 FD 00 29 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 1C [00:01:31]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:01:31]wFMCommunicate OK [00:01:31]wFMCommunicate request_size=4 [00:01:31]MH_SAM_APDU [00:01:31]CAPDU: 80 17 00 00 [00:01:31]Write to MH i2c: E2 08 00 2A 00 80 17 00 00 00 00 00 00 AA [00:01:31]Write i2c OK [00:01:31]MH_I2C_Read... [00:01:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 202! [00:01:31]Read from MH i2c: E2 [00:01:31]MH_I2C_Read... [00:01:31]Read from MH i2c: E2 CD 00 [00:01:31]MH_I2C_Read... [00:01:31]Read from MH i2c: E2 CD 00 2A 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 8E [00:01:31]RAPDU: 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:01:31]wFMCommunicate OK [00:01:31]SAM_PROTO_GetShiftData done [00:01:31]requested_item shift.sale.total_cash is exist - process it [00:01:31]requested_item shift.sale_refund.total is exist - process it [00:01:31]requested_item shift.sale_refund.total_cash is exist - process it [00:01:31]requested_item shift.buy.total is exist - process it [00:01:31]requested_item shift.buy.total_cash is exist - process it [00:01:31]produce_requested_data done [00:01:31]produce_requested_data return {"fm.sale.total":142745181.85,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":226632.66,"shift.sale.total_cash":145339.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:01:31]process_action_free get_value [00:01:31]json_value_free [00:01:31]json_value_free done [00:01:31]process_json_proto returns [00:01:31]Send response to host [00:01:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142745181.85,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":226632.66,"shift.sale.total_cash":145339.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:01:31]free response buf [00:01:31]execute_script done [00:01:31]execute_script returns [00:01:31]free content buf [00:01:31]Sock 8.Close socket [00:01:31]Sock 8.Thread stoped [00:01:31]OFD Sender: No OFD packet to send [00:01:31]accept exits with 9 [00:01:31]New connection [00:01:31]New thread 3067317604 created [00:01:31]Thread 3067460964 joined [00:01:31]Waiting for new connection... [00:01:31] Sock 9.Parse request [00:01:31]Sock 9.Check first char [00:01:31]Sock 9.First char is OK [00:01:31]request: POST /json_proto HTTP/1.0 [00:01:31]Method: POST [00:01:31]URL: /json_proto [00:01:31]Method is POST - this is cgi request [00:01:31]url: /json_proto [00:01:31]query_string will be loaded in cgi processing [00:01:31]execute_cgi json_proto POST (null) [00:01:31]execute_cgi path=json_proto method=POST [00:01:31]POST find Content-Length [00:01:31]Host: 172.17.39.67:8080 [00:01:31]Content-Length: 1213 [00:01:31]Content-Type: application/json [00:01:31] [00:01:31]POST finish read [00:01:31]Found Content-Length = 1213 [00:01:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319066\u000A13.07.2024 13:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 3315.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32789\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:31]execute_script... [00:01:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319066\u000A13.07.2024 13:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 3315.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32789\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:01:31]POST & json_proto [00:01:31]process_json_proto [00:01:31]json parsed OK: [00:01:31]protocol is kg_v1.0 [00:01:31]action value=print_text [00:01:31]process_action print_text [00:01:31]cmd_print_text [00:01:31]ExternCall_PrintAddStr [00:01:31]wPrintStart [00:01:31]Write to MH i2c: 01 00 00 2B 00 2B [00:01:31]Write i2c OK [00:01:31]MH_I2C_Read... [00:01:31]Read from MH i2c: 01 [00:01:31]MH_I2C_Read... [00:01:31]Read from MH i2c: 01 07 00 [00:01:31]MH_I2C_Read... [00:01:31]Read from MH i2c: 01 07 00 2B 00 00 00 00 00 00 FF 0F 40 [00:01:31]RasterBufferAndPrint [00:01:31]line *****ТОВАРНЫЙ ЧЕК***** [00:01:31]line АЗС 140 [00:01:31]line Партнер нефть [00:01:31]line 02508201610067 [00:01:31]line Кассир : Шамбеталиев А. [00:01:31]line Счет N : (1)1319066 [00:01:31]line 13.07.2024 13:00 [00:01:31]line ПРОДАЖА [00:01:31]line ТРК (МРК, ГНК): 63 [00:01:31]line Вид ГСМ : 2710124130 [00:01:31]line Аи-92-К-5 [00:01:31]line 50.000 x 66.30 [00:01:31]line ИТОГ: 3315.00 [00:01:31]line Тип оплаты: Талоны: Топливная Карта [00:01:31]line 32789 [00:01:31]line ______________________ [00:01:31]line (подпись) [00:01:31]written 0, free lines is 4095 [00:01:32]Write to MH i2c: 01 00 00 40 00 40 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: 01 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: 01 07 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: 01 07 00 40 00 00 00 00 00 00 FB 0D 4F [00:01:32]RasterBufferAndPrint [00:01:32]line [00:01:32]line [00:01:32]line [00:01:32]line [00:01:32]line [00:01:32]written 0, free lines is 3591 [00:01:32]MH_Cut [00:01:32]Write to MH i2c: D1 01 00 47 00 01 19 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: D1 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: D1 01 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: D1 01 00 47 00 00 18 [00:01:32]Write to MH i2c: 01 00 00 48 00 48 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]*** Cut start [00:01:32]*** Purtial cut [00:01:32]*** Stage 1: CUTSNS_PIN = 1 [00:01:32]Read from MH i2c: 01 [00:01:32]MH_I2C_Read... [00:01:32]*** Stop cut motor [00:01:32]*** Cut end [00:01:32]Read from MH i2c: 01 07 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 FF 0F 5D [00:01:32]process_action print_text done [00:01:32]requested_data is exist [00:01:32]produce_requested_data [00:01:32]requested_item fm.sn is exist - process it [00:01:32]wFMCommunicate request_size=4 [00:01:32]MH_SAM_APDU [00:01:32]CAPDU: 80 11 00 00 [00:01:32]Write to MH i2c: E2 08 00 49 00 80 11 00 00 00 00 00 00 C3 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:01:32]Read from MH i2c: E2 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 17 00 [00:01:32]MH_I2C_Read... [00:01:32]Read from MH i2c: E2 17 00 49 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 23 [00:01:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:01:32]wFMCommunicate OK [00:01:32]requested_item fd.num is exist - process it [00:01:32]SAM_PROTO_GetFieldsCounters [00:01:32]wFMCommunicate request_size=4 [00:01:32]MH_SAM_APDU [00:01:32]CAPDU: 80 13 00 00 [00:01:32]Write to MH i2c: E2 08 00 4A 00 80 13 00 00 00 00 00 00 C6 [00:01:32]Write i2c OK [00:01:32]MH_I2C_Read... [00:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:01:33]Read from MH i2c: E2 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: E2 62 00 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: E2 62 00 4A 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [00:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:01:33]wFMCommunicate OK [00:01:33]SAM_PROTO_GetFieldsCounters done [00:01:33]requested_item shift.num is exist - process it [00:01:33]requested_item shift.opened is exist - process it [00:01:33]req_shift_opened [00:01:33]FM_GetShiftState [00:01:33]SAM_PROTO_GetShiftState [00:01:33]wFMCommunicate request_size=4 [00:01:33]MH_SAM_APDU [00:01:33]CAPDU: 80 13 01 00 [00:01:33]Write to MH i2c: E2 08 00 4B 00 80 13 01 00 00 00 00 00 C8 [00:01:33]Write i2c OK [00:01:33]MH_I2C_Read... [00:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:01:33]Read from MH i2c: E2 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: E2 0E 00 [00:01:33]MH_I2C_Read... [00:01:33]Read from MH i2c: E2 0E 00 4B 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C2 [00:01:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [00:01:33]wFMCommunicate OK [00:01:33]SAM_PROTO_GetShiftState done [00:01:33]FM_GetShiftState done [00:01:33]req_shift_opened done [00:01:33]requested_item shift.open_date is exist - process it [00:01:33]req_shift_open_date [00:01:33]req_shift_open_date done [00:01:33]produce_requested_data done [00:01:33]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162523,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [00:01:33]process_action_free print_text [00:01:33]json_value_free [00:01:33]json_value_free done [00:01:33]process_json_proto returns [00:01:33]Send response to host [00:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162523,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [00:01:33]free response buf [00:01:33]execute_script done [00:01:33]execute_script returns [00:01:33]free content buf [00:01:33]Sock 9.Close socket [00:01:33]Sock 9.Thread stoped [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:37]accept exits with 8 [00:02:37]New connection [00:02:37]New thread 3067460964 created [00:02:37]Thread 3067317604 joined [00:02:37]Waiting for new connection... [00:02:37] Sock 8.Parse request [00:02:37]Sock 8.Check first char [00:02:37]Sock 8.First char is OK [00:02:37]request: POST /json_proto HTTP/1.0 [00:02:37]Method: POST [00:02:37]URL: /json_proto [00:02:37]Method is POST - this is cgi request [00:02:37]url: /json_proto [00:02:37]query_string will be loaded in cgi processing [00:02:37]execute_cgi json_proto POST (null) [00:02:37]execute_cgi path=json_proto method=POST [00:02:37]POST find Content-Length [00:02:37]Host: 172.17.39.67:8080 [00:02:37]Content-Length: 1213 [00:02:37]Content-Type: application/json [00:02:37] [00:02:37]POST finish read [00:02:37]Found Content-Length = 1213 [00:02:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319070\u000A13.07.2024 13:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32789\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:37]execute_script... [00:02:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319070\u000A13.07.2024 13:01\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32789\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:37]POST & json_proto [00:02:37]process_json_proto [00:02:37]json parsed OK: [00:02:37]protocol is kg_v1.0 [00:02:37]action value=print_text [00:02:37]process_action print_text [00:02:37]cmd_print_text [00:02:37]ExternCall_PrintAddStr [00:02:37]wPrintStart [00:02:37]Write to MH i2c: 01 00 00 4C 00 4C [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 07 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 07 00 4C 00 00 00 00 00 00 FF 0F 61 [00:02:37]RasterBufferAndPrint [00:02:37]line *****ТОВАРНЫЙ ЧЕК***** [00:02:37]line АЗС 140 [00:02:37]line Партнер нефть [00:02:37]line 02508201610067 [00:02:37]line Кассир : Шамбеталиев А. [00:02:37]line Счет N : (1)1319070 [00:02:37]line 13.07.2024 13:01 [00:02:37]line ПРОДАЖА [00:02:37]line ТРК (МРК, ГНК): 63 [00:02:37]line Вид ГСМ : 2710124130 [00:02:37]line Аи-92-К-5 [00:02:37]line 20.000 x 66.30 [00:02:37]line ИТОГ: 1326.00 [00:02:37]line Тип оплаты: Талоны: Топливная Карта [00:02:37]line 32789 [00:02:37]line ______________________ [00:02:37]line (подпись) [00:02:37]written 0, free lines is 4095 [00:02:37]Write to MH i2c: 01 00 00 61 00 61 [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 07 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 F5 0D 6A [00:02:37]RasterBufferAndPrint [00:02:37]line [00:02:37]line [00:02:37]line [00:02:37]line [00:02:37]line [00:02:37]written 0, free lines is 3575 [00:02:37]MH_Cut [00:02:37]Write to MH i2c: D1 01 00 68 00 01 3A [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: D1 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: D1 01 00 [00:02:37]MH_I2C_Read... [00:02:37]Read from MH i2c: D1 01 00 68 00 00 39 [00:02:37]Write to MH i2c: 01 00 00 69 00 69 [00:02:37]Write i2c OK [00:02:37]MH_I2C_Read... [00:02:38]*** Cut start [00:02:38]*** Purtial cut [00:02:38]*** CUTSNS_PIN = 0 [00:02:38]*** Stage 1: CUTSNS_PIN = 1 [00:02:40]Read from MH i2c: 01 [00:02:40]MH_I2C_Read... [00:02:40]*** Stop cut motor [00:02:40]*** Cut end [00:02:40]Read from MH i2c: 01 07 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: 01 07 00 69 00 00 00 00 00 00 FF 0F 7E [00:02:40]process_action print_text done [00:02:40]requested_data is exist [00:02:40]produce_requested_data [00:02:40]requested_item fm.sn is exist - process it [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 11 00 00 [00:02:40]Write to MH i2c: E2 08 00 6A 00 80 11 00 00 00 00 00 00 E4 [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 17 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 17 00 6A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 44 [00:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:02:40]wFMCommunicate OK [00:02:40]requested_item fd.num is exist - process it [00:02:40]SAM_PROTO_GetFieldsCounters [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 13 00 00 [00:02:40]Write to MH i2c: E2 08 00 6B 00 80 13 00 00 00 00 00 00 E7 [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 62 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 62 00 6B 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [00:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:40]wFMCommunicate OK [00:02:40]SAM_PROTO_GetFieldsCounters done [00:02:40]requested_item shift.num is exist - process it [00:02:40]requested_item shift.opened is exist - process it [00:02:40]req_shift_opened [00:02:40]FM_GetShiftState [00:02:40]SAM_PROTO_GetShiftState [00:02:40]wFMCommunicate request_size=4 [00:02:40]MH_SAM_APDU [00:02:40]CAPDU: 80 13 01 00 [00:02:40]Write to MH i2c: E2 08 00 6C 00 80 13 01 00 00 00 00 00 E9 [00:02:40]Write i2c OK [00:02:40]MH_I2C_Read... [00:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:40]Read from MH i2c: E2 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 0E 00 [00:02:40]MH_I2C_Read... [00:02:40]Read from MH i2c: E2 0E 00 6C 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E3 [00:02:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [00:02:40]wFMCommunicate OK [00:02:40]SAM_PROTO_GetShiftState done [00:02:40]FM_GetShiftState done [00:02:40]req_shift_opened done [00:02:40]requested_item shift.open_date is exist - process it [00:02:40]req_shift_open_date [00:02:40]req_shift_open_date done [00:02:40]produce_requested_data done [00:02:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162523,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [00:02:40]process_action_free print_text [00:02:40]json_value_free [00:02:40]json_value_free done [00:02:40]process_json_proto returns [00:02:40]Send response to host [00:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162523,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [00:02:40]free response buf [00:02:40]execute_script done [00:02:40]execute_script returns [00:02:40]free content buf [00:02:40]Sock 8.Close socket [00:02:40]Sock 8.Thread stoped [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:38]accept exits with 10 [00:04:38]New connection [00:04:38]New thread 3067317604 created [00:04:38]Thread 3067460964 joined [00:04:38]Waiting for new connection... [00:04:38] Sock 10.Parse request [00:04:38]Sock 10.Check first char [00:04:38]Sock 10.First char is OK [00:04:38]request: POST /json_proto HTTP/1.0 [00:04:38]Method: POST [00:04:38]URL: /json_proto [00:04:38]Method is POST - this is cgi request [00:04:38]url: /json_proto [00:04:38]query_string will be loaded in cgi processing [00:04:38]execute_cgi json_proto POST (null) [00:04:38]execute_cgi path=json_proto method=POST [00:04:38]POST find Content-Length [00:04:38]Host: 172.17.39.67:8080 [00:04:38]Content-Length: 807 [00:04:38]Content-Type: application/json [00:04:38] [00:04:38]POST finish read [00:04:38]Found Content-Length = 807 [00:04:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:38]execute_script... [00:04: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)1319071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:38]POST & json_proto [00:04:38]process_json_proto [00:04:38]json parsed OK: [00:04:38]protocol is kg_v1.0 [00:04:38]action value=close_receipt [00:04:38]process_action close_receipt [00:04:38]cmd_close_receipt [00:04:38]MH_GetDate [00:04:38]Write to MH i2c: F0 00 00 6D 00 5C [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: F0 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: F0 09 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: F0 09 00 6D 00 00 16 01 00 00 00 00 00 00 7C [00:04:38]GetLastDocTimeStamp 97 [00:04:38]current date 278 [00:04:38]FM_GetShiftState [00:04:38]SAM_PROTO_GetShiftState [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 13 01 00 [00:04:38]Write to MH i2c: E2 08 00 6E 00 80 13 01 00 00 00 00 00 EB [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 0E 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 0E 00 6E 00 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E5 [00:04:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [00:04:38]wFMCommunicate OK [00:04:38]SAM_PROTO_GetShiftState done [00:04:38]FM_GetShiftState done [00:04:38]curdatesum+1) || (price+1 о реализуемом товаре ИТОГО: 999.70 НСП 1% : 8.85 НДС 12% : 106.16 Наличными: 0.00 Безнал.: 999.70 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 192 13.07.2024 13:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162524 ФПД: 130952597417710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130951&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162524&fm=130952597417710&tin=02508201610067®Number=0000000000090858&sum=99970 [13:09:52]StoreToDocumentArchive [13:09:52]shift 462 fd 162524 [13:09:52]save to /storage/0462/doc_00162524 [13:09:52]save last doc name /storage/0462/doc_00162524 to /storage/kkm_last_doc_name [13:09:52]save OK [13:09:52]Clear old archive folders... [13:09:52]Remove dir /storage/0266 [13:09:52]opendir ok [13:09:52]file . [13:09:52]file .. [13:09:52]file doc_1720876177 [13:09:52]remove file /storage/0266/doc_1720876177 [13:09:52]remove dir /storage/0266 [13:09:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:09:52]tlvbuf is 0067EFC0 [13:09:52]SAM_PROTO_ClearQueue [13:09:52]wFMCommunicate request_size=4 [13:09:52]MH_SAM_APDU [13:09:52]CAPDU: 80 09 00 00 [13:09:52]Write to MH i2c: E2 08 00 CB 00 80 09 00 00 00 00 00 00 3D [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:52]Read from MH i2c: E2 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 03 00 [13:09:52]MH_I2C_Read... [13:09:52]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [13:09:52]RAPDU: 90 00 [13:09:52]wFMCommunicate OK [13:09:52]SAM_PROTO_ClearQueue done [13:09:52]KKMCreateOFDPacket [13:09:52]OFDProtocolAddRootSTLVToBuf [13:09:52]FM_MakeSignedData [13:09:52]FM_MakeSignedData [13:09:52]SAM_PROTO_SignData [13:09:52]wFMCommunicate request_size=4 [13:09:52]MH_SAM_APDU [13:09:52]CAPDU: 80 0D 01 02 [13:09:52]Write to MH i2c: E2 08 00 CC 00 80 0D 01 02 00 00 00 00 45 [13:09:52]Write i2c OK [13:09:52]MH_I2C_Read... [13:09:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 03 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [13:09:53]RAPDU: 90 00 [13:09:53]wFMCommunicate OK [13:09:53]wFMCommunicate request_size=255 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F 7C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7A 02 00 35 04 06 00 [13:09:53]Write to MH i2c: E2 02 01 CD 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F 7C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7A 02 00 35 04 06 00 00 00 41 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 03 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [13:09:53]RAPDU: 90 00 [13:09:53]wFMCommunicate OK [13:09:53]wFMCommunicate request_size=11 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 0D 02 02 06 77 19 C7 0D 2E EE [13:09:53]Write to MH i2c: E2 0E 00 CE 00 80 0D 02 02 06 00 77 19 C7 0D 2E EE 00 00 D4 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 03 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [13:09:53]RAPDU: 90 00 [13:09:53]wFMCommunicate OK [13:09:53]wFMCommunicate request_size=4 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 0D 03 02 [13:09:53]Write to MH i2c: E2 08 00 CF 00 80 0D 03 02 00 00 00 00 4A [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 0B 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 0B 00 CF 00 00 CC 33 FF B1 96 54 EC 33 90 00 03 [13:09:53]RAPDU: CC 33 FF B1 96 54 EC 33 90 00 [13:09:53]wFMCommunicate OK [13:09:53]SAM_PROTO_SignData done [13:09:53]FM_MakeSignedData done [13:09:53]CreateOFDProtocolMessage [13:09:53]wFMCommunicate request_size=4 [13:09:53]MH_SAM_APDU [13:09:53]CAPDU: 80 11 00 00 [13:09:53]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:53]Read from MH i2c: E2 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 17 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AA [13:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:09:53]wFMCommunicate OK [13:09:53]CreateOFDProtocolMessage done [13:09:53]OFDSenderStorePacket 162524 [13:09:53]StoreOFDPacket docnum=162524 [13:09:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 12 08 01 37 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F 7C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7A 02 00 35 04 06 00 77 19 C7 0D 2E EE CC 33 FF B1 96 54 EC 33 [13:09:53]CheckFolder [13:09:53]dirname=/storage/ofd_packets [13:09:53]CheckFolder done [13:09:53]ProducePacketName [13:09:53]name=ofd_packets/00162524 [13:09:53]NVStorageSaveData ofd_packets/00162524 [13:09:53]File name is /storage/ofd_packets/00162524 [13:09:53]Write 302 bytes [13:09:53]NVStorageSaveData done [13:09:53]OFDSenderStorePacket done [13:09:53]KKMCreateOFDPacket done [13:09:53]NVStorageSaveData kkm_last_timestamp [13:09:53]File name is /storage/kkm_last_timestamp [13:09:53]Write 4 bytes [13:09:53]NVStorageSaveData done [13:09:53]ExternCall_PrintAddStr [13:09:53]wPrintStart [13:09:53]Write to MH i2c: 01 00 00 D1 00 D1 [13:09:53]Write i2c OK [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: 01 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: 01 07 00 [13:09:53]MH_I2C_Read... [13:09:53]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [13:09:53]RasterBufferAndPrint [13:09:53]line Счет N : (1)1319071 [13:09:53]line ИНН: 02508201610067 [13:09:53]line Контрольно-Кассовый Чек [13:09:53]line ПРОДАЖА [13:09:53]line ТРК (МРК, ГНК) : 21 [13:09:53]line Товар: 2710194210 [13:09:53]line ДТ(л)-К-5 [13:09:53]line 13.770 * 72.60 [13:09:53]line = 999.70 [13:09:53]line НДС 12% НСП 1% [13:09:53]line > о реализуемом товаре [13:09:53]line ИТОГО: 999.70 [13:09:53]line НСП 1% : 8.85 [13:09:53]line НДС 12% : 106.16 [13:09:53]line Наличными: 0.00 [13:09:53]line Безнал.: 999.70 [13:09:53]line Место: АЗС № 140 "Партнер Нефть" [13:09:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:09:53]line СНО: Общий режим [13:09:53]line Чек 192 13.07.2024 13:09 [13:09:53]line Смена: 462 ФФД: 1.0 [13:09:53]line ЗНМ: 0300000129 [13:09:53]line РНМ: 0000000000090858 [13:09:53]line Версия ККМ: 001 [13:09:53]line Платежная система: O! деньги [13:09:53]line ФМ: 0000000000874899 [13:09:53]line ФД: 162524 [13:09:53]line ФПД: 130952597417710 [13:09:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T130951&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162524&fm=130952597417710&tin=02508201610067®Number=0000000000090858&sum=99970 [13:09:53]OFD Sender: Processing packet 162524 [packets to send 106, broken 105] [13:09:53]ProducePacketName [13:09:53]name=ofd_packets/00162524 [13:09:53]OFD Sender: To server: pG, [13:09:53]CommunicateWithHost lk.salyk.kg:30040 [13:09:53]ConnectInit lk.salyk.kg [13:09:53]written 0, free lines is 4095 [13:09:54]Connected sock=10 [13:09:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 12 08 01 37 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 9F 7C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7A 02 00 35 04 06 00 77 19 C7 0D 2E EE CC 33 FF B1 96 54 EC 33 [13:09:54]Write to MH i2c: 01 00 00 FB 00 FB [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: 01 07 00 FB 00 00 00 00 00 00 09 0D 18 [13:09:54]RasterBufferAndPrint [13:09:54]line [13:09:54]line [13:09:54]line [13:09:54]line [13:09:54]line [13:09:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A4 94 47 00 06 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DC 7A 02 00 F4 03 04 00 AF 28 92 66 B6 04 01 00 00 11 0D 58 E5 A4 CD 5E 76 [13:09:54]CommunicateWithHost err = 0 [13:09:54]CheckOFDResponse [13:09:54]1017 (14) - 77093643461234 [13:09:54]1041 (16) - 0000000000874899 [13:09:54]1040 (4) - 162524 [13:09:54]1012 (4) - 13.07.2024 07:11 [13:09:54]1206 (1) - 0 [13:09:54]OFD Sender: Remove packet 162524 [13:09:54]ProducePacketName [13:09:54]name=ofd_packets/00162524 [13:09:54]NVStorageDeleteData [13:09:54]written 0, free lines is 3390 [13:09:54]MH_Cut [13:09:54]Write to MH i2c: D1 01 00 02 01 01 D5 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: D1 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: D1 01 00 [13:09:54]MH_I2C_Read... [13:09:54]Read from MH i2c: D1 01 00 02 01 00 D4 [13:09:54]Write to MH i2c: 01 00 00 03 01 04 [13:09:54]Write i2c OK [13:09:54]MH_I2C_Read... [13:09:55]OFD Sender: No OFD packet to send [13:09:55]*** Cut start [13:09:55]*** Purtial cut [13:09:55]*** CUTSNS_PIN = 0 [13:09:55]*** Stage 1: CUTSNS_PIN = 1 [13:09:57]Read from MH i2c: 01 [13:09:57]MH_I2C_Read... [13:09:57]*** Stop cut motor [13:09:57]*** Cut end [13:09:57]Read from MH i2c: 01 07 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: 01 07 00 03 01 00 00 00 00 00 FF 0F 19 [13:09:57]process_action close_receipt done [13:09:57]requested_data is exist [13:09:57]produce_requested_data [13:09:57]requested_item fm.sn is exist - process it [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 11 00 00 [13:09:57]Write to MH i2c: E2 08 00 04 01 80 11 00 00 00 00 00 00 7F [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 17 00 04 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DF [13:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:09:57]wFMCommunicate OK [13:09:57]requested_item fd.num is exist - process it [13:09:57]SAM_PROTO_GetFieldsCounters [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 13 00 00 [13:09:57]Write to MH i2c: E2 08 00 05 01 80 13 00 00 00 00 00 00 82 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 62 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 62 00 05 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [13:09:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:57]wFMCommunicate OK [13:09:57]SAM_PROTO_GetFieldsCounters done [13:09:57]requested_item shift.num is exist - process it [13:09:57]requested_item shift.opened is exist - process it [13:09:57]req_shift_opened [13:09:57]FM_GetShiftState [13:09:57]SAM_PROTO_GetShiftState [13:09:57]wFMCommunicate request_size=4 [13:09:57]MH_SAM_APDU [13:09:57]CAPDU: 80 13 01 00 [13:09:57]Write to MH i2c: E2 08 00 06 01 80 13 01 00 00 00 00 00 84 [13:09:57]Write i2c OK [13:09:57]MH_I2C_Read... [13:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:57]Read from MH i2c: E2 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 0E 00 [13:09:57]MH_I2C_Read... [13:09:57]Read from MH i2c: E2 0E 00 06 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7E [13:09:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:09:57]wFMCommunicate OK [13:09:57]SAM_PROTO_GetShiftState done [13:09:57]FM_GetShiftState done [13:09:57]req_shift_opened done [13:09:57]requested_item shift.open_date is exist - process it [13:09:57]req_shift_open_date [13:09:57]req_shift_open_date done [13:09:57]produce_requested_data done [13:09:57]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162524,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:09:57]process_action_free close_receipt [13:09:57]json_value_free [13:09:57]json_value_free done [13:09:57]process_json_proto returns [13:09:57]Send response to host [13:09:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162524,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:09:57]free response buf [13:09:57]execute_script done [13:09:57]execute_script returns [13:09:57]free content buf [13:09:57]Sock 9.Close socket [13:09:57]Sock 9.Thread stoped [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:48]accept exits with 7 [13:10:48]New connection [13:10:48]New thread 3067366756 created [13:10:48]Thread 3067510116 joined [13:10:48]Waiting for new connection... [13:10:48] Sock 7.Parse request [13:10:48]Sock 7.Check first char [13:10:48]Sock 7.First char is OK [13:10:48]request: POST /json_proto HTTP/1.0 [13:10:48]Method: POST [13:10:48]URL: /json_proto [13:10:48]Method is POST - this is cgi request [13:10:48]url: /json_proto [13:10:48]query_string will be loaded in cgi processing [13:10:48]execute_cgi json_proto POST (null) [13:10:48]execute_cgi path=json_proto method=POST [13:10:48]POST find Content-Length [13:10:48]Host: 172.17.39.67:8080 [13:10:48]Content-Length: 678 [13:10:48]Content-Type: application/json [13:10:48] [13:10:48]POST finish read [13:10:48]Found Content-Length = 678 [13:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:48]execute_script... [13:10: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)1319074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:48]POST & json_proto [13:10:48]process_json_proto [13:10:48]json parsed OK: [13:10:48]protocol is kg_v1.0 [13:10:48]action value=close_receipt [13:10:48]process_action close_receipt [13:10:48]cmd_close_receipt [13:10:48]MH_GetDate [13:10:48]Write to MH i2c: F0 00 00 07 01 F7 [13:10:48]Write i2c OK [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 09 00 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: F0 09 00 07 01 00 D8 7C 92 66 86 7C 92 66 46 [13:10:48]GetLastDocTimeStamp 1720876191 [13:10:48]current date 1720876248 [13:10:48]FM_GetShiftState [13:10:48]SAM_PROTO_GetShiftState [13:10:48]wFMCommunicate request_size=4 [13:10:48]MH_SAM_APDU [13:10:48]CAPDU: 80 13 01 00 [13:10:48]Write to MH i2c: E2 08 00 08 01 80 13 01 00 00 00 00 00 86 [13:10:48]Write i2c OK [13:10:48]MH_I2C_Read... [13:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:48]Read from MH i2c: E2 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 0E 00 [13:10:48]MH_I2C_Read... [13:10:48]Read from MH i2c: E2 0E 00 08 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 80 [13:10:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:10:48]wFMCommunicate OK [13:10:48]SAM_PROTO_GetShiftState done [13:10:48]FM_GetShiftState done [13:10:48]opened in 1720828979 [13:10:48]opened+sec_in_day 1720915379 [13:10:48]quantity*price = 60001 [13:10:48]sum+1 = 60003 [13:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 193 13.07.2024 13:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162525 ФПД: 196596519675746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131048&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162525&fm=196596519675746&tin=02508201610067®Number=0000000000090858&sum=60000 [13:10:49]StoreToDocumentArchive [13:10:49]shift 462 fd 162525 [13:10:49]save to /storage/0462/doc_00162525 [13:10:49]save last doc name /storage/0462/doc_00162525 to /storage/kkm_last_doc_name [13:10:49]save OK [13:10:49]Clear old archive folders... [13:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:49]tlvbuf is 006B68C0 [13:10:49]SAM_PROTO_ClearQueue [13:10:49]wFMCommunicate request_size=4 [13:10:49]MH_SAM_APDU [13:10:49]CAPDU: 80 09 00 00 [13:10:49]Write to MH i2c: E2 08 00 15 01 80 09 00 00 00 00 00 00 88 [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 15 01 00 90 00 8A [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]SAM_PROTO_ClearQueue done [13:10:50]KKMCreateOFDPacket [13:10:50]OFDProtocolAddRootSTLVToBuf [13:10:50]FM_MakeSignedData [13:10:50]FM_MakeSignedData [13:10:50]SAM_PROTO_SignData [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 01 02 [13:10:50]Write to MH i2c: E2 08 00 16 01 80 0D 01 02 00 00 00 00 90 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]wFMCommunicate request_size=255 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 C1 00 00 00 F4 03 04 00 D8 7C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7A 02 00 35 04 06 00 B2 [13:10:50]Write to MH i2c: E2 02 01 17 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 C1 00 00 00 F4 03 04 00 D8 7C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7A 02 00 35 04 06 00 B2 00 00 00 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]OFD Sender: No OFD packet to send [13:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]wFMCommunicate request_size=10 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 02 02 05 CD B1 B8 27 62 [13:10:50]Write to MH i2c: E2 0D 00 18 01 80 0D 02 02 05 00 CD B1 B8 27 62 00 00 5C [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [13:10:50]RAPDU: 90 00 [13:10:50]wFMCommunicate OK [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 0D 03 02 [13:10:50]Write to MH i2c: E2 08 00 19 01 80 0D 03 02 00 00 00 00 95 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 0B 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 0B 00 19 01 00 8D 3E 3C 16 F8 2D 40 74 90 00 8C [13:10:50]RAPDU: 8D 3E 3C 16 F8 2D 40 74 90 00 [13:10:50]wFMCommunicate OK [13:10:50]SAM_PROTO_SignData done [13:10:50]FM_MakeSignedData done [13:10:50]CreateOFDProtocolMessage [13:10:50]wFMCommunicate request_size=4 [13:10:50]MH_SAM_APDU [13:10:50]CAPDU: 80 11 00 00 [13:10:50]Write to MH i2c: E2 08 00 1A 01 80 11 00 00 00 00 00 00 95 [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:50]Read from MH i2c: E2 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 17 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: E2 17 00 1A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F5 [13:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:10:50]wFMCommunicate OK [13:10:50]CreateOFDProtocolMessage done [13:10:50]OFDSenderStorePacket 162525 [13:10:50]StoreOFDPacket docnum=162525 [13:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5C AC 07 01 9B D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 C1 00 00 00 F4 03 04 00 D8 7C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7A 02 00 35 04 06 00 B2 CD B1 B8 27 62 8D 3E 3C 16 F8 2D 40 74 [13:10:50]CheckFolder [13:10:50]dirname=/storage/ofd_packets [13:10:50]CheckFolder done [13:10:50]ProducePacketName [13:10:50]name=ofd_packets/00162525 [13:10:50]NVStorageSaveData ofd_packets/00162525 [13:10:50]File name is /storage/ofd_packets/00162525 [13:10:50]Write 301 bytes [13:10:50]NVStorageSaveData done [13:10:50]OFDSenderStorePacket done [13:10:50]KKMCreateOFDPacket done [13:10:50]NVStorageSaveData kkm_last_timestamp [13:10:50]File name is /storage/kkm_last_timestamp [13:10:50]Write 4 bytes [13:10:50]NVStorageSaveData done [13:10:50]ExternCall_PrintAddStr [13:10:50]wPrintStart [13:10:50]Write to MH i2c: 01 00 00 1B 01 1C [13:10:50]Write i2c OK [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 07 00 [13:10:50]MH_I2C_Read... [13:10:50]Read from MH i2c: 01 07 00 1B 01 00 00 00 00 00 FF 0F 31 [13:10:50]RasterBufferAndPrint [13:10:50]line Счет N : (1)1319074 [13:10:50]line ИНН: 02508201610067 [13:10:50]line Контрольно-Кассовый Чек [13:10:50]line ПРОДАЖА [13:10:50]line ТРК (МРК, ГНК) : 33 [13:10:50]line Товар: 2710124130 [13:10:50]line Аи-92-К-5 [13:10:50]line 9.050 * 66.30 [13:10:50]line = 600.02 [13:10:50]line НДС 12% НСП 1% [13:10:50]line > о реализуемом товаре [13:10:50]line ОКРУГЛЕНИЕ: -0.02 [13:10:50]line ИТОГО: 600.00 [13:10:50]line Внесено: 600.00 [13:10:50]line СДАЧА: 0.00 [13:10:50]line НСП 1% : 5.31 [13:10:50]line НДС 12% : 63.72 [13:10:50]line Наличными: 600.00 [13:10:50]line Безнал.: 0.00 [13:10:50]line Место: АЗС № 140 "Партнер Нефть" [13:10:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:10:50]line СНО: Общий режим [13:10:50]line Чек 193 13.07.2024 13:10 [13:10:50]line Смена: 462 ФФД: 1.0 [13:10:50]line ЗНМ: 0300000129 [13:10:50]line РНМ: 0000000000090858 [13:10:50]line Версия ККМ: 001 [13:10:50]line ФМ: 0000000000874899 [13:10:50]line ФД: 162525 [13:10:50]line ФПД: 196596519675746 [13:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131048&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162525&fm=196596519675746&tin=02508201610067®Number=0000000000090858&sum=60000 [13:10:50]OFD Sender: Processing packet 162525 [packets to send 106, broken 105] [13:10:50]ProducePacketName [13:10:50]name=ofd_packets/00162525 [13:10:50]OFD Sender: To server: pG, [13:10:50]CommunicateWithHost lk.salyk.kg:30040 [13:10:50]ConnectInit lk.salyk.kg [13:10:50]written 0, free lines is 4095 [13:10:50]Connected sock=10 [13:10:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 5C AC 07 01 9B D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 C1 00 00 00 F4 03 04 00 D8 7C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7A 02 00 35 04 06 00 B2 CD B1 B8 27 62 8D 3E 3C 16 F8 2D 40 74 [13:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 23 CE 47 00 05 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DD 7A 02 00 F4 03 04 00 E8 28 92 66 B6 04 01 00 00 C0 30 8B 65 BF 3D C1 8E [13:10:51]CommunicateWithHost err = 0 [13:10:51]CheckOFDResponse [13:10:51]1017 (14) - 77093643461234 [13:10:51]1041 (16) - 0000000000874899 [13:10:51]1040 (4) - 162525 [13:10:51]1012 (4) - 13.07.2024 07:12 [13:10:51]1206 (1) - 0 [13:10:51]OFD Sender: Remove packet 162525 [13:10:51]ProducePacketName [13:10:51]name=ofd_packets/00162525 [13:10:51]NVStorageDeleteData [13:10:51]Write to MH i2c: 01 00 00 46 01 47 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 07 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: 01 07 00 46 01 00 00 00 00 00 E4 0C 3E [13:10:51]RasterBufferAndPrint [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]line [13:10:51]written 0, free lines is 3306 [13:10:51]MH_Cut [13:10:51]Write to MH i2c: D1 01 00 4D 01 01 20 [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 01 00 [13:10:51]MH_I2C_Read... [13:10:51]Read from MH i2c: D1 01 00 4D 01 00 1F [13:10:51]Write to MH i2c: 01 00 00 4E 01 4F [13:10:51]Write i2c OK [13:10:51]MH_I2C_Read... [13:10:51]OFD Sender: No OFD packet to send [13:10:52]*** Cut start [13:10:52]*** Purtial cut [13:10:52]*** Stage 1: CUTSNS_PIN = 1 [13:10:52]Read from MH i2c: 01 [13:10:52]MH_I2C_Read... [13:10:52]*** Stop cut motor [13:10:52]*** Cut end [13:10:52]Read from MH i2c: 01 07 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 FF 0F 64 [13:10:52]process_action close_receipt done [13:10:52]requested_data is exist [13:10:52]produce_requested_data [13:10:52]requested_item fm.sn is exist - process it [13:10:52]wFMCommunicate request_size=4 [13:10:52]MH_SAM_APDU [13:10:52]CAPDU: 80 11 00 00 [13:10:52]Write to MH i2c: E2 08 00 4F 01 80 11 00 00 00 00 00 00 CA [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:52]Read from MH i2c: E2 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 17 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 17 00 4F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2A [13:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:10:52]wFMCommunicate OK [13:10:52]requested_item fd.num is exist - process it [13:10:52]SAM_PROTO_GetFieldsCounters [13:10:52]wFMCommunicate request_size=4 [13:10:52]MH_SAM_APDU [13:10:52]CAPDU: 80 13 00 00 [13:10:52]Write to MH i2c: E2 08 00 50 01 80 13 00 00 00 00 00 00 CD [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:52]Read from MH i2c: E2 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 62 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 62 00 50 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [13:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:52]wFMCommunicate OK [13:10:52]SAM_PROTO_GetFieldsCounters done [13:10:52]requested_item shift.num is exist - process it [13:10:52]requested_item shift.opened is exist - process it [13:10:52]req_shift_opened [13:10:52]FM_GetShiftState [13:10:52]SAM_PROTO_GetShiftState [13:10:52]wFMCommunicate request_size=4 [13:10:52]MH_SAM_APDU [13:10:52]CAPDU: 80 13 01 00 [13:10:52]Write to MH i2c: E2 08 00 51 01 80 13 01 00 00 00 00 00 CF [13:10:52]Write i2c OK [13:10:52]MH_I2C_Read... [13:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:52]Read from MH i2c: E2 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 0E 00 [13:10:52]MH_I2C_Read... [13:10:52]Read from MH i2c: E2 0E 00 51 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C9 [13:10:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:10:52]wFMCommunicate OK [13:10:52]SAM_PROTO_GetShiftState done [13:10:52]FM_GetShiftState done [13:10:52]req_shift_opened done [13:10:52]requested_item shift.open_date is exist - process it [13:10:52]req_shift_open_date [13:10:52]req_shift_open_date done [13:10:52]produce_requested_data done [13:10:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162525,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:10:52]process_action_free close_receipt [13:10:52]json_value_free [13:10:52]json_value_free done [13:10:52]process_json_proto returns [13:10:52]Send response to host [13:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162525,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:10:52]free response buf [13:10:52]execute_script done [13:10:52]execute_script returns [13:10:52]free content buf [13:10:52]Sock 7.Close socket [13:10:52]Sock 7.Thread stoped [13:10:56]OFD Sender: No OFD packet to send [13:11:01]OFD Sender: No OFD packet to send [13:11:06]OFD Sender: No OFD packet to send [13:11:11]OFD Sender: No OFD packet to send [13:11:16]OFD Sender: No OFD packet to send [13:11:21]OFD Sender: No OFD packet to send [13:11:26]OFD Sender: No OFD packet to send [13:11:31]OFD Sender: No OFD packet to send [13:11:36]OFD Sender: No OFD packet to send [13:11:38]accept exits with 9 [13:11:38]New connection [13:11:38]New thread 3067510116 created [13:11:38]Thread 3067366756 joined [13:11:38]Waiting for new connection... [13:11:38] Sock 9.Parse request [13:11:38]Sock 9.Check first char [13:11:38]Sock 9.First char is OK [13:11:38]request: POST /json_proto HTTP/1.0 [13:11:38]Method: POST [13:11:38]URL: /json_proto [13:11:38]Method is POST - this is cgi request [13:11:38]url: /json_proto [13:11:38]query_string will be loaded in cgi processing [13:11:38]execute_cgi json_proto POST (null) [13:11:38]execute_cgi path=json_proto method=POST [13:11:38]POST find Content-Length [13:11:38]Host: 172.17.39.67:8080 [13:11:38]Content-Length: 679 [13:11:38]Content-Type: application/json [13:11:38] [13:11:38]POST finish read [13:11:38]Found Content-Length = 679 [13:11:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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:11:38]execute_script... [13:11:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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:11:38]POST & json_proto [13:11:38]process_json_proto [13:11:38]json parsed OK: [13:11:38]protocol is kg_v1.0 [13:11:38]action value=close_receipt [13:11:38]process_action close_receipt [13:11:38]cmd_close_receipt [13:11:38]MH_GetDate [13:11:38]Write to MH i2c: F0 00 00 52 01 42 [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: F0 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: F0 09 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: F0 09 00 52 01 00 0A 7D 92 66 86 7C 92 66 C4 [13:11:38]GetLastDocTimeStamp 1720876248 [13:11:38]current date 1720876298 [13:11:38]FM_GetShiftState [13:11:38]SAM_PROTO_GetShiftState [13:11:38]wFMCommunicate request_size=4 [13:11:38]MH_SAM_APDU [13:11:38]CAPDU: 80 13 01 00 [13:11:38]Write to MH i2c: E2 08 00 53 01 80 13 01 00 00 00 00 00 D1 [13:11:38]Write i2c OK [13:11:38]MH_I2C_Read... [13:11:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:38]Read from MH i2c: E2 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 0E 00 [13:11:38]MH_I2C_Read... [13:11:38]Read from MH i2c: E2 0E 00 53 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CB [13:11:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:11:38]wFMCommunicate OK [13:11:38]SAM_PROTO_GetShiftState done [13:11:38]FM_GetShiftState done [13:11:38]opened in 1720828979 [13:11:38]opened+sec_in_day 1720915379 [13:11:38]quantity*price = 70012 [13:11:38]sum+1 = 70014 [13:11:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 194 13.07.2024 13:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162526 ФПД: 93092222694622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131138&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162526&fm=93092222694622&tin=02508201610067®Number=0000000000090858&sum=70000 [13:11:39]StoreToDocumentArchive [13:11:39]shift 462 fd 162526 [13:11:39]save to /storage/0462/doc_00162526 [13:11:39]save last doc name /storage/0462/doc_00162526 to /storage/kkm_last_doc_name [13:11:39]save OK [13:11:39]Clear old archive folders... [13:11:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:39]tlvbuf is 005DECA0 [13:11:39]SAM_PROTO_ClearQueue [13:11:39]wFMCommunicate request_size=4 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 09 00 00 [13:11:39]Write to MH i2c: E2 08 00 60 01 80 09 00 00 00 00 00 00 D3 [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 03 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [13:11:39]RAPDU: 90 00 [13:11:39]wFMCommunicate OK [13:11:39]SAM_PROTO_ClearQueue done [13:11:39]KKMCreateOFDPacket [13:11:39]OFDProtocolAddRootSTLVToBuf [13:11:39]FM_MakeSignedData [13:11:39]FM_MakeSignedData [13:11:39]SAM_PROTO_SignData [13:11:39]wFMCommunicate request_size=4 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 0D 01 02 [13:11:39]Write to MH i2c: E2 08 00 61 01 80 0D 01 02 00 00 00 00 DB [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 03 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [13:11:39]RAPDU: 90 00 [13:11:39]wFMCommunicate OK [13:11:39]wFMCommunicate request_size=255 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0A 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7A 02 00 35 04 06 00 54 [13:11:39]Write to MH i2c: E2 02 01 62 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0A 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7A 02 00 35 04 06 00 54 00 00 46 [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 03 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 03 00 62 01 00 90 00 D7 [13:11:39]RAPDU: 90 00 [13:11:39]wFMCommunicate OK [13:11:39]wFMCommunicate request_size=10 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 0D 02 02 05 AA B8 DD 74 DE [13:11:39]Write to MH i2c: E2 0D 00 63 01 80 0D 02 02 05 00 AA B8 DD 74 DE 00 00 79 [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 03 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 03 00 63 01 00 90 00 D8 [13:11:39]RAPDU: 90 00 [13:11:39]wFMCommunicate OK [13:11:39]wFMCommunicate request_size=4 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 0D 03 02 [13:11:39]Write to MH i2c: E2 08 00 64 01 80 0D 03 02 00 00 00 00 E0 [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 0B 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 0B 00 64 01 00 2F A3 2C 0A 5E AC 42 55 90 00 8A [13:11:39]RAPDU: 2F A3 2C 0A 5E AC 42 55 90 00 [13:11:39]wFMCommunicate OK [13:11:39]SAM_PROTO_SignData done [13:11:39]FM_MakeSignedData done [13:11:39]CreateOFDProtocolMessage [13:11:39]wFMCommunicate request_size=4 [13:11:39]MH_SAM_APDU [13:11:39]CAPDU: 80 11 00 00 [13:11:39]Write to MH i2c: E2 08 00 65 01 80 11 00 00 00 00 00 00 E0 [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:39]Read from MH i2c: E2 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 17 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: E2 17 00 65 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 40 [13:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:11:39]wFMCommunicate OK [13:11:39]CreateOFDProtocolMessage done [13:11:39]OFDSenderStorePacket 162526 [13:11:39]StoreOFDPacket docnum=162526 [13:11:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 02 DC 07 01 DA 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0A 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7A 02 00 35 04 06 00 54 AA B8 DD 74 DE 2F A3 2C 0A 5E AC 42 55 [13:11:39]CheckFolder [13:11:39]dirname=/storage/ofd_packets [13:11:39]CheckFolder done [13:11:39]ProducePacketName [13:11:39]name=ofd_packets/00162526 [13:11:39]NVStorageSaveData ofd_packets/00162526 [13:11:39]File name is /storage/ofd_packets/00162526 [13:11:39]Write 301 bytes [13:11:39]NVStorageSaveData done [13:11:39]OFDSenderStorePacket done [13:11:39]KKMCreateOFDPacket done [13:11:39]NVStorageSaveData kkm_last_timestamp [13:11:39]File name is /storage/kkm_last_timestamp [13:11:39]Write 4 bytes [13:11:39]NVStorageSaveData done [13:11:39]ExternCall_PrintAddStr [13:11:39]wPrintStart [13:11:39]Write to MH i2c: 01 00 00 66 01 67 [13:11:39]Write i2c OK [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: 01 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: 01 07 00 [13:11:39]MH_I2C_Read... [13:11:39]Read from MH i2c: 01 07 00 66 01 00 00 00 00 00 FF 0F 7C [13:11:39]RasterBufferAndPrint [13:11:39]line Счет N : (1)1319075 [13:11:39]line ИНН: 02508201610067 [13:11:39]line Контрольно-Кассовый Чек [13:11:39]line ПРОДАЖА [13:11:39]line ТРК (МРК, ГНК) : 53 [13:11:39]line Товар: 2710124130 [13:11:39]line Аи-92-К-5 [13:11:39]line 10.560 * 66.30 [13:11:39]line = 700.13 [13:11:39]line НДС 12% НСП 1% [13:11:39]line > о реализуемом товаре [13:11:39]line ОКРУГЛЕНИЕ: -0.13 [13:11:39]line ИТОГО: 700.00 [13:11:39]line Внесено: 700.00 [13:11:39]line СДАЧА: 0.00 [13:11:39]line НСП 1% : 6.20 [13:11:39]line НДС 12% : 74.35 [13:11:39]line Наличными: 700.00 [13:11:39]line Безнал.: 0.00 [13:11:39]line Место: АЗС № 140 "Партнер Нефть" [13:11:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:11:39]line СНО: Общий режим [13:11:39]line Чек 194 13.07.2024 13:11 [13:11:39]line Смена: 462 ФФД: 1.0 [13:11:39]line ЗНМ: 0300000129 [13:11:39]line РНМ: 0000000000090858 [13:11:39]line Версия ККМ: 001 [13:11:39]line ФМ: 0000000000874899 [13:11:39]line ФД: 162526 [13:11:39]line ФПД: 93092222694622 [13:11:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131138&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162526&fm=93092222694622&tin=02508201610067®Number=0000000000090858&sum=70000 [13:11:40]OFD Sender: Processing packet 162526 [packets to send 106, broken 105] [13:11:40]ProducePacketName [13:11:40]name=ofd_packets/00162526 [13:11:40]OFD Sender: To server: pG, [13:11:40]CommunicateWithHost lk.salyk.kg:30040 [13:11:40]ConnectInit lk.salyk.kg [13:11:40]written 0, free lines is 4095 [13:11:40]Connected sock=7 [13:11:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 02 DC 07 01 DA 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 0A 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7A 02 00 35 04 06 00 54 AA B8 DD 74 DE 2F A3 2C 0A 5E AC 42 55 [13:11:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 90 D2 47 00 E9 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DE 7A 02 00 F4 03 04 00 19 29 92 66 B6 04 01 00 00 B3 1E 23 4D 7A A9 30 CF [13:11:40]CommunicateWithHost err = 0 [13:11:40]CheckOFDResponse [13:11:40]1017 (14) - 77093643461234 [13:11:40]1041 (16) - 0000000000874899 [13:11:40]1040 (4) - 162526 [13:11:40]1012 (4) - 13.07.2024 07:13 [13:11:40]1206 (1) - 0 [13:11:40]OFD Sender: Remove packet 162526 [13:11:40]ProducePacketName [13:11:40]name=ofd_packets/00162526 [13:11:40]NVStorageDeleteData [13:11:40]Write to MH i2c: 01 00 00 91 01 92 [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: 01 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: 01 07 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: 01 07 00 91 01 00 00 00 00 00 F1 0C 96 [13:11:40]RasterBufferAndPrint [13:11:40]line [13:11:40]line [13:11:40]line [13:11:40]line [13:11:40]line [13:11:40]written 0, free lines is 3319 [13:11:40]MH_Cut [13:11:40]Write to MH i2c: D1 01 00 98 01 01 6B [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: D1 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: D1 01 00 [13:11:40]MH_I2C_Read... [13:11:40]Read from MH i2c: D1 01 00 98 01 00 6A [13:11:40]Write to MH i2c: 01 00 00 99 01 9A [13:11:40]Write i2c OK [13:11:40]MH_I2C_Read... [13:11:41]OFD Sender: No OFD packet to send [13:11:41]*** Cut start [13:11:41]*** Purtial cut [13:11:41]*** CUTSNS_PIN = 0 [13:11:41]*** Stage 1: CUTSNS_PIN = 1 [13:11:43]Read from MH i2c: 01 [13:11:43]MH_I2C_Read... [13:11:43]*** Stop cut motor [13:11:43]*** Cut end [13:11:43]Read from MH i2c: 01 07 00 [13:11:43]MH_I2C_Read... [13:11:43]Read from MH i2c: 01 07 00 99 01 00 00 00 00 00 FF 0F AF [13:11:43]process_action close_receipt done [13:11:43]requested_data is exist [13:11:43]produce_requested_data [13:11:43]requested_item fm.sn is exist - process it [13:11:43]wFMCommunicate request_size=4 [13:11:43]MH_SAM_APDU [13:11:43]CAPDU: 80 11 00 00 [13:11:43]Write to MH i2c: E2 08 00 9A 01 80 11 00 00 00 00 00 00 15 [13:11:43]Write i2c OK [13:11:43]MH_I2C_Read... [13:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:43]Read from MH i2c: E2 [13:11:43]MH_I2C_Read... [13:11:43]Read from MH i2c: E2 17 00 [13:11:43]MH_I2C_Read... [13:11:43]Read from MH i2c: E2 17 00 9A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 75 [13:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:11:43]wFMCommunicate OK [13:11:43]requested_item fd.num is exist - process it [13:11:43]SAM_PROTO_GetFieldsCounters [13:11:43]wFMCommunicate request_size=4 [13:11:43]MH_SAM_APDU [13:11:43]CAPDU: 80 13 00 00 [13:11:43]Write to MH i2c: E2 08 00 9B 01 80 13 00 00 00 00 00 00 18 [13:11:43]Write i2c OK [13:11:43]MH_I2C_Read... [13:11:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:43]Read from MH i2c: E2 [13:11:43]MH_I2C_Read... [13:11:43]Read from MH i2c: E2 62 00 [13:11:43]MH_I2C_Read... [13:11:43]Read from MH i2c: E2 62 00 9B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [13:11:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:43]wFMCommunicate OK [13:11:43]SAM_PROTO_GetFieldsCounters done [13:11:43]requested_item shift.num is exist - process it [13:11:43]requested_item shift.opened is exist - process it [13:11:43]req_shift_opened [13:11:43]FM_GetShiftState [13:11:43]SAM_PROTO_GetShiftState [13:11:43]wFMCommunicate request_size=4 [13:11:43]MH_SAM_APDU [13:11:43]CAPDU: 80 13 01 00 [13:11:43]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [13:11:43]Write i2c OK [13:11:43]MH_I2C_Read... [13:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:43]Read from MH i2c: E2 [13:11:43]MH_I2C_Read... [13:11:43]Read from MH i2c: E2 0E 00 [13:11:43]MH_I2C_Read... [13:11:43]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 14 [13:11:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:11:43]wFMCommunicate OK [13:11:43]SAM_PROTO_GetShiftState done [13:11:43]FM_GetShiftState done [13:11:43]req_shift_opened done [13:11:43]requested_item shift.open_date is exist - process it [13:11:43]req_shift_open_date [13:11:43]req_shift_open_date done [13:11:43]produce_requested_data done [13:11:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162526,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:11:43]process_action_free close_receipt [13:11:43]json_value_free [13:11:43]json_value_free done [13:11:43]process_json_proto returns [13:11:43]Send response to host [13:11:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162526,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:11:43]free response buf [13:11:43]execute_script done [13:11:43]execute_script returns [13:11:43]free content buf [13:11:43]Sock 9.Close socket [13:11:43]Sock 9.Thread stoped [13:11:46]OFD Sender: No OFD packet to send [13:11:51]OFD Sender: No OFD packet to send [13:11:56]OFD Sender: No OFD packet to send [13:12:01]OFD Sender: No OFD packet to send [13:12:06]OFD Sender: No OFD packet to send [13:12:11]OFD Sender: No OFD packet to send [13:12:16]OFD Sender: No OFD packet to send [13:12:21]OFD Sender: No OFD packet to send [13:12:26]OFD Sender: No OFD packet to send [13:12:31]OFD Sender: No OFD packet to send [13:12:36]OFD Sender: No OFD packet to send [13:12:41]OFD Sender: No OFD packet to send [13:12:41]accept exits with 10 [13:12:41]New connection [13:12:41]New thread 3067366756 created [13:12:41]Thread 3067510116 joined [13:12:41]Waiting for new connection... [13:12:41] Sock 10.Parse request [13:12:41]Sock 10.Check first char [13:12:41]Sock 10.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.39.67:8080 [13:12:41]Content-Length: 688 [13:12:41]Content-Type: application/json [13:12:41] [13:12:41]POST finish read [13:12:41]Found Content-Length = 688 [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)1319076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 22.040, "sum" : 1600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)1319076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 22.040, "sum" : 1600.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 9D 01 8D [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 9D 01 00 4A 7D 92 66 86 7C 92 66 4F [13:12:41]GetLastDocTimeStamp 1720876298 [13:12:41]current date 1720876362 [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 9E 01 80 13 01 00 00 00 00 00 1C [13:12:41]Write i2c OK [13:12:41]MH_I2C_Read... [13:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:42]Read from MH i2c: E2 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 0E 00 [13:12:42]MH_I2C_Read... [13:12:42]Read from MH i2c: E2 0E 00 9E 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 16 [13:12:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:12:42]wFMCommunicate OK [13:12:42]SAM_PROTO_GetShiftState done [13:12:42]FM_GetShiftState done [13:12:42]opened in 1720828979 [13:12:42]opened+sec_in_day 1720915379 [13:12:42]quantity*price = 160010 [13:12:42]sum+1 = 160011 [13:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.92 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 195 13.07.2024 13:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162527 ФПД: 225015951202907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131242&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162527&fm=225015951202907&tin=02508201610067®Number=0000000000090858&sum=160000 [13:12:43]StoreToDocumentArchive [13:12:43]shift 462 fd 162527 [13:12:43]save to /storage/0462/doc_00162527 [13:12:43]save last doc name /storage/0462/doc_00162527 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=252 [13:12:43]tlvbuf is 006C2210 [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 AB 01 80 09 00 00 00 00 00 00 1E [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 AB 01 00 90 00 20 [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 AC 01 80 0D 01 02 00 00 00 00 26 [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 AC 01 00 90 00 21 [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 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 56 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 4A 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7A 02 00 35 04 06 00 [13:12:43]Write to MH i2c: E2 02 01 AD 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 56 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 4A 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7A 02 00 35 04 06 00 00 00 A1 [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 AD 01 00 90 00 22 [13:12:43]RAPDU: 90 00 [13:12:43]wFMCommunicate OK [13:12:43]wFMCommunicate request_size=11 [13:12:43]MH_SAM_APDU [13:12:43]CAPDU: 80 0D 02 02 06 CC A6 9B D7 1A 5B [13:12:43]Write to MH i2c: E2 0E 00 AE 01 80 0D 02 02 06 00 CC A6 9B D7 1A 5B 00 00 8E [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 AE 01 00 90 00 23 [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 AF 01 80 0D 03 02 00 00 00 00 2B [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 AF 01 00 51 B4 49 CF 7A 92 5A 94 90 00 43 [13:12:43]RAPDU: 51 B4 49 CF 7A 92 5A 94 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 B0 01 80 11 00 00 00 00 00 00 2B [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 B0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8B [13:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:12:43]wFMCommunicate OK [13:12:43]CreateOFDProtocolMessage done [13:12:43]OFDSenderStorePacket 162527 [13:12:43]StoreOFDPacket docnum=162527 [13:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 51 CF 08 01 D7 50 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 56 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 4A 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7A 02 00 35 04 06 00 CC A6 9B D7 1A 5B 51 B4 49 CF 7A 92 5A 94 [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/00162527 [13:12:43]NVStorageSaveData ofd_packets/00162527 [13:12:43]File name is /storage/ofd_packets/00162527 [13:12:43]Write 302 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 B1 01 B2 [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 B1 01 00 00 00 00 00 FF 0F C7 [13:12:43]RasterBufferAndPrint [13:12:43]line Счет N : (1)1319076 [13:12:43]line ИНН: 02508201610067 [13:12:43]line Контрольно-Кассовый Чек [13:12:43]line ПРОДАЖА [13:12:43]line ТРК (МРК, ГНК) : 61 [13:12:43]line Товар: 2710194210 [13:12:43]line ДТ(л)-К-5 [13:12:43]line 22.040 * 72.60 [13:12:43]line = 1600.10 [13:12:43]line НДС 12% НСП 1% [13:12:43]line > о реализуемом товаре [13:12:43]line ОКРУГЛЕНИЕ: -0.10 [13:12:43]line ИТОГО: 1600.00 [13:12:43]line Внесено: 1600.00 [13:12:43]line СДАЧА: 0.00 [13:12:43]line НСП 1% : 14.16 [13:12:43]line НДС 12% : 169.92 [13:12:43]line Наличными: 1600.00 [13:12:43]line Безнал.: 0.00 [13:12:43]line Место: АЗС № 140 "Партнер Нефть" [13:12:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:12:43]line СНО: Общий режим [13:12:43]line Чек 195 13.07.2024 13:12 [13:12:43]line Смена: 462 ФФД: 1.0 [13:12:43]line ЗНМ: 0300000129 [13:12:43]line РНМ: 0000000000090858 [13:12:43]line Версия ККМ: 001 [13:12:43]line ФМ: 0000000000874899 [13:12:43]line ФД: 162527 [13:12:43]line ФПД: 225015951202907 [13:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131242&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162527&fm=225015951202907&tin=02508201610067®Number=0000000000090858&sum=160000 [13:12:44]OFD Sender: Processing packet 162527 [packets to send 106, broken 105] [13:12:44]ProducePacketName [13:12:44]name=ofd_packets/00162527 [13:12:44]OFD Sender: To server: pG, [13:12:44]CommunicateWithHost lk.salyk.kg:30040 [13:12:44]ConnectInit lk.salyk.kg [13:12:44]written 0, free lines is 4095 [13:12:44]Connected sock=9 [13: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 34 38 39 39 10 01 00 00 51 CF 08 01 D7 50 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 18 56 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 0A 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 4A 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 DF 7A 02 00 35 04 06 00 CC A6 9B D7 1A 5B 51 B4 49 CF 7A 92 5A 94 [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 34 38 39 39 4F 00 00 00 DE 09 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 34 38 39 39 10 04 04 00 DF 7A 02 00 F4 03 04 00 59 29 92 66 B6 04 01 00 00 6E 6E A9 BC B1 65 21 E4 [13:12:44]CommunicateWithHost err = 0 [13:12:44]CheckOFDResponse [13:12:44]1017 (14) - 77093643461234 [13:12:44]1041 (16) - 0000000000874899 [13:12:44]1040 (4) - 162527 [13:12:44]1012 (4) - 13.07.2024 07:14 [13:12:44]1206 (1) - 0 [13:12:44]OFD Sender: Remove packet 162527 [13:12:44]ProducePacketName [13:12:44]name=ofd_packets/00162527 [13:12:44]NVStorageDeleteData [13:12:44]Write to MH i2c: 01 00 00 DC 01 DD [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 DC 01 00 00 00 00 00 E5 0C D5 [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 3307 [13:12:44]MH_Cut [13:12:44]Write to MH i2c: D1 01 00 E3 01 01 B6 [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 E3 01 00 B5 [13:12:44]Write to MH i2c: 01 00 00 E4 01 E5 [13:12:44]Write i2c OK [13:12:44]MH_I2C_Read... [13:12:44]OFD Sender: No OFD packet to send [13:12:45]*** Cut start [13:12:45]*** Purtial cut [13:12:45]*** Stage 1: CUTSNS_PIN = 1 [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 E4 01 00 00 00 00 00 FF 0F FA [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 E5 01 80 11 00 00 00 00 00 00 60 [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 E5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C0 [13:12:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 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 E6 01 80 13 00 00 00 00 00 00 63 [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 E6 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 DF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 E7 01 80 13 01 00 00 00 00 00 65 [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 E7 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5F [13:12:45]RAPDU: 09 00 01 33 C4 91 66 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":"0000000000874899","fd.num":162527,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [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":"0000000000874899","fd.num":162527,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [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 10.Close socket [13:12:45]Sock 10.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:10]accept exits with 7 [13:13:10]New connection [13:13:10]New thread 3067510116 created [13:13:10]Thread 3067366756 joined [13:13:10]Waiting for new connection... [13:13:10] Sock 7.Parse request [13:13:10]Sock 7.Check first char [13:13:10]Sock 7.First char is OK [13:13:10]request: POST /json_proto HTTP/1.0 [13:13:10]Method: POST [13:13:10]URL: /json_proto [13:13:10]Method is POST - this is cgi request [13:13:10]url: /json_proto [13:13:10]query_string will be loaded in cgi processing [13:13:10]execute_cgi json_proto POST (null) [13:13:10]execute_cgi path=json_proto method=POST [13:13:10]POST find Content-Length [13:13:10]Host: 172.17.39.67:8080 [13:13:10]Content-Length: 809 [13:13:10]Content-Type: application/json [13:13:10] [13:13:10]POST finish read [13:13:10]Found Content-Length = 809 [13:13:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.430, "sum" : 2499.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" : 2499.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:10]execute_script... [13:13: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)1319077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.430, "sum" : 2499.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" : 2499.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:13:10]POST & json_proto [13:13:10]process_json_proto [13:13:10]json parsed OK: [13:13:10]protocol is kg_v1.0 [13:13:10]action value=close_receipt [13:13:10]process_action close_receipt [13:13:10]cmd_close_receipt [13:13:10]MH_GetDate [13:13:10]Write to MH i2c: F0 00 00 E8 01 D8 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: F0 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: F0 09 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: F0 09 00 E8 01 00 66 7D 92 66 86 7C 92 66 B6 [13:13:10]GetLastDocTimeStamp 1720876362 [13:13:10]current date 1720876390 [13:13:10]FM_GetShiftState [13:13:10]SAM_PROTO_GetShiftState [13:13:10]wFMCommunicate request_size=4 [13:13:10]MH_SAM_APDU [13:13:10]CAPDU: 80 13 01 00 [13:13:10]Write to MH i2c: E2 08 00 E9 01 80 13 01 00 00 00 00 00 67 [13:13:10]Write i2c OK [13:13:10]MH_I2C_Read... [13:13:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:10]Read from MH i2c: E2 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 0E 00 [13:13:10]MH_I2C_Read... [13:13:10]Read from MH i2c: E2 0E 00 E9 01 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 61 [13:13:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:13:10]wFMCommunicate OK [13:13:10]SAM_PROTO_GetShiftState done [13:13:10]FM_GetShiftState done [13:13:10]opened in 1720828979 [13:13:10]opened+sec_in_day 1720915379 [13:13:10]quantity*price = 249961 [13:13:10]sum+1 = 249963 [13:13:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2499.62 НСП 1% : 22.12 НДС 12% : 265.45 Наличными: 0.00 Безнал.: 2499.62 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 196 13.07.2024 13:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162528 ФПД: 170830004298997 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131310&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162528&fm=170830004298997&tin=02508201610067®Number=0000000000090858&sum=249962 [13:13:11]StoreToDocumentArchive [13:13:11]shift 462 fd 162528 [13:13:11]save to /storage/0462/doc_00162528 [13:13:11]save last doc name /storage/0462/doc_00162528 to /storage/kkm_last_doc_name [13:13:11]save OK [13:13:11]Clear old archive folders... [13:13:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:13:11]tlvbuf is 006C1DC0 [13:13:11]SAM_PROTO_ClearQueue [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 09 00 00 [13:13:11]Write to MH i2c: E2 08 00 F6 01 80 09 00 00 00 00 00 00 69 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [13:13:11]RAPDU: 90 00 [13:13:11]wFMCommunicate OK [13:13:11]SAM_PROTO_ClearQueue done [13:13:11]KKMCreateOFDPacket [13:13:11]OFDProtocolAddRootSTLVToBuf [13:13:11]FM_MakeSignedData [13:13:11]FM_MakeSignedData [13:13:11]SAM_PROTO_SignData [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 0D 01 02 [13:13:11]Write to MH i2c: E2 08 00 F7 01 80 0D 01 02 00 00 00 00 71 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [13:13:11]RAPDU: 90 00 [13:13:11]wFMCommunicate OK [13:13:11]wFMCommunicate request_size=255 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 66 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7A 02 00 35 04 06 00 [13:13:11]Write to MH i2c: E2 02 01 F8 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 66 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7A 02 00 35 04 06 00 00 00 89 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 F8 01 00 90 00 6D [13:13:11]RAPDU: 90 00 [13:13:11]wFMCommunicate OK [13:13:11]wFMCommunicate request_size=11 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 0D 02 02 06 9B 5E 75 B9 24 F5 [13:13:11]Write to MH i2c: E2 0E 00 F9 01 80 0D 02 02 06 00 9B 5E 75 B9 24 F5 00 00 C0 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:11]Read from MH i2c: E2 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 [13:13:11]MH_I2C_Read... [13:13:11]Read from MH i2c: E2 03 00 F9 01 00 90 00 6E [13:13:11]RAPDU: 90 00 [13:13:11]wFMCommunicate OK [13:13:11]wFMCommunicate request_size=4 [13:13:11]MH_SAM_APDU [13:13:11]CAPDU: 80 0D 03 02 [13:13:11]Write to MH i2c: E2 08 00 FA 01 80 0D 03 02 00 00 00 00 76 [13:13:11]Write i2c OK [13:13:11]MH_I2C_Read... [13:13:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:12]Read from MH i2c: E2 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 0B 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 0B 00 FA 01 00 B7 50 91 75 85 DD 99 3C 90 00 BB [13:13:12]RAPDU: B7 50 91 75 85 DD 99 3C 90 00 [13:13:12]wFMCommunicate OK [13:13:12]SAM_PROTO_SignData done [13:13:12]FM_MakeSignedData done [13:13:12]CreateOFDProtocolMessage [13:13:12]wFMCommunicate request_size=4 [13:13:12]MH_SAM_APDU [13:13:12]CAPDU: 80 11 00 00 [13:13:12]Write to MH i2c: E2 08 00 FB 01 80 11 00 00 00 00 00 00 76 [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:12]Read from MH i2c: E2 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 17 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: E2 17 00 FB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D6 [13:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:13:12]wFMCommunicate OK [13:13:12]CreateOFDProtocolMessage done [13:13:12]OFDSenderStorePacket 162528 [13:13:12]StoreOFDPacket docnum=162528 [13:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BB 9B 08 01 84 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 66 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7A 02 00 35 04 06 00 9B 5E 75 B9 24 F5 B7 50 91 75 85 DD 99 3C [13:13:12]CheckFolder [13:13:12]dirname=/storage/ofd_packets [13:13:12]CheckFolder done [13:13:12]ProducePacketName [13:13:12]name=ofd_packets/00162528 [13:13:12]NVStorageSaveData ofd_packets/00162528 [13:13:12]File name is /storage/ofd_packets/00162528 [13:13:12]Write 302 bytes [13:13:12]NVStorageSaveData done [13:13:12]OFDSenderStorePacket done [13:13:12]KKMCreateOFDPacket done [13:13:12]NVStorageSaveData kkm_last_timestamp [13:13:12]File name is /storage/kkm_last_timestamp [13:13:12]Write 4 bytes [13:13:12]NVStorageSaveData done [13:13:12]ExternCall_PrintAddStr [13:13:12]wPrintStart [13:13:12]Write to MH i2c: 01 00 00 FC 01 FD [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 07 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 07 00 FC 01 00 00 00 00 00 FF 0F 12 [13:13:12]RasterBufferAndPrint [13:13:12]line Счет N : (1)1319077 [13:13:12]line ИНН: 02508201610067 [13:13:12]line Контрольно-Кассовый Чек [13:13:12]line ПРОДАЖА [13:13:12]line ТРК (МРК, ГНК) : 21 [13:13:12]line Товар: 2710194210 [13:13:12]line ДТ(л)-К-5 [13:13:12]line 34.430 * 72.60 [13:13:12]line = 2499.62 [13:13:12]line НДС 12% НСП 1% [13:13:12]line > о реализуемом товаре [13:13:12]line ИТОГО: 2499.62 [13:13:12]line НСП 1% : 22.12 [13:13:12]line НДС 12% : 265.45 [13:13:12]line Наличными: 0.00 [13:13:12]line Безнал.: 2499.62 [13:13:12]line Место: АЗС № 140 "Партнер Нефть" [13:13:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:13:12]line СНО: Общий режим [13:13:12]line Чек 196 13.07.2024 13:13 [13:13:12]line Смена: 462 ФФД: 1.0 [13:13:12]line ЗНМ: 0300000129 [13:13:12]line РНМ: 0000000000090858 [13:13:12]line Версия ККМ: 001 [13:13:12]line Платежная система: O! деньги [13:13:12]line ФМ: 0000000000874899 [13:13:12]line ФД: 162528 [13:13:12]line ФПД: 170830004298997 [13:13:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131310&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162528&fm=170830004298997&tin=02508201610067®Number=0000000000090858&sum=249962 [13:13:12]written 0, free lines is 4095 [13:13:12]OFD Sender: Processing packet 162528 [packets to send 106, broken 105] [13:13:12]ProducePacketName [13:13:12]name=ofd_packets/00162528 [13:13:12]OFD Sender: To server: pG, [13:13:12]CommunicateWithHost lk.salyk.kg:30040 [13:13:12]ConnectInit lk.salyk.kg [13:13:12]Connected sock=10 [13:13:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BB 9B 08 01 84 E0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 66 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7A 02 00 35 04 06 00 9B 5E 75 B9 24 F5 B7 50 91 75 85 DD 99 3C [13:13:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1E E8 47 00 6C 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E0 7A 02 00 F4 03 04 00 75 29 92 66 B6 04 01 00 00 94 01 78 0A 1D F6 5B DA [13:13:12]CommunicateWithHost err = 0 [13:13:12]CheckOFDResponse [13:13:12]1017 (14) - 77093643461234 [13:13:12]1041 (16) - 0000000000874899 [13:13:12]1040 (4) - 162528 [13:13:12]1012 (4) - 13.07.2024 07:15 [13:13:12]1206 (1) - 0 [13:13:12]OFD Sender: Remove packet 162528 [13:13:12]ProducePacketName [13:13:12]name=ofd_packets/00162528 [13:13:12]NVStorageDeleteData [13:13:12]Write to MH i2c: 01 00 00 26 02 28 [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 07 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: 01 07 00 26 02 00 00 00 00 00 FB 0C 36 [13:13:12]RasterBufferAndPrint [13:13:12]line [13:13:12]line [13:13:12]line [13:13:12]line [13:13:12]line [13:13:12]written 0, free lines is 3329 [13:13:12]MH_Cut [13:13:12]Write to MH i2c: D1 01 00 2D 02 01 01 [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: D1 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: D1 01 00 [13:13:12]MH_I2C_Read... [13:13:12]Read from MH i2c: D1 01 00 2D 02 00 00 [13:13:12]Write to MH i2c: 01 00 00 2E 02 30 [13:13:12]Write i2c OK [13:13:12]MH_I2C_Read... [13:13:13]OFD Sender: No OFD packet to send [13:13:13]*** Cut start [13:13:13]*** Purtial cut [13:13:13]*** CUTSNS_PIN = 0 [13:13:13]*** Stage 1: CUTSNS_PIN = 1 [13:13:15]Read from MH i2c: 01 [13:13:15]MH_I2C_Read... [13:13:15]*** Stop cut motor [13:13:15]*** Cut end [13:13:15]Read from MH i2c: 01 07 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: 01 07 00 2E 02 00 00 00 00 00 FF 0F 45 [13:13:15]process_action close_receipt done [13:13:15]requested_data is exist [13:13:15]produce_requested_data [13:13:15]requested_item fm.sn is exist - process it [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 11 00 00 [13:13:15]Write to MH i2c: E2 08 00 2F 02 80 11 00 00 00 00 00 00 AB [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 17 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 17 00 2F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [13:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:13:15]wFMCommunicate OK [13:13:15]requested_item fd.num is exist - process it [13:13:15]SAM_PROTO_GetFieldsCounters [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 13 00 00 [13:13:15]Write to MH i2c: E2 08 00 30 02 80 13 00 00 00 00 00 00 AE [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 62 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 62 00 30 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [13:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:15]wFMCommunicate OK [13:13:15]SAM_PROTO_GetFieldsCounters done [13:13:15]requested_item shift.num is exist - process it [13:13:15]requested_item shift.opened is exist - process it [13:13:15]req_shift_opened [13:13:15]FM_GetShiftState [13:13:15]SAM_PROTO_GetShiftState [13:13:15]wFMCommunicate request_size=4 [13:13:15]MH_SAM_APDU [13:13:15]CAPDU: 80 13 01 00 [13:13:15]Write to MH i2c: E2 08 00 31 02 80 13 01 00 00 00 00 00 B0 [13:13:15]Write i2c OK [13:13:15]MH_I2C_Read... [13:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:15]Read from MH i2c: E2 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 0E 00 [13:13:15]MH_I2C_Read... [13:13:15]Read from MH i2c: E2 0E 00 31 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AA [13:13:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:13:15]wFMCommunicate OK [13:13:15]SAM_PROTO_GetShiftState done [13:13:15]FM_GetShiftState done [13:13:15]req_shift_opened done [13:13:15]requested_item shift.open_date is exist - process it [13:13:15]req_shift_open_date [13:13:15]req_shift_open_date done [13:13:15]produce_requested_data done [13:13:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162528,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:13:15]process_action_free close_receipt [13:13:15]json_value_free [13:13:15]json_value_free done [13:13:15]process_json_proto returns [13:13:15]Send response to host [13:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162528,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:13:15]free response buf [13:13:15]execute_script done [13:13:15]execute_script returns [13:13:15]free content buf [13:13:15]Sock 7.Close socket [13:13:15]Sock 7.Thread stoped [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:36]accept exits with 9 [13:15:36]New connection [13:15:36]New thread 3067366756 created [13:15:36]Thread 3067510116 joined [13:15:36]Waiting for new connection... [13:15:36] Sock 9.Parse request [13:15:36]Sock 9.Check first char [13:15:36]Sock 9.First char is OK [13:15:36]request: POST /json_proto HTTP/1.0 [13:15:36]Method: POST [13:15:36]URL: /json_proto [13:15:36]Method is POST - this is cgi request [13:15:36]url: /json_proto [13:15:36]query_string will be loaded in cgi processing [13:15:36]execute_cgi json_proto POST (null) [13:15:36]execute_cgi path=json_proto method=POST [13:15:36]POST find Content-Length [13:15:36]Host: 172.17.39.67:8080 [13:15:36]Content-Length: 809 [13:15:36]Content-Type: application/json [13:15:36] [13:15:36]POST finish read [13:15:36]Found Content-Length = 809 [13:15:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.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" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:36]execute_script... [13:15: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)1319078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.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" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:15:36]POST & json_proto [13:15:36]process_json_proto [13:15:36]json parsed OK: [13:15:36]protocol is kg_v1.0 [13:15:36]action value=close_receipt [13:15:36]process_action close_receipt [13:15:36]cmd_close_receipt [13:15:36]MH_GetDate [13:15:36]Write to MH i2c: F0 00 00 32 02 23 [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: F0 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: F0 09 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: F0 09 00 32 02 00 F8 7D 92 66 86 7C 92 66 93 [13:15:36]GetLastDocTimeStamp 1720876390 [13:15:36]current date 1720876536 [13:15:36]FM_GetShiftState [13:15:36]SAM_PROTO_GetShiftState [13:15:36]wFMCommunicate request_size=4 [13:15:36]MH_SAM_APDU [13:15:36]CAPDU: 80 13 01 00 [13:15:36]Write to MH i2c: E2 08 00 33 02 80 13 01 00 00 00 00 00 B2 [13:15:36]Write i2c OK [13:15:36]MH_I2C_Read... [13:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:36]Read from MH i2c: E2 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 0E 00 [13:15:36]MH_I2C_Read... [13:15:36]Read from MH i2c: E2 0E 00 33 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AC [13:15:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:15:36]wFMCommunicate OK [13:15:36]SAM_PROTO_GetShiftState done [13:15:36]FM_GetShiftState done [13:15:36]opened in 1720828979 [13:15:36]opened+sec_in_day 1720915379 [13:15:36]quantity*price = 145200 [13:15:36]sum+1 = 145201 [13:15:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1452.00 НСП 1% : 12.85 НДС 12% : 154.19 Наличными: 0.00 Безнал.: 1452.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 197 13.07.2024 13:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162529 ФПД: 176427005921055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131536&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162529&fm=176427005921055&tin=02508201610067®Number=0000000000090858&sum=145200 [13:15:37]StoreToDocumentArchive [13:15:37]shift 462 fd 162529 [13:15:37]save to /storage/0462/doc_00162529 [13:15:37]save last doc name /storage/0462/doc_00162529 to /storage/kkm_last_doc_name [13:15:37]save OK [13:15:37]Clear old archive folders... [13:15:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:15:37]tlvbuf is 006C3440 [13:15:37]SAM_PROTO_ClearQueue [13:15:37]wFMCommunicate request_size=4 [13:15:37]MH_SAM_APDU [13:15:37]CAPDU: 80 09 00 00 [13:15:37]Write to MH i2c: E2 08 00 40 02 80 09 00 00 00 00 00 00 B4 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:37]Read from MH i2c: E2 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 03 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [13:15:37]RAPDU: 90 00 [13:15:37]wFMCommunicate OK [13:15:37]SAM_PROTO_ClearQueue done [13:15:37]KKMCreateOFDPacket [13:15:37]OFDProtocolAddRootSTLVToBuf [13:15:37]FM_MakeSignedData [13:15:37]FM_MakeSignedData [13:15:37]SAM_PROTO_SignData [13:15:37]wFMCommunicate request_size=4 [13:15:37]MH_SAM_APDU [13:15:37]CAPDU: 80 0D 01 02 [13:15:37]Write to MH i2c: E2 08 00 41 02 80 0D 01 02 00 00 00 00 BC [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:37]Read from MH i2c: E2 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 03 00 [13:15:37]MH_I2C_Read... [13:15:37]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [13:15:37]RAPDU: 90 00 [13:15:37]wFMCommunicate OK [13:15:37]wFMCommunicate request_size=255 [13:15:37]MH_SAM_APDU [13:15:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 F8 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7A 02 00 35 04 06 00 [13:15:37]Write to MH i2c: E2 02 01 42 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 F8 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7A 02 00 35 04 06 00 00 00 13 [13:15:37]Write i2c OK [13:15:37]MH_I2C_Read... [13:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:38]Read from MH i2c: E2 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: E2 03 00 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: E2 03 00 42 02 00 90 00 B8 [13:15:38]RAPDU: 90 00 [13:15:38]wFMCommunicate OK [13:15:38]wFMCommunicate request_size=11 [13:15:38]MH_SAM_APDU [13:15:38]CAPDU: 80 0D 02 02 06 A0 75 9D 04 47 1F [13:15:38]Write to MH i2c: E2 0E 00 43 02 80 0D 02 02 06 00 A0 75 9D 04 47 1F 00 00 E7 [13:15:38]Write i2c OK [13:15:38]MH_I2C_Read... [13:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:38]Read from MH i2c: E2 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: E2 03 00 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: E2 03 00 43 02 00 90 00 B9 [13:15:38]RAPDU: 90 00 [13:15:38]wFMCommunicate OK [13:15:38]wFMCommunicate request_size=4 [13:15:38]MH_SAM_APDU [13:15:38]CAPDU: 80 0D 03 02 [13:15:38]Write to MH i2c: E2 08 00 44 02 80 0D 03 02 00 00 00 00 C1 [13:15:38]Write i2c OK [13:15:38]MH_I2C_Read... [13:15:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:38]Read from MH i2c: E2 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: E2 0B 00 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: E2 0B 00 44 02 00 C5 4B 23 29 67 FE D6 70 90 00 C9 [13:15:38]RAPDU: C5 4B 23 29 67 FE D6 70 90 00 [13:15:38]wFMCommunicate OK [13:15:38]SAM_PROTO_SignData done [13:15:38]FM_MakeSignedData done [13:15:38]CreateOFDProtocolMessage [13:15:38]wFMCommunicate request_size=4 [13:15:38]MH_SAM_APDU [13:15:38]CAPDU: 80 11 00 00 [13:15:38]Write to MH i2c: E2 08 00 45 02 80 11 00 00 00 00 00 00 C1 [13:15:38]Write i2c OK [13:15:38]MH_I2C_Read... [13:15:38]OFD Sender: No OFD packet to send [13:15:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:38]Read from MH i2c: E2 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: E2 17 00 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: E2 17 00 45 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [13:15:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:15:38]wFMCommunicate OK [13:15:38]CreateOFDProtocolMessage done [13:15:38]OFDSenderStorePacket 162529 [13:15:38]StoreOFDPacket docnum=162529 [13:15:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C0 A8 08 01 6F DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 F8 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7A 02 00 35 04 06 00 A0 75 9D 04 47 1F C5 4B 23 29 67 FE D6 70 [13:15:38]CheckFolder [13:15:38]dirname=/storage/ofd_packets [13:15:38]CheckFolder done [13:15:38]ProducePacketName [13:15:38]name=ofd_packets/00162529 [13:15:38]NVStorageSaveData ofd_packets/00162529 [13:15:38]File name is /storage/ofd_packets/00162529 [13:15:38]Write 302 bytes [13:15:38]NVStorageSaveData done [13:15:38]OFDSenderStorePacket done [13:15:38]KKMCreateOFDPacket done [13:15:38]NVStorageSaveData kkm_last_timestamp [13:15:38]File name is /storage/kkm_last_timestamp [13:15:38]Write 4 bytes [13:15:38]NVStorageSaveData done [13:15:38]ExternCall_PrintAddStr [13:15:38]wPrintStart [13:15:38]Write to MH i2c: 01 00 00 46 02 48 [13:15:38]Write i2c OK [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: 01 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: 01 07 00 [13:15:38]MH_I2C_Read... [13:15:38]Read from MH i2c: 01 07 00 46 02 00 00 00 00 00 FF 0F 5D [13:15:38]RasterBufferAndPrint [13:15:38]line Счет N : (1)1319078 [13:15:38]line ИНН: 02508201610067 [13:15:38]line Контрольно-Кассовый Чек [13:15:38]line ПРОДАЖА [13:15:38]line ТРК (МРК, ГНК) : 41 [13:15:38]line Товар: 2710194210 [13:15:38]line ДТ(л)-К-5 [13:15:38]line 20.000 * 72.60 [13:15:38]line = 1452.00 [13:15:38]line НДС 12% НСП 1% [13:15:38]line > о реализуемом товаре [13:15:38]line ИТОГО: 1452.00 [13:15:38]line НСП 1% : 12.85 [13:15:38]line НДС 12% : 154.19 [13:15:38]line Наличными: 0.00 [13:15:38]line Безнал.: 1452.00 [13:15:38]line Место: АЗС № 140 "Партнер Нефть" [13:15:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:15:38]line СНО: Общий режим [13:15:38]line Чек 197 13.07.2024 13:15 [13:15:38]line Смена: 462 ФФД: 1.0 [13:15:38]line ЗНМ: 0300000129 [13:15:38]line РНМ: 0000000000090858 [13:15:38]line Версия ККМ: 001 [13:15:38]line Платежная система: O! деньги [13:15:38]line ФМ: 0000000000874899 [13:15:38]line ФД: 162529 [13:15:38]line ФПД: 176427005921055 [13:15:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131536&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162529&fm=176427005921055&tin=02508201610067®Number=0000000000090858&sum=145200 [13:15:38]OFD Sender: Processing packet 162529 [packets to send 106, broken 105] [13:15:38]ProducePacketName [13:15:38]name=ofd_packets/00162529 [13:15:38]OFD Sender: To server: pG, [13:15:38]CommunicateWithHost lk.salyk.kg:30040 [13:15:38]ConnectInit lk.salyk.kg [13:15:38]written 0, free lines is 4095 [13:15:38]Connected sock=10 [13:15:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C0 A8 08 01 6F DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 F8 7D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7A 02 00 35 04 06 00 A0 75 9D 04 47 1F C5 4B 23 29 67 FE D6 70 [13:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9B 2A 47 00 9D 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E1 7A 02 00 F4 03 04 00 08 2A 92 66 B6 04 01 00 00 29 79 02 37 17 C7 9C 44 [13:15:39]CommunicateWithHost err = 0 [13:15:39]CheckOFDResponse [13:15:39]1017 (14) - 77093643461234 [13:15:39]1041 (16) - 0000000000874899 [13:15:39]1040 (4) - 162529 [13:15:39]1012 (4) - 13.07.2024 07:17 [13:15:39]1206 (1) - 0 [13:15:39]OFD Sender: Remove packet 162529 [13:15:39]ProducePacketName [13:15:39]name=ofd_packets/00162529 [13:15:39]NVStorageDeleteData [13:15:39]Write to MH i2c: 01 00 00 70 02 72 [13:15:39]Write i2c OK [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: 01 [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: 01 07 00 [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FA 0C 7F [13:15:39]RasterBufferAndPrint [13:15:39]line [13:15:39]line [13:15:39]line [13:15:39]line [13:15:39]line [13:15:39]written 0, free lines is 3328 [13:15:39]MH_Cut [13:15:39]Write to MH i2c: D1 01 00 77 02 01 4B [13:15:39]Write i2c OK [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: D1 [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: D1 01 00 [13:15:39]MH_I2C_Read... [13:15:39]Read from MH i2c: D1 01 00 77 02 00 4A [13:15:39]Write to MH i2c: 01 00 00 78 02 7A [13:15:39]Write i2c OK [13:15:39]MH_I2C_Read... [13:15:39]OFD Sender: No OFD packet to send [13:15:39]*** Cut start [13:15:39]*** Purtial cut [13:15:39]*** Stage 1: CUTSNS_PIN = 1 [13:15:40]Read from MH i2c: 01 [13:15:40]MH_I2C_Read... [13:15:40]*** Stop cut motor [13:15:40]*** Cut end [13:15:40]Read from MH i2c: 01 07 00 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 FF 0F 8F [13:15:40]process_action close_receipt done [13:15:40]requested_data is exist [13:15:40]produce_requested_data [13:15:40]requested_item fm.sn is exist - process it [13:15:40]wFMCommunicate request_size=4 [13:15:40]MH_SAM_APDU [13:15:40]CAPDU: 80 11 00 00 [13:15:40]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [13:15:40]Write i2c OK [13:15:40]MH_I2C_Read... [13:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:40]Read from MH i2c: E2 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 17 00 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 55 [13:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:15:40]wFMCommunicate OK [13:15:40]requested_item fd.num is exist - process it [13:15:40]SAM_PROTO_GetFieldsCounters [13:15:40]wFMCommunicate request_size=4 [13:15:40]MH_SAM_APDU [13:15:40]CAPDU: 80 13 00 00 [13:15:40]Write to MH i2c: E2 08 00 7A 02 80 13 00 00 00 00 00 00 F8 [13:15:40]Write i2c OK [13:15:40]MH_I2C_Read... [13:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:40]Read from MH i2c: E2 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 62 00 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 62 00 7A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [13:15:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:40]wFMCommunicate OK [13:15:40]SAM_PROTO_GetFieldsCounters done [13:15:40]requested_item shift.num is exist - process it [13:15:40]requested_item shift.opened is exist - process it [13:15:40]req_shift_opened [13:15:40]FM_GetShiftState [13:15:40]SAM_PROTO_GetShiftState [13:15:40]wFMCommunicate request_size=4 [13:15:40]MH_SAM_APDU [13:15:40]CAPDU: 80 13 01 00 [13:15:40]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [13:15:40]Write i2c OK [13:15:40]MH_I2C_Read... [13:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:40]Read from MH i2c: E2 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 0E 00 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F4 [13:15:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:15:40]wFMCommunicate OK [13:15:40]SAM_PROTO_GetShiftState done [13:15:40]FM_GetShiftState done [13:15:40]req_shift_opened done [13:15:40]requested_item shift.open_date is exist - process it [13:15:40]req_shift_open_date [13:15:40]req_shift_open_date done [13:15:40]produce_requested_data done [13:15:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162529,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:15:40]process_action_free close_receipt [13:15:40]json_value_free [13:15:40]json_value_free done [13:15:40]process_json_proto returns [13:15:40]Send response to host [13:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162529,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:15:40]free response buf [13:15:40]execute_script done [13:15:40]execute_script returns [13:15:40]free content buf [13:15:40]Sock 9.Close socket [13:15:40]Sock 9.Thread stoped [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:47]accept exits with 7 [13:16:47]New connection [13:16:47]New thread 3067510116 created [13:16:47]Thread 3067366756 joined [13:16:47]Waiting for new connection... [13:16:47] Sock 7.Parse request [13:16:47]Sock 7.Check first char [13:16:47]Sock 7.First char is OK [13:16:47]request: POST /json_proto HTTP/1.0 [13:16:47]Method: POST [13:16:47]URL: /json_proto [13:16:47]Method is POST - this is cgi request [13:16:47]url: /json_proto [13:16:47]query_string will be loaded in cgi processing [13:16:47]execute_cgi json_proto POST (null) [13:16:47]execute_cgi path=json_proto method=POST [13:16:47]POST find Content-Length [13:16:47]Host: 172.17.39.67:8080 [13:16:47]Content-Length: 688 [13:16:47]Content-Type: application/json [13:16:47] [13:16:47]POST finish read [13:16:47]Found Content-Length = 688 [13:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:16:47]execute_script... [13:16: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)1319079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:16:47]POST & json_proto [13:16:47]process_json_proto [13:16:47]json parsed OK: [13:16:47]protocol is kg_v1.0 [13:16:47]action value=close_receipt [13:16:47]process_action close_receipt [13:16:47]cmd_close_receipt [13:16:47]MH_GetDate [13:16:47]Write to MH i2c: F0 00 00 7C 02 6D [13:16:47]Write i2c OK [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 09 00 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: F0 09 00 7C 02 00 3F 7E 92 66 86 7C 92 66 25 [13:16:47]GetLastDocTimeStamp 1720876536 [13:16:47]current date 1720876607 [13:16:47]FM_GetShiftState [13:16:47]SAM_PROTO_GetShiftState [13:16:47]wFMCommunicate request_size=4 [13:16:47]MH_SAM_APDU [13:16:47]CAPDU: 80 13 01 00 [13:16:47]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [13:16:47]Write i2c OK [13:16:47]MH_I2C_Read... [13:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:47]Read from MH i2c: E2 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 0E 00 [13:16:47]MH_I2C_Read... [13:16:47]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F6 [13:16:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:16:47]wFMCommunicate OK [13:16:47]SAM_PROTO_GetShiftState done [13:16:47]FM_GetShiftState done [13:16:47]opened in 1720828979 [13:16:47]opened+sec_in_day 1720915379 [13:16:47]quantity*price = 100042 [13:16:47]sum+1 = 100044 [13:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 198 13.07.2024 13:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162530 ФПД: 271466166148835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131647&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162530&fm=271466166148835&tin=02508201610067®Number=0000000000090858&sum=100000 [13:16:48]StoreToDocumentArchive [13:16:48]shift 462 fd 162530 [13:16:48]save to /storage/0462/doc_00162530 [13:16:48]save last doc name /storage/0462/doc_00162530 to /storage/kkm_last_doc_name [13:16:48]save OK [13:16:48]Clear old archive folders... [13:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:16:48]tlvbuf is 006AE8B0 [13:16:48]SAM_PROTO_ClearQueue [13:16:48]wFMCommunicate request_size=4 [13:16:48]MH_SAM_APDU [13:16:48]CAPDU: 80 09 00 00 [13:16:48]Write to MH i2c: E2 08 00 8A 02 80 09 00 00 00 00 00 00 FE [13:16:48]Write i2c OK [13:16:48]MH_I2C_Read... [13:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:48]Read from MH i2c: E2 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 03 00 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [13:16:48]RAPDU: 90 00 [13:16:48]wFMCommunicate OK [13:16:48]SAM_PROTO_ClearQueue done [13:16:48]KKMCreateOFDPacket [13:16:48]OFDProtocolAddRootSTLVToBuf [13:16:48]FM_MakeSignedData [13:16:48]FM_MakeSignedData [13:16:48]SAM_PROTO_SignData [13:16:48]wFMCommunicate request_size=4 [13:16:48]MH_SAM_APDU [13:16:48]CAPDU: 80 0D 01 02 [13:16:48]Write to MH i2c: E2 08 00 8B 02 80 0D 01 02 00 00 00 00 06 [13:16:48]Write i2c OK [13:16:48]MH_I2C_Read... [13:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:48]Read from MH i2c: E2 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 03 00 [13:16:48]MH_I2C_Read... [13:16:48]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [13:16:48]RAPDU: 90 00 [13:16:48]wFMCommunicate OK [13:16:48]wFMCommunicate request_size=255 [13:16:48]MH_SAM_APDU [13:16:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 C6 00 00 00 F4 03 04 00 3F 7E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7A 02 00 35 04 06 00 [13:16:48]Write to MH i2c: E2 02 01 8C 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 C6 00 00 00 F4 03 04 00 3F 7E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7A 02 00 35 04 06 00 00 00 47 [13:16:48]Write i2c OK [13:16:48]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=11 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 02 02 06 F6 E5 A4 66 DE E3 [13:16:49]Write to MH i2c: E2 0E 00 8D 02 80 0D 02 02 06 00 F6 E5 A4 66 DE E3 00 00 BB [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [13:16:49]RAPDU: 90 00 [13:16:49]wFMCommunicate OK [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 0D 03 02 [13:16:49]Write to MH i2c: E2 08 00 8E 02 80 0D 03 02 00 00 00 00 0B [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0B 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 0B 00 8E 02 00 DA 83 84 06 F0 0D 72 75 90 00 D7 [13:16:49]RAPDU: DA 83 84 06 F0 0D 72 75 90 00 [13:16:49]wFMCommunicate OK [13:16:49]SAM_PROTO_SignData done [13:16:49]FM_MakeSignedData done [13:16:49]CreateOFDProtocolMessage [13:16:49]wFMCommunicate request_size=4 [13:16:49]MH_SAM_APDU [13:16:49]CAPDU: 80 11 00 00 [13:16:49]Write to MH i2c: E2 08 00 8F 02 80 11 00 00 00 00 00 00 0B [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:49]Read from MH i2c: E2 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 17 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: E2 17 00 8F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6B [13:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:16:49]wFMCommunicate OK [13:16:49]CreateOFDProtocolMessage done [13:16:49]OFDSenderStorePacket 162530 [13:16:49]StoreOFDPacket docnum=162530 [13:16:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 03 FE 08 01 36 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 C6 00 00 00 F4 03 04 00 3F 7E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7A 02 00 35 04 06 00 F6 E5 A4 66 DE E3 DA 83 84 06 F0 0D 72 75 [13:16:49]CheckFolder [13:16:49]dirname=/storage/ofd_packets [13:16:49]CheckFolder done [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00162530 [13:16:49]NVStorageSaveData ofd_packets/00162530 [13:16:49]File name is /storage/ofd_packets/00162530 [13:16:49]Write 302 bytes [13:16:49]NVStorageSaveData done [13:16:49]OFDSenderStorePacket done [13:16:49]KKMCreateOFDPacket done [13:16:49]NVStorageSaveData kkm_last_timestamp [13:16:49]File name is /storage/kkm_last_timestamp [13:16:49]Write 4 bytes [13:16:49]NVStorageSaveData done [13:16:49]ExternCall_PrintAddStr [13:16:49]wPrintStart [13:16:49]Write to MH i2c: 01 00 00 90 02 92 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [13:16:49]RasterBufferAndPrint [13:16:49]line Счет N : (1)1319079 [13:16:49]line ИНН: 02508201610067 [13:16:49]line Контрольно-Кассовый Чек [13:16:49]line ПРОДАЖА [13:16:49]line ТРК (МРК, ГНК) : 21 [13:16:49]line Товар: 2710194210 [13:16:49]line ДТ(л)-К-5 [13:16:49]line 13.780 * 72.60 [13:16:49]line = 1000.43 [13:16:49]line НДС 12% НСП 1% [13:16:49]line > о реализуемом товаре [13:16:49]line ОКРУГЛЕНИЕ: -0.43 [13:16:49]line ИТОГО: 1000.00 [13:16:49]line Внесено: 1000.00 [13:16:49]line СДАЧА: 0.00 [13:16:49]line НСП 1% : 8.85 [13:16:49]line НДС 12% : 106.24 [13:16:49]line Наличными: 1000.00 [13:16:49]line Безнал.: 0.00 [13:16:49]line Место: АЗС № 140 "Партнер Нефть" [13:16:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:16:49]line СНО: Общий режим [13:16:49]line Чек 198 13.07.2024 13:16 [13:16:49]line Смена: 462 ФФД: 1.0 [13:16:49]line ЗНМ: 0300000129 [13:16:49]line РНМ: 0000000000090858 [13:16:49]line Версия ККМ: 001 [13:16:49]line ФМ: 0000000000874899 [13:16:49]line ФД: 162530 [13:16:49]line ФПД: 271466166148835 [13:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T131647&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162530&fm=271466166148835&tin=02508201610067®Number=0000000000090858&sum=100000 [13:16:49]written 0, free lines is 4095 [13:16:49]OFD Sender: Processing packet 162530 [packets to send 106, broken 105] [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00162530 [13:16:49]OFD Sender: To server: pG, [13:16:49]CommunicateWithHost lk.salyk.kg:30040 [13:16:49]ConnectInit lk.salyk.kg [13:16:49]Connected sock=11 [13:16:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 03 FE 08 01 36 00 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 C6 00 00 00 F4 03 04 00 3F 7E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7A 02 00 35 04 06 00 F6 E5 A4 66 DE E3 DA 83 84 06 F0 0D 72 75 [13:16:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 53 E1 47 00 AE FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E2 7A 02 00 F4 03 04 00 4E 2A 92 66 B6 04 01 00 00 B0 39 4A 91 A7 AF 3C CD [13:16:49]CommunicateWithHost err = 0 [13:16:49]CheckOFDResponse [13:16:49]1017 (14) - 77093643461234 [13:16:49]1041 (16) - 0000000000874899 [13:16:49]1040 (4) - 162530 [13:16:49]1012 (4) - 13.07.2024 07:18 [13:16:49]1206 (1) - 0 [13:16:49]OFD Sender: Remove packet 162530 [13:16:49]ProducePacketName [13:16:49]name=ofd_packets/00162530 [13:16:49]NVStorageDeleteData [13:16:49]Write to MH i2c: 01 00 00 BB 02 BD [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 E5 0C B5 [13:16:49]RasterBufferAndPrint [13:16:49]line [13:16:49]line [13:16:49]line [13:16:49]line [13:16:49]line [13:16:49]written 0, free lines is 3307 [13:16:49]MH_Cut [13:16:49]Write to MH i2c: D1 01 00 C2 02 01 96 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: D1 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: D1 01 00 [13:16:49]MH_I2C_Read... [13:16:49]Read from MH i2c: D1 01 00 C2 02 00 95 [13:16:49]Write to MH i2c: 01 00 00 C3 02 C5 [13:16:49]Write i2c OK [13:16:49]MH_I2C_Read... [13:16:50]OFD Sender: No OFD packet to send [13:16:50]*** Cut start [13:16:50]*** Purtial cut [13:16:50]*** CUTSNS_PIN = 0 [13:16:50]*** Stage 1: CUTSNS_PIN = 1 [13:16:52]Read from MH i2c: 01 [13:16:52]MH_I2C_Read... [13:16:52]*** Stop cut motor [13:16:52]*** Cut end [13:16:52]Read from MH i2c: 01 07 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 FF 0F DA [13:16:52]process_action close_receipt done [13:16:52]requested_data is exist [13:16:52]produce_requested_data [13:16:52]requested_item fm.sn is exist - process it [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 11 00 00 [13:16:52]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 17 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A0 [13:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:16:52]wFMCommunicate OK [13:16:52]requested_item fd.num is exist - process it [13:16:52]SAM_PROTO_GetFieldsCounters [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 13 00 00 [13:16:52]Write to MH i2c: E2 08 00 C5 02 80 13 00 00 00 00 00 00 43 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 62 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 62 00 C5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [13:16:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_GetFieldsCounters done [13:16:52]requested_item shift.num is exist - process it [13:16:52]requested_item shift.opened is exist - process it [13:16:52]req_shift_opened [13:16:52]FM_GetShiftState [13:16:52]SAM_PROTO_GetShiftState [13:16:52]wFMCommunicate request_size=4 [13:16:52]MH_SAM_APDU [13:16:52]CAPDU: 80 13 01 00 [13:16:52]Write to MH i2c: E2 08 00 C6 02 80 13 01 00 00 00 00 00 45 [13:16:52]Write i2c OK [13:16:52]MH_I2C_Read... [13:16:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:52]Read from MH i2c: E2 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0E 00 [13:16:52]MH_I2C_Read... [13:16:52]Read from MH i2c: E2 0E 00 C6 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3F [13:16:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:16:52]wFMCommunicate OK [13:16:52]SAM_PROTO_GetShiftState done [13:16:52]FM_GetShiftState done [13:16:52]req_shift_opened done [13:16:52]requested_item shift.open_date is exist - process it [13:16:52]req_shift_open_date [13:16:52]req_shift_open_date done [13:16:52]produce_requested_data done [13:16:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162530,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:16:52]process_action_free close_receipt [13:16:52]json_value_free [13:16:52]json_value_free done [13:16:52]process_json_proto returns [13:16:52]Send response to host [13:16:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162530,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:16:52]free response buf [13:16:52]execute_script done [13:16:52]execute_script returns [13:16:52]free content buf [13:16:52]Sock 7.Close socket [13:16:52]Sock 7.Thread stoped [13:16:55]OFD Sender: No OFD packet to send [13:17:00]OFD Sender: No OFD packet to send [13:17:05]OFD Sender: No OFD packet to send [13:17:10]OFD Sender: No OFD packet to send [13:17:15]OFD Sender: No OFD packet to send [13:17:20]OFD Sender: No OFD packet to send [13:17:25]OFD Sender: No OFD packet to send [13:17:30]OFD Sender: No OFD packet to send [13:17:35]OFD Sender: No OFD packet to send [13:17:40]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]accept exits with 9 [13:20:10]New connection [13:20:10]New thread 3067366756 created [13:20:10]Thread 3067510116 joined [13:20:10]Waiting for new connection... [13:20:10] Sock 9.Parse request [13:20:10]Sock 9.Check first char [13:20:10]Sock 9.First char is OK [13:20:10]request: POST /json_proto HTTP/1.0 [13:20:10]Method: POST [13:20:10]URL: /json_proto [13:20:10]Method is POST - this is cgi request [13:20:10]url: /json_proto [13:20:10]query_string will be loaded in cgi processing [13:20:10]execute_cgi json_proto POST (null) [13:20:10]execute_cgi path=json_proto method=POST [13:20:10]POST find Content-Length [13:20:10]Host: 172.17.39.67:8080 [13:20:10]Content-Length: 809 [13:20:10]Content-Type: application/json [13:20:10] [13:20:10]POST finish read [13:20:10]Found Content-Length = 809 [13:20:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:10]execute_script... [13: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)1319080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:10]POST & json_proto [13:20:10]process_json_proto [13:20:10]json parsed OK: [13:20:10]protocol is kg_v1.0 [13:20:10]action value=close_receipt [13:20:10]process_action close_receipt [13:20:10]cmd_close_receipt [13:20:10]MH_GetDate [13:20:10]Write to MH i2c: F0 00 00 C7 02 B8 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 09 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: F0 09 00 C7 02 00 0A 7F 92 66 86 7C 92 66 3C [13:20:10]GetLastDocTimeStamp 1720876607 [13:20:10]current date 1720876810 [13:20:10]FM_GetShiftState [13:20:10]SAM_PROTO_GetShiftState [13:20:10]wFMCommunicate request_size=4 [13:20:10]MH_SAM_APDU [13:20:10]CAPDU: 80 13 01 00 [13:20:10]Write to MH i2c: E2 08 00 C8 02 80 13 01 00 00 00 00 00 47 [13:20:10]Write i2c OK [13:20:10]MH_I2C_Read... [13:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:10]Read from MH i2c: E2 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 0E 00 [13:20:10]MH_I2C_Read... [13:20:10]Read from MH i2c: E2 0E 00 C8 02 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 41 [13:20:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:20:10]wFMCommunicate OK [13:20:10]SAM_PROTO_GetShiftState done [13:20:10]FM_GetShiftState done [13:20:10]opened in 1720828979 [13:20:10]opened+sec_in_day 1720915379 [13:20:10]quantity*price = 199940 [13:20:10]sum+1 = 199941 [13:20:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1999.40 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 0.00 Безнал.: 1999.40 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 199 13.07.2024 13:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162531 ФПД: 60533981788328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T132010&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162531&fm=60533981788328&tin=02508201610067®Number=0000000000090858&sum=199940 [13:20:11]StoreToDocumentArchive [13:20:11]shift 462 fd 162531 [13:20:11]save to /storage/0462/doc_00162531 [13:20:11]save last doc name /storage/0462/doc_00162531 to /storage/kkm_last_doc_name [13:20:11]save OK [13:20:11]Clear old archive folders... [13:20:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:20:11]tlvbuf is 006C52F0 [13:20:11]SAM_PROTO_ClearQueue [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 09 00 00 [13:20:11]Write to MH i2c: E2 08 00 D5 02 80 09 00 00 00 00 00 00 49 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [13:20:11]RAPDU: 90 00 [13:20:11]wFMCommunicate OK [13:20:11]SAM_PROTO_ClearQueue done [13:20:11]KKMCreateOFDPacket [13:20:11]OFDProtocolAddRootSTLVToBuf [13:20:11]FM_MakeSignedData [13:20:11]FM_MakeSignedData [13:20:11]SAM_PROTO_SignData [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 0D 01 02 [13:20:11]Write to MH i2c: E2 08 00 D6 02 80 0D 01 02 00 00 00 00 51 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [13:20:11]RAPDU: 90 00 [13:20:11]wFMCommunicate OK [13:20:11]wFMCommunicate request_size=255 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 0A 7F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7A 02 00 35 04 06 00 [13:20:11]Write to MH i2c: E2 02 01 D7 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 0A 7F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7A 02 00 35 04 06 00 00 00 03 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [13:20:11]RAPDU: 90 00 [13:20:11]wFMCommunicate OK [13:20:11]wFMCommunicate request_size=11 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 0D 02 02 06 37 0E 2A 7B 38 A8 [13:20:11]Write to MH i2c: E2 0E 00 D8 02 80 0D 02 02 06 00 37 0E 2A 7B 38 A8 00 00 2A [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [13:20:11]RAPDU: 90 00 [13:20:11]wFMCommunicate OK [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 0D 03 02 [13:20:11]Write to MH i2c: E2 08 00 D9 02 80 0D 03 02 00 00 00 00 56 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:11]Read from MH i2c: E2 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 0B 00 [13:20:11]MH_I2C_Read... [13:20:11]Read from MH i2c: E2 0B 00 D9 02 00 8D 31 93 07 4A 28 41 70 90 00 D2 [13:20:11]RAPDU: 8D 31 93 07 4A 28 41 70 90 00 [13:20:11]wFMCommunicate OK [13:20:11]SAM_PROTO_SignData done [13:20:11]FM_MakeSignedData done [13:20:11]CreateOFDProtocolMessage [13:20:11]wFMCommunicate request_size=4 [13:20:11]MH_SAM_APDU [13:20:11]CAPDU: 80 11 00 00 [13:20:11]Write to MH i2c: E2 08 00 DA 02 80 11 00 00 00 00 00 00 56 [13:20:11]Write i2c OK [13:20:11]MH_I2C_Read... [13:20:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:12]Read from MH i2c: E2 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 17 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: E2 17 00 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B6 [13:20:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:20:12]wFMCommunicate OK [13:20:12]CreateOFDProtocolMessage done [13:20:12]OFDSenderStorePacket 162531 [13:20:12]StoreOFDPacket docnum=162531 [13:20:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 53 3D 08 01 DA 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 0A 7F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7A 02 00 35 04 06 00 37 0E 2A 7B 38 A8 8D 31 93 07 4A 28 41 70 [13:20:12]CheckFolder [13:20:12]dirname=/storage/ofd_packets [13:20:12]CheckFolder done [13:20:12]ProducePacketName [13:20:12]name=ofd_packets/00162531 [13:20:12]NVStorageSaveData ofd_packets/00162531 [13:20:12]File name is /storage/ofd_packets/00162531 [13:20:12]Write 302 bytes [13:20:12]NVStorageSaveData done [13:20:12]OFDSenderStorePacket done [13:20:12]KKMCreateOFDPacket done [13:20:12]NVStorageSaveData kkm_last_timestamp [13:20:12]File name is /storage/kkm_last_timestamp [13:20:12]Write 4 bytes [13:20:12]NVStorageSaveData done [13:20:12]ExternCall_PrintAddStr [13:20:12]wPrintStart [13:20:12]Write to MH i2c: 01 00 00 DB 02 DD [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 07 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 07 00 DB 02 00 00 00 00 00 FF 0F F2 [13:20:12]RasterBufferAndPrint [13:20:12]line Счет N : (1)1319080 [13:20:12]line ИНН: 02508201610067 [13:20:12]line Контрольно-Кассовый Чек [13:20:12]line ПРОДАЖА [13:20:12]line ТРК (МРК, ГНК) : 11 [13:20:12]line Товар: 2710194210 [13:20:12]line ДТ(л)-К-5 [13:20:12]line 27.540 * 72.60 [13:20:12]line = 1999.40 [13:20:12]line НДС 12% НСП 1% [13:20:12]line > о реализуемом товаре [13:20:12]line ИТОГО: 1999.40 [13:20:12]line НСП 1% : 17.69 [13:20:12]line НДС 12% : 212.33 [13:20:12]line Наличными: 0.00 [13:20:12]line Безнал.: 1999.40 [13:20:12]line Место: АЗС № 140 "Партнер Нефть" [13:20:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:20:12]line СНО: Общий режим [13:20:12]line Чек 199 13.07.2024 13:20 [13:20:12]line Смена: 462 ФФД: 1.0 [13:20:12]line ЗНМ: 0300000129 [13:20:12]line РНМ: 0000000000090858 [13:20:12]line Версия ККМ: 001 [13:20:12]line Платежная система: O! деньги [13:20:12]line ФМ: 0000000000874899 [13:20:12]line ФД: 162531 [13:20:12]line ФПД: 60533981788328 [13:20:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T132010&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162531&fm=60533981788328&tin=02508201610067®Number=0000000000090858&sum=199940 [13:20:12]written 0, free lines is 4095 [13:20:12]OFD Sender: Processing packet 162531 [packets to send 106, broken 105] [13:20:12]ProducePacketName [13:20:12]name=ofd_packets/00162531 [13:20:12]OFD Sender: To server: pG, [13:20:12]CommunicateWithHost lk.salyk.kg:30040 [13:20:12]ConnectInit lk.salyk.kg [13:20:12]Connected sock=10 [13: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 34 38 39 39 10 01 00 00 53 3D 08 01 DA 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 0A 7F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7A 02 00 35 04 06 00 37 0E 2A 7B 38 A8 8D 31 93 07 4A 28 41 70 [13:20:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7B 88 47 00 E5 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E3 7A 02 00 F4 03 04 00 19 2B 92 66 B6 04 01 00 00 60 CC 42 7E ED A4 01 9A [13:20:12]CommunicateWithHost err = 0 [13:20:12]CheckOFDResponse [13:20:12]1017 (14) - 77093643461234 [13:20:12]1041 (16) - 0000000000874899 [13:20:12]1040 (4) - 162531 [13:20:12]1012 (4) - 13.07.2024 07:22 [13:20:12]1206 (1) - 0 [13:20:12]OFD Sender: Remove packet 162531 [13:20:12]ProducePacketName [13:20:12]name=ofd_packets/00162531 [13:20:12]NVStorageDeleteData [13:20:12]Write to MH i2c: 01 00 00 05 03 08 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 07 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FC 0C 17 [13:20:12]RasterBufferAndPrint [13:20:12]line [13:20:12]line [13:20:12]line [13:20:12]line [13:20:12]line [13:20:12]written 0, free lines is 3330 [13:20:12]MH_Cut [13:20:12]Write to MH i2c: D1 01 00 0C 03 01 E1 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: D1 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: D1 01 00 [13:20:12]MH_I2C_Read... [13:20:12]Read from MH i2c: D1 01 00 0C 03 00 E0 [13:20:12]Write to MH i2c: 01 00 00 0D 03 10 [13:20:12]Write i2c OK [13:20:12]MH_I2C_Read... [13:20:13]OFD Sender: No OFD packet to send [13:20:13]*** Cut start [13:20:13]*** Purtial cut [13:20:13]*** Stage 1: CUTSNS_PIN = 1 [13:20:13]Read from MH i2c: 01 [13:20:13]MH_I2C_Read... [13:20:13]*** Stop cut motor [13:20:13]*** Cut end [13:20:13]Read from MH i2c: 01 07 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: 01 07 00 0D 03 00 00 00 00 00 FF 0F 25 [13:20:13]process_action close_receipt done [13:20:13]requested_data is exist [13:20:13]produce_requested_data [13:20:13]requested_item fm.sn is exist - process it [13:20:13]wFMCommunicate request_size=4 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 11 00 00 [13:20:13]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:13]Read from MH i2c: E2 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 17 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EB [13:20:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:20:13]wFMCommunicate OK [13:20:13]requested_item fd.num is exist - process it [13:20:13]SAM_PROTO_GetFieldsCounters [13:20:13]wFMCommunicate request_size=4 [13:20:13]MH_SAM_APDU [13:20:13]CAPDU: 80 13 00 00 [13:20:13]Write to MH i2c: E2 08 00 0F 03 80 13 00 00 00 00 00 00 8E [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:13]Read from MH i2c: E2 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 62 00 [13:20:13]MH_I2C_Read... [13:20:13]Read from MH i2c: E2 62 00 0F 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [13:20:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:13]wFMCommunicate OK [13:20:13]SAM_PROTO_GetFieldsCounters done [13:20:13]requested_item shift.num is exist - process it [13:20:13]requested_item shift.opened is exist - process it [13:20:13]req_shift_opened [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 10 03 80 13 01 00 00 00 00 00 90 [13:20:13]Write i2c OK [13:20:13]MH_I2C_Read... [13:20:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:14]Read from MH i2c: E2 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 0E 00 [13:20:14]MH_I2C_Read... [13:20:14]Read from MH i2c: E2 0E 00 10 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8A [13:20:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:20:14]wFMCommunicate OK [13:20:14]SAM_PROTO_GetShiftState done [13:20:14]FM_GetShiftState done [13:20:14]req_shift_opened done [13:20:14]requested_item shift.open_date is exist - process it [13:20:14]req_shift_open_date [13:20:14]req_shift_open_date done [13:20:14]produce_requested_data done [13:20:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162531,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:20:14]process_action_free close_receipt [13:20:14]json_value_free [13:20:14]json_value_free done [13:20:14]process_json_proto returns [13:20:14]Send response to host [13:20:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162531,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:20:14]free response buf [13:20:14]execute_script done [13:20:14]execute_script returns [13:20:14]free content buf [13:20:14]Sock 9.Close socket [13:20:14]Sock 9.Thread stoped [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:50]accept exits with 7 [13:22:50]New connection [13:22:50]New thread 3067510116 created [13:22:50]Thread 3067366756 joined [13:22:50]Waiting for new connection... [13:22:50] Sock 7.Parse request [13:22:50]Sock 7.Check first char [13:22:50]Sock 7.First char is OK [13:22:50]request: POST /json_proto HTTP/1.0 [13:22:50]Method: POST [13:22:50]URL: /json_proto [13:22:50]Method is POST - this is cgi request [13:22:50]url: /json_proto [13:22:50]query_string will be loaded in cgi processing [13:22:50]execute_cgi json_proto POST (null) [13:22:50]execute_cgi path=json_proto method=POST [13:22:50]POST find Content-Length [13:22:50]Host: 172.17.39.67:8080 [13:22:50]Content-Length: 809 [13:22:50]Content-Type: application/json [13:22:50] [13:22:50]POST finish read [13:22:50]Found Content-Length = 809 [13:22:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.430, "sum" : 2499.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" : 2499.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:50]execute_script... [13:22:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.430, "sum" : 2499.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" : 2499.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:50]POST & json_proto [13:22:50]process_json_proto [13:22:50]json parsed OK: [13:22:50]protocol is kg_v1.0 [13:22:50]action value=close_receipt [13:22:50]process_action close_receipt [13:22:50]cmd_close_receipt [13:22:50]MH_GetDate [13:22:50]Write to MH i2c: F0 00 00 11 03 03 [13:22:50]Write i2c OK [13:22:50]MH_I2C_Read... [13:22:50]Read from MH i2c: F0 [13:22:50]MH_I2C_Read... [13:22:50]Read from MH i2c: F0 09 00 [13:22:50]MH_I2C_Read... [13:22:50]Read from MH i2c: F0 09 00 11 03 00 AA 7F 92 66 86 7C 92 66 27 [13:22:50]GetLastDocTimeStamp 1720876810 [13:22:50]current date 1720876970 [13:22:50]FM_GetShiftState [13:22:50]SAM_PROTO_GetShiftState [13:22:50]wFMCommunicate request_size=4 [13:22:50]MH_SAM_APDU [13:22:50]CAPDU: 80 13 01 00 [13:22:50]Write to MH i2c: E2 08 00 12 03 80 13 01 00 00 00 00 00 92 [13:22:50]Write i2c OK [13:22:50]MH_I2C_Read... [13:22:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:50]Read from MH i2c: E2 [13:22:50]MH_I2C_Read... [13:22:50]Read from MH i2c: E2 0E 00 [13:22:50]MH_I2C_Read... [13:22:50]Read from MH i2c: E2 0E 00 12 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8C [13:22:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:22:50]wFMCommunicate OK [13:22:50]SAM_PROTO_GetShiftState done [13:22:50]FM_GetShiftState done [13:22:50]opened in 1720828979 [13:22:50]opened+sec_in_day 1720915379 [13:22:50]quantity*price = 249961 [13:22:50]sum+1 = 249963 [13:22:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2499.62 НСП 1% : 22.12 НДС 12% : 265.45 Наличными: 0.00 Безнал.: 2499.62 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 200 13.07.2024 13:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162532 ФПД: 86487370567541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T132250&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162532&fm=86487370567541&tin=02508201610067®Number=0000000000090858&sum=249962 [13:22:51]StoreToDocumentArchive [13:22:51]shift 462 fd 162532 [13:22:51]save to /storage/0462/doc_00162532 [13:22:51]save last doc name /storage/0462/doc_00162532 to /storage/kkm_last_doc_name [13:22:51]save OK [13:22:51]Clear old archive folders... [13:22:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:22:51]tlvbuf is 005D25B0 [13:22:51]SAM_PROTO_ClearQueue [13:22:51]wFMCommunicate request_size=4 [13:22:51]MH_SAM_APDU [13:22:51]CAPDU: 80 09 00 00 [13:22:51]Write to MH i2c: E2 08 00 1F 03 80 09 00 00 00 00 00 00 94 [13:22:51]Write i2c OK [13:22:51]MH_I2C_Read... [13:22:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:51]Read from MH i2c: E2 [13:22:51]MH_I2C_Read... [13:22:51]Read from MH i2c: E2 03 00 [13:22:51]MH_I2C_Read... [13:22:51]Read from MH i2c: E2 03 00 1F 03 00 90 00 96 [13:22:51]RAPDU: 90 00 [13:22:51]wFMCommunicate OK [13:22:51]SAM_PROTO_ClearQueue done [13:22:51]KKMCreateOFDPacket [13:22:51]OFDProtocolAddRootSTLVToBuf [13:22:51]FM_MakeSignedData [13:22:51]FM_MakeSignedData [13:22:51]SAM_PROTO_SignData [13:22:51]wFMCommunicate request_size=4 [13:22:51]MH_SAM_APDU [13:22:51]CAPDU: 80 0D 01 02 [13:22:51]Write to MH i2c: E2 08 00 20 03 80 0D 01 02 00 00 00 00 9C [13:22:51]Write i2c OK [13:22:51]MH_I2C_Read... [13:22:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:51]Read from MH i2c: E2 [13:22:51]MH_I2C_Read... [13:22:51]Read from MH i2c: E2 03 00 [13:22:51]MH_I2C_Read... [13:22:51]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [13:22:51]RAPDU: 90 00 [13:22:51]wFMCommunicate OK [13:22:51]wFMCommunicate request_size=255 [13:22:51]MH_SAM_APDU [13:22:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 AA 7F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7A 02 00 35 04 06 00 [13:22:51]Write to MH i2c: E2 02 01 21 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 AA 7F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7A 02 00 35 04 06 00 00 00 02 [13:22:51]Write i2c OK [13:22:51]MH_I2C_Read... [13:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:52]Read from MH i2c: E2 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: E2 03 00 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [13:22:52]RAPDU: 90 00 [13:22:52]wFMCommunicate OK [13:22:52]wFMCommunicate request_size=11 [13:22:52]MH_SAM_APDU [13:22:52]CAPDU: 80 0D 02 02 06 4E A8 E9 00 0F 75 [13:22:52]Write to MH i2c: E2 0E 00 22 03 80 0D 02 02 06 00 4E A8 E9 00 0F 75 00 00 0E [13:22:52]Write i2c OK [13:22:52]MH_I2C_Read... [13:22:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:52]Read from MH i2c: E2 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: E2 03 00 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [13:22:52]RAPDU: 90 00 [13:22:52]wFMCommunicate OK [13:22:52]wFMCommunicate request_size=4 [13:22:52]MH_SAM_APDU [13:22:52]CAPDU: 80 0D 03 02 [13:22:52]Write to MH i2c: E2 08 00 23 03 80 0D 03 02 00 00 00 00 A1 [13:22:52]Write i2c OK [13:22:52]MH_I2C_Read... [13:22:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:52]Read from MH i2c: E2 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: E2 0B 00 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: E2 0B 00 23 03 00 AF 91 4E 42 11 54 AD 16 90 00 9A [13:22:52]RAPDU: AF 91 4E 42 11 54 AD 16 90 00 [13:22:52]wFMCommunicate OK [13:22:52]SAM_PROTO_SignData done [13:22:52]FM_MakeSignedData done [13:22:52]CreateOFDProtocolMessage [13:22:52]wFMCommunicate request_size=4 [13:22:52]MH_SAM_APDU [13:22:52]CAPDU: 80 11 00 00 [13:22:52]Write to MH i2c: E2 08 00 24 03 80 11 00 00 00 00 00 00 A1 [13:22:52]Write i2c OK [13:22:52]MH_I2C_Read... [13:22:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:52]Read from MH i2c: E2 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: E2 17 00 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: E2 17 00 24 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 01 [13:22:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:22:52]wFMCommunicate OK [13:22:52]CreateOFDProtocolMessage done [13:22:52]OFDSenderStorePacket 162532 [13:22:52]StoreOFDPacket docnum=162532 [13:22:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 28 CD 08 01 44 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 AA 7F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7A 02 00 35 04 06 00 4E A8 E9 00 0F 75 AF 91 4E 42 11 54 AD 16 [13:22:52]CheckFolder [13:22:52]dirname=/storage/ofd_packets [13:22:52]CheckFolder done [13:22:52]ProducePacketName [13:22:52]name=ofd_packets/00162532 [13:22:52]NVStorageSaveData ofd_packets/00162532 [13:22:52]File name is /storage/ofd_packets/00162532 [13:22:52]Write 302 bytes [13:22:52]NVStorageSaveData done [13:22:52]OFDSenderStorePacket done [13:22:52]KKMCreateOFDPacket done [13:22:52]NVStorageSaveData kkm_last_timestamp [13:22:52]File name is /storage/kkm_last_timestamp [13:22:52]Write 4 bytes [13:22:52]NVStorageSaveData done [13:22:52]ExternCall_PrintAddStr [13:22:52]wPrintStart [13:22:52]Write to MH i2c: 01 00 00 25 03 28 [13:22:52]Write i2c OK [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: 01 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: 01 07 00 [13:22:52]MH_I2C_Read... [13:22:52]Read from MH i2c: 01 07 00 25 03 00 00 00 00 00 FF 0F 3D [13:22:52]RasterBufferAndPrint [13:22:52]line Счет N : (1)1319082 [13:22:52]line ИНН: 02508201610067 [13:22:52]line Контрольно-Кассовый Чек [13:22:52]line ПРОДАЖА [13:22:52]line ТРК (МРК, ГНК) : 21 [13:22:52]line Товар: 2710194210 [13:22:52]line ДТ(л)-К-5 [13:22:52]line 34.430 * 72.60 [13:22:52]line = 2499.62 [13:22:52]line НДС 12% НСП 1% [13:22:52]line > о реализуемом товаре [13:22:52]line ИТОГО: 2499.62 [13:22:52]line НСП 1% : 22.12 [13:22:52]line НДС 12% : 265.45 [13:22:52]line Наличными: 0.00 [13:22:52]line Безнал.: 2499.62 [13:22:52]line Место: АЗС № 140 "Партнер Нефть" [13:22:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:22:52]line СНО: Общий режим [13:22:52]line Чек 200 13.07.2024 13:22 [13:22:52]line Смена: 462 ФФД: 1.0 [13:22:52]line ЗНМ: 0300000129 [13:22:52]line РНМ: 0000000000090858 [13:22:52]line Версия ККМ: 001 [13:22:52]line Платежная система: O! деньги [13:22:52]line ФМ: 0000000000874899 [13:22:52]line ФД: 162532 [13:22:52]line ФПД: 86487370567541 [13:22:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T132250&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162532&fm=86487370567541&tin=02508201610067®Number=0000000000090858&sum=249962 [13:22:52]written 0, free lines is 4095 [13:22:52]OFD Sender: Processing packet 162532 [packets to send 106, broken 105] [13:22:52]ProducePacketName [13:22:52]name=ofd_packets/00162532 [13:22:52]OFD Sender: To server: pG, [13:22:52]CommunicateWithHost lk.salyk.kg:30040 [13:22:52]ConnectInit lk.salyk.kg [13:22:52]Connected sock=10 [13:22:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 28 CD 08 01 44 4F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7E 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6A D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6A D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 AA 7F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7A 02 00 35 04 06 00 4E A8 E9 00 0F 75 AF 91 4E 42 11 54 AD 16 [13:22:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 59 BE 47 00 49 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E4 7A 02 00 F4 03 04 00 B9 2B 92 66 B6 04 01 00 00 65 E9 EF 63 97 03 4B 2B [13:22:52]CommunicateWithHost err = 0 [13:22:52]CheckOFDResponse [13:22:52]1017 (14) - 77093643461234 [13:22:52]1041 (16) - 0000000000874899 [13:22:52]1040 (4) - 162532 [13:22:52]1012 (4) - 13.07.2024 07:24 [13:22:52]1206 (1) - 0 [13:22:52]OFD Sender: Remove packet 162532 [13:22:52]ProducePacketName [13:22:52]name=ofd_packets/00162532 [13:22:52]NVStorageDeleteData [13:22:53]Write to MH i2c: 01 00 00 4F 03 52 [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 07 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 F6 0C 5B [13:22:53]RasterBufferAndPrint [13:22:53]line [13:22:53]line [13:22:53]line [13:22:53]line [13:22:53]line [13:22:53]written 0, free lines is 3326 [13:22:53]MH_Cut [13:22:53]Write to MH i2c: D1 01 00 56 03 01 2B [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: D1 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: D1 01 00 [13:22:53]MH_I2C_Read... [13:22:53]Read from MH i2c: D1 01 00 56 03 00 2A [13:22:53]Write to MH i2c: 01 00 00 57 03 5A [13:22:53]Write i2c OK [13:22:53]MH_I2C_Read... [13:22:53]OFD Sender: No OFD packet to send [13:22:53]*** Cut start [13:22:53]*** Purtial cut [13:22:53]*** CUTSNS_PIN = 0 [13:22:53]*** Stage 1: CUTSNS_PIN = 1 [13:22:55]Read from MH i2c: 01 [13:22:55]MH_I2C_Read... [13:22:55]*** Stop cut motor [13:22:55]*** Cut end [13:22:55]Read from MH i2c: 01 07 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: 01 07 00 57 03 00 00 00 00 00 FF 0F 6F [13:22:55]process_action close_receipt done [13:22:55]requested_data is exist [13:22:55]produce_requested_data [13:22:55]requested_item fm.sn is exist - process it [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 11 00 00 [13:22:55]Write to MH i2c: E2 08 00 58 03 80 11 00 00 00 00 00 00 D5 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 17 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 17 00 58 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 35 [13:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:22:55]wFMCommunicate OK [13:22:55]requested_item fd.num is exist - process it [13:22:55]SAM_PROTO_GetFieldsCounters [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 13 00 00 [13:22:55]Write to MH i2c: E2 08 00 59 03 80 13 00 00 00 00 00 00 D8 [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:55]Read from MH i2c: E2 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 62 00 [13:22:55]MH_I2C_Read... [13:22:55]Read from MH i2c: E2 62 00 59 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [13:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:55]wFMCommunicate OK [13:22:55]SAM_PROTO_GetFieldsCounters done [13:22:55]requested_item shift.num is exist - process it [13:22:55]requested_item shift.opened is exist - process it [13:22:55]req_shift_opened [13:22:55]FM_GetShiftState [13:22:55]SAM_PROTO_GetShiftState [13:22:55]wFMCommunicate request_size=4 [13:22:55]MH_SAM_APDU [13:22:55]CAPDU: 80 13 01 00 [13:22:55]Write to MH i2c: E2 08 00 5A 03 80 13 01 00 00 00 00 00 DA [13:22:55]Write i2c OK [13:22:55]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0E 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0E 00 5A 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D4 [13:22:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_GetShiftState done [13:22:56]FM_GetShiftState done [13:22:56]req_shift_opened done [13:22:56]requested_item shift.open_date is exist - process it [13:22:56]req_shift_open_date [13:22:56]req_shift_open_date done [13:22:56]produce_requested_data done [13:22:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162532,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:22:56]process_action_free close_receipt [13:22:56]json_value_free [13:22:56]json_value_free done [13:22:56]process_json_proto returns [13:22:56]Send response to host [13:22:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162532,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:22:56]free response buf [13:22:56]execute_script done [13:22:56]execute_script returns [13:22:56]free content buf [13:22:56]Sock 7.Close socket [13:22:56]Sock 7.Thread stoped [13:22:56]accept exits with 9 [13:22:56]New connection [13:22:56]New thread 3067366756 created [13:22:56]Thread 3067510116 joined [13:22:56]Waiting for new connection... [13:22:56] Sock 9.Parse request [13:22:56]Sock 9.Check first char [13:22:56]Sock 9.First char is OK [13:22:56]request: POST /json_proto HTTP/1.0 [13:22:56]Method: POST [13:22:56]URL: /json_proto [13:22:56]Method is POST - this is cgi request [13:22:56]url: /json_proto [13:22:56]query_string will be loaded in cgi processing [13:22:56]execute_cgi json_proto POST (null) [13:22:56]execute_cgi path=json_proto method=POST [13:22:56]POST find Content-Length [13:22:56]Host: 172.17.39.67:8080 [13:22:56]Content-Length: 1208 [13:22:56]Content-Type: application/json [13:22:56] [13:22:56]POST finish read [13:22:56]Found Content-Length = 1208 [13:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319081\u000A13.07.2024 13:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474989\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:56]execute_script... [13:22:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319081\u000A13.07.2024 13:20\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474989\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:22:56]POST & json_proto [13:22:56]process_json_proto [13:22:56]json parsed OK: [13:22:56]protocol is kg_v1.0 [13:22:56]action value=print_text [13:22:56]process_action print_text [13:22:56]cmd_print_text [13:22:56]ExternCall_PrintAddStr [13:22:56]wPrintStart [13:22:56]Write to MH i2c: 01 00 00 5B 03 5E [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 5B 03 00 00 00 00 00 FF 0F 73 [13:22:56]RasterBufferAndPrint [13:22:56]line *****ТОВАРНЫЙ ЧЕК***** [13:22:56]line АЗС 140 [13:22:56]line Партнер нефть [13:22:56]line 02508201610067 [13:22:56]line Кассир : Шамбеталиев А. [13:22:56]line Счет N : (1)1319081 [13:22:56]line 13.07.2024 13:20 [13:22:56]line ПРОДАЖА [13:22:56]line ТРК (МРК, ГНК): 41 [13:22:56]line Вид ГСМ : 2710194210 [13:22:56]line ДТ(л)-К-5 [13:22:56]line 50.000 x 72.60 [13:22:56]line ИТОГ: 3630.00 [13:22:56]line Тип оплаты: Талоны: Партнер нефть [13:22:56]line 3474989 [13:22:56]line ______________________ [13:22:56]line (подпись) [13:22:56]written 0, free lines is 4095 [13:22:56]Write to MH i2c: 01 00 00 70 03 73 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: 01 07 00 70 03 00 00 00 00 00 F6 0D 7D [13:22:56]RasterBufferAndPrint [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]line [13:22:56]written 0, free lines is 3577 [13:22:56]MH_Cut [13:22:56]Write to MH i2c: D1 01 00 77 03 01 4C [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: D1 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: D1 01 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: D1 01 00 77 03 00 4B [13:22:56]Write to MH i2c: 01 00 00 78 03 7B [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:57]*** Cut start [13:22:57]*** Purtial cut [13:22:57]*** Stage 1: CUTSNS_PIN = 1 [13:22:57]Read from MH i2c: 01 [13:22:57]MH_I2C_Read... [13:22:57]*** Stop cut motor [13:22:57]*** Cut end [13:22:57]Read from MH i2c: 01 07 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 FF 0F 90 [13:22:57]process_action print_text done [13:22:57]requested_data is exist [13:22:57]produce_requested_data [13:22:57]requested_item fm.sn is exist - process it [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 11 00 00 [13:22:57]Write to MH i2c: E2 08 00 79 03 80 11 00 00 00 00 00 00 F6 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 17 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 17 00 79 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 56 [13:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:22:57]wFMCommunicate OK [13:22:57]requested_item fd.num is exist - process it [13:22:57]SAM_PROTO_GetFieldsCounters [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 13 00 00 [13:22:57]Write to MH i2c: E2 08 00 7A 03 80 13 00 00 00 00 00 00 F9 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 62 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 62 00 7A 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [13: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:22:57]wFMCommunicate OK [13:22:57]SAM_PROTO_GetFieldsCounters done [13:22:57]requested_item shift.num is exist - process it [13:22:57]requested_item shift.opened is exist - process it [13:22:57]req_shift_opened [13:22:57]FM_GetShiftState [13:22:57]SAM_PROTO_GetShiftState [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 13 01 00 [13:22:57]Write to MH i2c: E2 08 00 7B 03 80 13 01 00 00 00 00 00 FB [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 0E 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 0E 00 7B 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F5 [13:22:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:22:57]wFMCommunicate OK [13:22:57]SAM_PROTO_GetShiftState done [13:22:57]FM_GetShiftState done [13:22:57]req_shift_opened done [13:22:57]requested_item shift.open_date is exist - process it [13:22:57]req_shift_open_date [13:22:57]req_shift_open_date done [13:22:57]produce_requested_data done [13:22:57]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162532,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:22:57]process_action_free print_text [13:22:57]json_value_free [13:22:57]json_value_free done [13:22:57]process_json_proto returns [13:22:57]Send response to host [13:22:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162532,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:22:57]free response buf [13:22:57]execute_script done [13:22:57]execute_script returns [13:22:57]free content buf [13:22:57]Sock 9.Close socket [13:22:57]Sock 9.Thread stoped [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:18]OFD Sender: No OFD packet to send [13:23:23]OFD Sender: No OFD packet to send [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:43]OFD Sender: No OFD packet to send [13:23:48]OFD Sender: No OFD packet to send [13:23:53]OFD Sender: No OFD packet to send [13:23:58]OFD Sender: No OFD packet to send [13:24:03]OFD Sender: No OFD packet to send [13:24:08]OFD Sender: No OFD packet to send [13:24:13]OFD Sender: No OFD packet to send [13:24:18]OFD Sender: No OFD packet to send [13:24:19]accept exits with 7 [13:24:19]New connection [13:24:19]New thread 3067510116 created [13:24:19]Thread 3067366756 joined [13:24:19]Waiting for new connection... [13:24:19] Sock 7.Parse request [13:24:19]Sock 7.Check first char [13:24:19]Sock 7.First char is OK [13:24:19]request: POST /json_proto HTTP/1.0 [13:24:19]Method: POST [13:24:19]URL: /json_proto [13:24:19]Method is POST - this is cgi request [13:24:19]url: /json_proto [13:24:19]query_string will be loaded in cgi processing [13:24:19]execute_cgi json_proto POST (null) [13:24:19]execute_cgi path=json_proto method=POST [13:24:19]POST find Content-Length [13:24:19]Host: 172.17.39.67:8080 [13:24:19]Content-Length: 1208 [13:24:19]Content-Type: application/json [13:24:19] [13:24:19]POST finish read [13:24:19]Found Content-Length = 1208 [13:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319083\u000A13.07.2024 13:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092729\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:19]execute_script... [13:24:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319083\u000A13.07.2024 13:21\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092729\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:19]POST & json_proto [13:24:19]process_json_proto [13:24:19]json parsed OK: [13:24:19]protocol is kg_v1.0 [13:24:19]action value=print_text [13:24:19]process_action print_text [13:24:19]cmd_print_text [13:24:19]ExternCall_PrintAddStr [13:24:19]wPrintStart [13:24:19]Write to MH i2c: 01 00 00 7C 03 7F [13:24:19]Write i2c OK [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 07 00 [13:24:19]MH_I2C_Read... [13:24:19]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 FF 0F 94 [13:24:19]RasterBufferAndPrint [13:24:19]line *****ТОВАРНЫЙ ЧЕК***** [13:24:19]line АЗС 140 [13:24:19]line Партнер нефть [13:24:19]line 02508201610067 [13:24:19]line Кассир : Шамбеталиев А. [13:24:19]line Счет N : (1)1319083 [13:24:19]line 13.07.2024 13:21 [13:24:19]line ПРОДАЖА [13:24:19]line ТРК (МРК, ГНК): 41 [13:24:19]line Вид ГСМ : 2710194210 [13:24:19]line ДТ(л)-К-5 [13:24:19]line 20.000 x 72.60 [13:24:19]line ИТОГ: 1452.00 [13:24:19]line Тип оплаты: Талоны: Партнер нефть [13:24:19]line 4092729 [13:24:19]line ______________________ [13:24:19]line (подпись) [13:24:19]written 0, free lines is 4095 [13:24:20]Write to MH i2c: 01 00 00 91 03 94 [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: 01 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: 01 07 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 F6 0D 9E [13:24:20]RasterBufferAndPrint [13:24:20]line [13:24:20]line [13:24:20]line [13:24:20]line [13:24:20]line [13:24:20]written 0, free lines is 3575 [13:24:20]MH_Cut [13:24:20]Write to MH i2c: D1 01 00 98 03 01 6D [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: D1 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: D1 01 00 [13:24:20]MH_I2C_Read... [13:24:20]Read from MH i2c: D1 01 00 98 03 00 6C [13:24:20]Write to MH i2c: 01 00 00 99 03 9C [13:24:20]Write i2c OK [13:24:20]MH_I2C_Read... [13:24:20]*** Cut start [13:24:20]*** Purtial cut [13:24:20]*** CUTSNS_PIN = 0 [13:24:20]*** Stage 1: CUTSNS_PIN = 1 [13:24:22]Read from MH i2c: 01 [13:24:22]MH_I2C_Read... [13:24:22]*** Stop cut motor [13:24:22]*** Cut end [13:24:22]Read from MH i2c: 01 07 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [13:24:22]process_action print_text done [13:24:22]requested_data is exist [13:24:22]produce_requested_data [13:24:22]requested_item fm.sn is exist - process it [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 11 00 00 [13:24:22]Write to MH i2c: E2 08 00 9A 03 80 11 00 00 00 00 00 00 17 [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 17 00 [13:24:22]MH_I2C_Read... [13:24:22]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 34 38 39 39 90 00 77 [13:24:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:24:22]wFMCommunicate OK [13:24:22]requested_item fd.num is exist - process it [13:24:22]SAM_PROTO_GetFieldsCounters [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 13 00 00 [13:24:22]Write to MH i2c: E2 08 00 9B 03 80 13 00 00 00 00 00 00 1A [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 62 00 [13:24:22]MH_I2C_Read... [13:24:22]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [13:24:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:22]wFMCommunicate OK [13:24:22]SAM_PROTO_GetFieldsCounters done [13:24:22]requested_item shift.num is exist - process it [13:24:22]requested_item shift.opened is exist - process it [13:24:22]req_shift_opened [13:24:22]FM_GetShiftState [13:24:22]SAM_PROTO_GetShiftState [13:24:22]wFMCommunicate request_size=4 [13:24:22]MH_SAM_APDU [13:24:22]CAPDU: 80 13 01 00 [13:24:22]Write to MH i2c: E2 08 00 9C 03 80 13 01 00 00 00 00 00 1C [13:24:22]Write i2c OK [13:24:22]MH_I2C_Read... [13:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:22]Read from MH i2c: E2 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 0E 00 [13:24:22]MH_I2C_Read... [13:24:22]Read from MH i2c: E2 0E 00 9C 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 16 [13:24:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:24:22]wFMCommunicate OK [13:24:22]SAM_PROTO_GetShiftState done [13:24:22]FM_GetShiftState done [13:24:22]req_shift_opened done [13:24:22]requested_item shift.open_date is exist - process it [13:24:22]req_shift_open_date [13:24:22]req_shift_open_date done [13:24:22]produce_requested_data done [13:24:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162532,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:24:22]process_action_free print_text [13:24:22]json_value_free [13:24:22]json_value_free done [13:24:22]process_json_proto returns [13:24:22]Send response to host [13:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162532,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:24:22]free response buf [13:24:22]execute_script done [13:24:22]execute_script returns [13:24:22]free content buf [13:24:22]Sock 7.Close socket [13:24:22]Sock 7.Thread stoped [13:24:23]OFD Sender: No OFD packet to send [13:24:28]OFD Sender: No OFD packet to send [13:24:33]OFD Sender: No OFD packet to send [13:24:38]OFD Sender: No OFD packet to send [13:24:43]OFD Sender: No OFD packet to send [13:24:48]OFD Sender: No OFD packet to send [13:24:53]OFD Sender: No OFD packet to send [13:24:58]OFD Sender: No OFD packet to send [13:25:03]OFD Sender: No OFD packet to send [13:25:08]OFD Sender: No OFD packet to send [13:25:13]OFD Sender: No OFD packet to send [13:25:18]OFD Sender: No OFD packet to send [13:25:23]OFD Sender: No OFD packet to send [13:25:28]OFD Sender: No OFD packet to send [13:25:33]OFD Sender: No OFD packet to send [13:25:38]OFD Sender: No OFD packet to send [13:25:43]OFD Sender: No OFD packet to send [13:25:48]OFD Sender: No OFD packet to send [13:25:53]OFD Sender: No OFD packet to send [13:25:58]OFD Sender: No OFD packet to send [13:26:03]OFD Sender: No OFD packet to send [13:26:08]OFD Sender: No OFD packet to send [13:26:13]OFD Sender: No OFD packet to send [13:26:18]OFD Sender: No OFD packet to send [13:26:23]OFD Sender: No OFD packet to send [13:26:28]OFD Sender: No OFD packet to send [13:26:33]OFD Sender: No OFD packet to send [13:26:38]OFD Sender: No OFD packet to send [13:26:43]OFD Sender: No OFD packet to send [13:26:48]OFD Sender: No OFD packet to send [13:26:53]OFD Sender: No OFD packet to send [13:26:58]OFD Sender: No OFD packet to send [13:27:03]OFD Sender: No OFD packet to send [13:27:08]OFD Sender: No OFD packet to send [13:27:13]OFD Sender: No OFD packet to send [13:27:18]OFD Sender: No OFD packet to send [13:27:23]OFD Sender: No OFD packet to send [13:27:28]OFD Sender: No OFD packet to send [13:27:33]OFD Sender: No OFD packet to send [13:27:38]OFD Sender: No OFD packet to send [13:27:43]OFD Sender: No OFD packet to send [13:27:48]OFD Sender: No OFD packet to send [13:27:53]OFD Sender: No OFD packet to send [13:27:58]OFD Sender: No OFD packet to send [13:28:03]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:49]accept exits with 9 [13:30:49]New connection [13:30:49]New thread 3067366756 created [13:30:49]Thread 3067510116 joined [13:30:49]Waiting for new connection... [13:30:49] Sock 9.Parse request [13:30:49]Sock 9.Check first char [13:30:49]Sock 9.First char is OK [13:30:49]request: POST /json_proto HTTP/1.0 [13:30:49]Method: POST [13:30:49]URL: /json_proto [13:30:49]Method is POST - this is cgi request [13:30:49]url: /json_proto [13:30:49]query_string will be loaded in cgi processing [13:30:49]execute_cgi json_proto POST (null) [13:30:49]execute_cgi path=json_proto method=POST [13:30:49]POST find Content-Length [13:30:49]Host: 172.17.39.67:8080 [13:30:49]Content-Length: 688 [13:30:49]Content-Type: application/json [13:30:49] [13:30:49]POST finish read [13:30:49]Found Content-Length = 688 [13:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:30:49]execute_script... [13:30: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)1319084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:30:49]POST & json_proto [13:30:49]process_json_proto [13:30:49]json parsed OK: [13:30:49]protocol is kg_v1.0 [13:30:49]action value=close_receipt [13:30:49]process_action close_receipt [13:30:49]cmd_close_receipt [13:30:49]MH_GetDate [13:30:49]Write to MH i2c: F0 00 00 9D 03 8F [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: F0 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: F0 09 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: F0 09 00 9D 03 00 89 81 92 66 86 7C 92 66 94 [13:30:49]GetLastDocTimeStamp 1720876970 [13:30:49]current date 1720877449 [13:30:49]FM_GetShiftState [13:30:49]SAM_PROTO_GetShiftState [13:30:49]wFMCommunicate request_size=4 [13:30:49]MH_SAM_APDU [13:30:49]CAPDU: 80 13 01 00 [13:30:49]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [13:30:49]Write i2c OK [13:30:49]MH_I2C_Read... [13:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:49]Read from MH i2c: E2 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 0E 00 [13:30:49]MH_I2C_Read... [13:30:49]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 18 [13:30:49]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:30:49]wFMCommunicate OK [13:30:49]SAM_PROTO_GetShiftState done [13:30:49]FM_GetShiftState done [13:30:49]opened in 1720828979 [13:30:49]opened+sec_in_day 1720915379 [13:30:49]quantity*price = 100042 [13:30:49]sum+1 = 100044 [13:30: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 201 13.07.2024 13:30 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162533 ФПД: 103991976553602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133050&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162533&fm=103991976553602&tin=02508201610067®Number=0000000000090858&sum=100000 [13:30:51]StoreToDocumentArchive [13:30:51]shift 462 fd 162533 [13:30:51]save to /storage/0462/doc_00162533 [13:30:51]save last doc name /storage/0462/doc_00162533 to /storage/kkm_last_doc_name [13:30:51]save OK [13:30:51]Clear old archive folders... [13:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:30:51]tlvbuf is 006C3FC0 [13:30:51]SAM_PROTO_ClearQueue [13:30:51]wFMCommunicate request_size=4 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 09 00 00 [13:30:51]Write to MH i2c: E2 08 00 AB 03 80 09 00 00 00 00 00 00 20 [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 AB 03 00 90 00 22 [13:30:51]RAPDU: 90 00 [13:30:51]wFMCommunicate OK [13:30:51]SAM_PROTO_ClearQueue done [13:30:51]KKMCreateOFDPacket [13:30:51]OFDProtocolAddRootSTLVToBuf [13:30:51]FM_MakeSignedData [13:30:51]FM_MakeSignedData [13:30:51]SAM_PROTO_SignData [13:30:51]wFMCommunicate request_size=4 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 0D 01 02 [13:30:51]Write to MH i2c: E2 08 00 AC 03 80 0D 01 02 00 00 00 00 28 [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 AC 03 00 90 00 23 [13:30:51]RAPDU: 90 00 [13:30:51]wFMCommunicate OK [13:30:51]wFMCommunicate request_size=255 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 C9 00 00 00 F4 03 04 00 8A 81 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7A 02 00 35 04 06 00 [13:30:51]Write to MH i2c: E2 02 01 AD 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 C9 00 00 00 F4 03 04 00 8A 81 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7A 02 00 35 04 06 00 00 00 BD [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [13:30:51]RAPDU: 90 00 [13:30:51]wFMCommunicate OK [13:30:51]wFMCommunicate request_size=11 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 0D 02 02 06 5E 94 84 D2 6C 82 [13:30:51]Write to MH i2c: E2 0E 00 AE 03 80 0D 02 02 06 00 5E 94 84 D2 6C 82 00 00 6D [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [13:30:51]RAPDU: 90 00 [13:30:51]wFMCommunicate OK [13:30:51]wFMCommunicate request_size=4 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 0D 03 02 [13:30:51]Write to MH i2c: E2 08 00 AF 03 80 0D 03 02 00 00 00 00 2D [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 0B 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 0B 00 AF 03 00 5C 86 0C 02 D8 62 84 82 90 00 5E [13:30:51]RAPDU: 5C 86 0C 02 D8 62 84 82 90 00 [13:30:51]wFMCommunicate OK [13:30:51]SAM_PROTO_SignData done [13:30:51]FM_MakeSignedData done [13:30:51]CreateOFDProtocolMessage [13:30:51]wFMCommunicate request_size=4 [13:30:51]MH_SAM_APDU [13:30:51]CAPDU: 80 11 00 00 [13:30:51]Write to MH i2c: E2 08 00 B0 03 80 11 00 00 00 00 00 00 2D [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:51]Read from MH i2c: E2 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: E2 17 00 [13:30:51]MH_I2C_Read... [13:30:51]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 34 38 39 39 90 00 8D [13:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:30:51]wFMCommunicate OK [13:30:51]CreateOFDProtocolMessage done [13:30:51]OFDSenderStorePacket 162533 [13:30:51]StoreOFDPacket docnum=162533 [13:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 15 3F 08 01 8A AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 C9 00 00 00 F4 03 04 00 8A 81 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7A 02 00 35 04 06 00 5E 94 84 D2 6C 82 5C 86 0C 02 D8 62 84 82 [13:30:51]CheckFolder [13:30:51]dirname=/storage/ofd_packets [13:30:51]CheckFolder done [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00162533 [13:30:51]NVStorageSaveData ofd_packets/00162533 [13:30:51]File name is /storage/ofd_packets/00162533 [13:30:51]Write 302 bytes [13:30:51]NVStorageSaveData done [13:30:51]OFDSenderStorePacket done [13:30:51]KKMCreateOFDPacket done [13:30:51]NVStorageSaveData kkm_last_timestamp [13:30:51]File name is /storage/kkm_last_timestamp [13:30:51]Write 4 bytes [13:30:51]NVStorageSaveData done [13:30:51]ExternCall_PrintAddStr [13:30:51]wPrintStart [13:30:51]Write to MH i2c: 01 00 00 B1 03 B4 [13:30:51]Write i2c OK [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 07 00 [13:30:51]MH_I2C_Read... [13:30:51]Read from MH i2c: 01 07 00 B1 03 00 00 00 00 00 FF 0F C9 [13:30:51]RasterBufferAndPrint [13:30:51]line Счет N : (1)1319084 [13:30:51]line ИНН: 02508201610067 [13:30:51]line Контрольно-Кассовый Чек [13:30:51]line ПРОДАЖА [13:30:51]line ТРК (МРК, ГНК) : 51 [13:30:51]line Товар: 2710194210 [13:30:51]line ДТ(л)-К-5 [13:30:51]line 13.780 * 72.60 [13:30:51]line = 1000.43 [13:30:51]line НДС 12% НСП 1% [13:30:51]line > о реализуемом товаре [13:30:51]line ОКРУГЛЕНИЕ: -0.43 [13:30:51]line ИТОГО: 1000.00 [13:30:51]line Внесено: 1000.00 [13:30:51]line СДАЧА: 0.00 [13:30:51]line НСП 1% : 8.85 [13:30:51]line НДС 12% : 106.24 [13:30:51]line Наличными: 1000.00 [13:30:51]line Безнал.: 0.00 [13:30:51]line Место: АЗС № 140 "Партнер Нефть" [13:30:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:30:51]line СНО: Общий режим [13:30:51]line Чек 201 13.07.2024 13:30 [13:30:51]line Смена: 462 ФФД: 1.0 [13:30:51]line ЗНМ: 0300000129 [13:30:51]line РНМ: 0000000000090858 [13:30:51]line Версия ККМ: 001 [13:30:51]line ФМ: 0000000000874899 [13:30:51]line ФД: 162533 [13:30:51]line ФПД: 103991976553602 [13:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133050&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162533&fm=103991976553602&tin=02508201610067®Number=0000000000090858&sum=100000 [13:30:51]OFD Sender: Processing packet 162533 [packets to send 106, broken 105] [13:30:51]ProducePacketName [13:30:51]name=ofd_packets/00162533 [13:30:51]OFD Sender: To server: pG, [13:30:51]CommunicateWithHost lk.salyk.kg:30040 [13:30:51]ConnectInit lk.salyk.kg [13:30:51]written 0, free lines is 4095 [13:30:52]Connected sock=10 [13:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 15 3F 08 01 8A AB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 C9 00 00 00 F4 03 04 00 8A 81 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7A 02 00 35 04 06 00 5E 94 84 D2 6C 82 5C 86 0C 02 D8 62 84 82 [13:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 7A 07 47 00 0F 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E5 7A 02 00 F4 03 04 00 99 2D 92 66 B6 04 01 00 00 9D 8D E5 FE 6B BF 73 24 [13:30:52]CommunicateWithHost err = 0 [13:30:52]CheckOFDResponse [13:30:52]1017 (14) - 77093643461234 [13:30:52]1041 (16) - 0000000000874899 [13:30:52]1040 (4) - 162533 [13:30:52]1012 (4) - 13.07.2024 07:32 [13:30:52]1206 (1) - 0 [13:30:52]OFD Sender: Remove packet 162533 [13:30:52]ProducePacketName [13:30:52]name=ofd_packets/00162533 [13:30:52]NVStorageDeleteData [13:30:52]Write to MH i2c: 01 00 00 DC 03 DF [13:30:52]Write i2c OK [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: 01 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: 01 07 00 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 F2 0C E4 [13:30:52]RasterBufferAndPrint [13:30:52]line [13:30:52]line [13:30:52]line [13:30:52]line [13:30:52]line [13:30:52]written 0, free lines is 3319 [13:30:52]MH_Cut [13:30:52]Write to MH i2c: D1 01 00 E3 03 01 B8 [13:30:52]Write i2c OK [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: D1 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: D1 01 00 [13:30:52]MH_I2C_Read... [13:30:52]Read from MH i2c: D1 01 00 E3 03 00 B7 [13:30:52]Write to MH i2c: 01 00 00 E4 03 E7 [13:30:52]Write i2c OK [13:30:52]MH_I2C_Read... [13:30:52]OFD Sender: No OFD packet to send [13:30:53]*** Cut start [13:30:53]*** Purtial cut [13:30:53]*** Stage 1: CUTSNS_PIN = 1 [13:30:53]Read from MH i2c: 01 [13:30:53]MH_I2C_Read... [13:30:53]*** Stop cut motor [13:30:53]*** Cut end [13:30:53]Read from MH i2c: 01 07 00 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [13:30:53]process_action close_receipt done [13:30:53]requested_data is exist [13:30:53]produce_requested_data [13:30:53]requested_item fm.sn is exist - process it [13:30:53]wFMCommunicate request_size=4 [13:30:53]MH_SAM_APDU [13:30:53]CAPDU: 80 11 00 00 [13:30:53]Write to MH i2c: E2 08 00 E5 03 80 11 00 00 00 00 00 00 62 [13:30:53]Write i2c OK [13:30:53]MH_I2C_Read... [13:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:53]Read from MH i2c: E2 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 17 00 [13:30:53]MH_I2C_Read... [13:30:53]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 34 38 39 39 90 00 C2 [13:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:30:53]wFMCommunicate OK [13:30:53]requested_item fd.num is exist - process it [13:30:53]SAM_PROTO_GetFieldsCounters [13:30:53]wFMCommunicate request_size=4 [13:30:53]MH_SAM_APDU [13:30:53]CAPDU: 80 13 00 00 [13:30:53]Write to MH i2c: E2 08 00 E6 03 80 13 00 00 00 00 00 00 65 [13:30:53]Write i2c OK [13:30:53]MH_I2C_Read... [13:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:53]Read from MH i2c: E2 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 62 00 [13:30:53]MH_I2C_Read... [13:30:53]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [13:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:53]wFMCommunicate OK [13:30:53]SAM_PROTO_GetFieldsCounters done [13:30:53]requested_item shift.num is exist - process it [13:30:53]requested_item shift.opened is exist - process it [13:30:53]req_shift_opened [13:30:53]FM_GetShiftState [13:30:53]SAM_PROTO_GetShiftState [13:30:53]wFMCommunicate request_size=4 [13:30:53]MH_SAM_APDU [13:30:53]CAPDU: 80 13 01 00 [13:30:53]Write to MH i2c: E2 08 00 E7 03 80 13 01 00 00 00 00 00 67 [13:30:53]Write i2c OK [13:30:53]MH_I2C_Read... [13:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:53]Read from MH i2c: E2 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 0E 00 [13:30:53]MH_I2C_Read... [13:30:53]Read from MH i2c: E2 0E 00 E7 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 61 [13:30:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:30:53]wFMCommunicate OK [13:30:53]SAM_PROTO_GetShiftState done [13:30:53]FM_GetShiftState done [13:30:53]req_shift_opened done [13:30:53]requested_item shift.open_date is exist - process it [13:30:53]req_shift_open_date [13:30:53]req_shift_open_date done [13:30:53]produce_requested_data done [13:30:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162533,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:30:53]process_action_free close_receipt [13:30:53]json_value_free [13:30:53]json_value_free done [13:30:53]process_json_proto returns [13:30:53]Send response to host [13:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162533,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:30:53]free response buf [13:30:53]execute_script done [13:30:53]execute_script returns [13:30:53]free content buf [13:30:53]Sock 9.Close socket [13:30:53]Sock 9.Thread stoped [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:10]accept exits with 7 [13:32:10]New connection [13:32:10]New thread 3067510116 created [13:32:10]Thread 3067366756 joined [13:32:10]Waiting for new connection... [13:32:10] Sock 7.Parse request [13:32:10]Sock 7.Check first char [13:32:10]Sock 7.First char is OK [13:32:10]request: POST /json_proto HTTP/1.0 [13:32:10]Method: POST [13:32:10]URL: /json_proto [13:32:10]Method is POST - this is cgi request [13:32:10]url: /json_proto [13:32:10]query_string will be loaded in cgi processing [13:32:10]execute_cgi json_proto POST (null) [13:32:10]execute_cgi path=json_proto method=POST [13:32:10]POST find Content-Length [13:32:10]Host: 172.17.39.67:8080 [13:32:10]Content-Length: 825 [13:32:10]Content-Type: application/json [13:32:10] [13:32:10]POST finish read [13:32:10]Found Content-Length = 825 [13:32:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:10]execute_script... [13:32:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:10]POST & json_proto [13:32:10]process_json_proto [13:32:10]json parsed OK: [13:32:10]protocol is kg_v1.0 [13:32:10]action value=close_receipt [13:32:10]process_action close_receipt [13:32:10]cmd_close_receipt [13:32:10]MH_GetDate [13:32:10]Write to MH i2c: F0 00 00 E8 03 DA [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: F0 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: F0 09 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: F0 09 00 E8 03 00 DA 81 92 66 86 7C 92 66 30 [13:32:10]GetLastDocTimeStamp 1720877450 [13:32:10]current date 1720877530 [13:32:10]FM_GetShiftState [13:32:10]SAM_PROTO_GetShiftState [13:32:10]wFMCommunicate request_size=4 [13:32:10]MH_SAM_APDU [13:32:10]CAPDU: 80 13 01 00 [13:32:10]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [13:32:10]Write i2c OK [13:32:10]MH_I2C_Read... [13:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:10]Read from MH i2c: E2 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 0E 00 [13:32:10]MH_I2C_Read... [13:32:10]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 63 [13:32:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:32:10]wFMCommunicate OK [13:32:10]SAM_PROTO_GetShiftState done [13:32:10]FM_GetShiftState done [13:32:10]opened in 1720828979 [13:32:10]opened+sec_in_day 1720915379 [13:32:10]quantity*price = 200013 [13:32:10]sum+1 = 200014 [13:32:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.13 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.13 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 202 13.07.2024 13:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162534 ФПД: 54269144415321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133210&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162534&fm=54269144415321&tin=02508201610067®Number=0000000000090858&sum=200013 [13:32:11]StoreToDocumentArchive [13:32:11]shift 462 fd 162534 [13:32:11]save to /storage/0462/doc_00162534 [13:32:11]save last doc name /storage/0462/doc_00162534 to /storage/kkm_last_doc_name [13:32:11]save OK [13:32:11]Clear old archive folders... [13:32:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:32:11]tlvbuf is 006AE880 [13:32:11]SAM_PROTO_ClearQueue [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 09 00 00 [13:32:11]Write to MH i2c: E2 08 00 F6 03 80 09 00 00 00 00 00 00 6B [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 F6 03 00 90 00 6D [13:32:11]RAPDU: 90 00 [13:32:11]wFMCommunicate OK [13:32:11]SAM_PROTO_ClearQueue done [13:32:11]KKMCreateOFDPacket [13:32:11]OFDProtocolAddRootSTLVToBuf [13:32:11]FM_MakeSignedData [13:32:11]FM_MakeSignedData [13:32:11]SAM_PROTO_SignData [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 0D 01 02 [13:32:11]Write to MH i2c: E2 08 00 F7 03 80 0D 01 02 00 00 00 00 73 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 F7 03 00 90 00 6E [13:32:11]RAPDU: 90 00 [13:32:11]wFMCommunicate OK [13:32:11]wFMCommunicate request_size=255 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 CA 00 00 00 F4 03 04 00 DA 81 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7A 02 00 35 04 06 00 [13:32:11]Write to MH i2c: E2 02 01 F8 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 CA 00 00 00 F4 03 04 00 DA 81 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7A 02 00 35 04 06 00 00 00 EA [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [13:32:11]RAPDU: 90 00 [13:32:11]wFMCommunicate OK [13:32:11]wFMCommunicate request_size=11 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 0D 02 02 06 31 5B 85 13 3C 59 [13:32:11]Write to MH i2c: E2 0E 00 F9 03 80 0D 02 02 06 00 31 5B 85 13 3C 59 00 00 3B [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [13:32:11]RAPDU: 90 00 [13:32:11]wFMCommunicate OK [13:32:11]wFMCommunicate request_size=4 [13:32:11]MH_SAM_APDU [13:32:11]CAPDU: 80 0D 03 02 [13:32:11]Write to MH i2c: E2 08 00 FA 03 80 0D 03 02 00 00 00 00 78 [13:32:11]Write i2c OK [13:32:11]MH_I2C_Read... [13:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:11]Read from MH i2c: E2 [13:32:11]MH_I2C_Read... [13:32:11]Read from MH i2c: E2 0B 00 [13:32:11]MH_I2C_Read... [13:32:12]Read from MH i2c: E2 0B 00 FA 03 00 61 A2 43 AE DD B1 03 39 90 00 37 [13:32:12]RAPDU: 61 A2 43 AE DD B1 03 39 90 00 [13:32:12]wFMCommunicate OK [13:32:12]SAM_PROTO_SignData done [13:32:12]FM_MakeSignedData done [13:32:12]CreateOFDProtocolMessage [13:32:12]wFMCommunicate request_size=4 [13:32:12]MH_SAM_APDU [13:32:12]CAPDU: 80 11 00 00 [13:32:12]Write to MH i2c: E2 08 00 FB 03 80 11 00 00 00 00 00 00 78 [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:12]Read from MH i2c: E2 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: E2 17 00 [13:32:12]MH_I2C_Read... [13:32:12]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 34 38 39 39 90 00 D8 [13:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:32:12]wFMCommunicate OK [13:32:12]CreateOFDProtocolMessage done [13:32:12]OFDSenderStorePacket 162534 [13:32:12]StoreOFDPacket docnum=162534 [13:32:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 23 2B 08 01 8C 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 CA 00 00 00 F4 03 04 00 DA 81 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7A 02 00 35 04 06 00 31 5B 85 13 3C 59 61 A2 43 AE DD B1 03 39 [13:32:12]CheckFolder [13:32:12]dirname=/storage/ofd_packets [13:32:12]CheckFolder done [13:32:12]ProducePacketName [13:32:12]name=ofd_packets/00162534 [13:32:12]NVStorageSaveData ofd_packets/00162534 [13:32:12]File name is /storage/ofd_packets/00162534 [13:32:12]Write 302 bytes [13:32:12]NVStorageSaveData done [13:32:12]OFDSenderStorePacket done [13:32:12]KKMCreateOFDPacket done [13:32:12]NVStorageSaveData kkm_last_timestamp [13:32:12]File name is /storage/kkm_last_timestamp [13:32:12]Write 4 bytes [13:32:12]NVStorageSaveData done [13:32:12]ExternCall_PrintAddStr [13:32:12]wPrintStart [13:32:12]Write to MH i2c: 01 00 00 FC 03 FF [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 07 00 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 07 00 FC 03 00 00 00 00 00 FF 0F 14 [13:32:12]RasterBufferAndPrint [13:32:12]line Счет N : (1)1319085 [13:32:12]line ИНН: 02508201610067 [13:32:12]line Контрольно-Кассовый Чек [13:32:12]line ПРОДАЖА [13:32:12]line ТРК (МРК, ГНК) : 51 [13:32:12]line Товар: 2710194210 [13:32:12]line ДТ(л)-К-5 [13:32:12]line 27.550 * 72.60 [13:32:12]line = 2000.13 [13:32:12]line НДС 12% НСП 1% [13:32:12]line > о реализуемом товаре [13:32:12]line ИТОГО: 2000.13 [13:32:12]line НСП 1% : 17.70 [13:32:12]line НДС 12% : 212.40 [13:32:12]line Наличными: 0.00 [13:32:12]line Безнал.: 2000.13 [13:32:12]line Место: АЗС № 140 "Партнер Нефть" [13:32:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:32:12]line СНО: Общий режим [13:32:12]line Чек 202 13.07.2024 13:32 [13:32:12]line Смена: 462 ФФД: 1.0 [13:32:12]line ЗНМ: 0300000129 [13:32:12]line РНМ: 0000000000090858 [13:32:12]line Версия ККМ: 001 [13:32:12]line Платежная система: Бакай Банк [13:32:12]line ФМ: 0000000000874899 [13:32:12]line ФД: 162534 [13:32:12]line ФПД: 54269144415321 [13:32:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133210&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162534&fm=54269144415321&tin=02508201610067®Number=0000000000090858&sum=200013 [13:32:12]written 0, free lines is 4095 [13:32:12]OFD Sender: Processing packet 162534 [packets to send 106, broken 105] [13:32:12]ProducePacketName [13:32:12]name=ofd_packets/00162534 [13:32:12]OFD Sender: To server: pG, [13:32:12]CommunicateWithHost lk.salyk.kg:30040 [13:32:12]ConnectInit lk.salyk.kg [13:32:12]Connected sock=10 [13:32:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 23 2B 08 01 8C 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 CA 00 00 00 F4 03 04 00 DA 81 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7A 02 00 35 04 06 00 31 5B 85 13 3C 59 61 A2 43 AE DD B1 03 39 [13:32:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6C 30 47 00 44 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E6 7A 02 00 F4 03 04 00 E9 2D 92 66 B6 04 01 00 00 5C B4 25 12 B3 80 B4 9C [13:32:12]CommunicateWithHost err = 0 [13:32:12]CheckOFDResponse [13:32:12]1017 (14) - 77093643461234 [13:32:12]1041 (16) - 0000000000874899 [13:32:12]1040 (4) - 162534 [13:32:12]1012 (4) - 13.07.2024 07:34 [13:32:12]1206 (1) - 0 [13:32:12]OFD Sender: Remove packet 162534 [13:32:12]ProducePacketName [13:32:12]name=ofd_packets/00162534 [13:32:12]NVStorageDeleteData [13:32:12]Write to MH i2c: 01 00 00 26 04 2A [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 07 00 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: 01 07 00 26 04 00 00 00 00 00 F5 0C 32 [13:32:12]RasterBufferAndPrint [13:32:12]line [13:32:12]line [13:32:12]line [13:32:12]line [13:32:12]line [13:32:12]written 0, free lines is 3323 [13:32:12]MH_Cut [13:32:12]Write to MH i2c: D1 01 00 2D 04 01 03 [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: D1 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: D1 01 00 [13:32:12]MH_I2C_Read... [13:32:12]Read from MH i2c: D1 01 00 2D 04 00 02 [13:32:12]Write to MH i2c: 01 00 00 2E 04 32 [13:32:12]Write i2c OK [13:32:12]MH_I2C_Read... [13:32:13]OFD Sender: No OFD packet to send [13:32:13]*** Cut start [13:32:13]*** Purtial cut [13:32:13]*** CUTSNS_PIN = 0 [13:32:13]*** Stage 1: CUTSNS_PIN = 1 [13:32:15]Read from MH i2c: 01 [13:32:15]MH_I2C_Read... [13:32:15]*** Stop cut motor [13:32:15]*** Cut end [13:32:15]Read from MH i2c: 01 07 00 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [13:32:15]process_action close_receipt done [13:32:15]requested_data is exist [13:32:15]produce_requested_data [13:32:15]requested_item fm.sn is exist - process it [13:32:15]wFMCommunicate request_size=4 [13:32:15]MH_SAM_APDU [13:32:15]CAPDU: 80 11 00 00 [13:32:15]Write to MH i2c: E2 08 00 2F 04 80 11 00 00 00 00 00 00 AD [13:32:15]Write i2c OK [13:32:15]MH_I2C_Read... [13:32:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:15]Read from MH i2c: E2 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: E2 17 00 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: E2 17 00 2F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0D [13:32:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:32:15]wFMCommunicate OK [13:32:15]requested_item fd.num is exist - process it [13:32:15]SAM_PROTO_GetFieldsCounters [13:32:15]wFMCommunicate request_size=4 [13:32:15]MH_SAM_APDU [13:32:15]CAPDU: 80 13 00 00 [13:32:15]Write to MH i2c: E2 08 00 30 04 80 13 00 00 00 00 00 00 B0 [13:32:15]Write i2c OK [13:32:15]MH_I2C_Read... [13:32:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:15]Read from MH i2c: E2 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: E2 62 00 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: E2 62 00 30 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [13:32:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:15]wFMCommunicate OK [13:32:15]SAM_PROTO_GetFieldsCounters done [13:32:15]requested_item shift.num is exist - process it [13:32:15]requested_item shift.opened is exist - process it [13:32:15]req_shift_opened [13:32:15]FM_GetShiftState [13:32:15]SAM_PROTO_GetShiftState [13:32:15]wFMCommunicate request_size=4 [13:32:15]MH_SAM_APDU [13:32:15]CAPDU: 80 13 01 00 [13:32:15]Write to MH i2c: E2 08 00 31 04 80 13 01 00 00 00 00 00 B2 [13:32:15]Write i2c OK [13:32:15]MH_I2C_Read... [13:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:15]Read from MH i2c: E2 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: E2 0E 00 [13:32:15]MH_I2C_Read... [13:32:15]Read from MH i2c: E2 0E 00 31 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AC [13:32:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:32:15]wFMCommunicate OK [13:32:15]SAM_PROTO_GetShiftState done [13:32:15]FM_GetShiftState done [13:32:15]req_shift_opened done [13:32:15]requested_item shift.open_date is exist - process it [13:32:15]req_shift_open_date [13:32:15]req_shift_open_date done [13:32:15]produce_requested_data done [13:32:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162534,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:32:15]process_action_free close_receipt [13:32:15]json_value_free [13:32:15]json_value_free done [13:32:15]process_json_proto returns [13:32:15]Send response to host [13:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162534,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:32:15]free response buf [13:32:15]execute_script done [13:32:15]execute_script returns [13:32:15]free content buf [13:32:15]Sock 7.Close socket [13:32:15]Sock 7.Thread stoped [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:48]OFD Sender: No OFD packet to send [13:36:53]OFD Sender: No OFD packet to send [13:36:58]OFD Sender: No OFD packet to send [13:37:03]OFD Sender: No OFD packet to send [13:37:05]accept exits with 9 [13:37:05]New connection [13:37:05]New thread 3067366756 created [13:37:05]Thread 3067510116 joined [13:37:05]Waiting for new connection... [13:37:05] Sock 9.Parse request [13:37:05]Sock 9.Check first char [13:37:05]Sock 9.First char is OK [13:37:05]request: POST /json_proto HTTP/1.0 [13:37:05]Method: POST [13:37:05]URL: /json_proto [13:37:05]Method is POST - this is cgi request [13:37:05]url: /json_proto [13:37:05]query_string will be loaded in cgi processing [13:37:05]execute_cgi json_proto POST (null) [13:37:05]execute_cgi path=json_proto method=POST [13:37:05]POST find Content-Length [13:37:05]Host: 172.17.39.67:8080 [13:37:05]Content-Length: 794 [13:37:05]Content-Type: application/json [13:37:05] [13:37:05]POST finish read [13:37:05]Found Content-Length = 794 [13:37:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 3.870, "sum" : 260.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:05]execute_script... [13:37: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)1319087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 3.870, "sum" : 260.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 260.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:05]POST & json_proto [13:37:05]process_json_proto [13:37:05]json parsed OK: [13:37:05]protocol is kg_v1.0 [13:37:05]action value=close_receipt [13:37:05]process_action close_receipt [13:37:05]cmd_close_receipt [13:37:05]MH_GetDate [13:37:05]Write to MH i2c: F0 00 00 32 04 25 [13:37:05]Write i2c OK [13:37:05]MH_I2C_Read... [13:37:05]Read from MH i2c: F0 [13:37:05]MH_I2C_Read... [13:37:05]Read from MH i2c: F0 09 00 [13:37:05]MH_I2C_Read... [13:37:05]Read from MH i2c: F0 09 00 32 04 00 01 83 92 66 86 7C 92 66 A4 [13:37:05]GetLastDocTimeStamp 1720877530 [13:37:05]current date 1720877825 [13:37:05]FM_GetShiftState [13:37:05]SAM_PROTO_GetShiftState [13:37:05]wFMCommunicate request_size=4 [13:37:05]MH_SAM_APDU [13:37:05]CAPDU: 80 13 01 00 [13:37:05]Write to MH i2c: E2 08 00 33 04 80 13 01 00 00 00 00 00 B4 [13:37:05]Write i2c OK [13:37:05]MH_I2C_Read... [13:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:05]Read from MH i2c: E2 [13:37:05]MH_I2C_Read... [13:37:05]Read from MH i2c: E2 0E 00 [13:37:05]MH_I2C_Read... [13:37:05]Read from MH i2c: E2 0E 00 33 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AE [13:37:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:37:05]wFMCommunicate OK [13:37:05]SAM_PROTO_GetShiftState done [13:37:05]FM_GetShiftState done [13:37:05]opened in 1720828979 [13:37:05]opened+sec_in_day 1720915379 [13:37:05]quantity*price = 26045 [13:37:05]sum+1 = 26046 [13:37:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.45 НСП 1% : 2.30 НДС 12% : 27.66 Наличными: 0.00 Безнал.: 260.45 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 203 13.07.2024 13:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162535 ФПД: 235891852166105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133705&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162535&fm=235891852166105&tin=02508201610067®Number=0000000000090858&sum=26045 [13:37:06]StoreToDocumentArchive [13:37:06]shift 462 fd 162535 [13:37:06]save to /storage/0462/doc_00162535 [13:37:06]save last doc name /storage/0462/doc_00162535 to /storage/kkm_last_doc_name [13:37:06]save OK [13:37:06]Clear old archive folders... [13:37:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:37:06]tlvbuf is 005CFA40 [13:37:06]SAM_PROTO_ClearQueue [13:37:06]wFMCommunicate request_size=4 [13:37:06]MH_SAM_APDU [13:37:06]CAPDU: 80 09 00 00 [13:37:06]Write to MH i2c: E2 08 00 40 04 80 09 00 00 00 00 00 00 B6 [13:37:06]Write i2c OK [13:37:06]MH_I2C_Read... [13:37:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:07]Read from MH i2c: E2 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 03 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [13:37:07]RAPDU: 90 00 [13:37:07]wFMCommunicate OK [13:37:07]SAM_PROTO_ClearQueue done [13:37:07]KKMCreateOFDPacket [13:37:07]OFDProtocolAddRootSTLVToBuf [13:37:07]FM_MakeSignedData [13:37:07]FM_MakeSignedData [13:37:07]SAM_PROTO_SignData [13:37:07]wFMCommunicate request_size=4 [13:37:07]MH_SAM_APDU [13:37:07]CAPDU: 80 0D 01 02 [13:37:07]Write to MH i2c: E2 08 00 41 04 80 0D 01 02 00 00 00 00 BE [13:37:07]Write i2c OK [13:37:07]MH_I2C_Read... [13:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:07]Read from MH i2c: E2 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 03 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 03 00 41 04 00 90 00 B9 [13:37:07]RAPDU: 90 00 [13:37:07]wFMCommunicate OK [13:37:07]wFMCommunicate request_size=255 [13:37:07]MH_SAM_APDU [13:37:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 0F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 BD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 01 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7A 02 00 35 04 06 00 [13:37:07]Write to MH i2c: E2 02 01 42 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 0F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 BD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 01 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7A 02 00 35 04 06 00 00 00 32 [13:37:07]Write i2c OK [13:37:07]MH_I2C_Read... [13:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:07]Read from MH i2c: E2 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 03 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 03 00 42 04 00 90 00 BA [13:37:07]RAPDU: 90 00 [13:37:07]wFMCommunicate OK [13:37:07]wFMCommunicate request_size=11 [13:37:07]MH_SAM_APDU [13:37:07]CAPDU: 80 0D 02 02 06 D6 8A DA 0D C3 D9 [13:37:07]Write to MH i2c: E2 0E 00 43 04 80 0D 02 02 06 00 D6 8A DA 0D C3 D9 00 00 B0 [13:37:07]Write i2c OK [13:37:07]MH_I2C_Read... [13:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:07]Read from MH i2c: E2 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 03 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [13:37:07]RAPDU: 90 00 [13:37:07]wFMCommunicate OK [13:37:07]wFMCommunicate request_size=4 [13:37:07]MH_SAM_APDU [13:37:07]CAPDU: 80 0D 03 02 [13:37:07]Write to MH i2c: E2 08 00 44 04 80 0D 03 02 00 00 00 00 C3 [13:37:07]Write i2c OK [13:37:07]MH_I2C_Read... [13:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:07]Read from MH i2c: E2 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 0B 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 0B 00 44 04 00 9A 2E 5B 67 1F 42 7E E4 90 00 11 [13:37:07]RAPDU: 9A 2E 5B 67 1F 42 7E E4 90 00 [13:37:07]wFMCommunicate OK [13:37:07]SAM_PROTO_SignData done [13:37:07]FM_MakeSignedData done [13:37:07]CreateOFDProtocolMessage [13:37:07]wFMCommunicate request_size=4 [13:37:07]MH_SAM_APDU [13:37:07]CAPDU: 80 11 00 00 [13:37:07]Write to MH i2c: E2 08 00 45 04 80 11 00 00 00 00 00 00 C3 [13:37:07]Write i2c OK [13:37:07]MH_I2C_Read... [13:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:07]Read from MH i2c: E2 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 17 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: E2 17 00 45 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 23 [13:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:37:07]wFMCommunicate OK [13:37:07]CreateOFDProtocolMessage done [13:37:07]OFDSenderStorePacket 162535 [13:37:07]StoreOFDPacket docnum=162535 [13:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E4 23 08 01 01 26 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 0F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 BD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 01 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7A 02 00 35 04 06 00 D6 8A DA 0D C3 D9 9A 2E 5B 67 1F 42 7E E4 [13:37:07]CheckFolder [13:37:07]dirname=/storage/ofd_packets [13:37:07]CheckFolder done [13:37:07]ProducePacketName [13:37:07]name=ofd_packets/00162535 [13:37:07]NVStorageSaveData ofd_packets/00162535 [13:37:07]File name is /storage/ofd_packets/00162535 [13:37:07]Write 302 bytes [13:37:07]NVStorageSaveData done [13:37:07]OFDSenderStorePacket done [13:37:07]KKMCreateOFDPacket done [13:37:07]NVStorageSaveData kkm_last_timestamp [13:37:07]File name is /storage/kkm_last_timestamp [13:37:07]Write 4 bytes [13:37:07]NVStorageSaveData done [13:37:07]ExternCall_PrintAddStr [13:37:07]wPrintStart [13:37:07]Write to MH i2c: 01 00 00 46 04 4A [13:37:07]Write i2c OK [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: 01 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: 01 07 00 [13:37:07]MH_I2C_Read... [13:37:07]Read from MH i2c: 01 07 00 46 04 00 00 00 00 00 FF 0F 5F [13:37:07]RasterBufferAndPrint [13:37:07]line Счет N : (1)1319087 [13:37:07]line ИНН: 02508201610067 [13:37:07]line Контрольно-Кассовый Чек [13:37:07]line ПРОДАЖА [13:37:07]line ТРК (МРК, ГНК) : 32 [13:37:07]line Товар: 2710124130 [13:37:07]line Super-92-К-5 [13:37:07]line 3.870 * 67.30 [13:37:07]line = 260.45 [13:37:07]line НДС 12% НСП 1% [13:37:07]line > о реализуемом товаре [13:37:07]line ИТОГО: 260.45 [13:37:07]line НСП 1% : 2.30 [13:37:07]line НДС 12% : 27.66 [13:37:07]line Наличными: 0.00 [13:37:07]line Безнал.: 260.45 [13:37:07]line Место: АЗС № 140 "Партнер Нефть" [13:37:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:37:07]line СНО: Общий режим [13:37:07]line Чек 203 13.07.2024 13:37 [13:37:07]line Смена: 462 ФФД: 1.0 [13:37:07]line ЗНМ: 0300000129 [13:37:07]line РНМ: 0000000000090858 [13:37:07]line Версия ККМ: 001 [13:37:07]line Платежная система: O! деньги [13:37:07]line ФМ: 0000000000874899 [13:37:07]line ФД: 162535 [13:37:07]line ФПД: 235891852166105 [13:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133705&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162535&fm=235891852166105&tin=02508201610067®Number=0000000000090858&sum=26045 [13:37:07]written 0, free lines is 4095 [13:37:07]OFD Sender: Processing packet 162535 [packets to send 106, broken 105] [13:37:07]ProducePacketName [13:37:07]name=ofd_packets/00162535 [13:37:07]OFD Sender: To server: pG, [13:37:07]CommunicateWithHost lk.salyk.kg:30040 [13:37:07]ConnectInit lk.salyk.kg [13:37:07]Connected sock=10 [13:37:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E4 23 08 01 01 26 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 0F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 BD 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 01 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7A 02 00 35 04 06 00 D6 8A DA 0D C3 D9 9A 2E 5B 67 1F 42 7E E4 [13:37:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 35 A9 47 00 D9 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E7 7A 02 00 F4 03 04 00 11 2F 92 66 B6 04 01 00 00 28 CC F0 68 38 77 0A 1C [13:37:08]CommunicateWithHost err = 0 [13:37:08]CheckOFDResponse [13:37:08]1017 (14) - 77093643461234 [13:37:08]1041 (16) - 0000000000874899 [13:37:08]1040 (4) - 162535 [13:37:08]1012 (4) - 13.07.2024 07:38 [13:37:08]1206 (1) - 0 [13:37:08]OFD Sender: Remove packet 162535 [13:37:08]ProducePacketName [13:37:08]name=ofd_packets/00162535 [13:37:08]NVStorageDeleteData [13:37:08]Write to MH i2c: 01 00 00 70 04 74 [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: 01 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: 01 07 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: 01 07 00 70 04 00 00 00 00 00 F7 0C 7E [13:37:08]RasterBufferAndPrint [13:37:08]line [13:37:08]line [13:37:08]line [13:37:08]line [13:37:08]line [13:37:08]written 0, free lines is 3326 [13:37:08]MH_Cut [13:37:08]Write to MH i2c: D1 01 00 77 04 01 4D [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: D1 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: D1 01 00 [13:37:08]MH_I2C_Read... [13:37:08]Read from MH i2c: D1 01 00 77 04 00 4C [13:37:08]Write to MH i2c: 01 00 00 78 04 7C [13:37:08]Write i2c OK [13:37:08]MH_I2C_Read... [13:37:08]OFD Sender: No OFD packet to send [13:37:08]*** Cut start [13:37:08]*** Purtial cut [13:37:08]*** Stage 1: CUTSNS_PIN = 1 [13:37:09]Read from MH i2c: 01 [13:37:09]MH_I2C_Read... [13:37:09]*** Stop cut motor [13:37:09]*** Cut end [13:37:09]Read from MH i2c: 01 07 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: 01 07 00 78 04 00 00 00 00 00 FF 0F 91 [13:37:09]process_action close_receipt done [13:37:09]requested_data is exist [13:37:09]produce_requested_data [13:37:09]requested_item fm.sn is exist - process it [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 11 00 00 [13:37:09]Write to MH i2c: E2 08 00 79 04 80 11 00 00 00 00 00 00 F7 [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 17 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 17 00 79 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 57 [13:37:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:37:09]wFMCommunicate OK [13:37:09]requested_item fd.num is exist - process it [13:37:09]SAM_PROTO_GetFieldsCounters [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 13 00 00 [13:37:09]Write to MH i2c: E2 08 00 7A 04 80 13 00 00 00 00 00 00 FA [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 62 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 62 00 7A 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [13:37:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:09]wFMCommunicate OK [13:37:09]SAM_PROTO_GetFieldsCounters done [13:37:09]requested_item shift.num is exist - process it [13:37:09]requested_item shift.opened is exist - process it [13:37:09]req_shift_opened [13:37:09]FM_GetShiftState [13:37:09]SAM_PROTO_GetShiftState [13:37:09]wFMCommunicate request_size=4 [13:37:09]MH_SAM_APDU [13:37:09]CAPDU: 80 13 01 00 [13:37:09]Write to MH i2c: E2 08 00 7B 04 80 13 01 00 00 00 00 00 FC [13:37:09]Write i2c OK [13:37:09]MH_I2C_Read... [13:37:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:09]Read from MH i2c: E2 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 0E 00 [13:37:09]MH_I2C_Read... [13:37:09]Read from MH i2c: E2 0E 00 7B 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F6 [13:37:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:37:09]wFMCommunicate OK [13:37:09]SAM_PROTO_GetShiftState done [13:37:09]FM_GetShiftState done [13:37:09]req_shift_opened done [13:37:09]requested_item shift.open_date is exist - process it [13:37:09]req_shift_open_date [13:37:09]req_shift_open_date done [13:37:09]produce_requested_data done [13:37:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162535,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:37:09]process_action_free close_receipt [13:37:09]json_value_free [13:37:09]json_value_free done [13:37:09]process_json_proto returns [13:37:09]Send response to host [13:37:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162535,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:37:09]free response buf [13:37:09]execute_script done [13:37:09]execute_script returns [13:37:09]free content buf [13:37:09]Sock 9.Close socket [13:37:09]Sock 9.Thread stoped [13:37:13]OFD Sender: No OFD packet to send [13:37:18]OFD Sender: No OFD packet to send [13:37:23]OFD Sender: No OFD packet to send [13:37:28]OFD Sender: No OFD packet to send [13:37:33]OFD Sender: No OFD packet to send [13:37:38]OFD Sender: No OFD packet to send [13:37:42]accept exits with 7 [13:37:42]New connection [13:37:42]New thread 3067510116 created [13:37:42]Thread 3067366756 joined [13:37:42]Waiting for new connection... [13:37:42] Sock 7.Parse request [13:37:42]Sock 7.Check first char [13:37:42]Sock 7.First char is OK [13:37:42]request: POST /json_proto HTTP/1.0 [13:37:42]Method: POST [13:37:42]URL: /json_proto [13:37:42]Method is POST - this is cgi request [13:37:42]url: /json_proto [13:37:42]query_string will be loaded in cgi processing [13:37:42]execute_cgi json_proto POST (null) [13:37:42]execute_cgi path=json_proto method=POST [13:37:42]POST find Content-Length [13:37:42]Host: 172.17.39.67:8080 [13:37:42]Content-Length: 671 [13:37:42]Content-Type: application/json [13:37:42] [13:37:42]POST finish read [13:37:42]Found Content-Length = 671 [13:37:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 2.460, "sum" : 165.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 165.00, "total" : 165.00, "payments": [ { "type": 0, "sum" : 165.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:42]execute_script... [13:37: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)1319088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 2.460, "sum" : 165.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 165.00, "total" : 165.00, "payments": [ { "type": 0, "sum" : 165.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:37:42]POST & json_proto [13:37:42]process_json_proto [13:37:42]json parsed OK: [13:37:42]protocol is kg_v1.0 [13:37:42]action value=close_receipt [13:37:42]process_action close_receipt [13:37:42]cmd_close_receipt [13:37:42]MH_GetDate [13:37:42]Write to MH i2c: F0 00 00 7C 04 6F [13:37:42]Write i2c OK [13:37:42]MH_I2C_Read... [13:37:42]Read from MH i2c: F0 [13:37:42]MH_I2C_Read... [13:37:42]Read from MH i2c: F0 09 00 [13:37:42]MH_I2C_Read... [13:37:42]Read from MH i2c: F0 09 00 7C 04 00 27 83 92 66 86 7C 92 66 14 [13:37:42]GetLastDocTimeStamp 1720877825 [13:37:42]current date 1720877863 [13:37:42]FM_GetShiftState [13:37:42]SAM_PROTO_GetShiftState [13:37:42]wFMCommunicate request_size=4 [13:37:42]MH_SAM_APDU [13:37:42]CAPDU: 80 13 01 00 [13:37:42]Write to MH i2c: E2 08 00 7D 04 80 13 01 00 00 00 00 00 FE [13:37:42]Write i2c OK [13:37:42]MH_I2C_Read... [13:37:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:42]Read from MH i2c: E2 [13:37:42]MH_I2C_Read... [13:37:42]Read from MH i2c: E2 0E 00 [13:37:42]MH_I2C_Read... [13:37:42]Read from MH i2c: E2 0E 00 7D 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F8 [13:37:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:37:42]wFMCommunicate OK [13:37:42]SAM_PROTO_GetShiftState done [13:37:42]FM_GetShiftState done [13:37:42]opened in 1720828979 [13:37:42]opened+sec_in_day 1720915379 [13:37:42]quantity*price = 16555 [13:37:42]sum+1 = 16557 [13:37:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 165.00 Внесено: 165.00 СДАЧА: 0.00 НСП 1% : 1.46 НДС 12% : 17.58 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 204 13.07.2024 13:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162536 ФПД: 210715908266228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133743&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162536&fm=210715908266228&tin=02508201610067®Number=0000000000090858&sum=16500 [13:37:44]StoreToDocumentArchive [13:37:44]shift 462 fd 162536 [13:37:44]save to /storage/0462/doc_00162536 [13:37:44]save last doc name /storage/0462/doc_00162536 to /storage/kkm_last_doc_name [13:37:44]save OK [13:37:44]Clear old archive folders... [13:37:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:37:44]tlvbuf is 006AE8B0 [13:37:44]SAM_PROTO_ClearQueue [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 09 00 00 [13:37:44]Write to MH i2c: E2 08 00 8A 04 80 09 00 00 00 00 00 00 00 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 8A 04 00 90 00 02 [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]SAM_PROTO_ClearQueue done [13:37:44]KKMCreateOFDPacket [13:37:44]OFDProtocolAddRootSTLVToBuf [13:37:44]FM_MakeSignedData [13:37:44]FM_MakeSignedData [13:37:44]SAM_PROTO_SignData [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 0D 01 02 [13:37:44]Write to MH i2c: E2 08 00 8B 04 80 0D 01 02 00 00 00 00 08 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 8B 04 00 90 00 03 [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]wFMCommunicate request_size=255 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 09 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AC 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 06 00 00 00 00 07 04 06 00 74 40 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 27 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7A 02 00 35 04 06 00 [13:37:44]Write to MH i2c: E2 02 01 8C 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 09 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AC 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 06 00 00 00 00 07 04 06 00 74 40 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 27 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7A 02 00 35 04 06 00 00 00 C2 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 8C 04 00 90 00 04 [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]wFMCommunicate request_size=11 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 0D 02 02 06 BF A5 1E DC 58 F4 [13:37:44]Write to MH i2c: E2 0E 00 8D 04 80 0D 02 02 06 00 BF A5 1E DC 58 F4 00 00 C1 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 03 00 8D 04 00 90 00 05 [13:37:44]RAPDU: 90 00 [13:37:44]wFMCommunicate OK [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 0D 03 02 [13:37:44]Write to MH i2c: E2 08 00 8E 04 80 0D 03 02 00 00 00 00 0D [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 0B 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 0B 00 8E 04 00 51 E4 A4 80 CA E3 87 2E 90 00 C9 [13:37:44]RAPDU: 51 E4 A4 80 CA E3 87 2E 90 00 [13:37:44]wFMCommunicate OK [13:37:44]SAM_PROTO_SignData done [13:37:44]FM_MakeSignedData done [13:37:44]CreateOFDProtocolMessage [13:37:44]wFMCommunicate request_size=4 [13:37:44]MH_SAM_APDU [13:37:44]CAPDU: 80 11 00 00 [13:37:44]Write to MH i2c: E2 08 00 8F 04 80 11 00 00 00 00 00 00 0D [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:44]Read from MH i2c: E2 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 17 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: E2 17 00 8F 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6D [13:37:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:37:44]wFMCommunicate OK [13:37:44]CreateOFDProtocolMessage done [13:37:44]OFDSenderStorePacket 162536 [13:37:44]StoreOFDPacket docnum=162536 [13:37:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 93 A7 08 01 3F 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 09 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AC 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 06 00 00 00 00 07 04 06 00 74 40 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 27 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7A 02 00 35 04 06 00 BF A5 1E DC 58 F4 51 E4 A4 80 CA E3 87 2E [13:37:44]CheckFolder [13:37:44]dirname=/storage/ofd_packets [13:37:44]CheckFolder done [13:37:44]ProducePacketName [13:37:44]name=ofd_packets/00162536 [13:37:44]NVStorageSaveData ofd_packets/00162536 [13:37:44]File name is /storage/ofd_packets/00162536 [13:37:44]Write 302 bytes [13:37:44]NVStorageSaveData done [13:37:44]OFDSenderStorePacket done [13:37:44]KKMCreateOFDPacket done [13:37:44]NVStorageSaveData kkm_last_timestamp [13:37:44]File name is /storage/kkm_last_timestamp [13:37:44]Write 4 bytes [13:37:44]NVStorageSaveData done [13:37:44]ExternCall_PrintAddStr [13:37:44]wPrintStart [13:37:44]Write to MH i2c: 01 00 00 90 04 94 [13:37:44]Write i2c OK [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: 01 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: 01 07 00 [13:37:44]MH_I2C_Read... [13:37:44]Read from MH i2c: 01 07 00 90 04 00 00 00 00 00 FF 0F A9 [13:37:44]RasterBufferAndPrint [13:37:44]line Счет N : (1)1319088 [13:37:44]line ИНН: 02508201610067 [13:37:44]line Контрольно-Кассовый Чек [13:37:44]line ПРОДАЖА [13:37:44]line ТРК (МРК, ГНК) : 32 [13:37:44]line Товар: 2710124130 [13:37:44]line Super-92-К-5 [13:37:44]line 2.460 * 67.30 [13:37:44]line = 165.56 [13:37:44]line НДС 12% НСП 1% [13:37:44]line > о реализуемом товаре [13:37:44]line ОКРУГЛЕНИЕ: -0.56 [13:37:44]line ИТОГО: 165.00 [13:37:44]line Внесено: 165.00 [13:37:44]line СДАЧА: 0.00 [13:37:44]line НСП 1% : 1.46 [13:37:44]line НДС 12% : 17.58 [13:37:44]line Наличными: 165.00 [13:37:44]line Безнал.: 0.00 [13:37:44]line Место: АЗС № 140 "Партнер Нефть" [13:37:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:37:44]line СНО: Общий режим [13:37:44]line Чек 204 13.07.2024 13:37 [13:37:44]line Смена: 462 ФФД: 1.0 [13:37:44]line ЗНМ: 0300000129 [13:37:44]line РНМ: 0000000000090858 [13:37:44]line Версия ККМ: 001 [13:37:44]line ФМ: 0000000000874899 [13:37:44]line ФД: 162536 [13:37:44]line ФПД: 210715908266228 [13:37:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T133743&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162536&fm=210715908266228&tin=02508201610067®Number=0000000000090858&sum=16500 [13:37:44]OFD Sender: Processing packet 162536 [packets to send 106, broken 105] [13:37:44]ProducePacketName [13:37:44]name=ofd_packets/00162536 [13:37:44]OFD Sender: To server: pG, [13:37:44]CommunicateWithHost lk.salyk.kg:30040 [13:37:44]ConnectInit lk.salyk.kg [13:37:44]written 0, free lines is 4095 [13:37:45]Connected sock=10 [13:37:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 93 A7 08 01 3F 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 09 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 AC 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 06 00 00 00 00 07 04 06 00 74 40 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 27 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7A 02 00 35 04 06 00 BF A5 1E DC 58 F4 51 E4 A4 80 CA E3 87 2E [13:37:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C2 25 47 00 AA 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E8 7A 02 00 F4 03 04 00 36 2F 92 66 B6 04 01 00 00 07 61 2C 36 56 85 8F 19 [13:37:45]CommunicateWithHost err = 0 [13:37:45]CheckOFDResponse [13:37:45]1017 (14) - 77093643461234 [13:37:45]1041 (16) - 0000000000874899 [13:37:45]1040 (4) - 162536 [13:37:45]1012 (4) - 13.07.2024 07:39 [13:37:45]1206 (1) - 0 [13:37:45]OFD Sender: Remove packet 162536 [13:37:45]ProducePacketName [13:37:45]name=ofd_packets/00162536 [13:37:45]NVStorageDeleteData [13:37:45]Write to MH i2c: 01 00 00 BB 04 BF [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 07 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 E2 0C B4 [13:37:45]RasterBufferAndPrint [13:37:45]line [13:37:45]line [13:37:45]line [13:37:45]line [13:37:45]line [13:37:45]written 0, free lines is 3304 [13:37:45]MH_Cut [13:37:45]Write to MH i2c: D1 01 00 C2 04 01 98 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: D1 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: D1 01 00 [13:37:45]MH_I2C_Read... [13:37:45]Read from MH i2c: D1 01 00 C2 04 00 97 [13:37:45]Write to MH i2c: 01 00 00 C3 04 C7 [13:37:45]Write i2c OK [13:37:45]MH_I2C_Read... [13:37:45]OFD Sender: No OFD packet to send [13:37:46]*** Cut start [13:37:46]*** Purtial cut [13:37:46]*** CUTSNS_PIN = 0 [13:37:46]*** Stage 1: CUTSNS_PIN = 1 [13:37:48]Read from MH i2c: 01 [13:37:48]MH_I2C_Read... [13:37:48]*** Stop cut motor [13:37:48]*** Cut end [13:37:48]Read from MH i2c: 01 07 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: 01 07 00 C3 04 00 00 00 00 00 FF 0F DC [13:37:48]process_action close_receipt done [13:37:48]requested_data is exist [13:37:48]produce_requested_data [13:37:48]requested_item fm.sn is exist - process it [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 11 00 00 [13:37:48]Write to MH i2c: E2 08 00 C4 04 80 11 00 00 00 00 00 00 42 [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 17 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 17 00 C4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A2 [13:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:37:48]wFMCommunicate OK [13:37:48]requested_item fd.num is exist - process it [13:37:48]SAM_PROTO_GetFieldsCounters [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 13 00 00 [13:37:48]Write to MH i2c: E2 08 00 C5 04 80 13 00 00 00 00 00 00 45 [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 62 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 62 00 C5 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [13:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:37:48]wFMCommunicate OK [13:37:48]SAM_PROTO_GetFieldsCounters done [13:37:48]requested_item shift.num is exist - process it [13:37:48]requested_item shift.opened is exist - process it [13:37:48]req_shift_opened [13:37:48]FM_GetShiftState [13:37:48]SAM_PROTO_GetShiftState [13:37:48]wFMCommunicate request_size=4 [13:37:48]MH_SAM_APDU [13:37:48]CAPDU: 80 13 01 00 [13:37:48]Write to MH i2c: E2 08 00 C6 04 80 13 01 00 00 00 00 00 47 [13:37:48]Write i2c OK [13:37:48]MH_I2C_Read... [13:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:37:48]Read from MH i2c: E2 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 0E 00 [13:37:48]MH_I2C_Read... [13:37:48]Read from MH i2c: E2 0E 00 C6 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 41 [13:37:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:37:48]wFMCommunicate OK [13:37:48]SAM_PROTO_GetShiftState done [13:37:48]FM_GetShiftState done [13:37:48]req_shift_opened done [13:37:48]requested_item shift.open_date is exist - process it [13:37:48]req_shift_open_date [13:37:48]req_shift_open_date done [13:37:48]produce_requested_data done [13:37:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162536,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:37:48]process_action_free close_receipt [13:37:48]json_value_free [13:37:48]json_value_free done [13:37:48]process_json_proto returns [13:37:48]Send response to host [13:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162536,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:37:48]free response buf [13:37:48]execute_script done [13:37:48]execute_script returns [13:37:48]free content buf [13:37:48]Sock 7.Close socket [13:37:48]Sock 7.Thread stoped [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40: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:13]accept exits with 9 [13:41:13]New connection [13:41:13]New thread 3067366756 created [13:41:13]Thread 3067510116 joined [13:41:13]Waiting for new connection... [13:41:13] Sock 9.Parse request [13:41:13]Sock 9.Check first char [13:41:13]Sock 9.First char is OK [13:41:13]request: POST /json_proto HTTP/1.0 [13:41:13]Method: POST [13:41:13]URL: /json_proto [13:41:13]Method is POST - this is cgi request [13:41:13]url: /json_proto [13:41:13]query_string will be loaded in cgi processing [13:41:13]execute_cgi json_proto POST (null) [13:41:13]execute_cgi path=json_proto method=POST [13:41:13]POST find Content-Length [13:41:13]Host: 172.17.39.67:8080 [13:41:13]Content-Length: 676 [13:41:13]Content-Type: application/json [13:41:13] [13:41:13]POST finish read [13:41:13]Found Content-Length = 676 [13:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:13]execute_script... [13:41:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:13]POST & json_proto [13:41:13]process_json_proto [13:41:13]json parsed OK: [13:41:13]protocol is kg_v1.0 [13:41:13]action value=close_receipt [13:41:13]process_action close_receipt [13:41:13]cmd_close_receipt [13:41:13]MH_GetDate [13:41:13]Write to MH i2c: F0 00 00 C7 04 BA [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: F0 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: F0 09 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: F0 09 00 C7 04 00 F9 83 92 66 86 7C 92 66 31 [13:41:13]GetLastDocTimeStamp 1720877863 [13:41:13]current date 1720878073 [13:41:13]FM_GetShiftState [13:41:13]SAM_PROTO_GetShiftState [13:41:13]wFMCommunicate request_size=4 [13:41:13]MH_SAM_APDU [13:41:13]CAPDU: 80 13 01 00 [13:41:13]Write to MH i2c: E2 08 00 C8 04 80 13 01 00 00 00 00 00 49 [13:41:13]Write i2c OK [13:41:13]MH_I2C_Read... [13:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:13]Read from MH i2c: E2 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 0E 00 [13:41:13]MH_I2C_Read... [13:41:13]Read from MH i2c: E2 0E 00 C8 04 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 43 [13:41:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:41:13]wFMCommunicate OK [13:41:13]SAM_PROTO_GetShiftState done [13:41:13]FM_GetShiftState done [13:41:13]opened in 1720828979 [13:41:13]opened+sec_in_day 1720915379 [13:41:13]quantity*price = 100007 [13:41:13]sum+1 = 100009 [13:41:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 205 13.07.2024 13:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162537 ФПД: 225955667955506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134113&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162537&fm=225955667955506&tin=02508201610067®Number=0000000000090858&sum=100000 [13:41:14]StoreToDocumentArchive [13:41:14]shift 462 fd 162537 [13:41:14]save to /storage/0462/doc_00162537 [13:41:14]save last doc name /storage/0462/doc_00162537 to /storage/kkm_last_doc_name [13:41:14]save OK [13:41:14]Clear old archive folders... [13:41:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:41:14]tlvbuf is 005D15D0 [13:41:14]SAM_PROTO_ClearQueue [13:41:14]wFMCommunicate request_size=4 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 09 00 00 [13:41:14]Write to MH i2c: E2 08 00 D5 04 80 09 00 00 00 00 00 00 4B [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 D5 04 00 90 00 4D [13:41:14]RAPDU: 90 00 [13:41:14]wFMCommunicate OK [13:41:14]SAM_PROTO_ClearQueue done [13:41:14]KKMCreateOFDPacket [13:41:14]OFDProtocolAddRootSTLVToBuf [13:41:14]FM_MakeSignedData [13:41:14]FM_MakeSignedData [13:41:14]SAM_PROTO_SignData [13:41:14]wFMCommunicate request_size=4 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 0D 01 02 [13:41:14]Write to MH i2c: E2 08 00 D6 04 80 0D 01 02 00 00 00 00 53 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 D6 04 00 90 00 4E [13:41:14]RAPDU: 90 00 [13:41:14]wFMCommunicate OK [13:41:14]wFMCommunicate request_size=255 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F9 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7A 02 00 35 04 06 00 [13:41:14]Write to MH i2c: E2 02 01 D7 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F9 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7A 02 00 35 04 06 00 00 00 52 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 D7 04 00 90 00 4F [13:41:14]RAPDU: 90 00 [13:41:14]wFMCommunicate OK [13:41:14]wFMCommunicate request_size=11 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 0D 02 02 06 CD 81 67 52 CF 32 [13:41:14]Write to MH i2c: E2 0E 00 D8 04 80 0D 02 02 06 00 CD 81 67 52 CF 32 00 00 6A [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [13:41:14]RAPDU: 90 00 [13:41:14]wFMCommunicate OK [13:41:14]wFMCommunicate request_size=4 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 0D 03 02 [13:41:14]Write to MH i2c: E2 08 00 D9 04 80 0D 03 02 00 00 00 00 58 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 0B 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 0B 00 D9 04 00 C3 86 3A 51 52 AF FD A4 90 00 CF [13:41:14]RAPDU: C3 86 3A 51 52 AF FD A4 90 00 [13:41:14]wFMCommunicate OK [13:41:14]SAM_PROTO_SignData done [13:41:14]FM_MakeSignedData done [13:41:14]CreateOFDProtocolMessage [13:41:14]wFMCommunicate request_size=4 [13:41:14]MH_SAM_APDU [13:41:14]CAPDU: 80 11 00 00 [13:41:14]Write to MH i2c: E2 08 00 DA 04 80 11 00 00 00 00 00 00 58 [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:14]Read from MH i2c: E2 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 17 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: E2 17 00 DA 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B8 [13:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:41:14]wFMCommunicate OK [13:41:14]CreateOFDProtocolMessage done [13:41:14]OFDSenderStorePacket 162537 [13:41:14]StoreOFDPacket docnum=162537 [13:41:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 93 51 08 01 BF E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F9 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7A 02 00 35 04 06 00 CD 81 67 52 CF 32 C3 86 3A 51 52 AF FD A4 [13:41:14]CheckFolder [13:41:14]dirname=/storage/ofd_packets [13:41:14]CheckFolder done [13:41:14]ProducePacketName [13:41:14]name=ofd_packets/00162537 [13:41:14]NVStorageSaveData ofd_packets/00162537 [13:41:14]File name is /storage/ofd_packets/00162537 [13:41:14]Write 302 bytes [13:41:14]NVStorageSaveData done [13:41:14]OFDSenderStorePacket done [13:41:14]KKMCreateOFDPacket done [13:41:14]NVStorageSaveData kkm_last_timestamp [13:41:14]File name is /storage/kkm_last_timestamp [13:41:14]Write 4 bytes [13:41:14]NVStorageSaveData done [13:41:14]ExternCall_PrintAddStr [13:41:14]wPrintStart [13:41:14]Write to MH i2c: 01 00 00 DB 04 DF [13:41:14]Write i2c OK [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: 01 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: 01 07 00 [13:41:14]MH_I2C_Read... [13:41:14]Read from MH i2c: 01 07 00 DB 04 00 00 00 00 00 FF 0F F4 [13:41:14]RasterBufferAndPrint [13:41:14]line Счет N : (1)1319089 [13:41:14]line ИНН: 02508201610067 [13:41:14]line Контрольно-Кассовый Чек [13:41:14]line ПРОДАЖА [13:41:14]line ТРК (МРК, ГНК) : 42 [13:41:14]line Товар: 2710124130 [13:41:14]line Super-92-К-5 [13:41:14]line 14.860 * 67.30 [13:41:14]line = 1000.08 [13:41:14]line НДС 12% НСП 1% [13:41:14]line > о реализуемом товаре [13:41:14]line ОКРУГЛЕНИЕ: -0.08 [13:41:14]line ИТОГО: 1000.00 [13:41:14]line Внесено: 1000.00 [13:41:14]line СДАЧА: 0.00 [13:41:14]line НСП 1% : 8.85 [13:41:14]line НДС 12% : 106.20 [13:41:14]line Наличными: 1000.00 [13:41:14]line Безнал.: 0.00 [13:41:14]line Место: АЗС № 140 "Партнер Нефть" [13:41:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:41:14]line СНО: Общий режим [13:41:14]line Чек 205 13.07.2024 13:41 [13:41:14]line Смена: 462 ФФД: 1.0 [13:41:14]line ЗНМ: 0300000129 [13:41:14]line РНМ: 0000000000090858 [13:41:14]line Версия ККМ: 001 [13:41:14]line ФМ: 0000000000874899 [13:41:14]line ФД: 162537 [13:41:14]line ФПД: 225955667955506 [13:41:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134113&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162537&fm=225955667955506&tin=02508201610067®Number=0000000000090858&sum=100000 [13:41:15]OFD Sender: Processing packet 162537 [packets to send 106, broken 105] [13:41:15]ProducePacketName [13:41:15]name=ofd_packets/00162537 [13:41:15]OFD Sender: To server: pG, [13:41:15]CommunicateWithHost lk.salyk.kg:30040 [13:41:15]ConnectInit lk.salyk.kg [13:41:15]written 0, free lines is 4095 [13:41:15]Connected sock=10 [13:41:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 93 51 08 01 BF E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F9 83 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7A 02 00 35 04 06 00 CD 81 67 52 CF 32 C3 86 3A 51 52 AF FD A4 [13:41:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EF C8 47 00 24 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 E9 7A 02 00 F4 03 04 00 08 30 92 66 B6 04 01 00 00 17 16 49 49 24 D4 58 E7 [13:41:15]CommunicateWithHost err = 0 [13:41:15]CheckOFDResponse [13:41:15]1017 (14) - 77093643461234 [13:41:15]1041 (16) - 0000000000874899 [13:41:15]1040 (4) - 162537 [13:41:15]1012 (4) - 13.07.2024 07:43 [13:41:15]1206 (1) - 0 [13:41:15]OFD Sender: Remove packet 162537 [13:41:15]ProducePacketName [13:41:15]name=ofd_packets/00162537 [13:41:15]NVStorageDeleteData [13:41:15]Write to MH i2c: 01 00 00 06 05 0B [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: 01 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: 01 07 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 EA 0C 08 [13:41:15]RasterBufferAndPrint [13:41:15]line [13:41:15]line [13:41:15]line [13:41:15]line [13:41:15]line [13:41:15]written 0, free lines is 3312 [13:41:15]MH_Cut [13:41:15]Write to MH i2c: D1 01 00 0D 05 01 E4 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: D1 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: D1 01 00 [13:41:15]MH_I2C_Read... [13:41:15]Read from MH i2c: D1 01 00 0D 05 00 E3 [13:41:15]Write to MH i2c: 01 00 00 0E 05 13 [13:41:15]Write i2c OK [13:41:15]MH_I2C_Read... [13:41:15]OFD Sender: No OFD packet to send [13:41:16]*** Cut start [13:41:16]*** Purtial cut [13:41:16]*** Stage 1: CUTSNS_PIN = 1 [13:41:16]Read from MH i2c: 01 [13:41:16]MH_I2C_Read... [13:41:16]*** Stop cut motor [13:41:16]*** Cut end [13:41:16]Read from MH i2c: 01 07 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: 01 07 00 0E 05 00 00 00 00 00 FF 0F 28 [13:41:16]process_action close_receipt done [13:41:16]requested_data is exist [13:41:16]produce_requested_data [13:41:16]requested_item fm.sn is exist - process it [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 11 00 00 [13:41:16]Write to MH i2c: E2 08 00 0F 05 80 11 00 00 00 00 00 00 8E [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 17 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 17 00 0F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EE [13:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:41:16]wFMCommunicate OK [13:41:16]requested_item fd.num is exist - process it [13:41:16]SAM_PROTO_GetFieldsCounters [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 13 00 00 [13:41:16]Write to MH i2c: E2 08 00 10 05 80 13 00 00 00 00 00 00 91 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 62 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 62 00 10 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [13:41:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 E9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:16]wFMCommunicate OK [13:41:16]SAM_PROTO_GetFieldsCounters done [13:41:16]requested_item shift.num is exist - process it [13:41:16]requested_item shift.opened is exist - process it [13:41:16]req_shift_opened [13:41:16]FM_GetShiftState [13:41:16]SAM_PROTO_GetShiftState [13:41:16]wFMCommunicate request_size=4 [13:41:16]MH_SAM_APDU [13:41:16]CAPDU: 80 13 01 00 [13:41:16]Write to MH i2c: E2 08 00 11 05 80 13 01 00 00 00 00 00 93 [13:41:16]Write i2c OK [13:41:16]MH_I2C_Read... [13:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:16]Read from MH i2c: E2 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 0E 00 [13:41:16]MH_I2C_Read... [13:41:16]Read from MH i2c: E2 0E 00 11 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8D [13:41:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:41:16]wFMCommunicate OK [13:41:16]SAM_PROTO_GetShiftState done [13:41:16]FM_GetShiftState done [13:41:16]req_shift_opened done [13:41:16]requested_item shift.open_date is exist - process it [13:41:16]req_shift_open_date [13:41:16]req_shift_open_date done [13:41:16]produce_requested_data done [13:41:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162537,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:41:16]process_action_free close_receipt [13:41:16]json_value_free [13:41:16]json_value_free done [13:41:16]process_json_proto returns [13:41:16]Send response to host [13:41:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162537,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:41:16]free response buf [13:41:16]execute_script done [13:41:16]execute_script returns [13:41:16]free content buf [13:41:16]Sock 9.Close socket [13:41:16]Sock 9.Thread stoped [13:41:20]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [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:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:33]accept exits with 7 [13:49:33]New connection [13:49:33]New thread 3067510116 created [13:49:33]Thread 3067366756 joined [13:49:33]Waiting for new connection... [13:49:33] Sock 7.Parse request [13:49:33]Sock 7.Check first char [13:49:33]Sock 7.First char is OK [13:49:33]request: POST /json_proto HTTP/1.0 [13:49:33]Method: POST [13:49:33]URL: /json_proto [13:49:33]Method is POST - this is cgi request [13:49:33]url: /json_proto [13:49:33]query_string will be loaded in cgi processing [13:49:33]execute_cgi json_proto POST (null) [13:49:33]execute_cgi path=json_proto method=POST [13:49:33]POST find Content-Length [13:49:33]Host: 172.17.39.67:8080 [13:49:33]Content-Length: 683 [13:49:33]Content-Type: application/json [13:49:33] [13:49:33]POST finish read [13:49:33]Found Content-Length = 683 [13:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:49:33]execute_script... [13:49: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)1319091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:49:33]POST & json_proto [13:49:33]process_json_proto [13:49:33]json parsed OK: [13:49:33]protocol is kg_v1.0 [13:49:33]action value=close_receipt [13:49:33]process_action close_receipt [13:49:33]cmd_close_receipt [13:49:33]MH_GetDate [13:49:33]Write to MH i2c: F0 00 00 12 05 06 [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: F0 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: F0 09 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: F0 09 00 12 05 00 ED 85 92 66 86 7C 92 66 73 [13:49:33]GetLastDocTimeStamp 1720878073 [13:49:33]current date 1720878573 [13:49:33]FM_GetShiftState [13:49:33]SAM_PROTO_GetShiftState [13:49:33]wFMCommunicate request_size=4 [13:49:33]MH_SAM_APDU [13:49:33]CAPDU: 80 13 01 00 [13:49:33]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [13:49:33]Write i2c OK [13:49:33]MH_I2C_Read... [13:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:33]Read from MH i2c: E2 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: E2 0E 00 [13:49:33]MH_I2C_Read... [13:49:33]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8F [13:49:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:49:33]wFMCommunicate OK [13:49:33]SAM_PROTO_GetShiftState done [13:49:33]FM_GetShiftState done [13:49:33]opened in 1720828979 [13:49:33]opened+sec_in_day 1720915379 [13:49:33]quantity*price = 50021 [13:49:33]sum+1 = 50022 [13:49:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 206 13.07.2024 13:49 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162538 ФПД: 145433208810692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134933&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162538&fm=145433208810692&tin=02508201610067®Number=0000000000090858&sum=50000 [13:49:34]StoreToDocumentArchive [13:49:34]shift 462 fd 162538 [13:49:34]save to /storage/0462/doc_00162538 [13:49:34]save last doc name /storage/0462/doc_00162538 to /storage/kkm_last_doc_name [13:49:34]save OK [13:49:34]Clear old archive folders... [13:49:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:49:34]tlvbuf is 006AE8B0 [13:49:34]SAM_PROTO_ClearQueue [13:49:34]wFMCommunicate request_size=4 [13:49:34]MH_SAM_APDU [13:49:34]CAPDU: 80 09 00 00 [13:49:34]Write to MH i2c: E2 08 00 20 05 80 09 00 00 00 00 00 00 97 [13:49:34]Write i2c OK [13:49:34]MH_I2C_Read... [13:49:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:34]Read from MH i2c: E2 [13:49:34]MH_I2C_Read... [13:49:34]Read from MH i2c: E2 03 00 [13:49:34]MH_I2C_Read... [13:49:34]Read from MH i2c: E2 03 00 20 05 00 90 00 99 [13:49:34]RAPDU: 90 00 [13:49:34]wFMCommunicate OK [13:49:34]SAM_PROTO_ClearQueue done [13:49:34]KKMCreateOFDPacket [13:49:34]OFDProtocolAddRootSTLVToBuf [13:49:34]FM_MakeSignedData [13:49:34]FM_MakeSignedData [13:49:34]SAM_PROTO_SignData [13:49:34]wFMCommunicate request_size=4 [13:49:34]MH_SAM_APDU [13:49:34]CAPDU: 80 0D 01 02 [13:49:34]Write to MH i2c: E2 08 00 21 05 80 0D 01 02 00 00 00 00 9F [13:49:34]Write i2c OK [13:49:34]MH_I2C_Read... [13:49:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:34]Read from MH i2c: E2 [13:49:34]MH_I2C_Read... [13:49:34]Read from MH i2c: E2 03 00 [13:49:34]MH_I2C_Read... [13:49:34]Read from MH i2c: E2 03 00 21 05 00 90 00 9A [13:49:34]RAPDU: 90 00 [13:49:34]wFMCommunicate OK [13:49:34]wFMCommunicate request_size=255 [13:49:34]MH_SAM_APDU [13:49:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 CE 00 00 00 F4 03 04 00 ED 85 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7A 02 00 35 04 06 00 [13:49:34]Write to MH i2c: E2 02 01 22 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 CE 00 00 00 F4 03 04 00 ED 85 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7A 02 00 35 04 06 00 00 00 BD [13:49:34]Write i2c OK [13:49:34]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [13:49:35]RAPDU: 90 00 [13:49:35]wFMCommunicate OK [13:49:35]wFMCommunicate request_size=11 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 0D 02 02 06 84 45 4E BF EC C4 [13:49:35]Write to MH i2c: E2 0E 00 23 05 80 0D 02 02 06 00 84 45 4E BF EC C4 00 00 34 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [13:49:35]RAPDU: 90 00 [13:49:35]wFMCommunicate OK [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 0D 03 02 [13:49:35]Write to MH i2c: E2 08 00 24 05 80 0D 03 02 00 00 00 00 A4 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 0B 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 0B 00 24 05 00 3D C4 70 0B A7 CE F0 3C 90 00 C2 [13:49:35]RAPDU: 3D C4 70 0B A7 CE F0 3C 90 00 [13:49:35]wFMCommunicate OK [13:49:35]SAM_PROTO_SignData done [13:49:35]FM_MakeSignedData done [13:49:35]CreateOFDProtocolMessage [13:49:35]wFMCommunicate request_size=4 [13:49:35]MH_SAM_APDU [13:49:35]CAPDU: 80 11 00 00 [13:49:35]Write to MH i2c: E2 08 00 25 05 80 11 00 00 00 00 00 00 A4 [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:35]Read from MH i2c: E2 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 17 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: E2 17 00 25 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 04 [13:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:49:35]wFMCommunicate OK [13:49:35]CreateOFDProtocolMessage done [13:49:35]OFDSenderStorePacket 162538 [13:49:35]StoreOFDPacket docnum=162538 [13:49:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 17 08 01 F1 78 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 CE 00 00 00 F4 03 04 00 ED 85 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7A 02 00 35 04 06 00 84 45 4E BF EC C4 3D C4 70 0B A7 CE F0 3C [13:49:35]CheckFolder [13:49:35]dirname=/storage/ofd_packets [13:49:35]CheckFolder done [13:49:35]ProducePacketName [13:49:35]name=ofd_packets/00162538 [13:49:35]NVStorageSaveData ofd_packets/00162538 [13:49:35]File name is /storage/ofd_packets/00162538 [13:49:35]Write 302 bytes [13:49:35]NVStorageSaveData done [13:49:35]OFDSenderStorePacket done [13:49:35]KKMCreateOFDPacket done [13:49:35]NVStorageSaveData kkm_last_timestamp [13:49:35]File name is /storage/kkm_last_timestamp [13:49:35]Write 4 bytes [13:49:35]NVStorageSaveData done [13:49:35]ExternCall_PrintAddStr [13:49:35]wPrintStart [13:49:35]Write to MH i2c: 01 00 00 26 05 2B [13:49:35]Write i2c OK [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: 01 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: 01 07 00 [13:49:35]MH_I2C_Read... [13:49:35]Read from MH i2c: 01 07 00 26 05 00 00 00 00 00 FF 0F 40 [13:49:35]RasterBufferAndPrint [13:49:35]line Счет N : (1)1319091 [13:49:35]line ИНН: 02508201610067 [13:49:35]line Контрольно-Кассовый Чек [13:49:35]line ПРОДАЖА [13:49:35]line ТРК (МРК, ГНК) : 41 [13:49:35]line Товар: 2710194210 [13:49:35]line ДТ(л)-К-5 [13:49:35]line 6.890 * 72.60 [13:49:35]line = 500.21 [13:49:35]line НДС 12% НСП 1% [13:49:35]line > о реализуемом товаре [13:49:35]line ОКРУГЛЕНИЕ: -0.21 [13:49:35]line ИТОГО: 500.00 [13:49:35]line Внесено: 500.00 [13:49:35]line СДАЧА: 0.00 [13:49:35]line НСП 1% : 4.43 [13:49:35]line НДС 12% : 53.12 [13:49:35]line Наличными: 500.00 [13:49:35]line Безнал.: 0.00 [13:49:35]line Место: АЗС № 140 "Партнер Нефть" [13:49:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:49:35]line СНО: Общий режим [13:49:35]line Чек 206 13.07.2024 13:49 [13:49:35]line Смена: 462 ФФД: 1.0 [13:49:35]line ЗНМ: 0300000129 [13:49:35]line РНМ: 0000000000090858 [13:49:35]line Версия ККМ: 001 [13:49:35]line ФМ: 0000000000874899 [13:49:35]line ФД: 162538 [13:49:35]line ФПД: 145433208810692 [13:49:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T134933&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162538&fm=145433208810692&tin=02508201610067®Number=0000000000090858&sum=50000 [13:49:35]OFD Sender: Processing packet 162538 [packets to send 106, broken 105] [13:49:35]ProducePacketName [13:49:35]name=ofd_packets/00162538 [13:49:35]OFD Sender: To server: pG, [13:49:35]CommunicateWithHost lk.salyk.kg:30040 [13:49:35]ConnectInit lk.salyk.kg [13:49:35]written 0, free lines is 4095 [13:49:35]Connected sock=10 [13:49:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 17 08 01 F1 78 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 CE 00 00 00 F4 03 04 00 ED 85 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7A 02 00 35 04 06 00 84 45 4E BF EC C4 3D C4 70 0B A7 CE F0 3C [13:49:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0D 23 47 00 4A DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EA 7A 02 00 F4 03 04 00 FC 31 92 66 B6 04 01 00 00 D1 99 7A 3F 96 2B F1 23 [13:49:35]CommunicateWithHost err = 0 [13:49:35]CheckOFDResponse [13:49:35]1017 (14) - 77093643461234 [13:49:35]1041 (16) - 0000000000874899 [13:49:35]1040 (4) - 162538 [13:49:35]1012 (4) - 13.07.2024 07:51 [13:49:35]1206 (1) - 0 [13:49:35]OFD Sender: Remove packet 162538 [13:49:35]ProducePacketName [13:49:35]name=ofd_packets/00162538 [13:49:35]NVStorageDeleteData [13:49:36]Write to MH i2c: 01 00 00 51 05 56 [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: 01 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: 01 07 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: 01 07 00 51 05 00 00 00 00 00 EB 0C 54 [13:49:36]RasterBufferAndPrint [13:49:36]line [13:49:36]line [13:49:36]line [13:49:36]line [13:49:36]line [13:49:36]written 0, free lines is 3313 [13:49:36]MH_Cut [13:49:36]Write to MH i2c: D1 01 00 58 05 01 2F [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: D1 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: D1 01 00 [13:49:36]MH_I2C_Read... [13:49:36]Read from MH i2c: D1 01 00 58 05 00 2E [13:49:36]Write to MH i2c: 01 00 00 59 05 5E [13:49:36]Write i2c OK [13:49:36]MH_I2C_Read... [13:49:36]OFD Sender: No OFD packet to send [13:49:36]*** Cut start [13:49:36]*** Purtial cut [13:49:36]*** CUTSNS_PIN = 0 [13:49:36]*** Stage 1: CUTSNS_PIN = 1 [13:49:38]Read from MH i2c: 01 [13:49:38]MH_I2C_Read... [13:49:38]*** Stop cut motor [13:49:38]*** Cut end [13:49:38]Read from MH i2c: 01 07 00 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: 01 07 00 59 05 00 00 00 00 00 FF 0F 73 [13:49:38]process_action close_receipt done [13:49:38]requested_data is exist [13:49:38]produce_requested_data [13:49:38]requested_item fm.sn is exist - process it [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 11 00 00 [13:49:38]Write to MH i2c: E2 08 00 5A 05 80 11 00 00 00 00 00 00 D9 [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:38]Read from MH i2c: E2 [13:49:38]MH_I2C_Read... [13:49:38]Read from MH i2c: E2 17 00 [13:49:38]MH_I2C_Read... [13:49:38]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 34 38 39 39 90 00 39 [13:49:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:49:38]wFMCommunicate OK [13:49:38]requested_item fd.num is exist - process it [13:49:38]SAM_PROTO_GetFieldsCounters [13:49:38]wFMCommunicate request_size=4 [13:49:38]MH_SAM_APDU [13:49:38]CAPDU: 80 13 00 00 [13:49:38]Write to MH i2c: E2 08 00 5B 05 80 13 00 00 00 00 00 00 DC [13:49:38]Write i2c OK [13:49:38]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 62 00 [13:49:39]MH_I2C_Read... [13:49:39]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [13:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:39]wFMCommunicate OK [13:49:39]SAM_PROTO_GetFieldsCounters done [13:49:39]requested_item shift.num is exist - process it [13:49:39]requested_item shift.opened is exist - process it [13:49:39]req_shift_opened [13:49:39]FM_GetShiftState [13:49:39]SAM_PROTO_GetShiftState [13:49:39]wFMCommunicate request_size=4 [13:49:39]MH_SAM_APDU [13:49:39]CAPDU: 80 13 01 00 [13:49:39]Write to MH i2c: E2 08 00 5C 05 80 13 01 00 00 00 00 00 DE [13:49:39]Write i2c OK [13:49:39]MH_I2C_Read... [13:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:39]Read from MH i2c: E2 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 0E 00 [13:49:39]MH_I2C_Read... [13:49:39]Read from MH i2c: E2 0E 00 5C 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D8 [13:49:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:49:39]wFMCommunicate OK [13:49:39]SAM_PROTO_GetShiftState done [13:49:39]FM_GetShiftState done [13:49:39]req_shift_opened done [13:49:39]requested_item shift.open_date is exist - process it [13:49:39]req_shift_open_date [13:49:39]req_shift_open_date done [13:49:39]produce_requested_data done [13:49:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162538,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:49:39]process_action_free close_receipt [13:49:39]json_value_free [13:49:39]json_value_free done [13:49:39]process_json_proto returns [13:49:39]Send response to host [13:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162538,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:49:39]free response buf [13:49:39]execute_script done [13:49:39]execute_script returns [13:49:39]free content buf [13:49:39]Sock 7.Close socket [13:49:39]Sock 7.Thread stoped [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:02]accept exits with 9 [13:51:02]New connection [13:51:02]New thread 3067366756 created [13:51:02]Thread 3067510116 joined [13:51:02]Waiting for new connection... [13:51:02] Sock 9.Parse request [13:51:02]Sock 9.Check first char [13:51:02]Sock 9.First char is OK [13:51:02]request: POST /json_proto HTTP/1.0 [13:51:02]Method: POST [13:51:02]URL: /json_proto [13:51:02]Method is POST - this is cgi request [13:51:02]url: /json_proto [13:51:02]query_string will be loaded in cgi processing [13:51:02]execute_cgi json_proto POST (null) [13:51:02]execute_cgi path=json_proto method=POST [13:51:02]POST find Content-Length [13:51:02]Host: 172.17.39.67:8080 [13:51:02]Content-Length: 683 [13:51:02]Content-Type: application/json [13:51:02] [13:51:02]POST finish read [13:51:02]Found Content-Length = 683 [13:51:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:02]execute_script... [13:51: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)1319093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51:02]POST & json_proto [13:51:02]process_json_proto [13:51:02]json parsed OK: [13:51:02]protocol is kg_v1.0 [13:51:02]action value=close_receipt [13:51:02]process_action close_receipt [13:51:02]cmd_close_receipt [13:51:02]MH_GetDate [13:51:02]Write to MH i2c: F0 00 00 5D 05 51 [13:51:02]Write i2c OK [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: F0 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: F0 09 00 [13:51:02]MH_I2C_Read... [13:51:02]Read from MH i2c: F0 09 00 5D 05 00 47 86 92 66 86 7C 92 66 19 [13:51:02]GetLastDocTimeStamp 1720878573 [13:51:02]current date 1720878663 [13:51:02]FM_GetShiftState [13:51:02]SAM_PROTO_GetShiftState [13:51:02]wFMCommunicate request_size=4 [13:51:02]MH_SAM_APDU [13:51:02]CAPDU: 80 13 01 00 [13:51:02]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [13:51:02]Write i2c OK [13:51:02]MH_I2C_Read... [13:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:03]Read from MH i2c: E2 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 0E 00 [13:51:03]MH_I2C_Read... [13:51:03]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DA [13:51:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:51:03]wFMCommunicate OK [13:51:03]SAM_PROTO_GetShiftState done [13:51:03]FM_GetShiftState done [13:51:03]opened in 1720828979 [13:51:03]opened+sec_in_day 1720915379 [13:51:03]quantity*price = 100046 [13:51:03]sum+1 = 100048 [13:51:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 207 13.07.2024 13:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162539 ФПД: 217481461043643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135103&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162539&fm=217481461043643&tin=02508201610067®Number=0000000000090858&sum=100000 [13:51:04]StoreToDocumentArchive [13:51:04]shift 462 fd 162539 [13:51:04]save to /storage/0462/doc_00162539 [13:51:04]save last doc name /storage/0462/doc_00162539 to /storage/kkm_last_doc_name [13:51:04]save OK [13:51:04]Clear old archive folders... [13:51:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:04]tlvbuf is 006C57D0 [13:51:04]SAM_PROTO_ClearQueue [13:51:04]wFMCommunicate request_size=4 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 09 00 00 [13:51:04]Write to MH i2c: E2 08 00 6B 05 80 09 00 00 00 00 00 00 E2 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 03 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 03 00 6B 05 00 90 00 E4 [13:51:04]RAPDU: 90 00 [13:51:04]wFMCommunicate OK [13:51:04]SAM_PROTO_ClearQueue done [13:51:04]KKMCreateOFDPacket [13:51:04]OFDProtocolAddRootSTLVToBuf [13:51:04]FM_MakeSignedData [13:51:04]FM_MakeSignedData [13:51:04]SAM_PROTO_SignData [13:51:04]wFMCommunicate request_size=4 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 0D 01 02 [13:51:04]Write to MH i2c: E2 08 00 6C 05 80 0D 01 02 00 00 00 00 EA [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 03 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [13:51:04]RAPDU: 90 00 [13:51:04]wFMCommunicate OK [13:51:04]wFMCommunicate request_size=255 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CF 00 00 00 F4 03 04 00 47 86 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7A 02 00 35 04 06 00 C5 [13:51:04]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 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CF 00 00 00 F4 03 04 00 47 86 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7A 02 00 35 04 06 00 C5 00 00 85 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 03 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [13:51:04]RAPDU: 90 00 [13:51:04]wFMCommunicate OK [13:51:04]wFMCommunicate request_size=10 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 0D 02 02 05 CC 59 3B 11 BB [13:51:04]Write to MH i2c: E2 0D 00 6E 05 80 0D 02 02 05 00 CC 59 3B 11 BB 00 00 23 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 03 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [13:51:04]RAPDU: 90 00 [13:51:04]wFMCommunicate OK [13:51:04]wFMCommunicate request_size=4 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 0D 03 02 [13:51:04]Write to MH i2c: E2 08 00 6F 05 80 0D 03 02 00 00 00 00 EF [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 0B 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 0B 00 6F 05 00 9D 18 9C E0 D5 D0 1B DC 90 00 BD [13:51:04]RAPDU: 9D 18 9C E0 D5 D0 1B DC 90 00 [13:51:04]wFMCommunicate OK [13:51:04]SAM_PROTO_SignData done [13:51:04]FM_MakeSignedData done [13:51:04]CreateOFDProtocolMessage [13:51:04]wFMCommunicate request_size=4 [13:51:04]MH_SAM_APDU [13:51:04]CAPDU: 80 11 00 00 [13:51:04]Write to MH i2c: E2 08 00 70 05 80 11 00 00 00 00 00 00 EF [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:04]Read from MH i2c: E2 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: E2 17 00 [13:51:04]MH_I2C_Read... [13:51:04]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 34 38 39 39 90 00 4F [13:51:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:51:04]wFMCommunicate OK [13:51:04]CreateOFDProtocolMessage done [13:51:04]OFDSenderStorePacket 162539 [13:51:04]StoreOFDPacket docnum=162539 [13:51:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 EB 22 07 01 8B 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CF 00 00 00 F4 03 04 00 47 86 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7A 02 00 35 04 06 00 C5 CC 59 3B 11 BB 9D 18 9C E0 D5 D0 1B DC [13:51:04]CheckFolder [13:51:04]dirname=/storage/ofd_packets [13:51:04]CheckFolder done [13:51:04]ProducePacketName [13:51:04]name=ofd_packets/00162539 [13:51:04]NVStorageSaveData ofd_packets/00162539 [13:51:04]File name is /storage/ofd_packets/00162539 [13:51:04]Write 301 bytes [13:51:04]NVStorageSaveData done [13:51:04]OFDSenderStorePacket done [13:51:04]KKMCreateOFDPacket done [13:51:04]NVStorageSaveData kkm_last_timestamp [13:51:04]File name is /storage/kkm_last_timestamp [13:51:04]Write 4 bytes [13:51:04]NVStorageSaveData done [13:51:04]ExternCall_PrintAddStr [13:51:04]wPrintStart [13:51:04]Write to MH i2c: 01 00 00 71 05 76 [13:51:04]Write i2c OK [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: 01 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: 01 07 00 [13:51:04]MH_I2C_Read... [13:51:04]Read from MH i2c: 01 07 00 71 05 00 00 00 00 00 FF 0F 8B [13:51:04]RasterBufferAndPrint [13:51:04]line Счет N : (1)1319093 [13:51:04]line ИНН: 02508201610067 [13:51:04]line Контрольно-Кассовый Чек [13:51:04]line ПРОДАЖА [13:51:04]line ТРК (МРК, ГНК) : 53 [13:51:04]line Товар: 2710124130 [13:51:04]line Аи-92-К-5 [13:51:04]line 15.090 * 66.30 [13:51:04]line = 1000.47 [13:51:04]line НДС 12% НСП 1% [13:51:04]line > о реализуемом товаре [13:51:04]line ОКРУГЛЕНИЕ: -0.47 [13:51:04]line ИТОГО: 1000.00 [13:51:04]line Внесено: 1000.00 [13:51:04]line СДАЧА: 0.00 [13:51:04]line НСП 1% : 8.85 [13:51:04]line НДС 12% : 106.24 [13:51:04]line Наличными: 1000.00 [13:51:04]line Безнал.: 0.00 [13:51:04]line Место: АЗС № 140 "Партнер Нефть" [13:51:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:51:04]line СНО: Общий режим [13:51:04]line Чек 207 13.07.2024 13:51 [13:51:04]line Смена: 462 ФФД: 1.0 [13:51:04]line ЗНМ: 0300000129 [13:51:04]line РНМ: 0000000000090858 [13:51:04]line Версия ККМ: 001 [13:51:04]line ФМ: 0000000000874899 [13:51:04]line ФД: 162539 [13:51:04]line ФПД: 217481461043643 [13:51:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135103&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162539&fm=217481461043643&tin=02508201610067®Number=0000000000090858&sum=100000 [13:51:05]OFD Sender: Processing packet 162539 [packets to send 106, broken 105] [13:51:05]ProducePacketName [13:51:05]name=ofd_packets/00162539 [13:51:05]OFD Sender: To server: pG, [13:51:05]CommunicateWithHost lk.salyk.kg:30040 [13:51:05]ConnectInit lk.salyk.kg [13:51:05]written 0, free lines is 4095 [13:51:05]Connected sock=10 [13:51:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 EB 22 07 01 8B 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 CF 00 00 00 F4 03 04 00 47 86 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EB 7A 02 00 35 04 06 00 C5 CC 59 3B 11 BB 9D 18 9C E0 D5 D0 1B DC [13:51:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 98 BF 47 00 44 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 34 38 39 39 10 04 04 00 EB 7A 02 00 F4 03 04 00 56 32 92 66 B6 04 01 00 00 58 FD 96 5D 57 41 0D 2C [13:51:05]CommunicateWithHost err = 0 [13:51:05]CheckOFDResponse [13:51:05]1017 (14) - 77093643461234 [13:51:05]1041 (16) - 0000000000874899 [13:51:05]1040 (4) - 162539 [13:51:05]1012 (4) - 13.07.2024 07:52 [13:51:05]1206 (1) - 0 [13:51:05]OFD Sender: Remove packet 162539 [13:51:05]ProducePacketName [13:51:05]name=ofd_packets/00162539 [13:51:05]NVStorageDeleteData [13:51:05]Write to MH i2c: 01 00 00 9C 05 A1 [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: 01 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: 01 07 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: 01 07 00 9C 05 00 00 00 00 00 E4 0C 98 [13:51:05]RasterBufferAndPrint [13:51:05]line [13:51:05]line [13:51:05]line [13:51:05]line [13:51:05]line [13:51:05]written 0, free lines is 3306 [13:51:05]MH_Cut [13:51:05]Write to MH i2c: D1 01 00 A3 05 01 7A [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: D1 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: D1 01 00 [13:51:05]MH_I2C_Read... [13:51:05]Read from MH i2c: D1 01 00 A3 05 00 79 [13:51:05]Write to MH i2c: 01 00 00 A4 05 A9 [13:51:05]Write i2c OK [13:51:05]MH_I2C_Read... [13:51:05]OFD Sender: No OFD packet to send [13:51:06]*** Cut start [13:51:06]*** Purtial cut [13:51:06]*** Stage 1: CUTSNS_PIN = 1 [13:51:06]Read from MH i2c: 01 [13:51:06]MH_I2C_Read... [13:51:06]*** Stop cut motor [13:51:06]*** Cut end [13:51:06]Read from MH i2c: 01 07 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: 01 07 00 A4 05 00 00 00 00 00 FF 0F BE [13:51:06]process_action close_receipt done [13:51:06]requested_data is exist [13:51:06]produce_requested_data [13:51:06]requested_item fm.sn is exist - process it [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 11 00 00 [13:51:06]Write to MH i2c: E2 08 00 A5 05 80 11 00 00 00 00 00 00 24 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 17 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 17 00 A5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 84 [13:51:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:51:06]wFMCommunicate OK [13:51:06]requested_item fd.num is exist - process it [13:51:06]SAM_PROTO_GetFieldsCounters [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 13 00 00 [13:51:06]Write to MH i2c: E2 08 00 A6 05 80 13 00 00 00 00 00 00 27 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 62 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 62 00 A6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [13:51:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:06]wFMCommunicate OK [13:51:06]SAM_PROTO_GetFieldsCounters done [13:51:06]requested_item shift.num is exist - process it [13:51:06]requested_item shift.opened is exist - process it [13:51:06]req_shift_opened [13:51:06]FM_GetShiftState [13:51:06]SAM_PROTO_GetShiftState [13:51:06]wFMCommunicate request_size=4 [13:51:06]MH_SAM_APDU [13:51:06]CAPDU: 80 13 01 00 [13:51:06]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [13:51:06]Write i2c OK [13:51:06]MH_I2C_Read... [13:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:06]Read from MH i2c: E2 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 0E 00 [13:51:06]MH_I2C_Read... [13:51:06]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 23 [13:51:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:51:06]wFMCommunicate OK [13:51:06]SAM_PROTO_GetShiftState done [13:51:06]FM_GetShiftState done [13:51:06]req_shift_opened done [13:51:06]requested_item shift.open_date is exist - process it [13:51:06]req_shift_open_date [13:51:06]req_shift_open_date done [13:51:06]produce_requested_data done [13:51:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162539,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:51:06]process_action_free close_receipt [13:51:06]json_value_free [13:51:06]json_value_free done [13:51:06]process_json_proto returns [13:51:06]Send response to host [13:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162539,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:51:06]free response buf [13:51:06]execute_script done [13:51:06]execute_script returns [13:51:06]free content buf [13:51:06]Sock 9.Close socket [13:51:06]Sock 9.Thread stoped [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:34]accept exits with 7 [13:51:34]New connection [13:51:34]New thread 3067510116 created [13:51:34]Thread 3067366756 joined [13:51:34]Waiting for new connection... [13:51:34] Sock 7.Parse request [13:51:34]Sock 7.Check first char [13:51:34]Sock 7.First char is OK [13:51:34]request: POST /json_proto HTTP/1.0 [13:51:34]Method: POST [13:51:34]URL: /json_proto [13:51:34]Method is POST - this is cgi request [13:51:34]url: /json_proto [13:51:34]query_string will be loaded in cgi processing [13:51:34]execute_cgi json_proto POST (null) [13:51:34]execute_cgi path=json_proto method=POST [13:51:34]POST find Content-Length [13:51:34]Host: 172.17.39.67:8080 [13:51:34]Content-Length: 809 [13:51:34]Content-Type: application/json [13:51:34] [13:51:34]POST finish read [13:51:34]Found Content-Length = 809 [13:51:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 50.000, "sum" : 3630.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" : 3630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:34]execute_script... [13:51: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)1319092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 50.000, "sum" : 3630.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" : 3630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:34]POST & json_proto [13:51:34]process_json_proto [13:51:34]json parsed OK: [13:51:34]protocol is kg_v1.0 [13:51:34]action value=close_receipt [13:51:34]process_action close_receipt [13:51:34]cmd_close_receipt [13:51:34]MH_GetDate [13:51:34]Write to MH i2c: F0 00 00 A8 05 9C [13:51:34]Write i2c OK [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: F0 [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: F0 09 00 [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: F0 09 00 A8 05 00 66 86 92 66 86 7C 92 66 83 [13:51:34]GetLastDocTimeStamp 1720878663 [13:51:34]current date 1720878694 [13:51:34]FM_GetShiftState [13:51:34]SAM_PROTO_GetShiftState [13:51:34]wFMCommunicate request_size=4 [13:51:34]MH_SAM_APDU [13:51:34]CAPDU: 80 13 01 00 [13:51:34]Write to MH i2c: E2 08 00 A9 05 80 13 01 00 00 00 00 00 2B [13:51:34]Write i2c OK [13:51:34]MH_I2C_Read... [13:51:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:34]Read from MH i2c: E2 [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: E2 0E 00 [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: E2 0E 00 A9 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 25 [13:51:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:51:34]wFMCommunicate OK [13:51:34]SAM_PROTO_GetShiftState done [13:51:34]FM_GetShiftState done [13:51:34]opened in 1720828979 [13:51:34]opened+sec_in_day 1720915379 [13:51:34]quantity*price = 363000 [13:51:34]sum+1 = 363001 [13:51:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3630.00 НСП 1% : 32.12 НДС 12% : 385.49 Наличными: 0.00 Безнал.: 3630.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 208 13.07.2024 13:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162540 ФПД: 62576745855091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135134&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162540&fm=62576745855091&tin=02508201610067®Number=0000000000090858&sum=363000 [13:51:35]StoreToDocumentArchive [13:51:35]shift 462 fd 162540 [13:51:35]save to /storage/0462/doc_00162540 [13:51:35]save last doc name /storage/0462/doc_00162540 to /storage/kkm_last_doc_name [13:51:35]save OK [13:51:35]Clear old archive folders... [13:51:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:51:35]tlvbuf is 006AE880 [13:51:35]SAM_PROTO_ClearQueue [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 09 00 00 [13:51:35]Write to MH i2c: E2 08 00 B6 05 80 09 00 00 00 00 00 00 2D [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 03 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [13:51:35]RAPDU: 90 00 [13:51:35]wFMCommunicate OK [13:51:35]SAM_PROTO_ClearQueue done [13:51:35]KKMCreateOFDPacket [13:51:35]OFDProtocolAddRootSTLVToBuf [13:51:35]FM_MakeSignedData [13:51:35]FM_MakeSignedData [13:51:35]SAM_PROTO_SignData [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 0D 01 02 [13:51:35]Write to MH i2c: E2 08 00 B7 05 80 0D 01 02 00 00 00 00 35 [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 03 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [13:51:35]RAPDU: 90 00 [13:51:35]wFMCommunicate OK [13:51:35]wFMCommunicate request_size=255 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 66 86 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7A 02 00 35 04 06 00 [13:51:35]Write to MH i2c: E2 02 01 B8 05 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 66 86 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7A 02 00 35 04 06 00 00 00 57 [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 03 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 03 00 B8 05 00 90 00 31 [13:51:35]RAPDU: 90 00 [13:51:35]wFMCommunicate OK [13:51:35]wFMCommunicate request_size=11 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 0D 02 02 06 38 E9 C8 B5 38 73 [13:51:35]Write to MH i2c: E2 0E 00 B9 05 80 0D 02 02 06 00 38 E9 C8 B5 38 73 00 00 8D [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 03 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 03 00 B9 05 00 90 00 32 [13:51:35]RAPDU: 90 00 [13:51:35]wFMCommunicate OK [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 0D 03 02 [13:51:35]Write to MH i2c: E2 08 00 BA 05 80 0D 03 02 00 00 00 00 3A [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]OFD Sender: No OFD packet to send [13:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 0B 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 0B 00 BA 05 00 FA 39 15 AC 7A 95 C2 A1 90 00 A1 [13:51:35]RAPDU: FA 39 15 AC 7A 95 C2 A1 90 00 [13:51:35]wFMCommunicate OK [13:51:35]SAM_PROTO_SignData done [13:51:35]FM_MakeSignedData done [13:51:35]CreateOFDProtocolMessage [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 11 00 00 [13:51:35]Write to MH i2c: E2 08 00 BB 05 80 11 00 00 00 00 00 00 3A [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 17 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 17 00 BB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9A [13:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:51:35]wFMCommunicate OK [13:51:35]CreateOFDProtocolMessage done [13:51:35]OFDSenderStorePacket 162540 [13:51:35]StoreOFDPacket docnum=162540 [13:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A6 49 08 01 17 04 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 66 86 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7A 02 00 35 04 06 00 38 E9 C8 B5 38 73 FA 39 15 AC 7A 95 C2 A1 [13:51:35]CheckFolder [13:51:35]dirname=/storage/ofd_packets [13:51:35]CheckFolder done [13:51:35]ProducePacketName [13:51:35]name=ofd_packets/00162540 [13:51:35]NVStorageSaveData ofd_packets/00162540 [13:51:35]File name is /storage/ofd_packets/00162540 [13:51:35]Write 302 bytes [13:51:35]NVStorageSaveData done [13:51:35]OFDSenderStorePacket done [13:51:35]KKMCreateOFDPacket done [13:51:35]NVStorageSaveData kkm_last_timestamp [13:51:35]File name is /storage/kkm_last_timestamp [13:51:35]Write 4 bytes [13:51:35]NVStorageSaveData done [13:51:35]ExternCall_PrintAddStr [13:51:35]wPrintStart [13:51:35]Write to MH i2c: 01 00 00 BC 05 C1 [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: 01 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: 01 07 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: 01 07 00 BC 05 00 00 00 00 00 FF 0F D6 [13:51:35]RasterBufferAndPrint [13:51:35]line Счет N : (1)1319092 [13:51:35]line ИНН: 02508201610067 [13:51:35]line Контрольно-Кассовый Чек [13:51:35]line ПРОДАЖА [13:51:35]line ТРК (МРК, ГНК) : 31 [13:51:35]line Товар: 2710194210 [13:51:35]line ДТ(л)-К-5 [13:51:35]line 50.000 * 72.60 [13:51:35]line = 3630.00 [13:51:35]line НДС 12% НСП 1% [13:51:35]line > о реализуемом товаре [13:51:35]line ИТОГО: 3630.00 [13:51:35]line НСП 1% : 32.12 [13:51:35]line НДС 12% : 385.49 [13:51:35]line Наличными: 0.00 [13:51:35]line Безнал.: 3630.00 [13:51:35]line Место: АЗС № 140 "Партнер Нефть" [13:51:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:51:35]line СНО: Общий режим [13:51:35]line Чек 208 13.07.2024 13:51 [13:51:35]line Смена: 462 ФФД: 1.0 [13:51:35]line ЗНМ: 0300000129 [13:51:35]line РНМ: 0000000000090858 [13:51:35]line Версия ККМ: 001 [13:51:35]line Платежная система: O! деньги [13:51:35]line ФМ: 0000000000874899 [13:51:35]line ФД: 162540 [13:51:35]line ФПД: 62576745855091 [13:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135134&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162540&fm=62576745855091&tin=02508201610067®Number=0000000000090858&sum=363000 [13:51:36]OFD Sender: Processing packet 162540 [packets to send 106, broken 105] [13:51:36]ProducePacketName [13:51:36]name=ofd_packets/00162540 [13:51:36]OFD Sender: To server: pG, [13:51:36]CommunicateWithHost lk.salyk.kg:30040 [13:51:36]ConnectInit lk.salyk.kg [13:51:36]written 0, free lines is 4095 [13:51:36]Connected sock=10 [13:51:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A6 49 08 01 17 04 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 89 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 66 86 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7A 02 00 35 04 06 00 38 E9 C8 B5 38 73 FA 39 15 AC 7A 95 C2 A1 [13:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 21 2E 47 00 5F E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EC 7A 02 00 F4 03 04 00 75 32 92 66 B6 04 01 00 00 AD 33 C0 33 3C D3 6D 49 [13:51:36]CommunicateWithHost err = 0 [13:51:36]CheckOFDResponse [13:51:36]1017 (14) - 77093643461234 [13:51:36]1041 (16) - 0000000000874899 [13:51:36]1040 (4) - 162540 [13:51:36]1012 (4) - 13.07.2024 07:53 [13:51:36]1206 (1) - 0 [13:51:36]OFD Sender: Remove packet 162540 [13:51:36]ProducePacketName [13:51:36]name=ofd_packets/00162540 [13:51:36]NVStorageDeleteData [13:51:36]Write to MH i2c: 01 00 00 E6 05 EB [13:51:36]Write i2c OK [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: 01 [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: 01 07 00 [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: 01 07 00 E6 05 00 00 00 00 00 FA 0C F8 [13:51:36]RasterBufferAndPrint [13:51:36]line [13:51:36]line [13:51:36]line [13:51:36]line [13:51:36]line [13:51:36]written 0, free lines is 3328 [13:51:36]MH_Cut [13:51:36]Write to MH i2c: D1 01 00 ED 05 01 C4 [13:51:36]Write i2c OK [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: D1 [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: D1 01 00 [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: D1 01 00 ED 05 00 C3 [13:51:36]Write to MH i2c: 01 00 00 EE 05 F3 [13:51:36]Write i2c OK [13:51:36]MH_I2C_Read... [13:51:37]OFD Sender: No OFD packet to send [13:51:37]*** Cut start [13:51:37]*** Purtial cut [13:51:37]*** CUTSNS_PIN = 0 [13:51:37]*** Stage 1: CUTSNS_PIN = 1 [13:51:39]Read from MH i2c: 01 [13:51:39]MH_I2C_Read... [13:51:39]*** Stop cut motor [13:51:39]*** Cut end [13:51:39]Read from MH i2c: 01 07 00 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: 01 07 00 EE 05 00 00 00 00 00 FF 0F 08 [13:51:39]process_action close_receipt done [13:51:39]requested_data is exist [13:51:39]produce_requested_data [13:51:39]requested_item fm.sn is exist - process it [13:51:39]wFMCommunicate request_size=4 [13:51:39]MH_SAM_APDU [13:51:39]CAPDU: 80 11 00 00 [13:51:39]Write to MH i2c: E2 08 00 EF 05 80 11 00 00 00 00 00 00 6E [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:39]Read from MH i2c: E2 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 17 00 [13:51:39]MH_I2C_Read... [13:51:39]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 34 38 39 39 90 00 CE [13:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:51:39]wFMCommunicate OK [13:51:39]requested_item fd.num is exist - process it [13:51:39]SAM_PROTO_GetFieldsCounters [13:51:39]wFMCommunicate request_size=4 [13:51:39]MH_SAM_APDU [13:51:39]CAPDU: 80 13 00 00 [13:51:39]Write to MH i2c: E2 08 00 F0 05 80 13 00 00 00 00 00 00 71 [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:39]Read from MH i2c: E2 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 62 00 [13:51:39]MH_I2C_Read... [13:51:39]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [13:51:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:39]wFMCommunicate OK [13:51:39]SAM_PROTO_GetFieldsCounters done [13:51:39]requested_item shift.num is exist - process it [13:51:39]requested_item shift.opened is exist - process it [13:51:39]req_shift_opened [13:51:39]FM_GetShiftState [13:51:39]SAM_PROTO_GetShiftState [13:51:39]wFMCommunicate request_size=4 [13:51:39]MH_SAM_APDU [13:51:39]CAPDU: 80 13 01 00 [13:51:39]Write to MH i2c: E2 08 00 F1 05 80 13 01 00 00 00 00 00 73 [13:51:39]Write i2c OK [13:51:39]MH_I2C_Read... [13:51:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:39]Read from MH i2c: E2 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 0E 00 [13:51:39]MH_I2C_Read... [13:51:39]Read from MH i2c: E2 0E 00 F1 05 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6D [13:51:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:51:39]wFMCommunicate OK [13:51:39]SAM_PROTO_GetShiftState done [13:51:39]FM_GetShiftState done [13:51:39]req_shift_opened done [13:51:39]requested_item shift.open_date is exist - process it [13:51:39]req_shift_open_date [13:51:39]req_shift_open_date done [13:51:39]produce_requested_data done [13:51:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162540,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:51:39]process_action_free close_receipt [13:51:39]json_value_free [13:51:39]json_value_free done [13:51:39]process_json_proto returns [13:51:39]Send response to host [13:51:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162540,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:51:39]free response buf [13:51:39]execute_script done [13:51:39]execute_script returns [13:51:39]free content buf [13:51:39]Sock 7.Close socket [13:51:39]Sock 7.Thread stoped [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 3067366756 created [13:52:50]Thread 3067510116 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.39.67:8080 [13:52:50]Content-Length: 1218 [13:52:50]Content-Type: application/json [13:52:50] [13:52:50]POST finish read [13:52:50]Found Content-Length = 1218 [13:52:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319090\u000A13.07.2024 13:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 79.330 x 72.60\u000A\u0418\u0422\u041E\u0413: 5759.36\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00435\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319090\u000A13.07.2024 13:50\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 79.330 x 72.60\u000A\u0418\u0422\u041E\u0413: 5759.36\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00435\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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=print_text [13:52:50]process_action print_text [13:52:50]cmd_print_text [13:52:50]ExternCall_PrintAddStr [13:52:50]wPrintStart [13:52:50]Write to MH i2c: 01 00 00 F2 05 F7 [13:52:50]Write i2c OK [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: 01 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: 01 07 00 [13:52:50]MH_I2C_Read... [13:52:50]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 FF 0F 0C [13:52:50]RasterBufferAndPrint [13:52:50]line *****ТОВАРНЫЙ ЧЕК***** [13:52:50]line АЗС 140 [13:52:50]line Партнер нефть [13:52:50]line 02508201610067 [13:52:50]line Кассир : Шамбеталиев А. [13:52:50]line Счет N : (1)1319090 [13:52:50]line 13.07.2024 13:50 [13:52:50]line ПРОДАЖА [13:52:50]line ТРК (МРК, ГНК): 11 [13:52:50]line Вид ГСМ : 2710194210 [13:52:50]line ДТ(л)-К-5 [13:52:50]line 79.330 x 72.60 [13:52:50]line ИТОГ: 5759.36 [13:52:50]line Тип оплаты: Талоны: Топливная Карта [13:52:50]line 00435 [13:52:50]line ______________________ [13:52:50]line (подпись) [13:52:50]written 0, free lines is 4095 [13:52:51]Write to MH i2c: 01 00 00 07 06 0D [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 07 06 00 00 00 00 00 F4 0D 15 [13:52:51]RasterBufferAndPrint [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]line [13:52:51]written 0, free lines is 3574 [13:52:51]MH_Cut [13:52:51]Write to MH i2c: D1 01 00 0E 06 01 E6 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 01 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: D1 01 00 0E 06 00 E5 [13:52:51]Write to MH i2c: 01 00 00 0F 06 15 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** Cut start [13:52:51]*** Purtial cut [13:52:51]*** Stage 1: CUTSNS_PIN = 1 [13:52:51]Read from MH i2c: 01 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: 01 07 00 [13:52:51]MH_I2C_Read... [13:52:51]*** Stop cut motor [13:52:51]*** Cut end [13:52:51]Read from MH i2c: 01 07 00 0F 06 00 00 00 00 00 FF 0F 2A [13:52:51]process_action print_text done [13:52:51]requested_data is exist [13:52:51]produce_requested_data [13:52:51]requested_item fm.sn is exist - process it [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 11 00 00 [13:52:51]Write to MH i2c: E2 08 00 10 06 80 11 00 00 00 00 00 00 90 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:51]Read from MH i2c: E2 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 17 00 [13:52:51]MH_I2C_Read... [13:52:51]Read from MH i2c: E2 17 00 10 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F0 [13:52:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:52:51]wFMCommunicate OK [13:52:51]requested_item fd.num is exist - process it [13:52:51]SAM_PROTO_GetFieldsCounters [13:52:51]wFMCommunicate request_size=4 [13:52:51]MH_SAM_APDU [13:52:51]CAPDU: 80 13 00 00 [13:52:51]Write to MH i2c: E2 08 00 11 06 80 13 00 00 00 00 00 00 93 [13:52:51]Write i2c OK [13:52:51]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 62 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 62 00 11 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [13: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:52]wFMCommunicate OK [13:52:52]SAM_PROTO_GetFieldsCounters done [13:52:52]requested_item shift.num is exist - process it [13:52:52]requested_item shift.opened is exist - process it [13:52:52]req_shift_opened [13:52:52]FM_GetShiftState [13:52:52]SAM_PROTO_GetShiftState [13:52:52]wFMCommunicate request_size=4 [13:52:52]MH_SAM_APDU [13:52:52]CAPDU: 80 13 01 00 [13:52:52]Write to MH i2c: E2 08 00 12 06 80 13 01 00 00 00 00 00 95 [13:52:52]Write i2c OK [13:52:52]MH_I2C_Read... [13:52:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:52]Read from MH i2c: E2 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 0E 00 [13:52:52]MH_I2C_Read... [13:52:52]Read from MH i2c: E2 0E 00 12 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8F [13:52:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:52:52]wFMCommunicate OK [13:52:52]SAM_PROTO_GetShiftState done [13:52:52]FM_GetShiftState done [13:52:52]req_shift_opened done [13:52:52]requested_item shift.open_date is exist - process it [13:52:52]req_shift_open_date [13:52:52]req_shift_open_date done [13:52:52]produce_requested_data done [13:52:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162540,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:52:52]process_action_free print_text [13:52:52]json_value_free [13:52:52]json_value_free done [13:52:52]process_json_proto returns [13:52:52]Send response to host [13:52:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162540,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:52:52]free response buf [13:52:52]execute_script done [13:52:52]execute_script returns [13:52:52]free content buf [13:52:52]Sock 9.Close socket [13:52:52]Sock 9.Thread stoped [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:06]accept exits with 7 [13:58:06]New connection [13:58:06]New thread 3067510116 created [13:58:06]Thread 3067366756 joined [13:58:06]Waiting for new connection... [13:58:06] Sock 7.Parse request [13:58:06]Sock 7.Check first char [13:58:06]Sock 7.First char is OK [13:58:06]request: POST /json_proto HTTP/1.0 [13:58:06]Method: POST [13:58:06]URL: /json_proto [13:58:06]Method is POST - this is cgi request [13:58:06]url: /json_proto [13:58:06]query_string will be loaded in cgi processing [13:58:06]execute_cgi json_proto POST (null) [13:58:06]execute_cgi path=json_proto method=POST [13:58:06]POST find Content-Length [13:58:06]Host: 172.17.39.67:8080 [13:58:06]Content-Length: 678 [13:58:06]Content-Type: application/json [13:58:06] [13:58:06]POST finish read [13:58:06]Found Content-Length = 678 [13:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:06]execute_script... [13:58:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:06]POST & json_proto [13:58:06]process_json_proto [13:58:06]json parsed OK: [13:58:06]protocol is kg_v1.0 [13:58:06]action value=close_receipt [13:58:06]process_action close_receipt [13:58:06]cmd_close_receipt [13:58:06]MH_GetDate [13:58:06]Write to MH i2c: F0 00 00 13 06 08 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: F0 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: F0 09 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: F0 09 00 13 06 00 EE 87 92 66 86 7C 92 66 78 [13:58:06]GetLastDocTimeStamp 1720878694 [13:58:06]current date 1720879086 [13:58:06]FM_GetShiftState [13:58:06]SAM_PROTO_GetShiftState [13:58:06]wFMCommunicate request_size=4 [13:58:06]MH_SAM_APDU [13:58:06]CAPDU: 80 13 01 00 [13:58:06]Write to MH i2c: E2 08 00 14 06 80 13 01 00 00 00 00 00 97 [13:58:06]Write i2c OK [13:58:06]MH_I2C_Read... [13:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:06]Read from MH i2c: E2 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 0E 00 [13:58:06]MH_I2C_Read... [13:58:06]Read from MH i2c: E2 0E 00 14 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 91 [13:58:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:58:06]wFMCommunicate OK [13:58:06]SAM_PROTO_GetShiftState done [13:58:06]FM_GetShiftState done [13:58:06]opened in 1720828979 [13:58:06]opened+sec_in_day 1720915379 [13:58:06]quantity*price = 40045 [13:58:06]sum+1 = 40046 [13:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 209 13.07.2024 13:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162541 ФПД: 154506166612582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135806&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162541&fm=154506166612582&tin=02508201610067®Number=0000000000090858&sum=40000 [13:58:07]StoreToDocumentArchive [13:58:07]shift 462 fd 162541 [13:58:07]save to /storage/0462/doc_00162541 [13:58:07]save last doc name /storage/0462/doc_00162541 to /storage/kkm_last_doc_name [13:58:07]save OK [13:58:07]Clear old archive folders... [13:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:07]tlvbuf is 006C4030 [13:58:07]SAM_PROTO_ClearQueue [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 09 00 00 [13:58:07]Write to MH i2c: E2 08 00 21 06 80 09 00 00 00 00 00 00 99 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 21 06 00 90 00 9B [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_ClearQueue done [13:58:07]KKMCreateOFDPacket [13:58:07]OFDProtocolAddRootSTLVToBuf [13:58:07]FM_MakeSignedData [13:58:07]FM_MakeSignedData [13:58:07]SAM_PROTO_SignData [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 01 02 [13:58:07]Write to MH i2c: E2 08 00 22 06 80 0D 01 02 00 00 00 00 A1 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 22 06 00 90 00 9C [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=255 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D1 00 00 00 F4 03 04 00 EE 87 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7A 02 00 35 04 06 00 8C [13:58:07]Write to MH i2c: E2 02 01 23 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D1 00 00 00 F4 03 04 00 EE 87 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7A 02 00 35 04 06 00 8C 00 00 3E [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]OFD Sender: No OFD packet to send [13:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 23 06 00 90 00 9D [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=10 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 02 02 05 85 C5 2D 32 66 [13:58:07]Write to MH i2c: E2 0D 00 24 06 80 0D 02 02 05 00 85 C5 2D 32 66 00 00 BD [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [13:58:07]RAPDU: 90 00 [13:58:07]wFMCommunicate OK [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 0D 03 02 [13:58:07]Write to MH i2c: E2 08 00 25 06 80 0D 03 02 00 00 00 00 A6 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0B 00 25 06 00 82 BA 49 35 DE A5 EE B6 90 00 88 [13:58:07]RAPDU: 82 BA 49 35 DE A5 EE B6 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_SignData done [13:58:07]FM_MakeSignedData done [13:58:07]CreateOFDProtocolMessage [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 11 00 00 [13:58:07]Write to MH i2c: E2 08 00 26 06 80 11 00 00 00 00 00 00 A6 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 17 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 17 00 26 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 06 [13:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:58:08]wFMCommunicate OK [13:58:08]CreateOFDProtocolMessage done [13:58:08]OFDSenderStorePacket 162541 [13:58:08]StoreOFDPacket docnum=162541 [13:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 94 38 07 01 A3 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D1 00 00 00 F4 03 04 00 EE 87 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7A 02 00 35 04 06 00 8C 85 C5 2D 32 66 82 BA 49 35 DE A5 EE B6 [13:58:08]CheckFolder [13:58:08]dirname=/storage/ofd_packets [13:58:08]CheckFolder done [13:58:08]ProducePacketName [13:58:08]name=ofd_packets/00162541 [13:58:08]NVStorageSaveData ofd_packets/00162541 [13:58:08]File name is /storage/ofd_packets/00162541 [13:58:08]Write 301 bytes [13:58:08]NVStorageSaveData done [13:58:08]OFDSenderStorePacket done [13:58:08]KKMCreateOFDPacket done [13:58:08]NVStorageSaveData kkm_last_timestamp [13:58:08]File name is /storage/kkm_last_timestamp [13:58:08]Write 4 bytes [13:58:08]NVStorageSaveData done [13:58:08]ExternCall_PrintAddStr [13:58:08]wPrintStart [13:58:08]Write to MH i2c: 01 00 00 27 06 2D [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 FF 0F 42 [13:58:08]RasterBufferAndPrint [13:58:08]line Счет N : (1)1319096 [13:58:08]line ИНН: 02508201610067 [13:58:08]line Контрольно-Кассовый Чек [13:58:08]line ПРОДАЖА [13:58:08]line ТРК (МРК, ГНК) : 53 [13:58:08]line Товар: 2710124130 [13:58:08]line Аи-92-К-5 [13:58:08]line 6.040 * 66.30 [13:58:08]line = 400.45 [13:58:08]line НДС 12% НСП 1% [13:58:08]line > о реализуемом товаре [13:58:08]line ОКРУГЛЕНИЕ: -0.45 [13:58:08]line ИТОГО: 400.00 [13:58:08]line Внесено: 400.00 [13:58:08]line СДАЧА: 0.00 [13:58:08]line НСП 1% : 3.54 [13:58:08]line НДС 12% : 42.53 [13:58:08]line Наличными: 400.00 [13:58:08]line Безнал.: 0.00 [13:58:08]line Место: АЗС № 140 "Партнер Нефть" [13:58:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:58:08]line СНО: Общий режим [13:58:08]line Чек 209 13.07.2024 13:58 [13:58:08]line Смена: 462 ФФД: 1.0 [13:58:08]line ЗНМ: 0300000129 [13:58:08]line РНМ: 0000000000090858 [13:58:08]line Версия ККМ: 001 [13:58:08]line ФМ: 0000000000874899 [13:58:08]line ФД: 162541 [13:58:08]line ФПД: 154506166612582 [13:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135806&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162541&fm=154506166612582&tin=02508201610067®Number=0000000000090858&sum=40000 [13:58:08]OFD Sender: Processing packet 162541 [packets to send 106, broken 105] [13:58:08]ProducePacketName [13:58:08]name=ofd_packets/00162541 [13:58:08]OFD Sender: To server: pG, [13:58:08]CommunicateWithHost lk.salyk.kg:30040 [13:58:08]ConnectInit lk.salyk.kg [13:58:08]written 0, free lines is 4095 [13:58:08]Connected sock=10 [13:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 94 38 07 01 A3 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 D1 00 00 00 F4 03 04 00 EE 87 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7A 02 00 35 04 06 00 8C 85 C5 2D 32 66 82 BA 49 35 DE A5 EE B6 [13:58:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 92 BF 47 00 DB D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 ED 7A 02 00 F4 03 04 00 FD 33 92 66 B6 04 01 00 00 0E FF 63 42 C3 96 8C 45 [13:58:08]CommunicateWithHost err = 0 [13:58:08]CheckOFDResponse [13:58:08]1017 (14) - 77093643461234 [13:58:08]1041 (16) - 0000000000874899 [13:58:08]1040 (4) - 162541 [13:58:08]1012 (4) - 13.07.2024 07:59 [13:58:08]1206 (1) - 0 [13:58:08]OFD Sender: Remove packet 162541 [13:58:08]ProducePacketName [13:58:08]name=ofd_packets/00162541 [13:58:08]NVStorageDeleteData [13:58:08]Write to MH i2c: 01 00 00 52 06 58 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: 01 07 00 52 06 00 00 00 00 00 EB 0C 56 [13:58:08]RasterBufferAndPrint [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]line [13:58:08]written 0, free lines is 3313 [13:58:08]MH_Cut [13:58:08]Write to MH i2c: D1 01 00 59 06 01 31 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 01 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: D1 01 00 59 06 00 30 [13:58:08]Write to MH i2c: 01 00 00 5A 06 60 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:09]OFD Sender: No OFD packet to send [13:58:09]*** Cut start [13:58:09]*** Purtial cut [13:58:09]*** CUTSNS_PIN = 0 [13:58:09]*** Stage 1: CUTSNS_PIN = 1 [13:58:11]Read from MH i2c: 01 [13:58:11]MH_I2C_Read... [13:58:11]*** Stop cut motor [13:58:11]*** Cut end [13:58:11]Read from MH i2c: 01 07 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: 01 07 00 5A 06 00 00 00 00 00 FF 0F 75 [13:58:11]process_action close_receipt done [13:58:11]requested_data is exist [13:58:11]produce_requested_data [13:58:11]requested_item fm.sn is exist - process it [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 11 00 00 [13:58:11]Write to MH i2c: E2 08 00 5B 06 80 11 00 00 00 00 00 00 DB [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 17 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 17 00 5B 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3B [13:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:58:11]wFMCommunicate OK [13:58:11]requested_item fd.num is exist - process it [13:58:11]SAM_PROTO_GetFieldsCounters [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 00 00 [13:58:11]Write to MH i2c: E2 08 00 5C 06 80 13 00 00 00 00 00 00 DE [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 5C 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 ED 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [13:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 ED 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetFieldsCounters done [13:58:11]requested_item shift.num is exist - process it [13:58:11]requested_item shift.opened is exist - process it [13:58:11]req_shift_opened [13:58:11]FM_GetShiftState [13:58:11]SAM_PROTO_GetShiftState [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 01 00 [13:58:11]Write to MH i2c: E2 08 00 5D 06 80 13 01 00 00 00 00 00 E0 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 5D 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DA [13:58:11]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetShiftState done [13:58:11]FM_GetShiftState done [13:58:11]req_shift_opened done [13:58:11]requested_item shift.open_date is exist - process it [13:58:11]req_shift_open_date [13:58:11]req_shift_open_date done [13:58:11]produce_requested_data done [13:58:11]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162541,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:58:11]process_action_free close_receipt [13:58:11]json_value_free [13:58:11]json_value_free done [13:58:11]process_json_proto returns [13:58:11]Send response to host [13:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162541,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:58:11]free response buf [13:58:11]execute_script done [13:58:11]execute_script returns [13:58:11]free content buf [13:58:11]Sock 7.Close socket [13:58:11]Sock 7.Thread stoped [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:23]accept exits with 9 [13:58:23]New connection [13:58:23]New thread 3067366756 created [13:58:23]Thread 3067510116 joined [13:58:23]Waiting for new connection... [13:58:23] Sock 9.Parse request [13:58:23]Sock 9.Check first char [13:58:23]Sock 9.First char is OK [13:58:23]request: POST /json_proto HTTP/1.0 [13:58:23]Method: POST [13:58:23]URL: /json_proto [13:58:23]Method is POST - this is cgi request [13:58:23]url: /json_proto [13:58:23]query_string will be loaded in cgi processing [13:58:23]execute_cgi json_proto POST (null) [13:58:23]execute_cgi path=json_proto method=POST [13:58:23]POST find Content-Length [13:58:23]Host: 172.17.39.67:8080 [13:58:23]Content-Length: 825 [13:58:23]Content-Type: application/json [13:58:23] [13:58:23]POST finish read [13:58:23]Found Content-Length = 825 [13:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:23]execute_script... [13:58:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2500.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:23]POST & json_proto [13:58:23]process_json_proto [13:58:23]json parsed OK: [13:58:23]protocol is kg_v1.0 [13:58:23]action value=close_receipt [13:58:23]process_action close_receipt [13:58:23]cmd_close_receipt [13:58:23]MH_GetDate [13:58:23]Write to MH i2c: F0 00 00 5E 06 53 [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 09 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: F0 09 00 5E 06 00 FF 87 92 66 86 7C 92 66 D4 [13:58:23]GetLastDocTimeStamp 1720879086 [13:58:23]current date 1720879103 [13:58:23]FM_GetShiftState [13:58:23]SAM_PROTO_GetShiftState [13:58:23]wFMCommunicate request_size=4 [13:58:23]MH_SAM_APDU [13:58:23]CAPDU: 80 13 01 00 [13:58:23]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [13:58:23]Write i2c OK [13:58:23]MH_I2C_Read... [13:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:23]Read from MH i2c: E2 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 0E 00 [13:58:23]MH_I2C_Read... [13:58:23]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DC [13:58:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:58:23]wFMCommunicate OK [13:58:23]SAM_PROTO_GetShiftState done [13:58:23]FM_GetShiftState done [13:58:23]opened in 1720828979 [13:58:23]opened+sec_in_day 1720915379 [13:58:23]quantity*price = 250034 [13:58:23]sum+1 = 250035 [13:58:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.34 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 0.00 Безнал.: 2500.34 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 210 13.07.2024 13:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162542 ФПД: 274858951440635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135823&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162542&fm=274858951440635&tin=02508201610067®Number=0000000000090858&sum=250034 [13:58:24]StoreToDocumentArchive [13:58:24]shift 462 fd 162542 [13:58:24]save to /storage/0462/doc_00162542 [13:58:24]save last doc name /storage/0462/doc_00162542 to /storage/kkm_last_doc_name [13:58:24]save OK [13:58:24]Clear old archive folders... [13:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:58:24]tlvbuf is 006AE990 [13:58:24]SAM_PROTO_ClearQueue [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 09 00 00 [13:58:24]Write to MH i2c: E2 08 00 6C 06 80 09 00 00 00 00 00 00 E4 [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:24]Read from MH i2c: E2 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 [13:58:24]MH_I2C_Read... [13:58:24]Read from MH i2c: E2 03 00 6C 06 00 90 00 E6 [13:58:24]RAPDU: 90 00 [13:58:24]wFMCommunicate OK [13:58:24]SAM_PROTO_ClearQueue done [13:58:24]KKMCreateOFDPacket [13:58:24]OFDProtocolAddRootSTLVToBuf [13:58:24]FM_MakeSignedData [13:58:24]FM_MakeSignedData [13:58:24]SAM_PROTO_SignData [13:58:24]wFMCommunicate request_size=4 [13:58:24]MH_SAM_APDU [13:58:24]CAPDU: 80 0D 01 02 [13:58:24]Write to MH i2c: E2 08 00 6D 06 80 0D 01 02 00 00 00 00 EC [13:58:24]Write i2c OK [13:58:24]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 6D 06 00 90 00 E7 [13:58:25]RAPDU: 90 00 [13:58:25]wFMCommunicate OK [13:58:25]wFMCommunicate request_size=255 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 FF 87 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7A 02 00 35 04 06 00 [13:58:25]Write to MH i2c: E2 02 01 6E 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 FF 87 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7A 02 00 35 04 06 00 00 00 AD [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [13:58:25]RAPDU: 90 00 [13:58:25]wFMCommunicate OK [13:58:25]wFMCommunicate request_size=11 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 0D 02 02 06 F9 FB 96 29 F8 FB [13:58:25]Write to MH i2c: E2 0E 00 6F 06 80 0D 02 02 06 00 F9 FB 96 29 F8 FB 00 00 A1 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [13:58:25]RAPDU: 90 00 [13:58:25]wFMCommunicate OK [13:58:25]wFMCommunicate request_size=4 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 0D 03 02 [13:58:25]Write to MH i2c: E2 08 00 70 06 80 0D 03 02 00 00 00 00 F1 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 0B 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 0B 00 70 06 00 2F 06 B8 A9 C7 F3 27 1D 90 00 86 [13:58:25]RAPDU: 2F 06 B8 A9 C7 F3 27 1D 90 00 [13:58:25]wFMCommunicate OK [13:58:25]SAM_PROTO_SignData done [13:58:25]FM_MakeSignedData done [13:58:25]CreateOFDProtocolMessage [13:58:25]wFMCommunicate request_size=4 [13:58:25]MH_SAM_APDU [13:58:25]CAPDU: 80 11 00 00 [13:58:25]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:25]Read from MH i2c: E2 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 17 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 51 [13:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:58:25]wFMCommunicate OK [13:58:25]CreateOFDProtocolMessage done [13:58:25]OFDSenderStorePacket 162542 [13:58:25]StoreOFDPacket docnum=162542 [13:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9E 03 08 01 80 CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 FF 87 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7A 02 00 35 04 06 00 F9 FB 96 29 F8 FB 2F 06 B8 A9 C7 F3 27 1D [13:58:25]CheckFolder [13:58:25]dirname=/storage/ofd_packets [13:58:25]CheckFolder done [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00162542 [13:58:25]NVStorageSaveData ofd_packets/00162542 [13:58:25]File name is /storage/ofd_packets/00162542 [13:58:25]Write 302 bytes [13:58:25]NVStorageSaveData done [13:58:25]OFDSenderStorePacket done [13:58:25]KKMCreateOFDPacket done [13:58:25]NVStorageSaveData kkm_last_timestamp [13:58:25]File name is /storage/kkm_last_timestamp [13:58:25]Write 4 bytes [13:58:25]NVStorageSaveData done [13:58:25]ExternCall_PrintAddStr [13:58:25]wPrintStart [13:58:25]Write to MH i2c: 01 00 00 72 06 78 [13:58:25]Write i2c OK [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 [13:58:25]MH_I2C_Read... [13:58:25]Read from MH i2c: 01 07 00 72 06 00 00 00 00 00 FF 0F 8D [13:58:25]RasterBufferAndPrint [13:58:25]line Счет N : (1)1319094 [13:58:25]line ИНН: 02508201610067 [13:58:25]line Контрольно-Кассовый Чек [13:58:25]line ПРОДАЖА [13:58:25]line ТРК (МРК, ГНК) : 11 [13:58:25]line Товар: 2710194210 [13:58:25]line ДТ(л)-К-5 [13:58:25]line 34.440 * 72.60 [13:58:25]line = 2500.34 [13:58:25]line НДС 12% НСП 1% [13:58:25]line > о реализуемом товаре [13:58:25]line ИТОГО: 2500.34 [13:58:25]line НСП 1% : 22.13 [13:58:25]line НДС 12% : 265.52 [13:58:25]line Наличными: 0.00 [13:58:25]line Безнал.: 2500.34 [13:58:25]line Место: АЗС № 140 "Партнер Нефть" [13:58:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:58:25]line СНО: Общий режим [13:58:25]line Чек 210 13.07.2024 13:58 [13:58:25]line Смена: 462 ФФД: 1.0 [13:58:25]line ЗНМ: 0300000129 [13:58:25]line РНМ: 0000000000090858 [13:58:25]line Версия ККМ: 001 [13:58:25]line Платежная система: Бакай Банк [13:58:25]line ФМ: 0000000000874899 [13:58:25]line ФД: 162542 [13:58:25]line ФПД: 274858951440635 [13:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T135823&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162542&fm=274858951440635&tin=02508201610067®Number=0000000000090858&sum=250034 [13:58:25]OFD Sender: Processing packet 162542 [packets to send 106, broken 105] [13:58:25]ProducePacketName [13:58:25]name=ofd_packets/00162542 [13:58:25]OFD Sender: To server: pG, [13:58:25]CommunicateWithHost lk.salyk.kg:30040 [13:58:25]ConnectInit lk.salyk.kg [13:58:25]written 0, free lines is 4095 [13:58:25]Connected sock=10 [13:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9E 03 08 01 80 CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 FF 87 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7A 02 00 35 04 06 00 F9 FB 96 29 F8 FB 2F 06 B8 A9 C7 F3 27 1D [13:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E E1 47 00 73 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EE 7A 02 00 F4 03 04 00 0F 34 92 66 B6 04 01 00 00 74 50 C8 85 20 C4 56 EB [13:58:26]CommunicateWithHost err = 0 [13:58:26]CheckOFDResponse [13:58:26]1017 (14) - 77093643461234 [13:58:26]1041 (16) - 0000000000874899 [13:58:26]1040 (4) - 162542 [13:58:26]1012 (4) - 13.07.2024 08:00 [13:58:26]1206 (1) - 0 [13:58:26]OFD Sender: Remove packet 162542 [13:58:26]ProducePacketName [13:58:26]name=ofd_packets/00162542 [13:58:26]NVStorageDeleteData [13:58:26]Write to MH i2c: 01 00 00 9C 06 A2 [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: 01 07 00 9C 06 00 00 00 00 00 FC 0C B1 [13:58:26]RasterBufferAndPrint [13:58:26]line [13:58:26]line [13:58:26]line [13:58:26]line [13:58:26]line [13:58:26]written 0, free lines is 3330 [13:58:26]MH_Cut [13:58:26]Write to MH i2c: D1 01 00 A3 06 01 7B [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: D1 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: D1 01 00 [13:58:26]MH_I2C_Read... [13:58:26]Read from MH i2c: D1 01 00 A3 06 00 7A [13:58:26]Write to MH i2c: 01 00 00 A4 06 AA [13:58:26]Write i2c OK [13:58:26]MH_I2C_Read... [13:58:26]OFD Sender: No OFD packet to send [13:58:26]*** Cut start [13:58:26]*** Purtial cut [13:58:26]*** Stage 1: CUTSNS_PIN = 1 [13:58:27]Read from MH i2c: 01 [13:58:27]MH_I2C_Read... [13:58:27]*** Stop cut motor [13:58:27]*** Cut end [13:58:27]Read from MH i2c: 01 07 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: 01 07 00 A4 06 00 00 00 00 00 FF 0F BF [13:58:27]process_action close_receipt done [13:58:27]requested_data is exist [13:58:27]produce_requested_data [13:58:27]requested_item fm.sn is exist - process it [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 11 00 00 [13:58:27]Write to MH i2c: E2 08 00 A5 06 80 11 00 00 00 00 00 00 25 [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 17 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 17 00 A5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 85 [13:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [13:58:27]wFMCommunicate OK [13:58:27]requested_item fd.num is exist - process it [13:58:27]SAM_PROTO_GetFieldsCounters [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 13 00 00 [13:58:27]Write to MH i2c: E2 08 00 A6 06 80 13 00 00 00 00 00 00 28 [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 62 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 62 00 A6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [13:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:27]wFMCommunicate OK [13:58:27]SAM_PROTO_GetFieldsCounters done [13:58:27]requested_item shift.num is exist - process it [13:58:27]requested_item shift.opened is exist - process it [13:58:27]req_shift_opened [13:58:27]FM_GetShiftState [13:58:27]SAM_PROTO_GetShiftState [13:58:27]wFMCommunicate request_size=4 [13:58:27]MH_SAM_APDU [13:58:27]CAPDU: 80 13 01 00 [13:58:27]Write to MH i2c: E2 08 00 A7 06 80 13 01 00 00 00 00 00 2A [13:58:27]Write i2c OK [13:58:27]MH_I2C_Read... [13:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:27]Read from MH i2c: E2 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 [13:58:27]MH_I2C_Read... [13:58:27]Read from MH i2c: E2 0E 00 A7 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 24 [13:58:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [13:58:27]wFMCommunicate OK [13:58:27]SAM_PROTO_GetShiftState done [13:58:27]FM_GetShiftState done [13:58:27]req_shift_opened done [13:58:27]requested_item shift.open_date is exist - process it [13:58:27]req_shift_open_date [13:58:27]req_shift_open_date done [13:58:27]produce_requested_data done [13:58:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162542,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [13:58:27]process_action_free close_receipt [13:58:27]json_value_free [13:58:27]json_value_free done [13:58:27]process_json_proto returns [13:58:27]Send response to host [13:58:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162542,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [13:58:27]free response buf [13:58:27]execute_script done [13:58:27]execute_script returns [13:58:27]free content buf [13:58:27]Sock 9.Close socket [13:58:27]Sock 9.Thread stoped [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:29]accept exits with 7 [14:03:29]New connection [14:03:29]New thread 3067510116 created [14:03:29]Thread 3067366756 joined [14:03:29]Waiting for new connection... [14:03:29] Sock 7.Parse request [14:03:29]Sock 7.Check first char [14:03:29]Sock 7.First char is OK [14:03:29]request: POST /json_proto HTTP/1.0 [14:03:29]Method: POST [14:03:29]URL: /json_proto [14:03:29]Method is POST - this is cgi request [14:03:29]url: /json_proto [14:03:29]query_string will be loaded in cgi processing [14:03:29]execute_cgi json_proto POST (null) [14:03:29]execute_cgi path=json_proto method=POST [14:03:29]POST find Content-Length [14:03:29]Host: 172.17.39.67:8080 [14:03:29]Content-Length: 683 [14:03:29]Content-Type: application/json [14:03:29] [14:03:29]POST finish read [14:03:29]Found Content-Length = 683 [14:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:03:29]execute_script... [14:03: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)1319097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:03:29]POST & json_proto [14:03:29]process_json_proto [14:03:29]json parsed OK: [14:03:29]protocol is kg_v1.0 [14:03:29]action value=close_receipt [14:03:29]process_action close_receipt [14:03:29]cmd_close_receipt [14:03:29]MH_GetDate [14:03:29]Write to MH i2c: F0 00 00 A8 06 9D [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: F0 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: F0 09 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: F0 09 00 A8 06 00 31 89 92 66 86 7C 92 66 52 [14:03:29]GetLastDocTimeStamp 1720879103 [14:03:29]current date 1720879409 [14:03:29]FM_GetShiftState [14:03:29]SAM_PROTO_GetShiftState [14:03:29]wFMCommunicate request_size=4 [14:03:29]MH_SAM_APDU [14:03:29]CAPDU: 80 13 01 00 [14:03:29]Write to MH i2c: E2 08 00 A9 06 80 13 01 00 00 00 00 00 2C [14:03:29]Write i2c OK [14:03:29]MH_I2C_Read... [14:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:29]Read from MH i2c: E2 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 0E 00 [14:03:29]MH_I2C_Read... [14:03:29]Read from MH i2c: E2 0E 00 A9 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 26 [14:03:29]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:03:29]wFMCommunicate OK [14:03:29]SAM_PROTO_GetShiftState done [14:03:29]FM_GetShiftState done [14:03:29]opened in 1720828979 [14:03:29]opened+sec_in_day 1720915379 [14:03:29]quantity*price = 50021 [14:03:29]sum+1 = 50022 [14:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 211 13.07.2024 14:03 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162543 ФПД: 178515008761811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140329&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162543&fm=178515008761811&tin=02508201610067®Number=0000000000090858&sum=50000 [14:03:30]StoreToDocumentArchive [14:03:30]shift 462 fd 162543 [14:03:30]save to /storage/0462/doc_00162543 [14:03:30]save last doc name /storage/0462/doc_00162543 to /storage/kkm_last_doc_name [14:03:30]save OK [14:03:30]Clear old archive folders... [14:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:03:30]tlvbuf is 006B99C0 [14:03:30]SAM_PROTO_ClearQueue [14:03:30]wFMCommunicate request_size=4 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 09 00 00 [14:03:30]Write to MH i2c: E2 08 00 B6 06 80 09 00 00 00 00 00 00 2E [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:30]Read from MH i2c: E2 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 03 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 03 00 B6 06 00 90 00 30 [14:03:30]RAPDU: 90 00 [14:03:30]wFMCommunicate OK [14:03:30]SAM_PROTO_ClearQueue done [14:03:30]KKMCreateOFDPacket [14:03:30]OFDProtocolAddRootSTLVToBuf [14:03:30]FM_MakeSignedData [14:03:30]FM_MakeSignedData [14:03:30]SAM_PROTO_SignData [14:03:30]wFMCommunicate request_size=4 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 0D 01 02 [14:03:30]Write to MH i2c: E2 08 00 B7 06 80 0D 01 02 00 00 00 00 36 [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:30]Read from MH i2c: E2 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 03 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 03 00 B7 06 00 90 00 31 [14:03:30]RAPDU: 90 00 [14:03:30]wFMCommunicate OK [14:03:30]wFMCommunicate request_size=255 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 D3 00 00 00 F4 03 04 00 31 89 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7A 02 00 35 04 06 00 [14:03:30]Write to MH i2c: E2 02 01 B8 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 D3 00 00 00 F4 03 04 00 31 89 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7A 02 00 35 04 06 00 00 00 A6 [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:30]Read from MH i2c: E2 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 03 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [14:03:30]RAPDU: 90 00 [14:03:30]wFMCommunicate OK [14:03:30]wFMCommunicate request_size=11 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 0D 02 02 06 A2 5B C3 AF 2F D3 [14:03:30]Write to MH i2c: E2 0E 00 B9 06 80 0D 02 02 06 00 A2 5B C3 AF 2F D3 00 00 B6 [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:30]Read from MH i2c: E2 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 03 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [14:03:30]RAPDU: 90 00 [14:03:30]wFMCommunicate OK [14:03:30]wFMCommunicate request_size=4 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 0D 03 02 [14:03:30]Write to MH i2c: E2 08 00 BA 06 80 0D 03 02 00 00 00 00 3B [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:30]Read from MH i2c: E2 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 0B 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 0B 00 BA 06 00 4A 5D 5A 98 89 0D 08 44 90 00 B7 [14:03:30]RAPDU: 4A 5D 5A 98 89 0D 08 44 90 00 [14:03:30]wFMCommunicate OK [14:03:30]SAM_PROTO_SignData done [14:03:30]FM_MakeSignedData done [14:03:30]CreateOFDProtocolMessage [14:03:30]wFMCommunicate request_size=4 [14:03:30]MH_SAM_APDU [14:03:30]CAPDU: 80 11 00 00 [14:03:30]Write to MH i2c: E2 08 00 BB 06 80 11 00 00 00 00 00 00 3B [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:30]Read from MH i2c: E2 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 17 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: E2 17 00 BB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9B [14:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:03:30]wFMCommunicate OK [14:03:30]CreateOFDProtocolMessage done [14:03:30]OFDSenderStorePacket 162543 [14:03:30]StoreOFDPacket docnum=162543 [14:03:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 66 01 08 01 78 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 D3 00 00 00 F4 03 04 00 31 89 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7A 02 00 35 04 06 00 A2 5B C3 AF 2F D3 4A 5D 5A 98 89 0D 08 44 [14:03:30]CheckFolder [14:03:30]dirname=/storage/ofd_packets [14:03:30]CheckFolder done [14:03:30]ProducePacketName [14:03:30]name=ofd_packets/00162543 [14:03:30]NVStorageSaveData ofd_packets/00162543 [14:03:30]File name is /storage/ofd_packets/00162543 [14:03:30]Write 302 bytes [14:03:30]NVStorageSaveData done [14:03:30]OFDSenderStorePacket done [14:03:30]KKMCreateOFDPacket done [14:03:30]NVStorageSaveData kkm_last_timestamp [14:03:30]File name is /storage/kkm_last_timestamp [14:03:30]Write 4 bytes [14:03:30]NVStorageSaveData done [14:03:30]ExternCall_PrintAddStr [14:03:30]wPrintStart [14:03:30]Write to MH i2c: 01 00 00 BC 06 C2 [14:03:30]Write i2c OK [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: 01 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: 01 07 00 [14:03:30]MH_I2C_Read... [14:03:30]Read from MH i2c: 01 07 00 BC 06 00 00 00 00 00 FF 0F D7 [14:03:30]RasterBufferAndPrint [14:03:30]line Счет N : (1)1319097 [14:03:30]line ИНН: 02508201610067 [14:03:30]line Контрольно-Кассовый Чек [14:03:30]line ПРОДАЖА [14:03:30]line ТРК (МРК, ГНК) : 41 [14:03:30]line Товар: 2710194210 [14:03:30]line ДТ(л)-К-5 [14:03:30]line 6.890 * 72.60 [14:03:30]line = 500.21 [14:03:30]line НДС 12% НСП 1% [14:03:30]line > о реализуемом товаре [14:03:30]line ОКРУГЛЕНИЕ: -0.21 [14:03:30]line ИТОГО: 500.00 [14:03:30]line Внесено: 500.00 [14:03:30]line СДАЧА: 0.00 [14:03:30]line НСП 1% : 4.43 [14:03:30]line НДС 12% : 53.12 [14:03:30]line Наличными: 500.00 [14:03:30]line Безнал.: 0.00 [14:03:30]line Место: АЗС № 140 "Партнер Нефть" [14:03:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:03:30]line СНО: Общий режим [14:03:30]line Чек 211 13.07.2024 14:03 [14:03:30]line Смена: 462 ФФД: 1.0 [14:03:30]line ЗНМ: 0300000129 [14:03:30]line РНМ: 0000000000090858 [14:03:30]line Версия ККМ: 001 [14:03:30]line ФМ: 0000000000874899 [14:03:30]line ФД: 162543 [14:03:30]line ФПД: 178515008761811 [14:03:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T140329&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162543&fm=178515008761811&tin=02508201610067®Number=0000000000090858&sum=50000 [14:03:31]OFD Sender: Processing packet 162543 [packets to send 106, broken 105] [14:03:31]ProducePacketName [14:03:31]name=ofd_packets/00162543 [14:03:31]OFD Sender: To server: pG, [14:03:31]CommunicateWithHost lk.salyk.kg:30040 [14:03:31]ConnectInit lk.salyk.kg [14:03:31]written 0, free lines is 4095 [14:03:31]Connected sock=10 [14:03:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 66 01 08 01 78 A5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 D3 00 00 00 F4 03 04 00 31 89 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7A 02 00 35 04 06 00 A2 5B C3 AF 2F D3 4A 5D 5A 98 89 0D 08 44 [14:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4E 72 47 00 5B 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 EF 7A 02 00 F4 03 04 00 40 35 92 66 B6 04 01 00 00 6E 03 12 01 CB 3F AF 50 [14:03:31]CommunicateWithHost err = 0 [14:03:31]CheckOFDResponse [14:03:31]1017 (14) - 77093643461234 [14:03:31]1041 (16) - 0000000000874899 [14:03:31]1040 (4) - 162543 [14:03:31]1012 (4) - 13.07.2024 08:05 [14:03:31]1206 (1) - 0 [14:03:31]OFD Sender: Remove packet 162543 [14:03:31]ProducePacketName [14:03:31]name=ofd_packets/00162543 [14:03:31]NVStorageDeleteData [14:03:31]Write to MH i2c: 01 00 00 E7 06 ED [14:03:31]Write i2c OK [14:03:31]MH_I2C_Read... [14:03:31]Read from MH i2c: 01 [14:03:31]MH_I2C_Read... [14:03:31]Read from MH i2c: 01 07 00 [14:03:31]MH_I2C_Read... [14:03:31]Read from MH i2c: 01 07 00 E7 06 00 00 00 00 00 EB 0C EB [14:03:31]RasterBufferAndPrint [14:03:31]line [14:03:31]line [14:03:31]line [14:03:31]line [14:03:31]line [14:03:31]written 0, free lines is 3313 [14:03:31]MH_Cut [14:03:31]Write to MH i2c: D1 01 00 EE 06 01 C6 [14:03:31]Write i2c OK [14:03:31]MH_I2C_Read... [14:03:31]Read from MH i2c: D1 [14:03:31]MH_I2C_Read... [14:03:31]Read from MH i2c: D1 01 00 [14:03:31]MH_I2C_Read... [14:03:31]Read from MH i2c: D1 01 00 EE 06 00 C5 [14:03:31]Write to MH i2c: 01 00 00 EF 06 F5 [14:03:31]Write i2c OK [14:03:31]MH_I2C_Read... [14:03:31]OFD Sender: No OFD packet to send [14:03:32]*** Cut start [14:03:32]*** Purtial cut [14:03:32]*** CUTSNS_PIN = 0 [14:03:32]*** Stage 1: CUTSNS_PIN = 1 [14:03:34]Read from MH i2c: 01 [14:03:34]MH_I2C_Read... [14:03:34]*** Stop cut motor [14:03:34]*** Cut end [14:03:34]Read from MH i2c: 01 07 00 [14:03:34]MH_I2C_Read... [14:03:34]Read from MH i2c: 01 07 00 EF 06 00 00 00 00 00 FF 0F 0A [14:03:34]process_action close_receipt done [14:03:34]requested_data is exist [14:03:34]produce_requested_data [14:03:34]requested_item fm.sn is exist - process it [14:03:34]wFMCommunicate request_size=4 [14:03:34]MH_SAM_APDU [14:03:34]CAPDU: 80 11 00 00 [14:03:34]Write to MH i2c: E2 08 00 F0 06 80 11 00 00 00 00 00 00 70 [14:03:34]Write i2c OK [14:03:34]MH_I2C_Read... [14:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:34]Read from MH i2c: E2 [14:03:34]MH_I2C_Read... [14:03:34]Read from MH i2c: E2 17 00 [14:03:34]MH_I2C_Read... [14:03:34]Read from MH i2c: E2 17 00 F0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D0 [14:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:03:34]wFMCommunicate OK [14:03:34]requested_item fd.num is exist - process it [14:03:34]SAM_PROTO_GetFieldsCounters [14:03:34]wFMCommunicate request_size=4 [14:03:34]MH_SAM_APDU [14:03:34]CAPDU: 80 13 00 00 [14:03:34]Write to MH i2c: E2 08 00 F1 06 80 13 00 00 00 00 00 00 73 [14:03:34]Write i2c OK [14:03:34]MH_I2C_Read... [14:03:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:34]Read from MH i2c: E2 [14:03:34]MH_I2C_Read... [14:03:34]Read from MH i2c: E2 62 00 [14:03:34]MH_I2C_Read... [14:03:34]Read from MH i2c: E2 62 00 F1 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [14: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:34]wFMCommunicate OK [14:03:34]SAM_PROTO_GetFieldsCounters done [14:03:34]requested_item shift.num is exist - process it [14:03:34]requested_item shift.opened is exist - process it [14:03:34]req_shift_opened [14:03:34]FM_GetShiftState [14:03:34]SAM_PROTO_GetShiftState [14:03:34]wFMCommunicate request_size=4 [14:03:34]MH_SAM_APDU [14:03:34]CAPDU: 80 13 01 00 [14:03:34]Write to MH i2c: E2 08 00 F2 06 80 13 01 00 00 00 00 00 75 [14:03:34]Write i2c OK [14:03:34]MH_I2C_Read... [14:03:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:34]Read from MH i2c: E2 [14:03:34]MH_I2C_Read... [14:03:34]Read from MH i2c: E2 0E 00 [14:03:34]MH_I2C_Read... [14:03:34]Read from MH i2c: E2 0E 00 F2 06 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6F [14:03:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:03:34]wFMCommunicate OK [14:03:34]SAM_PROTO_GetShiftState done [14:03:34]FM_GetShiftState done [14:03:34]req_shift_opened done [14:03:34]requested_item shift.open_date is exist - process it [14:03:34]req_shift_open_date [14:03:34]req_shift_open_date done [14:03:34]produce_requested_data done [14:03:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162543,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:03:34]process_action_free close_receipt [14:03:34]json_value_free [14:03:34]json_value_free done [14:03:34]process_json_proto returns [14:03:34]Send response to host [14:03:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162543,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:03:34]free response buf [14:03:34]execute_script done [14:03:34]execute_script returns [14:03:34]free content buf [14:03:34]Sock 7.Close socket [14:03:34]Sock 7.Thread stoped [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:02]OFD Sender: No OFD packet to send [14:05:07]OFD Sender: No OFD packet to send [14:05:12]OFD Sender: No OFD packet to send [14:05:17]OFD Sender: No OFD packet to send [14:05:22]OFD Sender: No OFD packet to send [14:05:27]OFD Sender: No OFD packet to send [14:05:32]OFD Sender: No OFD packet to send [14:05:37]OFD Sender: No OFD packet to send [14:05:42]OFD Sender: No OFD packet to send [14:05:46]accept exits with 9 [14:05:46]New connection [14:05:46]New thread 3067366756 created [14:05:46]Thread 3067510116 joined [14:05:46]Waiting for new connection... [14:05:46] Sock 9.Parse request [14:05:46]Sock 9.Check first char [14:05:46]Sock 9.First char is OK [14:05:46]request: POST /json_proto HTTP/1.0 [14:05:46]Method: POST [14:05:46]URL: /json_proto [14:05:46]Method is POST - this is cgi request [14:05:46]url: /json_proto [14:05:46]query_string will be loaded in cgi processing [14:05:46]execute_cgi json_proto POST (null) [14:05:46]execute_cgi path=json_proto method=POST [14:05:46]POST find Content-Length [14:05:46]Host: 172.17.39.67:8080 [14:05:46]Content-Length: 1216 [14:05:46]Content-Type: application/json [14:05:46] [14:05:46]POST finish read [14:05:46]Found Content-Length = 1216 [14:05:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319098\u000A13.07.2024 14:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092727/4092728\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:46]execute_script... [14:05:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319098\u000A13.07.2024 14:03\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092727/4092728\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:46]POST & json_proto [14:05:46]process_json_proto [14:05:46]json parsed OK: [14:05:46]protocol is kg_v1.0 [14:05:46]action value=print_text [14:05:46]process_action print_text [14:05:46]cmd_print_text [14:05:46]ExternCall_PrintAddStr [14:05:46]wPrintStart [14:05:46]Write to MH i2c: 01 00 00 F3 06 F9 [14:05:46]Write i2c OK [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: 01 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: 01 07 00 [14:05:46]MH_I2C_Read... [14:05:46]Read from MH i2c: 01 07 00 F3 06 00 00 00 00 00 FF 0F 0E [14:05:46]RasterBufferAndPrint [14:05:46]line *****ТОВАРНЫЙ ЧЕК***** [14:05:46]line АЗС 140 [14:05:46]line Партнер нефть [14:05:46]line 02508201610067 [14:05:46]line Кассир : Шамбеталиев А. [14:05:46]line Счет N : (1)1319098 [14:05:46]line 13.07.2024 14:03 [14:05:46]line ПРОДАЖА [14:05:46]line ТРК (МРК, ГНК): 11 [14:05:46]line Вид ГСМ : 2710194210 [14:05:46]line ДТ(л)-К-5 [14:05:46]line 40.000 x 72.60 [14:05:46]line ИТОГ: 2904.00 [14:05:46]line Тип оплаты: Талоны: Партнер нефть [14:05:46]line 4092727/4092728 [14:05:46]line ______________________ [14:05:46]line (подпись) [14:05:46]written 0, free lines is 4095 [14:05:47]Write to MH i2c: 01 00 00 08 07 0F [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: 01 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: 01 07 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: 01 07 00 08 07 00 00 00 00 00 FA 0D 1D [14:05:47]RasterBufferAndPrint [14:05:47]line [14:05:47]line [14:05:47]line [14:05:47]line [14:05:47]line [14:05:47]written 0, free lines is 3580 [14:05:47]MH_Cut [14:05:47]Write to MH i2c: D1 01 00 0F 07 01 E8 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: D1 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: D1 01 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: D1 01 00 0F 07 00 E7 [14:05:47]Write to MH i2c: 01 00 00 10 07 17 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]OFD Sender: No OFD packet to send [14:05:47]*** Cut start [14:05:47]*** Purtial cut [14:05:47]*** Stage 1: CUTSNS_PIN = 1 [14:05:47]Read from MH i2c: 01 [14:05:47]MH_I2C_Read... [14:05:47]*** Stop cut motor [14:05:47]*** Cut end [14:05:47]Read from MH i2c: 01 07 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: 01 07 00 10 07 00 00 00 00 00 FF 0F 2C [14:05:47]process_action print_text done [14:05:47]requested_data is exist [14:05:47]produce_requested_data [14:05:47]requested_item fm.sn is exist - process it [14:05:47]wFMCommunicate request_size=4 [14:05:47]MH_SAM_APDU [14:05:47]CAPDU: 80 11 00 00 [14:05:47]Write to MH i2c: E2 08 00 11 07 80 11 00 00 00 00 00 00 92 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:47]Read from MH i2c: E2 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 17 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 17 00 11 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F2 [14:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:05:47]wFMCommunicate OK [14:05:47]requested_item fd.num is exist - process it [14:05:47]SAM_PROTO_GetFieldsCounters [14:05:47]wFMCommunicate request_size=4 [14:05:47]MH_SAM_APDU [14:05:47]CAPDU: 80 13 00 00 [14:05:47]Write to MH i2c: E2 08 00 12 07 80 13 00 00 00 00 00 00 95 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:47]Read from MH i2c: E2 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 62 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 62 00 12 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [14:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 EF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:47]wFMCommunicate OK [14:05:47]SAM_PROTO_GetFieldsCounters done [14:05:47]requested_item shift.num is exist - process it [14:05:47]requested_item shift.opened is exist - process it [14:05:47]req_shift_opened [14:05:47]FM_GetShiftState [14:05:47]SAM_PROTO_GetShiftState [14:05:47]wFMCommunicate request_size=4 [14:05:47]MH_SAM_APDU [14:05:47]CAPDU: 80 13 01 00 [14:05:47]Write to MH i2c: E2 08 00 13 07 80 13 01 00 00 00 00 00 97 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:48]Read from MH i2c: E2 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 0E 00 [14:05:48]MH_I2C_Read... [14:05:48]Read from MH i2c: E2 0E 00 13 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 91 [14:05:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:05:48]wFMCommunicate OK [14:05:48]SAM_PROTO_GetShiftState done [14:05:48]FM_GetShiftState done [14:05:48]req_shift_opened done [14:05:48]requested_item shift.open_date is exist - process it [14:05:48]req_shift_open_date [14:05:48]req_shift_open_date done [14:05:48]produce_requested_data done [14:05:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162543,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:05:48]process_action_free print_text [14:05:48]json_value_free [14:05:48]json_value_free done [14:05:48]process_json_proto returns [14:05:48]Send response to host [14:05:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162543,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:05:48]free response buf [14:05:48]execute_script done [14:05:48]execute_script returns [14:05:48]free content buf [14:05:48]Sock 9.Close socket [14:05:48]Sock 9.Thread stoped [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:42]accept exits with 7 [14:11:42]New connection [14:11:42]New thread 3067510116 created [14:11:42]Thread 3067366756 joined [14:11:42]Waiting for new connection... [14:11:42] Sock 7.Parse request [14:11:42]Sock 7.Check first char [14:11:42]Sock 7.First char is OK [14:11:42]request: POST /json_proto HTTP/1.0 [14:11:42]Method: POST [14:11:42]URL: /json_proto [14:11:42]Method is POST - this is cgi request [14:11:42]url: /json_proto [14:11:42]query_string will be loaded in cgi processing [14:11:42]execute_cgi json_proto POST (null) [14:11:42]execute_cgi path=json_proto method=POST [14:11:42]POST find Content-Length [14:11:42]Host: 172.17.39.67:8080 [14:11:42]Content-Length: 688 [14:11:42]Content-Type: application/json [14:11:42] [14:11:42]POST finish read [14:11:42]Found Content-Length = 688 [14:11:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:11:42]execute_script... [14:11: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)1319101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:11:42]POST & json_proto [14:11:42]process_json_proto [14:11:42]json parsed OK: [14:11:42]protocol is kg_v1.0 [14:11:42]action value=close_receipt [14:11:42]process_action close_receipt [14:11:42]cmd_close_receipt [14:11:42]MH_GetDate [14:11:42]Write to MH i2c: F0 00 00 14 07 0A [14:11:42]Write i2c OK [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: F0 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: F0 09 00 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: F0 09 00 14 07 00 1F 8B 92 66 86 7C 92 66 AF [14:11:42]GetLastDocTimeStamp 1720879409 [14:11:42]current date 1720879903 [14:11:42]FM_GetShiftState [14:11:42]SAM_PROTO_GetShiftState [14:11:42]wFMCommunicate request_size=4 [14:11:42]MH_SAM_APDU [14:11:42]CAPDU: 80 13 01 00 [14:11:42]Write to MH i2c: E2 08 00 15 07 80 13 01 00 00 00 00 00 99 [14:11:42]Write i2c OK [14:11:42]MH_I2C_Read... [14:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:42]Read from MH i2c: E2 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: E2 0E 00 [14:11:42]MH_I2C_Read... [14:11:42]Read from MH i2c: E2 0E 00 15 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 93 [14:11:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:11:42]wFMCommunicate OK [14:11:42]SAM_PROTO_GetShiftState done [14:11:42]FM_GetShiftState done [14:11:42]opened in 1720828979 [14:11:42]opened+sec_in_day 1720915379 [14:11:42]quantity*price = 200013 [14:11:42]sum+1 = 200014 [14:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 212 13.07.2024 14:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162544 ФПД: 36021789424909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141143&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162544&fm=36021789424909&tin=02508201610067®Number=0000000000090858&sum=200000 [14:11:44]StoreToDocumentArchive [14:11:44]shift 462 fd 162544 [14:11:44]save to /storage/0462/doc_00162544 [14:11:44]save last doc name /storage/0462/doc_00162544 to /storage/kkm_last_doc_name [14:11:44]save OK [14:11:44]Clear old archive folders... [14:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:11:44]tlvbuf is 006BC9E0 [14:11:44]SAM_PROTO_ClearQueue [14:11:44]wFMCommunicate request_size=4 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 09 00 00 [14:11:44]Write to MH i2c: E2 08 00 22 07 80 09 00 00 00 00 00 00 9B [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]SAM_PROTO_ClearQueue done [14:11:44]KKMCreateOFDPacket [14:11:44]OFDProtocolAddRootSTLVToBuf [14:11:44]FM_MakeSignedData [14:11:44]FM_MakeSignedData [14:11:44]SAM_PROTO_SignData [14:11:44]wFMCommunicate request_size=4 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 0D 01 02 [14:11:44]Write to MH i2c: E2 08 00 23 07 80 0D 01 02 00 00 00 00 A3 [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]wFMCommunicate request_size=255 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 D4 00 00 00 F4 03 04 00 1F 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7A 02 00 35 04 06 00 [14:11:44]Write to MH i2c: E2 02 01 24 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 D4 00 00 00 F4 03 04 00 1F 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7A 02 00 35 04 06 00 00 00 63 [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]wFMCommunicate request_size=11 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 0D 02 02 06 20 C2 F9 F6 7D 0D [14:11:44]Write to MH i2c: E2 0E 00 25 07 80 0D 02 02 06 00 20 C2 F9 F6 7D 0D 00 00 0D [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [14:11:44]RAPDU: 90 00 [14:11:44]wFMCommunicate OK [14:11:44]wFMCommunicate request_size=4 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 0D 03 02 [14:11:44]Write to MH i2c: E2 08 00 26 07 80 0D 03 02 00 00 00 00 A8 [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 0B 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 0B 00 26 07 00 D0 9C 8D 29 5F 14 31 67 90 00 D6 [14:11:44]RAPDU: D0 9C 8D 29 5F 14 31 67 90 00 [14:11:44]wFMCommunicate OK [14:11:44]SAM_PROTO_SignData done [14:11:44]FM_MakeSignedData done [14:11:44]CreateOFDProtocolMessage [14:11:44]wFMCommunicate request_size=4 [14:11:44]MH_SAM_APDU [14:11:44]CAPDU: 80 11 00 00 [14:11:44]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:44]Read from MH i2c: E2 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 17 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 08 [14:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:11:44]wFMCommunicate OK [14:11:44]CreateOFDProtocolMessage done [14:11:44]OFDSenderStorePacket 162544 [14:11:44]StoreOFDPacket docnum=162544 [14:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C9 5E 08 01 8E CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 D4 00 00 00 F4 03 04 00 1F 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7A 02 00 35 04 06 00 20 C2 F9 F6 7D 0D D0 9C 8D 29 5F 14 31 67 [14:11:44]CheckFolder [14:11:44]dirname=/storage/ofd_packets [14:11:44]CheckFolder done [14:11:44]ProducePacketName [14:11:44]name=ofd_packets/00162544 [14:11:44]NVStorageSaveData ofd_packets/00162544 [14:11:44]File name is /storage/ofd_packets/00162544 [14:11:44]Write 302 bytes [14:11:44]NVStorageSaveData done [14:11:44]OFDSenderStorePacket done [14:11:44]KKMCreateOFDPacket done [14:11:44]NVStorageSaveData kkm_last_timestamp [14:11:44]File name is /storage/kkm_last_timestamp [14:11:44]Write 4 bytes [14:11:44]NVStorageSaveData done [14:11:44]ExternCall_PrintAddStr [14:11:44]wPrintStart [14:11:44]Write to MH i2c: 01 00 00 28 07 2F [14:11:44]Write i2c OK [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: 01 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: 01 07 00 [14:11:44]MH_I2C_Read... [14:11:44]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [14:11:44]RasterBufferAndPrint [14:11:44]line Счет N : (1)1319101 [14:11:44]line ИНН: 02508201610067 [14:11:44]line Контрольно-Кассовый Чек [14:11:44]line ПРОДАЖА [14:11:44]line ТРК (МРК, ГНК) : 11 [14:11:44]line Товар: 2710194210 [14:11:44]line ДТ(л)-К-5 [14:11:44]line 27.550 * 72.60 [14:11:44]line = 2000.13 [14:11:44]line НДС 12% НСП 1% [14:11:44]line > о реализуемом товаре [14:11:44]line ОКРУГЛЕНИЕ: -0.13 [14:11:44]line ИТОГО: 2000.00 [14:11:44]line Внесено: 2000.00 [14:11:44]line СДАЧА: 0.00 [14:11:44]line НСП 1% : 17.70 [14:11:44]line НДС 12% : 212.40 [14:11:44]line Наличными: 2000.00 [14:11:44]line Безнал.: 0.00 [14:11:44]line Место: АЗС № 140 "Партнер Нефть" [14:11:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:11:44]line СНО: Общий режим [14:11:44]line Чек 212 13.07.2024 14:11 [14:11:44]line Смена: 462 ФФД: 1.0 [14:11:44]line ЗНМ: 0300000129 [14:11:44]line РНМ: 0000000000090858 [14:11:44]line Версия ККМ: 001 [14:11:44]line ФМ: 0000000000874899 [14:11:44]line ФД: 162544 [14:11:44]line ФПД: 36021789424909 [14:11:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141143&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162544&fm=36021789424909&tin=02508201610067®Number=0000000000090858&sum=200000 [14:11:44]OFD Sender: Processing packet 162544 [packets to send 106, broken 105] [14:11:44]ProducePacketName [14:11:44]name=ofd_packets/00162544 [14:11:44]OFD Sender: To server: pG, [14:11:44]CommunicateWithHost lk.salyk.kg:30040 [14:11:44]ConnectInit lk.salyk.kg [14:11:44]written 0, free lines is 4095 [14:11:45]Connected sock=10 [14:11:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C9 5E 08 01 8E CB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 D4 00 00 00 F4 03 04 00 1F 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7A 02 00 35 04 06 00 20 C2 F9 F6 7D 0D D0 9C 8D 29 5F 14 31 67 [14:11:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1E 59 47 00 16 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F0 7A 02 00 F4 03 04 00 2E 37 92 66 B6 04 01 00 00 68 78 4D A4 7B 05 4C 50 [14:11:45]CommunicateWithHost err = 0 [14:11:45]CheckOFDResponse [14:11:45]1017 (14) - 77093643461234 [14:11:45]1041 (16) - 0000000000874899 [14:11:45]1040 (4) - 162544 [14:11:45]1012 (4) - 13.07.2024 08:13 [14:11:45]1206 (1) - 0 [14:11:45]OFD Sender: Remove packet 162544 [14:11:45]ProducePacketName [14:11:45]name=ofd_packets/00162544 [14:11:45]NVStorageDeleteData [14:11:45]Write to MH i2c: 01 00 00 53 07 5A [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 DF 0C 4C [14:11:45]RasterBufferAndPrint [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]line [14:11:45]written 0, free lines is 3302 [14:11:45]MH_Cut [14:11:45]Write to MH i2c: D1 01 00 5A 07 01 33 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 01 00 [14:11:45]MH_I2C_Read... [14:11:45]Read from MH i2c: D1 01 00 5A 07 00 32 [14:11:45]Write to MH i2c: 01 00 00 5B 07 62 [14:11:45]Write i2c OK [14:11:45]MH_I2C_Read... [14:11:45]OFD Sender: No OFD packet to send [14:11:46]*** Cut start [14:11:46]*** Purtial cut [14:11:46]*** CUTSNS_PIN = 0 [14:11:46]*** Stage 1: CUTSNS_PIN = 1 [14:11:48]Read from MH i2c: 01 [14:11:48]MH_I2C_Read... [14:11:48]*** Stop cut motor [14:11:48]*** Cut end [14:11:48]Read from MH i2c: 01 07 00 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: 01 07 00 5B 07 00 00 00 00 00 FF 0F 77 [14:11:48]process_action close_receipt done [14:11:48]requested_data is exist [14:11:48]produce_requested_data [14:11:48]requested_item fm.sn is exist - process it [14:11:48]wFMCommunicate request_size=4 [14:11:48]MH_SAM_APDU [14:11:48]CAPDU: 80 11 00 00 [14:11:48]Write to MH i2c: E2 08 00 5C 07 80 11 00 00 00 00 00 00 DD [14:11:48]Write i2c OK [14:11:48]MH_I2C_Read... [14:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:48]Read from MH i2c: E2 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: E2 17 00 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: E2 17 00 5C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3D [14:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:11:48]wFMCommunicate OK [14:11:48]requested_item fd.num is exist - process it [14:11:48]SAM_PROTO_GetFieldsCounters [14:11:48]wFMCommunicate request_size=4 [14:11:48]MH_SAM_APDU [14:11:48]CAPDU: 80 13 00 00 [14:11:48]Write to MH i2c: E2 08 00 5D 07 80 13 00 00 00 00 00 00 E0 [14:11:48]Write i2c OK [14:11:48]MH_I2C_Read... [14:11:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:48]Read from MH i2c: E2 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: E2 62 00 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: E2 62 00 5D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [14:11:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F0 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:48]wFMCommunicate OK [14:11:48]SAM_PROTO_GetFieldsCounters done [14:11:48]requested_item shift.num is exist - process it [14:11:48]requested_item shift.opened is exist - process it [14:11:48]req_shift_opened [14:11:48]FM_GetShiftState [14:11:48]SAM_PROTO_GetShiftState [14:11:48]wFMCommunicate request_size=4 [14:11:48]MH_SAM_APDU [14:11:48]CAPDU: 80 13 01 00 [14:11:48]Write to MH i2c: E2 08 00 5E 07 80 13 01 00 00 00 00 00 E2 [14:11:48]Write i2c OK [14:11:48]MH_I2C_Read... [14:11:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:48]Read from MH i2c: E2 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: E2 0E 00 [14:11:48]MH_I2C_Read... [14:11:48]Read from MH i2c: E2 0E 00 5E 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DC [14:11:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:11:48]wFMCommunicate OK [14:11:48]SAM_PROTO_GetShiftState done [14:11:48]FM_GetShiftState done [14:11:48]req_shift_opened done [14:11:48]requested_item shift.open_date is exist - process it [14:11:48]req_shift_open_date [14:11:48]req_shift_open_date done [14:11:48]produce_requested_data done [14:11:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162544,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:11:48]process_action_free close_receipt [14:11:48]json_value_free [14:11:48]json_value_free done [14:11:48]process_json_proto returns [14:11:48]Send response to host [14:11:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162544,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:11:48]free response buf [14:11:48]execute_script done [14:11:48]execute_script returns [14:11:48]free content buf [14:11:48]Sock 7.Close socket [14:11:48]Sock 7.Thread stoped [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:38]accept exits with 9 [14:12:38]New connection [14:12:38]New thread 3067366756 created [14:12:38]Thread 3067510116 joined [14:12:38]Waiting for new connection... [14:12:38] Sock 9.Parse request [14:12:38]Sock 9.Check first char [14:12:38]Sock 9.First char is OK [14:12:38]request: POST /json_proto HTTP/1.0 [14:12:38]Method: POST [14:12:38]URL: /json_proto [14:12:38]Method is POST - this is cgi request [14:12:38]url: /json_proto [14:12:38]query_string will be loaded in cgi processing [14:12:38]execute_cgi json_proto POST (null) [14:12:38]execute_cgi path=json_proto method=POST [14:12:38]POST find Content-Length [14:12:38]Host: 172.17.39.67:8080 [14:12:38]Content-Length: 678 [14:12:38]Content-Type: application/json [14:12:38] [14:12:38]POST finish read [14:12:38]Found Content-Length = 678 [14:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:38]execute_script... [14:12: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)1319100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:38]POST & json_proto [14:12:38]process_json_proto [14:12:38]json parsed OK: [14:12:38]protocol is kg_v1.0 [14:12:38]action value=close_receipt [14:12:38]process_action close_receipt [14:12:38]cmd_close_receipt [14:12:38]MH_GetDate [14:12:38]Write to MH i2c: F0 00 00 5F 07 55 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: F0 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: F0 09 00 [14:12:38]MH_I2C_Read... [14:12:38]Read from MH i2c: F0 09 00 5F 07 00 57 8B 92 66 86 7C 92 66 32 [14:12:38]GetLastDocTimeStamp 1720879903 [14:12:38]current date 1720879959 [14:12:38]FM_GetShiftState [14:12:38]SAM_PROTO_GetShiftState [14:12:38]wFMCommunicate request_size=4 [14:12:38]MH_SAM_APDU [14:12:38]CAPDU: 80 13 01 00 [14:12:38]Write to MH i2c: E2 08 00 60 07 80 13 01 00 00 00 00 00 E4 [14:12:38]Write i2c OK [14:12:38]MH_I2C_Read... [14:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:39]Read from MH i2c: E2 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 0E 00 [14:12:39]MH_I2C_Read... [14:12:39]Read from MH i2c: E2 0E 00 60 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DE [14:12:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:12:39]wFMCommunicate OK [14:12:39]SAM_PROTO_GetShiftState done [14:12:39]FM_GetShiftState done [14:12:39]opened in 1720828979 [14:12:39]opened+sec_in_day 1720915379 [14:12:39]quantity*price = 50056 [14:12:39]sum+1 = 50058 [14:12:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 213 13.07.2024 14:12 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162545 ФПД: 256801292091939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141239&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162545&fm=256801292091939&tin=02508201610067®Number=0000000000090858&sum=50000 [14:12:40]StoreToDocumentArchive [14:12:40]shift 462 fd 162545 [14:12:40]save to /storage/0462/doc_00162545 [14:12:40]save last doc name /storage/0462/doc_00162545 to /storage/kkm_last_doc_name [14:12:40]save OK [14:12:40]Clear old archive folders... [14:12:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:40]tlvbuf is B6FDD010 [14:12:40]SAM_PROTO_ClearQueue [14:12:40]wFMCommunicate request_size=4 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 09 00 00 [14:12:40]Write to MH i2c: E2 08 00 6D 07 80 09 00 00 00 00 00 00 E6 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 03 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [14:12:40]RAPDU: 90 00 [14:12:40]wFMCommunicate OK [14:12:40]SAM_PROTO_ClearQueue done [14:12:40]KKMCreateOFDPacket [14:12:40]OFDProtocolAddRootSTLVToBuf [14:12:40]FM_MakeSignedData [14:12:40]FM_MakeSignedData [14:12:40]SAM_PROTO_SignData [14:12:40]wFMCommunicate request_size=4 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 0D 01 02 [14:12:40]Write to MH i2c: E2 08 00 6E 07 80 0D 01 02 00 00 00 00 EE [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:40]Read from MH i2c: E2 03 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [14:12:40]RAPDU: 90 00 [14:12:40]wFMCommunicate OK [14:12:40]wFMCommunicate request_size=255 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 57 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7A 02 00 35 04 06 00 E9 [14:12:40]Write to MH i2c: E2 02 01 6F 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 57 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7A 02 00 35 04 06 00 E9 00 00 7E [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 03 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [14:12:40]RAPDU: 90 00 [14:12:40]wFMCommunicate OK [14:12:40]wFMCommunicate request_size=10 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 0D 02 02 05 8F 35 CB 02 23 [14:12:40]Write to MH i2c: E2 0D 00 70 07 80 0D 02 02 05 00 8F 35 CB 02 23 00 00 AF [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 03 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 03 00 70 07 00 90 00 EB [14:12:40]RAPDU: 90 00 [14:12:40]wFMCommunicate OK [14:12:40]wFMCommunicate request_size=4 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 0D 03 02 [14:12:40]Write to MH i2c: E2 08 00 71 07 80 0D 03 02 00 00 00 00 F3 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 0B 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 0B 00 71 07 00 DD FA B5 B5 46 4C C6 7A 90 00 07 [14:12:40]RAPDU: DD FA B5 B5 46 4C C6 7A 90 00 [14:12:40]wFMCommunicate OK [14:12:40]SAM_PROTO_SignData done [14:12:40]FM_MakeSignedData done [14:12:40]CreateOFDProtocolMessage [14:12:40]wFMCommunicate request_size=4 [14:12:40]MH_SAM_APDU [14:12:40]CAPDU: 80 11 00 00 [14:12:40]Write to MH i2c: E2 08 00 72 07 80 11 00 00 00 00 00 00 F3 [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:40]Read from MH i2c: E2 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 17 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: E2 17 00 72 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 53 [14:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:12:40]wFMCommunicate OK [14:12:40]CreateOFDProtocolMessage done [14:12:40]OFDSenderStorePacket 162545 [14:12:40]StoreOFDPacket docnum=162545 [14:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 76 E5 07 01 FB 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 57 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7A 02 00 35 04 06 00 E9 8F 35 CB 02 23 DD FA B5 B5 46 4C C6 7A [14:12:40]CheckFolder [14:12:40]dirname=/storage/ofd_packets [14:12:40]CheckFolder done [14:12:40]ProducePacketName [14:12:40]name=ofd_packets/00162545 [14:12:40]NVStorageSaveData ofd_packets/00162545 [14:12:40]File name is /storage/ofd_packets/00162545 [14:12:40]Write 301 bytes [14:12:40]NVStorageSaveData done [14:12:40]OFDSenderStorePacket done [14:12:40]KKMCreateOFDPacket done [14:12:40]NVStorageSaveData kkm_last_timestamp [14:12:40]File name is /storage/kkm_last_timestamp [14:12:40]Write 4 bytes [14:12:40]NVStorageSaveData done [14:12:40]ExternCall_PrintAddStr [14:12:40]wPrintStart [14:12:40]Write to MH i2c: 01 00 00 73 07 7A [14:12:40]Write i2c OK [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: 01 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: 01 07 00 [14:12:40]MH_I2C_Read... [14:12:40]Read from MH i2c: 01 07 00 73 07 00 00 00 00 00 FF 0F 8F [14:12:40]RasterBufferAndPrint [14:12:40]line Счет N : (1)1319100 [14:12:40]line ИНН: 02508201610067 [14:12:40]line Контрольно-Кассовый Чек [14:12:40]line ПРОДАЖА [14:12:40]line ТРК (МРК, ГНК) : 33 [14:12:40]line Товар: 2710124130 [14:12:40]line Аи-92-К-5 [14:12:40]line 7.550 * 66.30 [14:12:40]line = 500.57 [14:12:40]line НДС 12% НСП 1% [14:12:40]line > о реализуемом товаре [14:12:40]line ОКРУГЛЕНИЕ: -0.57 [14:12:40]line ИТОГО: 500.00 [14:12:40]line Внесено: 500.00 [14:12:40]line СДАЧА: 0.00 [14:12:40]line НСП 1% : 4.43 [14:12:40]line НДС 12% : 53.16 [14:12:40]line Наличными: 500.00 [14:12:40]line Безнал.: 0.00 [14:12:40]line Место: АЗС № 140 "Партнер Нефть" [14:12:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:12:40]line СНО: Общий режим [14:12:40]line Чек 213 13.07.2024 14:12 [14:12:40]line Смена: 462 ФФД: 1.0 [14:12:40]line ЗНМ: 0300000129 [14:12:40]line РНМ: 0000000000090858 [14:12:40]line Версия ККМ: 001 [14:12:40]line ФМ: 0000000000874899 [14:12:40]line ФД: 162545 [14:12:40]line ФПД: 256801292091939 [14:12:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141239&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162545&fm=256801292091939&tin=02508201610067®Number=0000000000090858&sum=50000 [14:12:41]OFD Sender: Processing packet 162545 [packets to send 106, broken 105] [14:12:41]ProducePacketName [14:12:41]name=ofd_packets/00162545 [14:12:41]OFD Sender: To server: pG, [14:12:41]CommunicateWithHost lk.salyk.kg:30040 [14:12:41]ConnectInit lk.salyk.kg [14:12:41]written 0, free lines is 4095 [14:12:41]Connected sock=10 [14:12:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 76 E5 07 01 FB 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 57 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7A 02 00 35 04 06 00 E9 8F 35 CB 02 23 DD FA B5 B5 46 4C C6 7A [14:12:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0B C7 47 00 96 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F1 7A 02 00 F4 03 04 00 66 37 92 66 B6 04 01 00 00 A8 9D 66 AC 52 FC 97 66 [14:12:41]CommunicateWithHost err = 0 [14:12:41]CheckOFDResponse [14:12:41]1017 (14) - 77093643461234 [14:12:41]1041 (16) - 0000000000874899 [14:12:41]1040 (4) - 162545 [14:12:41]1012 (4) - 13.07.2024 08:14 [14:12:41]1206 (1) - 0 [14:12:41]OFD Sender: Remove packet 162545 [14:12:41]ProducePacketName [14:12:41]name=ofd_packets/00162545 [14:12:41]NVStorageDeleteData [14:12:41]Write to MH i2c: 01 00 00 9E 07 A5 [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: 01 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: 01 07 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 E4 0C 9C [14:12:41]RasterBufferAndPrint [14:12:41]line [14:12:41]line [14:12:41]line [14:12:41]line [14:12:41]line [14:12:41]written 0, free lines is 3306 [14:12:41]MH_Cut [14:12:41]Write to MH i2c: D1 01 00 A5 07 01 7E [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: D1 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: D1 01 00 [14:12:41]MH_I2C_Read... [14:12:41]Read from MH i2c: D1 01 00 A5 07 00 7D [14:12:41]Write to MH i2c: 01 00 00 A6 07 AD [14:12:41]Write i2c OK [14:12:41]MH_I2C_Read... [14:12:41]OFD Sender: No OFD packet to send [14:12:42]*** Cut start [14:12:42]*** Purtial cut [14:12:42]*** Stage 1: CUTSNS_PIN = 1 [14:12:42]Read from MH i2c: 01 [14:12:42]MH_I2C_Read... [14:12:42]*** Stop cut motor [14:12:42]*** Cut end [14:12:42]Read from MH i2c: 01 07 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: 01 07 00 A6 07 00 00 00 00 00 FF 0F C2 [14:12:42]process_action close_receipt done [14:12:42]requested_data is exist [14:12:42]produce_requested_data [14:12:42]requested_item fm.sn is exist - process it [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 11 00 00 [14:12:42]Write to MH i2c: E2 08 00 A7 07 80 11 00 00 00 00 00 00 28 [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 17 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 17 00 A7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 88 [14:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:12:42]wFMCommunicate OK [14:12:42]requested_item fd.num is exist - process it [14:12:42]SAM_PROTO_GetFieldsCounters [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 13 00 00 [14:12:42]Write to MH i2c: E2 08 00 A8 07 80 13 00 00 00 00 00 00 2B [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 62 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 62 00 A8 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [14:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F1 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:12:42]wFMCommunicate OK [14:12:42]SAM_PROTO_GetFieldsCounters done [14:12:42]requested_item shift.num is exist - process it [14:12:42]requested_item shift.opened is exist - process it [14:12:42]req_shift_opened [14:12:42]FM_GetShiftState [14:12:42]SAM_PROTO_GetShiftState [14:12:42]wFMCommunicate request_size=4 [14:12:42]MH_SAM_APDU [14:12:42]CAPDU: 80 13 01 00 [14:12:42]Write to MH i2c: E2 08 00 A9 07 80 13 01 00 00 00 00 00 2D [14:12:42]Write i2c OK [14:12:42]MH_I2C_Read... [14:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:42]Read from MH i2c: E2 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 0E 00 [14:12:42]MH_I2C_Read... [14:12:42]Read from MH i2c: E2 0E 00 A9 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 27 [14:12:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:12:42]wFMCommunicate OK [14:12:42]SAM_PROTO_GetShiftState done [14:12:42]FM_GetShiftState done [14:12:42]req_shift_opened done [14:12:42]requested_item shift.open_date is exist - process it [14:12:42]req_shift_open_date [14:12:42]req_shift_open_date done [14:12:42]produce_requested_data done [14:12:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162545,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:12:42]process_action_free close_receipt [14:12:42]json_value_free [14:12:42]json_value_free done [14:12:42]process_json_proto returns [14:12:42]Send response to host [14:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162545,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:12:42]free response buf [14:12:42]execute_script done [14:12:42]execute_script returns [14:12:42]free content buf [14:12:42]Sock 9.Close socket [14:12:42]Sock 9.Thread stoped [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:54]accept exits with 7 [14:13:54]New connection [14:13:54]New thread 3067510116 created [14:13:54]Thread 3067366756 joined [14:13:54]Waiting for new connection... [14:13:54] Sock 7.Parse request [14:13:54]Sock 7.Check first char [14:13:54]Sock 7.First char is OK [14:13:54]request: POST /json_proto HTTP/1.0 [14:13:54]Method: POST [14:13:54]URL: /json_proto [14:13:54]Method is POST - this is cgi request [14:13:54]url: /json_proto [14:13:54]query_string will be loaded in cgi processing [14:13:54]execute_cgi json_proto POST (null) [14:13:54]execute_cgi path=json_proto method=POST [14:13:54]POST find Content-Length [14:13:54]Host: 172.17.39.67:8080 [14:13:54]Content-Length: 810 [14:13:54]Content-Type: application/json [14:13:54] [14:13:54]POST finish read [14:13:54]Found Content-Length = 810 [14:13:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 137.600, "sum" : 9989.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9989.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:54]execute_script... [14:13: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)1319099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 137.600, "sum" : 9989.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9989.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:54]POST & json_proto [14:13:54]process_json_proto [14:13:54]json parsed OK: [14:13:54]protocol is kg_v1.0 [14:13:54]action value=close_receipt [14:13:54]process_action close_receipt [14:13:54]cmd_close_receipt [14:13:54]MH_GetDate [14:13:54]Write to MH i2c: F0 00 00 AA 07 A0 [14:13:54]Write i2c OK [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: F0 [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: F0 09 00 [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: F0 09 00 AA 07 00 A2 8B 92 66 86 7C 92 66 C8 [14:13:54]GetLastDocTimeStamp 1720879959 [14:13:54]current date 1720880034 [14:13:54]FM_GetShiftState [14:13:54]SAM_PROTO_GetShiftState [14:13:54]wFMCommunicate request_size=4 [14:13:54]MH_SAM_APDU [14:13:54]CAPDU: 80 13 01 00 [14:13:54]Write to MH i2c: E2 08 00 AB 07 80 13 01 00 00 00 00 00 2F [14:13:54]Write i2c OK [14:13:54]MH_I2C_Read... [14:13:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:54]Read from MH i2c: E2 [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: E2 0E 00 [14:13:54]MH_I2C_Read... [14:13:54]Read from MH i2c: E2 0E 00 AB 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 29 [14:13:54]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:13:54]wFMCommunicate OK [14:13:54]SAM_PROTO_GetShiftState done [14:13:54]FM_GetShiftState done [14:13:54]opened in 1720828979 [14:13:54]opened+sec_in_day 1720915379 [14:13:54]quantity*price = 998976 [14:13:54]sum+1 = 998977 [14:13:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9989.76 НСП 1% : 88.40 НДС 12% : 1060.86 Наличными: 0.00 Безнал.: 9989.76 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 214 13.07.2024 14:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162546 ФПД: 265908429837331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141354&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162546&fm=265908429837331&tin=02508201610067®Number=0000000000090858&sum=998976 [14:13:55]StoreToDocumentArchive [14:13:55]shift 462 fd 162546 [14:13:55]save to /storage/0462/doc_00162546 [14:13:55]save last doc name /storage/0462/doc_00162546 to /storage/kkm_last_doc_name [14:13:55]save OK [14:13:55]Clear old archive folders... [14:13:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:13:55]tlvbuf is 005D1B50 [14:13:55]SAM_PROTO_ClearQueue [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 09 00 00 [14:13:55]Write to MH i2c: E2 08 00 B8 07 80 09 00 00 00 00 00 00 31 [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 03 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 03 00 B8 07 00 90 00 33 [14:13:55]RAPDU: 90 00 [14:13:55]wFMCommunicate OK [14:13:55]SAM_PROTO_ClearQueue done [14:13:55]KKMCreateOFDPacket [14:13:55]OFDProtocolAddRootSTLVToBuf [14:13:55]FM_MakeSignedData [14:13:55]FM_MakeSignedData [14:13:55]SAM_PROTO_SignData [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 0D 01 02 [14:13:55]Write to MH i2c: E2 08 00 B9 07 80 0D 01 02 00 00 00 00 39 [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 03 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 03 00 B9 07 00 90 00 34 [14:13:55]RAPDU: 90 00 [14:13:55]wFMCommunicate OK [14:13:55]wFMCommunicate request_size=255 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 19 02 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 40 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 A2 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7A 02 00 35 04 06 00 [14:13:55]Write to MH i2c: E2 02 01 BA 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 19 02 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 40 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 A2 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7A 02 00 35 04 06 00 00 00 31 [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 03 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 03 00 BA 07 00 90 00 35 [14:13:55]RAPDU: 90 00 [14:13:55]wFMCommunicate OK [14:13:55]wFMCommunicate request_size=11 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 0D 02 02 06 F1 D7 A1 80 D4 13 [14:13:55]Write to MH i2c: E2 0E 00 BB 07 80 0D 02 02 06 00 F1 D7 A1 80 D4 13 00 00 18 [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 03 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 03 00 BB 07 00 90 00 36 [14:13:55]RAPDU: 90 00 [14:13:55]wFMCommunicate OK [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 0D 03 02 [14:13:55]Write to MH i2c: E2 08 00 BC 07 80 0D 03 02 00 00 00 00 3E [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 0B 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 0B 00 BC 07 00 49 28 3C 3B B9 2A C3 B1 90 00 7E [14:13:55]RAPDU: 49 28 3C 3B B9 2A C3 B1 90 00 [14:13:55]wFMCommunicate OK [14:13:55]SAM_PROTO_SignData done [14:13:55]FM_MakeSignedData done [14:13:55]CreateOFDProtocolMessage [14:13:55]wFMCommunicate request_size=4 [14:13:55]MH_SAM_APDU [14:13:55]CAPDU: 80 11 00 00 [14:13:55]Write to MH i2c: E2 08 00 BD 07 80 11 00 00 00 00 00 00 3E [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:55]Read from MH i2c: E2 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 17 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: E2 17 00 BD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9E [14:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:13:55]wFMCommunicate OK [14:13:55]CreateOFDProtocolMessage done [14:13:55]OFDSenderStorePacket 162546 [14:13:55]StoreOFDPacket docnum=162546 [14:13:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 10 03 08 01 C2 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 19 02 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 40 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 A2 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7A 02 00 35 04 06 00 F1 D7 A1 80 D4 13 49 28 3C 3B B9 2A C3 B1 [14:13:55]CheckFolder [14:13:55]dirname=/storage/ofd_packets [14:13:55]CheckFolder done [14:13:55]ProducePacketName [14:13:55]name=ofd_packets/00162546 [14:13:55]NVStorageSaveData ofd_packets/00162546 [14:13:55]File name is /storage/ofd_packets/00162546 [14:13:55]Write 302 bytes [14:13:55]NVStorageSaveData done [14:13:55]OFDSenderStorePacket done [14:13:55]KKMCreateOFDPacket done [14:13:55]NVStorageSaveData kkm_last_timestamp [14:13:55]File name is /storage/kkm_last_timestamp [14:13:55]Write 4 bytes [14:13:55]NVStorageSaveData done [14:13:55]ExternCall_PrintAddStr [14:13:55]wPrintStart [14:13:55]Write to MH i2c: 01 00 00 BE 07 C5 [14:13:55]Write i2c OK [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: 01 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: 01 07 00 [14:13:55]MH_I2C_Read... [14:13:55]Read from MH i2c: 01 07 00 BE 07 00 00 00 00 00 FF 0F DA [14:13:55]RasterBufferAndPrint [14:13:55]line Счет N : (1)1319099 [14:13:55]line ИНН: 02508201610067 [14:13:55]line Контрольно-Кассовый Чек [14:13:55]line ПРОДАЖА [14:13:55]line ТРК (МРК, ГНК) : 61 [14:13:55]line Товар: 2710194210 [14:13:55]line ДТ(л)-К-5 [14:13:55]line 137.600 * 72.60 [14:13:55]line = 9989.76 [14:13:55]line НДС 12% НСП 1% [14:13:55]line > о реализуемом товаре [14:13:55]line ИТОГО: 9989.76 [14:13:55]line НСП 1% : 88.40 [14:13:55]line НДС 12% : 1060.86 [14:13:55]line Наличными: 0.00 [14:13:55]line Безнал.: 9989.76 [14:13:55]line Место: АЗС № 140 "Партнер Нефть" [14:13:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:13:55]line СНО: Общий режим [14:13:55]line Чек 214 13.07.2024 14:13 [14:13:55]line Смена: 462 ФФД: 1.0 [14:13:55]line ЗНМ: 0300000129 [14:13:55]line РНМ: 0000000000090858 [14:13:55]line Версия ККМ: 001 [14:13:55]line Платежная система: O! деньги [14:13:55]line ФМ: 0000000000874899 [14:13:55]line ФД: 162546 [14:13:55]line ФПД: 265908429837331 [14:13:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T141354&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162546&fm=265908429837331&tin=02508201610067®Number=0000000000090858&sum=998976 [14:13:56]written 0, free lines is 4095 [14:13:56]OFD Sender: Processing packet 162546 [packets to send 106, broken 105] [14:13:56]ProducePacketName [14:13:56]name=ofd_packets/00162546 [14:13:56]OFD Sender: To server: pG, [14:13:56]CommunicateWithHost lk.salyk.kg:30040 [14:13:56]ConnectInit lk.salyk.kg [14:13:56]Connected sock=10 [14:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 10 03 08 01 C2 6F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 19 02 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 40 3E 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 3E 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 9E 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 3E 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 A2 8B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7A 02 00 35 04 06 00 F1 D7 A1 80 D4 13 49 28 3C 3B B9 2A C3 B1 [14:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CB E3 47 00 EA 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F2 7A 02 00 F4 03 04 00 B1 37 92 66 B6 04 01 00 00 A3 F4 BA E8 68 CE B9 E3 [14:13:56]CommunicateWithHost err = 0 [14:13:56]CheckOFDResponse [14:13:56]1017 (14) - 77093643461234 [14:13:56]1041 (16) - 0000000000874899 [14:13:56]1040 (4) - 162546 [14:13:56]1012 (4) - 13.07.2024 08:15 [14:13:56]1206 (1) - 0 [14:13:56]OFD Sender: Remove packet 162546 [14:13:56]ProducePacketName [14:13:56]name=ofd_packets/00162546 [14:13:56]NVStorageDeleteData [14:13:56]Write to MH i2c: 01 00 00 E8 07 EF [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: 01 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: 01 07 00 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: 01 07 00 E8 07 00 00 00 00 00 08 0D 0B [14:13:56]RasterBufferAndPrint [14:13:56]line [14:13:56]line [14:13:56]line [14:13:56]line [14:13:56]line [14:13:56]written 0, free lines is 3342 [14:13:56]MH_Cut [14:13:56]Write to MH i2c: D1 01 00 EF 07 01 C8 [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: D1 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: D1 01 00 [14:13:56]MH_I2C_Read... [14:13:56]Read from MH i2c: D1 01 00 EF 07 00 C7 [14:13:56]Write to MH i2c: 01 00 00 F0 07 F7 [14:13:56]Write i2c OK [14:13:56]MH_I2C_Read... [14:13:57]OFD Sender: No OFD packet to send [14:13:57]*** Cut start [14:13:57]*** Purtial cut [14:13:57]*** CUTSNS_PIN = 0 [14:13:57]*** Stage 1: CUTSNS_PIN = 1 [14:13:59]Read from MH i2c: 01 [14:13:59]MH_I2C_Read... [14:13:59]*** Stop cut motor [14:13:59]*** Cut end [14:13:59]Read from MH i2c: 01 07 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: 01 07 00 F0 07 00 00 00 00 00 FF 0F 0C [14:13:59]process_action close_receipt done [14:13:59]requested_data is exist [14:13:59]produce_requested_data [14:13:59]requested_item fm.sn is exist - process it [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 11 00 00 [14:13:59]Write to MH i2c: E2 08 00 F1 07 80 11 00 00 00 00 00 00 72 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 17 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 17 00 F1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D2 [14:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:13:59]wFMCommunicate OK [14:13:59]requested_item fd.num is exist - process it [14:13:59]SAM_PROTO_GetFieldsCounters [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 13 00 00 [14:13:59]Write to MH i2c: E2 08 00 F2 07 80 13 00 00 00 00 00 00 75 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 62 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 62 00 F2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [14:13:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F2 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:59]wFMCommunicate OK [14:13:59]SAM_PROTO_GetFieldsCounters done [14:13:59]requested_item shift.num is exist - process it [14:13:59]requested_item shift.opened is exist - process it [14:13:59]req_shift_opened [14:13:59]FM_GetShiftState [14:13:59]SAM_PROTO_GetShiftState [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 13 01 00 [14:13:59]Write to MH i2c: E2 08 00 F3 07 80 13 01 00 00 00 00 00 77 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 0E 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 0E 00 F3 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 71 [14:13:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:13:59]wFMCommunicate OK [14:13:59]SAM_PROTO_GetShiftState done [14:13:59]FM_GetShiftState done [14:13:59]req_shift_opened done [14:13:59]requested_item shift.open_date is exist - process it [14:13:59]req_shift_open_date [14:13:59]req_shift_open_date done [14:13:59]produce_requested_data done [14:13:59]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162546,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:13:59]process_action_free close_receipt [14:13:59]json_value_free [14:13:59]json_value_free done [14:13:59]process_json_proto returns [14:13:59]Send response to host [14:13:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162546,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:13:59]free response buf [14:13:59]execute_script done [14:13:59]execute_script returns [14:13:59]free content buf [14:13:59]Sock 7.Close socket [14:13:59]Sock 7.Thread stoped [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:39]accept exits with 9 [14:23:39]New connection [14:23:39]New thread 3067366756 created [14:23:39]Thread 3067510116 joined [14:23:39]Waiting for new connection... [14:23:39] Sock 9.Parse request [14:23:39]Sock 9.Check first char [14:23:39]Sock 9.First char is OK [14:23:39]request: POST /json_proto HTTP/1.0 [14:23:39]Method: POST [14:23:39]URL: /json_proto [14:23:39]Method is POST - this is cgi request [14:23:39]url: /json_proto [14:23:39]query_string will be loaded in cgi processing [14:23:39]execute_cgi json_proto POST (null) [14:23:39]execute_cgi path=json_proto method=POST [14:23:39]POST find Content-Length [14:23:39]Host: 172.17.39.67:8080 [14:23:39]Content-Length: 678 [14:23:39]Content-Type: application/json [14:23:39] [14:23:39]POST finish read [14:23:39]Found Content-Length = 678 [14:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 1.510, "sum" : 100.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:39]execute_script... [14:23: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)1319102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 1.510, "sum" : 100.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:39]POST & json_proto [14:23:39]process_json_proto [14:23:39]json parsed OK: [14:23:39]protocol is kg_v1.0 [14:23:39]action value=close_receipt [14:23:39]process_action close_receipt [14:23:39]cmd_close_receipt [14:23:39]MH_GetDate [14:23:39]Write to MH i2c: F0 00 00 F4 07 EA [14:23:39]Write i2c OK [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 09 00 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: F0 09 00 F4 07 00 EC 8D 92 66 86 7C 92 66 5E [14:23:39]GetLastDocTimeStamp 1720880034 [14:23:39]current date 1720880620 [14:23:39]FM_GetShiftState [14:23:39]SAM_PROTO_GetShiftState [14:23:39]wFMCommunicate request_size=4 [14:23:39]MH_SAM_APDU [14:23:39]CAPDU: 80 13 01 00 [14:23:39]Write to MH i2c: E2 08 00 F5 07 80 13 01 00 00 00 00 00 79 [14:23:39]Write i2c OK [14:23:39]MH_I2C_Read... [14:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:39]Read from MH i2c: E2 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: E2 0E 00 [14:23:39]MH_I2C_Read... [14:23:39]Read from MH i2c: E2 0E 00 F5 07 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 73 [14:23:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:23:39]wFMCommunicate OK [14:23:39]SAM_PROTO_GetShiftState done [14:23:39]FM_GetShiftState done [14:23:39]opened in 1720828979 [14:23:39]opened+sec_in_day 1720915379 [14:23:39]quantity*price = 10011 [14:23:39]sum+1 = 10012 [14:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.63 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 215 13.07.2024 14:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162547 ФПД: 180691154785953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142340&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162547&fm=180691154785953&tin=02508201610067®Number=0000000000090858&sum=10000 [14:23:40]StoreToDocumentArchive [14:23:40]shift 462 fd 162547 [14:23:40]save to /storage/0462/doc_00162547 [14:23:40]save last doc name /storage/0462/doc_00162547 to /storage/kkm_last_doc_name [14:23:40]save OK [14:23:40]Clear old archive folders... [14:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:40]tlvbuf is 005D4E10 [14:23:40]SAM_PROTO_ClearQueue [14:23:40]wFMCommunicate request_size=4 [14:23:40]MH_SAM_APDU [14:23:40]CAPDU: 80 09 00 00 [14:23:40]Write to MH i2c: E2 08 00 02 08 80 09 00 00 00 00 00 00 7C [14:23:40]Write i2c OK [14:23:40]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]SAM_PROTO_ClearQueue done [14:23:41]KKMCreateOFDPacket [14:23:41]OFDProtocolAddRootSTLVToBuf [14:23:41]FM_MakeSignedData [14:23:41]FM_MakeSignedData [14:23:41]SAM_PROTO_SignData [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 0D 01 02 [14:23:41]Write to MH i2c: E2 08 00 03 08 80 0D 01 02 00 00 00 00 84 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 03 08 00 90 00 7F [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]wFMCommunicate request_size=255 [14:23:41]MH_SAM_APDU [14: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 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 1B 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EC 8D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7A 02 00 35 04 06 00 A4 [14:23:41]Write to MH i2c: E2 02 01 04 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 1B 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EC 8D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7A 02 00 35 04 06 00 A4 00 00 E8 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 04 08 00 90 00 80 [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]wFMCommunicate request_size=10 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 0D 02 02 05 56 70 18 56 A1 [14:23:41]Write to MH i2c: E2 0D 00 05 08 80 0D 02 02 05 00 56 70 18 56 A1 00 00 66 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 03 00 05 08 00 90 00 81 [14:23:41]RAPDU: 90 00 [14:23:41]wFMCommunicate OK [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 0D 03 02 [14:23:41]Write to MH i2c: E2 08 00 06 08 80 0D 03 02 00 00 00 00 89 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 0B 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 0B 00 06 08 00 7D 1A FC F5 CD 3D FA 55 90 00 6B [14:23:41]RAPDU: 7D 1A FC F5 CD 3D FA 55 90 00 [14:23:41]wFMCommunicate OK [14:23:41]SAM_PROTO_SignData done [14:23:41]FM_MakeSignedData done [14:23:41]CreateOFDProtocolMessage [14:23:41]wFMCommunicate request_size=4 [14:23:41]MH_SAM_APDU [14:23:41]CAPDU: 80 11 00 00 [14:23:41]Write to MH i2c: E2 08 00 07 08 80 11 00 00 00 00 00 00 89 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:41]Read from MH i2c: E2 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 17 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: E2 17 00 07 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E9 [14:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:23:41]wFMCommunicate OK [14:23:41]CreateOFDProtocolMessage done [14:23:41]OFDSenderStorePacket 162547 [14:23:41]StoreOFDPacket docnum=162547 [14:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 63 CF 07 01 09 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 1B 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EC 8D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7A 02 00 35 04 06 00 A4 56 70 18 56 A1 7D 1A FC F5 CD 3D FA 55 [14:23:41]CheckFolder [14:23:41]dirname=/storage/ofd_packets [14:23:41]CheckFolder done [14:23:41]ProducePacketName [14:23:41]name=ofd_packets/00162547 [14:23:41]NVStorageSaveData ofd_packets/00162547 [14:23:41]File name is /storage/ofd_packets/00162547 [14:23:41]Write 301 bytes [14:23:41]NVStorageSaveData done [14:23:41]OFDSenderStorePacket done [14:23:41]KKMCreateOFDPacket done [14:23:41]NVStorageSaveData kkm_last_timestamp [14:23:41]File name is /storage/kkm_last_timestamp [14:23:41]Write 4 bytes [14:23:41]NVStorageSaveData done [14:23:41]ExternCall_PrintAddStr [14:23:41]wPrintStart [14:23:41]Write to MH i2c: 01 00 00 08 08 10 [14:23:41]Write i2c OK [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 07 00 [14:23:41]MH_I2C_Read... [14:23:41]Read from MH i2c: 01 07 00 08 08 00 00 00 00 00 FF 0F 25 [14:23:41]RasterBufferAndPrint [14:23:41]line Счет N : (1)1319102 [14:23:41]line ИНН: 02508201610067 [14:23:41]line Контрольно-Кассовый Чек [14:23:41]line ПРОДАЖА [14:23:41]line ТРК (МРК, ГНК) : 43 [14:23:41]line Товар: 2710124130 [14:23:41]line Аи-92-К-5 [14:23:41]line 1.510 * 66.30 [14:23:41]line = 100.11 [14:23:41]line НДС 12% НСП 1% [14:23:41]line > о реализуемом товаре [14:23:41]line ОКРУГЛЕНИЕ: -0.11 [14:23:41]line ИТОГО: 100.00 [14:23:41]line Внесено: 100.00 [14:23:41]line СДАЧА: 0.00 [14:23:41]line НСП 1% : 0.89 [14:23:41]line НДС 12% : 10.63 [14:23:41]line Наличными: 100.00 [14:23:41]line Безнал.: 0.00 [14:23:41]line Место: АЗС № 140 "Партнер Нефть" [14:23:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:23:41]line СНО: Общий режим [14:23:41]line Чек 215 13.07.2024 14:23 [14:23:41]line Смена: 462 ФФД: 1.0 [14:23:41]line ЗНМ: 0300000129 [14:23:41]line РНМ: 0000000000090858 [14:23:41]line Версия ККМ: 001 [14:23:41]line ФМ: 0000000000874899 [14:23:41]line ФД: 162547 [14:23:41]line ФПД: 180691154785953 [14:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142340&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162547&fm=180691154785953&tin=02508201610067®Number=0000000000090858&sum=10000 [14:23:41]OFD Sender: Processing packet 162547 [packets to send 106, broken 105] [14:23:41]ProducePacketName [14:23:41]name=ofd_packets/00162547 [14:23:41]OFD Sender: To server: pG, [14:23:41]CommunicateWithHost lk.salyk.kg:30040 [14:23:41]ConnectInit lk.salyk.kg [14:23:41]written 0, free lines is 4095 [14:23:41]Connected sock=10 [14:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 63 CF 07 01 09 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 05 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 1B 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D7 00 00 00 F4 03 04 00 EC 8D 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F3 7A 02 00 35 04 06 00 A4 56 70 18 56 A1 7D 1A FC F5 CD 3D FA 55 [14:23:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 29 64 47 00 01 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 34 38 39 39 10 04 04 00 F3 7A 02 00 F4 03 04 00 FB 39 92 66 B6 04 01 00 00 5C 1B 6D DE AF AC 4E 9A [14:23:42]CommunicateWithHost err = 0 [14:23:42]CheckOFDResponse [14:23:42]1017 (14) - 77093643461234 [14:23:42]1041 (16) - 0000000000874899 [14:23:42]1040 (4) - 162547 [14:23:42]1012 (4) - 13.07.2024 08:25 [14:23:42]1206 (1) - 0 [14:23:42]OFD Sender: Remove packet 162547 [14:23:42]ProducePacketName [14:23:42]name=ofd_packets/00162547 [14:23:42]NVStorageDeleteData [14:23:42]Write to MH i2c: 01 00 00 33 08 3B [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: 01 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: 01 07 00 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: 01 07 00 33 08 00 00 00 00 00 DF 0C 2D [14:23:42]RasterBufferAndPrint [14:23:42]line [14:23:42]line [14:23:42]line [14:23:42]line [14:23:42]line [14:23:42]written 0, free lines is 3301 [14:23:42]MH_Cut [14:23:42]Write to MH i2c: D1 01 00 3A 08 01 14 [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: D1 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: D1 01 00 [14:23:42]MH_I2C_Read... [14:23:42]Read from MH i2c: D1 01 00 3A 08 00 13 [14:23:42]Write to MH i2c: 01 00 00 3B 08 43 [14:23:42]Write i2c OK [14:23:42]MH_I2C_Read... [14:23:42]OFD Sender: No OFD packet to send [14:23:43]*** Cut start [14:23:43]*** Purtial cut [14:23:43]*** Stage 1: CUTSNS_PIN = 1 [14:23:43]Read from MH i2c: 01 [14:23:43]MH_I2C_Read... [14:23:43]*** Stop cut motor [14:23:43]*** Cut end [14:23:43]Read from MH i2c: 01 07 00 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: 01 07 00 3B 08 00 00 00 00 00 FF 0F 58 [14:23:43]process_action close_receipt done [14:23:43]requested_data is exist [14:23:43]produce_requested_data [14:23:43]requested_item fm.sn is exist - process it [14:23:43]wFMCommunicate request_size=4 [14:23:43]MH_SAM_APDU [14:23:43]CAPDU: 80 11 00 00 [14:23:43]Write to MH i2c: E2 08 00 3C 08 80 11 00 00 00 00 00 00 BE [14:23:43]Write i2c OK [14:23:43]MH_I2C_Read... [14:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:43]Read from MH i2c: E2 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: E2 17 00 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: E2 17 00 3C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1E [14:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:23:43]wFMCommunicate OK [14:23:43]requested_item fd.num is exist - process it [14:23:43]SAM_PROTO_GetFieldsCounters [14:23:43]wFMCommunicate request_size=4 [14:23:43]MH_SAM_APDU [14:23:43]CAPDU: 80 13 00 00 [14:23:43]Write to MH i2c: E2 08 00 3D 08 80 13 00 00 00 00 00 00 C1 [14:23:43]Write i2c OK [14:23:43]MH_I2C_Read... [14:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:43]Read from MH i2c: E2 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: E2 62 00 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: E2 62 00 3D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [14:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F3 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:43]wFMCommunicate OK [14:23:43]SAM_PROTO_GetFieldsCounters done [14:23:43]requested_item shift.num is exist - process it [14:23:43]requested_item shift.opened is exist - process it [14:23:43]req_shift_opened [14:23:43]FM_GetShiftState [14:23:43]SAM_PROTO_GetShiftState [14:23:43]wFMCommunicate request_size=4 [14:23:43]MH_SAM_APDU [14:23:43]CAPDU: 80 13 01 00 [14:23:43]Write to MH i2c: E2 08 00 3E 08 80 13 01 00 00 00 00 00 C3 [14:23:43]Write i2c OK [14:23:43]MH_I2C_Read... [14:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:43]Read from MH i2c: E2 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: E2 0E 00 [14:23:43]MH_I2C_Read... [14:23:43]Read from MH i2c: E2 0E 00 3E 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BD [14:23:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:23:43]wFMCommunicate OK [14:23:43]SAM_PROTO_GetShiftState done [14:23:43]FM_GetShiftState done [14:23:43]req_shift_opened done [14:23:43]requested_item shift.open_date is exist - process it [14:23:43]req_shift_open_date [14:23:43]req_shift_open_date done [14:23:43]produce_requested_data done [14:23:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162547,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:23:43]process_action_free close_receipt [14:23:43]json_value_free [14:23:43]json_value_free done [14:23:43]process_json_proto returns [14:23:43]Send response to host [14:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162547,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:23:43]free response buf [14:23:43]execute_script done [14:23:43]execute_script returns [14:23:43]free content buf [14:23:43]Sock 9.Close socket [14:23:43]Sock 9.Thread stoped [14:23:47]OFD Sender: No OFD packet to send [14:23:52]OFD Sender: No OFD packet to send [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:25:59]accept exits with 7 [14:25:59]New connection [14:25:59]New thread 3067510116 created [14:25:59]Thread 3067366756 joined [14:25:59]Waiting for new connection... [14:25:59] Sock 7.Parse request [14:25:59]Sock 7.Check first char [14:25:59]Sock 7.First char is OK [14:25:59]request: POST /json_proto HTTP/1.0 [14:25:59]Method: POST [14:25:59]URL: /json_proto [14:25:59]Method is POST - this is cgi request [14:25:59]url: /json_proto [14:25:59]query_string will be loaded in cgi processing [14:25:59]execute_cgi json_proto POST (null) [14:25:59]execute_cgi path=json_proto method=POST [14:25:59]POST find Content-Length [14:25:59]Host: 172.17.39.67:8080 [14:25:59]Content-Length: 676 [14:25:59]Content-Type: application/json [14:25:59] [14:25:59]POST finish read [14:25:59]Found Content-Length = 676 [14:25:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 16.350, "sum" : 1100.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:59]execute_script... [14:25:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 16.350, "sum" : 1100.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:59]POST & json_proto [14:25:59]process_json_proto [14:25:59]json parsed OK: [14:25:59]protocol is kg_v1.0 [14:25:59]action value=close_receipt [14:25:59]process_action close_receipt [14:25:59]cmd_close_receipt [14:25:59]MH_GetDate [14:25:59]Write to MH i2c: F0 00 00 3F 08 36 [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: F0 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: F0 09 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: F0 09 00 3F 08 00 77 8E 92 66 86 7C 92 66 36 [14:25:59]GetLastDocTimeStamp 1720880620 [14:25:59]current date 1720880759 [14:25:59]FM_GetShiftState [14:25:59]SAM_PROTO_GetShiftState [14:25:59]wFMCommunicate request_size=4 [14:25:59]MH_SAM_APDU [14:25:59]CAPDU: 80 13 01 00 [14:25:59]Write to MH i2c: E2 08 00 40 08 80 13 01 00 00 00 00 00 C5 [14:25:59]Write i2c OK [14:25:59]MH_I2C_Read... [14:25:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:59]Read from MH i2c: E2 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: E2 0E 00 [14:25:59]MH_I2C_Read... [14:25:59]Read from MH i2c: E2 0E 00 40 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BF [14:25:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:25:59]wFMCommunicate OK [14:25:59]SAM_PROTO_GetShiftState done [14:25:59]FM_GetShiftState done [14:25:59]opened in 1720828979 [14:25:59]opened+sec_in_day 1720915379 [14:25:59]quantity*price = 110035 [14:25:59]sum+1 = 110037 [14:25:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 216 13.07.2024 14:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162548 ФПД: 134729989140934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142559&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162548&fm=134729989140934&tin=02508201610067®Number=0000000000090858&sum=110000 [14:26:00]StoreToDocumentArchive [14:26:00]shift 462 fd 162548 [14:26:00]save to /storage/0462/doc_00162548 [14:26:00]save last doc name /storage/0462/doc_00162548 to /storage/kkm_last_doc_name [14:26:00]save OK [14:26:00]Clear old archive folders... [14:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:26:00]tlvbuf is 006BA6E0 [14:26:00]SAM_PROTO_ClearQueue [14:26:00]wFMCommunicate request_size=4 [14:26:00]MH_SAM_APDU [14:26:00]CAPDU: 80 09 00 00 [14:26:00]Write to MH i2c: E2 08 00 4D 08 80 09 00 00 00 00 00 00 C7 [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:00]Read from MH i2c: E2 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 03 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 03 00 4D 08 00 90 00 C9 [14:26:00]RAPDU: 90 00 [14:26:00]wFMCommunicate OK [14:26:00]SAM_PROTO_ClearQueue done [14:26:00]KKMCreateOFDPacket [14:26:00]OFDProtocolAddRootSTLVToBuf [14:26:00]FM_MakeSignedData [14:26:00]FM_MakeSignedData [14:26:00]SAM_PROTO_SignData [14:26:00]wFMCommunicate request_size=4 [14:26:00]MH_SAM_APDU [14:26:00]CAPDU: 80 0D 01 02 [14:26:00]Write to MH i2c: E2 08 00 4E 08 80 0D 01 02 00 00 00 00 CF [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:00]Read from MH i2c: E2 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 03 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 03 00 4E 08 00 90 00 CA [14:26:00]RAPDU: 90 00 [14:26:00]wFMCommunicate OK [14:26:00]wFMCommunicate request_size=255 [14:26:00]MH_SAM_APDU [14:26:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 D4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 77 8E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7A 02 00 35 04 06 00 [14:26:00]Write to MH i2c: E2 02 01 4F 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 D4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 77 8E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7A 02 00 35 04 06 00 00 00 8B [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:00]Read from MH i2c: E2 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 03 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 03 00 4F 08 00 90 00 CB [14:26:00]RAPDU: 90 00 [14:26:00]wFMCommunicate OK [14:26:00]wFMCommunicate request_size=11 [14:26:00]MH_SAM_APDU [14:26:00]CAPDU: 80 0D 02 02 06 7A 89 45 24 B1 C6 [14:26:00]Write to MH i2c: E2 0E 00 50 08 80 0D 02 02 06 00 7A 89 45 24 B1 C6 00 00 C1 [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:00]Read from MH i2c: E2 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 03 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 03 00 50 08 00 90 00 CC [14:26:00]RAPDU: 90 00 [14:26:00]wFMCommunicate OK [14:26:00]wFMCommunicate request_size=4 [14:26:00]MH_SAM_APDU [14:26:00]CAPDU: 80 0D 03 02 [14:26:00]Write to MH i2c: E2 08 00 51 08 80 0D 03 02 00 00 00 00 D4 [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:00]Read from MH i2c: E2 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 0B 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 0B 00 51 08 00 62 93 F6 E3 07 6D EF 5B 90 00 61 [14:26:00]RAPDU: 62 93 F6 E3 07 6D EF 5B 90 00 [14:26:00]wFMCommunicate OK [14:26:00]SAM_PROTO_SignData done [14:26:00]FM_MakeSignedData done [14:26:00]CreateOFDProtocolMessage [14:26:00]wFMCommunicate request_size=4 [14:26:00]MH_SAM_APDU [14:26:00]CAPDU: 80 11 00 00 [14:26:00]Write to MH i2c: E2 08 00 52 08 80 11 00 00 00 00 00 00 D4 [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:00]Read from MH i2c: E2 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 17 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: E2 17 00 52 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 34 [14:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:26:00]wFMCommunicate OK [14:26:00]CreateOFDProtocolMessage done [14:26:00]OFDSenderStorePacket 162548 [14:26:00]StoreOFDPacket docnum=162548 [14:26:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BB 23 08 01 B1 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 D4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 77 8E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7A 02 00 35 04 06 00 7A 89 45 24 B1 C6 62 93 F6 E3 07 6D EF 5B [14:26:00]CheckFolder [14:26:00]dirname=/storage/ofd_packets [14:26:00]CheckFolder done [14:26:00]ProducePacketName [14:26:00]name=ofd_packets/00162548 [14:26:00]NVStorageSaveData ofd_packets/00162548 [14:26:00]File name is /storage/ofd_packets/00162548 [14:26:00]Write 302 bytes [14:26:00]NVStorageSaveData done [14:26:00]OFDSenderStorePacket done [14:26:00]KKMCreateOFDPacket done [14:26:00]NVStorageSaveData kkm_last_timestamp [14:26:00]File name is /storage/kkm_last_timestamp [14:26:00]Write 4 bytes [14:26:00]NVStorageSaveData done [14:26:00]ExternCall_PrintAddStr [14:26:00]wPrintStart [14:26:00]Write to MH i2c: 01 00 00 53 08 5B [14:26:00]Write i2c OK [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: 01 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: 01 07 00 [14:26:00]MH_I2C_Read... [14:26:00]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 FF 0F 70 [14:26:00]RasterBufferAndPrint [14:26:00]line Счет N : (1)1319103 [14:26:00]line ИНН: 02508201610067 [14:26:00]line Контрольно-Кассовый Чек [14:26:00]line ПРОДАЖА [14:26:00]line ТРК (МРК, ГНК) : 62 [14:26:00]line Товар: 2710124130 [14:26:00]line Super-92-К-5 [14:26:00]line 16.350 * 67.30 [14:26:00]line = 1100.36 [14:26:00]line НДС 12% НСП 1% [14:26:00]line > о реализуемом товаре [14:26:00]line ОКРУГЛЕНИЕ: -0.36 [14:26:00]line ИТОГО: 1100.00 [14:26:00]line Внесено: 1100.00 [14:26:00]line СДАЧА: 0.00 [14:26:00]line НСП 1% : 9.74 [14:26:00]line НДС 12% : 116.85 [14:26:00]line Наличными: 1100.00 [14:26:00]line Безнал.: 0.00 [14:26:00]line Место: АЗС № 140 "Партнер Нефть" [14:26:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:26:00]line СНО: Общий режим [14:26:00]line Чек 216 13.07.2024 14:25 [14:26:00]line Смена: 462 ФФД: 1.0 [14:26:00]line ЗНМ: 0300000129 [14:26:00]line РНМ: 0000000000090858 [14:26:00]line Версия ККМ: 001 [14:26:00]line ФМ: 0000000000874899 [14:26:00]line ФД: 162548 [14:26:00]line ФПД: 134729989140934 [14:26:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142559&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162548&fm=134729989140934&tin=02508201610067®Number=0000000000090858&sum=110000 [14:26:01]OFD Sender: Processing packet 162548 [packets to send 106, broken 105] [14:26:01]ProducePacketName [14:26:01]name=ofd_packets/00162548 [14:26:01]OFD Sender: To server: pG, [14:26:01]CommunicateWithHost lk.salyk.kg:30040 [14:26:01]ConnectInit lk.salyk.kg [14:26:01]written 0, free lines is 4095 [14:26:01]Connected sock=10 [14:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BB 23 08 01 B1 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3F 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 D4 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 77 8E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7A 02 00 35 04 06 00 7A 89 45 24 B1 C6 62 93 F6 E3 07 6D EF 5B [14:26:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0E CD 47 00 CF 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F4 7A 02 00 F4 03 04 00 86 3A 92 66 B6 04 01 00 00 62 FC 5D 00 23 FC 45 FD [14:26:01]CommunicateWithHost err = 0 [14:26:01]CheckOFDResponse [14:26:01]1017 (14) - 77093643461234 [14:26:01]1041 (16) - 0000000000874899 [14:26:01]1040 (4) - 162548 [14:26:01]1012 (4) - 13.07.2024 08:27 [14:26:01]1206 (1) - 0 [14:26:01]OFD Sender: Remove packet 162548 [14:26:01]ProducePacketName [14:26:01]name=ofd_packets/00162548 [14:26:01]NVStorageDeleteData [14:26:01]Write to MH i2c: 01 00 00 7E 08 86 [14:26:01]Write i2c OK [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: 01 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: 01 07 00 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: 01 07 00 7E 08 00 00 00 00 00 DC 0C 75 [14:26:01]RasterBufferAndPrint [14:26:01]line [14:26:01]line [14:26:01]line [14:26:01]line [14:26:01]line [14:26:01]written 0, free lines is 3297 [14:26:01]MH_Cut [14:26:01]Write to MH i2c: D1 01 00 85 08 01 5F [14:26:01]Write i2c OK [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: D1 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: D1 01 00 [14:26:01]MH_I2C_Read... [14:26:01]Read from MH i2c: D1 01 00 85 08 00 5E [14:26:01]Write to MH i2c: 01 00 00 86 08 8E [14:26:01]Write i2c OK [14:26:01]MH_I2C_Read... [14:26:01]OFD Sender: No OFD packet to send [14:26:02]*** Cut start [14:26:02]*** Purtial cut [14:26:02]*** CUTSNS_PIN = 0 [14:26:02]*** Stage 1: CUTSNS_PIN = 1 [14:26:04]Read from MH i2c: 01 [14:26:04]MH_I2C_Read... [14:26:04]*** Stop cut motor [14:26:04]*** Cut end [14:26:04]Read from MH i2c: 01 07 00 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: 01 07 00 86 08 00 00 00 00 00 FF 0F A3 [14:26:04]process_action close_receipt done [14:26:04]requested_data is exist [14:26:04]produce_requested_data [14:26:04]requested_item fm.sn is exist - process it [14:26:04]wFMCommunicate request_size=4 [14:26:04]MH_SAM_APDU [14:26:04]CAPDU: 80 11 00 00 [14:26:04]Write to MH i2c: E2 08 00 87 08 80 11 00 00 00 00 00 00 09 [14:26:04]Write i2c OK [14:26:04]MH_I2C_Read... [14:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:04]Read from MH i2c: E2 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: E2 17 00 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: E2 17 00 87 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 69 [14:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:26:04]wFMCommunicate OK [14:26:04]requested_item fd.num is exist - process it [14:26:04]SAM_PROTO_GetFieldsCounters [14:26:04]wFMCommunicate request_size=4 [14:26:04]MH_SAM_APDU [14:26:04]CAPDU: 80 13 00 00 [14:26:04]Write to MH i2c: E2 08 00 88 08 80 13 00 00 00 00 00 00 0C [14:26:04]Write i2c OK [14:26:04]MH_I2C_Read... [14:26:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:04]Read from MH i2c: E2 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: E2 62 00 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: E2 62 00 88 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [14:26:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F4 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:04]wFMCommunicate OK [14:26:04]SAM_PROTO_GetFieldsCounters done [14:26:04]requested_item shift.num is exist - process it [14:26:04]requested_item shift.opened is exist - process it [14:26:04]req_shift_opened [14:26:04]FM_GetShiftState [14:26:04]SAM_PROTO_GetShiftState [14:26:04]wFMCommunicate request_size=4 [14:26:04]MH_SAM_APDU [14:26:04]CAPDU: 80 13 01 00 [14:26:04]Write to MH i2c: E2 08 00 89 08 80 13 01 00 00 00 00 00 0E [14:26:04]Write i2c OK [14:26:04]MH_I2C_Read... [14:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:04]Read from MH i2c: E2 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: E2 0E 00 [14:26:04]MH_I2C_Read... [14:26:04]Read from MH i2c: E2 0E 00 89 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 08 [14:26:04]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:26:04]wFMCommunicate OK [14:26:04]SAM_PROTO_GetShiftState done [14:26:04]FM_GetShiftState done [14:26:04]req_shift_opened done [14:26:04]requested_item shift.open_date is exist - process it [14:26:04]req_shift_open_date [14:26:04]req_shift_open_date done [14:26:04]produce_requested_data done [14:26:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162548,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:26:04]process_action_free close_receipt [14:26:04]json_value_free [14:26:04]json_value_free done [14:26:04]process_json_proto returns [14:26:04]Send response to host [14:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162548,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:26:04]free response buf [14:26:04]execute_script done [14:26:04]execute_script returns [14:26:04]free content buf [14:26:04]Sock 7.Close socket [14:26:04]Sock 7.Thread stoped [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:57]OFD Sender: No OFD packet to send [14:28:02]OFD Sender: No OFD packet to send [14:28:07]OFD Sender: No OFD packet to send [14:28:12]OFD Sender: No OFD packet to send [14:28:17]OFD Sender: No OFD packet to send [14:28:22]OFD Sender: No OFD packet to send [14:28:27]OFD Sender: No OFD packet to send [14:28:32]OFD Sender: No OFD packet to send [14:28:37]OFD Sender: No OFD packet to send [14:28:42]OFD Sender: No OFD packet to send [14:28:47]OFD Sender: No OFD packet to send [14:28:52]OFD Sender: No OFD packet to send [14:28:57]OFD Sender: No OFD packet to send [14:29:02]OFD Sender: No OFD packet to send [14:29:07]OFD Sender: No OFD packet to send [14:29:12]OFD Sender: No OFD packet to send [14:29:17]OFD Sender: No OFD packet to send [14:29:22]OFD Sender: No OFD packet to send [14:29:27]OFD Sender: No OFD packet to send [14:29:28]accept exits with 9 [14:29:28]New connection [14:29:28]New thread 3067366756 created [14:29:28]Thread 3067510116 joined [14:29:28]Waiting for new connection... [14:29:28] Sock 9.Parse request [14:29:28]Sock 9.Check first char [14:29:28]Sock 9.First char is OK [14:29:28]request: POST /json_proto HTTP/1.0 [14:29:28]Method: POST [14:29:28]URL: /json_proto [14:29:28]Method is POST - this is cgi request [14:29:28]url: /json_proto [14:29:28]query_string will be loaded in cgi processing [14:29:28]execute_cgi json_proto POST (null) [14:29:28]execute_cgi path=json_proto method=POST [14:29:28]POST find Content-Length [14:29:28]Host: 172.17.39.67:8080 [14:29:28]Content-Length: 678 [14:29:28]Content-Type: application/json [14:29:28] [14:29:28]POST finish read [14:29:28]Found Content-Length = 678 [14:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.860, "sum" : 388.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 388.00, "total" : 388.00, "payments": [ { "type": 0, "sum" : 388.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:28]execute_script... [14:29: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)1319104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.860, "sum" : 388.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 388.00, "total" : 388.00, "payments": [ { "type": 0, "sum" : 388.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:28]POST & json_proto [14:29:28]process_json_proto [14:29:28]json parsed OK: [14:29:28]protocol is kg_v1.0 [14:29:28]action value=close_receipt [14:29:28]process_action close_receipt [14:29:28]cmd_close_receipt [14:29:28]MH_GetDate [14:29:28]Write to MH i2c: F0 00 00 8A 08 81 [14:29:28]Write i2c OK [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 09 00 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 09 00 8A 08 00 49 8F 92 66 86 7C 92 66 54 [14:29:28]GetLastDocTimeStamp 1720880759 [14:29:28]current date 1720880969 [14:29:28]FM_GetShiftState [14:29:28]SAM_PROTO_GetShiftState [14:29:28]wFMCommunicate request_size=4 [14:29:28]MH_SAM_APDU [14:29:28]CAPDU: 80 13 01 00 [14:29:28]Write to MH i2c: E2 08 00 8B 08 80 13 01 00 00 00 00 00 10 [14:29:28]Write i2c OK [14:29:28]MH_I2C_Read... [14:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:28]Read from MH i2c: E2 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: E2 0E 00 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: E2 0E 00 8B 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 0A [14:29:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:29:28]wFMCommunicate OK [14:29:28]SAM_PROTO_GetShiftState done [14:29:28]FM_GetShiftState done [14:29:28]opened in 1720828979 [14:29:28]opened+sec_in_day 1720915379 [14:29:28]quantity*price = 38851 [14:29:28]sum+1 = 38853 [14:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 388.00 Внесено: 388.00 СДАЧА: 0.00 НСП 1% : 3.44 НДС 12% : 41.26 Наличными: 388.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 217 13.07.2024 14:29 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162549 ФПД: 207050094944938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142929&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162549&fm=207050094944938&tin=02508201610067®Number=0000000000090858&sum=38800 [14:29:29]StoreToDocumentArchive [14:29:29]shift 462 fd 162549 [14:29:29]save to /storage/0462/doc_00162549 [14:29:29]save last doc name /storage/0462/doc_00162549 to /storage/kkm_last_doc_name [14:29:29]save OK [14:29:29]Clear old archive folders... [14:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:29:29]tlvbuf is 005D5280 [14:29:29]SAM_PROTO_ClearQueue [14:29:29]wFMCommunicate request_size=4 [14:29:29]MH_SAM_APDU [14:29:29]CAPDU: 80 09 00 00 [14:29:29]Write to MH i2c: E2 08 00 98 08 80 09 00 00 00 00 00 00 12 [14:29:29]Write i2c OK [14:29:29]MH_I2C_Read... [14:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 98 08 00 90 00 14 [14:29:30]RAPDU: 90 00 [14:29:30]wFMCommunicate OK [14:29:30]SAM_PROTO_ClearQueue done [14:29:30]KKMCreateOFDPacket [14:29:30]OFDProtocolAddRootSTLVToBuf [14:29:30]FM_MakeSignedData [14:29:30]FM_MakeSignedData [14:29:30]SAM_PROTO_SignData [14:29:30]wFMCommunicate request_size=4 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 0D 01 02 [14:29:30]Write to MH i2c: E2 08 00 99 08 80 0D 01 02 00 00 00 00 1A [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 99 08 00 90 00 15 [14:29:30]RAPDU: 90 00 [14:29:30]wFMCommunicate OK [14:29:30]wFMCommunicate request_size=255 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 16 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C4 97 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 49 8F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F5 7A 02 00 35 04 06 00 BC [14:29:30]Write to MH i2c: E2 02 01 9A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 16 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C4 97 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 49 8F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F5 7A 02 00 35 04 06 00 BC 00 00 04 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 9A 08 00 90 00 16 [14:29:30]RAPDU: 90 00 [14:29:30]wFMCommunicate OK [14:29:30]wFMCommunicate request_size=10 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 0D 02 02 05 4F 9B 5C 22 AA [14:29:30]Write to MH i2c: E2 0D 00 9B 08 80 0D 02 02 05 00 4F 9B 5C 22 AA 00 00 39 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 03 00 9B 08 00 90 00 17 [14:29:30]RAPDU: 90 00 [14:29:30]wFMCommunicate OK [14:29:30]wFMCommunicate request_size=4 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 0D 03 02 [14:29:30]Write to MH i2c: E2 08 00 9C 08 80 0D 03 02 00 00 00 00 1F [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 0B 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 0B 00 9C 08 00 E7 7C 73 AA 20 6D 77 91 90 00 35 [14:29:30]RAPDU: E7 7C 73 AA 20 6D 77 91 90 00 [14:29:30]wFMCommunicate OK [14:29:30]SAM_PROTO_SignData done [14:29:30]FM_MakeSignedData done [14:29:30]CreateOFDProtocolMessage [14:29:30]wFMCommunicate request_size=4 [14:29:30]MH_SAM_APDU [14:29:30]CAPDU: 80 11 00 00 [14:29:30]Write to MH i2c: E2 08 00 9D 08 80 11 00 00 00 00 00 00 1F [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:30]Read from MH i2c: E2 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 17 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: E2 17 00 9D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7F [14:29:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:29:30]wFMCommunicate OK [14:29:30]CreateOFDProtocolMessage done [14:29:30]OFDSenderStorePacket 162549 [14:29:30]StoreOFDPacket docnum=162549 [14:29:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BA B5 07 01 6A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 16 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C4 97 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 49 8F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F5 7A 02 00 35 04 06 00 BC 4F 9B 5C 22 AA E7 7C 73 AA 20 6D 77 91 [14:29:30]CheckFolder [14:29:30]dirname=/storage/ofd_packets [14:29:30]CheckFolder done [14:29:30]ProducePacketName [14:29:30]name=ofd_packets/00162549 [14:29:30]NVStorageSaveData ofd_packets/00162549 [14:29:30]File name is /storage/ofd_packets/00162549 [14:29:30]Write 301 bytes [14:29:30]NVStorageSaveData done [14:29:30]OFDSenderStorePacket done [14:29:30]KKMCreateOFDPacket done [14:29:30]NVStorageSaveData kkm_last_timestamp [14:29:30]File name is /storage/kkm_last_timestamp [14:29:30]Write 4 bytes [14:29:30]NVStorageSaveData done [14:29:30]ExternCall_PrintAddStr [14:29:30]wPrintStart [14:29:30]Write to MH i2c: 01 00 00 9E 08 A6 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 07 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 FF 0F BB [14:29:30]RasterBufferAndPrint [14:29:30]line Счет N : (1)1319104 [14:29:30]line ИНН: 02508201610067 [14:29:30]line Контрольно-Кассовый Чек [14:29:30]line ПРОДАЖА [14:29:30]line ТРК (МРК, ГНК) : 43 [14:29:30]line Товар: 2710124130 [14:29:30]line Аи-92-К-5 [14:29:30]line 5.860 * 66.30 [14:29:30]line = 388.52 [14:29:30]line НДС 12% НСП 1% [14:29:30]line > о реализуемом товаре [14:29:30]line ОКРУГЛЕНИЕ: -0.52 [14:29:30]line ИТОГО: 388.00 [14:29:30]line Внесено: 388.00 [14:29:30]line СДАЧА: 0.00 [14:29:30]line НСП 1% : 3.44 [14:29:30]line НДС 12% : 41.26 [14:29:30]line Наличными: 388.00 [14:29:30]line Безнал.: 0.00 [14:29:30]line Место: АЗС № 140 "Партнер Нефть" [14:29:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:29:30]line СНО: Общий режим [14:29:30]line Чек 217 13.07.2024 14:29 [14:29:30]line Смена: 462 ФФД: 1.0 [14:29:30]line ЗНМ: 0300000129 [14:29:30]line РНМ: 0000000000090858 [14:29:30]line Версия ККМ: 001 [14:29:30]line ФМ: 0000000000874899 [14:29:30]line ФД: 162549 [14:29:30]line ФПД: 207050094944938 [14:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T142929&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162549&fm=207050094944938&tin=02508201610067®Number=0000000000090858&sum=38800 [14:29:30]OFD Sender: Processing packet 162549 [packets to send 106, broken 105] [14:29:30]ProducePacketName [14:29:30]name=ofd_packets/00162549 [14:29:30]OFD Sender: To server: pG, [14:29:30]CommunicateWithHost lk.salyk.kg:30040 [14:29:30]ConnectInit lk.salyk.kg [14:29:30]written 0, free lines is 4095 [14:29:30]Connected sock=10 [14:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BA B5 07 01 6A 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 16 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C4 97 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 10 00 00 00 00 07 04 06 00 90 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 49 8F 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F5 7A 02 00 35 04 06 00 BC 4F 9B 5C 22 AA E7 7C 73 AA 20 6D 77 91 [14:29:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 44 41 47 00 5C 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 34 38 39 39 10 04 04 00 F5 7A 02 00 F4 03 04 00 58 3B 92 66 B6 04 01 00 00 3E E6 D8 C1 8D 35 66 10 [14:29:31]CommunicateWithHost err = 0 [14:29:31]CheckOFDResponse [14:29:31]1017 (14) - 77093643461234 [14:29:31]1041 (16) - 0000000000874899 [14:29:31]1040 (4) - 162549 [14:29:31]1012 (4) - 13.07.2024 08:31 [14:29:31]1206 (1) - 0 [14:29:31]OFD Sender: Remove packet 162549 [14:29:31]ProducePacketName [14:29:31]name=ofd_packets/00162549 [14:29:31]NVStorageDeleteData [14:29:31]Write to MH i2c: 01 00 00 C9 08 D1 [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 07 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 DF 0C C3 [14:29:31]RasterBufferAndPrint [14:29:31]line [14:29:31]line [14:29:31]line [14:29:31]line [14:29:31]line [14:29:31]written 0, free lines is 3301 [14:29:31]MH_Cut [14:29:31]Write to MH i2c: D1 01 00 D0 08 01 AA [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: D1 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: D1 01 00 [14:29:31]MH_I2C_Read... [14:29:31]Read from MH i2c: D1 01 00 D0 08 00 A9 [14:29:31]Write to MH i2c: 01 00 00 D1 08 D9 [14:29:31]Write i2c OK [14:29:31]MH_I2C_Read... [14:29:31]OFD Sender: No OFD packet to send [14:29:32]*** Cut start [14:29:32]*** Purtial cut [14:29:32]*** Stage 1: CUTSNS_PIN = 1 [14:29:32]Read from MH i2c: 01 [14:29:32]MH_I2C_Read... [14:29:32]*** Stop cut motor [14:29:32]*** Cut end [14:29:32]Read from MH i2c: 01 07 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: 01 07 00 D1 08 00 00 00 00 00 FF 0F EE [14:29:32]process_action close_receipt done [14:29:32]requested_data is exist [14:29:32]produce_requested_data [14:29:32]requested_item fm.sn is exist - process it [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 11 00 00 [14:29:32]Write to MH i2c: E2 08 00 D2 08 80 11 00 00 00 00 00 00 54 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 17 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 17 00 D2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B4 [14:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:29:32]wFMCommunicate OK [14:29:32]requested_item fd.num is exist - process it [14:29:32]SAM_PROTO_GetFieldsCounters [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 13 00 00 [14:29:32]Write to MH i2c: E2 08 00 D3 08 80 13 00 00 00 00 00 00 57 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 62 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 62 00 D3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [14:29:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F5 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:32]wFMCommunicate OK [14:29:32]SAM_PROTO_GetFieldsCounters done [14:29:32]requested_item shift.num is exist - process it [14:29:32]requested_item shift.opened is exist - process it [14:29:32]req_shift_opened [14:29:32]FM_GetShiftState [14:29:32]SAM_PROTO_GetShiftState [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 13 01 00 [14:29:32]Write to MH i2c: E2 08 00 D4 08 80 13 01 00 00 00 00 00 59 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:32]Read from MH i2c: E2 0E 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 0E 00 D4 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 53 [14:29:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:29:32]wFMCommunicate OK [14:29:32]SAM_PROTO_GetShiftState done [14:29:32]FM_GetShiftState done [14:29:32]req_shift_opened done [14:29:32]requested_item shift.open_date is exist - process it [14:29:32]req_shift_open_date [14:29:32]req_shift_open_date done [14:29:32]produce_requested_data done [14:29:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162549,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:29:32]process_action_free close_receipt [14:29:32]json_value_free [14:29:32]json_value_free done [14:29:32]process_json_proto returns [14:29:32]Send response to host [14:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162549,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:29:32]free response buf [14:29:32]execute_script done [14:29:32]execute_script returns [14:29:32]free content buf [14:29:32]Sock 9.Close socket [14:29:32]Sock 9.Thread stoped [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:24]accept exits with 7 [14:33:24]New connection [14:33:24]New thread 3067510116 created [14:33:24]Thread 3067366756 joined [14:33:24]Waiting for new connection... [14:33:24] Sock 7.Parse request [14:33:24]Sock 7.Check first char [14:33:24]Sock 7.First char is OK [14:33:24]request: POST /json_proto HTTP/1.0 [14:33:24]Method: POST [14:33:24]URL: /json_proto [14:33:24]Method is POST - this is cgi request [14:33:24]url: /json_proto [14:33:24]query_string will be loaded in cgi processing [14:33:24]execute_cgi json_proto POST (null) [14:33:24]execute_cgi path=json_proto method=POST [14:33:24]POST find Content-Length [14:33:24]Host: 172.17.39.67:8080 [14:33:24]Content-Length: 678 [14:33:24]Content-Type: application/json [14:33:24] [14:33:24]POST finish read [14:33:24]Found Content-Length = 678 [14:33:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:24]execute_script... [14:33: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)1319105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:24]POST & json_proto [14:33:24]process_json_proto [14:33:24]json parsed OK: [14:33:24]protocol is kg_v1.0 [14:33:24]action value=close_receipt [14:33:24]process_action close_receipt [14:33:24]cmd_close_receipt [14:33:24]MH_GetDate [14:33:24]Write to MH i2c: F0 00 00 D5 08 CC [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: F0 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: F0 09 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: F0 09 00 D5 08 00 34 90 92 66 86 7C 92 66 8B [14:33:24]GetLastDocTimeStamp 1720880969 [14:33:24]current date 1720881204 [14:33:24]FM_GetShiftState [14:33:24]SAM_PROTO_GetShiftState [14:33:24]wFMCommunicate request_size=4 [14:33:24]MH_SAM_APDU [14:33:24]CAPDU: 80 13 01 00 [14:33:24]Write to MH i2c: E2 08 00 D6 08 80 13 01 00 00 00 00 00 5B [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:24]Read from MH i2c: E2 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 0E 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: E2 0E 00 D6 08 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 55 [14:33:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:33:24]wFMCommunicate OK [14:33:24]SAM_PROTO_GetShiftState done [14:33:24]FM_GetShiftState done [14:33:24]opened in 1720828979 [14:33:24]opened+sec_in_day 1720915379 [14:33:24]quantity*price = 50056 [14:33:24]sum+1 = 50058 [14:33:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 218 13.07.2024 14:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162550 ФПД: 252851186907714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143324&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162550&fm=252851186907714&tin=02508201610067®Number=0000000000090858&sum=50000 [14:33:25]StoreToDocumentArchive [14:33:25]shift 462 fd 162550 [14:33:25]save to /storage/0462/doc_00162550 [14:33:25]save last doc name /storage/0462/doc_00162550 to /storage/kkm_last_doc_name [14:33:25]save OK [14:33:25]Clear old archive folders... [14:33:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:25]tlvbuf is 005D9AA0 [14:33:25]SAM_PROTO_ClearQueue [14:33:25]wFMCommunicate request_size=4 [14:33:25]MH_SAM_APDU [14:33:25]CAPDU: 80 09 00 00 [14:33:25]Write to MH i2c: E2 08 00 E3 08 80 09 00 00 00 00 00 00 5D [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:25]Read from MH i2c: E2 03 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 E3 08 00 90 00 5F [14:33:25]RAPDU: 90 00 [14:33:25]wFMCommunicate OK [14:33:25]SAM_PROTO_ClearQueue done [14:33:25]KKMCreateOFDPacket [14:33:25]OFDProtocolAddRootSTLVToBuf [14:33:25]FM_MakeSignedData [14:33:25]FM_MakeSignedData [14:33:25]SAM_PROTO_SignData [14:33:25]wFMCommunicate request_size=4 [14:33:25]MH_SAM_APDU [14:33:25]CAPDU: 80 0D 01 02 [14:33:25]Write to MH i2c: E2 08 00 E4 08 80 0D 01 02 00 00 00 00 65 [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:25]Read from MH i2c: E2 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 [14:33:25]MH_I2C_Read... [14:33:25]Read from MH i2c: E2 03 00 E4 08 00 90 00 60 [14:33:25]RAPDU: 90 00 [14:33:25]wFMCommunicate OK [14:33:25]wFMCommunicate request_size=255 [14:33:25]MH_SAM_APDU [14:33:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 34 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7A 02 00 35 04 06 00 E5 [14:33:25]Write to MH i2c: E2 02 01 E5 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 34 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7A 02 00 35 04 06 00 E5 00 00 DD [14:33:25]Write i2c OK [14:33:25]MH_I2C_Read... [14:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:26]Read from MH i2c: E2 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 03 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 03 00 E5 08 00 90 00 61 [14:33:26]RAPDU: 90 00 [14:33:26]wFMCommunicate OK [14:33:26]wFMCommunicate request_size=10 [14:33:26]MH_SAM_APDU [14:33:26]CAPDU: 80 0D 02 02 05 F7 81 2D 3A 42 [14:33:26]Write to MH i2c: E2 0D 00 E6 08 80 0D 02 02 05 00 F7 81 2D 3A 42 00 00 93 [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:26]Read from MH i2c: E2 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 03 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 03 00 E6 08 00 90 00 62 [14:33:26]RAPDU: 90 00 [14:33:26]wFMCommunicate OK [14:33:26]wFMCommunicate request_size=4 [14:33:26]MH_SAM_APDU [14:33:26]CAPDU: 80 0D 03 02 [14:33:26]Write to MH i2c: E2 08 00 E7 08 80 0D 03 02 00 00 00 00 6A [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:26]Read from MH i2c: E2 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 0B 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 0B 00 E7 08 00 D5 CC 53 3A 12 9F 15 62 90 00 C1 [14:33:26]RAPDU: D5 CC 53 3A 12 9F 15 62 90 00 [14:33:26]wFMCommunicate OK [14:33:26]SAM_PROTO_SignData done [14:33:26]FM_MakeSignedData done [14:33:26]CreateOFDProtocolMessage [14:33:26]wFMCommunicate request_size=4 [14:33:26]MH_SAM_APDU [14:33:26]CAPDU: 80 11 00 00 [14:33:26]Write to MH i2c: E2 08 00 E8 08 80 11 00 00 00 00 00 00 6A [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:26]Read from MH i2c: E2 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 17 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 17 00 E8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CA [14:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:33:26]wFMCommunicate OK [14:33:26]CreateOFDProtocolMessage done [14:33:26]OFDSenderStorePacket 162550 [14:33:26]StoreOFDPacket docnum=162550 [14:33:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 92 38 07 01 DC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 34 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7A 02 00 35 04 06 00 E5 F7 81 2D 3A 42 D5 CC 53 3A 12 9F 15 62 [14:33:26]CheckFolder [14:33:26]dirname=/storage/ofd_packets [14:33:26]CheckFolder done [14:33:26]ProducePacketName [14:33:26]name=ofd_packets/00162550 [14:33:26]NVStorageSaveData ofd_packets/00162550 [14:33:26]File name is /storage/ofd_packets/00162550 [14:33:26]Write 301 bytes [14:33:26]NVStorageSaveData done [14:33:26]OFDSenderStorePacket done [14:33:26]KKMCreateOFDPacket done [14:33:26]NVStorageSaveData kkm_last_timestamp [14:33:26]File name is /storage/kkm_last_timestamp [14:33:26]Write 4 bytes [14:33:26]NVStorageSaveData done [14:33:26]ExternCall_PrintAddStr [14:33:26]wPrintStart [14:33:26]Write to MH i2c: 01 00 00 E9 08 F1 [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: 01 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: 01 07 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: 01 07 00 E9 08 00 00 00 00 00 FF 0F 06 [14:33:26]RasterBufferAndPrint [14:33:26]line Счет N : (1)1319105 [14:33:26]line ИНН: 02508201610067 [14:33:26]line Контрольно-Кассовый Чек [14:33:26]line ПРОДАЖА [14:33:26]line ТРК (МРК, ГНК) : 43 [14:33:26]line Товар: 2710124130 [14:33:26]line Аи-92-К-5 [14:33:26]line 7.550 * 66.30 [14:33:26]line = 500.57 [14:33:26]line НДС 12% НСП 1% [14:33:26]line > о реализуемом товаре [14:33:26]line ОКРУГЛЕНИЕ: -0.57 [14:33:26]line ИТОГО: 500.00 [14:33:26]line Внесено: 500.00 [14:33:26]line СДАЧА: 0.00 [14:33:26]line НСП 1% : 4.43 [14:33:26]line НДС 12% : 53.16 [14:33:26]line Наличными: 500.00 [14:33:26]line Безнал.: 0.00 [14:33:26]line Место: АЗС № 140 "Партнер Нефть" [14:33:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:33:26]line СНО: Общий режим [14:33:26]line Чек 218 13.07.2024 14:33 [14:33:26]line Смена: 462 ФФД: 1.0 [14:33:26]line ЗНМ: 0300000129 [14:33:26]line РНМ: 0000000000090858 [14:33:26]line Версия ККМ: 001 [14:33:26]line ФМ: 0000000000874899 [14:33:26]line ФД: 162550 [14:33:26]line ФПД: 252851186907714 [14:33:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143324&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162550&fm=252851186907714&tin=02508201610067®Number=0000000000090858&sum=50000 [14:33:26]OFD Sender: Processing packet 162550 [packets to send 106, broken 105] [14:33:26]ProducePacketName [14:33:26]name=ofd_packets/00162550 [14:33:26]OFD Sender: To server: pG, [14:33:26]CommunicateWithHost lk.salyk.kg:30040 [14:33:26]ConnectInit lk.salyk.kg [14:33:26]written 0, free lines is 4095 [14:33:26]Connected sock=10 [14:33:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 92 38 07 01 DC C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 34 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F6 7A 02 00 35 04 06 00 E5 F7 81 2D 3A 42 D5 CC 53 3A 12 9F 15 62 [14:33:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AB 92 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 34 38 39 39 10 04 04 00 F6 7A 02 00 F4 03 04 00 43 3C 92 66 B6 04 01 00 00 F9 6B 2C 47 AC D5 C2 E9 [14:33:26]CommunicateWithHost err = 0 [14:33:26]CheckOFDResponse [14:33:26]1017 (14) - 77093643461234 [14:33:26]1041 (16) - 0000000000874899 [14:33:26]1040 (4) - 162550 [14:33:26]1012 (4) - 13.07.2024 08:35 [14:33:26]1206 (1) - 0 [14:33:26]OFD Sender: Remove packet 162550 [14:33:26]ProducePacketName [14:33:26]name=ofd_packets/00162550 [14:33:26]NVStorageDeleteData [14:33:27]Write to MH i2c: 01 00 00 14 09 1D [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: 01 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: 01 07 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 D4 0C 04 [14:33:27]RasterBufferAndPrint [14:33:27]line [14:33:27]line [14:33:27]line [14:33:27]line [14:33:27]line [14:33:27]written 0, free lines is 3289 [14:33:27]MH_Cut [14:33:27]Write to MH i2c: D1 01 00 1B 09 01 F6 [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: D1 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: D1 01 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: D1 01 00 1B 09 00 F5 [14:33:27]Write to MH i2c: 01 00 00 1C 09 25 [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]OFD Sender: No OFD packet to send [14:33:27]*** Cut start [14:33:27]*** Purtial cut [14:33:27]*** CUTSNS_PIN = 0 [14:33:27]*** Stage 1: CUTSNS_PIN = 1 [14:33:29]Read from MH i2c: 01 [14:33:29]MH_I2C_Read... [14:33:29]*** Stop cut motor [14:33:29]*** Cut end [14:33:29]Read from MH i2c: 01 07 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 07 00 1C 09 00 00 00 00 00 FF 0F 3A [14:33:29]process_action close_receipt done [14:33:29]requested_data is exist [14:33:29]produce_requested_data [14:33:29]requested_item fm.sn is exist - process it [14:33:29]wFMCommunicate request_size=4 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 11 00 00 [14:33:29]Write to MH i2c: E2 08 00 1D 09 80 11 00 00 00 00 00 00 A0 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 17 00 [14:33:29]MH_I2C_Read... [14:33:29]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 34 38 39 39 90 00 00 [14:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:33:29]wFMCommunicate OK [14:33:29]requested_item fd.num is exist - process it [14:33:29]SAM_PROTO_GetFieldsCounters [14:33:29]wFMCommunicate request_size=4 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 13 00 00 [14:33:29]Write to MH i2c: E2 08 00 1E 09 80 13 00 00 00 00 00 00 A3 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 62 00 [14:33:29]MH_I2C_Read... [14:33:29]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [14:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F6 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:29]wFMCommunicate OK [14:33:29]SAM_PROTO_GetFieldsCounters done [14:33:29]requested_item shift.num is exist - process it [14:33:29]requested_item shift.opened is exist - process it [14:33:29]req_shift_opened [14:33:29]FM_GetShiftState [14:33:29]SAM_PROTO_GetShiftState [14:33:29]wFMCommunicate request_size=4 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 13 01 00 [14:33:29]Write to MH i2c: E2 08 00 1F 09 80 13 01 00 00 00 00 00 A5 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:30]Read from MH i2c: E2 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0E 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: E2 0E 00 1F 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9F [14:33:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:33:30]wFMCommunicate OK [14:33:30]SAM_PROTO_GetShiftState done [14:33:30]FM_GetShiftState done [14:33:30]req_shift_opened done [14:33:30]requested_item shift.open_date is exist - process it [14:33:30]req_shift_open_date [14:33:30]req_shift_open_date done [14:33:30]produce_requested_data done [14:33:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162550,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:33:30]process_action_free close_receipt [14:33:30]json_value_free [14:33:30]json_value_free done [14:33:30]process_json_proto returns [14:33:30]Send response to host [14:33:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162550,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:33:30]free response buf [14:33:30]execute_script done [14:33:30]execute_script returns [14:33:30]free content buf [14:33:30]Sock 7.Close socket [14:33:30]Sock 7.Thread stoped [14:33:32]OFD Sender: No OFD packet to send [14:33:37]OFD Sender: No OFD packet to send [14:33:42]OFD Sender: No OFD packet to send [14:33:47]OFD Sender: No OFD packet to send [14:33:52]OFD Sender: No OFD packet to send [14:33:57]OFD Sender: No OFD packet to send [14:34:02]OFD Sender: No OFD packet to send [14:34:07]OFD Sender: No OFD packet to send [14:34:12]OFD Sender: No OFD packet to send [14:34:17]OFD Sender: No OFD packet to send [14:34:22]OFD Sender: No OFD packet to send [14:34:27]OFD Sender: No OFD packet to send [14:34:32]OFD Sender: No OFD packet to send [14:34:37]OFD Sender: No OFD packet to send [14:34:42]OFD Sender: No OFD packet to send [14:34:47]OFD Sender: No OFD packet to send [14:34:52]OFD Sender: No OFD packet to send [14:34:57]OFD Sender: No OFD packet to send [14:35:02]OFD Sender: No OFD packet to send [14:35:07]OFD Sender: No OFD packet to send [14:35:12]OFD Sender: No OFD packet to send [14:35:17]OFD Sender: No OFD packet to send [14:35:22]OFD Sender: No OFD packet to send [14:35:27]OFD Sender: No OFD packet to send [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:51]accept exits with 9 [14:35:51]New connection [14:35:51]New thread 3067366756 created [14:35:51]Thread 3067510116 joined [14:35:51]Waiting for new connection... [14:35:51] Sock 9.Parse request [14:35:51]Sock 9.Check first char [14:35:51]Sock 9.First char is OK [14:35:51]request: POST /json_proto HTTP/1.0 [14:35:51]Method: POST [14:35:51]URL: /json_proto [14:35:51]Method is POST - this is cgi request [14:35:51]url: /json_proto [14:35:51]query_string will be loaded in cgi processing [14:35:51]execute_cgi json_proto POST (null) [14:35:51]execute_cgi path=json_proto method=POST [14:35:51]POST find Content-Length [14:35:51]Host: 172.17.39.67:8080 [14:35:51]Content-Length: 678 [14:35:51]Content-Type: application/json [14:35:51] [14:35:51]POST finish read [14:35:51]Found Content-Length = 678 [14:35:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51]execute_script... [14:35: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)1319106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51]POST & json_proto [14:35:51]process_json_proto [14:35:51]json parsed OK: [14:35:51]protocol is kg_v1.0 [14:35:51]action value=close_receipt [14:35:51]process_action close_receipt [14:35:51]cmd_close_receipt [14:35:51]MH_GetDate [14:35:51]Write to MH i2c: F0 00 00 20 09 18 [14:35:51]Write i2c OK [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: F0 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: F0 09 00 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: F0 09 00 20 09 00 C7 90 92 66 86 7C 92 66 6A [14:35:51]GetLastDocTimeStamp 1720881204 [14:35:51]current date 1720881351 [14:35:51]FM_GetShiftState [14:35:51]SAM_PROTO_GetShiftState [14:35:51]wFMCommunicate request_size=4 [14:35:51]MH_SAM_APDU [14:35:51]CAPDU: 80 13 01 00 [14:35:51]Write to MH i2c: E2 08 00 21 09 80 13 01 00 00 00 00 00 A7 [14:35:51]Write i2c OK [14:35:51]MH_I2C_Read... [14:35:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:51]Read from MH i2c: E2 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 0E 00 [14:35:51]MH_I2C_Read... [14:35:51]Read from MH i2c: E2 0E 00 21 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A1 [14:35:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:35:51]wFMCommunicate OK [14:35:51]SAM_PROTO_GetShiftState done [14:35:51]FM_GetShiftState done [14:35:51]opened in 1720828979 [14:35:51]opened+sec_in_day 1720915379 [14:35:51]quantity*price = 50056 [14:35:51]sum+1 = 50058 [14:35:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 219 13.07.2024 14:35 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162551 ФПД: 178402322332272 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143551&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162551&fm=178402322332272&tin=02508201610067®Number=0000000000090858&sum=50000 [14:35:52]StoreToDocumentArchive [14:35:52]shift 462 fd 162551 [14:35:52]save to /storage/0462/doc_00162551 [14:35:52]save last doc name /storage/0462/doc_00162551 to /storage/kkm_last_doc_name [14:35:52]save OK [14:35:52]Clear old archive folders... [14:35:52]OFD Sender: No OFD packet to send [14:35:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:52]tlvbuf is 005D43A0 [14:35:52]SAM_PROTO_ClearQueue [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 09 00 00 [14:35:52]Write to MH i2c: E2 08 00 2E 09 80 09 00 00 00 00 00 00 A9 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 2E 09 00 90 00 AB [14:35:52]RAPDU: 90 00 [14:35:52]wFMCommunicate OK [14:35:52]SAM_PROTO_ClearQueue done [14:35:52]KKMCreateOFDPacket [14:35:52]OFDProtocolAddRootSTLVToBuf [14:35:52]FM_MakeSignedData [14:35:52]FM_MakeSignedData [14:35:52]SAM_PROTO_SignData [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 0D 01 02 [14:35:52]Write to MH i2c: E2 08 00 2F 09 80 0D 01 02 00 00 00 00 B1 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 2F 09 00 90 00 AC [14:35:52]RAPDU: 90 00 [14:35:52]wFMCommunicate OK [14:35:52]wFMCommunicate request_size=255 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 C7 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7A 02 00 35 04 06 00 A2 [14:35:52]Write to MH i2c: E2 02 01 30 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 C7 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7A 02 00 35 04 06 00 A2 00 00 7B [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 30 09 00 90 00 AD [14:35:52]RAPDU: 90 00 [14:35:52]wFMCommunicate OK [14:35:52]wFMCommunicate request_size=10 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 0D 02 02 05 41 87 0C BA 70 [14:35:52]Write to MH i2c: E2 0D 00 31 09 80 0D 02 02 05 00 41 87 0C BA 70 00 00 BC [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 03 00 31 09 00 90 00 AE [14:35:52]RAPDU: 90 00 [14:35:52]wFMCommunicate OK [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 0D 03 02 [14:35:52]Write to MH i2c: E2 08 00 32 09 80 0D 03 02 00 00 00 00 B6 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:53]Read from MH i2c: E2 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 0B 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 0B 00 32 09 00 3F A4 90 06 89 00 ED E6 90 00 8C [14:35:53]RAPDU: 3F A4 90 06 89 00 ED E6 90 00 [14:35:53]wFMCommunicate OK [14:35:53]SAM_PROTO_SignData done [14:35:53]FM_MakeSignedData done [14:35:53]CreateOFDProtocolMessage [14:35:53]wFMCommunicate request_size=4 [14:35:53]MH_SAM_APDU [14:35:53]CAPDU: 80 11 00 00 [14:35:53]Write to MH i2c: E2 08 00 33 09 80 11 00 00 00 00 00 00 B6 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:53]Read from MH i2c: E2 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: E2 17 00 [14:35:53]MH_I2C_Read... [14:35:53]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 34 38 39 39 90 00 16 [14:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:35:53]wFMCommunicate OK [14:35:53]CreateOFDProtocolMessage done [14:35:53]OFDSenderStorePacket 162551 [14:35:53]StoreOFDPacket docnum=162551 [14:35:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C9 12 07 01 CB F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 C7 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7A 02 00 35 04 06 00 A2 41 87 0C BA 70 3F A4 90 06 89 00 ED E6 [14:35:53]CheckFolder [14:35:53]dirname=/storage/ofd_packets [14:35:53]CheckFolder done [14:35:53]ProducePacketName [14:35:53]name=ofd_packets/00162551 [14:35:53]NVStorageSaveData ofd_packets/00162551 [14:35:53]File name is /storage/ofd_packets/00162551 [14:35:53]Write 301 bytes [14:35:53]NVStorageSaveData done [14:35:53]OFDSenderStorePacket done [14:35:53]KKMCreateOFDPacket done [14:35:53]NVStorageSaveData kkm_last_timestamp [14:35:53]File name is /storage/kkm_last_timestamp [14:35:53]Write 4 bytes [14:35:53]NVStorageSaveData done [14:35:53]ExternCall_PrintAddStr [14:35:53]wPrintStart [14:35:53]Write to MH i2c: 01 00 00 34 09 3D [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 07 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 07 00 34 09 00 00 00 00 00 FF 0F 52 [14:35:53]RasterBufferAndPrint [14:35:53]line Счет N : (1)1319106 [14:35:53]line ИНН: 02508201610067 [14:35:53]line Контрольно-Кассовый Чек [14:35:53]line ПРОДАЖА [14:35:53]line ТРК (МРК, ГНК) : 43 [14:35:53]line Товар: 2710124130 [14:35:53]line Аи-92-К-5 [14:35:53]line 7.550 * 66.30 [14:35:53]line = 500.57 [14:35:53]line НДС 12% НСП 1% [14:35:53]line > о реализуемом товаре [14:35:53]line ОКРУГЛЕНИЕ: -0.57 [14:35:53]line ИТОГО: 500.00 [14:35:53]line Внесено: 500.00 [14:35:53]line СДАЧА: 0.00 [14:35:53]line НСП 1% : 4.43 [14:35:53]line НДС 12% : 53.16 [14:35:53]line Наличными: 500.00 [14:35:53]line Безнал.: 0.00 [14:35:53]line Место: АЗС № 140 "Партнер Нефть" [14:35:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:35:53]line СНО: Общий режим [14:35:53]line Чек 219 13.07.2024 14:35 [14:35:53]line Смена: 462 ФФД: 1.0 [14:35:53]line ЗНМ: 0300000129 [14:35:53]line РНМ: 0000000000090858 [14:35:53]line Версия ККМ: 001 [14:35:53]line ФМ: 0000000000874899 [14:35:53]line ФД: 162551 [14:35:53]line ФПД: 178402322332272 [14:35:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143551&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162551&fm=178402322332272&tin=02508201610067®Number=0000000000090858&sum=50000 [14:35:53]OFD Sender: Processing packet 162551 [packets to send 106, broken 105] [14:35:53]ProducePacketName [14:35:53]name=ofd_packets/00162551 [14:35:53]OFD Sender: To server: pG, [14:35:53]CommunicateWithHost lk.salyk.kg:30040 [14:35:53]ConnectInit lk.salyk.kg [14:35:53]written 0, free lines is 4095 [14:35:53]Connected sock=10 [14:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C9 12 07 01 CB F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 C7 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7A 02 00 35 04 06 00 A2 41 87 0C BA 70 3F A4 90 06 89 00 ED E6 [14:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F1 DA 47 00 63 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F7 7A 02 00 F4 03 04 00 D6 3C 92 66 B6 04 01 00 00 34 C5 1D D2 B2 D6 65 09 [14:35:53]CommunicateWithHost err = 0 [14:35:53]CheckOFDResponse [14:35:53]1017 (14) - 77093643461234 [14:35:53]1041 (16) - 0000000000874899 [14:35:53]1040 (4) - 162551 [14:35:53]1012 (4) - 13.07.2024 08:37 [14:35:53]1206 (1) - 0 [14:35:53]OFD Sender: Remove packet 162551 [14:35:53]ProducePacketName [14:35:53]name=ofd_packets/00162551 [14:35:53]NVStorageDeleteData [14:35:53]Write to MH i2c: 01 00 00 5F 09 68 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 07 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: 01 07 00 5F 09 00 00 00 00 00 D7 0C 52 [14:35:53]RasterBufferAndPrint [14:35:53]line [14:35:53]line [14:35:53]line [14:35:53]line [14:35:53]line [14:35:53]written 0, free lines is 3294 [14:35:53]MH_Cut [14:35:53]Write to MH i2c: D1 01 00 66 09 01 41 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: D1 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: D1 01 00 [14:35:53]MH_I2C_Read... [14:35:53]Read from MH i2c: D1 01 00 66 09 00 40 [14:35:53]Write to MH i2c: 01 00 00 67 09 70 [14:35:53]Write i2c OK [14:35:53]MH_I2C_Read... [14:35:54]OFD Sender: No OFD packet to send [14:35:54]*** Cut start [14:35:54]*** Purtial cut [14:35:54]*** Stage 1: CUTSNS_PIN = 1 [14:35:54]Read from MH i2c: 01 [14:35:54]MH_I2C_Read... [14:35:54]*** Stop cut motor [14:35:54]*** Cut end [14:35:54]Read from MH i2c: 01 07 00 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: 01 07 00 67 09 00 00 00 00 00 FF 0F 85 [14:35:54]process_action close_receipt done [14:35:54]requested_data is exist [14:35:54]produce_requested_data [14:35:54]requested_item fm.sn is exist - process it [14:35:54]wFMCommunicate request_size=4 [14:35:54]MH_SAM_APDU [14:35:54]CAPDU: 80 11 00 00 [14:35:54]Write to MH i2c: E2 08 00 68 09 80 11 00 00 00 00 00 00 EB [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:54]Read from MH i2c: E2 [14:35:54]MH_I2C_Read... [14:35:54]Read from MH i2c: E2 17 00 [14:35:54]MH_I2C_Read... [14:35:54]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 34 38 39 39 90 00 4B [14:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:35:54]wFMCommunicate OK [14:35:54]requested_item fd.num is exist - process it [14:35:54]SAM_PROTO_GetFieldsCounters [14:35:54]wFMCommunicate request_size=4 [14:35:54]MH_SAM_APDU [14:35:54]CAPDU: 80 13 00 00 [14:35:54]Write to MH i2c: E2 08 00 69 09 80 13 00 00 00 00 00 00 EE [14:35:54]Write i2c OK [14:35:54]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 62 00 [14:35:55]MH_I2C_Read... [14:35:55]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [14:35:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F7 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:55]wFMCommunicate OK [14:35:55]SAM_PROTO_GetFieldsCounters done [14:35:55]requested_item shift.num is exist - process it [14:35:55]requested_item shift.opened is exist - process it [14:35:55]req_shift_opened [14:35:55]FM_GetShiftState [14:35:55]SAM_PROTO_GetShiftState [14:35:55]wFMCommunicate request_size=4 [14:35:55]MH_SAM_APDU [14:35:55]CAPDU: 80 13 01 00 [14:35:55]Write to MH i2c: E2 08 00 6A 09 80 13 01 00 00 00 00 00 F0 [14:35:55]Write i2c OK [14:35:55]MH_I2C_Read... [14:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:55]Read from MH i2c: E2 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 0E 00 [14:35:55]MH_I2C_Read... [14:35:55]Read from MH i2c: E2 0E 00 6A 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EA [14:35:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:35:55]wFMCommunicate OK [14:35:55]SAM_PROTO_GetShiftState done [14:35:55]FM_GetShiftState done [14:35:55]req_shift_opened done [14:35:55]requested_item shift.open_date is exist - process it [14:35:55]req_shift_open_date [14:35:55]req_shift_open_date done [14:35:55]produce_requested_data done [14:35:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162551,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:35:55]process_action_free close_receipt [14:35:55]json_value_free [14:35:55]json_value_free done [14:35:55]process_json_proto returns [14:35:55]Send response to host [14:35:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162551,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:35:55]free response buf [14:35:55]execute_script done [14:35:55]execute_script returns [14:35:55]free content buf [14:35:55]Sock 9.Close socket [14:35:55]Sock 9.Thread stoped [14:35:59]OFD Sender: No OFD packet to send [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:30]accept exits with 7 [14:36:30]New connection [14:36:30]New thread 3067510116 created [14:36:30]Thread 3067366756 joined [14:36:30]Waiting for new connection... [14:36:30] Sock 7.Parse request [14:36:30]Sock 7.Check first char [14:36:30]Sock 7.First char is OK [14:36:30]request: POST /json_proto HTTP/1.0 [14:36:30]Method: POST [14:36:30]URL: /json_proto [14:36:30]Method is POST - this is cgi request [14:36:30]url: /json_proto [14:36:30]query_string will be loaded in cgi processing [14:36:30]execute_cgi json_proto POST (null) [14:36:30]execute_cgi path=json_proto method=POST [14:36:30]POST find Content-Length [14:36:30]Host: 172.17.39.67:8080 [14:36:30]Content-Length: 688 [14:36:30]Content-Type: application/json [14:36:30] [14:36:30]POST finish read [14:36:30]Found Content-Length = 688 [14:36:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:36:30]execute_script... [14:36: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)1319107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:36:30]POST & json_proto [14:36:30]process_json_proto [14:36:30]json parsed OK: [14:36:30]protocol is kg_v1.0 [14:36:30]action value=close_receipt [14:36:30]process_action close_receipt [14:36:30]cmd_close_receipt [14:36:30]MH_GetDate [14:36:30]Write to MH i2c: F0 00 00 6B 09 63 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: F0 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: F0 09 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: F0 09 00 6B 09 00 EE 90 92 66 86 7C 92 66 DC [14:36:30]GetLastDocTimeStamp 1720881351 [14:36:30]current date 1720881390 [14:36:30]FM_GetShiftState [14:36:30]SAM_PROTO_GetShiftState [14:36:30]wFMCommunicate request_size=4 [14:36:30]MH_SAM_APDU [14:36:30]CAPDU: 80 13 01 00 [14:36:30]Write to MH i2c: E2 08 00 6C 09 80 13 01 00 00 00 00 00 F2 [14:36:30]Write i2c OK [14:36:30]MH_I2C_Read... [14:36:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:30]Read from MH i2c: E2 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 0E 00 [14:36:30]MH_I2C_Read... [14:36:30]Read from MH i2c: E2 0E 00 6C 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EC [14:36:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:36:30]wFMCommunicate OK [14:36:30]SAM_PROTO_GetShiftState done [14:36:30]FM_GetShiftState done [14:36:30]opened in 1720828979 [14:36:30]opened+sec_in_day 1720915379 [14:36:30]quantity*price = 120007 [14:36:30]sum+1 = 120009 [14:36:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 220 13.07.2024 14:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162552 ФПД: 92686894333589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143630&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162552&fm=92686894333589&tin=02508201610067®Number=0000000000090858&sum=120000 [14:36:31]StoreToDocumentArchive [14:36:31]shift 462 fd 162552 [14:36:31]save to /storage/0462/doc_00162552 [14:36:31]save last doc name /storage/0462/doc_00162552 to /storage/kkm_last_doc_name [14:36:31]save OK [14:36:31]Clear old archive folders... [14:36:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:36:31]tlvbuf is 005D4700 [14:36:31]SAM_PROTO_ClearQueue [14:36:31]wFMCommunicate request_size=4 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 09 00 00 [14:36:31]Write to MH i2c: E2 08 00 79 09 80 09 00 00 00 00 00 00 F4 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 79 09 00 90 00 F6 [14:36:31]RAPDU: 90 00 [14:36:31]wFMCommunicate OK [14:36:31]SAM_PROTO_ClearQueue done [14:36:31]KKMCreateOFDPacket [14:36:31]OFDProtocolAddRootSTLVToBuf [14:36:31]FM_MakeSignedData [14:36:31]FM_MakeSignedData [14:36:31]SAM_PROTO_SignData [14:36:31]wFMCommunicate request_size=4 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 0D 01 02 [14:36:31]Write to MH i2c: E2 08 00 7A 09 80 0D 01 02 00 00 00 00 FC [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 7A 09 00 90 00 F7 [14:36:31]RAPDU: 90 00 [14:36:31]wFMCommunicate OK [14:36:31]wFMCommunicate request_size=255 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 DC 00 00 00 F4 03 04 00 EE 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7A 02 00 35 04 06 00 [14:36:31]Write to MH i2c: E2 02 01 7B 09 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 DC 00 00 00 F4 03 04 00 EE 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7A 02 00 35 04 06 00 00 00 1C [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:31]Read from MH i2c: E2 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 [14:36:31]MH_I2C_Read... [14:36:31]Read from MH i2c: E2 03 00 7B 09 00 90 00 F8 [14:36:31]RAPDU: 90 00 [14:36:31]wFMCommunicate OK [14:36:31]wFMCommunicate request_size=11 [14:36:31]MH_SAM_APDU [14:36:31]CAPDU: 80 0D 02 02 06 54 4C 59 69 7E 95 [14:36:31]Write to MH i2c: E2 0E 00 7C 09 80 0D 02 02 06 00 54 4C 59 69 7E 95 00 00 80 [14:36:31]Write i2c OK [14:36:31]MH_I2C_Read... [14:36:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:32]Read from MH i2c: E2 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 03 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 03 00 7C 09 00 90 00 F9 [14:36:32]RAPDU: 90 00 [14:36:32]wFMCommunicate OK [14:36:32]wFMCommunicate request_size=4 [14:36:32]MH_SAM_APDU [14:36:32]CAPDU: 80 0D 03 02 [14:36:32]Write to MH i2c: E2 08 00 7D 09 80 0D 03 02 00 00 00 00 01 [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:32]Read from MH i2c: E2 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 0B 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 0B 00 7D 09 00 A7 4C E7 59 4B C1 17 70 90 00 C8 [14:36:32]RAPDU: A7 4C E7 59 4B C1 17 70 90 00 [14:36:32]wFMCommunicate OK [14:36:32]SAM_PROTO_SignData done [14:36:32]FM_MakeSignedData done [14:36:32]CreateOFDProtocolMessage [14:36:32]wFMCommunicate request_size=4 [14:36:32]MH_SAM_APDU [14:36:32]CAPDU: 80 11 00 00 [14:36:32]Write to MH i2c: E2 08 00 7E 09 80 11 00 00 00 00 00 00 01 [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:32]Read from MH i2c: E2 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: E2 17 00 [14:36:32]MH_I2C_Read... [14:36:32]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 34 38 39 39 90 00 61 [14:36:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:36:32]wFMCommunicate OK [14:36:32]CreateOFDProtocolMessage done [14:36:32]OFDSenderStorePacket 162552 [14:36:32]StoreOFDPacket docnum=162552 [14:36:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8E 1A 08 01 D5 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 DC 00 00 00 F4 03 04 00 EE 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7A 02 00 35 04 06 00 54 4C 59 69 7E 95 A7 4C E7 59 4B C1 17 70 [14:36:32]CheckFolder [14:36:32]dirname=/storage/ofd_packets [14:36:32]CheckFolder done [14:36:32]ProducePacketName [14:36:32]name=ofd_packets/00162552 [14:36:32]NVStorageSaveData ofd_packets/00162552 [14:36:32]File name is /storage/ofd_packets/00162552 [14:36:32]Write 302 bytes [14:36:32]NVStorageSaveData done [14:36:32]OFDSenderStorePacket done [14:36:32]KKMCreateOFDPacket done [14:36:32]NVStorageSaveData kkm_last_timestamp [14:36:32]File name is /storage/kkm_last_timestamp [14:36:32]Write 4 bytes [14:36:32]NVStorageSaveData done [14:36:32]ExternCall_PrintAddStr [14:36:32]wPrintStart [14:36:32]Write to MH i2c: 01 00 00 7F 09 88 [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: 01 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: 01 07 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: 01 07 00 7F 09 00 00 00 00 00 FF 0F 9D [14:36:32]RasterBufferAndPrint [14:36:32]line Счет N : (1)1319107 [14:36:32]line ИНН: 02508201610067 [14:36:32]line Контрольно-Кассовый Чек [14:36:32]line ПРОДАЖА [14:36:32]line ТРК (МРК, ГНК) : 21 [14:36:32]line Товар: 2710194210 [14:36:32]line ДТ(л)-К-5 [14:36:32]line 16.530 * 72.60 [14:36:32]line = 1200.08 [14:36:32]line НДС 12% НСП 1% [14:36:32]line > о реализуемом товаре [14:36:32]line ОКРУГЛЕНИЕ: -0.08 [14:36:32]line ИТОГО: 1200.00 [14:36:32]line Внесено: 1200.00 [14:36:32]line СДАЧА: 0.00 [14:36:32]line НСП 1% : 10.62 [14:36:32]line НДС 12% : 127.44 [14:36:32]line Наличными: 1200.00 [14:36:32]line Безнал.: 0.00 [14:36:32]line Место: АЗС № 140 "Партнер Нефть" [14:36:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:36:32]line СНО: Общий режим [14:36:32]line Чек 220 13.07.2024 14:36 [14:36:32]line Смена: 462 ФФД: 1.0 [14:36:32]line ЗНМ: 0300000129 [14:36:32]line РНМ: 0000000000090858 [14:36:32]line Версия ККМ: 001 [14:36:32]line ФМ: 0000000000874899 [14:36:32]line ФД: 162552 [14:36:32]line ФПД: 92686894333589 [14:36:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143630&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162552&fm=92686894333589&tin=02508201610067®Number=0000000000090858&sum=120000 [14:36:32]OFD Sender: Processing packet 162552 [packets to send 106, broken 105] [14:36:32]ProducePacketName [14:36:32]name=ofd_packets/00162552 [14:36:32]OFD Sender: To server: pG, [14:36:32]CommunicateWithHost lk.salyk.kg:30040 [14:36:32]ConnectInit lk.salyk.kg [14:36:32]written 0, free lines is 4095 [14:36:32]Connected sock=10 [14:36:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8E 1A 08 01 D5 28 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 DC 00 00 00 F4 03 04 00 EE 90 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7A 02 00 35 04 06 00 54 4C 59 69 7E 95 A7 4C E7 59 4B C1 17 70 [14:36:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 54 34 47 00 0D 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F8 7A 02 00 F4 03 04 00 FD 3C 92 66 B6 04 01 00 00 93 90 44 87 AD D9 92 44 [14:36:32]CommunicateWithHost err = 0 [14:36:32]CheckOFDResponse [14:36:32]1017 (14) - 77093643461234 [14:36:32]1041 (16) - 0000000000874899 [14:36:32]1040 (4) - 162552 [14:36:32]1012 (4) - 13.07.2024 08:38 [14:36:32]1206 (1) - 0 [14:36:32]OFD Sender: Remove packet 162552 [14:36:32]ProducePacketName [14:36:32]name=ofd_packets/00162552 [14:36:32]NVStorageDeleteData [14:36:32]Write to MH i2c: 01 00 00 AA 09 B3 [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: 01 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: 01 07 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: 01 07 00 AA 09 00 00 00 00 00 E2 0C A8 [14:36:32]RasterBufferAndPrint [14:36:32]line [14:36:32]line [14:36:32]line [14:36:32]line [14:36:32]line [14:36:32]written 0, free lines is 3304 [14:36:32]MH_Cut [14:36:32]Write to MH i2c: D1 01 00 B1 09 01 8C [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: D1 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: D1 01 00 [14:36:32]MH_I2C_Read... [14:36:32]Read from MH i2c: D1 01 00 B1 09 00 8B [14:36:32]Write to MH i2c: 01 00 00 B2 09 BB [14:36:32]Write i2c OK [14:36:32]MH_I2C_Read... [14:36:33]OFD Sender: No OFD packet to send [14:36:33]*** Cut start [14:36:33]*** Purtial cut [14:36:33]*** CUTSNS_PIN = 0 [14:36:33]*** Stage 1: CUTSNS_PIN = 1 [14:36:35]Read from MH i2c: 01 [14:36:35]MH_I2C_Read... [14:36:35]*** Stop cut motor [14:36:35]*** Cut end [14:36:35]Read from MH i2c: 01 07 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: 01 07 00 B2 09 00 00 00 00 00 FF 0F D0 [14:36:35]process_action close_receipt done [14:36:35]requested_data is exist [14:36:35]produce_requested_data [14:36:35]requested_item fm.sn is exist - process it [14:36:35]wFMCommunicate request_size=4 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 11 00 00 [14:36:35]Write to MH i2c: E2 08 00 B3 09 80 11 00 00 00 00 00 00 36 [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:35]Read from MH i2c: E2 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 17 00 [14:36:35]MH_I2C_Read... [14:36:35]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 34 38 39 39 90 00 96 [14:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:36:35]wFMCommunicate OK [14:36:35]requested_item fd.num is exist - process it [14:36:35]SAM_PROTO_GetFieldsCounters [14:36:35]wFMCommunicate request_size=4 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 13 00 00 [14:36:35]Write to MH i2c: E2 08 00 B4 09 80 13 00 00 00 00 00 00 39 [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:35]Read from MH i2c: E2 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 62 00 [14:36:35]MH_I2C_Read... [14:36:35]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [14:36:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F8 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:35]wFMCommunicate OK [14:36:35]SAM_PROTO_GetFieldsCounters done [14:36:35]requested_item shift.num is exist - process it [14:36:35]requested_item shift.opened is exist - process it [14:36:35]req_shift_opened [14:36:35]FM_GetShiftState [14:36:35]SAM_PROTO_GetShiftState [14:36:35]wFMCommunicate request_size=4 [14:36:35]MH_SAM_APDU [14:36:35]CAPDU: 80 13 01 00 [14:36:35]Write to MH i2c: E2 08 00 B5 09 80 13 01 00 00 00 00 00 3B [14:36:35]Write i2c OK [14:36:35]MH_I2C_Read... [14:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:35]Read from MH i2c: E2 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 0E 00 [14:36:35]MH_I2C_Read... [14:36:35]Read from MH i2c: E2 0E 00 B5 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 35 [14:36:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:36:35]wFMCommunicate OK [14:36:35]SAM_PROTO_GetShiftState done [14:36:35]FM_GetShiftState done [14:36:35]req_shift_opened done [14:36:35]requested_item shift.open_date is exist - process it [14:36:35]req_shift_open_date [14:36:35]req_shift_open_date done [14:36:35]produce_requested_data done [14:36:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162552,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:36:35]process_action_free close_receipt [14:36:35]json_value_free [14:36:35]json_value_free done [14:36:35]process_json_proto returns [14:36:35]Send response to host [14:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162552,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:36:35]free response buf [14:36:35]execute_script done [14:36:35]execute_script returns [14:36:35]free content buf [14:36:35]Sock 7.Close socket [14:36:35]Sock 7.Thread stoped [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:13]accept exits with 9 [14:37:13]New connection [14:37:13]New thread 3067366756 created [14:37:13]Thread 3067510116 joined [14:37:13]Waiting for new connection... [14:37:13] Sock 9.Parse request [14:37:13]Sock 9.Check first char [14:37:13]Sock 9.First char is OK [14:37:13]request: POST /json_proto HTTP/1.0 [14:37:13]Method: POST [14:37:13]URL: /json_proto [14:37:13]Method is POST - this is cgi request [14:37:13]url: /json_proto [14:37:13]query_string will be loaded in cgi processing [14:37:13]execute_cgi json_proto POST (null) [14:37:13]execute_cgi path=json_proto method=POST [14:37:13]POST find Content-Length [14:37:13]Host: 172.17.39.67:8080 [14:37:13]Content-Length: 678 [14:37:13]Content-Type: application/json [14:37:13] [14:37:13]POST finish read [14:37:13]Found Content-Length = 678 [14:37:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.850, "sum" : 520.46, "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" ] } } [14:37:13]execute_script... [14:37: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)1319109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.850, "sum" : 520.46, "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" ] } } [14:37:13]POST & json_proto [14:37:13]process_json_proto [14:37:13]json parsed OK: [14:37:13]protocol is kg_v1.0 [14:37:13]action value=close_receipt [14:37:13]process_action close_receipt [14:37:13]cmd_close_receipt [14:37:13]MH_GetDate [14:37:13]Write to MH i2c: F0 00 00 B6 09 AE [14:37:13]Write i2c OK [14:37:13]MH_I2C_Read... [14:37:13]Read from MH i2c: F0 [14:37:13]MH_I2C_Read... [14:37:13]Read from MH i2c: F0 09 00 [14:37:13]MH_I2C_Read... [14:37:13]Read from MH i2c: F0 09 00 B6 09 00 1A 91 92 66 86 7C 92 66 54 [14:37:13]GetLastDocTimeStamp 1720881390 [14:37:13]current date 1720881434 [14:37:13]FM_GetShiftState [14:37:13]SAM_PROTO_GetShiftState [14:37:13]wFMCommunicate request_size=4 [14:37:13]MH_SAM_APDU [14:37:13]CAPDU: 80 13 01 00 [14:37:13]Write to MH i2c: E2 08 00 B7 09 80 13 01 00 00 00 00 00 3D [14:37:13]Write i2c OK [14:37:13]MH_I2C_Read... [14:37:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:13]Read from MH i2c: E2 [14:37:13]MH_I2C_Read... [14:37:13]Read from MH i2c: E2 0E 00 [14:37:13]MH_I2C_Read... [14:37:13]Read from MH i2c: E2 0E 00 B7 09 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 37 [14:37:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:37:13]wFMCommunicate OK [14:37:13]SAM_PROTO_GetShiftState done [14:37:13]FM_GetShiftState done [14:37:13]opened in 1720828979 [14:37:13]opened+sec_in_day 1720915379 [14:37:13]quantity*price = 52045 [14:37:13]sum+1 = 52047 [14:37:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 221 13.07.2024 14:37 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162553 ФПД: 203573334664750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143714&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162553&fm=203573334664750&tin=02508201610067®Number=0000000000090858&sum=52000 [14:37:14]StoreToDocumentArchive [14:37:14]shift 462 fd 162553 [14:37:14]save to /storage/0462/doc_00162553 [14:37:14]save last doc name /storage/0462/doc_00162553 to /storage/kkm_last_doc_name [14:37:14]save OK [14:37:14]Clear old archive folders... [14:37:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:37:14]tlvbuf is 006B9720 [14:37:14]SAM_PROTO_ClearQueue [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 09 00 00 [14:37:14]Write to MH i2c: E2 08 00 C4 09 80 09 00 00 00 00 00 00 3F [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 03 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 03 00 C4 09 00 90 00 41 [14:37:14]RAPDU: 90 00 [14:37:14]wFMCommunicate OK [14:37:14]SAM_PROTO_ClearQueue done [14:37:14]KKMCreateOFDPacket [14:37:14]OFDProtocolAddRootSTLVToBuf [14:37:14]FM_MakeSignedData [14:37:14]FM_MakeSignedData [14:37:14]SAM_PROTO_SignData [14:37:14]wFMCommunicate request_size=4 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 0D 01 02 [14:37:14]Write to MH i2c: E2 08 00 C5 09 80 0D 01 02 00 00 00 00 47 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:14]Read from MH i2c: E2 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 03 00 [14:37:14]MH_I2C_Read... [14:37:14]Read from MH i2c: E2 03 00 C5 09 00 90 00 42 [14:37:14]RAPDU: 90 00 [14:37:14]wFMCommunicate OK [14:37:14]wFMCommunicate request_size=255 [14:37:14]MH_SAM_APDU [14:37:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 1E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 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 DD 00 00 00 F4 03 04 00 1A 91 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7A 02 00 35 04 06 00 B9 [14:37:14]Write to MH i2c: E2 02 01 C6 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 1E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 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 DD 00 00 00 F4 03 04 00 1A 91 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7A 02 00 35 04 06 00 B9 00 00 10 [14:37:14]Write i2c OK [14:37:14]MH_I2C_Read... [14:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:15]Read from MH i2c: E2 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 03 00 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 03 00 C6 09 00 90 00 43 [14:37:15]RAPDU: 90 00 [14:37:15]wFMCommunicate OK [14:37:15]wFMCommunicate request_size=10 [14:37:15]MH_SAM_APDU [14:37:15]CAPDU: 80 0D 02 02 05 26 1C 4C 66 2E [14:37:15]Write to MH i2c: E2 0D 00 C7 09 80 0D 02 02 05 00 26 1C 4C 66 2E 00 00 76 [14:37:15]Write i2c OK [14:37:15]MH_I2C_Read... [14:37:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:15]Read from MH i2c: E2 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 03 00 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 03 00 C7 09 00 90 00 44 [14:37:15]RAPDU: 90 00 [14:37:15]wFMCommunicate OK [14:37:15]wFMCommunicate request_size=4 [14:37:15]MH_SAM_APDU [14:37:15]CAPDU: 80 0D 03 02 [14:37:15]Write to MH i2c: E2 08 00 C8 09 80 0D 03 02 00 00 00 00 4C [14:37:15]Write i2c OK [14:37:15]MH_I2C_Read... [14:37:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:15]Read from MH i2c: E2 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 0B 00 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 0B 00 C8 09 00 5C F1 44 D4 A6 73 AE CA 90 00 43 [14:37:15]RAPDU: 5C F1 44 D4 A6 73 AE CA 90 00 [14:37:15]wFMCommunicate OK [14:37:15]SAM_PROTO_SignData done [14:37:15]FM_MakeSignedData done [14:37:15]CreateOFDProtocolMessage [14:37:15]wFMCommunicate request_size=4 [14:37:15]MH_SAM_APDU [14:37:15]CAPDU: 80 11 00 00 [14:37:15]Write to MH i2c: E2 08 00 C9 09 80 11 00 00 00 00 00 00 4C [14:37:15]Write i2c OK [14:37:15]MH_I2C_Read... [14:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:15]Read from MH i2c: E2 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: E2 17 00 [14:37:15]MH_I2C_Read... [14:37:15]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 34 38 39 39 90 00 AC [14:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:37:15]wFMCommunicate OK [14:37:15]CreateOFDProtocolMessage done [14:37:15]OFDSenderStorePacket 162553 [14:37:15]StoreOFDPacket docnum=162553 [14:37:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 04 BF 07 01 F4 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 1E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 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 DD 00 00 00 F4 03 04 00 1A 91 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7A 02 00 35 04 06 00 B9 26 1C 4C 66 2E 5C F1 44 D4 A6 73 AE CA [14:37:15]CheckFolder [14:37:15]dirname=/storage/ofd_packets [14:37:15]CheckFolder done [14:37:15]ProducePacketName [14:37:15]name=ofd_packets/00162553 [14:37:15]NVStorageSaveData ofd_packets/00162553 [14:37:15]File name is /storage/ofd_packets/00162553 [14:37:15]Write 301 bytes [14:37:15]NVStorageSaveData done [14:37:15]OFDSenderStorePacket done [14:37:15]KKMCreateOFDPacket done [14:37:15]NVStorageSaveData kkm_last_timestamp [14:37:15]File name is /storage/kkm_last_timestamp [14:37:15]Write 4 bytes [14:37:15]NVStorageSaveData done [14:37:15]ExternCall_PrintAddStr [14:37:15]wPrintStart [14:37:15]Write to MH i2c: 01 00 00 CA 09 D3 [14:37:15]Write i2c OK [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: 01 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: 01 07 00 [14:37:15]MH_I2C_Read... [14:37:15]Read from MH i2c: 01 07 00 CA 09 00 00 00 00 00 FF 0F E8 [14:37:15]RasterBufferAndPrint [14:37:15]line Счет N : (1)1319109 [14:37:15]line ИНН: 02508201610067 [14:37:15]line Контрольно-Кассовый Чек [14:37:15]line ПРОДАЖА [14:37:15]line ТРК (МРК, ГНК) : 63 [14:37:15]line Товар: 2710124130 [14:37:15]line Аи-92-К-5 [14:37:15]line 7.850 * 66.30 [14:37:15]line = 520.46 [14:37:15]line НДС 12% НСП 1% [14:37:15]line > о реализуемом товаре [14:37:15]line ОКРУГЛЕНИЕ: -0.46 [14:37:15]line ИТОГО: 520.00 [14:37:15]line Внесено: 520.00 [14:37:15]line СДАЧА: 0.00 [14:37:15]line НСП 1% : 4.61 [14:37:15]line НДС 12% : 55.27 [14:37:15]line Наличными: 520.00 [14:37:15]line Безнал.: 0.00 [14:37:15]line Место: АЗС № 140 "Партнер Нефть" [14:37:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:37:15]line СНО: Общий режим [14:37:15]line Чек 221 13.07.2024 14:37 [14:37:15]line Смена: 462 ФФД: 1.0 [14:37:15]line ЗНМ: 0300000129 [14:37:15]line РНМ: 0000000000090858 [14:37:15]line Версия ККМ: 001 [14:37:15]line ФМ: 0000000000874899 [14:37:15]line ФД: 162553 [14:37:15]line ФПД: 203573334664750 [14:37:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T143714&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162553&fm=203573334664750&tin=02508201610067®Number=0000000000090858&sum=52000 [14:37:15]OFD Sender: Processing packet 162553 [packets to send 106, broken 105] [14:37:15]ProducePacketName [14:37:15]name=ofd_packets/00162553 [14:37:15]OFD Sender: To server: pG, [14:37:15]CommunicateWithHost lk.salyk.kg:30040 [14:37:15]ConnectInit lk.salyk.kg [14:37:15]written 0, free lines is 4095 [14:37:15]Connected sock=10 [14:37:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 04 BF 07 01 F4 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 1E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 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 DD 00 00 00 F4 03 04 00 1A 91 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7A 02 00 35 04 06 00 B9 26 1C 4C 66 2E 5C F1 44 D4 A6 73 AE CA [14:37:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E 6F 47 00 A9 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 F9 7A 02 00 F4 03 04 00 29 3D 92 66 B6 04 01 00 00 B7 87 AA 6B 1B 11 8F 8E [14:37:16]CommunicateWithHost err = 0 [14:37:16]CheckOFDResponse [14:37:16]1017 (14) - 77093643461234 [14:37:16]1041 (16) - 0000000000874899 [14:37:16]1040 (4) - 162553 [14:37:16]1012 (4) - 13.07.2024 08:39 [14:37:16]1206 (1) - 0 [14:37:16]OFD Sender: Remove packet 162553 [14:37:16]ProducePacketName [14:37:16]name=ofd_packets/00162553 [14:37:16]NVStorageDeleteData [14:37:16]Write to MH i2c: 01 00 00 F5 09 FE [14:37:16]Write i2c OK [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: 01 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: 01 07 00 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: 01 07 00 F5 09 00 00 00 00 00 DA 0C EB [14:37:16]RasterBufferAndPrint [14:37:16]line [14:37:16]line [14:37:16]line [14:37:16]line [14:37:16]line [14:37:16]written 0, free lines is 3296 [14:37:16]MH_Cut [14:37:16]Write to MH i2c: D1 01 00 FC 09 01 D7 [14:37:16]Write i2c OK [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: D1 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: D1 01 00 [14:37:16]MH_I2C_Read... [14:37:16]Read from MH i2c: D1 01 00 FC 09 00 D6 [14:37:16]Write to MH i2c: 01 00 00 FD 09 06 [14:37:16]Write i2c OK [14:37:16]MH_I2C_Read... [14:37:16]OFD Sender: No OFD packet to send [14:37:16]*** Cut start [14:37:16]*** Purtial cut [14:37:16]*** Stage 1: CUTSNS_PIN = 1 [14:37:17]Read from MH i2c: 01 [14:37:17]MH_I2C_Read... [14:37:17]*** Stop cut motor [14:37:17]*** Cut end [14:37:17]Read from MH i2c: 01 07 00 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: 01 07 00 FD 09 00 00 00 00 00 FF 0F 1B [14:37:17]process_action close_receipt done [14:37:17]requested_data is exist [14:37:17]produce_requested_data [14:37:17]requested_item fm.sn is exist - process it [14:37:17]wFMCommunicate request_size=4 [14:37:17]MH_SAM_APDU [14:37:17]CAPDU: 80 11 00 00 [14:37:17]Write to MH i2c: E2 08 00 FE 09 80 11 00 00 00 00 00 00 81 [14:37:17]Write i2c OK [14:37:17]MH_I2C_Read... [14:37:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:17]Read from MH i2c: E2 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: E2 17 00 [14:37:17]MH_I2C_Read... [14:37:17]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 34 38 39 39 90 00 E1 [14:37:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:37:17]wFMCommunicate OK [14:37:17]requested_item fd.num is exist - process it [14:37:17]SAM_PROTO_GetFieldsCounters [14:37:17]wFMCommunicate request_size=4 [14:37:17]MH_SAM_APDU [14:37:17]CAPDU: 80 13 00 00 [14:37:17]Write to MH i2c: E2 08 00 FF 09 80 13 00 00 00 00 00 00 84 [14:37:17]Write i2c OK [14:37:17]MH_I2C_Read... [14:37:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:17]Read from MH i2c: E2 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: E2 62 00 [14:37:17]MH_I2C_Read... [14:37:17]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [14:37:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:17]wFMCommunicate OK [14:37:17]SAM_PROTO_GetFieldsCounters done [14:37:17]requested_item shift.num is exist - process it [14:37:17]requested_item shift.opened is exist - process it [14:37:17]req_shift_opened [14:37:17]FM_GetShiftState [14:37:17]SAM_PROTO_GetShiftState [14:37:17]wFMCommunicate request_size=4 [14:37:17]MH_SAM_APDU [14:37:17]CAPDU: 80 13 01 00 [14:37:17]Write to MH i2c: E2 08 00 00 0A 80 13 01 00 00 00 00 00 87 [14:37:17]Write i2c OK [14:37:17]MH_I2C_Read... [14:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:17]Read from MH i2c: E2 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: E2 0E 00 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: E2 0E 00 00 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 81 [14:37:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:37:17]wFMCommunicate OK [14:37:17]SAM_PROTO_GetShiftState done [14:37:17]FM_GetShiftState done [14:37:17]req_shift_opened done [14:37:17]requested_item shift.open_date is exist - process it [14:37:17]req_shift_open_date [14:37:17]req_shift_open_date done [14:37:17]produce_requested_data done [14:37:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162553,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:37:17]process_action_free close_receipt [14:37:17]json_value_free [14:37:17]json_value_free done [14:37:17]process_json_proto returns [14:37:17]Send response to host [14:37:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162553,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:37:17]free response buf [14:37:17]execute_script done [14:37:17]execute_script returns [14:37:17]free content buf [14:37:17]Sock 9.Close socket [14:37:17]Sock 9.Thread stoped [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:10]accept exits with 7 [14:41:10]New connection [14:41:10]New thread 3067510116 created [14:41:10]Thread 3067366756 joined [14:41:10]Waiting for new connection... [14:41:10] Sock 7.Parse request [14:41:10]Sock 7.Check first char [14:41:10]Sock 7.First char is OK [14:41:10]request: POST /json_proto HTTP/1.0 [14:41:10]Method: POST [14:41:10]URL: /json_proto [14:41:10]Method is POST - this is cgi request [14:41:10]url: /json_proto [14:41:10]query_string will be loaded in cgi processing [14:41:10]execute_cgi json_proto POST (null) [14:41:10]execute_cgi path=json_proto method=POST [14:41:10]POST find Content-Length [14:41:10]Host: 172.17.39.67:8080 [14:41:10]Content-Length: 1175 [14:41:10]Content-Type: application/json [14:41:10] [14:41:10]POST finish read [14:41:10]Found Content-Length = 1175 [14:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319110\u000A13.07.2024 14:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102596\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:10]execute_script... [14:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319110\u000A13.07.2024 14:38\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102596\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:10]POST & json_proto [14:41:10]process_json_proto [14:41:10]json parsed OK: [14:41:10]protocol is kg_v1.0 [14:41:10]action value=print_text [14:41:10]process_action print_text [14:41:10]cmd_print_text [14:41:10]ExternCall_PrintAddStr [14:41:10]wPrintStart [14:41:10]Write to MH i2c: 01 00 00 01 0A 0B [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 07 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 FF 0F 20 [14:41:10]RasterBufferAndPrint [14:41:10]line *****ТОВАРНЫЙ ЧЕК***** [14:41:10]line АЗС 140 [14:41:10]line Партнер нефть [14:41:10]line 02508201610067 [14:41:10]line Кассир : Шамбеталиев А. [14:41:10]line Счет N : (1)1319110 [14:41:10]line 13.07.2024 14:38 [14:41:10]line ПРОДАЖА [14:41:10]line ТРК (МРК, ГНК): 53 [14:41:10]line Вид ГСМ : 2710124130 [14:41:10]line Аи-92-К-5 [14:41:10]line 20.000 x 66.30 [14:41:10]line ИТОГ: 1326.00 [14:41:10]line Тип оплаты: Талоны: ТК ГПНА Online [14:41:10]line 30102596 [14:41:10]line ______________________ [14:41:10]line (подпись) [14:41:10]written 0, free lines is 4095 [14:41:10]Write to MH i2c: 01 00 00 16 0A 20 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 07 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: 01 07 00 16 0A 00 00 00 00 00 F4 0D 28 [14:41:10]RasterBufferAndPrint [14:41:10]line [14:41:10]line [14:41:10]line [14:41:10]line [14:41:10]line [14:41:10]written 0, free lines is 3573 [14:41:10]MH_Cut [14:41:10]Write to MH i2c: D1 01 00 1D 0A 01 F9 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: D1 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: D1 01 00 [14:41:10]MH_I2C_Read... [14:41:10]Read from MH i2c: D1 01 00 1D 0A 00 F8 [14:41:10]Write to MH i2c: 01 00 00 1E 0A 28 [14:41:10]Write i2c OK [14:41:10]MH_I2C_Read... [14:41:11]*** Cut start [14:41:11]*** Purtial cut [14:41:11]*** CUTSNS_PIN = 0 [14:41:11]*** Stage 1: CUTSNS_PIN = 1 [14:41:11]OFD Sender: No OFD packet to send [14:41:13]Read from MH i2c: 01 [14:41:13]MH_I2C_Read... [14:41:13]*** Stop cut motor [14:41:13]*** Cut end [14:41:13]Read from MH i2c: 01 07 00 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: 01 07 00 1E 0A 00 00 00 00 00 FF 0F 3D [14:41:13]process_action print_text done [14:41:13]requested_data is exist [14:41:13]produce_requested_data [14:41:13]requested_item fm.sn is exist - process it [14:41:13]wFMCommunicate request_size=4 [14:41:13]MH_SAM_APDU [14:41:13]CAPDU: 80 11 00 00 [14:41:13]Write to MH i2c: E2 08 00 1F 0A 80 11 00 00 00 00 00 00 A3 [14:41:13]Write i2c OK [14:41:13]MH_I2C_Read... [14:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:13]Read from MH i2c: E2 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: E2 17 00 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: E2 17 00 1F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [14:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:41:13]wFMCommunicate OK [14:41:13]requested_item fd.num is exist - process it [14:41:13]SAM_PROTO_GetFieldsCounters [14:41:13]wFMCommunicate request_size=4 [14:41:13]MH_SAM_APDU [14:41:13]CAPDU: 80 13 00 00 [14:41:13]Write to MH i2c: E2 08 00 20 0A 80 13 00 00 00 00 00 00 A6 [14:41:13]Write i2c OK [14:41:13]MH_I2C_Read... [14:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:13]Read from MH i2c: E2 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: E2 62 00 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: E2 62 00 20 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [14:41:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 F9 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:13]wFMCommunicate OK [14:41:13]SAM_PROTO_GetFieldsCounters done [14:41:13]requested_item shift.num is exist - process it [14:41:13]requested_item shift.opened is exist - process it [14:41:13]req_shift_opened [14:41:13]FM_GetShiftState [14:41:13]SAM_PROTO_GetShiftState [14:41:13]wFMCommunicate request_size=4 [14:41:13]MH_SAM_APDU [14:41:13]CAPDU: 80 13 01 00 [14:41:13]Write to MH i2c: E2 08 00 21 0A 80 13 01 00 00 00 00 00 A8 [14:41:13]Write i2c OK [14:41:13]MH_I2C_Read... [14:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:13]Read from MH i2c: E2 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: E2 0E 00 [14:41:13]MH_I2C_Read... [14:41:13]Read from MH i2c: E2 0E 00 21 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A2 [14:41:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:41:13]wFMCommunicate OK [14:41:13]SAM_PROTO_GetShiftState done [14:41:13]FM_GetShiftState done [14:41:13]req_shift_opened done [14:41:13]requested_item shift.open_date is exist - process it [14:41:13]req_shift_open_date [14:41:13]req_shift_open_date done [14:41:13]produce_requested_data done [14:41:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162553,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:41:13]process_action_free print_text [14:41:13]json_value_free [14:41:13]json_value_free done [14:41:13]process_json_proto returns [14:41:13]Send response to host [14:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162553,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:41:13]free response buf [14:41:13]execute_script done [14:41:13]execute_script returns [14:41:13]free content buf [14:41:13]Sock 7.Close socket [14:41:13]Sock 7.Thread stoped [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:37]accept exits with 9 [14:51:37]New connection [14:51:37]New thread 3067366756 created [14:51:37]Thread 3067510116 joined [14:51:37]Waiting for new connection... [14:51:37] Sock 9.Parse request [14:51:37]Sock 9.Check first char [14:51:37]Sock 9.First char is OK [14:51:37]request: POST /json_proto HTTP/1.0 [14:51:37]Method: POST [14:51:37]URL: /json_proto [14:51:37]Method is POST - this is cgi request [14:51:37]url: /json_proto [14:51:37]query_string will be loaded in cgi processing [14:51:37]execute_cgi json_proto POST (null) [14:51:37]execute_cgi path=json_proto method=POST [14:51:37]POST find Content-Length [14:51:37]Host: 172.17.39.67:8080 [14:51:37]Content-Length: 648 [14:51:37]Content-Type: application/json [14:51:37] [14:51:37]POST finish read [14:51:37]Found Content-Length = 648 [14:51:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 60.000, "sum" : 4356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:37]execute_script... [14:51: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)1319111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 60.000, "sum" : 4356.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4356.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:37]POST & json_proto [14:51:37]process_json_proto [14:51:37]json parsed OK: [14:51:37]protocol is kg_v1.0 [14:51:37]action value=close_receipt [14:51:37]process_action close_receipt [14:51:37]cmd_close_receipt [14:51:37]MH_GetDate [14:51:37]Write to MH i2c: F0 00 00 22 0A 1B [14:51:37]Write i2c OK [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: F0 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: F0 09 00 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: F0 09 00 22 0A 00 7A 94 92 66 86 7C 92 66 24 [14:51:37]GetLastDocTimeStamp 1720881434 [14:51:37]current date 1720882298 [14:51:37]FM_GetShiftState [14:51:37]SAM_PROTO_GetShiftState [14:51:37]wFMCommunicate request_size=4 [14:51:37]MH_SAM_APDU [14:51:37]CAPDU: 80 13 01 00 [14:51:37]Write to MH i2c: E2 08 00 23 0A 80 13 01 00 00 00 00 00 AA [14:51:37]Write i2c OK [14:51:37]MH_I2C_Read... [14:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:37]Read from MH i2c: E2 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: E2 0E 00 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: E2 0E 00 23 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A4 [14:51:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:51:37]wFMCommunicate OK [14:51:37]SAM_PROTO_GetShiftState done [14:51:37]FM_GetShiftState done [14:51:37]opened in 1720828979 [14:51:37]opened+sec_in_day 1720915379 [14:51:37]quantity*price = 435600 [14:51:37]sum+1 = 435601 [14:51:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4356.00 НСП 1% : 38.55 НДС 12% : 462.58 Наличными: 4356.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 222 13.07.2024 14:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162554 ФПД: 44082040102007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145138&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162554&fm=44082040102007&tin=02508201610067®Number=0000000000090858&sum=435600 [14:51:38]StoreToDocumentArchive [14:51:38]shift 462 fd 162554 [14:51:38]save to /storage/0462/doc_00162554 [14:51:38]save last doc name /storage/0462/doc_00162554 to /storage/kkm_last_doc_name [14:51:38]save OK [14:51:38]Clear old archive folders... [14:51:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:51:38]tlvbuf is 005D0DA0 [14:51:38]SAM_PROTO_ClearQueue [14:51:38]wFMCommunicate request_size=4 [14:51:38]MH_SAM_APDU [14:51:38]CAPDU: 80 09 00 00 [14:51:38]Write to MH i2c: E2 08 00 30 0A 80 09 00 00 00 00 00 00 AC [14:51:38]Write i2c OK [14:51:38]MH_I2C_Read... [14:51:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:38]Read from MH i2c: E2 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 03 00 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [14:51:38]RAPDU: 90 00 [14:51:38]wFMCommunicate OK [14:51:38]SAM_PROTO_ClearQueue done [14:51:38]KKMCreateOFDPacket [14:51:38]OFDProtocolAddRootSTLVToBuf [14:51:38]FM_MakeSignedData [14:51:38]FM_MakeSignedData [14:51:38]SAM_PROTO_SignData [14:51:38]wFMCommunicate request_size=4 [14:51:38]MH_SAM_APDU [14:51:38]CAPDU: 80 0D 01 02 [14:51:38]Write to MH i2c: E2 08 00 31 0A 80 0D 01 02 00 00 00 00 B4 [14:51:38]Write i2c OK [14:51:38]MH_I2C_Read... [14:51:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:38]Read from MH i2c: E2 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 03 00 [14:51:38]MH_I2C_Read... [14:51:38]Read from MH i2c: E2 03 00 31 0A 00 90 00 AF [14:51:38]RAPDU: 90 00 [14:51:38]wFMCommunicate OK [14:51:38]wFMCommunicate request_size=255 [14:51:38]MH_SAM_APDU [14:51:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 7A 94 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7A 02 00 35 04 06 00 [14:51:39]Write to MH i2c: E2 02 01 32 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 7A 94 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7A 02 00 35 04 06 00 00 00 2B [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=11 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 02 02 06 28 17 A6 57 5C 77 [14:51:39]Write to MH i2c: E2 0E 00 33 0A 80 0D 02 02 06 00 28 17 A6 57 5C 77 00 00 D2 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 03 00 33 0A 00 90 00 B1 [14:51:39]RAPDU: 90 00 [14:51:39]wFMCommunicate OK [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 0D 03 02 [14:51:39]Write to MH i2c: E2 08 00 34 0A 80 0D 03 02 00 00 00 00 B9 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 0B 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 0B 00 34 0A 00 D2 69 BD 3F 7E 2B D1 82 90 00 ED [14:51:39]RAPDU: D2 69 BD 3F 7E 2B D1 82 90 00 [14:51:39]wFMCommunicate OK [14:51:39]SAM_PROTO_SignData done [14:51:39]FM_MakeSignedData done [14:51:39]CreateOFDProtocolMessage [14:51:39]wFMCommunicate request_size=4 [14:51:39]MH_SAM_APDU [14:51:39]CAPDU: 80 11 00 00 [14:51:39]Write to MH i2c: E2 08 00 35 0A 80 11 00 00 00 00 00 00 B9 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:39]Read from MH i2c: E2 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 17 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: E2 17 00 35 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 19 [14:51:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:51:39]wFMCommunicate OK [14:51:39]CreateOFDProtocolMessage done [14:51:39]OFDSenderStorePacket 162554 [14:51:39]StoreOFDPacket docnum=162554 [14:51:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1E 7C 08 01 02 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 7A 94 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7A 02 00 35 04 06 00 28 17 A6 57 5C 77 D2 69 BD 3F 7E 2B D1 82 [14:51:39]CheckFolder [14:51:39]dirname=/storage/ofd_packets [14:51:39]CheckFolder done [14:51:39]ProducePacketName [14:51:39]name=ofd_packets/00162554 [14:51:39]NVStorageSaveData ofd_packets/00162554 [14:51:39]File name is /storage/ofd_packets/00162554 [14:51:39]Write 302 bytes [14:51:39]NVStorageSaveData done [14:51:39]OFDSenderStorePacket done [14:51:39]KKMCreateOFDPacket done [14:51:39]NVStorageSaveData kkm_last_timestamp [14:51:39]File name is /storage/kkm_last_timestamp [14:51:39]Write 4 bytes [14:51:39]NVStorageSaveData done [14:51:39]OFD Sender: Processing packet 162554 [packets to send 106, broken 105] [14:51:39]ProducePacketName [14:51:39]name=ofd_packets/00162554 [14:51:39]OFD Sender: To server: pG, [14:51:39]CommunicateWithHost lk.salyk.kg:30040 [14:51:39]ConnectInit lk.salyk.kg [14:51:39]ExternCall_PrintAddStr [14:51:39]wPrintStart [14:51:39]Write to MH i2c: 01 00 00 36 0A 40 [14:51:39]Write i2c OK [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 07 00 [14:51:39]MH_I2C_Read... [14:51:39]Read from MH i2c: 01 07 00 36 0A 00 00 00 00 00 FF 0F 55 [14:51:39]RasterBufferAndPrint [14:51:39]line Счет N : (1)1319111 [14:51:39]line ИНН: 02508201610067 [14:51:39]line Контрольно-Кассовый Чек [14:51:39]line ПРОДАЖА [14:51:39]line ТРК (МРК, ГНК) : 51 [14:51:39]line Товар: 2710194210 [14:51:39]line ДТ(л)-К-5 [14:51:39]line 60.000 * 72.60 [14:51:39]line = 4356.00 [14:51:39]line НДС 12% НСП 1% [14:51:39]line > о реализуемом товаре [14:51:39]line ИТОГО: 4356.00 [14:51:39]line НСП 1% : 38.55 [14:51:39]line НДС 12% : 462.58 [14:51:39]line Наличными: 4356.00 [14:51:39]line Безнал.: 0.00 [14:51:39]line Место: АЗС № 140 "Партнер Нефть" [14:51:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:51:39]line СНО: Общий режим [14:51:39]line Чек 222 13.07.2024 14:51 [14:51:39]line Смена: 462 ФФД: 1.0 [14:51:39]line ЗНМ: 0300000129 [14:51:39]line РНМ: 0000000000090858 [14:51:39]line Версия ККМ: 001 [14:51:39]line ФМ: 0000000000874899 [14:51:39]line ФД: 162554 [14:51:39]line ФПД: 44082040102007 [14:51:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145138&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162554&fm=44082040102007&tin=02508201610067®Number=0000000000090858&sum=435600 [14:51:39]Connected sock=11 [14:51:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1E 7C 08 01 02 77 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 90 A5 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 A5 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 B4 00 00 00 00 07 04 06 00 90 A5 06 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 7A 94 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7A 02 00 35 04 06 00 28 17 A6 57 5C 77 D2 69 BD 3F 7E 2B D1 82 [14:51:39]written 0, free lines is 4095 [14:51:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B9 68 47 00 E7 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FA 7A 02 00 F4 03 04 00 89 40 92 66 B6 04 01 00 00 D4 17 6A E4 33 3F 7C BE [14:51:39]CommunicateWithHost err = 0 [14:51:39]CheckOFDResponse [14:51:39]1017 (14) - 77093643461234 [14:51:39]1041 (16) - 0000000000874899 [14:51:39]1040 (4) - 162554 [14:51:39]1012 (4) - 13.07.2024 08:53 [14:51:39]1206 (1) - 0 [14:51:39]OFD Sender: Remove packet 162554 [14:51:39]ProducePacketName [14:51:39]name=ofd_packets/00162554 [14:51:39]NVStorageDeleteData [14:51:40]Write to MH i2c: 01 00 00 5E 0A 68 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 07 00 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: 01 07 00 5E 0A 00 00 00 00 00 07 0D 83 [14:51:40]RasterBufferAndPrint [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]line [14:51:40]written 0, free lines is 3341 [14:51:40]MH_Cut [14:51:40]Write to MH i2c: D1 01 00 65 0A 01 41 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 01 00 [14:51:40]MH_I2C_Read... [14:51:40]Read from MH i2c: D1 01 00 65 0A 00 40 [14:51:40]Write to MH i2c: 01 00 00 66 0A 70 [14:51:40]Write i2c OK [14:51:40]MH_I2C_Read... [14:51:40]OFD Sender: No OFD packet to send [14:51:40]*** Cut start [14:51:40]*** Purtial cut [14:51:40]*** Stage 1: CUTSNS_PIN = 1 [14:51:41]Read from MH i2c: 01 [14:51:41]MH_I2C_Read... [14:51:41]*** Stop cut motor [14:51:41]*** Cut end [14:51:41]Read from MH i2c: 01 07 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: 01 07 00 66 0A 00 00 00 00 00 FF 0F 85 [14:51:41]process_action close_receipt done [14:51:41]requested_data is exist [14:51:41]produce_requested_data [14:51:41]requested_item fm.sn is exist - process it [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 11 00 00 [14:51:41]Write to MH i2c: E2 08 00 67 0A 80 11 00 00 00 00 00 00 EB [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 17 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 17 00 67 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4B [14:51:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:51:41]wFMCommunicate OK [14:51:41]requested_item fd.num is exist - process it [14:51:41]SAM_PROTO_GetFieldsCounters [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 13 00 00 [14:51:41]Write to MH i2c: E2 08 00 68 0A 80 13 00 00 00 00 00 00 EE [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 62 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 62 00 68 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [14:51:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FA 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:41]wFMCommunicate OK [14:51:41]SAM_PROTO_GetFieldsCounters done [14:51:41]requested_item shift.num is exist - process it [14:51:41]requested_item shift.opened is exist - process it [14:51:41]req_shift_opened [14:51:41]FM_GetShiftState [14:51:41]SAM_PROTO_GetShiftState [14:51:41]wFMCommunicate request_size=4 [14:51:41]MH_SAM_APDU [14:51:41]CAPDU: 80 13 01 00 [14:51:41]Write to MH i2c: E2 08 00 69 0A 80 13 01 00 00 00 00 00 F0 [14:51:41]Write i2c OK [14:51:41]MH_I2C_Read... [14:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:41]Read from MH i2c: E2 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 0E 00 [14:51:41]MH_I2C_Read... [14:51:41]Read from MH i2c: E2 0E 00 69 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EA [14:51:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:51:41]wFMCommunicate OK [14:51:41]SAM_PROTO_GetShiftState done [14:51:41]FM_GetShiftState done [14:51:41]req_shift_opened done [14:51:41]requested_item shift.open_date is exist - process it [14:51:41]req_shift_open_date [14:51:41]req_shift_open_date done [14:51:41]produce_requested_data done [14:51:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162554,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:51:41]process_action_free close_receipt [14:51:41]json_value_free [14:51:41]json_value_free done [14:51:41]process_json_proto returns [14:51:41]Send response to host [14:51:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162554,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:51:41]free response buf [14:51:41]execute_script done [14:51:41]execute_script returns [14:51:41]free content buf [14:51:41]Sock 9.Close socket [14:51:41]Sock 9.Thread stoped [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:42]accept exits with 7 [14:52:42]New connection [14:52:42]New thread 3067510116 created [14:52:42]Thread 3067366756 joined [14:52:42]Waiting for new connection... [14:52:42] Sock 7.Parse request [14:52:42]Sock 7.Check first char [14:52:42]Sock 7.First char is OK [14:52:42]request: POST /json_proto HTTP/1.0 [14:52:42]Method: POST [14:52:42]URL: /json_proto [14:52:42]Method is POST - this is cgi request [14:52:42]url: /json_proto [14:52:42]query_string will be loaded in cgi processing [14:52:42]execute_cgi json_proto POST (null) [14:52:42]execute_cgi path=json_proto method=POST [14:52:42]POST find Content-Length [14:52:42]Host: 172.17.39.67:8080 [14:52:42]Content-Length: 683 [14:52:42]Content-Type: application/json [14:52:42] [14:52:42]POST finish read [14:52:42]Found Content-Length = 683 [14:52:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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:52:42]execute_script... [14:52: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)1319112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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:52:42]POST & json_proto [14:52:42]process_json_proto [14:52:42]json parsed OK: [14:52:42]protocol is kg_v1.0 [14:52:42]action value=close_receipt [14:52:42]process_action close_receipt [14:52:42]cmd_close_receipt [14:52:42]MH_GetDate [14:52:42]Write to MH i2c: F0 00 00 6A 0A 63 [14:52:42]Write i2c OK [14:52:42]MH_I2C_Read... [14:52:42]Read from MH i2c: F0 [14:52:42]MH_I2C_Read... [14:52:42]Read from MH i2c: F0 09 00 [14:52:42]MH_I2C_Read... [14:52:42]Read from MH i2c: F0 09 00 6A 0A 00 BA 94 92 66 86 7C 92 66 AC [14:52:42]GetLastDocTimeStamp 1720882298 [14:52:42]current date 1720882362 [14:52:42]FM_GetShiftState [14:52:42]SAM_PROTO_GetShiftState [14:52:42]wFMCommunicate request_size=4 [14:52:42]MH_SAM_APDU [14:52:42]CAPDU: 80 13 01 00 [14:52:42]Write to MH i2c: E2 08 00 6B 0A 80 13 01 00 00 00 00 00 F2 [14:52:42]Write i2c OK [14:52:42]MH_I2C_Read... [14:52:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:42]Read from MH i2c: E2 [14:52:42]MH_I2C_Read... [14:52:42]Read from MH i2c: E2 0E 00 [14:52:42]MH_I2C_Read... [14:52:42]Read from MH i2c: E2 0E 00 6B 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EC [14:52:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:52:42]wFMCommunicate OK [14:52:42]SAM_PROTO_GetShiftState done [14:52:42]FM_GetShiftState done [14:52:42]opened in 1720828979 [14:52:42]opened+sec_in_day 1720915379 [14:52:42]quantity*price = 150064 [14:52:42]sum+1 = 150066 [14:52:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 223 13.07.2024 14:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162555 ФПД: 214622040992435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145242&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162555&fm=214622040992435&tin=02508201610067®Number=0000000000090858&sum=150000 [14:52:43]StoreToDocumentArchive [14:52:43]shift 462 fd 162555 [14:52:43]save to /storage/0462/doc_00162555 [14:52:43]save last doc name /storage/0462/doc_00162555 to /storage/kkm_last_doc_name [14:52:43]save OK [14:52:43]Clear old archive folders... [14:52:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:52:43]tlvbuf is 005D25B0 [14:52:43]SAM_PROTO_ClearQueue [14:52:43]wFMCommunicate request_size=4 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 09 00 00 [14:52:43]Write to MH i2c: E2 08 00 78 0A 80 09 00 00 00 00 00 00 F4 [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 03 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 03 00 78 0A 00 90 00 F6 [14:52:43]RAPDU: 90 00 [14:52:43]wFMCommunicate OK [14:52:43]SAM_PROTO_ClearQueue done [14:52:43]KKMCreateOFDPacket [14:52:43]OFDProtocolAddRootSTLVToBuf [14:52:43]FM_MakeSignedData [14:52:43]FM_MakeSignedData [14:52:43]SAM_PROTO_SignData [14:52:43]wFMCommunicate request_size=4 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 0D 01 02 [14:52:43]Write to MH i2c: E2 08 00 79 0A 80 0D 01 02 00 00 00 00 FC [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 03 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 03 00 79 0A 00 90 00 F7 [14:52:43]RAPDU: 90 00 [14:52:43]wFMCommunicate OK [14:52:43]wFMCommunicate request_size=255 [14:52:43]MH_SAM_APDU [14:52: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 DF 00 00 00 F4 03 04 00 BA 94 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7A 02 00 35 04 06 00 C3 [14:52:43]Write to MH i2c: E2 02 01 7A 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 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 DF 00 00 00 F4 03 04 00 BA 94 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7A 02 00 35 04 06 00 C3 00 00 35 [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:43]Read from MH i2c: E2 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 03 00 [14:52:43]MH_I2C_Read... [14:52:43]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [14:52:43]RAPDU: 90 00 [14:52:43]wFMCommunicate OK [14:52:43]wFMCommunicate request_size=10 [14:52:43]MH_SAM_APDU [14:52:43]CAPDU: 80 0D 02 02 05 32 96 83 AA B3 [14:52:43]Write to MH i2c: E2 0D 00 7B 0A 80 0D 02 02 05 00 32 96 83 AA B3 00 00 B1 [14:52:43]Write i2c OK [14:52:43]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [14:52:44]RAPDU: 90 00 [14:52:44]wFMCommunicate OK [14:52:44]wFMCommunicate request_size=4 [14:52:44]MH_SAM_APDU [14:52:44]CAPDU: 80 0D 03 02 [14:52:44]Write to MH i2c: E2 08 00 7C 0A 80 0D 03 02 00 00 00 00 01 [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 0B 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 0B 00 7C 0A 00 AE 71 C5 DD 97 AC 7F 2E 90 00 B3 [14:52:44]RAPDU: AE 71 C5 DD 97 AC 7F 2E 90 00 [14:52:44]wFMCommunicate OK [14:52:44]SAM_PROTO_SignData done [14:52:44]FM_MakeSignedData done [14:52:44]CreateOFDProtocolMessage [14:52:44]wFMCommunicate request_size=4 [14:52:44]MH_SAM_APDU [14:52:44]CAPDU: 80 11 00 00 [14:52:44]Write to MH i2c: E2 08 00 7D 0A 80 11 00 00 00 00 00 00 01 [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:44]Read from MH i2c: E2 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 17 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: E2 17 00 7D 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 61 [14:52:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:52:44]wFMCommunicate OK [14:52:44]CreateOFDProtocolMessage done [14:52:44]OFDSenderStorePacket 162555 [14:52:44]StoreOFDPacket docnum=162555 [14:52:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D8 05 07 01 26 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 DF 00 00 00 F4 03 04 00 BA 94 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7A 02 00 35 04 06 00 C3 32 96 83 AA B3 AE 71 C5 DD 97 AC 7F 2E [14:52:44]CheckFolder [14:52:44]dirname=/storage/ofd_packets [14:52:44]CheckFolder done [14:52:44]ProducePacketName [14:52:44]name=ofd_packets/00162555 [14:52:44]NVStorageSaveData ofd_packets/00162555 [14:52:44]File name is /storage/ofd_packets/00162555 [14:52:44]Write 301 bytes [14:52:44]NVStorageSaveData done [14:52:44]OFDSenderStorePacket done [14:52:44]KKMCreateOFDPacket done [14:52:44]NVStorageSaveData kkm_last_timestamp [14:52:44]File name is /storage/kkm_last_timestamp [14:52:44]Write 4 bytes [14:52:44]NVStorageSaveData done [14:52:44]ExternCall_PrintAddStr [14:52:44]wPrintStart [14:52:44]Write to MH i2c: 01 00 00 7E 0A 88 [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 07 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 07 00 7E 0A 00 00 00 00 00 FF 0F 9D [14:52:44]RasterBufferAndPrint [14:52:44]line Счет N : (1)1319112 [14:52:44]line ИНН: 02508201610067 [14:52:44]line Контрольно-Кассовый Чек [14:52:44]line ПРОДАЖА [14:52:44]line ТРК (МРК, ГНК) : 44 [14:52:44]line Товар: 2710124500 [14:52:44]line Аи-95-К-5 [14:52:44]line 20.170 * 74.40 [14:52:44]line = 1500.65 [14:52:44]line НДС 12% НСП 1% [14:52:44]line > о реализуемом товаре [14:52:44]line ОКРУГЛЕНИЕ: -0.65 [14:52:44]line ИТОГО: 1500.00 [14:52:44]line Внесено: 1500.00 [14:52:44]line СДАЧА: 0.00 [14:52:44]line НСП 1% : 13.28 [14:52:44]line НДС 12% : 159.36 [14:52:44]line Наличными: 1500.00 [14:52:44]line Безнал.: 0.00 [14:52:44]line Место: АЗС № 140 "Партнер Нефть" [14:52:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:52:44]line СНО: Общий режим [14:52:44]line Чек 223 13.07.2024 14:52 [14:52:44]line Смена: 462 ФФД: 1.0 [14:52:44]line ЗНМ: 0300000129 [14:52:44]line РНМ: 0000000000090858 [14:52:44]line Версия ККМ: 001 [14:52:44]line ФМ: 0000000000874899 [14:52:44]line ФД: 162555 [14:52:44]line ФПД: 214622040992435 [14:52:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145242&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162555&fm=214622040992435&tin=02508201610067®Number=0000000000090858&sum=150000 [14:52:44]OFD Sender: Processing packet 162555 [packets to send 106, broken 105] [14:52:44]ProducePacketName [14:52:44]name=ofd_packets/00162555 [14:52:44]OFD Sender: To server: pG, [14:52:44]CommunicateWithHost lk.salyk.kg:30040 [14:52:44]ConnectInit lk.salyk.kg [14:52:44]written 0, free lines is 4095 [14:52:44]Connected sock=10 [14:52:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D8 05 07 01 26 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 DF 00 00 00 F4 03 04 00 BA 94 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7A 02 00 35 04 06 00 C3 32 96 83 AA B3 AE 71 C5 DD 97 AC 7F 2E [14:52:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5A 82 47 00 B9 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FB 7A 02 00 F4 03 04 00 C9 40 92 66 B6 04 01 00 00 BF 8A 15 46 3E D6 92 61 [14:52:44]CommunicateWithHost err = 0 [14:52:44]CheckOFDResponse [14:52:44]1017 (14) - 77093643461234 [14:52:44]1041 (16) - 0000000000874899 [14:52:44]1040 (4) - 162555 [14:52:44]1012 (4) - 13.07.2024 08:54 [14:52:44]1206 (1) - 0 [14:52:44]OFD Sender: Remove packet 162555 [14:52:44]ProducePacketName [14:52:44]name=ofd_packets/00162555 [14:52:44]NVStorageDeleteData [14:52:44]Write to MH i2c: 01 00 00 A9 0A B3 [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 07 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: 01 07 00 A9 0A 00 00 00 00 00 E0 0C A6 [14:52:44]RasterBufferAndPrint [14:52:44]line [14:52:44]line [14:52:44]line [14:52:44]line [14:52:44]line [14:52:44]written 0, free lines is 3302 [14:52:44]MH_Cut [14:52:44]Write to MH i2c: D1 01 00 B0 0A 01 8C [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: D1 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: D1 01 00 [14:52:44]MH_I2C_Read... [14:52:44]Read from MH i2c: D1 01 00 B0 0A 00 8B [14:52:44]Write to MH i2c: 01 00 00 B1 0A BB [14:52:44]Write i2c OK [14:52:44]MH_I2C_Read... [14:52:45]OFD Sender: No OFD packet to send [14:52:45]*** Cut start [14:52:45]*** Purtial cut [14:52:45]*** CUTSNS_PIN = 0 [14:52:45]*** Stage 1: CUTSNS_PIN = 1 [14:52:47]Read from MH i2c: 01 [14:52:47]MH_I2C_Read... [14:52:47]*** Stop cut motor [14:52:47]*** Cut end [14:52:47]Read from MH i2c: 01 07 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: 01 07 00 B1 0A 00 00 00 00 00 FF 0F D0 [14:52:47]process_action close_receipt done [14:52:47]requested_data is exist [14:52:47]produce_requested_data [14:52:47]requested_item fm.sn is exist - process it [14:52:47]wFMCommunicate request_size=4 [14:52:47]MH_SAM_APDU [14:52:47]CAPDU: 80 11 00 00 [14:52:47]Write to MH i2c: E2 08 00 B2 0A 80 11 00 00 00 00 00 00 36 [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:47]Read from MH i2c: E2 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 17 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 17 00 B2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 96 [14:52:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:52:47]wFMCommunicate OK [14:52:47]requested_item fd.num is exist - process it [14:52:47]SAM_PROTO_GetFieldsCounters [14:52:47]wFMCommunicate request_size=4 [14:52:47]MH_SAM_APDU [14:52:47]CAPDU: 80 13 00 00 [14:52:47]Write to MH i2c: E2 08 00 B3 0A 80 13 00 00 00 00 00 00 39 [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:47]Read from MH i2c: E2 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 62 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 62 00 B3 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [14:52:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FB 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:47]wFMCommunicate OK [14:52:47]SAM_PROTO_GetFieldsCounters done [14:52:47]requested_item shift.num is exist - process it [14:52:47]requested_item shift.opened is exist - process it [14:52:47]req_shift_opened [14:52:47]FM_GetShiftState [14:52:47]SAM_PROTO_GetShiftState [14:52:47]wFMCommunicate request_size=4 [14:52:47]MH_SAM_APDU [14:52:47]CAPDU: 80 13 01 00 [14:52:47]Write to MH i2c: E2 08 00 B4 0A 80 13 01 00 00 00 00 00 3B [14:52:47]Write i2c OK [14:52:47]MH_I2C_Read... [14:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:47]Read from MH i2c: E2 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 0E 00 [14:52:47]MH_I2C_Read... [14:52:47]Read from MH i2c: E2 0E 00 B4 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 35 [14:52:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:52:47]wFMCommunicate OK [14:52:47]SAM_PROTO_GetShiftState done [14:52:47]FM_GetShiftState done [14:52:47]req_shift_opened done [14:52:47]requested_item shift.open_date is exist - process it [14:52:47]req_shift_open_date [14:52:47]req_shift_open_date done [14:52:47]produce_requested_data done [14:52:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162555,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:52:47]process_action_free close_receipt [14:52:47]json_value_free [14:52:47]json_value_free done [14:52:47]process_json_proto returns [14:52:47]Send response to host [14:52:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162555,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:52:47]free response buf [14:52:47]execute_script done [14:52:47]execute_script returns [14:52:47]free content buf [14:52:47]Sock 7.Close socket [14:52:47]Sock 7.Thread stoped [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [14:54:10]OFD Sender: No OFD packet to send [14:54:15]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:35]OFD Sender: No OFD packet to send [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:56:58]accept exits with 9 [14:56:58]New connection [14:56:58]New thread 3067366756 created [14:56:58]Thread 3067510116 joined [14:56:58]Waiting for new connection... [14:56:58] Sock 9.Parse request [14:56:58]Sock 9.Check first char [14:56:58]Sock 9.First char is OK [14:56:58]request: POST /json_proto HTTP/1.0 [14:56:58]Method: POST [14:56:58]URL: /json_proto [14:56:58]Method is POST - this is cgi request [14:56:58]url: /json_proto [14:56:58]query_string will be loaded in cgi processing [14:56:58]execute_cgi json_proto POST (null) [14:56:58]execute_cgi path=json_proto method=POST [14:56:58]POST find Content-Length [14:56:58]Host: 172.17.39.67:8080 [14:56:58]Content-Length: 688 [14:56:58]Content-Type: application/json [14:56:58] [14:56:58]POST finish read [14:56:58]Found Content-Length = 688 [14:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:56:58]execute_script... [14:56:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [14:56:58]POST & json_proto [14:56:58]process_json_proto [14:56:58]json parsed OK: [14:56:58]protocol is kg_v1.0 [14:56:58]action value=close_receipt [14:56:58]process_action close_receipt [14:56:58]cmd_close_receipt [14:56:58]MH_GetDate [14:56:58]Write to MH i2c: F0 00 00 B5 0A AE [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: F0 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: F0 09 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: F0 09 00 B5 0A 00 BA 95 92 66 86 7C 92 66 F8 [14:56:58]GetLastDocTimeStamp 1720882362 [14:56:58]current date 1720882618 [14:56:58]FM_GetShiftState [14:56:58]SAM_PROTO_GetShiftState [14:56:58]wFMCommunicate request_size=4 [14:56:58]MH_SAM_APDU [14:56:58]CAPDU: 80 13 01 00 [14:56:58]Write to MH i2c: E2 08 00 B6 0A 80 13 01 00 00 00 00 00 3D [14:56:58]Write i2c OK [14:56:58]MH_I2C_Read... [14:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:58]Read from MH i2c: E2 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 0E 00 [14:56:58]MH_I2C_Read... [14:56:58]Read from MH i2c: E2 0E 00 B6 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 37 [14:56:58]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:56:58]wFMCommunicate OK [14:56:58]SAM_PROTO_GetShiftState done [14:56:58]FM_GetShiftState done [14:56:58]opened in 1720828979 [14:56:58]opened+sec_in_day 1720915379 [14:56:58]quantity*price = 140045 [14:56:58]sum+1 = 140046 [14:56:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 224 13.07.2024 14:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162556 ФПД: 111971012255125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145658&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162556&fm=111971012255125&tin=02508201610067®Number=0000000000090858&sum=140000 [14:56:59]StoreToDocumentArchive [14:56:59]shift 462 fd 162556 [14:56:59]save to /storage/0462/doc_00162556 [14:56:59]save last doc name /storage/0462/doc_00162556 to /storage/kkm_last_doc_name [14:56:59]save OK [14:56:59]Clear old archive folders... [14:56:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:56:59]tlvbuf is 006B9D10 [14:56:59]SAM_PROTO_ClearQueue [14:56:59]wFMCommunicate request_size=4 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 09 00 00 [14:56:59]Write to MH i2c: E2 08 00 C3 0A 80 09 00 00 00 00 00 00 3F [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 03 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 03 00 C3 0A 00 90 00 41 [14:56:59]RAPDU: 90 00 [14:56:59]wFMCommunicate OK [14:56:59]SAM_PROTO_ClearQueue done [14:56:59]KKMCreateOFDPacket [14:56:59]OFDProtocolAddRootSTLVToBuf [14:56:59]FM_MakeSignedData [14:56:59]FM_MakeSignedData [14:56:59]SAM_PROTO_SignData [14:56:59]wFMCommunicate request_size=4 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 0D 01 02 [14:56:59]Write to MH i2c: E2 08 00 C4 0A 80 0D 01 02 00 00 00 00 47 [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 03 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 03 00 C4 0A 00 90 00 42 [14:56:59]RAPDU: 90 00 [14:56:59]wFMCommunicate OK [14:56:59]wFMCommunicate request_size=255 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 E0 00 00 00 F4 03 04 00 BA 95 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7A 02 00 35 04 06 00 [14:56:59]Write to MH i2c: E2 02 01 C5 0A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 E0 00 00 00 F4 03 04 00 BA 95 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7A 02 00 35 04 06 00 00 00 90 [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:59]Read from MH i2c: E2 03 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 03 00 C5 0A 00 90 00 43 [14:56:59]RAPDU: 90 00 [14:56:59]wFMCommunicate OK [14:56:59]wFMCommunicate request_size=11 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 0D 02 02 06 65 D6 48 69 1D 95 [14:56:59]Write to MH i2c: E2 0E 00 C6 0A 80 0D 02 02 06 00 65 D6 48 69 1D 95 00 00 F4 [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:56:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:59]Read from MH i2c: E2 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 03 00 [14:56:59]MH_I2C_Read... [14:56:59]Read from MH i2c: E2 03 00 C6 0A 00 90 00 44 [14:56:59]RAPDU: 90 00 [14:56:59]wFMCommunicate OK [14:56:59]wFMCommunicate request_size=4 [14:56:59]MH_SAM_APDU [14:56:59]CAPDU: 80 0D 03 02 [14:56:59]Write to MH i2c: E2 08 00 C7 0A 80 0D 03 02 00 00 00 00 4C [14:56:59]Write i2c OK [14:56:59]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0B 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 0B 00 C7 0A 00 AC 73 9E 78 AE 27 76 CD 90 00 9A [14:57:00]RAPDU: AC 73 9E 78 AE 27 76 CD 90 00 [14:57:00]wFMCommunicate OK [14:57:00]SAM_PROTO_SignData done [14:57:00]FM_MakeSignedData done [14:57:00]CreateOFDProtocolMessage [14:57:00]wFMCommunicate request_size=4 [14:57:00]MH_SAM_APDU [14:57:00]CAPDU: 80 11 00 00 [14:57:00]Write to MH i2c: E2 08 00 C8 0A 80 11 00 00 00 00 00 00 4C [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:00]Read from MH i2c: E2 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 17 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: E2 17 00 C8 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AC [14:57:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:57:00]wFMCommunicate OK [14:57:00]CreateOFDProtocolMessage done [14:57:00]OFDSenderStorePacket 162556 [14:57:00]StoreOFDPacket docnum=162556 [14:57:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 14 EC 08 01 6F C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 E0 00 00 00 F4 03 04 00 BA 95 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7A 02 00 35 04 06 00 65 D6 48 69 1D 95 AC 73 9E 78 AE 27 76 CD [14:57:00]CheckFolder [14:57:00]dirname=/storage/ofd_packets [14:57:00]CheckFolder done [14:57:00]ProducePacketName [14:57:00]name=ofd_packets/00162556 [14:57:00]NVStorageSaveData ofd_packets/00162556 [14:57:00]File name is /storage/ofd_packets/00162556 [14:57:00]Write 302 bytes [14:57:00]NVStorageSaveData done [14:57:00]OFDSenderStorePacket done [14:57:00]KKMCreateOFDPacket done [14:57:00]NVStorageSaveData kkm_last_timestamp [14:57:00]File name is /storage/kkm_last_timestamp [14:57:00]Write 4 bytes [14:57:00]NVStorageSaveData done [14:57:00]ExternCall_PrintAddStr [14:57:00]wPrintStart [14:57:00]Write to MH i2c: 01 00 00 C9 0A D3 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 07 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 07 00 C9 0A 00 00 00 00 00 FF 0F E8 [14:57:00]RasterBufferAndPrint [14:57:00]line Счет N : (1)1319113 [14:57:00]line ИНН: 02508201610067 [14:57:00]line Контрольно-Кассовый Чек [14:57:00]line ПРОДАЖА [14:57:00]line ТРК (МРК, ГНК) : 51 [14:57:00]line Товар: 2710194210 [14:57:00]line ДТ(л)-К-5 [14:57:00]line 19.290 * 72.60 [14:57:00]line = 1400.45 [14:57:00]line НДС 12% НСП 1% [14:57:00]line > о реализуемом товаре [14:57:00]line ОКРУГЛЕНИЕ: -0.45 [14:57:00]line ИТОГО: 1400.00 [14:57:00]line Внесено: 1400.00 [14:57:00]line СДАЧА: 0.00 [14:57:00]line НСП 1% : 12.39 [14:57:00]line НДС 12% : 148.72 [14:57:00]line Наличными: 1400.00 [14:57:00]line Безнал.: 0.00 [14:57:00]line Место: АЗС № 140 "Партнер Нефть" [14:57:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:57:00]line СНО: Общий режим [14:57:00]line Чек 224 13.07.2024 14:56 [14:57:00]line Смена: 462 ФФД: 1.0 [14:57:00]line ЗНМ: 0300000129 [14:57:00]line РНМ: 0000000000090858 [14:57:00]line Версия ККМ: 001 [14:57:00]line ФМ: 0000000000874899 [14:57:00]line ФД: 162556 [14:57:00]line ФПД: 111971012255125 [14:57:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145658&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162556&fm=111971012255125&tin=02508201610067®Number=0000000000090858&sum=140000 [14:57:00]OFD Sender: Processing packet 162556 [packets to send 106, broken 105] [14:57:00]ProducePacketName [14:57:00]name=ofd_packets/00162556 [14:57:00]OFD Sender: To server: pG, [14:57:00]CommunicateWithHost lk.salyk.kg:30040 [14:57:00]ConnectInit lk.salyk.kg [14:57:00]written 0, free lines is 4095 [14:57:00]Connected sock=10 [14:57:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 14 EC 08 01 6F C4 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 E0 00 00 00 F4 03 04 00 BA 95 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7A 02 00 35 04 06 00 65 D6 48 69 1D 95 AC 73 9E 78 AE 27 76 CD [14:57:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8A 8F 47 00 7D 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FC 7A 02 00 F4 03 04 00 C9 41 92 66 B6 04 01 00 00 76 BD A4 33 CF 3E FB 7A [14:57:00]CommunicateWithHost err = 0 [14:57:00]CheckOFDResponse [14:57:00]1017 (14) - 77093643461234 [14:57:00]1041 (16) - 0000000000874899 [14:57:00]1040 (4) - 162556 [14:57:00]1012 (4) - 13.07.2024 08:58 [14:57:00]1206 (1) - 0 [14:57:00]OFD Sender: Remove packet 162556 [14:57:00]ProducePacketName [14:57:00]name=ofd_packets/00162556 [14:57:00]NVStorageDeleteData [14:57:00]Write to MH i2c: 01 00 00 F4 0A FE [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 07 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: 01 07 00 F4 0A 00 00 00 00 00 D6 0C E7 [14:57:00]RasterBufferAndPrint [14:57:00]line [14:57:00]line [14:57:00]line [14:57:00]line [14:57:00]line [14:57:00]written 0, free lines is 3293 [14:57:00]MH_Cut [14:57:00]Write to MH i2c: D1 01 00 FB 0A 01 D7 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: D1 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: D1 01 00 [14:57:00]MH_I2C_Read... [14:57:00]Read from MH i2c: D1 01 00 FB 0A 00 D6 [14:57:00]Write to MH i2c: 01 00 00 FC 0A 06 [14:57:00]Write i2c OK [14:57:00]MH_I2C_Read... [14:57:01]OFD Sender: No OFD packet to send [14:57:01]*** Cut start [14:57:01]*** Purtial cut [14:57:01]*** Stage 1: CUTSNS_PIN = 1 [14:57:01]Read from MH i2c: 01 [14:57:01]*** Stop cut motor [14:57:01]*** Cut end [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: 01 07 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: 01 07 00 FC 0A 00 00 00 00 00 FF 0F 1B [14:57:01]process_action close_receipt done [14:57:01]requested_data is exist [14:57:01]produce_requested_data [14:57:01]requested_item fm.sn is exist - process it [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 11 00 00 [14:57:01]Write to MH i2c: E2 08 00 FD 0A 80 11 00 00 00 00 00 00 81 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:01]Read from MH i2c: E2 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 17 00 [14:57:01]MH_I2C_Read... [14:57:01]Read from MH i2c: E2 17 00 FD 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [14:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:57:01]wFMCommunicate OK [14:57:01]requested_item fd.num is exist - process it [14:57:01]SAM_PROTO_GetFieldsCounters [14:57:01]wFMCommunicate request_size=4 [14:57:01]MH_SAM_APDU [14:57:01]CAPDU: 80 13 00 00 [14:57:01]Write to MH i2c: E2 08 00 FE 0A 80 13 00 00 00 00 00 00 84 [14:57:01]Write i2c OK [14:57:01]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 62 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 62 00 FE 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [14:57:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FC 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:02]wFMCommunicate OK [14:57:02]SAM_PROTO_GetFieldsCounters done [14:57:02]requested_item shift.num is exist - process it [14:57:02]requested_item shift.opened is exist - process it [14:57:02]req_shift_opened [14:57:02]FM_GetShiftState [14:57:02]SAM_PROTO_GetShiftState [14:57:02]wFMCommunicate request_size=4 [14:57:02]MH_SAM_APDU [14:57:02]CAPDU: 80 13 01 00 [14:57:02]Write to MH i2c: E2 08 00 FF 0A 80 13 01 00 00 00 00 00 86 [14:57:02]Write i2c OK [14:57:02]MH_I2C_Read... [14:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:02]Read from MH i2c: E2 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 0E 00 [14:57:02]MH_I2C_Read... [14:57:02]Read from MH i2c: E2 0E 00 FF 0A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 80 [14:57:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:57:02]wFMCommunicate OK [14:57:02]SAM_PROTO_GetShiftState done [14:57:02]FM_GetShiftState done [14:57:02]req_shift_opened done [14:57:02]requested_item shift.open_date is exist - process it [14:57:02]req_shift_open_date [14:57:02]req_shift_open_date done [14:57:02]produce_requested_data done [14:57:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162556,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:57:02]process_action_free close_receipt [14:57:02]json_value_free [14:57:02]json_value_free done [14:57:02]process_json_proto returns [14:57:02]Send response to host [14:57:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162556,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:57:02]free response buf [14:57:02]execute_script done [14:57:02]execute_script returns [14:57:02]free content buf [14:57:02]Sock 9.Close socket [14:57:02]Sock 9.Thread stoped [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]OFD Sender: No OFD packet to send [14:59:11]OFD Sender: No OFD packet to send [14:59:16]OFD Sender: No OFD packet to send [14:59:21]OFD Sender: No OFD packet to send [14:59:26]OFD Sender: No OFD packet to send [14:59:30]accept exits with 7 [14:59:30]New connection [14:59:30]New thread 3067510116 created [14:59:30]Thread 3067366756 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.39.67:8080 [14:59:30]Content-Length: 679 [14:59:30]Content-Type: application/json [14:59:30] [14:59:30]POST finish read [14:59:30]Found Content-Length = 679 [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)1319114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 12.070, "sum" : 800.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14: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)1319114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 12.070, "sum" : 800.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14: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 00 0B FA [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 00 0B 00 52 96 92 66 86 7C 92 66 DD [14:59:30]GetLastDocTimeStamp 1720882618 [14:59:30]current date 1720882770 [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 01 0B 80 13 01 00 00 00 00 00 89 [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 01 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 83 [14:59:30]RAPDU: 09 00 01 33 C4 91 66 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 1720828979 [14:59:30]opened+sec_in_day 1720915379 [14:59:30]quantity*price = 80024 [14:59:30]sum+1 = 80025 [14:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 225 13.07.2024 14:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162557 ФПД: 241721641775950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145930&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162557&fm=241721641775950&tin=02508201610067®Number=0000000000090858&sum=80000 [14:59:31]StoreToDocumentArchive [14:59:31]shift 462 fd 162557 [14:59:31]save to /storage/0462/doc_00162557 [14:59:31]save last doc name /storage/0462/doc_00162557 to /storage/kkm_last_doc_name [14:59:31]save OK [14:59:31]Clear old archive folders... [14:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:31]tlvbuf is 006B9910 [14:59:31]SAM_PROTO_ClearQueue [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 09 00 00 [14:59:31]Write to MH i2c: E2 08 00 0E 0B 80 09 00 00 00 00 00 00 8B [14:59:31]OFD Sender: No OFD packet to send [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 0E 0B 00 90 00 8D [14:59:31]RAPDU: 90 00 [14:59:31]wFMCommunicate OK [14:59:31]SAM_PROTO_ClearQueue done [14:59:31]KKMCreateOFDPacket [14:59:31]OFDProtocolAddRootSTLVToBuf [14:59:31]FM_MakeSignedData [14:59:31]FM_MakeSignedData [14:59:31]SAM_PROTO_SignData [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 0D 01 02 [14:59:31]Write to MH i2c: E2 08 00 0F 0B 80 0D 01 02 00 00 00 00 93 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 0F 0B 00 90 00 8E [14:59:31]RAPDU: 90 00 [14:59:31]wFMCommunicate OK [14:59:31]wFMCommunicate request_size=255 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 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 E1 00 00 00 F4 03 04 00 52 96 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7A 02 00 35 04 06 00 DB [14:59:31]Write to MH i2c: E2 02 01 10 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 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 E1 00 00 00 F4 03 04 00 52 96 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7A 02 00 35 04 06 00 DB 00 00 43 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 10 0B 00 90 00 8F [14:59:31]RAPDU: 90 00 [14:59:31]wFMCommunicate OK [14:59:31]wFMCommunicate request_size=10 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 0D 02 02 05 D8 34 97 B3 4E [14:59:31]Write to MH i2c: E2 0D 00 11 0B 80 0D 02 02 05 00 D8 34 97 B3 4E 00 00 44 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 03 00 11 0B 00 90 00 90 [14:59:31]RAPDU: 90 00 [14:59:31]wFMCommunicate OK [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 0D 03 02 [14:59:31]Write to MH i2c: E2 08 00 12 0B 80 0D 03 02 00 00 00 00 98 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0B 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 0B 00 12 0B 00 66 A5 EE 45 66 2A BF 5B 90 00 81 [14:59:31]RAPDU: 66 A5 EE 45 66 2A BF 5B 90 00 [14:59:31]wFMCommunicate OK [14:59:31]SAM_PROTO_SignData done [14:59:31]FM_MakeSignedData done [14:59:31]CreateOFDProtocolMessage [14:59:31]wFMCommunicate request_size=4 [14:59:31]MH_SAM_APDU [14:59:31]CAPDU: 80 11 00 00 [14:59:31]Write to MH i2c: E2 08 00 13 0B 80 11 00 00 00 00 00 00 98 [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:31]Read from MH i2c: E2 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 17 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: E2 17 00 13 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F8 [14:59:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:59:31]wFMCommunicate OK [14:59:31]CreateOFDProtocolMessage done [14:59:31]OFDSenderStorePacket 162557 [14:59:31]StoreOFDPacket docnum=162557 [14:59:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0A 63 07 01 74 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 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 E1 00 00 00 F4 03 04 00 52 96 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7A 02 00 35 04 06 00 DB D8 34 97 B3 4E 66 A5 EE 45 66 2A BF 5B [14:59:31]CheckFolder [14:59:31]dirname=/storage/ofd_packets [14:59:31]CheckFolder done [14:59:31]ProducePacketName [14:59:31]name=ofd_packets/00162557 [14:59:31]NVStorageSaveData ofd_packets/00162557 [14:59:31]File name is /storage/ofd_packets/00162557 [14:59:31]Write 301 bytes [14:59:31]NVStorageSaveData done [14:59:31]OFDSenderStorePacket done [14:59:31]KKMCreateOFDPacket done [14:59:31]NVStorageSaveData kkm_last_timestamp [14:59:31]File name is /storage/kkm_last_timestamp [14:59:31]Write 4 bytes [14:59:31]NVStorageSaveData done [14:59:31]ExternCall_PrintAddStr [14:59:31]wPrintStart [14:59:31]Write to MH i2c: 01 00 00 14 0B 1F [14:59:31]Write i2c OK [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: 01 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: 01 07 00 [14:59:31]MH_I2C_Read... [14:59:31]Read from MH i2c: 01 07 00 14 0B 00 00 00 00 00 FF 0F 34 [14:59:31]RasterBufferAndPrint [14:59:31]line Счет N : (1)1319114 [14:59:31]line ИНН: 02508201610067 [14:59:31]line Контрольно-Кассовый Чек [14:59:31]line ПРОДАЖА [14:59:31]line ТРК (МРК, ГНК) : 53 [14:59:31]line Товар: 2710124130 [14:59:31]line Аи-92-К-5 [14:59:31]line 12.070 * 66.30 [14:59:31]line = 800.24 [14:59:31]line НДС 12% НСП 1% [14:59:31]line > о реализуемом товаре [14:59:31]line ОКРУГЛЕНИЕ: -0.24 [14:59:31]line ИТОГО: 800.00 [14:59:31]line Внесено: 800.00 [14:59:31]line СДАЧА: 0.00 [14:59:31]line НСП 1% : 7.08 [14:59:31]line НДС 12% : 84.98 [14:59:31]line Наличными: 800.00 [14:59:31]line Безнал.: 0.00 [14:59:31]line Место: АЗС № 140 "Партнер Нефть" [14:59:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:59:31]line СНО: Общий режим [14:59:31]line Чек 225 13.07.2024 14:59 [14:59:31]line Смена: 462 ФФД: 1.0 [14:59:31]line ЗНМ: 0300000129 [14:59:31]line РНМ: 0000000000090858 [14:59:31]line Версия ККМ: 001 [14:59:31]line ФМ: 0000000000874899 [14:59:31]line ФД: 162557 [14:59:31]line ФПД: 241721641775950 [14:59:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T145930&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162557&fm=241721641775950&tin=02508201610067®Number=0000000000090858&sum=80000 [14:59:31]written 0, free lines is 4095 [14:59:32]OFD Sender: Processing packet 162557 [packets to send 106, broken 105] [14:59:32]ProducePacketName [14:59:32]name=ofd_packets/00162557 [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]Connected sock=10 [14:59:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0A 63 07 01 74 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 2F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 98 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 E1 00 00 00 F4 03 04 00 52 96 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7A 02 00 35 04 06 00 DB D8 34 97 B3 4E 66 A5 EE 45 66 2A BF 5B [14:59:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 44 11 47 00 AE 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FD 7A 02 00 F4 03 04 00 61 42 92 66 B6 04 01 00 00 36 C4 79 15 BE BD 64 4C [14:59:32]CommunicateWithHost err = 0 [14:59:32]CheckOFDResponse [14:59:32]1017 (14) - 77093643461234 [14:59:32]1041 (16) - 0000000000874899 [14:59:32]1040 (4) - 162557 [14:59:32]1012 (4) - 13.07.2024 09:01 [14:59:32]1206 (1) - 0 [14:59:32]OFD Sender: Remove packet 162557 [14:59:32]ProducePacketName [14:59:32]name=ofd_packets/00162557 [14:59:32]NVStorageDeleteData [14:59:32]Write to MH i2c: 01 00 00 3F 0B 4A [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 3F 0B 00 00 00 00 00 E2 0C 3F [14:59:32]RasterBufferAndPrint [14:59:32]line [14:59:32]line [14:59:32]line [14:59:32]line [14:59:32]line [14:59:32]written 0, free lines is 3304 [14:59:32]MH_Cut [14:59:32]Write to MH i2c: D1 01 00 46 0B 01 23 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: D1 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: D1 01 00 [14:59:32]MH_I2C_Read... [14:59:32]Read from MH i2c: D1 01 00 46 0B 00 22 [14:59:32]Write to MH i2c: 01 00 00 47 0B 52 [14:59:32]Write i2c OK [14:59:32]MH_I2C_Read... [14:59:32]OFD Sender: No OFD packet to send [14:59:33]*** Cut start [14:59:33]*** Purtial cut [14:59:33]*** CUTSNS_PIN = 0 [14:59:33]*** Stage 1: CUTSNS_PIN = 1 [14:59:35]Read from MH i2c: 01 [14:59:35]MH_I2C_Read... [14:59:35]*** Stop cut motor [14:59:35]*** Cut end [14:59:35]Read from MH i2c: 01 07 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: 01 07 00 47 0B 00 00 00 00 00 FF 0F 67 [14:59:35]process_action close_receipt done [14:59:35]requested_data is exist [14:59:35]produce_requested_data [14:59:35]requested_item fm.sn is exist - process it [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 11 00 00 [14:59:35]Write to MH i2c: E2 08 00 48 0B 80 11 00 00 00 00 00 00 CD [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 17 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 17 00 48 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2D [14:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [14:59:35]wFMCommunicate OK [14:59:35]requested_item fd.num is exist - process it [14:59:35]SAM_PROTO_GetFieldsCounters [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 13 00 00 [14:59:35]Write to MH i2c: E2 08 00 49 0B 80 13 00 00 00 00 00 00 D0 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 62 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 62 00 49 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [14:59:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FD 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_GetFieldsCounters done [14:59:35]requested_item shift.num is exist - process it [14:59:35]requested_item shift.opened is exist - process it [14:59:35]req_shift_opened [14:59:35]FM_GetShiftState [14:59:35]SAM_PROTO_GetShiftState [14:59:35]wFMCommunicate request_size=4 [14:59:35]MH_SAM_APDU [14:59:35]CAPDU: 80 13 01 00 [14:59:35]Write to MH i2c: E2 08 00 4A 0B 80 13 01 00 00 00 00 00 D2 [14:59:35]Write i2c OK [14:59:35]MH_I2C_Read... [14:59:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:35]Read from MH i2c: E2 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0E 00 [14:59:35]MH_I2C_Read... [14:59:35]Read from MH i2c: E2 0E 00 4A 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CC [14:59:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [14:59:35]wFMCommunicate OK [14:59:35]SAM_PROTO_GetShiftState done [14:59:35]FM_GetShiftState done [14:59:35]req_shift_opened done [14:59:35]requested_item shift.open_date is exist - process it [14:59:35]req_shift_open_date [14:59:35]req_shift_open_date done [14:59:35]produce_requested_data done [14:59:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162557,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [14:59:35]process_action_free close_receipt [14:59:35]json_value_free [14:59:35]json_value_free done [14:59:35]process_json_proto returns [14:59:35]Send response to host [14:59:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162557,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [14:59:35]free response buf [14:59:35]execute_script done [14:59:35]execute_script returns [14:59:35]free content buf [14:59:35]Sock 7.Close socket [14:59:35]Sock 7.Thread stoped [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:34]accept exits with 9 [15:00:34]New connection [15:00:34]New thread 3067366756 created [15:00:34]Thread 3067510116 joined [15:00:34]Waiting for new connection... [15:00:34] Sock 9.Parse request [15:00:34]Sock 9.Check first char [15:00:34]Sock 9.First char is OK [15:00:34]request: POST /json_proto HTTP/1.0 [15:00:34]Method: POST [15:00:34]URL: /json_proto [15:00:34]Method is POST - this is cgi request [15:00:34]url: /json_proto [15:00:34]query_string will be loaded in cgi processing [15:00:34]execute_cgi json_proto POST (null) [15:00:34]execute_cgi path=json_proto method=POST [15:00:34]POST find Content-Length [15:00:34]Host: 172.17.39.67:8080 [15:00:34]Content-Length: 679 [15:00:34]Content-Type: application/json [15:00:34] [15:00:34]POST finish read [15:00:34]Found Content-Length = 679 [15:00:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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:00:34]execute_script... [15:00: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)1319115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.560, "sum" : 700.13, "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:00:34]POST & json_proto [15:00:34]process_json_proto [15:00:34]json parsed OK: [15:00:34]protocol is kg_v1.0 [15:00:34]action value=close_receipt [15:00:34]process_action close_receipt [15:00:34]cmd_close_receipt [15:00:34]MH_GetDate [15:00:34]Write to MH i2c: F0 00 00 4B 0B 45 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: F0 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: F0 09 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: F0 09 00 4B 0B 00 92 96 92 66 86 7C 92 66 68 [15:00:34]GetLastDocTimeStamp 1720882770 [15:00:34]current date 1720882834 [15:00:34]FM_GetShiftState [15:00:34]SAM_PROTO_GetShiftState [15:00:34]wFMCommunicate request_size=4 [15:00:34]MH_SAM_APDU [15:00:34]CAPDU: 80 13 01 00 [15:00:34]Write to MH i2c: E2 08 00 4C 0B 80 13 01 00 00 00 00 00 D4 [15:00:34]Write i2c OK [15:00:34]MH_I2C_Read... [15:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:34]Read from MH i2c: E2 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 0E 00 [15:00:34]MH_I2C_Read... [15:00:34]Read from MH i2c: E2 0E 00 4C 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CE [15:00:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:00:34]wFMCommunicate OK [15:00:34]SAM_PROTO_GetShiftState done [15:00:34]FM_GetShiftState done [15:00:34]opened in 1720828979 [15:00:34]opened+sec_in_day 1720915379 [15:00:34]quantity*price = 70012 [15:00:34]sum+1 = 70014 [15:00:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 226 13.07.2024 15:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162558 ФПД: 49379885495255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150034&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162558&fm=49379885495255&tin=02508201610067®Number=0000000000090858&sum=70000 [15:00:35]StoreToDocumentArchive [15:00:35]shift 462 fd 162558 [15:00:35]save to /storage/0462/doc_00162558 [15:00:35]save last doc name /storage/0462/doc_00162558 to /storage/kkm_last_doc_name [15:00:35]save OK [15:00:35]Clear old archive folders... [15:00:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:35]tlvbuf is B6E30070 [15:00:35]SAM_PROTO_ClearQueue [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 09 00 00 [15:00:35]Write to MH i2c: E2 08 00 59 0B 80 09 00 00 00 00 00 00 D6 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 03 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 03 00 59 0B 00 90 00 D8 [15:00:35]RAPDU: 90 00 [15:00:35]wFMCommunicate OK [15:00:35]SAM_PROTO_ClearQueue done [15:00:35]KKMCreateOFDPacket [15:00:35]OFDProtocolAddRootSTLVToBuf [15:00:35]FM_MakeSignedData [15:00:35]FM_MakeSignedData [15:00:35]SAM_PROTO_SignData [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 0D 01 02 [15:00:35]Write to MH i2c: E2 08 00 5A 0B 80 0D 01 02 00 00 00 00 DE [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 03 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 03 00 5A 0B 00 90 00 D9 [15:00:35]RAPDU: 90 00 [15:00:35]wFMCommunicate OK [15:00:35]wFMCommunicate request_size=255 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 92 96 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7A 02 00 35 04 06 00 2C [15:00:35]Write to MH i2c: E2 02 01 5B 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 92 96 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7A 02 00 35 04 06 00 2C 00 00 02 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 03 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 03 00 5B 0B 00 90 00 DA [15:00:35]RAPDU: 90 00 [15:00:35]wFMCommunicate OK [15:00:35]wFMCommunicate request_size=10 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 0D 02 02 05 E9 26 88 B3 D7 [15:00:35]Write to MH i2c: E2 0D 00 5C 0B 80 0D 02 02 05 00 E9 26 88 B3 D7 00 00 0C [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 03 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 03 00 5C 0B 00 90 00 DB [15:00:35]RAPDU: 90 00 [15:00:35]wFMCommunicate OK [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 0D 03 02 [15:00:35]Write to MH i2c: E2 08 00 5D 0B 80 0D 03 02 00 00 00 00 E3 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 0B 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 0B 00 5D 0B 00 A5 DF 7F 1A DC 77 6C C7 90 00 87 [15:00:35]RAPDU: A5 DF 7F 1A DC 77 6C C7 90 00 [15:00:35]wFMCommunicate OK [15:00:35]SAM_PROTO_SignData done [15:00:35]FM_MakeSignedData done [15:00:35]CreateOFDProtocolMessage [15:00:35]wFMCommunicate request_size=4 [15:00:35]MH_SAM_APDU [15:00:35]CAPDU: 80 11 00 00 [15:00:35]Write to MH i2c: E2 08 00 5E 0B 80 11 00 00 00 00 00 00 E3 [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:35]Read from MH i2c: E2 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 17 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: E2 17 00 5E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 43 [15:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:00:35]wFMCommunicate OK [15:00:35]CreateOFDProtocolMessage done [15:00:35]OFDSenderStorePacket 162558 [15:00:35]StoreOFDPacket docnum=162558 [15:00:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 26 49 07 01 3A 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 92 96 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7A 02 00 35 04 06 00 2C E9 26 88 B3 D7 A5 DF 7F 1A DC 77 6C C7 [15:00:35]CheckFolder [15:00:35]dirname=/storage/ofd_packets [15:00:35]CheckFolder done [15:00:35]ProducePacketName [15:00:35]name=ofd_packets/00162558 [15:00:35]NVStorageSaveData ofd_packets/00162558 [15:00:35]File name is /storage/ofd_packets/00162558 [15:00:35]Write 301 bytes [15:00:35]NVStorageSaveData done [15:00:35]OFDSenderStorePacket done [15:00:35]KKMCreateOFDPacket done [15:00:35]NVStorageSaveData kkm_last_timestamp [15:00:35]File name is /storage/kkm_last_timestamp [15:00:35]Write 4 bytes [15:00:35]NVStorageSaveData done [15:00:35]ExternCall_PrintAddStr [15:00:35]wPrintStart [15:00:35]Write to MH i2c: 01 00 00 5F 0B 6A [15:00:35]Write i2c OK [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: 01 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: 01 07 00 [15:00:35]MH_I2C_Read... [15:00:35]Read from MH i2c: 01 07 00 5F 0B 00 00 00 00 00 FF 0F 7F [15:00:35]RasterBufferAndPrint [15:00:35]line Счет N : (1)1319115 [15:00:35]line ИНН: 02508201610067 [15:00:35]line Контрольно-Кассовый Чек [15:00:35]line ПРОДАЖА [15:00:35]line ТРК (МРК, ГНК) : 43 [15:00:35]line Товар: 2710124130 [15:00:35]line Аи-92-К-5 [15:00:35]line 10.560 * 66.30 [15:00:35]line = 700.13 [15:00:35]line НДС 12% НСП 1% [15:00:35]line > о реализуемом товаре [15:00:35]line ОКРУГЛЕНИЕ: -0.13 [15:00:35]line ИТОГО: 700.00 [15:00:35]line Внесено: 700.00 [15:00:35]line СДАЧА: 0.00 [15:00:35]line НСП 1% : 6.20 [15:00:35]line НДС 12% : 74.35 [15:00:35]line Наличными: 700.00 [15:00:35]line Безнал.: 0.00 [15:00:35]line Место: АЗС № 140 "Партнер Нефть" [15:00:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:00:35]line СНО: Общий режим [15:00:35]line Чек 226 13.07.2024 15:00 [15:00:35]line Смена: 462 ФФД: 1.0 [15:00:35]line ЗНМ: 0300000129 [15:00:35]line РНМ: 0000000000090858 [15:00:35]line Версия ККМ: 001 [15:00:35]line ФМ: 0000000000874899 [15:00:36]line ФД: 162558 [15:00:36]line ФПД: 49379885495255 [15:00:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150034&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162558&fm=49379885495255&tin=02508201610067®Number=0000000000090858&sum=70000 [15:00:36]OFD Sender: Processing packet 162558 [packets to send 106, broken 105] [15:00:36]ProducePacketName [15:00:36]name=ofd_packets/00162558 [15:00:36]OFD Sender: To server: pG, [15:00:36]CommunicateWithHost lk.salyk.kg:30040 [15:00:36]ConnectInit lk.salyk.kg [15:00:36]written 0, free lines is 4095 [15:00:36]Connected sock=10 [15:00:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 26 49 07 01 3A 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 29 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 00 00 00 F4 03 04 00 92 96 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7A 02 00 35 04 06 00 2C E9 26 88 B3 D7 A5 DF 7F 1A DC 77 6C C7 [15:00:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D3 8C 47 00 17 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FE 7A 02 00 F4 03 04 00 A1 42 92 66 B6 04 01 00 00 D2 AC 76 CC F1 CF 36 91 [15:00:36]CommunicateWithHost err = 0 [15:00:36]CheckOFDResponse [15:00:36]1017 (14) - 77093643461234 [15:00:36]1041 (16) - 0000000000874899 [15:00:36]1040 (4) - 162558 [15:00:36]1012 (4) - 13.07.2024 09:02 [15:00:36]1206 (1) - 0 [15:00:36]OFD Sender: Remove packet 162558 [15:00:36]ProducePacketName [15:00:36]name=ofd_packets/00162558 [15:00:36]NVStorageDeleteData [15:00:36]Write to MH i2c: 01 00 00 8A 0B 95 [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: 01 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: 01 07 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: 01 07 00 8A 0B 00 00 00 00 00 DA 0C 82 [15:00:36]RasterBufferAndPrint [15:00:36]line [15:00:36]line [15:00:36]line [15:00:36]line [15:00:36]line [15:00:36]written 0, free lines is 3296 [15:00:36]MH_Cut [15:00:36]Write to MH i2c: D1 01 00 91 0B 01 6E [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: D1 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: D1 01 00 [15:00:36]MH_I2C_Read... [15:00:36]Read from MH i2c: D1 01 00 91 0B 00 6D [15:00:36]Write to MH i2c: 01 00 00 92 0B 9D [15:00:36]Write i2c OK [15:00:36]MH_I2C_Read... [15:00:36]OFD Sender: No OFD packet to send [15:00:37]*** Cut start [15:00:37]*** Purtial cut [15:00:37]*** Stage 1: CUTSNS_PIN = 1 [15:00:37]Read from MH i2c: 01 [15:00:37]MH_I2C_Read... [15:00:37]*** Stop cut motor [15:00:37]*** Cut end [15:00:37]Read from MH i2c: 01 07 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 FF 0F B2 [15:00:37]process_action close_receipt done [15:00:37]requested_data is exist [15:00:37]produce_requested_data [15:00:37]requested_item fm.sn is exist - process it [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 11 00 00 [15:00:37]Write to MH i2c: E2 08 00 93 0B 80 11 00 00 00 00 00 00 18 [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 17 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 17 00 93 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 78 [15:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:00:37]wFMCommunicate OK [15:00:37]requested_item fd.num is exist - process it [15:00:37]SAM_PROTO_GetFieldsCounters [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 13 00 00 [15:00:37]Write to MH i2c: E2 08 00 94 0B 80 13 00 00 00 00 00 00 1B [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 62 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 62 00 94 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [15:00:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:00:37]wFMCommunicate OK [15:00:37]SAM_PROTO_GetFieldsCounters done [15:00:37]requested_item shift.num is exist - process it [15:00:37]requested_item shift.opened is exist - process it [15:00:37]req_shift_opened [15:00:37]FM_GetShiftState [15:00:37]SAM_PROTO_GetShiftState [15:00:37]wFMCommunicate request_size=4 [15:00:37]MH_SAM_APDU [15:00:37]CAPDU: 80 13 01 00 [15:00:37]Write to MH i2c: E2 08 00 95 0B 80 13 01 00 00 00 00 00 1D [15:00:37]Write i2c OK [15:00:37]MH_I2C_Read... [15:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:37]Read from MH i2c: E2 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 0E 00 [15:00:37]MH_I2C_Read... [15:00:37]Read from MH i2c: E2 0E 00 95 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 17 [15:00:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:00:37]wFMCommunicate OK [15:00:37]SAM_PROTO_GetShiftState done [15:00:37]FM_GetShiftState done [15:00:37]req_shift_opened done [15:00:37]requested_item shift.open_date is exist - process it [15:00:37]req_shift_open_date [15:00:37]req_shift_open_date done [15:00:37]produce_requested_data done [15:00:37]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162558,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:00:37]process_action_free close_receipt [15:00:37]json_value_free [15:00:37]json_value_free done [15:00:37]process_json_proto returns [15:00:37]Send response to host [15:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162558,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:00:37]free response buf [15:00:37]execute_script done [15:00:37]execute_script returns [15:00:37]free content buf [15:00:37]Sock 9.Close socket [15:00:37]Sock 9.Thread stoped [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:16]accept exits with 7 [15:03:16]New connection [15:03:16]New thread 3067510116 created [15:03:16]Thread 3067366756 joined [15:03:16]Waiting for new connection... [15:03:16] Sock 7.Parse request [15:03:16]Sock 7.Check first char [15:03:16]Sock 7.First char is OK [15:03:16]request: POST /json_proto HTTP/1.0 [15:03:16]Method: POST [15:03:16]URL: /json_proto [15:03:16]Method is POST - this is cgi request [15:03:16]url: /json_proto [15:03:16]query_string will be loaded in cgi processing [15:03:16]execute_cgi json_proto POST (null) [15:03:16]execute_cgi path=json_proto method=POST [15:03:16]POST find Content-Length [15:03:16]Host: 172.17.39.67:8080 [15:03:16]Content-Length: 1212 [15:03:16]Content-Type: application/json [15:03:16] [15:03:16]POST finish read [15:03:16]Found Content-Length = 1212 [15:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319116\u000A13.07.2024 15:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 994.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:16]execute_script... [15:03:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319116\u000A13.07.2024 15:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 994.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:16]POST & json_proto [15:03:16]process_json_proto [15:03:16]json parsed OK: [15:03:16]protocol is kg_v1.0 [15:03:16]action value=print_text [15:03:16]process_action print_text [15:03:16]cmd_print_text [15:03:16]ExternCall_PrintAddStr [15:03:16]wPrintStart [15:03:16]Write to MH i2c: 01 00 00 96 0B A1 [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: 01 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: 01 07 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: 01 07 00 96 0B 00 00 00 00 00 FF 0F B6 [15:03:16]RasterBufferAndPrint [15:03:16]line *****ТОВАРНЫЙ ЧЕК***** [15:03:16]line АЗС 140 [15:03:16]line Партнер нефть [15:03:16]line 02508201610067 [15:03:16]line Кассир : Шамбеталиев А. [15:03:16]line Счет N : (1)1319116 [15:03:16]line 13.07.2024 15:00 [15:03:16]line ПРОДАЖА [15:03:16]line ТРК (МРК, ГНК): 63 [15:03:16]line Вид ГСМ : 2710124130 [15:03:16]line Аи-92-К-5 [15:03:16]line 15.000 x 66.30 [15:03:16]line ИТОГ: 994.50 [15:03:16]line Тип оплаты: Талоны: Топливная Карта [15:03:16]line 32788 [15:03:16]line ______________________ [15:03:16]line (подпись) [15:03:16]written 0, free lines is 4095 [15:03:16]Write to MH i2c: 01 00 00 AB 0B B6 [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: 01 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: 01 07 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 F4 0D BE [15:03:16]RasterBufferAndPrint [15:03:16]line [15:03:16]line [15:03:16]line [15:03:16]line [15:03:16]line [15:03:16]written 0, free lines is 3574 [15:03:16]MH_Cut [15:03:16]Write to MH i2c: D1 01 00 B2 0B 01 8F [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: D1 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: D1 01 00 [15:03:16]MH_I2C_Read... [15:03:16]Read from MH i2c: D1 01 00 B2 0B 00 8E [15:03:16]Write to MH i2c: 01 00 00 B3 0B BE [15:03:16]Write i2c OK [15:03:16]MH_I2C_Read... [15:03:16]*** Cut start [15:03:16]*** Purtial cut [15:03:16]*** CUTSNS_PIN = 0 [15:03:17]OFD Sender: No OFD packet to send [15:03:17]*** Stage 1: CUTSNS_PIN = 1 [15:03:18]Read from MH i2c: 01 [15:03:18]MH_I2C_Read... [15:03:18]*** Stop cut motor [15:03:18]*** Cut end [15:03:18]Read from MH i2c: 01 07 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: 01 07 00 B3 0B 00 00 00 00 00 FF 0F D3 [15:03:18]process_action print_text done [15:03:18]requested_data is exist [15:03:18]produce_requested_data [15:03:18]requested_item fm.sn is exist - process it [15:03:18]wFMCommunicate request_size=4 [15:03:18]MH_SAM_APDU [15:03:18]CAPDU: 80 11 00 00 [15:03:18]Write to MH i2c: E2 08 00 B4 0B 80 11 00 00 00 00 00 00 39 [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:18]Read from MH i2c: E2 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 17 00 [15:03:18]MH_I2C_Read... [15:03:18]Read from MH i2c: E2 17 00 B4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [15:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:03:18]wFMCommunicate OK [15:03:18]requested_item fd.num is exist - process it [15:03:18]SAM_PROTO_GetFieldsCounters [15:03:18]wFMCommunicate request_size=4 [15:03:18]MH_SAM_APDU [15:03:18]CAPDU: 80 13 00 00 [15:03:18]Write to MH i2c: E2 08 00 B5 0B 80 13 00 00 00 00 00 00 3C [15:03:18]Write i2c OK [15:03:18]MH_I2C_Read... [15:03:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 62 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 62 00 B5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [15:03:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FE 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:19]wFMCommunicate OK [15:03:19]SAM_PROTO_GetFieldsCounters done [15:03:19]requested_item shift.num is exist - process it [15:03:19]requested_item shift.opened is exist - process it [15:03:19]req_shift_opened [15:03:19]FM_GetShiftState [15:03:19]SAM_PROTO_GetShiftState [15:03:19]wFMCommunicate request_size=4 [15:03:19]MH_SAM_APDU [15:03:19]CAPDU: 80 13 01 00 [15:03:19]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [15:03:19]Write i2c OK [15:03:19]MH_I2C_Read... [15:03:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:19]Read from MH i2c: E2 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 [15:03:19]MH_I2C_Read... [15:03:19]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 38 [15:03:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:03:19]wFMCommunicate OK [15:03:19]SAM_PROTO_GetShiftState done [15:03:19]FM_GetShiftState done [15:03:19]req_shift_opened done [15:03:19]requested_item shift.open_date is exist - process it [15:03:19]req_shift_open_date [15:03:19]req_shift_open_date done [15:03:19]produce_requested_data done [15:03:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162558,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:03:19]process_action_free print_text [15:03:19]json_value_free [15:03:19]json_value_free done [15:03:19]process_json_proto returns [15:03:19]Send response to host [15:03:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162558,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:03:19]free response buf [15:03:19]execute_script done [15:03:19]execute_script returns [15:03:19]free content buf [15:03:19]Sock 7.Close socket [15:03:19]Sock 7.Thread stoped [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:25]accept exits with 9 [15:05:25]New connection [15:05:25]New thread 3067366756 created [15:05:25]Thread 3067510116 joined [15:05:25]Waiting for new connection... [15:05:25] Sock 9.Parse request [15:05:25]Sock 9.Check first char [15:05:25]Sock 9.First char is OK [15:05:25]request: POST /json_proto HTTP/1.0 [15:05:25]Method: POST [15:05:25]URL: /json_proto [15:05:25]Method is POST - this is cgi request [15:05:25]url: /json_proto [15:05:25]query_string will be loaded in cgi processing [15:05:25]execute_cgi json_proto POST (null) [15:05:25]execute_cgi path=json_proto method=POST [15:05:25]POST find Content-Length [15:05:25]Host: 172.17.39.67:8080 [15:05:25]Content-Length: 801 [15:05:25]Content-Type: application/json [15:05:25] [15:05:25]POST finish read [15:05:25]Found Content-Length = 801 [15:05:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.020, "sum" : 399.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" : 399.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:25]execute_script... [15: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)1319117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.020, "sum" : 399.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" : 399.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:25]POST & json_proto [15:05:25]process_json_proto [15:05:25]json parsed OK: [15:05:25]protocol is kg_v1.0 [15:05:25]action value=close_receipt [15:05:25]process_action close_receipt [15:05:25]cmd_close_receipt [15:05:25]MH_GetDate [15:05:25]Write to MH i2c: F0 00 00 B7 0B B1 [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: F0 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: F0 09 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: F0 09 00 B7 0B 00 B6 97 92 66 86 7C 92 66 F9 [15:05:25]GetLastDocTimeStamp 1720882834 [15:05:25]current date 1720883126 [15:05:25]FM_GetShiftState [15:05:25]SAM_PROTO_GetShiftState [15:05:25]wFMCommunicate request_size=4 [15:05:25]MH_SAM_APDU [15:05:25]CAPDU: 80 13 01 00 [15:05:25]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [15:05:25]Write i2c OK [15:05:25]MH_I2C_Read... [15:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:25]Read from MH i2c: E2 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 0E 00 [15:05:25]MH_I2C_Read... [15:05:25]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3A [15:05:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:05:25]wFMCommunicate OK [15:05:25]SAM_PROTO_GetShiftState done [15:05:25]FM_GetShiftState done [15:05:25]opened in 1720828979 [15:05:25]opened+sec_in_day 1720915379 [15:05:25]quantity*price = 39912 [15:05:25]sum+1 = 39914 [15:05:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 399.13 НСП 1% : 3.53 НДС 12% : 42.38 Наличными: 0.00 Безнал.: 399.13 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 227 13.07.2024 15:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162559 ФПД: 240957418092358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150526&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162559&fm=240957418092358&tin=02508201610067®Number=0000000000090858&sum=39913 [15:05:26]StoreToDocumentArchive [15:05:26]shift 462 fd 162559 [15:05:26]save to /storage/0462/doc_00162559 [15:05:26]save last doc name /storage/0462/doc_00162559 to /storage/kkm_last_doc_name [15:05:26]save OK [15:05:26]Clear old archive folders... [15:05:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:26]tlvbuf is 005B7A90 [15:05:26]SAM_PROTO_ClearQueue [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 09 00 00 [15:05:26]Write to MH i2c: E2 08 00 C5 0B 80 09 00 00 00 00 00 00 42 [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [15:05:26]RAPDU: 90 00 [15:05:26]wFMCommunicate OK [15:05:26]SAM_PROTO_ClearQueue done [15:05:26]KKMCreateOFDPacket [15:05:26]OFDProtocolAddRootSTLVToBuf [15:05:26]FM_MakeSignedData [15:05:26]FM_MakeSignedData [15:05:26]SAM_PROTO_SignData [15:05:26]wFMCommunicate request_size=4 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 0D 01 02 [15:05:26]Write to MH i2c: E2 08 00 C6 0B 80 0D 01 02 00 00 00 00 4A [15:05:26]Write i2c OK [15:05:26]MH_I2C_Read... [15:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:26]Read from MH i2c: E2 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 [15:05:26]MH_I2C_Read... [15:05:26]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [15:05:26]RAPDU: 90 00 [15:05:26]wFMCommunicate OK [15:05:26]wFMCommunicate request_size=255 [15:05:26]MH_SAM_APDU [15:05:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E9 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 B6 97 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7A 02 00 35 04 06 00 DB [15:05:26]Write to MH i2c: E2 02 01 C7 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E9 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 B6 97 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7A 02 00 35 04 06 00 DB 00 00 D9 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]OFD Sender: No OFD packet to send [15:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [15:05:27]RAPDU: 90 00 [15:05:27]wFMCommunicate OK [15:05:27]wFMCommunicate request_size=10 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 0D 02 02 05 26 45 4F B7 46 [15:05:27]Write to MH i2c: E2 0D 00 C8 0B 80 0D 02 02 05 00 26 45 4F B7 46 00 00 0E [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [15:05:27]RAPDU: 90 00 [15:05:27]wFMCommunicate OK [15:05:27]wFMCommunicate request_size=4 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 0D 03 02 [15:05:27]Write to MH i2c: E2 08 00 C9 0B 80 0D 03 02 00 00 00 00 4F [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 0B 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 0B 00 C9 0B 00 61 E4 3A A6 59 FF D4 AA 90 00 4B [15:05:27]RAPDU: 61 E4 3A A6 59 FF D4 AA 90 00 [15:05:27]wFMCommunicate OK [15:05:27]SAM_PROTO_SignData done [15:05:27]FM_MakeSignedData done [15:05:27]CreateOFDProtocolMessage [15:05:27]wFMCommunicate request_size=4 [15:05:27]MH_SAM_APDU [15:05:27]CAPDU: 80 11 00 00 [15:05:27]Write to MH i2c: E2 08 00 CA 0B 80 11 00 00 00 00 00 00 4F [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:27]Read from MH i2c: E2 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 17 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: E2 17 00 CA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [15:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:05:27]wFMCommunicate OK [15:05:27]CreateOFDProtocolMessage done [15:05:27]OFDSenderStorePacket 162559 [15:05:27]StoreOFDPacket docnum=162559 [15:05:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 71 B4 07 01 83 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E9 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 B6 97 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7A 02 00 35 04 06 00 DB 26 45 4F B7 46 61 E4 3A A6 59 FF D4 AA [15:05:27]CheckFolder [15:05:27]dirname=/storage/ofd_packets [15:05:27]CheckFolder done [15:05:27]ProducePacketName [15:05:27]name=ofd_packets/00162559 [15:05:27]NVStorageSaveData ofd_packets/00162559 [15:05:27]File name is /storage/ofd_packets/00162559 [15:05:27]Write 301 bytes [15:05:27]NVStorageSaveData done [15:05:27]OFDSenderStorePacket done [15:05:27]KKMCreateOFDPacket done [15:05:27]NVStorageSaveData kkm_last_timestamp [15:05:27]File name is /storage/kkm_last_timestamp [15:05:27]Write 4 bytes [15:05:27]NVStorageSaveData done [15:05:27]ExternCall_PrintAddStr [15:05:27]wPrintStart [15:05:27]Write to MH i2c: 01 00 00 CB 0B D6 [15:05:27]Write i2c OK [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 07 00 [15:05:27]MH_I2C_Read... [15:05:27]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [15:05:27]RasterBufferAndPrint [15:05:27]line Счет N : (1)1319117 [15:05:27]line ИНН: 02508201610067 [15:05:27]line Контрольно-Кассовый Чек [15:05:27]line ПРОДАЖА [15:05:27]line ТРК (МРК, ГНК) : 43 [15:05:27]line Товар: 2710124130 [15:05:27]line Аи-92-К-5 [15:05:27]line 6.020 * 66.30 [15:05:27]line = 399.13 [15:05:27]line НДС 12% НСП 1% [15:05:27]line > о реализуемом товаре [15:05:27]line ИТОГО: 399.13 [15:05:27]line НСП 1% : 3.53 [15:05:27]line НДС 12% : 42.38 [15:05:27]line Наличными: 0.00 [15:05:27]line Безнал.: 399.13 [15:05:27]line Место: АЗС № 140 "Партнер Нефть" [15:05:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:05:27]line СНО: Общий режим [15:05:27]line Чек 227 13.07.2024 15:05 [15:05:27]line Смена: 462 ФФД: 1.0 [15:05:27]line ЗНМ: 0300000129 [15:05:27]line РНМ: 0000000000090858 [15:05:27]line Версия ККМ: 001 [15:05:27]line Платежная система: O! деньги [15:05:27]line ФМ: 0000000000874899 [15:05:27]line ФД: 162559 [15:05:27]line ФПД: 240957418092358 [15:05:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150526&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162559&fm=240957418092358&tin=02508201610067®Number=0000000000090858&sum=39913 [15:05:27]OFD Sender: Processing packet 162559 [packets to send 106, broken 105] [15:05:27]ProducePacketName [15:05:27]name=ofd_packets/00162559 [15:05:27]OFD Sender: To server: pG, [15:05:27]CommunicateWithHost lk.salyk.kg:30040 [15:05:27]ConnectInit lk.salyk.kg [15:05:27]written 0, free lines is 4095 [15:05:27]Connected sock=10 [15:05:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 71 B4 07 01 83 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 E9 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E9 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E9 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 B6 97 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7A 02 00 35 04 06 00 DB 26 45 4F B7 46 61 E4 3A A6 59 FF D4 AA [15:05:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 06 2D 47 00 29 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 FF 7A 02 00 F4 03 04 00 C5 43 92 66 B6 04 01 00 00 5B 08 89 09 40 31 13 0C [15:05:28]CommunicateWithHost err = 0 [15:05:28]CheckOFDResponse [15:05:28]1017 (14) - 77093643461234 [15:05:28]1041 (16) - 0000000000874899 [15:05:28]1040 (4) - 162559 [15:05:28]1012 (4) - 13.07.2024 09:07 [15:05:28]1206 (1) - 0 [15:05:28]OFD Sender: Remove packet 162559 [15:05:28]ProducePacketName [15:05:28]name=ofd_packets/00162559 [15:05:28]NVStorageDeleteData [15:05:28]Write to MH i2c: 01 00 00 F5 0B 00 [15:05:28]Write i2c OK [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: 01 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: 01 07 00 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: 01 07 00 F5 0B 00 00 00 00 00 F7 0C 0A [15:05:28]RasterBufferAndPrint [15:05:28]line [15:05:28]line [15:05:28]line [15:05:28]line [15:05:28]line [15:05:28]written 0, free lines is 3328 [15:05:28]MH_Cut [15:05:28]Write to MH i2c: D1 01 00 FC 0B 01 D9 [15:05:28]Write i2c OK [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: D1 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: D1 01 00 [15:05:28]MH_I2C_Read... [15:05:28]Read from MH i2c: D1 01 00 FC 0B 00 D8 [15:05:28]Write to MH i2c: 01 00 00 FD 0B 08 [15:05:28]Write i2c OK [15:05:28]MH_I2C_Read... [15:05:28]OFD Sender: No OFD packet to send [15:05:28]*** Cut start [15:05:28]*** Purtial cut [15:05:28]*** Stage 1: CUTSNS_PIN = 1 [15:05:29]Read from MH i2c: 01 [15:05:29]MH_I2C_Read... [15:05:29]*** Stop cut motor [15:05:29]*** Cut end [15:05:29]Read from MH i2c: 01 07 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: 01 07 00 FD 0B 00 00 00 00 00 FF 0F 1D [15:05:29]process_action close_receipt done [15:05:29]requested_data is exist [15:05:29]produce_requested_data [15:05:29]requested_item fm.sn is exist - process it [15:05:29]wFMCommunicate request_size=4 [15:05:29]MH_SAM_APDU [15:05:29]CAPDU: 80 11 00 00 [15:05:29]Write to MH i2c: E2 08 00 FE 0B 80 11 00 00 00 00 00 00 83 [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:29]Read from MH i2c: E2 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 17 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 17 00 FE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E3 [15:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:05:29]wFMCommunicate OK [15:05:29]requested_item fd.num is exist - process it [15:05:29]SAM_PROTO_GetFieldsCounters [15:05:29]wFMCommunicate request_size=4 [15:05:29]MH_SAM_APDU [15:05:29]CAPDU: 80 13 00 00 [15:05:29]Write to MH i2c: E2 08 00 FF 0B 80 13 00 00 00 00 00 00 86 [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:29]Read from MH i2c: E2 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 62 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 62 00 FF 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [15:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 FF 7A 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:29]wFMCommunicate OK [15:05:29]SAM_PROTO_GetFieldsCounters done [15:05:29]requested_item shift.num is exist - process it [15:05:29]requested_item shift.opened is exist - process it [15:05:29]req_shift_opened [15:05:29]FM_GetShiftState [15:05:29]SAM_PROTO_GetShiftState [15:05:29]wFMCommunicate request_size=4 [15:05:29]MH_SAM_APDU [15:05:29]CAPDU: 80 13 01 00 [15:05:29]Write to MH i2c: E2 08 00 00 0C 80 13 01 00 00 00 00 00 89 [15:05:29]Write i2c OK [15:05:29]MH_I2C_Read... [15:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:29]Read from MH i2c: E2 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 0E 00 [15:05:29]MH_I2C_Read... [15:05:29]Read from MH i2c: E2 0E 00 00 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 83 [15:05:29]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:05:29]wFMCommunicate OK [15:05:29]SAM_PROTO_GetShiftState done [15:05:29]FM_GetShiftState done [15:05:29]req_shift_opened done [15:05:29]requested_item shift.open_date is exist - process it [15:05:29]req_shift_open_date [15:05:29]req_shift_open_date done [15:05:29]produce_requested_data done [15:05:29]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162559,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:05:29]process_action_free close_receipt [15:05:29]json_value_free [15:05:29]json_value_free done [15:05:29]process_json_proto returns [15:05:29]Send response to host [15:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162559,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:05:29]free response buf [15:05:29]execute_script done [15:05:29]execute_script returns [15:05:29]free content buf [15:05:29]Sock 9.Close socket [15:05:29]Sock 9.Thread stoped [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]accept exits with 7 [15:07:13]New connection [15:07:13]New thread 3067510116 created [15:07:13]Thread 3067366756 joined [15:07:13]Waiting for new connection... [15:07:13] Sock 7.Parse request [15:07:13]Sock 7.Check first char [15:07:13]Sock 7.First char is OK [15:07:13]request: POST /json_proto HTTP/1.0 [15:07:13]Method: POST [15:07:13]URL: /json_proto [15:07:13]Method is POST - this is cgi request [15:07:13]url: /json_proto [15:07:13]query_string will be loaded in cgi processing [15:07:13]execute_cgi json_proto POST (null) [15:07:13]execute_cgi path=json_proto method=POST [15:07:13]POST find Content-Length [15:07:13]Host: 172.17.39.67:8080 [15:07:13]Content-Length: 683 [15:07:13]Content-Type: application/json [15:07:13] [15:07:13]POST finish read [15:07:13]Found Content-Length = 683 [15:07:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:13]execute_script... [15: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)1319118", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:07:13]POST & json_proto [15:07:13]process_json_proto [15:07:13]json parsed OK: [15:07:13]protocol is kg_v1.0 [15:07:13]action value=close_receipt [15:07:13]process_action close_receipt [15:07:13]cmd_close_receipt [15:07:13]MH_GetDate [15:07:13]Write to MH i2c: F0 00 00 01 0C FC [15:07:13]Write i2c OK [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: F0 [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: F0 09 00 [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: F0 09 00 01 0C 00 21 98 92 66 86 7C 92 66 B0 [15:07:13]GetLastDocTimeStamp 1720883126 [15:07:13]current date 1720883233 [15:07:13]FM_GetShiftState [15:07:13]SAM_PROTO_GetShiftState [15:07:13]wFMCommunicate request_size=4 [15:07:13]MH_SAM_APDU [15:07:13]CAPDU: 80 13 01 00 [15:07:13]Write to MH i2c: E2 08 00 02 0C 80 13 01 00 00 00 00 00 8B [15:07:13]Write i2c OK [15:07:13]MH_I2C_Read... [15:07:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:13]Read from MH i2c: E2 [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: E2 0E 00 [15:07:13]MH_I2C_Read... [15:07:13]Read from MH i2c: E2 0E 00 02 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 85 [15:07:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:07:13]wFMCommunicate OK [15:07:13]SAM_PROTO_GetShiftState done [15:07:13]FM_GetShiftState done [15:07:13]opened in 1720828979 [15:07:13]opened+sec_in_day 1720915379 [15:07:13]quantity*price = 100046 [15:07:13]sum+1 = 100048 [15:07:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 228 13.07.2024 15:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162560 ФПД: 229150074848780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150713&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162560&fm=229150074848780&tin=02508201610067®Number=0000000000090858&sum=100000 [15:07:14]StoreToDocumentArchive [15:07:14]shift 462 fd 162560 [15:07:14]save to /storage/0462/doc_00162560 [15:07:14]save last doc name /storage/0462/doc_00162560 to /storage/kkm_last_doc_name [15:07:14]save OK [15:07:14]Clear old archive folders... [15:07:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:14]tlvbuf is 006E1390 [15:07:14]SAM_PROTO_ClearQueue [15:07:14]wFMCommunicate request_size=4 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 09 00 00 [15:07:14]Write to MH i2c: E2 08 00 0F 0C 80 09 00 00 00 00 00 00 8D [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 0F 0C 00 90 00 8F [15:07:14]RAPDU: 90 00 [15:07:14]wFMCommunicate OK [15:07:14]SAM_PROTO_ClearQueue done [15:07:14]KKMCreateOFDPacket [15:07:14]OFDProtocolAddRootSTLVToBuf [15:07:14]FM_MakeSignedData [15:07:14]FM_MakeSignedData [15:07:14]SAM_PROTO_SignData [15:07:14]wFMCommunicate request_size=4 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 0D 01 02 [15:07:14]Write to MH i2c: E2 08 00 10 0C 80 0D 01 02 00 00 00 00 95 [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [15:07:14]RAPDU: 90 00 [15:07:14]wFMCommunicate OK [15:07:14]wFMCommunicate request_size=255 [15:07:14]MH_SAM_APDU [15: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 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E4 00 00 00 F4 03 04 00 21 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7B 02 00 35 04 06 00 D0 [15:07:14]Write to MH i2c: E2 02 01 11 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E4 00 00 00 F4 03 04 00 21 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7B 02 00 35 04 06 00 D0 00 00 52 [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [15:07:14]RAPDU: 90 00 [15:07:14]wFMCommunicate OK [15:07:14]wFMCommunicate request_size=10 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 0D 02 02 05 69 28 CF C6 0C [15:07:14]Write to MH i2c: E2 0D 00 12 0C 80 0D 02 02 05 00 69 28 CF C6 0C 00 00 D4 [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [15:07:14]RAPDU: 90 00 [15:07:14]wFMCommunicate OK [15:07:14]wFMCommunicate request_size=4 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 0D 03 02 [15:07:14]Write to MH i2c: E2 08 00 13 0C 80 0D 03 02 00 00 00 00 9A [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 0B 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 0B 00 13 0C 00 3C 2F 12 CD 4F 8A 27 D7 90 00 BC [15:07:14]RAPDU: 3C 2F 12 CD 4F 8A 27 D7 90 00 [15:07:14]wFMCommunicate OK [15:07:14]SAM_PROTO_SignData done [15:07:14]FM_MakeSignedData done [15:07:14]CreateOFDProtocolMessage [15:07:14]wFMCommunicate request_size=4 [15:07:14]MH_SAM_APDU [15:07:14]CAPDU: 80 11 00 00 [15:07:14]Write to MH i2c: E2 08 00 14 0C 80 11 00 00 00 00 00 00 9A [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:14]Read from MH i2c: E2 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: E2 17 00 [15:07:14]MH_I2C_Read... [15:07:14]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 34 38 39 39 90 00 FA [15:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:07:14]wFMCommunicate OK [15:07:14]CreateOFDProtocolMessage done [15:07:14]OFDSenderStorePacket 162560 [15:07:14]StoreOFDPacket docnum=162560 [15:07:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4B DB 07 01 46 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E4 00 00 00 F4 03 04 00 21 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7B 02 00 35 04 06 00 D0 69 28 CF C6 0C 3C 2F 12 CD 4F 8A 27 D7 [15:07:14]CheckFolder [15:07:14]dirname=/storage/ofd_packets [15:07:14]CheckFolder done [15:07:14]ProducePacketName [15:07:14]name=ofd_packets/00162560 [15:07:14]NVStorageSaveData ofd_packets/00162560 [15:07:14]File name is /storage/ofd_packets/00162560 [15:07:14]Write 301 bytes [15:07:14]NVStorageSaveData done [15:07:14]OFDSenderStorePacket done [15:07:14]KKMCreateOFDPacket done [15:07:14]NVStorageSaveData kkm_last_timestamp [15:07:14]File name is /storage/kkm_last_timestamp [15:07:14]Write 4 bytes [15:07:14]NVStorageSaveData done [15:07:14]ExternCall_PrintAddStr [15:07:14]wPrintStart [15:07:14]Write to MH i2c: 01 00 00 15 0C 21 [15:07:14]Write i2c OK [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: 01 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: 01 07 00 [15:07:14]MH_I2C_Read... [15:07:14]Read from MH i2c: 01 07 00 15 0C 00 00 00 00 00 FF 0F 36 [15:07:14]RasterBufferAndPrint [15:07:14]line Счет N : (1)1319118 [15:07:14]line ИНН: 02508201610067 [15:07:14]line Контрольно-Кассовый Чек [15:07:14]line ПРОДАЖА [15:07:14]line ТРК (МРК, ГНК) : 53 [15:07:14]line Товар: 2710124130 [15:07:14]line Аи-92-К-5 [15:07:14]line 15.090 * 66.30 [15:07:14]line = 1000.47 [15:07:14]line НДС 12% НСП 1% [15:07:14]line > о реализуемом товаре [15:07:14]line ОКРУГЛЕНИЕ: -0.47 [15:07:14]line ИТОГО: 1000.00 [15:07:14]line Внесено: 1000.00 [15:07:14]line СДАЧА: 0.00 [15:07:14]line НСП 1% : 8.85 [15:07:14]line НДС 12% : 106.24 [15:07:14]line Наличными: 1000.00 [15:07:14]line Безнал.: 0.00 [15:07:14]line Место: АЗС № 140 "Партнер Нефть" [15:07:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:07:14]line СНО: Общий режим [15:07:14]line Чек 228 13.07.2024 15:07 [15:07:14]line Смена: 462 ФФД: 1.0 [15:07:14]line ЗНМ: 0300000129 [15:07:14]line РНМ: 0000000000090858 [15:07:14]line Версия ККМ: 001 [15:07:14]line ФМ: 0000000000874899 [15:07:14]line ФД: 162560 [15:07:14]line ФПД: 229150074848780 [15:07:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150713&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162560&fm=229150074848780&tin=02508201610067®Number=0000000000090858&sum=100000 [15:07:15]OFD Sender: Processing packet 162560 [packets to send 106, broken 105] [15:07:15]ProducePacketName [15:07:15]name=ofd_packets/00162560 [15:07:15]OFD Sender: To server: pG, [15:07:15]CommunicateWithHost lk.salyk.kg:30040 [15:07:15]ConnectInit lk.salyk.kg [15:07:15]written 0, free lines is 4095 [15:07:15]Connected sock=10 [15: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 34 38 39 39 0F 01 00 00 4B DB 07 01 46 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 E4 00 00 00 F4 03 04 00 21 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7B 02 00 35 04 06 00 D0 69 28 CF C6 0C 3C 2F 12 CD 4F 8A 27 D7 [15:07:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 16 85 47 00 87 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 00 7B 02 00 F4 03 04 00 30 44 92 66 B6 04 01 00 00 EA 4B 8F B3 10 F4 AA 55 [15:07:15]CommunicateWithHost err = 0 [15:07:15]CheckOFDResponse [15:07:15]1017 (14) - 77093643461234 [15:07:15]1041 (16) - 0000000000874899 [15:07:15]1040 (4) - 162560 [15:07:15]1012 (4) - 13.07.2024 09:09 [15:07:15]1206 (1) - 0 [15:07:15]OFD Sender: Remove packet 162560 [15:07:15]ProducePacketName [15:07:15]name=ofd_packets/00162560 [15:07:15]NVStorageDeleteData [15:07:15]Write to MH i2c: 01 00 00 40 0C 4C [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 07 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: 01 07 00 40 0C 00 00 00 00 00 F9 0C 58 [15:07:15]RasterBufferAndPrint [15:07:15]line [15:07:15]line [15:07:15]line [15:07:15]line [15:07:15]line [15:07:15]written 0, free lines is 3330 [15:07:15]MH_Cut [15:07:15]Write to MH i2c: D1 01 00 47 0C 01 25 [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: D1 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: D1 01 00 [15:07:15]MH_I2C_Read... [15:07:15]Read from MH i2c: D1 01 00 47 0C 00 24 [15:07:15]Write to MH i2c: 01 00 00 48 0C 54 [15:07:15]Write i2c OK [15:07:15]MH_I2C_Read... [15:07:15]OFD Sender: No OFD packet to send [15:07:16]*** Cut start [15:07:16]*** Purtial cut [15:07:16]*** CUTSNS_PIN = 0 [15:07:16]*** Stage 1: CUTSNS_PIN = 1 [15:07:18]Read from MH i2c: 01 [15:07:18]MH_I2C_Read... [15:07:18]*** Stop cut motor [15:07:18]*** Cut end [15:07:18]Read from MH i2c: 01 07 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: 01 07 00 48 0C 00 00 00 00 00 FF 0F 69 [15:07:18]process_action close_receipt done [15:07:18]requested_data is exist [15:07:18]produce_requested_data [15:07:18]requested_item fm.sn is exist - process it [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 11 00 00 [15:07:18]Write to MH i2c: E2 08 00 49 0C 80 11 00 00 00 00 00 00 CF [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 17 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 17 00 49 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2F [15:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:07:18]wFMCommunicate OK [15:07:18]requested_item fd.num is exist - process it [15:07:18]SAM_PROTO_GetFieldsCounters [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 13 00 00 [15:07:18]Write to MH i2c: E2 08 00 4A 0C 80 13 00 00 00 00 00 00 D2 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 62 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 62 00 4A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 00 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [15:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 00 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:18]wFMCommunicate OK [15:07:18]SAM_PROTO_GetFieldsCounters done [15:07:18]requested_item shift.num is exist - process it [15:07:18]requested_item shift.opened is exist - process it [15:07:18]req_shift_opened [15:07:18]FM_GetShiftState [15:07:18]SAM_PROTO_GetShiftState [15:07:18]wFMCommunicate request_size=4 [15:07:18]MH_SAM_APDU [15:07:18]CAPDU: 80 13 01 00 [15:07:18]Write to MH i2c: E2 08 00 4B 0C 80 13 01 00 00 00 00 00 D4 [15:07:18]Write i2c OK [15:07:18]MH_I2C_Read... [15:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:18]Read from MH i2c: E2 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 0E 00 [15:07:18]MH_I2C_Read... [15:07:18]Read from MH i2c: E2 0E 00 4B 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CE [15:07:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:07:18]wFMCommunicate OK [15:07:18]SAM_PROTO_GetShiftState done [15:07:18]FM_GetShiftState done [15:07:18]req_shift_opened done [15:07:18]requested_item shift.open_date is exist - process it [15:07:18]req_shift_open_date [15:07:18]req_shift_open_date done [15:07:18]produce_requested_data done [15:07:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162560,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:07:18]process_action_free close_receipt [15:07:18]json_value_free [15:07:18]json_value_free done [15:07:18]process_json_proto returns [15:07:18]Send response to host [15:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162560,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:07:18]free response buf [15:07:18]execute_script done [15:07:18]execute_script returns [15:07:18]free content buf [15:07:18]Sock 7.Close socket [15:07:18]Sock 7.Thread stoped [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:34]accept exits with 9 [15:09:34]New connection [15:09:34]New thread 3067366756 created [15:09:34]Thread 3067510116 joined [15:09:34]Waiting for new connection... [15:09:34] Sock 9.Parse request [15:09:34]Sock 9.Check first char [15:09:34]Sock 9.First char is OK [15:09:34]request: POST /json_proto HTTP/1.0 [15:09:34]Method: POST [15:09:34]URL: /json_proto [15:09:34]Method is POST - this is cgi request [15:09:34]url: /json_proto [15:09:34]query_string will be loaded in cgi processing [15:09:34]execute_cgi json_proto POST (null) [15:09:34]execute_cgi path=json_proto method=POST [15:09:34]POST find Content-Length [15:09:34]Host: 172.17.39.67:8080 [15:09:34]Content-Length: 825 [15:09:34]Content-Type: application/json [15:09:34] [15:09:34]POST finish read [15:09:34]Found Content-Length = 825 [15:09:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:34]execute_script... [15:09: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)1319120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:34]POST & json_proto [15:09:34]process_json_proto [15:09:34]json parsed OK: [15:09:34]protocol is kg_v1.0 [15:09:34]action value=close_receipt [15:09:34]process_action close_receipt [15:09:34]cmd_close_receipt [15:09:34]MH_GetDate [15:09:34]Write to MH i2c: F0 00 00 4C 0C 47 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: F0 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: F0 09 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: F0 09 00 4C 0C 00 AF 98 92 66 86 7C 92 66 89 [15:09:34]GetLastDocTimeStamp 1720883233 [15:09:34]current date 1720883375 [15:09:34]FM_GetShiftState [15:09:34]SAM_PROTO_GetShiftState [15:09:34]wFMCommunicate request_size=4 [15:09:34]MH_SAM_APDU [15:09:34]CAPDU: 80 13 01 00 [15:09:34]Write to MH i2c: E2 08 00 4D 0C 80 13 01 00 00 00 00 00 D6 [15:09:34]Write i2c OK [15:09:34]MH_I2C_Read... [15:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:34]Read from MH i2c: E2 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 [15:09:34]MH_I2C_Read... [15:09:34]Read from MH i2c: E2 0E 00 4D 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D0 [15:09:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:09:34]wFMCommunicate OK [15:09:34]SAM_PROTO_GetShiftState done [15:09:34]FM_GetShiftState done [15:09:34]opened in 1720828979 [15:09:34]opened+sec_in_day 1720915379 [15:09:34]quantity*price = 100042 [15:09:34]sum+1 = 100044 [15:09:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 229 13.07.2024 15:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162561 ФПД: 105672623712032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150935&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162561&fm=105672623712032&tin=02508201610067®Number=0000000000090858&sum=100043 [15:09:35]StoreToDocumentArchive [15:09:35]shift 462 fd 162561 [15:09:35]save to /storage/0462/doc_00162561 [15:09:35]save last doc name /storage/0462/doc_00162561 to /storage/kkm_last_doc_name [15:09:35]save OK [15:09:35]Clear old archive folders... [15:09:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:09:35]tlvbuf is 006E2B70 [15:09:35]SAM_PROTO_ClearQueue [15:09:35]wFMCommunicate request_size=4 [15:09:35]MH_SAM_APDU [15:09:35]CAPDU: 80 09 00 00 [15:09:35]Write to MH i2c: E2 08 00 5A 0C 80 09 00 00 00 00 00 00 D8 [15:09:35]Write i2c OK [15:09:35]MH_I2C_Read... [15:09:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:35]Read from MH i2c: E2 [15:09:35]MH_I2C_Read... [15:09:35]Read from MH i2c: E2 03 00 [15:09:35]MH_I2C_Read... [15:09:35]Read from MH i2c: E2 03 00 5A 0C 00 90 00 DA [15:09:35]RAPDU: 90 00 [15:09:35]wFMCommunicate OK [15:09:35]SAM_PROTO_ClearQueue done [15:09:35]KKMCreateOFDPacket [15:09:35]OFDProtocolAddRootSTLVToBuf [15:09:35]FM_MakeSignedData [15:09:35]FM_MakeSignedData [15:09:35]SAM_PROTO_SignData [15:09:35]wFMCommunicate request_size=4 [15:09:35]MH_SAM_APDU [15:09:35]CAPDU: 80 0D 01 02 [15:09:35]Write to MH i2c: E2 08 00 5B 0C 80 0D 01 02 00 00 00 00 E0 [15:09:35]Write i2c OK [15:09:35]MH_I2C_Read... [15:09:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:36]Read from MH i2c: E2 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 03 00 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [15:09:36]RAPDU: 90 00 [15:09:36]wFMCommunicate OK [15:09:36]wFMCommunicate request_size=255 [15:09:36]MH_SAM_APDU [15:09:36]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 AF 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7B 02 00 35 04 06 00 [15:09:36]Write to MH i2c: E2 02 01 5C 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 AF 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7B 02 00 35 04 06 00 00 00 40 [15:09:36]Write i2c OK [15:09:36]MH_I2C_Read... [15:09:36]OFD Sender: No OFD packet to send [15:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:36]Read from MH i2c: E2 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 03 00 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [15:09:36]RAPDU: 90 00 [15:09:36]wFMCommunicate OK [15:09:36]wFMCommunicate request_size=11 [15:09:36]MH_SAM_APDU [15:09:36]CAPDU: 80 0D 02 02 06 60 1B D3 32 E7 20 [15:09:36]Write to MH i2c: E2 0E 00 5D 0C 80 0D 02 02 06 00 60 1B D3 32 E7 20 00 00 76 [15:09:36]Write i2c OK [15:09:36]MH_I2C_Read... [15:09:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:36]Read from MH i2c: E2 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 03 00 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [15:09:36]RAPDU: 90 00 [15:09:36]wFMCommunicate OK [15:09:36]wFMCommunicate request_size=4 [15:09:36]MH_SAM_APDU [15:09:36]CAPDU: 80 0D 03 02 [15:09:36]Write to MH i2c: E2 08 00 5E 0C 80 0D 03 02 00 00 00 00 E5 [15:09:36]Write i2c OK [15:09:36]MH_I2C_Read... [15:09:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:36]Read from MH i2c: E2 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 0B 00 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 0B 00 5E 0C 00 B0 A6 D6 43 95 7B 70 A2 90 00 77 [15:09:36]RAPDU: B0 A6 D6 43 95 7B 70 A2 90 00 [15:09:36]wFMCommunicate OK [15:09:36]SAM_PROTO_SignData done [15:09:36]FM_MakeSignedData done [15:09:36]CreateOFDProtocolMessage [15:09:36]wFMCommunicate request_size=4 [15:09:36]MH_SAM_APDU [15:09:36]CAPDU: 80 11 00 00 [15:09:36]Write to MH i2c: E2 08 00 5F 0C 80 11 00 00 00 00 00 00 E5 [15:09:36]Write i2c OK [15:09:36]MH_I2C_Read... [15:09:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:36]Read from MH i2c: E2 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: E2 17 00 [15:09:36]MH_I2C_Read... [15:09:36]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 34 38 39 39 90 00 45 [15:09:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:09:36]wFMCommunicate OK [15:09:36]CreateOFDProtocolMessage done [15:09:36]OFDSenderStorePacket 162561 [15:09:36]StoreOFDPacket docnum=162561 [15:09:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 72 8A 08 01 61 72 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 AF 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7B 02 00 35 04 06 00 60 1B D3 32 E7 20 B0 A6 D6 43 95 7B 70 A2 [15:09:36]CheckFolder [15:09:36]dirname=/storage/ofd_packets [15:09:36]CheckFolder done [15:09:36]ProducePacketName [15:09:36]name=ofd_packets/00162561 [15:09:36]NVStorageSaveData ofd_packets/00162561 [15:09:36]File name is /storage/ofd_packets/00162561 [15:09:36]Write 302 bytes [15:09:36]NVStorageSaveData done [15:09:36]OFDSenderStorePacket done [15:09:36]KKMCreateOFDPacket done [15:09:36]NVStorageSaveData kkm_last_timestamp [15:09:36]File name is /storage/kkm_last_timestamp [15:09:36]Write 4 bytes [15:09:36]NVStorageSaveData done [15:09:36]ExternCall_PrintAddStr [15:09:36]wPrintStart [15:09:36]Write to MH i2c: 01 00 00 60 0C 6C [15:09:36]Write i2c OK [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: 01 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: 01 07 00 [15:09:36]MH_I2C_Read... [15:09:36]Read from MH i2c: 01 07 00 60 0C 00 00 00 00 00 FF 0F 81 [15:09:36]RasterBufferAndPrint [15:09:36]line Счет N : (1)1319120 [15:09:36]line ИНН: 02508201610067 [15:09:36]line Контрольно-Кассовый Чек [15:09:36]line ПРОДАЖА [15:09:36]line ТРК (МРК, ГНК) : 41 [15:09:36]line Товар: 2710194210 [15:09:36]line ДТ(л)-К-5 [15:09:36]line 13.780 * 72.60 [15:09:36]line = 1000.43 [15:09:36]line НДС 12% НСП 1% [15:09:36]line > о реализуемом товаре [15:09:36]line ИТОГО: 1000.43 [15:09:36]line НСП 1% : 8.85 [15:09:36]line НДС 12% : 106.24 [15:09:36]line Наличными: 0.00 [15:09:36]line Безнал.: 1000.43 [15:09:36]line Место: АЗС № 140 "Партнер Нефть" [15:09:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:09:36]line СНО: Общий режим [15:09:36]line Чек 229 13.07.2024 15:09 [15:09:36]line Смена: 462 ФФД: 1.0 [15:09:36]line ЗНМ: 0300000129 [15:09:36]line РНМ: 0000000000090858 [15:09:36]line Версия ККМ: 001 [15:09:36]line Платежная система: Бакай Банк [15:09:36]line ФМ: 0000000000874899 [15:09:36]line ФД: 162561 [15:09:36]line ФПД: 105672623712032 [15:09:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150935&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162561&fm=105672623712032&tin=02508201610067®Number=0000000000090858&sum=100043 [15:09:36]OFD Sender: Processing packet 162561 [packets to send 106, broken 105] [15:09:36]ProducePacketName [15:09:36]name=ofd_packets/00162561 [15:09:36]OFD Sender: To server: pG, [15:09:36]CommunicateWithHost lk.salyk.kg:30040 [15:09:36]ConnectInit lk.salyk.kg [15:09:36]written 0, free lines is 4095 [15:09:36]Connected sock=10 [15:09:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 72 8A 08 01 61 72 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 AF 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7B 02 00 35 04 06 00 60 1B D3 32 E7 20 B0 A6 D6 43 95 7B 70 A2 [15:09:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DF 57 47 00 D7 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 01 7B 02 00 F4 03 04 00 BE 44 92 66 B6 04 01 00 00 40 A1 03 AD 27 D9 FB BF [15:09:37]CommunicateWithHost err = 0 [15:09:37]CheckOFDResponse [15:09:37]1017 (14) - 77093643461234 [15:09:37]1041 (16) - 0000000000874899 [15:09:37]1040 (4) - 162561 [15:09:37]1012 (4) - 13.07.2024 09:11 [15:09:37]1206 (1) - 0 [15:09:37]OFD Sender: Remove packet 162561 [15:09:37]ProducePacketName [15:09:37]name=ofd_packets/00162561 [15:09:37]NVStorageDeleteData [15:09:37]Write to MH i2c: 01 00 00 8A 0C 96 [15:09:37]Write i2c OK [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: 01 [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: 01 07 00 [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: 01 07 00 8A 0C 00 00 00 00 00 F9 0C A2 [15:09:37]RasterBufferAndPrint [15:09:37]line [15:09:37]line [15:09:37]line [15:09:37]line [15:09:37]line [15:09:37]written 0, free lines is 3330 [15:09:37]MH_Cut [15:09:37]Write to MH i2c: D1 01 00 91 0C 01 6F [15:09:37]Write i2c OK [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: D1 [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: D1 01 00 [15:09:37]MH_I2C_Read... [15:09:37]Read from MH i2c: D1 01 00 91 0C 00 6E [15:09:37]Write to MH i2c: 01 00 00 92 0C 9E [15:09:37]Write i2c OK [15:09:37]MH_I2C_Read... [15:09:37]OFD Sender: No OFD packet to send [15:09:37]*** Cut start [15:09:37]*** Purtial cut [15:09:37]*** Stage 1: CUTSNS_PIN = 1 [15:09:38]Read from MH i2c: 01 [15:09:38]MH_I2C_Read... [15:09:38]*** Stop cut motor [15:09:38]*** Cut end [15:09:38]Read from MH i2c: 01 07 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: 01 07 00 92 0C 00 00 00 00 00 FF 0F B3 [15:09:38]process_action close_receipt done [15:09:38]requested_data is exist [15:09:38]produce_requested_data [15:09:38]requested_item fm.sn is exist - process it [15:09:38]wFMCommunicate request_size=4 [15:09:38]MH_SAM_APDU [15:09:38]CAPDU: 80 11 00 00 [15:09:38]Write to MH i2c: E2 08 00 93 0C 80 11 00 00 00 00 00 00 19 [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:38]Read from MH i2c: E2 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 17 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 17 00 93 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 79 [15:09:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:09:38]wFMCommunicate OK [15:09:38]requested_item fd.num is exist - process it [15:09:38]SAM_PROTO_GetFieldsCounters [15:09:38]wFMCommunicate request_size=4 [15:09:38]MH_SAM_APDU [15:09:38]CAPDU: 80 13 00 00 [15:09:38]Write to MH i2c: E2 08 00 94 0C 80 13 00 00 00 00 00 00 1C [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:38]Read from MH i2c: E2 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 62 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 62 00 94 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 01 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [15:09:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 01 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:38]wFMCommunicate OK [15:09:38]SAM_PROTO_GetFieldsCounters done [15:09:38]requested_item shift.num is exist - process it [15:09:38]requested_item shift.opened is exist - process it [15:09:38]req_shift_opened [15:09:38]FM_GetShiftState [15:09:38]SAM_PROTO_GetShiftState [15:09:38]wFMCommunicate request_size=4 [15:09:38]MH_SAM_APDU [15:09:38]CAPDU: 80 13 01 00 [15:09:38]Write to MH i2c: E2 08 00 95 0C 80 13 01 00 00 00 00 00 1E [15:09:38]Write i2c OK [15:09:38]MH_I2C_Read... [15:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:38]Read from MH i2c: E2 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 0E 00 [15:09:38]MH_I2C_Read... [15:09:38]Read from MH i2c: E2 0E 00 95 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 18 [15:09:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:09:38]wFMCommunicate OK [15:09:38]SAM_PROTO_GetShiftState done [15:09:38]FM_GetShiftState done [15:09:38]req_shift_opened done [15:09:38]requested_item shift.open_date is exist - process it [15:09:38]req_shift_open_date [15:09:38]req_shift_open_date done [15:09:38]produce_requested_data done [15:09:38]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162561,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:09:38]process_action_free close_receipt [15:09:38]json_value_free [15:09:38]json_value_free done [15:09:38]process_json_proto returns [15:09:38]Send response to host [15:09:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162561,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:09:38]free response buf [15:09:38]execute_script done [15:09:38]execute_script returns [15:09:38]free content buf [15:09:38]Sock 9.Close socket [15:09:38]Sock 9.Thread stoped [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [15:09:47]accept exits with 7 [15:09:47]New connection [15:09:47]New thread 3067510116 created [15:09:47]Thread 3067366756 joined [15:09:47]Waiting for new connection... [15:09:47] Sock 7.Parse request [15:09:47]Sock 7.Check first char [15:09:47]Sock 7.First char is OK [15:09:47]request: POST /json_proto HTTP/1.0 [15:09:47]Method: POST [15:09:47]URL: /json_proto [15:09:47]Method is POST - this is cgi request [15:09:47]url: /json_proto [15:09:47]query_string will be loaded in cgi processing [15:09:47]execute_cgi json_proto POST (null) [15:09:47]execute_cgi path=json_proto method=POST [15:09:47]POST find Content-Length [15:09:47]Host: 172.17.39.67:8080 [15:09:47]Content-Length: 683 [15:09:47]Content-Type: application/json [15:09:47] [15:09:47]POST finish read [15:09:47]Found Content-Length = 683 [15:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 17.650, "sum" : 1170.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1170.00, "total" : 1170.00, "payments": [ { "type": 0, "sum" : 1170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:47]execute_script... [15: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)1319121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 17.650, "sum" : 1170.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1170.00, "total" : 1170.00, "payments": [ { "type": 0, "sum" : 1170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:47]POST & json_proto [15:09:47]process_json_proto [15:09:47]json parsed OK: [15:09:47]protocol is kg_v1.0 [15:09:47]action value=close_receipt [15:09:47]process_action close_receipt [15:09:47]cmd_close_receipt [15:09:47]MH_GetDate [15:09:47]Write to MH i2c: F0 00 00 96 0C 91 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: F0 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: F0 09 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: F0 09 00 96 0C 00 BC 98 92 66 86 7C 92 66 E0 [15:09:47]GetLastDocTimeStamp 1720883375 [15:09:47]current date 1720883388 [15:09:47]FM_GetShiftState [15:09:47]SAM_PROTO_GetShiftState [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 13 01 00 [15:09:47]Write to MH i2c: E2 08 00 97 0C 80 13 01 00 00 00 00 00 20 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:48]Read from MH i2c: E2 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: E2 0E 00 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: E2 0E 00 97 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1A [15:09:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:09:48]wFMCommunicate OK [15:09:48]SAM_PROTO_GetShiftState done [15:09:48]FM_GetShiftState done [15:09:48]opened in 1720828979 [15:09:48]opened+sec_in_day 1720915379 [15:09:48]quantity*price = 117019 [15:09:48]sum+1 = 117021 [15:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 1170.00 Внесено: 1170.00 СДАЧА: 0.00 НСП 1% : 10.36 НДС 12% : 124.27 Наличными: 1170.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 230 13.07.2024 15:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162562 ФПД: 118304563488064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150948&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162562&fm=118304563488064&tin=02508201610067®Number=0000000000090858&sum=117000 [15:09:49]StoreToDocumentArchive [15:09:49]shift 462 fd 162562 [15:09:49]save to /storage/0462/doc_00162562 [15:09:49]save last doc name /storage/0462/doc_00162562 to /storage/kkm_last_doc_name [15:09:49]save OK [15:09:49]Clear old archive folders... [15:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:49]tlvbuf is 006B2CD0 [15:09:49]SAM_PROTO_ClearQueue [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 09 00 00 [15:09:49]Write to MH i2c: E2 08 00 A4 0C 80 09 00 00 00 00 00 00 22 [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 A4 0C 00 90 00 24 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]SAM_PROTO_ClearQueue done [15:09:49]KKMCreateOFDPacket [15:09:49]OFDProtocolAddRootSTLVToBuf [15:09:49]FM_MakeSignedData [15:09:49]FM_MakeSignedData [15:09:49]SAM_PROTO_SignData [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 01 02 [15:09:49]Write to MH i2c: E2 08 00 A5 0C 80 0D 01 02 00 00 00 00 2A [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 A5 0C 00 90 00 25 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]wFMCommunicate request_size=255 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 44 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 1C C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 30 00 00 00 00 07 04 06 00 08 C9 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 BC 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7B 02 00 35 04 06 00 6B [15:09:49]Write to MH i2c: E2 02 01 A6 0C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 44 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 1C C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 30 00 00 00 00 07 04 06 00 08 C9 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 BC 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7B 02 00 35 04 06 00 6B 00 00 BB [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]wFMCommunicate request_size=10 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 02 02 05 98 ED 7B 65 40 [15:09:49]Write to MH i2c: E2 0D 00 A7 0C 80 0D 02 02 05 00 98 ED 7B 65 40 00 00 DC [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [15:09:49]RAPDU: 90 00 [15:09:49]wFMCommunicate OK [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 0D 03 02 [15:09:49]Write to MH i2c: E2 08 00 A8 0C 80 0D 03 02 00 00 00 00 2F [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 0B 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 0B 00 A8 0C 00 AE 4B D1 D3 B6 4B 48 F8 90 00 0E [15:09:49]RAPDU: AE 4B D1 D3 B6 4B 48 F8 90 00 [15:09:49]wFMCommunicate OK [15:09:49]SAM_PROTO_SignData done [15:09:49]FM_MakeSignedData done [15:09:49]CreateOFDProtocolMessage [15:09:49]wFMCommunicate request_size=4 [15:09:49]MH_SAM_APDU [15:09:49]CAPDU: 80 11 00 00 [15:09:49]Write to MH i2c: E2 08 00 A9 0C 80 11 00 00 00 00 00 00 2F [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:49]Read from MH i2c: E2 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 17 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: E2 17 00 A9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8F [15:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:09:49]wFMCommunicate OK [15:09:49]CreateOFDProtocolMessage done [15:09:49]OFDSenderStorePacket 162562 [15:09:49]StoreOFDPacket docnum=162562 [15:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 22 39 07 01 92 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 44 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 1C C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 30 00 00 00 00 07 04 06 00 08 C9 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 BC 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7B 02 00 35 04 06 00 6B 98 ED 7B 65 40 AE 4B D1 D3 B6 4B 48 F8 [15:09:49]CheckFolder [15:09:49]dirname=/storage/ofd_packets [15:09:49]CheckFolder done [15:09:49]ProducePacketName [15:09:49]name=ofd_packets/00162562 [15:09:49]NVStorageSaveData ofd_packets/00162562 [15:09:49]File name is /storage/ofd_packets/00162562 [15:09:49]Write 301 bytes [15:09:49]NVStorageSaveData done [15:09:49]OFDSenderStorePacket done [15:09:49]KKMCreateOFDPacket done [15:09:49]NVStorageSaveData kkm_last_timestamp [15:09:49]File name is /storage/kkm_last_timestamp [15:09:49]Write 4 bytes [15:09:49]NVStorageSaveData done [15:09:49]ExternCall_PrintAddStr [15:09:49]wPrintStart [15:09:49]Write to MH i2c: 01 00 00 AA 0C B6 [15:09:49]Write i2c OK [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: 01 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: 01 07 00 [15:09:49]MH_I2C_Read... [15:09:49]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 FF 0F CB [15:09:49]RasterBufferAndPrint [15:09:49]line Счет N : (1)1319121 [15:09:49]line ИНН: 02508201610067 [15:09:49]line Контрольно-Кассовый Чек [15:09:49]line ПРОДАЖА [15:09:49]line ТРК (МРК, ГНК) : 53 [15:09:49]line Товар: 2710124130 [15:09:49]line Аи-92-К-5 [15:09:49]line 17.650 * 66.30 [15:09:49]line = 1170.20 [15:09:49]line НДС 12% НСП 1% [15:09:49]line > о реализуемом товаре [15:09:49]line ОКРУГЛЕНИЕ: -0.20 [15:09:49]line ИТОГО: 1170.00 [15:09:49]line Внесено: 1170.00 [15:09:49]line СДАЧА: 0.00 [15:09:49]line НСП 1% : 10.36 [15:09:49]line НДС 12% : 124.27 [15:09:49]line Наличными: 1170.00 [15:09:49]line Безнал.: 0.00 [15:09:49]line Место: АЗС № 140 "Партнер Нефть" [15:09:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:09:49]line СНО: Общий режим [15:09:49]line Чек 230 13.07.2024 15:09 [15:09:49]line Смена: 462 ФФД: 1.0 [15:09:49]line ЗНМ: 0300000129 [15:09:49]line РНМ: 0000000000090858 [15:09:49]line Версия ККМ: 001 [15:09:49]line ФМ: 0000000000874899 [15:09:49]line ФД: 162562 [15:09:49]line ФПД: 118304563488064 [15:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T150948&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162562&fm=118304563488064&tin=02508201610067®Number=0000000000090858&sum=117000 [15:09:50]OFD Sender: Processing packet 162562 [packets to send 106, broken 105] [15:09:50]ProducePacketName [15:09:50]name=ofd_packets/00162562 [15:09:50]OFD Sender: To server: pG, [15:09:50]CommunicateWithHost lk.salyk.kg:30040 [15:09:50]ConnectInit lk.salyk.kg [15:09:50]written 0, free lines is 4095 [15:09:50]Connected sock=10 [15:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 22 39 07 01 92 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 44 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 1C C9 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 C9 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 30 00 00 00 00 07 04 06 00 08 C9 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 BC 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7B 02 00 35 04 06 00 6B 98 ED 7B 65 40 AE 4B D1 D3 B6 4B 48 F8 [15:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6A 90 47 00 64 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 02 7B 02 00 F4 03 04 00 CB 44 92 66 B6 04 01 00 00 0C 94 7B CB F1 44 86 6D [15:09:50]CommunicateWithHost err = 0 [15:09:50]CheckOFDResponse [15:09:50]1017 (14) - 77093643461234 [15:09:50]1041 (16) - 0000000000874899 [15:09:50]1040 (4) - 162562 [15:09:50]1012 (4) - 13.07.2024 09:11 [15:09:50]1206 (1) - 0 [15:09:50]OFD Sender: Remove packet 162562 [15:09:50]ProducePacketName [15:09:50]name=ofd_packets/00162562 [15:09:50]NVStorageDeleteData [15:09:50]Write to MH i2c: 01 00 00 D5 0C E1 [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 07 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 07 00 D5 0C 00 00 00 00 00 E7 0C DB [15:09:50]RasterBufferAndPrint [15:09:50]line [15:09:50]line [15:09:50]line [15:09:50]line [15:09:50]line [15:09:50]written 0, free lines is 3309 [15:09:50]MH_Cut [15:09:50]Write to MH i2c: D1 01 00 DC 0C 01 BA [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: D1 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: D1 01 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: D1 01 00 DC 0C 00 B9 [15:09:50]Write to MH i2c: 01 00 00 DD 0C E9 [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]OFD Sender: No OFD packet to send [15:09:51]*** Cut start [15:09:51]*** Purtial cut [15:09:51]*** CUTSNS_PIN = 0 [15:09:51]*** Stage 1: CUTSNS_PIN = 1 [15:09:53]Read from MH i2c: 01 [15:09:53]MH_I2C_Read... [15:09:53]*** Stop cut motor [15:09:53]*** Cut end [15:09:53]Read from MH i2c: 01 07 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 FF 0F FE [15:09:53]process_action close_receipt done [15:09:53]requested_data is exist [15:09:53]produce_requested_data [15:09:53]requested_item fm.sn is exist - process it [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 11 00 00 [15:09:53]Write to MH i2c: E2 08 00 DE 0C 80 11 00 00 00 00 00 00 64 [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 17 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 17 00 DE 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C4 [15:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:09:53]wFMCommunicate OK [15:09:53]requested_item fd.num is exist - process it [15:09:53]SAM_PROTO_GetFieldsCounters [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 13 00 00 [15:09:53]Write to MH i2c: E2 08 00 DF 0C 80 13 00 00 00 00 00 00 67 [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 62 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 62 00 DF 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 02 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [15:09:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 02 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:53]wFMCommunicate OK [15:09:53]SAM_PROTO_GetFieldsCounters done [15:09:53]requested_item shift.num is exist - process it [15:09:53]requested_item shift.opened is exist - process it [15:09:53]req_shift_opened [15:09:53]FM_GetShiftState [15:09:53]SAM_PROTO_GetShiftState [15:09:53]wFMCommunicate request_size=4 [15:09:53]MH_SAM_APDU [15:09:53]CAPDU: 80 13 01 00 [15:09:53]Write to MH i2c: E2 08 00 E0 0C 80 13 01 00 00 00 00 00 69 [15:09:53]Write i2c OK [15:09:53]MH_I2C_Read... [15:09:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:53]Read from MH i2c: E2 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 0E 00 [15:09:53]MH_I2C_Read... [15:09:53]Read from MH i2c: E2 0E 00 E0 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 63 [15:09:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:09:53]wFMCommunicate OK [15:09:53]SAM_PROTO_GetShiftState done [15:09:53]FM_GetShiftState done [15:09:53]req_shift_opened done [15:09:53]requested_item shift.open_date is exist - process it [15:09:53]req_shift_open_date [15:09:53]req_shift_open_date done [15:09:53]produce_requested_data done [15:09:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162562,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:09:53]process_action_free close_receipt [15:09:53]json_value_free [15:09:53]json_value_free done [15:09:53]process_json_proto returns [15:09:53]Send response to host [15:09:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162562,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:09:53]free response buf [15:09:53]execute_script done [15:09:53]execute_script returns [15:09:53]free content buf [15:09:53]Sock 7.Close socket [15:09:53]Sock 7.Thread stoped [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]accept exits with 9 [15:10:05]New connection [15:10:05]New thread 3067366756 created [15:10:05]Thread 3067510116 joined [15:10:05]Waiting for new connection... [15:10:05] Sock 9.Parse request [15:10:05]Sock 9.Check first char [15:10:05]Sock 9.First char is OK [15:10:05]request: POST /json_proto HTTP/1.0 [15:10:05]Method: POST [15:10:05]URL: /json_proto [15:10:05]Method is POST - this is cgi request [15:10:05]url: /json_proto [15:10:05]query_string will be loaded in cgi processing [15:10:05]execute_cgi json_proto POST (null) [15:10:05]execute_cgi path=json_proto method=POST [15:10:05]POST find Content-Length [15:10:05]Host: 172.17.39.67:8080 [15:10:05]Content-Length: 987 [15:10:05]Content-Type: application/json [15:10:05] [15:10:05]POST finish read [15:10:05]Found Content-Length = 987 [15:10:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 52.240, "sum" : 3740.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 52.24 \u0441\u043E\u043C", "deposit" : 3740.00, "total" : 3740.00, "payments": [ { "type": 0, "sum" : 3740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:05]execute_script... [15:10:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 52.240, "sum" : 3740.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 52.24 \u0441\u043E\u043C", "deposit" : 3740.00, "total" : 3740.00, "payments": [ { "type": 0, "sum" : 3740.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:05]POST & json_proto [15:10:05]process_json_proto [15:10:05]json parsed OK: [15:10:05]protocol is kg_v1.0 [15:10:05]action value=close_receipt [15:10:05]process_action close_receipt [15:10:05]cmd_close_receipt [15:10:05]MH_GetDate [15:10:05]Write to MH i2c: F0 00 00 E1 0C DC [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: F0 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: F0 09 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: F0 09 00 E1 0C 00 CD 98 92 66 86 7C 92 66 3C [15:10:05]GetLastDocTimeStamp 1720883388 [15:10:05]current date 1720883405 [15:10:05]FM_GetShiftState [15:10:05]SAM_PROTO_GetShiftState [15:10:05]wFMCommunicate request_size=4 [15:10:05]MH_SAM_APDU [15:10:05]CAPDU: 80 13 01 00 [15:10:05]Write to MH i2c: E2 08 00 E2 0C 80 13 01 00 00 00 00 00 6B [15:10:05]Write i2c OK [15:10:05]MH_I2C_Read... [15:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:05]Read from MH i2c: E2 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 0E 00 [15:10:05]MH_I2C_Read... [15:10:05]Read from MH i2c: E2 0E 00 E2 0C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 65 [15:10:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:10:05]wFMCommunicate OK [15:10:05]SAM_PROTO_GetShiftState done [15:10:05]FM_GetShiftState done [15:10:05]opened in 1720828979 [15:10:05]opened+sec_in_day 1720915379 [15:10:05]quantity*price = 374038 [15:10:05]sum+1 = 374039 [15:10:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 3740.00 Внесено: 3740.00 СДАЧА: 0.00 НСП 1% : 33.10 НДС 12% : 397.21 Наличными: 3740.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 231 13.07.2024 15:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Дисконтная программа ДТ номер 140 сэкономлено 52.24 сом ФМ: 0000000000874899 ФД: 162563 ФПД: 208002343898633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151005&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162563&fm=208002343898633&tin=02508201610067®Number=0000000000090858&sum=374000 [15:10:06]StoreToDocumentArchive [15:10:06]shift 462 fd 162563 [15:10:06]save to /storage/0462/doc_00162563 [15:10:06]save last doc name /storage/0462/doc_00162563 to /storage/kkm_last_doc_name [15:10:06]save OK [15:10:06]Clear old archive folders... [15:10:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:10:06]tlvbuf is 006C8EA0 [15:10:06]SAM_PROTO_ClearQueue [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 09 00 00 [15:10:06]Write to MH i2c: E2 08 00 EF 0C 80 09 00 00 00 00 00 00 6D [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 03 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 03 00 EF 0C 00 90 00 6F [15:10:06]RAPDU: 90 00 [15:10:06]wFMCommunicate OK [15:10:06]SAM_PROTO_ClearQueue done [15:10:06]KKMCreateOFDPacket [15:10:06]OFDProtocolAddRootSTLVToBuf [15:10:06]FM_MakeSignedData [15:10:06]FM_MakeSignedData [15:10:06]SAM_PROTO_SignData [15:10:06]wFMCommunicate request_size=4 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 0D 01 02 [15:10:06]Write to MH i2c: E2 08 00 F0 0C 80 0D 01 02 00 00 00 00 75 [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 03 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 03 00 F0 0C 00 90 00 70 [15:10:06]RAPDU: 90 00 [15:10:06]wFMCommunicate OK [15:10:06]wFMCommunicate request_size=255 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 CC 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 16 B5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 9B 00 00 00 00 07 04 06 00 F0 B4 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 CD 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7B 02 00 35 04 06 00 [15:10:06]Write to MH i2c: E2 02 01 F1 0C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 CC 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 16 B5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 9B 00 00 00 00 07 04 06 00 F0 B4 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 CD 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7B 02 00 35 04 06 00 00 00 2E [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:06]Read from MH i2c: E2 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 03 00 [15:10:06]MH_I2C_Read... [15:10:06]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [15:10:06]RAPDU: 90 00 [15:10:06]wFMCommunicate OK [15:10:06]wFMCommunicate request_size=11 [15:10:06]MH_SAM_APDU [15:10:06]CAPDU: 80 0D 02 02 06 BD 2D 51 D2 0E 09 [15:10:06]Write to MH i2c: E2 0E 00 F2 0C 80 0D 02 02 06 00 BD 2D 51 D2 0E 09 00 00 A8 [15:10:06]Write i2c OK [15:10:06]MH_I2C_Read... [15:10:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:07]Read from MH i2c: E2 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 03 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [15:10:07]RAPDU: 90 00 [15:10:07]wFMCommunicate OK [15:10:07]wFMCommunicate request_size=4 [15:10:07]MH_SAM_APDU [15:10:07]CAPDU: 80 0D 03 02 [15:10:07]Write to MH i2c: E2 08 00 F3 0C 80 0D 03 02 00 00 00 00 7A [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:07]Read from MH i2c: E2 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 0B 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 0B 00 F3 0C 00 29 ED 66 D3 4C 8C 4E C1 90 00 B1 [15:10:07]RAPDU: 29 ED 66 D3 4C 8C 4E C1 90 00 [15:10:07]wFMCommunicate OK [15:10:07]SAM_PROTO_SignData done [15:10:07]FM_MakeSignedData done [15:10:07]CreateOFDProtocolMessage [15:10:07]wFMCommunicate request_size=4 [15:10:07]MH_SAM_APDU [15:10:07]CAPDU: 80 11 00 00 [15:10:07]Write to MH i2c: E2 08 00 F4 0C 80 11 00 00 00 00 00 00 7A [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:07]Read from MH i2c: E2 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 17 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: E2 17 00 F4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DA [15:10:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:10:07]wFMCommunicate OK [15:10:07]CreateOFDProtocolMessage done [15:10:07]OFDSenderStorePacket 162563 [15:10:07]StoreOFDPacket docnum=162563 [15:10:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 40 8D 08 01 61 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 CC 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 16 B5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 9B 00 00 00 00 07 04 06 00 F0 B4 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 CD 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7B 02 00 35 04 06 00 BD 2D 51 D2 0E 09 29 ED 66 D3 4C 8C 4E C1 [15:10:07]CheckFolder [15:10:07]dirname=/storage/ofd_packets [15:10:07]CheckFolder done [15:10:07]ProducePacketName [15:10:07]name=ofd_packets/00162563 [15:10:07]NVStorageSaveData ofd_packets/00162563 [15:10:07]File name is /storage/ofd_packets/00162563 [15:10:07]Write 302 bytes [15:10:07]NVStorageSaveData done [15:10:07]OFDSenderStorePacket done [15:10:07]KKMCreateOFDPacket done [15:10:07]NVStorageSaveData kkm_last_timestamp [15:10:07]File name is /storage/kkm_last_timestamp [15:10:07]Write 4 bytes [15:10:07]NVStorageSaveData done [15:10:07]ExternCall_PrintAddStr [15:10:07]wPrintStart [15:10:07]Write to MH i2c: 01 00 00 F5 0C 01 [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: 01 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: 01 07 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 FF 0F 16 [15:10:07]RasterBufferAndPrint [15:10:07]line Счет N : (1)1319119 [15:10:07]line ИНН: 02508201610067 [15:10:07]line Контрольно-Кассовый Чек [15:10:07]line ПРОДАЖА [15:10:07]line ТРК (МРК, ГНК) : 21 [15:10:07]line Товар: 2710194210 [15:10:07]line ДТ(л)-К-5 [15:10:07]line 52.240 * 71.60 [15:10:07]line = 3740.38 [15:10:07]line НДС 12% НСП 1% [15:10:07]line > о реализуемом товаре [15:10:07]line ОКРУГЛЕНИЕ: -0.38 [15:10:07]line ИТОГО: 3740.00 [15:10:07]line Внесено: 3740.00 [15:10:07]line СДАЧА: 0.00 [15:10:07]line НСП 1% : 33.10 [15:10:07]line НДС 12% : 397.21 [15:10:07]line Наличными: 3740.00 [15:10:07]line Безнал.: 0.00 [15:10:07]line Место: АЗС № 140 "Партнер Нефть" [15:10:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:10:07]line СНО: Общий режим [15:10:07]line Чек 231 13.07.2024 15:10 [15:10:07]line Смена: 462 ФФД: 1.0 [15:10:07]line ЗНМ: 0300000129 [15:10:07]line РНМ: 0000000000090858 [15:10:07]line Версия ККМ: 001 [15:10:07]line [15:10:07]line Дисконтная программа [15:10:07]line ДТ [15:10:07]line номер 140 [15:10:07]line сэкономлено 52.24 сом [15:10:07]line ФМ: 0000000000874899 [15:10:07]line ФД: 162563 [15:10:07]line ФПД: 208002343898633 [15:10:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151005&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162563&fm=208002343898633&tin=02508201610067®Number=0000000000090858&sum=374000 [15:10:07]OFD Sender: Processing packet 162563 [packets to send 106, broken 105] [15:10:07]ProducePacketName [15:10:07]name=ofd_packets/00162563 [15:10:07]OFD Sender: To server: pG, [15:10:07]CommunicateWithHost lk.salyk.kg:30040 [15:10:07]ConnectInit lk.salyk.kg [15:10:07]written 0, free lines is 4095 [15:10:07]Connected sock=10 [15:10:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 40 8D 08 01 61 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 CC 00 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 16 B5 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 B4 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 9B 00 00 00 00 07 04 06 00 F0 B4 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 CD 98 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7B 02 00 35 04 06 00 BD 2D 51 D2 0E 09 29 ED 66 D3 4C 8C 4E C1 [15:10:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BA F2 47 00 F2 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 03 7B 02 00 F4 03 04 00 DC 44 92 66 B6 04 01 00 00 50 AA 16 0B 4D FB 5C 31 [15:10:07]CommunicateWithHost err = 0 [15:10:07]CheckOFDResponse [15:10:07]1017 (14) - 77093643461234 [15:10:07]1041 (16) - 0000000000874899 [15:10:07]1040 (4) - 162563 [15:10:07]1012 (4) - 13.07.2024 09:11 [15:10:07]1206 (1) - 0 [15:10:07]OFD Sender: Remove packet 162563 [15:10:07]ProducePacketName [15:10:07]name=ofd_packets/00162563 [15:10:07]NVStorageDeleteData [15:10:07]Write to MH i2c: 01 00 00 25 0D 32 [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: 01 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: 01 07 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: 01 07 00 25 0D 00 00 00 00 00 9C 0C E1 [15:10:07]RasterBufferAndPrint [15:10:07]line [15:10:07]line [15:10:07]line [15:10:07]line [15:10:07]line [15:10:07]written 0, free lines is 3237 [15:10:07]MH_Cut [15:10:07]Write to MH i2c: D1 01 00 2C 0D 01 0B [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: D1 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: D1 01 00 [15:10:07]MH_I2C_Read... [15:10:07]Read from MH i2c: D1 01 00 2C 0D 00 0A [15:10:07]Write to MH i2c: 01 00 00 2D 0D 3A [15:10:07]Write i2c OK [15:10:07]MH_I2C_Read... [15:10:08]OFD Sender: No OFD packet to send [15:10:08]*** Cut start [15:10:08]*** Purtial cut [15:10:08]*** Stage 1: CUTSNS_PIN = 1 [15:10:08]Read from MH i2c: 01 [15:10:08]MH_I2C_Read... [15:10:08]*** Stop cut motor [15:10:08]*** Cut end [15:10:08]Read from MH i2c: 01 07 00 [15:10:08]MH_I2C_Read... [15:10:08]Read from MH i2c: 01 07 00 2D 0D 00 00 00 00 00 FF 0F 4F [15:10:08]process_action close_receipt done [15:10:08]requested_data is exist [15:10:08]produce_requested_data [15:10:08]requested_item fm.sn is exist - process it [15:10:08]wFMCommunicate request_size=4 [15:10:08]MH_SAM_APDU [15:10:08]CAPDU: 80 11 00 00 [15:10:08]Write to MH i2c: E2 08 00 2E 0D 80 11 00 00 00 00 00 00 B5 [15:10:08]Write i2c OK [15:10:08]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 17 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 17 00 2E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 15 [15:10:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:10:09]wFMCommunicate OK [15:10:09]requested_item fd.num is exist - process it [15:10:09]SAM_PROTO_GetFieldsCounters [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 13 00 00 [15:10:09]Write to MH i2c: E2 08 00 2F 0D 80 13 00 00 00 00 00 00 B8 [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 62 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 62 00 2F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 03 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [15:10:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 03 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:10:09]wFMCommunicate OK [15:10:09]SAM_PROTO_GetFieldsCounters done [15:10:09]requested_item shift.num is exist - process it [15:10:09]requested_item shift.opened is exist - process it [15:10:09]req_shift_opened [15:10:09]FM_GetShiftState [15:10:09]SAM_PROTO_GetShiftState [15:10:09]wFMCommunicate request_size=4 [15:10:09]MH_SAM_APDU [15:10:09]CAPDU: 80 13 01 00 [15:10:09]Write to MH i2c: E2 08 00 30 0D 80 13 01 00 00 00 00 00 BA [15:10:09]Write i2c OK [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 [15:10:09]MH_I2C_Read... [15:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:09]Read from MH i2c: E2 0E 00 [15:10:09]MH_I2C_Read... [15:10:09]Read from MH i2c: E2 0E 00 30 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B4 [15:10:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:10:09]wFMCommunicate OK [15:10:09]SAM_PROTO_GetShiftState done [15:10:09]FM_GetShiftState done [15:10:09]req_shift_opened done [15:10:09]requested_item shift.open_date is exist - process it [15:10:09]req_shift_open_date [15:10:09]req_shift_open_date done [15:10:09]produce_requested_data done [15:10:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162563,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:10:09]process_action_free close_receipt [15:10:09]json_value_free [15:10:09]json_value_free done [15:10:09]process_json_proto returns [15:10:09]Send response to host [15:10:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162563,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:10:09]free response buf [15:10:09]execute_script done [15:10:09]execute_script returns [15:10:09]free content buf [15:10:09]Sock 9.Close socket [15:10:09]Sock 9.Thread stoped [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:23]OFD Sender: No OFD packet to send [15:13:28]OFD Sender: No OFD packet to send [15:13:33]OFD Sender: No OFD packet to send [15:13:38]OFD Sender: No OFD packet to send [15:13:43]OFD Sender: No OFD packet to send [15:13:48]OFD Sender: No OFD packet to send [15:13:53]OFD Sender: No OFD packet to send [15:13:58]OFD Sender: No OFD packet to send [15:14:03]OFD Sender: No OFD packet to send [15:14:08]OFD Sender: No OFD packet to send [15:14:13]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:17]accept exits with 7 [15:15:17]New connection [15:15:17]New thread 3067510116 created [15:15:17]Thread 3067366756 joined [15:15:17]Waiting for new connection... [15:15:17] Sock 7.Parse request [15:15:17]Sock 7.Check first char [15:15:17]Sock 7.First char is OK [15:15:17]request: POST /json_proto HTTP/1.0 [15:15:17]Method: POST [15:15:17]URL: /json_proto [15:15:17]Method is POST - this is cgi request [15:15:17]url: /json_proto [15:15:17]query_string will be loaded in cgi processing [15:15:17]execute_cgi json_proto POST (null) [15:15:17]execute_cgi path=json_proto method=POST [15:15:17]POST find Content-Length [15:15:17]Host: 172.17.39.67:8080 [15:15:17]Content-Length: 688 [15:15:17]Content-Type: application/json [15:15:17] [15:15:17]POST finish read [15:15:17]Found Content-Length = 688 [15:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [15:15:17]execute_script... [15:15: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)1319122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [15:15:17]POST & json_proto [15:15:17]process_json_proto [15:15:17]json parsed OK: [15:15:17]protocol is kg_v1.0 [15:15:17]action value=close_receipt [15:15:17]process_action close_receipt [15:15:17]cmd_close_receipt [15:15:17]MH_GetDate [15:15:17]Write to MH i2c: F0 00 00 31 0D 2D [15:15:17]Write i2c OK [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: F0 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: F0 09 00 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: F0 09 00 31 0D 00 06 9A 92 66 86 7C 92 66 C8 [15:15:17]GetLastDocTimeStamp 1720883405 [15:15:17]current date 1720883718 [15:15:17]FM_GetShiftState [15:15:17]SAM_PROTO_GetShiftState [15:15:17]wFMCommunicate request_size=4 [15:15:17]MH_SAM_APDU [15:15:17]CAPDU: 80 13 01 00 [15:15:17]Write to MH i2c: E2 08 00 32 0D 80 13 01 00 00 00 00 00 BC [15:15:17]Write i2c OK [15:15:17]MH_I2C_Read... [15:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:17]Read from MH i2c: E2 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 0E 00 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 0E 00 32 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B6 [15:15:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:15:17]wFMCommunicate OK [15:15:17]SAM_PROTO_GetShiftState done [15:15:17]FM_GetShiftState done [15:15:17]opened in 1720828979 [15:15:17]opened+sec_in_day 1720915379 [15:15:17]quantity*price = 300055 [15:15:17]sum+1 = 300057 [15:15:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 232 13.07.2024 15:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162564 ФПД: 174231846903738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151518&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162564&fm=174231846903738&tin=02508201610067®Number=0000000000090858&sum=300000 [15:15:18]StoreToDocumentArchive [15:15:18]shift 462 fd 162564 [15:15:18]save to /storage/0462/doc_00162564 [15:15:18]save last doc name /storage/0462/doc_00162564 to /storage/kkm_last_doc_name [15:15:18]save OK [15:15:18]Clear old archive folders... [15:15:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:15:18]tlvbuf is 005D1460 [15:15:18]SAM_PROTO_ClearQueue [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 09 00 00 [15:15:18]Write to MH i2c: E2 08 00 3F 0D 80 09 00 00 00 00 00 00 BE [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 3F 0D 00 90 00 C0 [15:15:18]RAPDU: 90 00 [15:15:18]wFMCommunicate OK [15:15:18]SAM_PROTO_ClearQueue done [15:15:18]KKMCreateOFDPacket [15:15:18]OFDProtocolAddRootSTLVToBuf [15:15:18]FM_MakeSignedData [15:15:18]FM_MakeSignedData [15:15:18]SAM_PROTO_SignData [15:15:18]wFMCommunicate request_size=4 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 0D 01 02 [15:15:18]Write to MH i2c: E2 08 00 40 0D 80 0D 01 02 00 00 00 00 C6 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:18]Read from MH i2c: E2 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 [15:15:18]MH_I2C_Read... [15:15:18]Read from MH i2c: E2 03 00 40 0D 00 90 00 C1 [15:15:18]RAPDU: 90 00 [15:15:18]wFMCommunicate OK [15:15:18]wFMCommunicate request_size=255 [15:15:18]MH_SAM_APDU [15:15:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 E8 00 00 00 F4 03 04 00 06 9A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7B 02 00 35 04 06 00 [15:15:18]Write to MH i2c: E2 02 01 41 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 E8 00 00 00 F4 03 04 00 06 9A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7B 02 00 35 04 06 00 00 00 73 [15:15:18]Write i2c OK [15:15:18]MH_I2C_Read... [15:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:19]Read from MH i2c: E2 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: E2 03 00 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: E2 03 00 41 0D 00 90 00 C2 [15:15:19]RAPDU: 90 00 [15:15:19]wFMCommunicate OK [15:15:19]wFMCommunicate request_size=11 [15:15:19]MH_SAM_APDU [15:15:19]CAPDU: 80 0D 02 02 06 9E 76 83 57 DF BA [15:15:19]Write to MH i2c: E2 0E 00 42 0D 80 0D 02 02 06 00 9E 76 83 57 DF BA 00 00 5C [15:15:19]Write i2c OK [15:15:19]MH_I2C_Read... [15:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:19]Read from MH i2c: E2 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: E2 03 00 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [15:15:19]RAPDU: 90 00 [15:15:19]wFMCommunicate OK [15:15:19]wFMCommunicate request_size=4 [15:15:19]MH_SAM_APDU [15:15:19]CAPDU: 80 0D 03 02 [15:15:19]Write to MH i2c: E2 08 00 43 0D 80 0D 03 02 00 00 00 00 CB [15:15:19]Write i2c OK [15:15:19]MH_I2C_Read... [15:15:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:19]Read from MH i2c: E2 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: E2 0B 00 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: E2 0B 00 43 0D 00 ED 18 BD 21 85 F9 FD A2 90 00 CC [15:15:19]RAPDU: ED 18 BD 21 85 F9 FD A2 90 00 [15:15:19]wFMCommunicate OK [15:15:19]SAM_PROTO_SignData done [15:15:19]FM_MakeSignedData done [15:15:19]CreateOFDProtocolMessage [15:15:19]wFMCommunicate request_size=4 [15:15:19]MH_SAM_APDU [15:15:19]CAPDU: 80 11 00 00 [15:15:19]Write to MH i2c: E2 08 00 44 0D 80 11 00 00 00 00 00 00 CB [15:15:19]Write i2c OK [15:15:19]MH_I2C_Read... [15:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:19]Read from MH i2c: E2 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: E2 17 00 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: E2 17 00 44 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2B [15:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:15:19]wFMCommunicate OK [15:15:19]CreateOFDProtocolMessage done [15:15:19]OFDSenderStorePacket 162564 [15:15:19]StoreOFDPacket docnum=162564 [15:15:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6E 4E 08 01 C3 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 E8 00 00 00 F4 03 04 00 06 9A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7B 02 00 35 04 06 00 9E 76 83 57 DF BA ED 18 BD 21 85 F9 FD A2 [15:15:19]CheckFolder [15:15:19]dirname=/storage/ofd_packets [15:15:19]CheckFolder done [15:15:19]ProducePacketName [15:15:19]name=ofd_packets/00162564 [15:15:19]NVStorageSaveData ofd_packets/00162564 [15:15:19]File name is /storage/ofd_packets/00162564 [15:15:19]Write 302 bytes [15:15:19]NVStorageSaveData done [15:15:19]OFDSenderStorePacket done [15:15:19]KKMCreateOFDPacket done [15:15:19]NVStorageSaveData kkm_last_timestamp [15:15:19]File name is /storage/kkm_last_timestamp [15:15:19]Write 4 bytes [15:15:19]NVStorageSaveData done [15:15:19]ExternCall_PrintAddStr [15:15:19]wPrintStart [15:15:19]Write to MH i2c: 01 00 00 45 0D 52 [15:15:19]Write i2c OK [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: 01 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: 01 07 00 [15:15:19]MH_I2C_Read... [15:15:19]Read from MH i2c: 01 07 00 45 0D 00 00 00 00 00 FF 0F 67 [15:15:19]RasterBufferAndPrint [15:15:19]line Счет N : (1)1319122 [15:15:19]line ИНН: 02508201610067 [15:15:19]line Контрольно-Кассовый Чек [15:15:19]line ПРОДАЖА [15:15:19]line ТРК (МРК, ГНК) : 11 [15:15:19]line Товар: 2710194210 [15:15:19]line ДТ(л)-К-5 [15:15:19]line 41.330 * 72.60 [15:15:19]line = 3000.56 [15:15:19]line НДС 12% НСП 1% [15:15:19]line > о реализуемом товаре [15:15:19]line ОКРУГЛЕНИЕ: -0.56 [15:15:19]line ИТОГО: 3000.00 [15:15:19]line Внесено: 3000.00 [15:15:19]line СДАЧА: 0.00 [15:15:19]line НСП 1% : 26.55 [15:15:19]line НДС 12% : 318.64 [15:15:19]line Наличными: 3000.00 [15:15:19]line Безнал.: 0.00 [15:15:19]line Место: АЗС № 140 "Партнер Нефть" [15:15:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:15:19]line СНО: Общий режим [15:15:19]line Чек 232 13.07.2024 15:15 [15:15:19]line Смена: 462 ФФД: 1.0 [15:15:19]line ЗНМ: 0300000129 [15:15:19]line РНМ: 0000000000090858 [15:15:19]line Версия ККМ: 001 [15:15:19]line ФМ: 0000000000874899 [15:15:19]line ФД: 162564 [15:15:19]line ФПД: 174231846903738 [15:15:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T151518&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162564&fm=174231846903738&tin=02508201610067®Number=0000000000090858&sum=300000 [15:15:19]OFD Sender: Processing packet 162564 [packets to send 106, broken 105] [15:15:19]ProducePacketName [15:15:19]name=ofd_packets/00162564 [15:15:19]OFD Sender: To server: pG, [15:15:19]CommunicateWithHost lk.salyk.kg:30040 [15:15:19]ConnectInit lk.salyk.kg [15:15:19]written 0, free lines is 4095 [15:15:19]Connected sock=10 [15:15:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6E 4E 08 01 C3 03 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 E8 00 00 00 F4 03 04 00 06 9A 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7B 02 00 35 04 06 00 9E 76 83 57 DF BA ED 18 BD 21 85 F9 FD A2 [15:15:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 90 A9 47 00 F3 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 04 7B 02 00 F4 03 04 00 15 46 92 66 B6 04 01 00 00 F9 8A 99 0D DD 4B 25 D5 [15:15:20]CommunicateWithHost err = 0 [15:15:20]CheckOFDResponse [15:15:20]1017 (14) - 77093643461234 [15:15:20]1041 (16) - 0000000000874899 [15:15:20]1040 (4) - 162564 [15:15:20]1012 (4) - 13.07.2024 09:17 [15:15:20]1206 (1) - 0 [15:15:20]OFD Sender: Remove packet 162564 [15:15:20]ProducePacketName [15:15:20]name=ofd_packets/00162564 [15:15:20]NVStorageDeleteData [15:15:20]Write to MH i2c: 01 00 00 70 0D 7D [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: 01 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: 01 07 00 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: 01 07 00 70 0D 00 00 00 00 00 F1 0C 81 [15:15:20]RasterBufferAndPrint [15:15:20]line [15:15:20]line [15:15:20]line [15:15:20]line [15:15:20]line [15:15:20]written 0, free lines is 3319 [15:15:20]MH_Cut [15:15:20]Write to MH i2c: D1 01 00 77 0D 01 56 [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: D1 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: D1 01 00 [15:15:20]MH_I2C_Read... [15:15:20]Read from MH i2c: D1 01 00 77 0D 00 55 [15:15:20]Write to MH i2c: 01 00 00 78 0D 85 [15:15:20]Write i2c OK [15:15:20]MH_I2C_Read... [15:15:20]OFD Sender: No OFD packet to send [15:15:20]*** Cut start [15:15:20]*** Purtial cut [15:15:20]*** CUTSNS_PIN = 0 [15:15:21]*** Stage 1: CUTSNS_PIN = 1 [15:15:22]Read from MH i2c: 01 [15:15:22]MH_I2C_Read... [15:15:22]*** Stop cut motor [15:15:22]*** Cut end [15:15:22]Read from MH i2c: 01 07 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: 01 07 00 78 0D 00 00 00 00 00 FF 0F 9A [15:15:22]process_action close_receipt done [15:15:22]requested_data is exist [15:15:22]produce_requested_data [15:15:22]requested_item fm.sn is exist - process it [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 11 00 00 [15:15:22]Write to MH i2c: E2 08 00 79 0D 80 11 00 00 00 00 00 00 00 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:22]Read from MH i2c: E2 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 17 00 [15:15:22]MH_I2C_Read... [15:15:22]Read from MH i2c: E2 17 00 79 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 60 [15:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:15:22]wFMCommunicate OK [15:15:22]requested_item fd.num is exist - process it [15:15:22]SAM_PROTO_GetFieldsCounters [15:15:22]wFMCommunicate request_size=4 [15:15:22]MH_SAM_APDU [15:15:22]CAPDU: 80 13 00 00 [15:15:22]Write to MH i2c: E2 08 00 7A 0D 80 13 00 00 00 00 00 00 03 [15:15:22]Write i2c OK [15:15:22]MH_I2C_Read... [15:15:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:23]Read from MH i2c: E2 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 62 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 62 00 7A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 04 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:15:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 04 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:23]wFMCommunicate OK [15:15:23]SAM_PROTO_GetFieldsCounters done [15:15:23]requested_item shift.num is exist - process it [15:15:23]requested_item shift.opened is exist - process it [15:15:23]req_shift_opened [15:15:23]FM_GetShiftState [15:15:23]SAM_PROTO_GetShiftState [15:15:23]wFMCommunicate request_size=4 [15:15:23]MH_SAM_APDU [15:15:23]CAPDU: 80 13 01 00 [15:15:23]Write to MH i2c: E2 08 00 7B 0D 80 13 01 00 00 00 00 00 05 [15:15:23]Write i2c OK [15:15:23]MH_I2C_Read... [15:15:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:23]Read from MH i2c: E2 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 0E 00 [15:15:23]MH_I2C_Read... [15:15:23]Read from MH i2c: E2 0E 00 7B 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FF [15:15:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:15:23]wFMCommunicate OK [15:15:23]SAM_PROTO_GetShiftState done [15:15:23]FM_GetShiftState done [15:15:23]req_shift_opened done [15:15:23]requested_item shift.open_date is exist - process it [15:15:23]req_shift_open_date [15:15:23]req_shift_open_date done [15:15:23]produce_requested_data done [15:15:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162564,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:15:23]process_action_free close_receipt [15:15:23]json_value_free [15:15:23]json_value_free done [15:15:23]process_json_proto returns [15:15:23]Send response to host [15:15:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162564,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:15:23]free response buf [15:15:23]execute_script done [15:15:23]execute_script returns [15:15:23]free content buf [15:15:23]Sock 7.Close socket [15:15:23]Sock 7.Thread stoped [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:37]accept exits with 9 [15:20:37]New connection [15:20:37]New thread 3067366756 created [15:20:37]Thread 3067510116 joined [15:20:37]Waiting for new connection... [15:20:37] Sock 9.Parse request [15:20:37]Sock 9.Check first char [15:20:37]Sock 9.First char is OK [15:20:37]request: POST /json_proto HTTP/1.0 [15:20:37]Method: POST [15:20:37]URL: /json_proto [15:20:37]Method is POST - this is cgi request [15:20:37]url: /json_proto [15:20:37]query_string will be loaded in cgi processing [15:20:37]execute_cgi json_proto POST (null) [15:20:37]execute_cgi path=json_proto method=POST [15:20:37]POST find Content-Length [15:20:37]Host: 172.17.39.67:8080 [15:20:37]Content-Length: 676 [15:20:37]Content-Type: application/json [15:20:37] [15:20:37]POST finish read [15:20:37]Found Content-Length = 676 [15:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 28.890, "sum" : 1944.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1944.00, "total" : 1944.00, "payments": [ { "type": 0, "sum" : 1944.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:37]execute_script... [15:20: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)1319123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 28.890, "sum" : 1944.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1944.00, "total" : 1944.00, "payments": [ { "type": 0, "sum" : 1944.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:37]POST & json_proto [15:20:37]process_json_proto [15:20:37]json parsed OK: [15:20:37]protocol is kg_v1.0 [15:20:37]action value=close_receipt [15:20:37]process_action close_receipt [15:20:37]cmd_close_receipt [15:20:37]MH_GetDate [15:20:37]Write to MH i2c: F0 00 00 7C 0D 78 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: F0 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: F0 09 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: F0 09 00 7C 0D 00 45 9B 92 66 86 7C 92 66 53 [15:20:37]GetLastDocTimeStamp 1720883718 [15:20:37]current date 1720884037 [15:20:37]FM_GetShiftState [15:20:37]SAM_PROTO_GetShiftState [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 13 01 00 [15:20:37]Write to MH i2c: E2 08 00 7D 0D 80 13 01 00 00 00 00 00 07 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 0E 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 0E 00 7D 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 01 [15:20:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:20:37]wFMCommunicate OK [15:20:37]SAM_PROTO_GetShiftState done [15:20:37]FM_GetShiftState done [15:20:37]opened in 1720828979 [15:20:37]opened+sec_in_day 1720915379 [15:20:37]quantity*price = 194429 [15:20:37]sum+1 = 194431 [15:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1944.00 Внесено: 1944.00 СДАЧА: 0.00 НСП 1% : 17.21 НДС 12% : 206.47 Наличными: 1944.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 233 13.07.2024 15:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162565 ФПД: 197527250728778 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152037&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162565&fm=197527250728778&tin=02508201610067®Number=0000000000090858&sum=194400 [15:20:38]StoreToDocumentArchive [15:20:38]shift 462 fd 162565 [15:20:38]save to /storage/0462/doc_00162565 [15:20:38]save last doc name /storage/0462/doc_00162565 to /storage/kkm_last_doc_name [15:20:38]save OK [15:20:38]Clear old archive folders... [15:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:20:38]tlvbuf is 006C9270 [15:20:38]SAM_PROTO_ClearQueue [15:20:38]wFMCommunicate request_size=4 [15:20:38]MH_SAM_APDU [15:20:38]CAPDU: 80 09 00 00 [15:20:38]Write to MH i2c: E2 08 00 8A 0D 80 09 00 00 00 00 00 00 09 [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 [15:20:38]MH_I2C_Read... [15:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:38]Read from MH i2c: E2 03 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 03 00 8A 0D 00 90 00 0B [15:20:38]RAPDU: 90 00 [15:20:38]wFMCommunicate OK [15:20:38]SAM_PROTO_ClearQueue done [15:20:38]KKMCreateOFDPacket [15:20:38]OFDProtocolAddRootSTLVToBuf [15:20:38]FM_MakeSignedData [15:20:38]FM_MakeSignedData [15:20:38]SAM_PROTO_SignData [15:20:38]wFMCommunicate request_size=4 [15:20:38]MH_SAM_APDU [15:20:38]CAPDU: 80 0D 01 02 [15:20:38]Write to MH i2c: E2 08 00 8B 0D 80 0D 01 02 00 00 00 00 11 [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:38]Read from MH i2c: E2 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 03 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 03 00 8B 0D 00 90 00 0C [15:20:38]RAPDU: 90 00 [15:20:38]wFMCommunicate OK [15:20:38]wFMCommunicate request_size=255 [15:20:38]MH_SAM_APDU [15:20:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 70 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 7E F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 F7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 50 00 00 00 00 07 04 06 00 60 F7 02 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 45 9B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7B 02 00 35 04 06 00 [15:20:38]Write to MH i2c: E2 02 01 8C 0D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 70 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 7E F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 F7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 50 00 00 00 00 07 04 06 00 60 F7 02 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 45 9B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7B 02 00 35 04 06 00 00 00 F6 [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:38]Read from MH i2c: E2 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 03 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 03 00 8C 0D 00 90 00 0D [15:20:38]RAPDU: 90 00 [15:20:38]wFMCommunicate OK [15:20:38]wFMCommunicate request_size=11 [15:20:38]MH_SAM_APDU [15:20:38]CAPDU: 80 0D 02 02 06 B3 A6 65 9C F7 4A [15:20:38]Write to MH i2c: E2 0E 00 8D 0D 80 0D 02 02 06 00 B3 A6 65 9C F7 4A 00 00 BB [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:38]Read from MH i2c: E2 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 03 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [15:20:38]RAPDU: 90 00 [15:20:38]wFMCommunicate OK [15:20:38]wFMCommunicate request_size=4 [15:20:38]MH_SAM_APDU [15:20:38]CAPDU: 80 0D 03 02 [15:20:38]Write to MH i2c: E2 08 00 8E 0D 80 0D 03 02 00 00 00 00 16 [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:38]Read from MH i2c: E2 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 0B 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 0B 00 8E 0D 00 C2 37 43 1C FA 69 0D E9 90 00 C8 [15:20:38]RAPDU: C2 37 43 1C FA 69 0D E9 90 00 [15:20:38]wFMCommunicate OK [15:20:38]SAM_PROTO_SignData done [15:20:38]FM_MakeSignedData done [15:20:38]CreateOFDProtocolMessage [15:20:38]wFMCommunicate request_size=4 [15:20:38]MH_SAM_APDU [15:20:38]CAPDU: 80 11 00 00 [15:20:38]Write to MH i2c: E2 08 00 8F 0D 80 11 00 00 00 00 00 00 16 [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:38]Read from MH i2c: E2 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 17 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: E2 17 00 8F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 76 [15:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:20:38]wFMCommunicate OK [15:20:38]CreateOFDProtocolMessage done [15:20:38]OFDSenderStorePacket 162565 [15:20:38]StoreOFDPacket docnum=162565 [15:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 72 92 08 01 4F F2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 70 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 7E F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 F7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 50 00 00 00 00 07 04 06 00 60 F7 02 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 45 9B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7B 02 00 35 04 06 00 B3 A6 65 9C F7 4A C2 37 43 1C FA 69 0D E9 [15:20:38]CheckFolder [15:20:38]dirname=/storage/ofd_packets [15:20:38]CheckFolder done [15:20:38]ProducePacketName [15:20:38]name=ofd_packets/00162565 [15:20:38]NVStorageSaveData ofd_packets/00162565 [15:20:38]File name is /storage/ofd_packets/00162565 [15:20:38]Write 302 bytes [15:20:38]NVStorageSaveData done [15:20:38]OFDSenderStorePacket done [15:20:38]KKMCreateOFDPacket done [15:20:38]NVStorageSaveData kkm_last_timestamp [15:20:38]File name is /storage/kkm_last_timestamp [15:20:38]Write 4 bytes [15:20:38]NVStorageSaveData done [15:20:38]ExternCall_PrintAddStr [15:20:38]wPrintStart [15:20:38]Write to MH i2c: 01 00 00 90 0D 9D [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 07 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 07 00 90 0D 00 00 00 00 00 FF 0F B2 [15:20:38]RasterBufferAndPrint [15:20:38]line Счет N : (1)1319123 [15:20:38]line ИНН: 02508201610067 [15:20:38]line Контрольно-Кассовый Чек [15:20:38]line ПРОДАЖА [15:20:38]line ТРК (МРК, ГНК) : 42 [15:20:38]line Товар: 2710124130 [15:20:38]line Super-92-К-5 [15:20:38]line 28.890 * 67.30 [15:20:38]line = 1944.30 [15:20:38]line НДС 12% НСП 1% [15:20:38]line > о реализуемом товаре [15:20:38]line ОКРУГЛЕНИЕ: -0.30 [15:20:38]line ИТОГО: 1944.00 [15:20:38]line Внесено: 1944.00 [15:20:38]line СДАЧА: 0.00 [15:20:38]line НСП 1% : 17.21 [15:20:38]line НДС 12% : 206.47 [15:20:38]line Наличными: 1944.00 [15:20:38]line Безнал.: 0.00 [15:20:38]line Место: АЗС № 140 "Партнер Нефть" [15:20:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:20:38]line СНО: Общий режим [15:20:38]line Чек 233 13.07.2024 15:20 [15:20:38]line Смена: 462 ФФД: 1.0 [15:20:38]line ЗНМ: 0300000129 [15:20:38]line РНМ: 0000000000090858 [15:20:38]line Версия ККМ: 001 [15:20:39]line ФМ: 0000000000874899 [15:20:39]line ФД: 162565 [15:20:39]line ФПД: 197527250728778 [15:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152037&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162565&fm=197527250728778&tin=02508201610067®Number=0000000000090858&sum=194400 [15:20:39]OFD Sender: Processing packet 162565 [packets to send 106, broken 105] [15:20:39]ProducePacketName [15:20:39]name=ofd_packets/00162565 [15:20:39]OFD Sender: To server: pG, [15:20:39]CommunicateWithHost lk.salyk.kg:30040 [15:20:39]ConnectInit lk.salyk.kg [15:20:39]written 0, free lines is 4095 [15:20:39]Connected sock=10 [15:20:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 72 92 08 01 4F F2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 70 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 7E F7 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 F7 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 50 00 00 00 00 07 04 06 00 60 F7 02 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 45 9B 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7B 02 00 35 04 06 00 B3 A6 65 9C F7 4A C2 37 43 1C FA 69 0D E9 [15:20:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 41 99 47 00 15 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 05 7B 02 00 F4 03 04 00 54 47 92 66 B6 04 01 00 00 DA A9 19 D0 2E 1F F1 41 [15:20:39]CommunicateWithHost err = 0 [15:20:39]CheckOFDResponse [15:20:39]1017 (14) - 77093643461234 [15:20:39]1041 (16) - 0000000000874899 [15:20:39]1040 (4) - 162565 [15:20:39]1012 (4) - 13.07.2024 09:22 [15:20:39]1206 (1) - 0 [15:20:39]OFD Sender: Remove packet 162565 [15:20:39]ProducePacketName [15:20:39]name=ofd_packets/00162565 [15:20:39]NVStorageDeleteData [15:20:39]Write to MH i2c: 01 00 00 BB 0D C8 [15:20:39]Write i2c OK [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: 01 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: 01 07 00 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: 01 07 00 BB 0D 00 00 00 00 00 E8 0C C3 [15:20:39]RasterBufferAndPrint [15:20:39]line [15:20:39]line [15:20:39]line [15:20:39]line [15:20:39]line [15:20:39]written 0, free lines is 3310 [15:20:39]MH_Cut [15:20:39]Write to MH i2c: D1 01 00 C2 0D 01 A1 [15:20:39]Write i2c OK [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: D1 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: D1 01 00 [15:20:39]MH_I2C_Read... [15:20:39]Read from MH i2c: D1 01 00 C2 0D 00 A0 [15:20:39]Write to MH i2c: 01 00 00 C3 0D D0 [15:20:39]Write i2c OK [15:20:39]MH_I2C_Read... [15:20:40]OFD Sender: No OFD packet to send [15:20:40]*** Cut start [15:20:40]*** Purtial cut [15:20:40]*** Stage 1: CUTSNS_PIN = 1 [15:20:40]Read from MH i2c: 01 [15:20:40]MH_I2C_Read... [15:20:40]*** Stop cut motor [15:20:40]*** Cut end [15:20:40]Read from MH i2c: 01 07 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [15:20:40]process_action close_receipt done [15:20:40]requested_data is exist [15:20:40]produce_requested_data [15:20:40]requested_item fm.sn is exist - process it [15:20:40]wFMCommunicate request_size=4 [15:20:40]MH_SAM_APDU [15:20:40]CAPDU: 80 11 00 00 [15:20:40]Write to MH i2c: E2 08 00 C4 0D 80 11 00 00 00 00 00 00 4B [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:40]Read from MH i2c: E2 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 17 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 17 00 C4 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AB [15:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:20:40]wFMCommunicate OK [15:20:40]requested_item fd.num is exist - process it [15:20:40]SAM_PROTO_GetFieldsCounters [15:20:40]wFMCommunicate request_size=4 [15:20:40]MH_SAM_APDU [15:20:40]CAPDU: 80 13 00 00 [15:20:40]Write to MH i2c: E2 08 00 C5 0D 80 13 00 00 00 00 00 00 4E [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:40]Read from MH i2c: E2 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 62 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 62 00 C5 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 05 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [15:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 05 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:40]wFMCommunicate OK [15:20:40]SAM_PROTO_GetFieldsCounters done [15:20:40]requested_item shift.num is exist - process it [15:20:40]requested_item shift.opened is exist - process it [15:20:40]req_shift_opened [15:20:40]FM_GetShiftState [15:20:40]SAM_PROTO_GetShiftState [15:20:40]wFMCommunicate request_size=4 [15:20:40]MH_SAM_APDU [15:20:40]CAPDU: 80 13 01 00 [15:20:40]Write to MH i2c: E2 08 00 C6 0D 80 13 01 00 00 00 00 00 50 [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:40]Read from MH i2c: E2 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 0E 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 0E 00 C6 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4A [15:20:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:20:40]wFMCommunicate OK [15:20:40]SAM_PROTO_GetShiftState done [15:20:40]FM_GetShiftState done [15:20:40]req_shift_opened done [15:20:40]requested_item shift.open_date is exist - process it [15:20:40]req_shift_open_date [15:20:40]req_shift_open_date done [15:20:40]produce_requested_data done [15:20:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162565,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:20:40]process_action_free close_receipt [15:20:40]json_value_free [15:20:40]json_value_free done [15:20:40]process_json_proto returns [15:20:40]Send response to host [15:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162565,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:20:40]free response buf [15:20:40]execute_script done [15:20:40]execute_script returns [15:20:40]free content buf [15:20:40]Sock 9.Close socket [15:20:40]Sock 9.Thread stoped [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]accept exits with 7 [15:27:30]New connection [15:27:30]New thread 3067510116 created [15:27:30]Thread 3067366756 joined [15:27:30]Waiting for new connection... [15:27:30] Sock 7.Parse request [15:27:30]Sock 7.Check first char [15:27:30]Sock 7.First char is OK [15:27:30]request: POST /json_proto HTTP/1.0 [15:27:30]Method: POST [15:27:30]URL: /json_proto [15:27:30]Method is POST - this is cgi request [15:27:30]url: /json_proto [15:27:30]query_string will be loaded in cgi processing [15:27:30]execute_cgi json_proto POST (null) [15:27:30]execute_cgi path=json_proto method=POST [15:27:30]POST find Content-Length [15:27:30]Host: 172.17.39.67:8080 [15:27:30]Content-Length: 1203 [15:27:30]Content-Type: application/json [15:27:30] [15:27:30]POST finish read [15:27:30]Found Content-Length = 1203 [15:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319125\u000A13.07.2024 15:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040959\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:30]execute_script... [15:27:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319125\u000A13.07.2024 15:24\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3040959\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:30]POST & json_proto [15:27:30]process_json_proto [15:27:30]json parsed OK: [15:27:30]protocol is kg_v1.0 [15:27:30]action value=print_text [15:27:30]process_action print_text [15:27:30]cmd_print_text [15:27:30]ExternCall_PrintAddStr [15:27:30]wPrintStart [15:27:30]Write to MH i2c: 01 00 00 C7 0D D4 [15:27:30]Write i2c OK [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: 01 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: 01 07 00 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: 01 07 00 C7 0D 00 00 00 00 00 FF 0F E9 [15:27:30]RasterBufferAndPrint [15:27:30]line *****ТОВАРНЫЙ ЧЕК***** [15:27:30]line АЗС 140 [15:27:30]line Партнер нефть [15:27:30]line 02508201610067 [15:27:30]line Кассир : Шамбеталиев А. [15:27:30]line Счет N : (1)1319125 [15:27:30]line 13.07.2024 15:24 [15:27:30]line ПРОДАЖА [15:27:30]line ТРК (МРК, ГНК): 33 [15:27:30]line Вид ГСМ : 2710124130 [15:27:30]line Аи-92-К-5 [15:27:30]line 20.000 x 66.30 [15:27:30]line ИТОГ: 1326.00 [15:27:30]line Тип оплаты: Талоны: Партнер нефть [15:27:30]line 3040959 [15:27:30]line ______________________ [15:27:30]line (подпись) [15:27:30]written 0, free lines is 4095 [15:27:30]Write to MH i2c: 01 00 00 DC 0D E9 [15:27:30]Write i2c OK [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: 01 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: 01 07 00 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: 01 07 00 DC 0D 00 00 00 00 00 F5 0D F2 [15:27:30]RasterBufferAndPrint [15:27:30]line [15:27:30]line [15:27:30]line [15:27:30]line [15:27:30]line [15:27:30]written 0, free lines is 3575 [15:27:30]OFD Sender: No OFD packet to send [15:27:30]MH_Cut [15:27:30]Write to MH i2c: D1 01 00 E3 0D 01 C2 [15:27:30]Write i2c OK [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: D1 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: D1 01 00 [15:27:30]MH_I2C_Read... [15:27:30]Read from MH i2c: D1 01 00 E3 0D 00 C1 [15:27:30]Write to MH i2c: 01 00 00 E4 0D F1 [15:27:30]Write i2c OK [15:27:30]MH_I2C_Read... [15:27:31]*** Cut start [15:27:31]*** Purtial cut [15:27:31]*** CUTSNS_PIN = 0 [15:27:31]*** Stage 1: CUTSNS_PIN = 1 [15:27:33]Read from MH i2c: 01 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: 01 07 00 [15:27:33]MH_I2C_Read... [15:27:33]*** Stop cut motor [15:27:33]*** Cut end [15:27:33]Read from MH i2c: 01 07 00 E4 0D 00 00 00 00 00 FF 0F 06 [15:27:33]process_action print_text done [15:27:33]requested_data is exist [15:27:33]produce_requested_data [15:27:33]requested_item fm.sn is exist - process it [15:27:33]wFMCommunicate request_size=4 [15:27:33]MH_SAM_APDU [15:27:33]CAPDU: 80 11 00 00 [15:27:33]Write to MH i2c: E2 08 00 E5 0D 80 11 00 00 00 00 00 00 6C [15:27:33]Write i2c OK [15:27:33]MH_I2C_Read... [15:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:27:33]Read from MH i2c: E2 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 17 00 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 17 00 E5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CC [15:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:27:33]wFMCommunicate OK [15:27:33]requested_item fd.num is exist - process it [15:27:33]SAM_PROTO_GetFieldsCounters [15:27:33]wFMCommunicate request_size=4 [15:27:33]MH_SAM_APDU [15:27:33]CAPDU: 80 13 00 00 [15:27:33]Write to MH i2c: E2 08 00 E6 0D 80 13 00 00 00 00 00 00 6F [15:27:33]Write i2c OK [15:27:33]MH_I2C_Read... [15:27:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:27:33]Read from MH i2c: E2 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 62 00 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 62 00 E6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 05 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [15:27:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 05 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:27:33]wFMCommunicate OK [15:27:33]SAM_PROTO_GetFieldsCounters done [15:27:33]requested_item shift.num is exist - process it [15:27:33]requested_item shift.opened is exist - process it [15:27:33]req_shift_opened [15:27:33]FM_GetShiftState [15:27:33]SAM_PROTO_GetShiftState [15:27:33]wFMCommunicate request_size=4 [15:27:33]MH_SAM_APDU [15:27:33]CAPDU: 80 13 01 00 [15:27:33]Write to MH i2c: E2 08 00 E7 0D 80 13 01 00 00 00 00 00 71 [15:27:33]Write i2c OK [15:27:33]MH_I2C_Read... [15:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:33]Read from MH i2c: E2 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 0E 00 [15:27:33]MH_I2C_Read... [15:27:33]Read from MH i2c: E2 0E 00 E7 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6B [15:27:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:27:33]wFMCommunicate OK [15:27:33]SAM_PROTO_GetShiftState done [15:27:33]FM_GetShiftState done [15:27:33]req_shift_opened done [15:27:33]requested_item shift.open_date is exist - process it [15:27:33]req_shift_open_date [15:27:33]req_shift_open_date done [15:27:33]produce_requested_data done [15:27:33]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162565,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:27:33]process_action_free print_text [15:27:33]json_value_free [15:27:33]json_value_free done [15:27:33]process_json_proto returns [15:27:33]Send response to host [15:27:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162565,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:27:33]free response buf [15:27:33]execute_script done [15:27:33]execute_script returns [15:27:33]free content buf [15:27:33]Sock 7.Close socket [15:27:33]Sock 7.Thread stoped [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:27:58]accept exits with 9 [15:27:58]New connection [15:27:58]New thread 3067366756 created [15:27:58]Thread 3067510116 joined [15:27:58]Waiting for new connection... [15:27:58] Sock 9.Parse request [15:27:58]Sock 9.Check first char [15:27:58]Sock 9.First char is OK [15:27:58]request: POST /json_proto HTTP/1.0 [15:27:58]Method: POST [15:27:58]URL: /json_proto [15:27:58]Method is POST - this is cgi request [15:27:58]url: /json_proto [15:27:58]query_string will be loaded in cgi processing [15:27:58]execute_cgi json_proto POST (null) [15:27:58]execute_cgi path=json_proto method=POST [15:27:58]POST find Content-Length [15:27:58]Host: 172.17.39.67:8080 [15:27:58]Content-Length: 678 [15:27:58]Content-Type: application/json [15:27:58] [15:27:58]POST finish read [15:27:58]Found Content-Length = 678 [15:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:58]execute_script... [15:27:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.040, "sum" : 400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:27:58]POST & json_proto [15:27:58]process_json_proto [15:27:58]json parsed OK: [15:27:58]protocol is kg_v1.0 [15:27:58]action value=close_receipt [15:27:58]process_action close_receipt [15:27:58]cmd_close_receipt [15:27:58]MH_GetDate [15:27:58]Write to MH i2c: F0 00 00 E8 0D E4 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: F0 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: F0 09 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: F0 09 00 E8 0D 00 FE 9C 92 66 86 7C 92 66 79 [15:27:58]GetLastDocTimeStamp 1720884037 [15:27:58]current date 1720884478 [15:27:58]FM_GetShiftState [15:27:58]SAM_PROTO_GetShiftState [15:27:58]wFMCommunicate request_size=4 [15:27:58]MH_SAM_APDU [15:27:58]CAPDU: 80 13 01 00 [15:27:58]Write to MH i2c: E2 08 00 E9 0D 80 13 01 00 00 00 00 00 73 [15:27:58]Write i2c OK [15:27:58]MH_I2C_Read... [15:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:27:58]Read from MH i2c: E2 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 0E 00 [15:27:58]MH_I2C_Read... [15:27:58]Read from MH i2c: E2 0E 00 E9 0D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6D [15:27:58]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:27:58]wFMCommunicate OK [15:27:58]SAM_PROTO_GetShiftState done [15:27:58]FM_GetShiftState done [15:27:58]opened in 1720828979 [15:27:58]opened+sec_in_day 1720915379 [15:27:58]quantity*price = 40045 [15:27:58]sum+1 = 40046 [15:27:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 234 13.07.2024 15:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162566 ФПД: 32624370161825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152758&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162566&fm=32624370161825&tin=02508201610067®Number=0000000000090858&sum=40000 [15:27:59]StoreToDocumentArchive [15:27:59]shift 462 fd 162566 [15:27:59]save to /storage/0462/doc_00162566 [15:27:59]save last doc name /storage/0462/doc_00162566 to /storage/kkm_last_doc_name [15:27:59]save OK [15:27:59]Clear old archive folders... [15:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:27:59]tlvbuf is 006C2F60 [15:27:59]SAM_PROTO_ClearQueue [15:27:59]wFMCommunicate request_size=4 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 09 00 00 [15:27:59]Write to MH i2c: E2 08 00 F6 0D 80 09 00 00 00 00 00 00 75 [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 F6 0D 00 90 00 77 [15:27:59]RAPDU: 90 00 [15:27:59]wFMCommunicate OK [15:27:59]SAM_PROTO_ClearQueue done [15:27:59]KKMCreateOFDPacket [15:27:59]OFDProtocolAddRootSTLVToBuf [15:27:59]FM_MakeSignedData [15:27:59]FM_MakeSignedData [15:27:59]SAM_PROTO_SignData [15:27:59]wFMCommunicate request_size=4 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 0D 01 02 [15:27:59]Write to MH i2c: E2 08 00 F7 0D 80 0D 01 02 00 00 00 00 7D [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 F7 0D 00 90 00 78 [15:27:59]RAPDU: 90 00 [15:27:59]wFMCommunicate OK [15:27:59]wFMCommunicate request_size=255 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 EA 00 00 00 F4 03 04 00 FE 9C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7B 02 00 35 04 06 00 1D [15:27:59]Write to MH i2c: E2 02 01 F8 0D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 EA 00 00 00 F4 03 04 00 FE 9C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7B 02 00 35 04 06 00 1D 00 00 03 [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:27:59]Read from MH i2c: E2 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 [15:27:59]MH_I2C_Read... [15:27:59]Read from MH i2c: E2 03 00 F8 0D 00 90 00 79 [15:27:59]RAPDU: 90 00 [15:27:59]wFMCommunicate OK [15:27:59]wFMCommunicate request_size=10 [15:27:59]MH_SAM_APDU [15:27:59]CAPDU: 80 0D 02 02 05 AB F3 FE 98 A1 [15:27:59]Write to MH i2c: E2 0D 00 F9 0D 80 0D 02 02 05 00 AB F3 FE 98 A1 00 00 5F [15:27:59]Write i2c OK [15:27:59]MH_I2C_Read... [15:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:00]Read from MH i2c: E2 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: E2 03 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: E2 03 00 F9 0D 00 90 00 7A [15:28:00]RAPDU: 90 00 [15:28:00]wFMCommunicate OK [15:28:00]wFMCommunicate request_size=4 [15:28:00]MH_SAM_APDU [15:28:00]CAPDU: 80 0D 03 02 [15:28:00]Write to MH i2c: E2 08 00 FA 0D 80 0D 03 02 00 00 00 00 82 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:00]Read from MH i2c: E2 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: E2 0B 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: E2 0B 00 FA 0D 00 C8 18 80 50 E4 B8 4E 6F 90 00 8C [15:28:00]RAPDU: C8 18 80 50 E4 B8 4E 6F 90 00 [15:28:00]wFMCommunicate OK [15:28:00]SAM_PROTO_SignData done [15:28:00]FM_MakeSignedData done [15:28:00]CreateOFDProtocolMessage [15:28:00]wFMCommunicate request_size=4 [15:28:00]MH_SAM_APDU [15:28:00]CAPDU: 80 11 00 00 [15:28:00]Write to MH i2c: E2 08 00 FB 0D 80 11 00 00 00 00 00 00 82 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:00]Read from MH i2c: E2 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: E2 17 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: E2 17 00 FB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E2 [15:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:28:00]wFMCommunicate OK [15:28:00]CreateOFDProtocolMessage done [15:28:00]OFDSenderStorePacket 162566 [15:28:00]StoreOFDPacket docnum=162566 [15:28:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 10 4C 07 01 26 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 EA 00 00 00 F4 03 04 00 FE 9C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7B 02 00 35 04 06 00 1D AB F3 FE 98 A1 C8 18 80 50 E4 B8 4E 6F [15:28:00]CheckFolder [15:28:00]dirname=/storage/ofd_packets [15:28:00]CheckFolder done [15:28:00]ProducePacketName [15:28:00]name=ofd_packets/00162566 [15:28:00]NVStorageSaveData ofd_packets/00162566 [15:28:00]File name is /storage/ofd_packets/00162566 [15:28:00]Write 301 bytes [15:28:00]NVStorageSaveData done [15:28:00]OFDSenderStorePacket done [15:28:00]KKMCreateOFDPacket done [15:28:00]NVStorageSaveData kkm_last_timestamp [15:28:00]File name is /storage/kkm_last_timestamp [15:28:00]Write 4 bytes [15:28:00]NVStorageSaveData done [15:28:00]ExternCall_PrintAddStr [15:28:00]wPrintStart [15:28:00]Write to MH i2c: 01 00 00 FC 0D 09 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 07 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 07 00 FC 0D 00 00 00 00 00 FF 0F 1E [15:28:00]RasterBufferAndPrint [15:28:00]line Счет N : (1)1319124 [15:28:00]line ИНН: 02508201610067 [15:28:00]line Контрольно-Кассовый Чек [15:28:00]line ПРОДАЖА [15:28:00]line ТРК (МРК, ГНК) : 53 [15:28:00]line Товар: 2710124130 [15:28:00]line Аи-92-К-5 [15:28:00]line 6.040 * 66.30 [15:28:00]line = 400.45 [15:28:00]line НДС 12% НСП 1% [15:28:00]line > о реализуемом товаре [15:28:00]line ОКРУГЛЕНИЕ: -0.45 [15:28:00]line ИТОГО: 400.00 [15:28:00]line Внесено: 400.00 [15:28:00]line СДАЧА: 0.00 [15:28:00]line НСП 1% : 3.54 [15:28:00]line НДС 12% : 42.53 [15:28:00]line Наличными: 400.00 [15:28:00]line Безнал.: 0.00 [15:28:00]line Место: АЗС № 140 "Партнер Нефть" [15:28:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:28:00]line СНО: Общий режим [15:28:00]line Чек 234 13.07.2024 15:27 [15:28:00]line Смена: 462 ФФД: 1.0 [15:28:00]line ЗНМ: 0300000129 [15:28:00]line РНМ: 0000000000090858 [15:28:00]line Версия ККМ: 001 [15:28:00]line ФМ: 0000000000874899 [15:28:00]line ФД: 162566 [15:28:00]line ФПД: 32624370161825 [15:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T152758&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162566&fm=32624370161825&tin=02508201610067®Number=0000000000090858&sum=40000 [15:28:00]OFD Sender: Processing packet 162566 [packets to send 106, broken 105] [15:28:00]ProducePacketName [15:28:00]name=ofd_packets/00162566 [15:28:00]OFD Sender: To server: pG, [15:28:00]CommunicateWithHost lk.salyk.kg:30040 [15:28:00]ConnectInit lk.salyk.kg [15:28:00]written 0, free lines is 4095 [15:28:00]Connected sock=10 [15:28:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 10 4C 07 01 26 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 98 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 6D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 EA 00 00 00 F4 03 04 00 FE 9C 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7B 02 00 35 04 06 00 1D AB F3 FE 98 A1 C8 18 80 50 E4 B8 4E 6F [15:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AF 50 47 00 43 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 06 7B 02 00 F4 03 04 00 0D 49 92 66 B6 04 01 00 00 E9 D1 04 94 88 7E 62 AC [15:28:00]CommunicateWithHost err = 0 [15:28:00]CheckOFDResponse [15:28:00]1017 (14) - 77093643461234 [15:28:00]1041 (16) - 0000000000874899 [15:28:00]1040 (4) - 162566 [15:28:00]1012 (4) - 13.07.2024 09:29 [15:28:00]1206 (1) - 0 [15:28:00]OFD Sender: Remove packet 162566 [15:28:00]ProducePacketName [15:28:00]name=ofd_packets/00162566 [15:28:00]NVStorageDeleteData [15:28:00]Write to MH i2c: 01 00 00 27 0E 35 [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 07 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 D7 0C 1F [15:28:00]RasterBufferAndPrint [15:28:00]line [15:28:00]line [15:28:00]line [15:28:00]line [15:28:00]line [15:28:00]written 0, free lines is 3294 [15:28:00]MH_Cut [15:28:00]Write to MH i2c: D1 01 00 2E 0E 01 0E [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: D1 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: D1 01 00 [15:28:00]MH_I2C_Read... [15:28:00]Read from MH i2c: D1 01 00 2E 0E 00 0D [15:28:00]Write to MH i2c: 01 00 00 2F 0E 3D [15:28:00]Write i2c OK [15:28:00]MH_I2C_Read... [15:28:01]OFD Sender: No OFD packet to send [15:28:01]*** Cut start [15:28:01]*** Purtial cut [15:28:01]*** Stage 1: CUTSNS_PIN = 1 [15:28:01]Read from MH i2c: 01 [15:28:01]MH_I2C_Read... [15:28:01]*** Stop cut motor [15:28:01]*** Cut end [15:28:01]Read from MH i2c: 01 07 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: 01 07 00 2F 0E 00 00 00 00 00 FF 0F 52 [15:28:01]process_action close_receipt done [15:28:01]requested_data is exist [15:28:01]produce_requested_data [15:28:01]requested_item fm.sn is exist - process it [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 11 00 00 [15:28:01]Write to MH i2c: E2 08 00 30 0E 80 11 00 00 00 00 00 00 B8 [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:01]Read from MH i2c: E2 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 17 00 [15:28:01]MH_I2C_Read... [15:28:01]Read from MH i2c: E2 17 00 30 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 18 [15:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:28:01]wFMCommunicate OK [15:28:01]requested_item fd.num is exist - process it [15:28:01]SAM_PROTO_GetFieldsCounters [15:28:01]wFMCommunicate request_size=4 [15:28:01]MH_SAM_APDU [15:28:01]CAPDU: 80 13 00 00 [15:28:01]Write to MH i2c: E2 08 00 31 0E 80 13 00 00 00 00 00 00 BB [15:28:01]Write i2c OK [15:28:01]MH_I2C_Read... [15:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:02]Read from MH i2c: E2 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 62 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 62 00 31 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 06 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [15:28:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 06 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:02]wFMCommunicate OK [15:28:02]SAM_PROTO_GetFieldsCounters done [15:28:02]requested_item shift.num is exist - process it [15:28:02]requested_item shift.opened is exist - process it [15:28:02]req_shift_opened [15:28:02]FM_GetShiftState [15:28:02]SAM_PROTO_GetShiftState [15:28:02]wFMCommunicate request_size=4 [15:28:02]MH_SAM_APDU [15:28:02]CAPDU: 80 13 01 00 [15:28:02]Write to MH i2c: E2 08 00 32 0E 80 13 01 00 00 00 00 00 BD [15:28:02]Write i2c OK [15:28:02]MH_I2C_Read... [15:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:02]Read from MH i2c: E2 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 0E 00 [15:28:02]MH_I2C_Read... [15:28:02]Read from MH i2c: E2 0E 00 32 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B7 [15:28:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:28:02]wFMCommunicate OK [15:28:02]SAM_PROTO_GetShiftState done [15:28:02]FM_GetShiftState done [15:28:02]req_shift_opened done [15:28:02]requested_item shift.open_date is exist - process it [15:28:02]req_shift_open_date [15:28:02]req_shift_open_date done [15:28:02]produce_requested_data done [15:28:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162566,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:28:02]process_action_free close_receipt [15:28:02]json_value_free [15:28:02]json_value_free done [15:28:02]process_json_proto returns [15:28:02]Send response to host [15:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162566,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:28:02]free response buf [15:28:02]execute_script done [15:28:02]execute_script returns [15:28:02]free content buf [15:28:02]Sock 9.Close socket [15:28:02]Sock 9.Thread stoped [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:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:18]accept exits with 7 [15:33:18]New connection [15:33:18]New thread 3067510116 created [15:33:18]Thread 3067366756 joined [15:33:18]Waiting for new connection... [15:33:18] Sock 7.Parse request [15:33:18]Sock 7.Check first char [15:33:18]Sock 7.First char is OK [15:33:18]request: POST /json_proto HTTP/1.0 [15:33:18]Method: POST [15:33:18]URL: /json_proto [15:33:18]Method is POST - this is cgi request [15:33:18]url: /json_proto [15:33:18]query_string will be loaded in cgi processing [15:33:18]execute_cgi json_proto POST (null) [15:33:18]execute_cgi path=json_proto method=POST [15:33:18]POST find Content-Length [15:33:18]Host: 172.17.39.67:8080 [15:33:18]Content-Length: 1216 [15:33:18]Content-Type: application/json [15:33:18] [15:33:18]POST finish read [15:33:18]Found Content-Length = 1216 [15:33:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319127\u000A13.07.2024 15:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092723/4092724\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:18]execute_script... [15:33:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319127\u000A13.07.2024 15:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 40.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 2904.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092723/4092724\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:18]POST & json_proto [15:33:18]process_json_proto [15:33:18]json parsed OK: [15:33:18]protocol is kg_v1.0 [15:33:18]action value=print_text [15:33:18]process_action print_text [15:33:18]cmd_print_text [15:33:18]ExternCall_PrintAddStr [15:33:18]wPrintStart [15:33:18]Write to MH i2c: 01 00 00 33 0E 41 [15:33:18]Write i2c OK [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 07 00 [15:33:18]MH_I2C_Read... [15:33:18]Read from MH i2c: 01 07 00 33 0E 00 00 00 00 00 FF 0F 56 [15:33:18]RasterBufferAndPrint [15:33:18]line *****ТОВАРНЫЙ ЧЕК***** [15:33:18]line АЗС 140 [15:33:18]line Партнер нефть [15:33:18]line 02508201610067 [15:33:18]line Кассир : Шамбеталиев А. [15:33:18]line Счет N : (1)1319127 [15:33:18]line 13.07.2024 15:30 [15:33:18]line ПРОДАЖА [15:33:18]line ТРК (МРК, ГНК): 11 [15:33:18]line Вид ГСМ : 2710194210 [15:33:18]line ДТ(л)-К-5 [15:33:18]line 40.000 x 72.60 [15:33:18]line ИТОГ: 2904.00 [15:33:18]line Тип оплаты: Талоны: Партнер нефть [15:33:18]line 4092723/4092724 [15:33:18]line ______________________ [15:33:18]line (подпись) [15:33:18]written 0, free lines is 4095 [15:33:19]Write to MH i2c: 01 00 00 48 0E 56 [15:33:19]Write i2c OK [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: 01 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: 01 07 00 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: 01 07 00 48 0E 00 00 00 00 00 F9 0D 63 [15:33:19]RasterBufferAndPrint [15:33:19]line [15:33:19]line [15:33:19]line [15:33:19]line [15:33:19]line [15:33:19]written 0, free lines is 3578 [15:33:19]MH_Cut [15:33:19]Write to MH i2c: D1 01 00 4F 0E 01 2F [15:33:19]Write i2c OK [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: D1 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: D1 01 00 [15:33:19]MH_I2C_Read... [15:33:19]Read from MH i2c: D1 01 00 4F 0E 00 2E [15:33:19]Write to MH i2c: 01 00 00 50 0E 5E [15:33:19]Write i2c OK [15:33:19]MH_I2C_Read... [15:33:19]*** Cut start [15:33:19]*** Purtial cut [15:33:19]*** CUTSNS_PIN = 0 [15:33:19]*** Stage 1: CUTSNS_PIN = 1 [15:33:21]OFD Sender: No OFD packet to send [15:33:21]*** Stop cut motor [15:33:21]*** Cut end [15:33:21]Read from MH i2c: 01 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: 01 07 00 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: 01 07 00 50 0E 00 00 00 00 00 FF 0F 73 [15:33:21]process_action print_text done [15:33:21]requested_data is exist [15:33:21]produce_requested_data [15:33:21]requested_item fm.sn is exist - process it [15:33:21]wFMCommunicate request_size=4 [15:33:21]MH_SAM_APDU [15:33:21]CAPDU: 80 11 00 00 [15:33:21]Write to MH i2c: E2 08 00 51 0E 80 11 00 00 00 00 00 00 D9 [15:33:21]Write i2c OK [15:33:21]MH_I2C_Read... [15:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:21]Read from MH i2c: E2 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 17 00 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 17 00 51 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 39 [15:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:33:21]wFMCommunicate OK [15:33:21]requested_item fd.num is exist - process it [15:33:21]SAM_PROTO_GetFieldsCounters [15:33:21]wFMCommunicate request_size=4 [15:33:21]MH_SAM_APDU [15:33:21]CAPDU: 80 13 00 00 [15:33:21]Write to MH i2c: E2 08 00 52 0E 80 13 00 00 00 00 00 00 DC [15:33:21]Write i2c OK [15:33:21]MH_I2C_Read... [15:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:21]Read from MH i2c: E2 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 62 00 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 62 00 52 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 06 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [15:33:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 06 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:21]wFMCommunicate OK [15:33:21]SAM_PROTO_GetFieldsCounters done [15:33:21]requested_item shift.num is exist - process it [15:33:21]requested_item shift.opened is exist - process it [15:33:21]req_shift_opened [15:33:21]FM_GetShiftState [15:33:21]SAM_PROTO_GetShiftState [15:33:21]wFMCommunicate request_size=4 [15:33:21]MH_SAM_APDU [15:33:21]CAPDU: 80 13 01 00 [15:33:21]Write to MH i2c: E2 08 00 53 0E 80 13 01 00 00 00 00 00 DE [15:33:21]Write i2c OK [15:33:21]MH_I2C_Read... [15:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:21]Read from MH i2c: E2 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 0E 00 [15:33:21]MH_I2C_Read... [15:33:21]Read from MH i2c: E2 0E 00 53 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D8 [15:33:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:33:21]wFMCommunicate OK [15:33:21]SAM_PROTO_GetShiftState done [15:33:21]FM_GetShiftState done [15:33:21]req_shift_opened done [15:33:21]requested_item shift.open_date is exist - process it [15:33:21]req_shift_open_date [15:33:21]req_shift_open_date done [15:33:21]produce_requested_data done [15:33:21]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162566,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:33:21]process_action_free print_text [15:33:21]json_value_free [15:33:21]json_value_free done [15:33:21]process_json_proto returns [15:33:21]Send response to host [15:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162566,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:33:21]free response buf [15:33:21]execute_script done [15:33:21]execute_script returns [15:33:21]free content buf [15:33:21]Sock 7.Close socket [15:33:21]Sock 7.Thread stoped [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]accept exits with 9 [15:33:41]New connection [15:33:41]New thread 3067366756 created [15:33:41]Thread 3067510116 joined [15:33:41]Waiting for new connection... [15:33:41] Sock 9.Parse request [15:33:41]Sock 9.Check first char [15:33:41]Sock 9.First char is OK [15:33:41]request: POST /json_proto HTTP/1.0 [15:33:41]Method: POST [15:33:41]URL: /json_proto [15:33:41]Method is POST - this is cgi request [15:33:41]url: /json_proto [15:33:41]query_string will be loaded in cgi processing [15:33:41]execute_cgi json_proto POST (null) [15:33:41]execute_cgi path=json_proto method=POST [15:33:41]POST find Content-Length [15:33:41]Host: 172.17.39.67:8080 [15:33:41]Content-Length: 688 [15:33:41]Content-Type: application/json [15:33:41] [15:33:41]POST finish read [15:33:41]Found Content-Length = 688 [15:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 48.630, "sum" : 3530.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3530.00, "total" : 3530.00, "payments": [ { "type": 0, "sum" : 3530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:41]execute_script... [15:33: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)1319126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 48.630, "sum" : 3530.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3530.00, "total" : 3530.00, "payments": [ { "type": 0, "sum" : 3530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:41]POST & json_proto [15:33:41]process_json_proto [15:33:41]json parsed OK: [15:33:41]protocol is kg_v1.0 [15:33:41]action value=close_receipt [15:33:41]process_action close_receipt [15:33:41]cmd_close_receipt [15:33:41]MH_GetDate [15:33:41]Write to MH i2c: F0 00 00 54 0E 51 [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: F0 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: F0 09 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: F0 09 00 54 0E 00 55 9E 92 66 86 7C 92 66 3F [15:33:41]GetLastDocTimeStamp 1720884478 [15:33:41]current date 1720884821 [15:33:41]FM_GetShiftState [15:33:41]SAM_PROTO_GetShiftState [15:33:41]wFMCommunicate request_size=4 [15:33:41]MH_SAM_APDU [15:33:41]CAPDU: 80 13 01 00 [15:33:41]Write to MH i2c: E2 08 00 55 0E 80 13 01 00 00 00 00 00 E0 [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:41]Read from MH i2c: E2 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 0E 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 0E 00 55 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DA [15:33:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:33:41]wFMCommunicate OK [15:33:41]SAM_PROTO_GetShiftState done [15:33:41]FM_GetShiftState done [15:33:41]opened in 1720828979 [15:33:41]opened+sec_in_day 1720915379 [15:33:41]quantity*price = 353053 [15:33:41]sum+1 = 353055 [15:33:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 3530.00 Внесено: 3530.00 СДАЧА: 0.00 НСП 1% : 31.24 НДС 12% : 374.92 Наличными: 3530.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 235 13.07.2024 15:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162567 ФПД: 137505633006582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153341&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162567&fm=137505633006582&tin=02508201610067®Number=0000000000090858&sum=353000 [15:33:42]StoreToDocumentArchive [15:33:42]shift 462 fd 162567 [15:33:42]save to /storage/0462/doc_00162567 [15:33:42]save last doc name /storage/0462/doc_00162567 to /storage/kkm_last_doc_name [15:33:42]save OK [15:33:42]Clear old archive folders... [15:33:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:33:42]tlvbuf is 006C9190 [15:33:42]SAM_PROTO_ClearQueue [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 09 00 00 [15:33:42]Write to MH i2c: E2 08 00 62 0E 80 09 00 00 00 00 00 00 E2 [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 62 0E 00 90 00 E4 [15:33:42]RAPDU: 90 00 [15:33:42]wFMCommunicate OK [15:33:42]SAM_PROTO_ClearQueue done [15:33:42]KKMCreateOFDPacket [15:33:42]OFDProtocolAddRootSTLVToBuf [15:33:42]FM_MakeSignedData [15:33:42]FM_MakeSignedData [15:33:42]SAM_PROTO_SignData [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 0D 01 02 [15:33:42]Write to MH i2c: E2 08 00 63 0E 80 0D 01 02 00 00 00 00 EA [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 63 0E 00 90 00 E5 [15:33:42]RAPDU: 90 00 [15:33:42]wFMCommunicate OK [15:33:42]wFMCommunicate request_size=255 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 BD 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1E 63 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 62 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 92 00 00 00 00 07 04 06 00 E8 62 05 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 55 9E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7B 02 00 35 04 06 00 [15:33:42]Write to MH i2c: E2 02 01 64 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 BD 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1E 63 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 62 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 92 00 00 00 00 07 04 06 00 E8 62 05 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 55 9E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7B 02 00 35 04 06 00 00 00 FF [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 64 0E 00 90 00 E6 [15:33:42]RAPDU: 90 00 [15:33:42]wFMCommunicate OK [15:33:42]wFMCommunicate request_size=11 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 0D 02 02 06 7D 0F 86 68 F3 F6 [15:33:42]Write to MH i2c: E2 0E 00 65 0E 80 0D 02 02 06 00 7D 0F 86 68 F3 F6 00 00 5C [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 65 0E 00 90 00 E7 [15:33:42]RAPDU: 90 00 [15:33:42]wFMCommunicate OK [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 0D 03 02 [15:33:42]Write to MH i2c: E2 08 00 66 0E 80 0D 03 02 00 00 00 00 EF [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 0B 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 0B 00 66 0E 00 17 C3 57 51 57 BA AD D6 90 00 06 [15:33:42]RAPDU: 17 C3 57 51 57 BA AD D6 90 00 [15:33:42]wFMCommunicate OK [15:33:42]SAM_PROTO_SignData done [15:33:42]FM_MakeSignedData done [15:33:42]CreateOFDProtocolMessage [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 11 00 00 [15:33:42]Write to MH i2c: E2 08 00 67 0E 80 11 00 00 00 00 00 00 EF [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:43]Read from MH i2c: E2 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 17 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: E2 17 00 67 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4F [15:33:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:33:43]wFMCommunicate OK [15:33:43]CreateOFDProtocolMessage done [15:33:43]OFDSenderStorePacket 162567 [15:33:43]StoreOFDPacket docnum=162567 [15:33:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 88 26 08 01 B9 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 BD 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1E 63 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 62 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 92 00 00 00 00 07 04 06 00 E8 62 05 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 55 9E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7B 02 00 35 04 06 00 7D 0F 86 68 F3 F6 17 C3 57 51 57 BA AD D6 [15:33:43]CheckFolder [15:33:43]dirname=/storage/ofd_packets [15:33:43]CheckFolder done [15:33:43]ProducePacketName [15:33:43]name=ofd_packets/00162567 [15:33:43]NVStorageSaveData ofd_packets/00162567 [15:33:43]File name is /storage/ofd_packets/00162567 [15:33:43]Write 302 bytes [15:33:43]NVStorageSaveData done [15:33:43]OFDSenderStorePacket done [15:33:43]KKMCreateOFDPacket done [15:33:43]NVStorageSaveData kkm_last_timestamp [15:33:43]File name is /storage/kkm_last_timestamp [15:33:43]Write 4 bytes [15:33:43]NVStorageSaveData done [15:33:43]ExternCall_PrintAddStr [15:33:43]wPrintStart [15:33:43]Write to MH i2c: 01 00 00 68 0E 76 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 07 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 07 00 68 0E 00 00 00 00 00 FF 0F 8B [15:33:43]RasterBufferAndPrint [15:33:43]line Счет N : (1)1319126 [15:33:43]line ИНН: 02508201610067 [15:33:43]line Контрольно-Кассовый Чек [15:33:43]line ПРОДАЖА [15:33:43]line ТРК (МРК, ГНК) : 31 [15:33:43]line Товар: 2710194210 [15:33:43]line ДТ(л)-К-5 [15:33:43]line 48.630 * 72.60 [15:33:43]line = 3530.54 [15:33:43]line НДС 12% НСП 1% [15:33:43]line > о реализуемом товаре [15:33:43]line ОКРУГЛЕНИЕ: -0.54 [15:33:43]line ИТОГО: 3530.00 [15:33:43]line Внесено: 3530.00 [15:33:43]line СДАЧА: 0.00 [15:33:43]line НСП 1% : 31.24 [15:33:43]line НДС 12% : 374.92 [15:33:43]line Наличными: 3530.00 [15:33:43]line Безнал.: 0.00 [15:33:43]line Место: АЗС № 140 "Партнер Нефть" [15:33:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:33:43]line СНО: Общий режим [15:33:43]line Чек 235 13.07.2024 15:33 [15:33:43]line Смена: 462 ФФД: 1.0 [15:33:43]line ЗНМ: 0300000129 [15:33:43]line РНМ: 0000000000090858 [15:33:43]line Версия ККМ: 001 [15:33:43]line ФМ: 0000000000874899 [15:33:43]line ФД: 162567 [15:33:43]line ФПД: 137505633006582 [15:33:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T153341&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162567&fm=137505633006582&tin=02508201610067®Number=0000000000090858&sum=353000 [15:33:43]written 0, free lines is 4095 [15:33:43]OFD Sender: Processing packet 162567 [packets to send 106, broken 105] [15:33:43]ProducePacketName [15:33:43]name=ofd_packets/00162567 [15:33:43]OFD Sender: To server: pG, [15:33:43]CommunicateWithHost lk.salyk.kg:30040 [15:33:43]ConnectInit lk.salyk.kg [15:33:43]Connected sock=10 [15:33:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 88 26 08 01 B9 D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 BD 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 1E 63 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 62 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 92 00 00 00 00 07 04 06 00 E8 62 05 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 55 9E 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7B 02 00 35 04 06 00 7D 0F 86 68 F3 F6 17 C3 57 51 57 BA AD D6 [15:33:43]Write to MH i2c: 01 00 00 93 0E A1 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 07 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 07 00 93 0E 00 00 00 00 00 E7 0C 9B [15:33:43]RasterBufferAndPrint [15:33:43]line [15:33:43]line [15:33:43]line [15:33:43]line [15:33:43]line [15:33:43]written 0, free lines is 3309 [15:33:43]MH_Cut [15:33:43]Write to MH i2c: D1 01 00 9A 0E 01 7A [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: D1 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: D1 01 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: D1 01 00 9A 0E 00 79 [15:33:43]Write to MH i2c: 01 00 00 9B 0E A9 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B6 16 47 00 F7 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 07 7B 02 00 F4 03 04 00 64 4A 92 66 B6 04 01 00 00 25 4D 01 14 5F 81 B2 0B [15:33:43]CommunicateWithHost err = 0 [15:33:43]CheckOFDResponse [15:33:43]1017 (14) - 77093643461234 [15:33:43]1041 (16) - 0000000000874899 [15:33:43]1040 (4) - 162567 [15:33:43]1012 (4) - 13.07.2024 09:35 [15:33:43]1206 (1) - 0 [15:33:43]OFD Sender: Remove packet 162567 [15:33:43]ProducePacketName [15:33:43]name=ofd_packets/00162567 [15:33:43]NVStorageDeleteData [15:33:44]OFD Sender: No OFD packet to send [15:33:44]*** Cut start [15:33:44]*** Purtial cut [15:33:44]*** Stage 1: CUTSNS_PIN = 1 [15:33:44]Read from MH i2c: 01 [15:33:44]MH_I2C_Read... [15:33:44]*** Stop cut motor [15:33:44]*** Cut end [15:33:44]Read from MH i2c: 01 07 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: 01 07 00 9B 0E 00 00 00 00 00 FF 0F BE [15:33:44]process_action close_receipt done [15:33:44]requested_data is exist [15:33:44]produce_requested_data [15:33:44]requested_item fm.sn is exist - process it [15:33:44]wFMCommunicate request_size=4 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 11 00 00 [15:33:44]Write to MH i2c: E2 08 00 9C 0E 80 11 00 00 00 00 00 00 24 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 17 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 17 00 9C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 84 [15:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:33:44]wFMCommunicate OK [15:33:44]requested_item fd.num is exist - process it [15:33:44]SAM_PROTO_GetFieldsCounters [15:33:44]wFMCommunicate request_size=4 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 13 00 00 [15:33:44]Write to MH i2c: E2 08 00 9D 0E 80 13 00 00 00 00 00 00 27 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 62 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 62 00 9D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 07 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [15:33:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 07 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:44]wFMCommunicate OK [15:33:44]SAM_PROTO_GetFieldsCounters done [15:33:44]requested_item shift.num is exist - process it [15:33:44]requested_item shift.opened is exist - process it [15:33:44]req_shift_opened [15:33:44]FM_GetShiftState [15:33:44]SAM_PROTO_GetShiftState [15:33:44]wFMCommunicate request_size=4 [15:33:44]MH_SAM_APDU [15:33:44]CAPDU: 80 13 01 00 [15:33:44]Write to MH i2c: E2 08 00 9E 0E 80 13 01 00 00 00 00 00 29 [15:33:44]Write i2c OK [15:33:44]MH_I2C_Read... [15:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:44]Read from MH i2c: E2 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 0E 00 [15:33:44]MH_I2C_Read... [15:33:44]Read from MH i2c: E2 0E 00 9E 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 23 [15:33:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:33:44]wFMCommunicate OK [15:33:44]SAM_PROTO_GetShiftState done [15:33:44]FM_GetShiftState done [15:33:44]req_shift_opened done [15:33:44]requested_item shift.open_date is exist - process it [15:33:44]req_shift_open_date [15:33:44]req_shift_open_date done [15:33:44]produce_requested_data done [15:33:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162567,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:33:44]process_action_free close_receipt [15:33:44]json_value_free [15:33:44]json_value_free done [15:33:44]process_json_proto returns [15:33:44]Send response to host [15:33:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162567,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:33:44]free response buf [15:33:44]execute_script done [15:33:44]execute_script returns [15:33:44]free content buf [15:33:44]Sock 9.Close socket [15:33:44]Sock 9.Thread stoped [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [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]accept exits with 7 [15:42:49]New connection [15:42:49]New thread 3067510116 created [15:42:49]Thread 3067366756 joined [15:42:49]Waiting for new connection... [15:42:49] Sock 7.Parse request [15:42:49]Sock 7.Check first char [15:42:49]Sock 7.First char is OK [15:42:49]request: POST /json_proto HTTP/1.0 [15:42:49]Method: POST [15:42:49]URL: /json_proto [15:42:49]Method is POST - this is cgi request [15:42:49]url: /json_proto [15:42:49]query_string will be loaded in cgi processing [15:42:49]execute_cgi json_proto POST (null) [15:42:49]execute_cgi path=json_proto method=POST [15:42:49]POST find Content-Length [15:42:49]Host: 172.17.39.67:8080 [15:42:49]Content-Length: 683 [15:42:49]Content-Type: application/json [15:42:49] [15:42:49]POST finish read [15:42:49]Found Content-Length = 683 [15:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [15:42:49]execute_script... [15: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)1319128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [15:42:49]POST & json_proto [15:42:49]process_json_proto [15:42:49]json parsed OK: [15:42:49]protocol is kg_v1.0 [15:42:49]action value=close_receipt [15:42:49]process_action close_receipt [15:42:49]cmd_close_receipt [15:42:49]MH_GetDate [15:42:49]Write to MH i2c: F0 00 00 9F 0E 9C [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 09 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: F0 09 00 9F 0E 00 7A A0 92 66 86 7C 92 66 B1 [15:42:49]GetLastDocTimeStamp 1720884821 [15:42:49]current date 1720885370 [15:42:49]FM_GetShiftState [15:42:49]SAM_PROTO_GetShiftState [15:42:49]wFMCommunicate request_size=4 [15:42:49]MH_SAM_APDU [15:42:49]CAPDU: 80 13 01 00 [15:42:49]Write to MH i2c: E2 08 00 A0 0E 80 13 01 00 00 00 00 00 2B [15:42:49]Write i2c OK [15:42:49]MH_I2C_Read... [15:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:49]Read from MH i2c: E2 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 0E 00 [15:42:49]MH_I2C_Read... [15:42:49]Read from MH i2c: E2 0E 00 A0 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 25 [15:42:49]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:42:49]wFMCommunicate OK [15:42:49]SAM_PROTO_GetShiftState done [15:42:49]FM_GetShiftState done [15:42:49]opened in 1720828979 [15:42:49]opened+sec_in_day 1720915379 [15:42:49]quantity*price = 60040 [15:42:49]sum+1 = 60041 [15:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.76 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 236 13.07.2024 15:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162568 ФПД: 34861591894925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154250&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162568&fm=34861591894925&tin=02508201610067®Number=0000000000090858&sum=60000 [15:42:50]StoreToDocumentArchive [15:42:50]shift 462 fd 162568 [15:42:50]save to /storage/0462/doc_00162568 [15:42:50]save last doc name /storage/0462/doc_00162568 to /storage/kkm_last_doc_name [15:42:50]save OK [15:42:50]Clear old archive folders... [15:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:42:50]tlvbuf is 006BE4D0 [15:42:50]SAM_PROTO_ClearQueue [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 09 00 00 [15:42:50]Write to MH i2c: E2 08 00 AD 0E 80 09 00 00 00 00 00 00 2D [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 AD 0E 00 90 00 2F [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]SAM_PROTO_ClearQueue done [15:42:50]KKMCreateOFDPacket [15:42:50]OFDProtocolAddRootSTLVToBuf [15:42:50]FM_MakeSignedData [15:42:50]FM_MakeSignedData [15:42:50]SAM_PROTO_SignData [15:42:50]wFMCommunicate request_size=4 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 01 02 [15:42:50]Write to MH i2c: E2 08 00 AE 0E 80 0D 01 02 00 00 00 00 35 [15:42:50]Write i2c OK [15:42:50]MH_I2C_Read... [15:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:50]Read from MH i2c: E2 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 [15:42:50]MH_I2C_Read... [15:42:50]Read from MH i2c: E2 03 00 AE 0E 00 90 00 30 [15:42:50]RAPDU: 90 00 [15:42:50]wFMCommunicate OK [15:42:50]wFMCommunicate request_size=255 [15:42:50]MH_SAM_APDU [15:42:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 EC 00 00 00 F4 03 04 00 7A A0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7B 02 00 35 04 06 00 [15:42:50]Write to MH i2c: E2 02 01 AF 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 EC 00 00 00 F4 03 04 00 7A A0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7B 02 00 35 04 06 00 00 00 DF [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 AF 0E 00 90 00 31 [15:42:51]RAPDU: 90 00 [15:42:51]wFMCommunicate OK [15:42:51]wFMCommunicate request_size=11 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 0D 02 02 06 1F B4 D8 CD 1B 8D [15:42:51]Write to MH i2c: E2 0E 00 B0 0E 80 0D 02 02 06 00 1F B4 D8 CD 1B 8D 00 00 64 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [15:42:51]RAPDU: 90 00 [15:42:51]wFMCommunicate OK [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 0D 03 02 [15:42:51]Write to MH i2c: E2 08 00 B1 0E 80 0D 03 02 00 00 00 00 3A [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0B 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0B 00 B1 0E 00 E0 4A 9E 75 F8 FC 86 BA 90 00 AC [15:42:51]RAPDU: E0 4A 9E 75 F8 FC 86 BA 90 00 [15:42:51]wFMCommunicate OK [15:42:51]SAM_PROTO_SignData done [15:42:51]FM_MakeSignedData done [15:42:51]CreateOFDProtocolMessage [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 11 00 00 [15:42:51]Write to MH i2c: E2 08 00 B2 0E 80 11 00 00 00 00 00 00 3A [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 17 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 17 00 B2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9A [15:42:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:42:51]wFMCommunicate OK [15:42:51]CreateOFDProtocolMessage done [15:42:51]OFDSenderStorePacket 162568 [15:42:51]StoreOFDPacket docnum=162568 [15:42:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 35 CB 08 01 FC D7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 EC 00 00 00 F4 03 04 00 7A A0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7B 02 00 35 04 06 00 1F B4 D8 CD 1B 8D E0 4A 9E 75 F8 FC 86 BA [15:42:51]CheckFolder [15:42:51]dirname=/storage/ofd_packets [15:42:51]CheckFolder done [15:42:51]ProducePacketName [15:42:51]name=ofd_packets/00162568 [15:42:51]NVStorageSaveData ofd_packets/00162568 [15:42:51]File name is /storage/ofd_packets/00162568 [15:42:51]Write 302 bytes [15:42:51]NVStorageSaveData done [15:42:51]OFDSenderStorePacket done [15:42:51]KKMCreateOFDPacket done [15:42:51]NVStorageSaveData kkm_last_timestamp [15:42:51]File name is /storage/kkm_last_timestamp [15:42:51]Write 4 bytes [15:42:51]NVStorageSaveData done [15:42:51]ExternCall_PrintAddStr [15:42:51]wPrintStart [15:42:51]Write to MH i2c: 01 00 00 B3 0E C1 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: 01 07 00 B3 0E 00 00 00 00 00 FF 0F D6 [15:42:51]RasterBufferAndPrint [15:42:51]line Счет N : (1)1319128 [15:42:51]line ИНН: 02508201610067 [15:42:51]line Контрольно-Кассовый Чек [15:42:51]line ПРОДАЖА [15:42:51]line ТРК (МРК, ГНК) : 11 [15:42:51]line Товар: 2710194210 [15:42:51]line ДТ(л)-К-5 [15:42:51]line 8.270 * 72.60 [15:42:51]line = 600.40 [15:42:51]line НДС 12% НСП 1% [15:42:51]line > о реализуемом товаре [15:42:51]line ОКРУГЛЕНИЕ: -0.40 [15:42:51]line ИТОГО: 600.00 [15:42:51]line Внесено: 600.00 [15:42:51]line СДАЧА: 0.00 [15:42:51]line НСП 1% : 5.31 [15:42:51]line НДС 12% : 63.76 [15:42:51]line Наличными: 600.00 [15:42:51]line Безнал.: 0.00 [15:42:51]line Место: АЗС № 140 "Партнер Нефть" [15:42:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:42:51]line СНО: Общий режим [15:42:51]line Чек 236 13.07.2024 15:42 [15:42:51]line Смена: 462 ФФД: 1.0 [15:42:51]line ЗНМ: 0300000129 [15:42:51]line РНМ: 0000000000090858 [15:42:51]line Версия ККМ: 001 [15:42:51]line ФМ: 0000000000874899 [15:42:51]line ФД: 162568 [15:42:51]line ФПД: 34861591894925 [15:42:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154250&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162568&fm=34861591894925&tin=02508201610067®Number=0000000000090858&sum=60000 [15:42:51]OFD Sender: Processing packet 162568 [packets to send 106, broken 105] [15:42:51]ProducePacketName [15:42:51]name=ofd_packets/00162568 [15:42:51]OFD Sender: To server: pG, [15:42:51]CommunicateWithHost lk.salyk.kg:30040 [15:42:51]ConnectInit lk.salyk.kg [15:42:51]written 0, free lines is 4095 [15:42:51]Connected sock=10 [15:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 35 CB 08 01 FC D7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 EC 00 00 00 F4 03 04 00 7A A0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7B 02 00 35 04 06 00 1F B4 D8 CD 1B 8D E0 4A 9E 75 F8 FC 86 BA [15:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D9 6D 47 00 23 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 08 7B 02 00 F4 03 04 00 89 4C 92 66 B6 04 01 00 00 EF B2 42 EB 17 7B D5 6B [15:42:52]CommunicateWithHost err = 0 [15:42:52]CheckOFDResponse [15:42:52]1017 (14) - 77093643461234 [15:42:52]1041 (16) - 0000000000874899 [15:42:52]1040 (4) - 162568 [15:42:52]1012 (4) - 13.07.2024 09:44 [15:42:52]1206 (1) - 0 [15:42:52]OFD Sender: Remove packet 162568 [15:42:52]ProducePacketName [15:42:52]name=ofd_packets/00162568 [15:42:52]NVStorageDeleteData [15:42:52]Write to MH i2c: 01 00 00 DE 0E EC [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: 01 07 00 DE 0E 00 00 00 00 00 D7 0C D6 [15:42:52]RasterBufferAndPrint [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]line [15:42:52]written 0, free lines is 3294 [15:42:52]MH_Cut [15:42:52]Write to MH i2c: D1 01 00 E5 0E 01 C5 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: D1 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: D1 01 00 [15:42:52]MH_I2C_Read... [15:42:52]Read from MH i2c: D1 01 00 E5 0E 00 C4 [15:42:52]Write to MH i2c: 01 00 00 E6 0E F4 [15:42:52]Write i2c OK [15:42:52]MH_I2C_Read... [15:42:52]OFD Sender: No OFD packet to send [15:42:52]*** Cut start [15:42:52]*** Purtial cut [15:42:52]*** CUTSNS_PIN = 0 [15:42:53]*** Stage 1: CUTSNS_PIN = 1 [15:42:54]Read from MH i2c: 01 [15:42:54]MH_I2C_Read... [15:42:54]*** Stop cut motor [15:42:55]*** Cut end [15:42:55]Read from MH i2c: 01 07 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: 01 07 00 E6 0E 00 00 00 00 00 FF 0F 09 [15:42:55]process_action close_receipt done [15:42:55]requested_data is exist [15:42:55]produce_requested_data [15:42:55]requested_item fm.sn is exist - process it [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 11 00 00 [15:42:55]Write to MH i2c: E2 08 00 E7 0E 80 11 00 00 00 00 00 00 6F [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 17 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 17 00 E7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CF [15:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:42:55]wFMCommunicate OK [15:42:55]requested_item fd.num is exist - process it [15:42:55]SAM_PROTO_GetFieldsCounters [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 13 00 00 [15:42:55]Write to MH i2c: E2 08 00 E8 0E 80 13 00 00 00 00 00 00 72 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 62 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 62 00 E8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 08 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [15:42:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 08 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:55]wFMCommunicate OK [15:42:55]SAM_PROTO_GetFieldsCounters done [15:42:55]requested_item shift.num is exist - process it [15:42:55]requested_item shift.opened is exist - process it [15:42:55]req_shift_opened [15:42:55]FM_GetShiftState [15:42:55]SAM_PROTO_GetShiftState [15:42:55]wFMCommunicate request_size=4 [15:42:55]MH_SAM_APDU [15:42:55]CAPDU: 80 13 01 00 [15:42:55]Write to MH i2c: E2 08 00 E9 0E 80 13 01 00 00 00 00 00 74 [15:42:55]Write i2c OK [15:42:55]MH_I2C_Read... [15:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:55]Read from MH i2c: E2 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 0E 00 [15:42:55]MH_I2C_Read... [15:42:55]Read from MH i2c: E2 0E 00 E9 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6E [15:42:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:42:55]wFMCommunicate OK [15:42:55]SAM_PROTO_GetShiftState done [15:42:55]FM_GetShiftState done [15:42:55]req_shift_opened done [15:42:55]requested_item shift.open_date is exist - process it [15:42:55]req_shift_open_date [15:42:55]req_shift_open_date done [15:42:55]produce_requested_data done [15:42:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162568,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:42:55]process_action_free close_receipt [15:42:55]json_value_free [15:42:55]json_value_free done [15:42:55]process_json_proto returns [15:42:55]Send response to host [15:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162568,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:42:55]free response buf [15:42:55]execute_script done [15:42:55]execute_script returns [15:42:55]free content buf [15:42:55]Sock 7.Close socket [15:42:55]Sock 7.Thread stoped [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:05]accept exits with 9 [15:46:05]New connection [15:46:05]New thread 3067366756 created [15:46:05]Thread 3067510116 joined [15:46:05]Waiting for new connection... [15:46:05] Sock 9.Parse request [15:46:05]Sock 9.Check first char [15:46:05]Sock 9.First char is OK [15:46:05]request: POST /json_proto HTTP/1.0 [15:46:05]Method: POST [15:46:05]URL: /json_proto [15:46:05]Method is POST - this is cgi request [15:46:05]url: /json_proto [15:46:05]query_string will be loaded in cgi processing [15:46:05]execute_cgi json_proto POST (null) [15:46:05]execute_cgi path=json_proto method=POST [15:46:05]POST find Content-Length [15:46:05]Host: 172.17.39.67:8080 [15:46:05]Content-Length: 648 [15:46:05]Content-Type: application/json [15:46:05] [15:46:05]POST finish read [15:46:05]Found Content-Length = 648 [15:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 40.000, "sum" : 2904.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2904.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:05]execute_script... [15:46:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 40.000, "sum" : 2904.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 2904.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:05]POST & json_proto [15:46:05]process_json_proto [15:46:05]json parsed OK: [15:46:05]protocol is kg_v1.0 [15:46:05]action value=close_receipt [15:46:05]process_action close_receipt [15:46:05]cmd_close_receipt [15:46:05]MH_GetDate [15:46:05]Write to MH i2c: F0 00 00 EA 0E E7 [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: F0 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: F0 09 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: F0 09 00 EA 0E 00 3D A1 92 66 86 7C 92 66 C0 [15:46:05]GetLastDocTimeStamp 1720885370 [15:46:05]current date 1720885565 [15:46:05]FM_GetShiftState [15:46:05]SAM_PROTO_GetShiftState [15:46:05]wFMCommunicate request_size=4 [15:46:05]MH_SAM_APDU [15:46:05]CAPDU: 80 13 01 00 [15:46:05]Write to MH i2c: E2 08 00 EB 0E 80 13 01 00 00 00 00 00 76 [15:46:05]Write i2c OK [15:46:05]MH_I2C_Read... [15:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:05]Read from MH i2c: E2 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 0E 00 [15:46:05]MH_I2C_Read... [15:46:05]Read from MH i2c: E2 0E 00 EB 0E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 70 [15:46:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:46:05]wFMCommunicate OK [15:46:05]SAM_PROTO_GetShiftState done [15:46:05]FM_GetShiftState done [15:46:05]opened in 1720828979 [15:46:05]opened+sec_in_day 1720915379 [15:46:05]quantity*price = 290400 [15:46:05]sum+1 = 290401 [15:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2904.00 НСП 1% : 25.70 НДС 12% : 308.39 Наличными: 2904.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 237 13.07.2024 15:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162569 ФПД: 65307271972846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154605&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162569&fm=65307271972846&tin=02508201610067®Number=0000000000090858&sum=290400 [15:46:06]StoreToDocumentArchive [15:46:06]shift 462 fd 162569 [15:46:06]save to /storage/0462/doc_00162569 [15:46:06]save last doc name /storage/0462/doc_00162569 to /storage/kkm_last_doc_name [15:46:06]save OK [15:46:06]Clear old archive folders... [15:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:46:06]tlvbuf is 006C94F0 [15:46:06]SAM_PROTO_ClearQueue [15:46:06]wFMCommunicate request_size=4 [15:46:06]MH_SAM_APDU [15:46:06]CAPDU: 80 09 00 00 [15:46:06]Write to MH i2c: E2 08 00 F8 0E 80 09 00 00 00 00 00 00 78 [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:06]Read from MH i2c: E2 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 03 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 03 00 F8 0E 00 90 00 7A [15:46:06]RAPDU: 90 00 [15:46:06]wFMCommunicate OK [15:46:06]SAM_PROTO_ClearQueue done [15:46:06]KKMCreateOFDPacket [15:46:06]OFDProtocolAddRootSTLVToBuf [15:46:06]FM_MakeSignedData [15:46:06]FM_MakeSignedData [15:46:06]SAM_PROTO_SignData [15:46:06]wFMCommunicate request_size=4 [15:46:06]MH_SAM_APDU [15:46:06]CAPDU: 80 0D 01 02 [15:46:06]Write to MH i2c: E2 08 00 F9 0E 80 0D 01 02 00 00 00 00 80 [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:06]Read from MH i2c: E2 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 03 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 03 00 F9 0E 00 90 00 7B [15:46:06]RAPDU: 90 00 [15:46:06]wFMCommunicate OK [15:46:06]wFMCommunicate request_size=255 [15:46:06]MH_SAM_APDU [15:46:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 60 6E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 3D A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7B 02 00 35 04 06 00 [15:46:06]Write to MH i2c: E2 02 01 FA 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 60 6E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 3D A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7B 02 00 35 04 06 00 00 00 BC [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:06]Read from MH i2c: E2 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 03 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 03 00 FA 0E 00 90 00 7C [15:46:06]RAPDU: 90 00 [15:46:06]wFMCommunicate OK [15:46:06]wFMCommunicate request_size=11 [15:46:06]MH_SAM_APDU [15:46:06]CAPDU: 80 0D 02 02 06 3B 65 88 BF 47 EE [15:46:06]Write to MH i2c: E2 0E 00 FB 0E 80 0D 02 02 06 00 3B 65 88 BF 47 EE 00 00 AB [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:06]Read from MH i2c: E2 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 03 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 03 00 FB 0E 00 90 00 7D [15:46:06]RAPDU: 90 00 [15:46:06]wFMCommunicate OK [15:46:06]wFMCommunicate request_size=4 [15:46:06]MH_SAM_APDU [15:46:06]CAPDU: 80 0D 03 02 [15:46:06]Write to MH i2c: E2 08 00 FC 0E 80 0D 03 02 00 00 00 00 85 [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:06]Read from MH i2c: E2 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 0B 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 0B 00 FC 0E 00 28 25 80 F4 FD FA 39 5F 90 00 D6 [15:46:06]RAPDU: 28 25 80 F4 FD FA 39 5F 90 00 [15:46:06]wFMCommunicate OK [15:46:06]SAM_PROTO_SignData done [15:46:06]FM_MakeSignedData done [15:46:06]CreateOFDProtocolMessage [15:46:06]wFMCommunicate request_size=4 [15:46:06]MH_SAM_APDU [15:46:06]CAPDU: 80 11 00 00 [15:46:06]Write to MH i2c: E2 08 00 FD 0E 80 11 00 00 00 00 00 00 85 [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:06]Read from MH i2c: E2 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 17 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: E2 17 00 FD 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E5 [15:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:46:06]wFMCommunicate OK [15:46:06]CreateOFDProtocolMessage done [15:46:06]OFDSenderStorePacket 162569 [15:46:06]StoreOFDPacket docnum=162569 [15:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 25 77 08 01 74 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 60 6E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 3D A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7B 02 00 35 04 06 00 3B 65 88 BF 47 EE 28 25 80 F4 FD FA 39 5F [15:46:06]CheckFolder [15:46:06]dirname=/storage/ofd_packets [15:46:06]CheckFolder done [15:46:06]ProducePacketName [15:46:06]name=ofd_packets/00162569 [15:46:06]NVStorageSaveData ofd_packets/00162569 [15:46:06]File name is /storage/ofd_packets/00162569 [15:46:06]Write 302 bytes [15:46:06]NVStorageSaveData done [15:46:06]OFDSenderStorePacket done [15:46:06]KKMCreateOFDPacket done [15:46:06]NVStorageSaveData kkm_last_timestamp [15:46:06]File name is /storage/kkm_last_timestamp [15:46:06]Write 4 bytes [15:46:06]NVStorageSaveData done [15:46:06]ExternCall_PrintAddStr [15:46:06]wPrintStart [15:46:06]Write to MH i2c: 01 00 00 FE 0E 0C [15:46:06]Write i2c OK [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: 01 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: 01 07 00 [15:46:06]MH_I2C_Read... [15:46:06]Read from MH i2c: 01 07 00 FE 0E 00 00 00 00 00 FF 0F 21 [15:46:06]RasterBufferAndPrint [15:46:06]line Счет N : (1)1319129 [15:46:06]line ИНН: 02508201610067 [15:46:06]line Контрольно-Кассовый Чек [15:46:06]line ПРОДАЖА [15:46:06]line ТРК (МРК, ГНК) : 61 [15:46:06]line Товар: 2710194210 [15:46:06]line ДТ(л)-К-5 [15:46:06]line 40.000 * 72.60 [15:46:06]line = 2904.00 [15:46:06]line НДС 12% НСП 1% [15:46:06]line > о реализуемом товаре [15:46:06]line ИТОГО: 2904.00 [15:46:06]line НСП 1% : 25.70 [15:46:06]line НДС 12% : 308.39 [15:46:06]line Наличными: 2904.00 [15:46:06]line Безнал.: 0.00 [15:46:06]line Место: АЗС № 140 "Партнер Нефть" [15:46:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:46:06]line СНО: Общий режим [15:46:06]line Чек 237 13.07.2024 15:46 [15:46:06]line Смена: 462 ФФД: 1.0 [15:46:06]line ЗНМ: 0300000129 [15:46:06]line РНМ: 0000000000090858 [15:46:06]line Версия ККМ: 001 [15:46:06]line ФМ: 0000000000874899 [15:46:06]line ФД: 162569 [15:46:06]line ФПД: 65307271972846 [15:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154605&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162569&fm=65307271972846&tin=02508201610067®Number=0000000000090858&sum=290400 [15:46:07]OFD Sender: Processing packet 162569 [packets to send 106, broken 105] [15:46:07]ProducePacketName [15:46:07]name=ofd_packets/00162569 [15:46:07]OFD Sender: To server: pG, [15:46:07]CommunicateWithHost lk.salyk.kg:30040 [15:46:07]ConnectInit lk.salyk.kg [15:46:07]written 0, free lines is 4095 [15:46:07]Connected sock=10 [15:46:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 25 77 08 01 74 97 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 60 6E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 3D A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7B 02 00 35 04 06 00 3B 65 88 BF 47 EE 28 25 80 F4 FD FA 39 5F [15:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F5 DE 47 00 A3 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 09 7B 02 00 F4 03 04 00 4C 4D 92 66 B6 04 01 00 00 4A 46 22 49 26 58 4D 40 [15:46:07]CommunicateWithHost err = 0 [15:46:07]CheckOFDResponse [15:46:07]1017 (14) - 77093643461234 [15:46:07]1041 (16) - 0000000000874899 [15:46:07]1040 (4) - 162569 [15:46:07]1012 (4) - 13.07.2024 09:47 [15:46:07]1206 (1) - 0 [15:46:07]OFD Sender: Remove packet 162569 [15:46:07]ProducePacketName [15:46:07]name=ofd_packets/00162569 [15:46:07]NVStorageDeleteData [15:46:07]Write to MH i2c: 01 00 00 26 0F 35 [15:46:07]Write i2c OK [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: 01 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: 01 07 00 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: 01 07 00 26 0F 00 00 00 00 00 0C 0D 55 [15:46:07]RasterBufferAndPrint [15:46:07]line [15:46:07]line [15:46:07]line [15:46:07]line [15:46:07]line [15:46:07]written 0, free lines is 3346 [15:46:07]MH_Cut [15:46:07]Write to MH i2c: D1 01 00 2D 0F 01 0E [15:46:07]Write i2c OK [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: D1 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: D1 01 00 [15:46:07]MH_I2C_Read... [15:46:07]Read from MH i2c: D1 01 00 2D 0F 00 0D [15:46:07]Write to MH i2c: 01 00 00 2E 0F 3D [15:46:07]Write i2c OK [15:46:07]MH_I2C_Read... [15:46:08]OFD Sender: No OFD packet to send [15:46:08]*** Cut start [15:46:08]*** Purtial cut [15:46:08]*** Stage 1: CUTSNS_PIN = 1 [15:46:08]Read from MH i2c: 01 [15:46:08]MH_I2C_Read... [15:46:08]*** Stop cut motor [15:46:08]*** Cut end [15:46:08]Read from MH i2c: 01 07 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: 01 07 00 2E 0F 00 00 00 00 00 FF 0F 52 [15:46:08]process_action close_receipt done [15:46:08]requested_data is exist [15:46:08]produce_requested_data [15:46:08]requested_item fm.sn is exist - process it [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 11 00 00 [15:46:08]Write to MH i2c: E2 08 00 2F 0F 80 11 00 00 00 00 00 00 B8 [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 17 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 17 00 2F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 18 [15:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:46:08]wFMCommunicate OK [15:46:08]requested_item fd.num is exist - process it [15:46:08]SAM_PROTO_GetFieldsCounters [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 13 00 00 [15:46:08]Write to MH i2c: E2 08 00 30 0F 80 13 00 00 00 00 00 00 BB [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 62 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 62 00 30 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 09 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [15:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 09 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:08]wFMCommunicate OK [15:46:08]SAM_PROTO_GetFieldsCounters done [15:46:08]requested_item shift.num is exist - process it [15:46:08]requested_item shift.opened is exist - process it [15:46:08]req_shift_opened [15:46:08]FM_GetShiftState [15:46:08]SAM_PROTO_GetShiftState [15:46:08]wFMCommunicate request_size=4 [15:46:08]MH_SAM_APDU [15:46:08]CAPDU: 80 13 01 00 [15:46:08]Write to MH i2c: E2 08 00 31 0F 80 13 01 00 00 00 00 00 BD [15:46:08]Write i2c OK [15:46:08]MH_I2C_Read... [15:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:08]Read from MH i2c: E2 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 0E 00 [15:46:08]MH_I2C_Read... [15:46:08]Read from MH i2c: E2 0E 00 31 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B7 [15:46:08]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:46:08]wFMCommunicate OK [15:46:08]SAM_PROTO_GetShiftState done [15:46:08]FM_GetShiftState done [15:46:08]req_shift_opened done [15:46:08]requested_item shift.open_date is exist - process it [15:46:08]req_shift_open_date [15:46:08]req_shift_open_date done [15:46:08]produce_requested_data done [15:46:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162569,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:46:08]process_action_free close_receipt [15:46:08]json_value_free [15:46:08]json_value_free done [15:46:08]process_json_proto returns [15:46:08]Send response to host [15:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162569,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:46:08]free response buf [15:46:08]execute_script done [15:46:08]execute_script returns [15:46:08]free content buf [15:46:08]Sock 9.Close socket [15:46:08]Sock 9.Thread stoped [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:09]accept exits with 7 [15:47:09]New connection [15:47:09]New thread 3067510116 created [15:47:09]Thread 3067366756 joined [15:47:09]Waiting for new connection... [15:47:09] Sock 7.Parse request [15:47:09]Sock 7.Check first char [15:47:09]Sock 7.First char is OK [15:47:09]request: POST /json_proto HTTP/1.0 [15:47:09]Method: POST [15:47:09]URL: /json_proto [15:47:09]Method is POST - this is cgi request [15:47:09]url: /json_proto [15:47:09]query_string will be loaded in cgi processing [15:47:09]execute_cgi json_proto POST (null) [15:47:09]execute_cgi path=json_proto method=POST [15:47:09]POST find Content-Length [15:47:09]Host: 172.17.39.67:8080 [15:47:09]Content-Length: 1174 [15:47:09]Content-Type: application/json [15:47:09] [15:47:09]POST finish read [15:47:09]Found Content-Length = 1174 [15:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319131\u000A13.07.2024 15:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 663.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102596\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:09]execute_script... [15:47:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319131\u000A13.07.2024 15:44\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 10.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 663.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102596\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:09]POST & json_proto [15:47:09]process_json_proto [15:47:09]json parsed OK: [15:47:09]protocol is kg_v1.0 [15:47:09]action value=print_text [15:47:09]process_action print_text [15:47:09]cmd_print_text [15:47:09]ExternCall_PrintAddStr [15:47:09]wPrintStart [15:47:09]Write to MH i2c: 01 00 00 32 0F 41 [15:47:09]Write i2c OK [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: 01 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: 01 07 00 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: 01 07 00 32 0F 00 00 00 00 00 FF 0F 56 [15:47:09]RasterBufferAndPrint [15:47:09]line *****ТОВАРНЫЙ ЧЕК***** [15:47:09]line АЗС 140 [15:47:09]line Партнер нефть [15:47:09]line 02508201610067 [15:47:09]line Кассир : Шамбеталиев А. [15:47:09]line Счет N : (1)1319131 [15:47:09]line 13.07.2024 15:44 [15:47:09]line ПРОДАЖА [15:47:09]line ТРК (МРК, ГНК): 53 [15:47:09]line Вид ГСМ : 2710124130 [15:47:09]line Аи-92-К-5 [15:47:09]line 10.000 x 66.30 [15:47:09]line ИТОГ: 663.00 [15:47:09]line Тип оплаты: Талоны: ТК ГПНА Online [15:47:09]line 30102596 [15:47:09]line ______________________ [15:47:09]line (подпись) [15:47:09]written 0, free lines is 4095 [15:47:09]Write to MH i2c: 01 00 00 47 0F 56 [15:47:09]Write i2c OK [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: 01 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: 01 07 00 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: 01 07 00 47 0F 00 00 00 00 00 F3 0D 5D [15:47:09]RasterBufferAndPrint [15:47:09]line [15:47:09]line [15:47:09]line [15:47:09]line [15:47:09]line [15:47:09]written 0, free lines is 3572 [15:47:09]MH_Cut [15:47:09]Write to MH i2c: D1 01 00 4E 0F 01 2F [15:47:09]Write i2c OK [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: D1 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: D1 01 00 [15:47:09]MH_I2C_Read... [15:47:09]Read from MH i2c: D1 01 00 4E 0F 00 2E [15:47:09]Write to MH i2c: 01 00 00 4F 0F 5E [15:47:09]Write i2c OK [15:47:09]MH_I2C_Read... [15:47:09]*** Cut start [15:47:09]*** Purtial cut [15:47:09]*** CUTSNS_PIN = 0 [15:47:10]*** Stage 1: CUTSNS_PIN = 1 [15:47:11]Read from MH i2c: 01 [15:47:11]MH_I2C_Read... [15:47:11]*** Stop cut motor [15:47:11]*** Cut end [15:47:11]Read from MH i2c: 01 07 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: 01 07 00 4F 0F 00 00 00 00 00 FF 0F 73 [15:47:11]process_action print_text done [15:47:11]requested_data is exist [15:47:11]produce_requested_data [15:47:11]requested_item fm.sn is exist - process it [15:47:11]wFMCommunicate request_size=4 [15:47:11]MH_SAM_APDU [15:47:11]CAPDU: 80 11 00 00 [15:47:11]Write to MH i2c: E2 08 00 50 0F 80 11 00 00 00 00 00 00 D9 [15:47:11]Write i2c OK [15:47:11]MH_I2C_Read... [15:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:11]Read from MH i2c: E2 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 17 00 [15:47:11]MH_I2C_Read... [15:47:11]Read from MH i2c: E2 17 00 50 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 39 [15:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:47:11]wFMCommunicate OK [15:47:11]requested_item fd.num is exist - process it [15:47:11]SAM_PROTO_GetFieldsCounters [15:47:11]wFMCommunicate request_size=4 [15:47:11]MH_SAM_APDU [15:47:11]CAPDU: 80 13 00 00 [15:47:11]Write to MH i2c: E2 08 00 51 0F 80 13 00 00 00 00 00 00 DC [15:47:11]Write i2c OK [15:47:11]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 62 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 62 00 51 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 09 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [15:47:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 09 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:12]wFMCommunicate OK [15:47:12]SAM_PROTO_GetFieldsCounters done [15:47:12]requested_item shift.num is exist - process it [15:47:12]requested_item shift.opened is exist - process it [15:47:12]req_shift_opened [15:47:12]FM_GetShiftState [15:47:12]SAM_PROTO_GetShiftState [15:47:12]wFMCommunicate request_size=4 [15:47:12]MH_SAM_APDU [15:47:12]CAPDU: 80 13 01 00 [15:47:12]Write to MH i2c: E2 08 00 52 0F 80 13 01 00 00 00 00 00 DE [15:47:12]Write i2c OK [15:47:12]MH_I2C_Read... [15:47:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:12]Read from MH i2c: E2 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 0E 00 [15:47:12]MH_I2C_Read... [15:47:12]Read from MH i2c: E2 0E 00 52 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D8 [15:47:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:47:12]wFMCommunicate OK [15:47:12]SAM_PROTO_GetShiftState done [15:47:12]FM_GetShiftState done [15:47:12]req_shift_opened done [15:47:12]requested_item shift.open_date is exist - process it [15:47:12]req_shift_open_date [15:47:12]req_shift_open_date done [15:47:12]produce_requested_data done [15:47:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162569,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:47:12]process_action_free print_text [15:47:12]json_value_free [15:47:12]json_value_free done [15:47:12]process_json_proto returns [15:47:12]Send response to host [15:47:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162569,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:47:12]free response buf [15:47:12]execute_script done [15:47:12]execute_script returns [15:47:12]free content buf [15:47:12]Sock 7.Close socket [15:47:12]Sock 7.Thread stoped [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:45]accept exits with 9 [15:47:45]New connection [15:47:45]New thread 3067366756 created [15:47:45]Thread 3067510116 joined [15:47:45]Waiting for new connection... [15:47:45] Sock 9.Parse request [15:47:45]Sock 9.Check first char [15:47:45]Sock 9.First char is OK [15:47:45]request: POST /json_proto HTTP/1.0 [15:47:45]Method: POST [15:47:45]URL: /json_proto [15:47:45]Method is POST - this is cgi request [15:47:45]url: /json_proto [15:47:45]query_string will be loaded in cgi processing [15:47:45]execute_cgi json_proto POST (null) [15:47:45]execute_cgi path=json_proto method=POST [15:47:45]POST find Content-Length [15:47:45]Host: 172.17.39.67:8080 [15:47:45]Content-Length: 825 [15:47:45]Content-Type: application/json [15:47:45] [15:47:45]POST finish read [15:47:45]Found Content-Length = 825 [15:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:45]execute_script... [15:47: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)1319130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 55.100, "sum" : 4000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 4000.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:45]POST & json_proto [15:47:45]process_json_proto [15:47:45]json parsed OK: [15:47:45]protocol is kg_v1.0 [15:47:45]action value=close_receipt [15:47:45]process_action close_receipt [15:47:45]cmd_close_receipt [15:47:45]MH_GetDate [15:47:45]Write to MH i2c: F0 00 00 53 0F 51 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: F0 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: F0 09 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: F0 09 00 53 0F 00 A2 A1 92 66 86 7C 92 66 8F [15:47:45]GetLastDocTimeStamp 1720885565 [15:47:45]current date 1720885666 [15:47:45]FM_GetShiftState [15:47:45]SAM_PROTO_GetShiftState [15:47:45]wFMCommunicate request_size=4 [15:47:45]MH_SAM_APDU [15:47:45]CAPDU: 80 13 01 00 [15:47:45]Write to MH i2c: E2 08 00 54 0F 80 13 01 00 00 00 00 00 E0 [15:47:45]Write i2c OK [15:47:45]MH_I2C_Read... [15:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:45]Read from MH i2c: E2 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 0E 00 [15:47:45]MH_I2C_Read... [15:47:45]Read from MH i2c: E2 0E 00 54 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DA [15:47:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:47:45]wFMCommunicate OK [15:47:45]SAM_PROTO_GetShiftState done [15:47:45]FM_GetShiftState done [15:47:45]opened in 1720828979 [15:47:45]opened+sec_in_day 1720915379 [15:47:45]quantity*price = 400026 [15:47:45]sum+1 = 400027 [15:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.26 НСП 1% : 35.40 НДС 12% : 424.81 Наличными: 0.00 Безнал.: 4000.26 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 238 13.07.2024 15:47 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162570 ФПД: 104829347673959 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154746&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162570&fm=104829347673959&tin=02508201610067®Number=0000000000090858&sum=400026 [15:47:47]StoreToDocumentArchive [15:47:47]shift 462 fd 162570 [15:47:47]save to /storage/0462/doc_00162570 [15:47:47]save last doc name /storage/0462/doc_00162570 to /storage/kkm_last_doc_name [15:47:47]save OK [15:47:47]Clear old archive folders... [15:47:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:47:47]tlvbuf is 005D8F00 [15:47:47]SAM_PROTO_ClearQueue [15:47:47]wFMCommunicate request_size=4 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 09 00 00 [15:47:47]Write to MH i2c: E2 08 00 61 0F 80 09 00 00 00 00 00 00 E2 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 03 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 03 00 61 0F 00 90 00 E4 [15:47:47]RAPDU: 90 00 [15:47:47]wFMCommunicate OK [15:47:47]SAM_PROTO_ClearQueue done [15:47:47]KKMCreateOFDPacket [15:47:47]OFDProtocolAddRootSTLVToBuf [15:47:47]FM_MakeSignedData [15:47:47]FM_MakeSignedData [15:47:47]SAM_PROTO_SignData [15:47:47]wFMCommunicate request_size=4 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 0D 01 02 [15:47:47]Write to MH i2c: E2 08 00 62 0F 80 0D 01 02 00 00 00 00 EA [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 03 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 03 00 62 0F 00 90 00 E5 [15:47:47]RAPDU: 90 00 [15:47:47]wFMCommunicate OK [15:47:47]wFMCommunicate request_size=255 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A2 A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7B 02 00 35 04 06 00 [15:47:47]Write to MH i2c: E2 02 01 63 0F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A2 A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7B 02 00 35 04 06 00 00 00 F0 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 03 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 03 00 63 0F 00 90 00 E6 [15:47:47]RAPDU: 90 00 [15:47:47]wFMCommunicate OK [15:47:47]wFMCommunicate request_size=11 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 0D 02 02 06 5F 57 7C 07 B7 67 [15:47:47]Write to MH i2c: E2 0E 00 64 0F 80 0D 02 02 06 00 5F 57 7C 07 B7 67 00 00 50 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 03 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 03 00 64 0F 00 90 00 E7 [15:47:47]RAPDU: 90 00 [15:47:47]wFMCommunicate OK [15:47:47]wFMCommunicate request_size=4 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 0D 03 02 [15:47:47]Write to MH i2c: E2 08 00 65 0F 80 0D 03 02 00 00 00 00 EF [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 0B 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 0B 00 65 0F 00 94 16 73 26 65 64 03 47 90 00 46 [15:47:47]RAPDU: 94 16 73 26 65 64 03 47 90 00 [15:47:47]wFMCommunicate OK [15:47:47]SAM_PROTO_SignData done [15:47:47]FM_MakeSignedData done [15:47:47]CreateOFDProtocolMessage [15:47:47]wFMCommunicate request_size=4 [15:47:47]MH_SAM_APDU [15:47:47]CAPDU: 80 11 00 00 [15:47:47]Write to MH i2c: E2 08 00 66 0F 80 11 00 00 00 00 00 00 EF [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:47]Read from MH i2c: E2 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 17 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: E2 17 00 66 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4F [15:47:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:47:47]wFMCommunicate OK [15:47:47]CreateOFDProtocolMessage done [15:47:47]OFDSenderStorePacket 162570 [15:47:47]StoreOFDPacket docnum=162570 [15:47:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 65 2C 08 01 87 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A2 A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7B 02 00 35 04 06 00 5F 57 7C 07 B7 67 94 16 73 26 65 64 03 47 [15:47:47]CheckFolder [15:47:47]dirname=/storage/ofd_packets [15:47:47]CheckFolder done [15:47:47]ProducePacketName [15:47:47]name=ofd_packets/00162570 [15:47:47]NVStorageSaveData ofd_packets/00162570 [15:47:47]File name is /storage/ofd_packets/00162570 [15:47:47]Write 302 bytes [15:47:47]NVStorageSaveData done [15:47:47]OFDSenderStorePacket done [15:47:47]KKMCreateOFDPacket done [15:47:47]NVStorageSaveData kkm_last_timestamp [15:47:47]File name is /storage/kkm_last_timestamp [15:47:47]Write 4 bytes [15:47:47]NVStorageSaveData done [15:47:47]ExternCall_PrintAddStr [15:47:47]wPrintStart [15:47:47]Write to MH i2c: 01 00 00 67 0F 76 [15:47:47]Write i2c OK [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 [15:47:47]MH_I2C_Read... [15:47:47]Read from MH i2c: 01 07 00 67 0F 00 00 00 00 00 FF 0F 8B [15:47:47]RasterBufferAndPrint [15:47:47]line Счет N : (1)1319130 [15:47:47]line ИНН: 02508201610067 [15:47:47]line Контрольно-Кассовый Чек [15:47:47]line ПРОДАЖА [15:47:47]line ТРК (МРК, ГНК) : 21 [15:47:47]line Товар: 2710194210 [15:47:47]line ДТ(л)-К-5 [15:47:47]line 55.100 * 72.60 [15:47:47]line = 4000.26 [15:47:47]line НДС 12% НСП 1% [15:47:47]line > о реализуемом товаре [15:47:47]line ИТОГО: 4000.26 [15:47:47]line НСП 1% : 35.40 [15:47:47]line НДС 12% : 424.81 [15:47:47]line Наличными: 0.00 [15:47:47]line Безнал.: 4000.26 [15:47:47]line Место: АЗС № 140 "Партнер Нефть" [15:47:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:47:47]line СНО: Общий режим [15:47:47]line Чек 238 13.07.2024 15:47 [15:47:47]line Смена: 462 ФФД: 1.0 [15:47:47]line ЗНМ: 0300000129 [15:47:47]line РНМ: 0000000000090858 [15:47:47]line Версия ККМ: 001 [15:47:47]line Платежная система: Бакай Банк [15:47:47]line ФМ: 0000000000874899 [15:47:47]line ФД: 162570 [15:47:47]line ФПД: 104829347673959 [15:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154746&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162570&fm=104829347673959&tin=02508201610067®Number=0000000000090858&sum=400026 [15:47:47]OFD Sender: Processing packet 162570 [packets to send 106, broken 105] [15:47:47]ProducePacketName [15:47:47]name=ofd_packets/00162570 [15:47:47]OFD Sender: To server: pG, [15:47:47]CommunicateWithHost lk.salyk.kg:30040 [15:47:47]ConnectInit lk.salyk.kg [15:47:47]written 0, free lines is 4095 [15:47:48]Write to MH i2c: 01 00 00 91 0F A0 [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: 01 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: 01 07 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: 01 07 00 91 0F 00 00 00 00 00 F0 0C A3 [15:47:48]RasterBufferAndPrint [15:47:48]line [15:47:48]line [15:47:48]line [15:47:48]line [15:47:48]line [15:47:48]written 0, free lines is 3318 [15:47:48]MH_Cut [15:47:48]Write to MH i2c: D1 01 00 98 0F 01 79 [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: D1 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: D1 01 00 [15:47:48]MH_I2C_Read... [15:47:48]Read from MH i2c: D1 01 00 98 0F 00 78 [15:47:48]Write to MH i2c: 01 00 00 99 0F A8 [15:47:48]Write i2c OK [15:47:48]MH_I2C_Read... [15:47:49]*** Cut start [15:47:49]*** Purtial cut [15:47:49]*** Stage 1: CUTSNS_PIN = 1 [15:47:49]Read from MH i2c: 01 [15:47:49]MH_I2C_Read... [15:47:49]*** Stop cut motor [15:47:49]*** Cut end [15:47:49]Read from MH i2c: 01 07 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: 01 07 00 99 0F 00 00 00 00 00 FF 0F BD [15:47:49]process_action close_receipt done [15:47:49]requested_data is exist [15:47:49]produce_requested_data [15:47:49]requested_item fm.sn is exist - process it [15:47:49]wFMCommunicate request_size=4 [15:47:49]MH_SAM_APDU [15:47:49]CAPDU: 80 11 00 00 [15:47:49]Write to MH i2c: E2 08 00 9A 0F 80 11 00 00 00 00 00 00 23 [15:47:49]Write i2c OK [15:47:49]MH_I2C_Read... [15:47:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:49]Read from MH i2c: E2 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 17 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 17 00 9A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [15:47:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:47:49]wFMCommunicate OK [15:47:49]requested_item fd.num is exist - process it [15:47:49]SAM_PROTO_GetFieldsCounters [15:47:49]wFMCommunicate request_size=4 [15:47:49]MH_SAM_APDU [15:47:49]CAPDU: 80 13 00 00 [15:47:49]Write to MH i2c: E2 08 00 9B 0F 80 13 00 00 00 00 00 00 26 [15:47:49]Write i2c OK [15:47:49]MH_I2C_Read... [15:47:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:49]Read from MH i2c: E2 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 62 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 62 00 9B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [15:47:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:49]wFMCommunicate OK [15:47:49]SAM_PROTO_GetFieldsCounters done [15:47:49]requested_item shift.num is exist - process it [15:47:49]requested_item shift.opened is exist - process it [15:47:49]req_shift_opened [15:47:49]FM_GetShiftState [15:47:49]SAM_PROTO_GetShiftState [15:47:49]wFMCommunicate request_size=4 [15:47:49]MH_SAM_APDU [15:47:49]CAPDU: 80 13 01 00 [15:47:49]Write to MH i2c: E2 08 00 9C 0F 80 13 01 00 00 00 00 00 28 [15:47:49]Write i2c OK [15:47:49]MH_I2C_Read... [15:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:49]Read from MH i2c: E2 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 0E 00 [15:47:49]MH_I2C_Read... [15:47:49]Read from MH i2c: E2 0E 00 9C 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 22 [15:47:49]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:47:49]wFMCommunicate OK [15:47:49]SAM_PROTO_GetShiftState done [15:47:49]FM_GetShiftState done [15:47:49]req_shift_opened done [15:47:49]requested_item shift.open_date is exist - process it [15:47:49]req_shift_open_date [15:47:49]req_shift_open_date done [15:47:49]produce_requested_data done [15:47:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162570,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:47:49]process_action_free close_receipt [15:47:49]json_value_free [15:47:49]json_value_free done [15:47:49]process_json_proto returns [15:47:49]Send response to host [15:47:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162570,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:47:49]free response buf [15:47:49]execute_script done [15:47:49]execute_script returns [15:47:49]free content buf [15:47:49]Sock 9.Close socket [15:47:49]Sock 9.Thread stoped [15:47:52]accept exits with 7 [15:47:52]New connection [15:47:52]New thread 3067510116 created [15:47:52]Thread 3067366756 joined [15:47:52]Waiting for new connection... [15:47:52] Sock 7.Parse request [15:47:52]Sock 7.Check first char [15:47:52]Sock 7.First char is OK [15:47:52]request: POST /json_proto HTTP/1.0 [15:47:52]Method: POST [15:47:52]URL: /json_proto [15:47:52]Method is POST - this is cgi request [15:47:52]url: /json_proto [15:47:52]query_string will be loaded in cgi processing [15:47:52]execute_cgi json_proto POST (null) [15:47:52]execute_cgi path=json_proto method=POST [15:47:52]POST find Content-Length [15:47:52]Host: 172.17.39.67:8080 [15:47:52]Content-Length: 678 [15:47:52]Content-Type: application/json [15:47:52] [15:47:52]POST finish read [15:47:52]Found Content-Length = 678 [15:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.090, "sum" : 337.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 337.00, "total" : 337.00, "payments": [ { "type": 0, "sum" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:52]execute_script... [15:47:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.090, "sum" : 337.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 337.00, "total" : 337.00, "payments": [ { "type": 0, "sum" : 337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:52]POST & json_proto [15:47:52]process_json_proto [15:47:52]json parsed OK: [15:47:52]protocol is kg_v1.0 [15:47:52]action value=close_receipt [15:47:52]process_action close_receipt [15:47:52]cmd_close_receipt [15:47:52]MH_GetDate [15:47:52]Write to MH i2c: F0 00 00 9D 0F 9B [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: F0 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: F0 09 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: F0 09 00 9D 0F 00 A8 A1 92 66 86 7C 92 66 DF [15:47:52]GetLastDocTimeStamp 1720885666 [15:47:52]current date 1720885672 [15:47:52]FM_GetShiftState [15:47:52]SAM_PROTO_GetShiftState [15:47:52]wFMCommunicate request_size=4 [15:47:52]MH_SAM_APDU [15:47:52]CAPDU: 80 13 01 00 [15:47:52]Write to MH i2c: E2 08 00 9E 0F 80 13 01 00 00 00 00 00 2A [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 0E 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 0E 00 9E 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 24 [15:47:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:47:52]wFMCommunicate OK [15:47:52]SAM_PROTO_GetShiftState done [15:47:52]FM_GetShiftState done [15:47:52]opened in 1720828979 [15:47:52]opened+sec_in_day 1720915379 [15:47:52]quantity*price = 33746 [15:47:52]sum+1 = 33748 [15:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 337.00 Внесено: 337.00 СДАЧА: 0.00 НСП 1% : 2.99 НДС 12% : 35.84 Наличными: 337.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 239 13.07.2024 15:47 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162571 ФПД: 232256897216988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154752&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162571&fm=232256897216988&tin=02508201610067®Number=0000000000090858&sum=33700 [15:47:53]StoreToDocumentArchive [15:47:53]shift 462 fd 162571 [15:47:53]save to /storage/0462/doc_00162571 [15:47:53]save last doc name /storage/0462/doc_00162571 to /storage/kkm_last_doc_name [15:47:53]save OK [15:47:53]Clear old archive folders... [15:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:53]tlvbuf is 005D1760 [15:47:53]SAM_PROTO_ClearQueue [15:47:53]wFMCommunicate request_size=4 [15:47:53]MH_SAM_APDU [15:47:53]CAPDU: 80 09 00 00 [15:47:53]Write to MH i2c: E2 08 00 AB 0F 80 09 00 00 00 00 00 00 2C [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:53]Read from MH i2c: E2 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 03 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [15:47:53]RAPDU: 90 00 [15:47:53]wFMCommunicate OK [15:47:53]SAM_PROTO_ClearQueue done [15:47:53]KKMCreateOFDPacket [15:47:53]OFDProtocolAddRootSTLVToBuf [15:47:53]FM_MakeSignedData [15:47:53]FM_MakeSignedData [15:47:53]SAM_PROTO_SignData [15:47:53]wFMCommunicate request_size=4 [15:47:53]MH_SAM_APDU [15:47:53]CAPDU: 80 0D 01 02 [15:47:53]Write to MH i2c: E2 08 00 AC 0F 80 0D 01 02 00 00 00 00 34 [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:53]Read from MH i2c: E2 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 03 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 03 00 AC 0F 00 90 00 2F [15:47:53]RAPDU: 90 00 [15:47:53]wFMCommunicate OK [15:47:53]wFMCommunicate request_size=255 [15:47:53]MH_SAM_APDU [15:47:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D3 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 0E 00 00 00 00 07 04 06 00 A4 83 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 A8 A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7B 02 00 35 04 06 00 D3 [15:47:53]Write to MH i2c: E2 02 01 AD 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D3 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 0E 00 00 00 00 07 04 06 00 A4 83 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 A8 A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7B 02 00 35 04 06 00 D3 00 00 7C [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:53]Read from MH i2c: E2 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 03 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 03 00 AD 0F 00 90 00 30 [15:47:53]RAPDU: 90 00 [15:47:53]wFMCommunicate OK [15:47:53]wFMCommunicate request_size=10 [15:47:53]MH_SAM_APDU [15:47:53]CAPDU: 80 0D 02 02 05 3C 85 DA F1 DC [15:47:53]Write to MH i2c: E2 0D 00 AE 0F 80 0D 02 02 05 00 3C 85 DA F1 DC 00 00 A9 [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:53]Read from MH i2c: E2 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 03 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 03 00 AE 0F 00 90 00 31 [15:47:53]RAPDU: 90 00 [15:47:53]wFMCommunicate OK [15:47:53]wFMCommunicate request_size=4 [15:47:53]MH_SAM_APDU [15:47:53]CAPDU: 80 0D 03 02 [15:47:53]Write to MH i2c: E2 08 00 AF 0F 80 0D 03 02 00 00 00 00 39 [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:53]Read from MH i2c: E2 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 0B 00 [15:47:53]MH_I2C_Read... [15:47:53]Read from MH i2c: E2 0B 00 AF 0F 00 DD D6 8C EF 24 B0 51 C1 90 00 4E [15:47:53]RAPDU: DD D6 8C EF 24 B0 51 C1 90 00 [15:47:53]wFMCommunicate OK [15:47:53]SAM_PROTO_SignData done [15:47:53]FM_MakeSignedData done [15:47:53]CreateOFDProtocolMessage [15:47:53]wFMCommunicate request_size=4 [15:47:53]MH_SAM_APDU [15:47:53]CAPDU: 80 11 00 00 [15:47:53]Write to MH i2c: E2 08 00 B0 0F 80 11 00 00 00 00 00 00 39 [15:47:53]Write i2c OK [15:47:53]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 17 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 17 00 B0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [15:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:47:54]wFMCommunicate OK [15:47:54]CreateOFDProtocolMessage done [15:47:54]OFDSenderStorePacket 162571 [15:47:54]StoreOFDPacket docnum=162571 [15:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 57 51 07 01 B4 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D3 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 0E 00 00 00 00 07 04 06 00 A4 83 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 A8 A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7B 02 00 35 04 06 00 D3 3C 85 DA F1 DC DD D6 8C EF 24 B0 51 C1 [15:47:54]CheckFolder [15:47:54]dirname=/storage/ofd_packets [15:47:54]CheckFolder done [15:47:54]ProducePacketName [15:47:54]name=ofd_packets/00162571 [15:47:54]NVStorageSaveData ofd_packets/00162571 [15:47:54]File name is /storage/ofd_packets/00162571 [15:47:54]Write 301 bytes [15:47:54]NVStorageSaveData done [15:47:54]OFDSenderStorePacket done [15:47:54]KKMCreateOFDPacket done [15:47:54]NVStorageSaveData kkm_last_timestamp [15:47:54]File name is /storage/kkm_last_timestamp [15:47:54]Write 4 bytes [15:47:54]NVStorageSaveData done [15:47:54]ExternCall_PrintAddStr [15:47:54]wPrintStart [15:47:54]Write to MH i2c: 01 00 00 B1 0F C0 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 07 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 07 00 B1 0F 00 00 00 00 00 FF 0F D5 [15:47:54]RasterBufferAndPrint [15:47:54]line Счет N : (1)1319132 [15:47:54]line ИНН: 02508201610067 [15:47:54]line Контрольно-Кассовый Чек [15:47:54]line ПРОДАЖА [15:47:54]line ТРК (МРК, ГНК) : 53 [15:47:54]line Товар: 2710124130 [15:47:54]line Аи-92-К-5 [15:47:54]line 5.090 * 66.30 [15:47:54]line = 337.47 [15:47:54]line НДС 12% НСП 1% [15:47:54]line > о реализуемом товаре [15:47:54]line ОКРУГЛЕНИЕ: -0.47 [15:47:54]line ИТОГО: 337.00 [15:47:54]line Внесено: 337.00 [15:47:54]line СДАЧА: 0.00 [15:47:54]line НСП 1% : 2.99 [15:47:54]line НДС 12% : 35.84 [15:47:54]line Наличными: 337.00 [15:47:54]line Безнал.: 0.00 [15:47:54]line Место: АЗС № 140 "Партнер Нефть" [15:47:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:47:54]line СНО: Общий режим [15:47:54]line Чек 239 13.07.2024 15:47 [15:47:54]line Смена: 462 ФФД: 1.0 [15:47:54]line ЗНМ: 0300000129 [15:47:54]line РНМ: 0000000000090858 [15:47:54]line Версия ККМ: 001 [15:47:54]line ФМ: 0000000000874899 [15:47:54]line ФД: 162571 [15:47:54]line ФПД: 232256897216988 [15:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154752&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162571&fm=232256897216988&tin=02508201610067®Number=0000000000090858&sum=33700 [15:47:54]written 0, free lines is 4095 [15:47:54]Write to MH i2c: 01 00 00 DC 0F EB [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 07 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 07 00 DC 0F 00 00 00 00 00 DF 0C DD [15:47:54]RasterBufferAndPrint [15:47:54]line [15:47:54]line [15:47:54]line [15:47:54]line [15:47:54]line [15:47:54]written 0, free lines is 3301 [15:47:54]MH_Cut [15:47:54]Write to MH i2c: D1 01 00 E3 0F 01 C4 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: D1 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: D1 01 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: D1 01 00 E3 0F 00 C3 [15:47:54]Write to MH i2c: 01 00 00 E4 0F F3 [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:55]*** Cut start [15:47:55]*** Purtial cut [15:47:55]*** CUTSNS_PIN = 0 [15:47:55]*** Stage 1: CUTSNS_PIN = 1 [15:47:57]Read from MH i2c: 01 [15:47:57]MH_I2C_Read... [15:47:57]*** Stop cut motor [15:47:57]*** Cut end [15:47:57]Read from MH i2c: 01 07 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: 01 07 00 E4 0F 00 00 00 00 00 FF 0F 08 [15:47:57]process_action close_receipt done [15:47:57]requested_data is exist [15:47:57]produce_requested_data [15:47:57]requested_item fm.sn is exist - process it [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 11 00 00 [15:47:57]Write to MH i2c: E2 08 00 E5 0F 80 11 00 00 00 00 00 00 6E [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 17 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 17 00 E5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [15:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:47:57]wFMCommunicate OK [15:47:57]requested_item fd.num is exist - process it [15:47:57]SAM_PROTO_GetFieldsCounters [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 13 00 00 [15:47:57]Write to MH i2c: E2 08 00 E6 0F 80 13 00 00 00 00 00 00 71 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 62 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 62 00 E6 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [15:47:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_GetFieldsCounters done [15:47:57]requested_item shift.num is exist - process it [15:47:57]requested_item shift.opened is exist - process it [15:47:57]req_shift_opened [15:47:57]FM_GetShiftState [15:47:57]SAM_PROTO_GetShiftState [15:47:57]wFMCommunicate request_size=4 [15:47:57]MH_SAM_APDU [15:47:57]CAPDU: 80 13 01 00 [15:47:57]Write to MH i2c: E2 08 00 E7 0F 80 13 01 00 00 00 00 00 73 [15:47:57]Write i2c OK [15:47:57]MH_I2C_Read... [15:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:57]Read from MH i2c: E2 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 [15:47:57]MH_I2C_Read... [15:47:57]Read from MH i2c: E2 0E 00 E7 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6D [15:47:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:47:57]wFMCommunicate OK [15:47:57]SAM_PROTO_GetShiftState done [15:47:57]FM_GetShiftState done [15:47:57]req_shift_opened done [15:47:57]requested_item shift.open_date is exist - process it [15:47:57]req_shift_open_date [15:47:57]req_shift_open_date done [15:47:57]produce_requested_data done [15:47:57]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162571,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:47:57]process_action_free close_receipt [15:47:57]json_value_free [15:47:57]json_value_free done [15:47:57]process_json_proto returns [15:47:57]Send response to host [15:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162571,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:47:57]free response buf [15:47:57]execute_script done [15:47:57]execute_script returns [15:47:57]free content buf [15:47:57]Sock 7.Close socket [15:47:57]Sock 7.Thread stoped [15:48:44]accept exits with 9 [15:48:44]New connection [15:48:44]New thread 3067366756 created [15:48:44]Thread 3067510116 joined [15:48:44]Waiting for new connection... [15:48:44] Sock 9.Parse request [15:48:44]Sock 9.Check first char [15:48:44]Sock 9.First char is OK [15:48:44]request: POST /json_proto HTTP/1.0 [15:48:44]Method: POST [15:48:44]URL: /json_proto [15:48:44]Method is POST - this is cgi request [15:48:44]url: /json_proto [15:48:44]query_string will be loaded in cgi processing [15:48:44]execute_cgi json_proto POST (null) [15:48:44]execute_cgi path=json_proto method=POST [15:48:44]POST find Content-Length [15:48:44]Host: 172.17.39.67:8080 [15:48:44]Content-Length: 683 [15:48:44]Content-Type: application/json [15:48:44] [15:48:44]POST finish read [15:48:44]Found Content-Length = 683 [15:48:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44]execute_script... [15:48:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:44]POST & json_proto [15:48:44]process_json_proto [15:48:44]json parsed OK: [15:48:44]protocol is kg_v1.0 [15:48:44]action value=close_receipt [15:48:44]process_action close_receipt [15:48:44]cmd_close_receipt [15:48:44]MH_GetDate [15:48:44]Write to MH i2c: F0 00 00 E8 0F E6 [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: F0 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: F0 09 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: F0 09 00 E8 0F 00 DC A1 92 66 86 7C 92 66 5E [15:48:44]GetLastDocTimeStamp 1720885672 [15:48:44]current date 1720885724 [15:48:44]FM_GetShiftState [15:48:44]SAM_PROTO_GetShiftState [15:48:44]wFMCommunicate request_size=4 [15:48:44]MH_SAM_APDU [15:48:44]CAPDU: 80 13 01 00 [15:48:44]Write to MH i2c: E2 08 00 E9 0F 80 13 01 00 00 00 00 00 75 [15:48:44]Write i2c OK [15:48:44]MH_I2C_Read... [15:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:44]Read from MH i2c: E2 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 0E 00 [15:48:44]MH_I2C_Read... [15:48:44]Read from MH i2c: E2 0E 00 E9 0F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6F [15:48:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:48:44]wFMCommunicate OK [15:48:44]SAM_PROTO_GetShiftState done [15:48:44]FM_GetShiftState done [15:48:44]opened in 1720828979 [15:48:44]opened+sec_in_day 1720915379 [15:48:44]quantity*price = 100046 [15:48:44]sum+1 = 100048 [15:48:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 240 13.07.2024 15:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162572 ФПД: 276285930361399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154844&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162572&fm=276285930361399&tin=02508201610067®Number=0000000000090858&sum=100000 [15:48:45]StoreToDocumentArchive [15:48:45]shift 462 fd 162572 [15:48:45]save to /storage/0462/doc_00162572 [15:48:45]save last doc name /storage/0462/doc_00162572 to /storage/kkm_last_doc_name [15:48:45]save OK [15:48:45]Clear old archive folders... [15:48:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:45]tlvbuf is B6FE05C0 [15:48:45]SAM_PROTO_ClearQueue [15:48:45]wFMCommunicate request_size=4 [15:48:45]MH_SAM_APDU [15:48:45]CAPDU: 80 09 00 00 [15:48:45]Write to MH i2c: E2 08 00 F6 0F 80 09 00 00 00 00 00 00 77 [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:45]Read from MH i2c: E2 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [15:48:45]RAPDU: 90 00 [15:48:45]wFMCommunicate OK [15:48:45]SAM_PROTO_ClearQueue done [15:48:45]KKMCreateOFDPacket [15:48:45]OFDProtocolAddRootSTLVToBuf [15:48:45]FM_MakeSignedData [15:48:45]FM_MakeSignedData [15:48:45]SAM_PROTO_SignData [15:48:45]wFMCommunicate request_size=4 [15:48:45]MH_SAM_APDU [15:48:45]CAPDU: 80 0D 01 02 [15:48:45]Write to MH i2c: E2 08 00 F7 0F 80 0D 01 02 00 00 00 00 7F [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:45]Read from MH i2c: E2 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 F7 0F 00 90 00 7A [15:48:45]RAPDU: 90 00 [15:48:45]wFMCommunicate OK [15:48:45]wFMCommunicate request_size=255 [15:48:45]MH_SAM_APDU [15:48:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F0 00 00 00 F4 03 04 00 DC A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7B 02 00 35 04 06 00 FB [15:48:45]Write to MH i2c: E2 02 01 F8 0F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F0 00 00 00 F4 03 04 00 DC A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7B 02 00 35 04 06 00 FB 00 00 43 [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:45]Read from MH i2c: E2 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 F8 0F 00 90 00 7B [15:48:45]RAPDU: 90 00 [15:48:45]wFMCommunicate OK [15:48:45]wFMCommunicate request_size=10 [15:48:45]MH_SAM_APDU [15:48:45]CAPDU: 80 0D 02 02 05 47 D4 BC 52 37 [15:48:45]Write to MH i2c: E2 0D 00 F9 0F 80 0D 02 02 05 00 47 D4 BC 52 37 00 00 EC [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:45]Read from MH i2c: E2 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 03 00 F9 0F 00 90 00 7C [15:48:45]RAPDU: 90 00 [15:48:45]wFMCommunicate OK [15:48:45]wFMCommunicate request_size=4 [15:48:45]MH_SAM_APDU [15:48:45]CAPDU: 80 0D 03 02 [15:48:45]Write to MH i2c: E2 08 00 FA 0F 80 0D 03 02 00 00 00 00 84 [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:45]Read from MH i2c: E2 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 0B 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 0B 00 FA 0F 00 1D 1C DF FE 64 54 69 84 90 00 40 [15:48:45]RAPDU: 1D 1C DF FE 64 54 69 84 90 00 [15:48:45]wFMCommunicate OK [15:48:45]SAM_PROTO_SignData done [15:48:45]FM_MakeSignedData done [15:48:45]CreateOFDProtocolMessage [15:48:45]wFMCommunicate request_size=4 [15:48:45]MH_SAM_APDU [15:48:45]CAPDU: 80 11 00 00 [15:48:45]Write to MH i2c: E2 08 00 FB 0F 80 11 00 00 00 00 00 00 84 [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:45]Read from MH i2c: E2 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 17 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: E2 17 00 FB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E4 [15:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:48:45]wFMCommunicate OK [15:48:45]CreateOFDProtocolMessage done [15:48:45]OFDSenderStorePacket 162572 [15:48:45]StoreOFDPacket docnum=162572 [15:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9D 7C 07 01 9F 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F0 00 00 00 F4 03 04 00 DC A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7B 02 00 35 04 06 00 FB 47 D4 BC 52 37 1D 1C DF FE 64 54 69 84 [15:48:45]CheckFolder [15:48:45]dirname=/storage/ofd_packets [15:48:45]CheckFolder done [15:48:45]ProducePacketName [15:48:45]name=ofd_packets/00162572 [15:48:45]NVStorageSaveData ofd_packets/00162572 [15:48:45]File name is /storage/ofd_packets/00162572 [15:48:45]Write 301 bytes [15:48:45]NVStorageSaveData done [15:48:45]OFDSenderStorePacket done [15:48:45]KKMCreateOFDPacket done [15:48:45]NVStorageSaveData kkm_last_timestamp [15:48:45]File name is /storage/kkm_last_timestamp [15:48:45]Write 4 bytes [15:48:45]NVStorageSaveData done [15:48:45]ExternCall_PrintAddStr [15:48:45]wPrintStart [15:48:45]Write to MH i2c: 01 00 00 FC 0F 0B [15:48:45]Write i2c OK [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: 01 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: 01 07 00 [15:48:45]MH_I2C_Read... [15:48:45]Read from MH i2c: 01 07 00 FC 0F 00 00 00 00 00 FF 0F 20 [15:48:45]RasterBufferAndPrint [15:48:45]line Счет N : (1)1319133 [15:48:45]line ИНН: 02508201610067 [15:48:45]line Контрольно-Кассовый Чек [15:48:45]line ПРОДАЖА [15:48:45]line ТРК (МРК, ГНК) : 43 [15:48:45]line Товар: 2710124130 [15:48:45]line Аи-92-К-5 [15:48:45]line 15.090 * 66.30 [15:48:45]line = 1000.47 [15:48:45]line НДС 12% НСП 1% [15:48:45]line > о реализуемом товаре [15:48:45]line ОКРУГЛЕНИЕ: -0.47 [15:48:45]line ИТОГО: 1000.00 [15:48:45]line Внесено: 1000.00 [15:48:45]line СДАЧА: 0.00 [15:48:45]line НСП 1% : 8.85 [15:48:45]line НДС 12% : 106.24 [15:48:45]line Наличными: 1000.00 [15:48:45]line Безнал.: 0.00 [15:48:45]line Место: АЗС № 140 "Партнер Нефть" [15:48:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:48:45]line СНО: Общий режим [15:48:45]line Чек 240 13.07.2024 15:48 [15:48:45]line Смена: 462 ФФД: 1.0 [15:48:45]line ЗНМ: 0300000129 [15:48:45]line РНМ: 0000000000090858 [15:48:45]line Версия ККМ: 001 [15:48:45]line ФМ: 0000000000874899 [15:48:46]line ФД: 162572 [15:48:46]line ФПД: 276285930361399 [15:48:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T154844&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162572&fm=276285930361399&tin=02508201610067®Number=0000000000090858&sum=100000 [15:48:46]written 0, free lines is 4095 [15:48:46]Write to MH i2c: 01 00 00 27 10 37 [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: 01 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: 01 07 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: 01 07 00 27 10 00 00 00 00 00 DC 0C 26 [15:48:46]RasterBufferAndPrint [15:48:46]line [15:48:46]line [15:48:46]line [15:48:46]line [15:48:46]line [15:48:46]written 0, free lines is 3298 [15:48:46]MH_Cut [15:48:46]Write to MH i2c: D1 01 00 2E 10 01 10 [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: D1 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: D1 01 00 [15:48:46]MH_I2C_Read... [15:48:46]Read from MH i2c: D1 01 00 2E 10 00 0F [15:48:46]Write to MH i2c: 01 00 00 2F 10 3F [15:48:46]Write i2c OK [15:48:46]MH_I2C_Read... [15:48:47]*** Cut start [15:48:47]*** Purtial cut [15:48:47]*** Stage 1: CUTSNS_PIN = 1 [15:48:47]Read from MH i2c: 01 [15:48:47]MH_I2C_Read... [15:48:47]*** Stop cut motor [15:48:47]*** Cut end [15:48:47]Read from MH i2c: 01 07 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: 01 07 00 2F 10 00 00 00 00 00 FF 0F 54 [15:48:47]process_action close_receipt done [15:48:47]requested_data is exist [15:48:47]produce_requested_data [15:48:47]requested_item fm.sn is exist - process it [15:48:47]wFMCommunicate request_size=4 [15:48:47]MH_SAM_APDU [15:48:47]CAPDU: 80 11 00 00 [15:48:47]Write to MH i2c: E2 08 00 30 10 80 11 00 00 00 00 00 00 BA [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:47]Read from MH i2c: E2 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 17 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 17 00 30 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [15:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:48:47]wFMCommunicate OK [15:48:47]requested_item fd.num is exist - process it [15:48:47]SAM_PROTO_GetFieldsCounters [15:48:47]wFMCommunicate request_size=4 [15:48:47]MH_SAM_APDU [15:48:47]CAPDU: 80 13 00 00 [15:48:47]Write to MH i2c: E2 08 00 31 10 80 13 00 00 00 00 00 00 BD [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:47]Read from MH i2c: E2 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 62 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 62 00 31 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [15:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:47]wFMCommunicate OK [15:48:47]SAM_PROTO_GetFieldsCounters done [15:48:47]requested_item shift.num is exist - process it [15:48:47]requested_item shift.opened is exist - process it [15:48:47]req_shift_opened [15:48:47]FM_GetShiftState [15:48:47]SAM_PROTO_GetShiftState [15:48:47]wFMCommunicate request_size=4 [15:48:47]MH_SAM_APDU [15:48:47]CAPDU: 80 13 01 00 [15:48:47]Write to MH i2c: E2 08 00 32 10 80 13 01 00 00 00 00 00 BF [15:48:47]Write i2c OK [15:48:47]MH_I2C_Read... [15:48:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:47]Read from MH i2c: E2 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 0E 00 [15:48:47]MH_I2C_Read... [15:48:47]Read from MH i2c: E2 0E 00 32 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B9 [15:48:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:48:47]wFMCommunicate OK [15:48:47]SAM_PROTO_GetShiftState done [15:48:47]FM_GetShiftState done [15:48:47]req_shift_opened done [15:48:47]requested_item shift.open_date is exist - process it [15:48:47]req_shift_open_date [15:48:47]req_shift_open_date done [15:48:47]produce_requested_data done [15:48:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162572,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:48:47]process_action_free close_receipt [15:48:47]json_value_free [15:48:47]json_value_free done [15:48:47]process_json_proto returns [15:48:47]Send response to host [15:48:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162572,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:48:47]free response buf [15:48:47]execute_script done [15:48:47]execute_script returns [15:48:47]free content buf [15:48:47]Sock 9.Close socket [15:48:47]Sock 9.Thread stoped [15:50:02]ConnectInit Can't connect to host [15:50:02]CommunicateWithHost connect error [15:50:02]CommunicateWithHost err = -1 [15:50:02]OFD Sender: Server communicate error [15:50:02]OFD Sender: Processing packet 162570 [packets to send 108, broken 105] [15:50:02]ProducePacketName [15:50:02]name=ofd_packets/00162570 [15:50:02]OFD Sender: To server: pG, [15:50:02]CommunicateWithHost lk.salyk.kg:30040 [15:50:02]ConnectInit lk.salyk.kg [15:50:02]Connected sock=9 [15:50:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 65 2C 08 01 87 93 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 3C D7 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 A2 A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7B 02 00 35 04 06 00 5F 57 7C 07 B7 67 94 16 73 26 65 64 03 47 [15:50:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3E 4A 47 00 0A 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0A 7B 02 00 F4 03 04 00 37 4E 92 66 B6 04 01 00 00 E4 F8 44 54 17 65 19 8A [15:50:02]CommunicateWithHost err = 0 [15:50:02]CheckOFDResponse [15:50:02]1017 (14) - 77093643461234 [15:50:02]1041 (16) - 0000000000874899 [15:50:02]1040 (4) - 162570 [15:50:02]1012 (4) - 13.07.2024 09:51 [15:50:02]1206 (1) - 0 [15:50:02]OFD Sender: Remove packet 162570 [15:50:02]ProducePacketName [15:50:02]name=ofd_packets/00162570 [15:50:02]NVStorageDeleteData [15:50:02]OFD Sender: Processing packet 162571 [packets to send 107, broken 105] [15:50:02]ProducePacketName [15:50:02]name=ofd_packets/00162571 [15:50:02]OFD Sender: To server: pG, [15:50:02]CommunicateWithHost lk.salyk.kg:30040 [15:50:02]ConnectInit lk.salyk.kg [15:50:03]Connected sock=9 [15:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 57 51 07 01 B4 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D3 83 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 83 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 0E 00 00 00 00 07 04 06 00 A4 83 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 A8 A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7B 02 00 35 04 06 00 D3 3C 85 DA F1 DC DD D6 8C EF 24 B0 51 C1 [15:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 94 73 47 00 38 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0B 7B 02 00 F4 03 04 00 38 4E 92 66 B6 04 01 00 00 86 6A 85 8C 17 04 7D 87 [15:50:03]CommunicateWithHost err = 0 [15:50:03]CheckOFDResponse [15:50:03]1017 (14) - 77093643461234 [15:50:03]1041 (16) - 0000000000874899 [15:50:03]1040 (4) - 162571 [15:50:03]1012 (4) - 13.07.2024 09:51 [15:50:03]1206 (1) - 0 [15:50:03]OFD Sender: Remove packet 162571 [15:50:03]ProducePacketName [15:50:03]name=ofd_packets/00162571 [15:50:03]NVStorageDeleteData [15:50:03]OFD Sender: Processing packet 162572 [packets to send 106, broken 105] [15:50:03]ProducePacketName [15:50:03]name=ofd_packets/00162572 [15:50:03]OFD Sender: To server: pG, [15:50:03]CommunicateWithHost lk.salyk.kg:30040 [15:50:03]ConnectInit lk.salyk.kg [15:50:03]Connected sock=9 [15:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9D 7C 07 01 9F 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 F0 00 00 00 F4 03 04 00 DC A1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7B 02 00 35 04 06 00 FB 47 D4 BC 52 37 1D 1C DF FE 64 54 69 84 [15:50:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 72 39 47 00 87 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0C 7B 02 00 F4 03 04 00 39 4E 92 66 B6 04 01 00 00 7D 89 DF 60 64 C2 BC BD [15:50:04]CommunicateWithHost err = 0 [15:50:04]CheckOFDResponse [15:50:04]1017 (14) - 77093643461234 [15:50:04]1041 (16) - 0000000000874899 [15:50:04]1040 (4) - 162572 [15:50:04]1012 (4) - 13.07.2024 09:51 [15:50:04]1206 (1) - 0 [15:50:04]OFD Sender: Remove packet 162572 [15:50:04]ProducePacketName [15:50:04]name=ofd_packets/00162572 [15:50:04]NVStorageDeleteData [15:50:04]OFD Sender: No OFD packet to send [15:50:09]OFD Sender: No OFD packet to send [15:50:14]OFD Sender: No OFD packet to send [15:50:19]OFD Sender: No OFD packet to send [15:50:24]OFD Sender: No OFD packet to send [15:50:29]OFD Sender: No OFD packet to send [15:50:34]OFD Sender: No OFD packet to send [15:50:39]OFD Sender: No OFD packet to send [15:50:44]OFD Sender: No OFD packet to send [15:50:49]OFD Sender: No OFD packet to send [15:50:54]OFD Sender: No OFD packet to send [15:50:59]OFD Sender: No OFD packet to send [15:51:04]OFD Sender: No OFD packet to send [15:51:09]OFD Sender: No OFD packet to send [15:51:14]OFD Sender: No OFD packet to send [15:51:19]OFD Sender: No OFD packet to send [15:51:24]OFD Sender: No OFD packet to send [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:05]accept exits with 7 [15:56:05]New connection [15:56:05]New thread 3067510116 created [15:56:05]Thread 3067366756 joined [15:56:05]Waiting for new connection... [15:56:05] Sock 7.Parse request [15:56:05]Sock 7.Check first char [15:56:05]Sock 7.First char is OK [15:56:05]request: POST /json_proto HTTP/1.0 [15:56:05]Method: POST [15:56:05]URL: /json_proto [15:56:05]Method is POST - this is cgi request [15:56:05]url: /json_proto [15:56:05]query_string will be loaded in cgi processing [15:56:05]execute_cgi json_proto POST (null) [15:56:05]execute_cgi path=json_proto method=POST [15:56:05]POST find Content-Length [15:56:05]Host: 172.17.39.67:8080 [15:56:05]Content-Length: 688 [15:56:05]Content-Type: application/json [15:56:05] [15:56:05]POST finish read [15:56:05]Found Content-Length = 688 [15:56:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:56:05]execute_script... [15:56: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)1319134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:56:05]POST & json_proto [15:56:05]process_json_proto [15:56:05]json parsed OK: [15:56:05]protocol is kg_v1.0 [15:56:05]action value=close_receipt [15:56:05]process_action close_receipt [15:56:05]cmd_close_receipt [15:56:05]MH_GetDate [15:56:05]Write to MH i2c: F0 00 00 33 10 32 [15:56:05]Write i2c OK [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: F0 [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: F0 09 00 [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: F0 09 00 33 10 00 95 A3 92 66 86 7C 92 66 65 [15:56:05]GetLastDocTimeStamp 1720885724 [15:56:05]current date 1720886165 [15:56:05]FM_GetShiftState [15:56:05]SAM_PROTO_GetShiftState [15:56:05]wFMCommunicate request_size=4 [15:56:05]MH_SAM_APDU [15:56:05]CAPDU: 80 13 01 00 [15:56:05]Write to MH i2c: E2 08 00 34 10 80 13 01 00 00 00 00 00 C1 [15:56:05]Write i2c OK [15:56:05]MH_I2C_Read... [15:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:05]Read from MH i2c: E2 [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: E2 0E 00 [15:56:05]MH_I2C_Read... [15:56:05]Read from MH i2c: E2 0E 00 34 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BB [15:56:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:56:05]wFMCommunicate OK [15:56:05]SAM_PROTO_GetShiftState done [15:56:05]FM_GetShiftState done [15:56:05]opened in 1720828979 [15:56:05]opened+sec_in_day 1720915379 [15:56:05]quantity*price = 200013 [15:56:05]sum+1 = 200014 [15:56:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 241 13.07.2024 15:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162573 ФПД: 95073975103898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155605&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162573&fm=95073975103898&tin=02508201610067®Number=0000000000090858&sum=200000 [15:56:06]StoreToDocumentArchive [15:56:06]shift 462 fd 162573 [15:56:06]save to /storage/0462/doc_00162573 [15:56:06]save last doc name /storage/0462/doc_00162573 to /storage/kkm_last_doc_name [15:56:06]save OK [15:56:06]Clear old archive folders... [15:56:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:56:06]tlvbuf is 005D9190 [15:56:06]SAM_PROTO_ClearQueue [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 09 00 00 [15:56:06]Write to MH i2c: E2 08 00 41 10 80 09 00 00 00 00 00 00 C3 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 03 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 03 00 41 10 00 90 00 C5 [15:56:06]RAPDU: 90 00 [15:56:06]wFMCommunicate OK [15:56:06]SAM_PROTO_ClearQueue done [15:56:06]KKMCreateOFDPacket [15:56:06]OFDProtocolAddRootSTLVToBuf [15:56:06]FM_MakeSignedData [15:56:06]FM_MakeSignedData [15:56:06]SAM_PROTO_SignData [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 0D 01 02 [15:56:06]Write to MH i2c: E2 08 00 42 10 80 0D 01 02 00 00 00 00 CB [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 03 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 03 00 42 10 00 90 00 C6 [15:56:06]RAPDU: 90 00 [15:56:06]wFMCommunicate OK [15:56:06]wFMCommunicate request_size=255 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F1 00 00 00 F4 03 04 00 95 A3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7B 02 00 35 04 06 00 [15:56:06]Write to MH i2c: E2 02 01 43 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F1 00 00 00 F4 03 04 00 95 A3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7B 02 00 35 04 06 00 00 00 54 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 03 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 03 00 43 10 00 90 00 C7 [15:56:06]RAPDU: 90 00 [15:56:06]wFMCommunicate OK [15:56:06]wFMCommunicate request_size=11 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 0D 02 02 06 56 78 22 83 71 9A [15:56:06]Write to MH i2c: E2 0E 00 44 10 80 0D 02 02 06 00 56 78 22 83 71 9A 00 00 58 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 03 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 03 00 44 10 00 90 00 C8 [15:56:06]RAPDU: 90 00 [15:56:06]wFMCommunicate OK [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 0D 03 02 [15:56:06]Write to MH i2c: E2 08 00 45 10 80 0D 03 02 00 00 00 00 D0 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 0B 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 0B 00 45 10 00 29 DE 03 0C 59 38 66 DB 90 00 B9 [15:56:06]RAPDU: 29 DE 03 0C 59 38 66 DB 90 00 [15:56:06]wFMCommunicate OK [15:56:06]SAM_PROTO_SignData done [15:56:06]FM_MakeSignedData done [15:56:06]CreateOFDProtocolMessage [15:56:06]wFMCommunicate request_size=4 [15:56:06]MH_SAM_APDU [15:56:06]CAPDU: 80 11 00 00 [15:56:06]Write to MH i2c: E2 08 00 46 10 80 11 00 00 00 00 00 00 D0 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:06]Read from MH i2c: E2 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 17 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: E2 17 00 46 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [15:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:56:06]wFMCommunicate OK [15:56:06]CreateOFDProtocolMessage done [15:56:06]OFDSenderStorePacket 162573 [15:56:06]StoreOFDPacket docnum=162573 [15:56:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A4 4E 08 01 FD 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F1 00 00 00 F4 03 04 00 95 A3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7B 02 00 35 04 06 00 56 78 22 83 71 9A 29 DE 03 0C 59 38 66 DB [15:56:06]CheckFolder [15:56:06]dirname=/storage/ofd_packets [15:56:06]CheckFolder done [15:56:06]ProducePacketName [15:56:06]name=ofd_packets/00162573 [15:56:06]NVStorageSaveData ofd_packets/00162573 [15:56:06]File name is /storage/ofd_packets/00162573 [15:56:06]Write 302 bytes [15:56:06]NVStorageSaveData done [15:56:06]OFDSenderStorePacket done [15:56:06]KKMCreateOFDPacket done [15:56:06]NVStorageSaveData kkm_last_timestamp [15:56:06]File name is /storage/kkm_last_timestamp [15:56:06]Write 4 bytes [15:56:06]NVStorageSaveData done [15:56:06]ExternCall_PrintAddStr [15:56:06]wPrintStart [15:56:06]Write to MH i2c: 01 00 00 47 10 57 [15:56:06]Write i2c OK [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: 01 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: 01 07 00 [15:56:06]MH_I2C_Read... [15:56:06]Read from MH i2c: 01 07 00 47 10 00 00 00 00 00 FF 0F 6C [15:56:06]RasterBufferAndPrint [15:56:06]line Счет N : (1)1319134 [15:56:06]line ИНН: 02508201610067 [15:56:06]line Контрольно-Кассовый Чек [15:56:06]line ПРОДАЖА [15:56:06]line ТРК (МРК, ГНК) : 11 [15:56:06]line Товар: 2710194210 [15:56:06]line ДТ(л)-К-5 [15:56:06]line 27.550 * 72.60 [15:56:06]line = 2000.13 [15:56:06]line НДС 12% НСП 1% [15:56:06]line > о реализуемом товаре [15:56:06]line ОКРУГЛЕНИЕ: -0.13 [15:56:06]line ИТОГО: 2000.00 [15:56:06]line Внесено: 2000.00 [15:56:06]line СДАЧА: 0.00 [15:56:06]line НСП 1% : 17.70 [15:56:06]line НДС 12% : 212.40 [15:56:06]line Наличными: 2000.00 [15:56:06]line Безнал.: 0.00 [15:56:06]line Место: АЗС № 140 "Партнер Нефть" [15:56:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:56:06]line СНО: Общий режим [15:56:06]line Чек 241 13.07.2024 15:56 [15:56:06]line Смена: 462 ФФД: 1.0 [15:56:06]line ЗНМ: 0300000129 [15:56:06]line РНМ: 0000000000090858 [15:56:06]line Версия ККМ: 001 [15:56:06]line ФМ: 0000000000874899 [15:56:06]line ФД: 162573 [15:56:06]line ФПД: 95073975103898 [15:56:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155605&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162573&fm=95073975103898&tin=02508201610067®Number=0000000000090858&sum=200000 [15:56:07]OFD Sender: Processing packet 162573 [packets to send 106, broken 105] [15:56:07]ProducePacketName [15:56:07]name=ofd_packets/00162573 [15:56:07]OFD Sender: To server: pG, [15:56:07]CommunicateWithHost lk.salyk.kg:30040 [15:56:07]ConnectInit lk.salyk.kg [15:56:07]written 0, free lines is 4095 [15:56:07]Connected sock=10 [15:56:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A4 4E 08 01 FD 2D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F1 00 00 00 F4 03 04 00 95 A3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7B 02 00 35 04 06 00 56 78 22 83 71 9A 29 DE 03 0C 59 38 66 DB [15:56:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 99 0F 47 00 6B 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0D 7B 02 00 F4 03 04 00 A4 4F 92 66 B6 04 01 00 00 FA 06 99 F1 6A A2 F0 0A [15:56:07]CommunicateWithHost err = 0 [15:56:07]CheckOFDResponse [15:56:07]1017 (14) - 77093643461234 [15:56:07]1041 (16) - 0000000000874899 [15:56:07]1040 (4) - 162573 [15:56:07]1012 (4) - 13.07.2024 09:57 [15:56:07]1206 (1) - 0 [15:56:07]OFD Sender: Remove packet 162573 [15:56:07]ProducePacketName [15:56:07]name=ofd_packets/00162573 [15:56:07]NVStorageDeleteData [15:56:07]Write to MH i2c: 01 00 00 72 10 82 [15:56:07]Write i2c OK [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: 01 [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: 01 07 00 [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: 01 07 00 72 10 00 00 00 00 00 D7 0C 6C [15:56:07]RasterBufferAndPrint [15:56:07]line [15:56:07]line [15:56:07]line [15:56:07]line [15:56:07]line [15:56:07]written 0, free lines is 3293 [15:56:07]MH_Cut [15:56:07]Write to MH i2c: D1 01 00 79 10 01 5B [15:56:07]Write i2c OK [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: D1 [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: D1 01 00 [15:56:07]MH_I2C_Read... [15:56:07]Read from MH i2c: D1 01 00 79 10 00 5A [15:56:07]Write to MH i2c: 01 00 00 7A 10 8A [15:56:07]Write i2c OK [15:56:07]MH_I2C_Read... [15:56:08]OFD Sender: No OFD packet to send [15:56:08]*** Cut start [15:56:08]*** Purtial cut [15:56:08]*** CUTSNS_PIN = 0 [15:56:08]*** Stage 1: CUTSNS_PIN = 1 [15:56:10]Read from MH i2c: 01 [15:56:10]*** Stop cut motor [15:56:10]*** Cut end [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: 01 07 00 7A 10 00 00 00 00 00 FF 0F 9F [15:56:10]process_action close_receipt done [15:56:10]requested_data is exist [15:56:10]produce_requested_data [15:56:10]requested_item fm.sn is exist - process it [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 11 00 00 [15:56:10]Write to MH i2c: E2 08 00 7B 10 80 11 00 00 00 00 00 00 05 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 17 00 [15:56:10]MH_I2C_Read... [15:56:10]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 34 38 39 39 90 00 65 [15:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:56:10]wFMCommunicate OK [15:56:10]requested_item fd.num is exist - process it [15:56:10]SAM_PROTO_GetFieldsCounters [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 13 00 00 [15:56:10]Write to MH i2c: E2 08 00 7C 10 80 13 00 00 00 00 00 00 08 [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 62 00 [15:56:10]MH_I2C_Read... [15:56:10]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [15:56:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:10]wFMCommunicate OK [15:56:10]SAM_PROTO_GetFieldsCounters done [15:56:10]requested_item shift.num is exist - process it [15:56:10]requested_item shift.opened is exist - process it [15:56:10]req_shift_opened [15:56:10]FM_GetShiftState [15:56:10]SAM_PROTO_GetShiftState [15:56:10]wFMCommunicate request_size=4 [15:56:10]MH_SAM_APDU [15:56:10]CAPDU: 80 13 01 00 [15:56:10]Write to MH i2c: E2 08 00 7D 10 80 13 01 00 00 00 00 00 0A [15:56:10]Write i2c OK [15:56:10]MH_I2C_Read... [15:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:10]Read from MH i2c: E2 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 0E 00 [15:56:10]MH_I2C_Read... [15:56:10]Read from MH i2c: E2 0E 00 7D 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 04 [15:56:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:56:10]wFMCommunicate OK [15:56:10]SAM_PROTO_GetShiftState done [15:56:10]FM_GetShiftState done [15:56:10]req_shift_opened done [15:56:10]requested_item shift.open_date is exist - process it [15:56:10]req_shift_open_date [15:56:10]req_shift_open_date done [15:56:10]produce_requested_data done [15:56:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162573,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:56:10]process_action_free close_receipt [15:56:10]json_value_free [15:56:10]json_value_free done [15:56:10]process_json_proto returns [15:56:10]Send response to host [15:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162573,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:56:10]free response buf [15:56:10]execute_script done [15:56:10]execute_script returns [15:56:10]free content buf [15:56:10]Sock 7.Close socket [15:56:10]Sock 7.Thread stoped [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:05]accept exits with 9 [15:59:05]New connection [15:59:05]New thread 3067366756 created [15:59:05]Thread 3067510116 joined [15:59:05]Waiting for new connection... [15:59:05] Sock 9.Parse request [15:59:05]Sock 9.Check first char [15:59:05]Sock 9.First char is OK [15:59:05]request: POST /json_proto HTTP/1.0 [15:59:05]Method: POST [15:59:05]URL: /json_proto [15:59:05]Method is POST - this is cgi request [15:59:05]url: /json_proto [15:59:05]query_string will be loaded in cgi processing [15:59:05]execute_cgi json_proto POST (null) [15:59:05]execute_cgi path=json_proto method=POST [15:59:05]POST find Content-Length [15:59:05]Host: 172.17.39.67:8080 [15:59:05]Content-Length: 683 [15:59:05]Content-Type: application/json [15:59:05] [15:59:05]POST finish read [15:59:05]Found Content-Length = 683 [15:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 18.410, "sum" : 1220.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1220.00, "total" : 1220.00, "payments": [ { "type": 0, "sum" : 1220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:05]execute_script... [15:59: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)1319135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 18.410, "sum" : 1220.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1220.00, "total" : 1220.00, "payments": [ { "type": 0, "sum" : 1220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:05]POST & json_proto [15:59:05]process_json_proto [15:59:05]json parsed OK: [15:59:05]protocol is kg_v1.0 [15:59:05]action value=close_receipt [15:59:05]process_action close_receipt [15:59:05]cmd_close_receipt [15:59:05]MH_GetDate [15:59:05]Write to MH i2c: F0 00 00 7E 10 7D [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: F0 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: F0 09 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: F0 09 00 7E 10 00 4A A4 92 66 86 7C 92 66 66 [15:59:05]GetLastDocTimeStamp 1720886165 [15:59:05]current date 1720886346 [15:59:05]FM_GetShiftState [15:59:05]SAM_PROTO_GetShiftState [15:59:05]wFMCommunicate request_size=4 [15:59:05]MH_SAM_APDU [15:59:05]CAPDU: 80 13 01 00 [15:59:05]Write to MH i2c: E2 08 00 7F 10 80 13 01 00 00 00 00 00 0C [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:05]Read from MH i2c: E2 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 0E 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: E2 0E 00 7F 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 06 [15:59:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:59:05]wFMCommunicate OK [15:59:05]SAM_PROTO_GetShiftState done [15:59:05]FM_GetShiftState done [15:59:05]opened in 1720828979 [15:59:05]opened+sec_in_day 1720915379 [15:59:05]quantity*price = 122058 [15:59:05]sum+1 = 122059 [15:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 1220.00 Внесено: 1220.00 СДАЧА: 0.00 НСП 1% : 10.80 НДС 12% : 129.62 Наличными: 1220.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 242 13.07.2024 15:59 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162574 ФПД: 104633940640288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162574&fm=104633940640288&tin=02508201610067®Number=0000000000090858&sum=122000 [15:59:06]StoreToDocumentArchive [15:59:06]shift 462 fd 162574 [15:59:06]save to /storage/0462/doc_00162574 [15:59:06]save last doc name /storage/0462/doc_00162574 to /storage/kkm_last_doc_name [15:59:06]save OK [15:59:06]Clear old archive folders... [15:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:06]tlvbuf is 005D1B20 [15:59:06]SAM_PROTO_ClearQueue [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 09 00 00 [15:59:06]Write to MH i2c: E2 08 00 8C 10 80 09 00 00 00 00 00 00 0E [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 8C 10 00 90 00 10 [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]SAM_PROTO_ClearQueue done [15:59:06]KKMCreateOFDPacket [15:59:06]OFDProtocolAddRootSTLVToBuf [15:59:06]FM_MakeSignedData [15:59:06]FM_MakeSignedData [15:59:06]SAM_PROTO_SignData [15:59:06]wFMCommunicate request_size=4 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 0D 01 02 [15:59:06]Write to MH i2c: E2 08 00 8D 10 80 0D 01 02 00 00 00 00 16 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:06]Read from MH i2c: E2 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 [15:59:06]MH_I2C_Read... [15:59:06]Read from MH i2c: E2 03 00 8D 10 00 90 00 11 [15:59:06]RAPDU: 90 00 [15:59:06]wFMCommunicate OK [15:59:06]wFMCommunicate request_size=255 [15:59:06]MH_SAM_APDU [15:59:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EA 47 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4A A4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7B 02 00 35 04 06 00 5F [15:59:06]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 35 FF 03 08 00 03 EA 47 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4A A4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7B 02 00 35 04 06 00 5F 00 00 84 [15:59:06]Write i2c OK [15:59:06]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 8E 10 00 90 00 12 [15:59:07]RAPDU: 90 00 [15:59:07]wFMCommunicate OK [15:59:07]wFMCommunicate request_size=10 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 0D 02 02 05 29 FC DD 02 20 [15:59:07]Write to MH i2c: E2 0D 00 8F 10 80 0D 02 02 05 00 29 FC DD 02 20 00 00 47 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 03 00 8F 10 00 90 00 13 [15:59:07]RAPDU: 90 00 [15:59:07]wFMCommunicate OK [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 0D 03 02 [15:59:07]Write to MH i2c: E2 08 00 90 10 80 0D 03 02 00 00 00 00 1B [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 0B 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 0B 00 90 10 00 F4 A9 B4 E3 BE 14 95 64 90 00 1B [15:59:07]RAPDU: F4 A9 B4 E3 BE 14 95 64 90 00 [15:59:07]wFMCommunicate OK [15:59:07]SAM_PROTO_SignData done [15:59:07]FM_MakeSignedData done [15:59:07]CreateOFDProtocolMessage [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 11 00 00 [15:59:07]Write to MH i2c: E2 08 00 91 10 80 11 00 00 00 00 00 00 1B [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 17 00 [15:59:07]MH_I2C_Read... [15:59:07]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 34 38 39 39 90 00 7B [15:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:59:07]wFMCommunicate OK [15:59:07]CreateOFDProtocolMessage done [15:59:07]OFDSenderStorePacket 162574 [15:59:07]StoreOFDPacket docnum=162574 [15:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B7 84 07 01 5B 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 35 FF 03 08 00 03 EA 47 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4A A4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7B 02 00 35 04 06 00 5F 29 FC DD 02 20 F4 A9 B4 E3 BE 14 95 64 [15:59:07]CheckFolder [15:59:07]dirname=/storage/ofd_packets [15:59:07]CheckFolder done [15:59:07]ProducePacketName [15:59:07]name=ofd_packets/00162574 [15:59:07]NVStorageSaveData ofd_packets/00162574 [15:59:07]File name is /storage/ofd_packets/00162574 [15:59:07]Write 301 bytes [15:59:07]NVStorageSaveData done [15:59:07]OFDSenderStorePacket done [15:59:07]KKMCreateOFDPacket done [15:59:07]NVStorageSaveData kkm_last_timestamp [15:59:07]File name is /storage/kkm_last_timestamp [15:59:07]Write 4 bytes [15:59:07]NVStorageSaveData done [15:59:07]ExternCall_PrintAddStr [15:59:07]wPrintStart [15:59:07]Write to MH i2c: 01 00 00 92 10 A2 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 92 10 00 00 00 00 00 FF 0F B7 [15:59:07]RasterBufferAndPrint [15:59:07]line Счет N : (1)1319135 [15:59:07]line ИНН: 02508201610067 [15:59:07]line Контрольно-Кассовый Чек [15:59:07]line ПРОДАЖА [15:59:07]line ТРК (МРК, ГНК) : 63 [15:59:07]line Товар: 2710124130 [15:59:07]line Аи-92-К-5 [15:59:07]line 18.410 * 66.30 [15:59:07]line = 1220.58 [15:59:07]line НДС 12% НСП 1% [15:59:07]line > о реализуемом товаре [15:59:07]line ОКРУГЛЕНИЕ: -0.58 [15:59:07]line ИТОГО: 1220.00 [15:59:07]line Внесено: 1220.00 [15:59:07]line СДАЧА: 0.00 [15:59:07]line НСП 1% : 10.80 [15:59:07]line НДС 12% : 129.62 [15:59:07]line Наличными: 1220.00 [15:59:07]line Безнал.: 0.00 [15:59:07]line Место: АЗС № 140 "Партнер Нефть" [15:59:07]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:59:07]line СНО: Общий режим [15:59:07]line Чек 242 13.07.2024 15:59 [15:59:07]line Смена: 462 ФФД: 1.0 [15:59:07]line ЗНМ: 0300000129 [15:59:07]line РНМ: 0000000000090858 [15:59:07]line Версия ККМ: 001 [15:59:07]line ФМ: 0000000000874899 [15:59:07]line ФД: 162574 [15:59:07]line ФПД: 104633940640288 [15:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T155906&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162574&fm=104633940640288&tin=02508201610067®Number=0000000000090858&sum=122000 [15:59:07]OFD Sender: Processing packet 162574 [packets to send 106, broken 105] [15:59:07]ProducePacketName [15:59:07]name=ofd_packets/00162574 [15:59:07]OFD Sender: To server: pG, [15:59:07]CommunicateWithHost lk.salyk.kg:30040 [15:59:07]ConnectInit lk.salyk.kg [15:59:07]written 0, free lines is 4095 [15:59:07]Connected sock=10 [15:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B7 84 07 01 5B 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 35 FF 03 08 00 03 EA 47 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CA DC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 DC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 32 00 00 00 00 07 04 06 00 90 DC 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 4A A4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7B 02 00 35 04 06 00 5F 29 FC DD 02 20 F4 A9 B4 E3 BE 14 95 64 [15:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 52 45 47 00 C9 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0E 7B 02 00 F4 03 04 00 59 50 92 66 B6 04 01 00 00 C8 55 3F 92 8E B5 2D 28 [15:59:07]CommunicateWithHost err = 0 [15:59:07]CheckOFDResponse [15:59:07]1017 (14) - 77093643461234 [15:59:07]1041 (16) - 0000000000874899 [15:59:07]1040 (4) - 162574 [15:59:07]1012 (4) - 13.07.2024 10:00 [15:59:07]1206 (1) - 0 [15:59:07]OFD Sender: Remove packet 162574 [15:59:07]ProducePacketName [15:59:07]name=ofd_packets/00162574 [15:59:07]NVStorageDeleteData [15:59:08]Write to MH i2c: 01 00 00 BD 10 CD [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 07 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: 01 07 00 BD 10 00 00 00 00 00 DA 0C BA [15:59:08]RasterBufferAndPrint [15:59:08]line [15:59:08]line [15:59:08]line [15:59:08]line [15:59:08]line [15:59:08]written 0, free lines is 3296 [15:59:08]MH_Cut [15:59:08]Write to MH i2c: D1 01 00 C4 10 01 A6 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: D1 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: D1 01 00 [15:59:08]MH_I2C_Read... [15:59:08]Read from MH i2c: D1 01 00 C4 10 00 A5 [15:59:08]Write to MH i2c: 01 00 00 C5 10 D5 [15:59:08]Write i2c OK [15:59:08]MH_I2C_Read... [15:59:08]OFD Sender: No OFD packet to send [15:59:08]*** Cut start [15:59:08]*** Purtial cut [15:59:08]*** Stage 1: CUTSNS_PIN = 1 [15:59:09]Read from MH i2c: 01 [15:59:09]MH_I2C_Read... [15:59:09]*** Stop cut motor [15:59:09]*** Cut end [15:59:09]Read from MH i2c: 01 07 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: 01 07 00 C5 10 00 00 00 00 00 FF 0F EA [15:59:09]process_action close_receipt done [15:59:09]requested_data is exist [15:59:09]produce_requested_data [15:59:09]requested_item fm.sn is exist - process it [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 11 00 00 [15:59:09]Write to MH i2c: E2 08 00 C6 10 80 11 00 00 00 00 00 00 50 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 17 00 [15:59:09]MH_I2C_Read... [15:59:09]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 34 38 39 39 90 00 B0 [15:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [15:59:09]wFMCommunicate OK [15:59:09]requested_item fd.num is exist - process it [15:59:09]SAM_PROTO_GetFieldsCounters [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 13 00 00 [15:59:09]Write to MH i2c: E2 08 00 C7 10 80 13 00 00 00 00 00 00 53 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 62 00 [15:59:09]MH_I2C_Read... [15:59:09]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [15:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:09]wFMCommunicate OK [15:59:09]SAM_PROTO_GetFieldsCounters done [15:59:09]requested_item shift.num is exist - process it [15:59:09]requested_item shift.opened is exist - process it [15:59:09]req_shift_opened [15:59:09]FM_GetShiftState [15:59:09]SAM_PROTO_GetShiftState [15:59:09]wFMCommunicate request_size=4 [15:59:09]MH_SAM_APDU [15:59:09]CAPDU: 80 13 01 00 [15:59:09]Write to MH i2c: E2 08 00 C8 10 80 13 01 00 00 00 00 00 55 [15:59:09]Write i2c OK [15:59:09]MH_I2C_Read... [15:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:09]Read from MH i2c: E2 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 0E 00 [15:59:09]MH_I2C_Read... [15:59:09]Read from MH i2c: E2 0E 00 C8 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4F [15:59:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [15:59:09]wFMCommunicate OK [15:59:09]SAM_PROTO_GetShiftState done [15:59:09]FM_GetShiftState done [15:59:09]req_shift_opened done [15:59:09]requested_item shift.open_date is exist - process it [15:59:09]req_shift_open_date [15:59:09]req_shift_open_date done [15:59:09]produce_requested_data done [15:59:09]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162574,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [15:59:09]process_action_free close_receipt [15:59:09]json_value_free [15:59:09]json_value_free done [15:59:09]process_json_proto returns [15:59:09]Send response to host [15:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162574,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [15:59:09]free response buf [15:59:09]execute_script done [15:59:09]execute_script returns [15:59:09]free content buf [15:59:09]Sock 9.Close socket [15:59:09]Sock 9.Thread stoped [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:08]OFD Sender: No OFD packet to send [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:41]accept exits with 7 [16:02:41]New connection [16:02:41]New thread 3067510116 created [16:02:41]Thread 3067366756 joined [16:02:41]Waiting for new connection... [16:02:41] Sock 7.Parse request [16:02:41]Sock 7.Check first char [16:02:41]Sock 7.First char is OK [16:02:41]request: POST /json_proto HTTP/1.0 [16:02:41]Method: POST [16:02:41]URL: /json_proto [16:02:41]Method is POST - this is cgi request [16:02:41]url: /json_proto [16:02:41]query_string will be loaded in cgi processing [16:02:41]execute_cgi json_proto POST (null) [16:02:41]execute_cgi path=json_proto method=POST [16:02:41]POST find Content-Length [16:02:41]Host: 172.17.39.67:8080 [16:02:41]Content-Length: 1209 [16:02:41]Content-Type: application/json [16:02:41] [16:02:41]POST finish read [16:02:41]Found Content-Length = 1209 [16:02:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319136\u000A13.07.2024 16:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3606395\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:41]execute_script... [16:02:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319136\u000A13.07.2024 16:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3606395\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:02:41]POST & json_proto [16:02:41]process_json_proto [16:02:41]json parsed OK: [16:02:41]protocol is kg_v1.0 [16:02:41]action value=print_text [16:02:41]process_action print_text [16:02:41]cmd_print_text [16:02:41]ExternCall_PrintAddStr [16:02:41]wPrintStart [16:02:41]Write to MH i2c: 01 00 00 C9 10 D9 [16:02:41]Write i2c OK [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 07 00 [16:02:41]MH_I2C_Read... [16:02:41]Read from MH i2c: 01 07 00 C9 10 00 00 00 00 00 FF 0F EE [16:02:41]RasterBufferAndPrint [16:02:41]line *****ТОВАРНЫЙ ЧЕК***** [16:02:41]line АЗС 140 [16:02:41]line Партнер нефть [16:02:41]line 02508201610067 [16:02:41]line Кассир : Шамбеталиев А. [16:02:41]line Счет N : (1)1319136 [16:02:41]line 13.07.2024 16:00 [16:02:41]line ПРОДАЖА [16:02:41]line ТРК (МРК, ГНК): 21 [16:02:41]line Вид ГСМ : 2710194210 [16:02:41]line ДТ(л)-К-5 [16:02:41]line 100.000 x 72.60 [16:02:41]line ИТОГ: 7260.00 [16:02:41]line Тип оплаты: Талоны: Партнер нефть [16:02:41]line 3606395 [16:02:41]line ______________________ [16:02:41]line (подпись) [16:02:41]written 0, free lines is 4095 [16:02:42]Write to MH i2c: 01 00 00 DE 10 EE [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 07 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: 01 07 00 DE 10 00 00 00 00 00 F5 0D F7 [16:02:42]RasterBufferAndPrint [16:02:42]line [16:02:42]line [16:02:42]line [16:02:42]line [16:02:42]line [16:02:42]written 0, free lines is 3575 [16:02:42]MH_Cut [16:02:42]Write to MH i2c: D1 01 00 E5 10 01 C7 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: D1 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: D1 01 00 [16:02:42]MH_I2C_Read... [16:02:42]Read from MH i2c: D1 01 00 E5 10 00 C6 [16:02:42]Write to MH i2c: 01 00 00 E6 10 F6 [16:02:42]Write i2c OK [16:02:42]MH_I2C_Read... [16:02:42]*** Cut start [16:02:42]*** Purtial cut [16:02:42]*** CUTSNS_PIN = 0 [16:02:42]*** Stage 1: CUTSNS_PIN = 1 [16:02:43]OFD Sender: No OFD packet to send [16:02:44]Read from MH i2c: 01 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: 01 07 00 [16:02:44]MH_I2C_Read... [16:02:44]*** Stop cut motor [16:02:44]*** Cut end [16:02:44]Read from MH i2c: 01 07 00 E6 10 00 00 00 00 00 FF 0F 0B [16:02:44]process_action print_text done [16:02:44]requested_data is exist [16:02:44]produce_requested_data [16:02:44]requested_item fm.sn is exist - process it [16:02:44]wFMCommunicate request_size=4 [16:02:44]MH_SAM_APDU [16:02:44]CAPDU: 80 11 00 00 [16:02:44]Write to MH i2c: E2 08 00 E7 10 80 11 00 00 00 00 00 00 71 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:44]Read from MH i2c: E2 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 17 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 17 00 E7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [16:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:02:44]wFMCommunicate OK [16:02:44]requested_item fd.num is exist - process it [16:02:44]SAM_PROTO_GetFieldsCounters [16:02:44]wFMCommunicate request_size=4 [16:02:44]MH_SAM_APDU [16:02:44]CAPDU: 80 13 00 00 [16:02:44]Write to MH i2c: E2 08 00 E8 10 80 13 00 00 00 00 00 00 74 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:44]Read from MH i2c: E2 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 62 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 62 00 E8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [16:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:44]wFMCommunicate OK [16:02:44]SAM_PROTO_GetFieldsCounters done [16:02:44]requested_item shift.num is exist - process it [16:02:44]requested_item shift.opened is exist - process it [16:02:44]req_shift_opened [16:02:44]FM_GetShiftState [16:02:44]SAM_PROTO_GetShiftState [16:02:44]wFMCommunicate request_size=4 [16:02:44]MH_SAM_APDU [16:02:44]CAPDU: 80 13 01 00 [16:02:44]Write to MH i2c: E2 08 00 E9 10 80 13 01 00 00 00 00 00 76 [16:02:44]Write i2c OK [16:02:44]MH_I2C_Read... [16:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:44]Read from MH i2c: E2 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 0E 00 [16:02:44]MH_I2C_Read... [16:02:44]Read from MH i2c: E2 0E 00 E9 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 70 [16:02:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:02:44]wFMCommunicate OK [16:02:44]SAM_PROTO_GetShiftState done [16:02:44]FM_GetShiftState done [16:02:44]req_shift_opened done [16:02:44]requested_item shift.open_date is exist - process it [16:02:44]req_shift_open_date [16:02:44]req_shift_open_date done [16:02:44]produce_requested_data done [16:02:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162574,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:02:44]process_action_free print_text [16:02:44]json_value_free [16:02:44]json_value_free done [16:02:44]process_json_proto returns [16:02:44]Send response to host [16:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162574,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:02:44]free response buf [16:02:44]execute_script done [16:02:44]execute_script returns [16:02:44]free content buf [16:02:44]Sock 7.Close socket [16:02:44]Sock 7.Thread stoped [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:48]OFD Sender: No OFD packet to send [16:03:53]OFD Sender: No OFD packet to send [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:37]accept exits with 9 [16:04:37]New connection [16:04:37]New thread 3067366756 created [16:04:37]Thread 3067510116 joined [16:04:37]Waiting for new connection... [16:04:37] Sock 9.Parse request [16:04:37]Sock 9.Check first char [16:04:37]Sock 9.First char is OK [16:04:37]request: POST /json_proto HTTP/1.0 [16:04:37]Method: POST [16:04:37]URL: /json_proto [16:04:37]Method is POST - this is cgi request [16:04:37]url: /json_proto [16:04:37]query_string will be loaded in cgi processing [16:04:37]execute_cgi json_proto POST (null) [16:04:37]execute_cgi path=json_proto method=POST [16:04:37]POST find Content-Length [16:04:37]Host: 172.17.39.67:8080 [16:04:37]Content-Length: 683 [16:04:37]Content-Type: application/json [16:04:37] [16:04:37]POST finish read [16:04:37]Found Content-Length = 683 [16:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:04:37]execute_script... [16:04: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)1319138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:04:37]POST & json_proto [16:04:37]process_json_proto [16:04:37]json parsed OK: [16:04:37]protocol is kg_v1.0 [16:04:37]action value=close_receipt [16:04:37]process_action close_receipt [16:04:37]cmd_close_receipt [16:04:37]MH_GetDate [16:04:37]Write to MH i2c: F0 00 00 EA 10 E9 [16:04:37]Write i2c OK [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: F0 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: F0 09 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: F0 09 00 EA 10 00 96 A5 92 66 86 7C 92 66 1F [16:04:37]GetLastDocTimeStamp 1720886346 [16:04:37]current date 1720886678 [16:04:37]FM_GetShiftState [16:04:37]SAM_PROTO_GetShiftState [16:04:37]wFMCommunicate request_size=4 [16:04:37]MH_SAM_APDU [16:04:37]CAPDU: 80 13 01 00 [16:04:37]Write to MH i2c: E2 08 00 EB 10 80 13 01 00 00 00 00 00 78 [16:04:37]Write i2c OK [16:04:37]MH_I2C_Read... [16:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:37]Read from MH i2c: E2 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 0E 00 [16:04:37]MH_I2C_Read... [16:04:37]Read from MH i2c: E2 0E 00 EB 10 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 72 [16:04:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:04:37]wFMCommunicate OK [16:04:37]SAM_PROTO_GetShiftState done [16:04:37]FM_GetShiftState done [16:04:37]opened in 1720828979 [16:04:37]opened+sec_in_day 1720915379 [16:04:37]quantity*price = 20037 [16:04:37]sum+1 = 20039 [16:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 243 13.07.2024 16:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162575 ФПД: 233450302046496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160438&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162575&fm=233450302046496&tin=02508201610067®Number=0000000000090858&sum=20000 [16:04:38]StoreToDocumentArchive [16:04:38]shift 462 fd 162575 [16:04:38]save to /storage/0462/doc_00162575 [16:04:38]save last doc name /storage/0462/doc_00162575 to /storage/kkm_last_doc_name [16:04:38]save OK [16:04:38]Clear old archive folders... [16:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:04:38]tlvbuf is 005F9F00 [16:04:38]SAM_PROTO_ClearQueue [16:04:38]wFMCommunicate request_size=4 [16:04:38]MH_SAM_APDU [16:04:38]CAPDU: 80 09 00 00 [16:04:38]Write to MH i2c: E2 08 00 F8 10 80 09 00 00 00 00 00 00 7A [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:38]Read from MH i2c: E2 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 F8 10 00 90 00 7C [16:04:38]RAPDU: 90 00 [16:04:38]wFMCommunicate OK [16:04:38]SAM_PROTO_ClearQueue done [16:04:38]KKMCreateOFDPacket [16:04:38]OFDProtocolAddRootSTLVToBuf [16:04:38]FM_MakeSignedData [16:04:38]FM_MakeSignedData [16:04:38]SAM_PROTO_SignData [16:04:38]wFMCommunicate request_size=4 [16:04:38]MH_SAM_APDU [16:04:38]CAPDU: 80 0D 01 02 [16:04:38]Write to MH i2c: E2 08 00 F9 10 80 0D 01 02 00 00 00 00 82 [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:38]OFD Sender: No OFD packet to send [16:04:38]Read from MH i2c: E2 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 [16:04:38]MH_I2C_Read... [16:04:38]Read from MH i2c: E2 03 00 F9 10 00 90 00 7D [16:04:38]RAPDU: 90 00 [16:04:38]wFMCommunicate OK [16:04:38]wFMCommunicate request_size=255 [16:04:38]MH_SAM_APDU [16:04:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F3 00 00 00 F4 03 04 00 96 A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7B 02 00 35 04 06 00 [16:04:38]Write to MH i2c: E2 02 01 FA 10 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F3 00 00 00 F4 03 04 00 96 A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7B 02 00 35 04 06 00 00 00 1D [16:04:38]Write i2c OK [16:04:38]MH_I2C_Read... [16:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:39]Read from MH i2c: E2 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 03 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 03 00 FA 10 00 90 00 7E [16:04:39]RAPDU: 90 00 [16:04:39]wFMCommunicate OK [16:04:39]wFMCommunicate request_size=11 [16:04:39]MH_SAM_APDU [16:04:39]CAPDU: 80 0D 02 02 06 D4 52 62 53 81 20 [16:04:39]Write to MH i2c: E2 0E 00 FB 10 80 0D 02 02 06 00 D4 52 62 53 81 20 00 00 0D [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:39]Read from MH i2c: E2 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 03 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 03 00 FB 10 00 90 00 7F [16:04:39]RAPDU: 90 00 [16:04:39]wFMCommunicate OK [16:04:39]wFMCommunicate request_size=4 [16:04:39]MH_SAM_APDU [16:04:39]CAPDU: 80 0D 03 02 [16:04:39]Write to MH i2c: E2 08 00 FC 10 80 0D 03 02 00 00 00 00 87 [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:39]Read from MH i2c: E2 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 0B 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 0B 00 FC 10 00 4D 42 85 C5 3C 1C E4 D1 90 00 6E [16:04:39]RAPDU: 4D 42 85 C5 3C 1C E4 D1 90 00 [16:04:39]wFMCommunicate OK [16:04:39]SAM_PROTO_SignData done [16:04:39]FM_MakeSignedData done [16:04:39]CreateOFDProtocolMessage [16:04:39]wFMCommunicate request_size=4 [16:04:39]MH_SAM_APDU [16:04:39]CAPDU: 80 11 00 00 [16:04:39]Write to MH i2c: E2 08 00 FD 10 80 11 00 00 00 00 00 00 87 [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:39]Read from MH i2c: E2 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 17 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: E2 17 00 FD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E7 [16:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:04:39]wFMCommunicate OK [16:04:39]CreateOFDProtocolMessage done [16:04:39]OFDSenderStorePacket 162575 [16:04:39]StoreOFDPacket docnum=162575 [16:04:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D1 45 08 01 B2 DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F3 00 00 00 F4 03 04 00 96 A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7B 02 00 35 04 06 00 D4 52 62 53 81 20 4D 42 85 C5 3C 1C E4 D1 [16:04:39]CheckFolder [16:04:39]dirname=/storage/ofd_packets [16:04:39]CheckFolder done [16:04:39]ProducePacketName [16:04:39]name=ofd_packets/00162575 [16:04:39]NVStorageSaveData ofd_packets/00162575 [16:04:39]File name is /storage/ofd_packets/00162575 [16:04:39]Write 302 bytes [16:04:39]NVStorageSaveData done [16:04:39]OFDSenderStorePacket done [16:04:39]KKMCreateOFDPacket done [16:04:39]NVStorageSaveData kkm_last_timestamp [16:04:39]File name is /storage/kkm_last_timestamp [16:04:39]Write 4 bytes [16:04:39]NVStorageSaveData done [16:04:39]ExternCall_PrintAddStr [16:04:39]wPrintStart [16:04:39]Write to MH i2c: 01 00 00 FE 10 0E [16:04:39]Write i2c OK [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: 01 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: 01 07 00 [16:04:39]MH_I2C_Read... [16:04:39]Read from MH i2c: 01 07 00 FE 10 00 00 00 00 00 FF 0F 23 [16:04:39]RasterBufferAndPrint [16:04:39]line Счет N : (1)1319138 [16:04:39]line ИНН: 02508201610067 [16:04:39]line Контрольно-Кассовый Чек [16:04:39]line ПРОДАЖА [16:04:39]line ТРК (МРК, ГНК) : 41 [16:04:39]line Товар: 2710194210 [16:04:39]line ДТ(л)-К-5 [16:04:39]line 2.760 * 72.60 [16:04:39]line = 200.38 [16:04:39]line НДС 12% НСП 1% [16:04:39]line > о реализуемом товаре [16:04:39]line ОКРУГЛЕНИЕ: -0.38 [16:04:39]line ИТОГО: 200.00 [16:04:39]line Внесено: 200.00 [16:04:39]line СДАЧА: 0.00 [16:04:39]line НСП 1% : 1.77 [16:04:39]line НДС 12% : 21.28 [16:04:39]line Наличными: 200.00 [16:04:39]line Безнал.: 0.00 [16:04:39]line Место: АЗС № 140 "Партнер Нефть" [16:04:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:04:39]line СНО: Общий режим [16:04:39]line Чек 243 13.07.2024 16:04 [16:04:39]line Смена: 462 ФФД: 1.0 [16:04:39]line ЗНМ: 0300000129 [16:04:39]line РНМ: 0000000000090858 [16:04:39]line Версия ККМ: 001 [16:04:39]line ФМ: 0000000000874899 [16:04:39]line ФД: 162575 [16:04:39]line ФПД: 233450302046496 [16:04:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160438&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162575&fm=233450302046496&tin=02508201610067®Number=0000000000090858&sum=20000 [16:04:39]OFD Sender: Processing packet 162575 [packets to send 106, broken 105] [16:04:39]ProducePacketName [16:04:39]name=ofd_packets/00162575 [16:04:39]OFD Sender: To server: pG, [16:04:39]CommunicateWithHost lk.salyk.kg:30040 [16:04:39]ConnectInit lk.salyk.kg [16:04:39]written 0, free lines is 4095 [16:04:39]Connected sock=10 [16:04:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D1 45 08 01 B2 DB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F3 00 00 00 F4 03 04 00 96 A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7B 02 00 35 04 06 00 D4 52 62 53 81 20 4D 42 85 C5 3C 1C E4 D1 [16:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 90 60 47 00 02 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 0F 7B 02 00 F4 03 04 00 A5 51 92 66 B6 04 01 00 00 E6 7F AF C4 61 62 3D E9 [16:04:39]CommunicateWithHost err = 0 [16:04:39]CheckOFDResponse [16:04:39]1017 (14) - 77093643461234 [16:04:39]1041 (16) - 0000000000874899 [16:04:39]1040 (4) - 162575 [16:04:39]1012 (4) - 13.07.2024 10:06 [16:04:39]1206 (1) - 0 [16:04:39]OFD Sender: Remove packet 162575 [16:04:39]ProducePacketName [16:04:39]name=ofd_packets/00162575 [16:04:39]NVStorageDeleteData [16:04:40]Write to MH i2c: 01 00 00 29 11 3A [16:04:40]Write i2c OK [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: 01 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: 01 07 00 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: 01 07 00 29 11 00 00 00 00 00 D7 0C 24 [16:04:40]RasterBufferAndPrint [16:04:40]line [16:04:40]line [16:04:40]line [16:04:40]line [16:04:40]line [16:04:40]written 0, free lines is 3295 [16:04:40]MH_Cut [16:04:40]Write to MH i2c: D1 01 00 30 11 01 13 [16:04:40]Write i2c OK [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: D1 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: D1 01 00 [16:04:40]MH_I2C_Read... [16:04:40]Read from MH i2c: D1 01 00 30 11 00 12 [16:04:40]Write to MH i2c: 01 00 00 31 11 42 [16:04:40]Write i2c OK [16:04:40]MH_I2C_Read... [16:04:40]OFD Sender: No OFD packet to send [16:04:40]*** Cut start [16:04:40]*** Purtial cut [16:04:40]*** Stage 1: CUTSNS_PIN = 1 [16:04:41]Read from MH i2c: 01 [16:04:41]MH_I2C_Read... [16:04:41]*** Stop cut motor [16:04:41]*** Cut end [16:04:41]Read from MH i2c: 01 07 00 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: 01 07 00 31 11 00 00 00 00 00 FF 0F 57 [16:04:41]process_action close_receipt done [16:04:41]requested_data is exist [16:04:41]produce_requested_data [16:04:41]requested_item fm.sn is exist - process it [16:04:41]wFMCommunicate request_size=4 [16:04:41]MH_SAM_APDU [16:04:41]CAPDU: 80 11 00 00 [16:04:41]Write to MH i2c: E2 08 00 32 11 80 11 00 00 00 00 00 00 BD [16:04:41]Write i2c OK [16:04:41]MH_I2C_Read... [16:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:41]Read from MH i2c: E2 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: E2 17 00 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: E2 17 00 32 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1D [16:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:04:41]wFMCommunicate OK [16:04:41]requested_item fd.num is exist - process it [16:04:41]SAM_PROTO_GetFieldsCounters [16:04:41]wFMCommunicate request_size=4 [16:04:41]MH_SAM_APDU [16:04:41]CAPDU: 80 13 00 00 [16:04:41]Write to MH i2c: E2 08 00 33 11 80 13 00 00 00 00 00 00 C0 [16:04:41]Write i2c OK [16:04:41]MH_I2C_Read... [16:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:41]Read from MH i2c: E2 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: E2 62 00 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: E2 62 00 33 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [16:04:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 0F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:41]wFMCommunicate OK [16:04:41]SAM_PROTO_GetFieldsCounters done [16:04:41]requested_item shift.num is exist - process it [16:04:41]requested_item shift.opened is exist - process it [16:04:41]req_shift_opened [16:04:41]FM_GetShiftState [16:04:41]SAM_PROTO_GetShiftState [16:04:41]wFMCommunicate request_size=4 [16:04:41]MH_SAM_APDU [16:04:41]CAPDU: 80 13 01 00 [16:04:41]Write to MH i2c: E2 08 00 34 11 80 13 01 00 00 00 00 00 C2 [16:04:41]Write i2c OK [16:04:41]MH_I2C_Read... [16:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:41]Read from MH i2c: E2 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: E2 0E 00 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: E2 0E 00 34 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BC [16:04:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:04:41]wFMCommunicate OK [16:04:41]SAM_PROTO_GetShiftState done [16:04:41]FM_GetShiftState done [16:04:41]req_shift_opened done [16:04:41]requested_item shift.open_date is exist - process it [16:04:41]req_shift_open_date [16:04:41]req_shift_open_date done [16:04:41]produce_requested_data done [16:04:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162575,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:04:41]process_action_free close_receipt [16:04:41]json_value_free [16:04:41]json_value_free done [16:04:41]process_json_proto returns [16:04:41]Send response to host [16:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162575,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:04:41]free response buf [16:04:41]execute_script done [16:04:41]execute_script returns [16:04:41]free content buf [16:04:41]Sock 9.Close socket [16:04:41]Sock 9.Thread stoped [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:02]accept exits with 7 [16:05:02]New connection [16:05:02]New thread 3067510116 created [16:05:02]Thread 3067366756 joined [16:05:02]Waiting for new connection... [16:05:02] Sock 7.Parse request [16:05:02]Sock 7.Check first char [16:05:02]Sock 7.First char is OK [16:05:02]request: POST /json_proto HTTP/1.0 [16:05:02]Method: POST [16:05:02]URL: /json_proto [16:05:02]Method is POST - this is cgi request [16:05:02]url: /json_proto [16:05:02]query_string will be loaded in cgi processing [16:05:02]execute_cgi json_proto POST (null) [16:05:02]execute_cgi path=json_proto method=POST [16:05:02]POST find Content-Length [16:05:02]Host: 172.17.39.67:8080 [16:05:02]Content-Length: 672 [16:05:02]Content-Type: application/json [16:05:02] [16:05:02]POST finish read [16:05:02]Found Content-Length = 672 [16:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "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" ] } } [16:05:02]execute_script... [16:05: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)1319139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "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" ] } } [16:05:02]POST & json_proto [16:05:02]process_json_proto [16:05:02]json parsed OK: [16:05:02]protocol is kg_v1.0 [16:05:02]action value=close_receipt [16:05:02]process_action close_receipt [16:05:02]cmd_close_receipt [16:05:02]MH_GetDate [16:05:02]Write to MH i2c: F0 00 00 35 11 35 [16:05:02]Write i2c OK [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: F0 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: F0 09 00 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: F0 09 00 35 11 00 AF A5 92 66 86 7C 92 66 84 [16:05:02]GetLastDocTimeStamp 1720886678 [16:05:02]current date 1720886703 [16:05:02]FM_GetShiftState [16:05:02]SAM_PROTO_GetShiftState [16:05:02]wFMCommunicate request_size=4 [16:05:02]MH_SAM_APDU [16:05:02]CAPDU: 80 13 01 00 [16:05:02]Write to MH i2c: E2 08 00 36 11 80 13 01 00 00 00 00 00 C4 [16:05:02]Write i2c OK [16:05:02]MH_I2C_Read... [16:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:02]Read from MH i2c: E2 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: E2 0E 00 [16:05:02]MH_I2C_Read... [16:05:02]Read from MH i2c: E2 0E 00 36 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BE [16:05:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:05:02]wFMCommunicate OK [16:05:02]SAM_PROTO_GetShiftState done [16:05:02]FM_GetShiftState done [16:05:02]opened in 1720828979 [16:05:02]opened+sec_in_day 1720915379 [16:05:02]quantity*price = 70059 [16:05:02]sum+1 = 70060 [16:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 244 13.07.2024 16:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162576 ФПД: 151494995673544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160503&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162576&fm=151494995673544&tin=02508201610067®Number=0000000000090858&sum=70000 [16:05:03]StoreToDocumentArchive [16:05:03]shift 462 fd 162576 [16:05:03]save to /storage/0462/doc_00162576 [16:05:03]save last doc name /storage/0462/doc_00162576 to /storage/kkm_last_doc_name [16:05:03]save OK [16:05:03]Clear old archive folders... [16:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:05:03]tlvbuf is 006D8140 [16:05:03]SAM_PROTO_ClearQueue [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 09 00 00 [16:05:03]Write to MH i2c: E2 08 00 43 11 80 09 00 00 00 00 00 00 C6 [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:03]Read from MH i2c: E2 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 [16:05:03]MH_I2C_Read... [16:05:03]Read from MH i2c: E2 03 00 43 11 00 90 00 C8 [16:05:03]RAPDU: 90 00 [16:05:03]wFMCommunicate OK [16:05:03]SAM_PROTO_ClearQueue done [16:05:03]KKMCreateOFDPacket [16:05:03]OFDProtocolAddRootSTLVToBuf [16:05:03]FM_MakeSignedData [16:05:03]FM_MakeSignedData [16:05:03]SAM_PROTO_SignData [16:05:03]wFMCommunicate request_size=4 [16:05:03]MH_SAM_APDU [16:05:03]CAPDU: 80 0D 01 02 [16:05:03]Write to MH i2c: E2 08 00 44 11 80 0D 01 02 00 00 00 00 CE [16:05:03]Write i2c OK [16:05:03]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 44 11 00 90 00 C9 [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]wFMCommunicate request_size=255 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 F4 00 00 00 F4 03 04 00 AF A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7B 02 00 35 04 06 00 [16:05:04]Write to MH i2c: E2 02 01 45 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 F4 00 00 00 F4 03 04 00 AF A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7B 02 00 35 04 06 00 00 00 42 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 45 11 00 90 00 CA [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]wFMCommunicate request_size=11 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 0D 02 02 06 89 C8 AD 67 01 C8 [16:05:04]Write to MH i2c: E2 0E 00 46 11 80 0D 02 02 06 00 89 C8 AD 67 01 C8 00 00 0B [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 03 00 46 11 00 90 00 CB [16:05:04]RAPDU: 90 00 [16:05:04]wFMCommunicate OK [16:05:04]wFMCommunicate request_size=4 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 0D 03 02 [16:05:04]Write to MH i2c: E2 08 00 47 11 80 0D 03 02 00 00 00 00 D3 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 0B 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 0B 00 47 11 00 D3 05 C9 FA 48 73 A0 3F 90 00 09 [16:05:04]RAPDU: D3 05 C9 FA 48 73 A0 3F 90 00 [16:05:04]wFMCommunicate OK [16:05:04]SAM_PROTO_SignData done [16:05:04]FM_MakeSignedData done [16:05:04]CreateOFDProtocolMessage [16:05:04]wFMCommunicate request_size=4 [16:05:04]MH_SAM_APDU [16:05:04]CAPDU: 80 11 00 00 [16:05:04]Write to MH i2c: E2 08 00 48 11 80 11 00 00 00 00 00 00 D3 [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:04]Read from MH i2c: E2 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 17 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: E2 17 00 48 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 33 [16:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:05:04]wFMCommunicate OK [16:05:04]CreateOFDProtocolMessage done [16:05:04]OFDSenderStorePacket 162576 [16:05:04]StoreOFDPacket docnum=162576 [16:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8A 3C 08 01 BB 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 F4 00 00 00 F4 03 04 00 AF A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7B 02 00 35 04 06 00 89 C8 AD 67 01 C8 D3 05 C9 FA 48 73 A0 3F [16:05:04]CheckFolder [16:05:04]dirname=/storage/ofd_packets [16:05:04]CheckFolder done [16:05:04]ProducePacketName [16:05:04]name=ofd_packets/00162576 [16:05:04]NVStorageSaveData ofd_packets/00162576 [16:05:04]File name is /storage/ofd_packets/00162576 [16:05:04]Write 302 bytes [16:05:04]NVStorageSaveData done [16:05:04]OFDSenderStorePacket done [16:05:04]KKMCreateOFDPacket done [16:05:04]NVStorageSaveData kkm_last_timestamp [16:05:04]File name is /storage/kkm_last_timestamp [16:05:04]Write 4 bytes [16:05:04]NVStorageSaveData done [16:05:04]ExternCall_PrintAddStr [16:05:04]wPrintStart [16:05:04]Write to MH i2c: 01 00 00 49 11 5A [16:05:04]Write i2c OK [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: 01 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: 01 07 00 [16:05:04]MH_I2C_Read... [16:05:04]Read from MH i2c: 01 07 00 49 11 00 00 00 00 00 FF 0F 6F [16:05:04]RasterBufferAndPrint [16:05:04]line Счет N : (1)1319139 [16:05:04]line ИНН: 02508201610067 [16:05:04]line Контрольно-Кассовый Чек [16:05:04]line ПРОДАЖА [16:05:04]line ТРК (МРК, ГНК) : 52 [16:05:04]line Товар: 2710124130 [16:05:04]line Super-92-К-5 [16:05:04]line 10.410 * 67.30 [16:05:04]line = 700.59 [16:05:04]line НДС 12% НСП 1% [16:05:04]line > о реализуемом товаре [16:05:04]line ОКРУГЛЕНИЕ: -0.59 [16:05:04]line ИТОГО: 700.00 [16:05:04]line Внесено: 700.00 [16:05:04]line СДАЧА: 0.00 [16:05:04]line НСП 1% : 6.20 [16:05:04]line НДС 12% : 74.40 [16:05:04]line Наличными: 700.00 [16:05:04]line Безнал.: 0.00 [16:05:04]line Место: АЗС № 140 "Партнер Нефть" [16:05:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:05:04]line СНО: Общий режим [16:05:04]line Чек 244 13.07.2024 16:05 [16:05:04]line Смена: 462 ФФД: 1.0 [16:05:04]line ЗНМ: 0300000129 [16:05:04]line РНМ: 0000000000090858 [16:05:04]line Версия ККМ: 001 [16:05:04]line ФМ: 0000000000874899 [16:05:04]line ФД: 162576 [16:05:04]line ФПД: 151494995673544 [16:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160503&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162576&fm=151494995673544&tin=02508201610067®Number=0000000000090858&sum=70000 [16:05:04]OFD Sender: Processing packet 162576 [packets to send 106, broken 105] [16:05:04]ProducePacketName [16:05:04]name=ofd_packets/00162576 [16:05:04]OFD Sender: To server: pG, [16:05:04]CommunicateWithHost lk.salyk.kg:30040 [16:05:04]ConnectInit lk.salyk.kg [16:05:04]written 0, free lines is 4095 [16:05:04]Connected sock=9 [16:05:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8A 3C 08 01 BB 39 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 F4 00 00 00 F4 03 04 00 AF A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7B 02 00 35 04 06 00 89 C8 AD 67 01 C8 D3 05 C9 FA 48 73 A0 3F [16:05:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 87 72 47 00 7E 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 10 7B 02 00 F4 03 04 00 BE 51 92 66 B6 04 01 00 00 82 9D 31 EE 68 C2 8E 7D [16:05:05]CommunicateWithHost err = 0 [16:05:05]CheckOFDResponse [16:05:05]1017 (14) - 77093643461234 [16:05:05]1041 (16) - 0000000000874899 [16:05:05]1040 (4) - 162576 [16:05:05]1012 (4) - 13.07.2024 10:06 [16:05:05]1206 (1) - 0 [16:05:05]OFD Sender: Remove packet 162576 [16:05:05]ProducePacketName [16:05:05]name=ofd_packets/00162576 [16:05:05]NVStorageDeleteData [16:05:05]Write to MH i2c: 01 00 00 74 11 85 [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: 01 07 00 74 11 00 00 00 00 00 D7 0C 6F [16:05:05]RasterBufferAndPrint [16:05:05]line [16:05:05]line [16:05:05]line [16:05:05]line [16:05:05]line [16:05:05]written 0, free lines is 3296 [16:05:05]MH_Cut [16:05:05]Write to MH i2c: D1 01 00 7B 11 01 5E [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: D1 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: D1 01 00 [16:05:05]MH_I2C_Read... [16:05:05]Read from MH i2c: D1 01 00 7B 11 00 5D [16:05:05]Write to MH i2c: 01 00 00 7C 11 8D [16:05:05]Write i2c OK [16:05:05]MH_I2C_Read... [16:05:05]OFD Sender: No OFD packet to send [16:05:05]*** Cut start [16:05:05]*** Purtial cut [16:05:05]*** CUTSNS_PIN = 0 [16:05:06]*** Stage 1: CUTSNS_PIN = 1 [16:05:08]Read from MH i2c: 01 [16:05:08]MH_I2C_Read... [16:05:08]*** Stop cut motor [16:05:08]*** Cut end [16:05:08]Read from MH i2c: 01 07 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: 01 07 00 7C 11 00 00 00 00 00 FF 0F A2 [16:05:08]process_action close_receipt done [16:05:08]requested_data is exist [16:05:08]produce_requested_data [16:05:08]requested_item fm.sn is exist - process it [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 11 00 00 [16:05:08]Write to MH i2c: E2 08 00 7D 11 80 11 00 00 00 00 00 00 08 [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 17 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 17 00 7D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 68 [16:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:05:08]wFMCommunicate OK [16:05:08]requested_item fd.num is exist - process it [16:05:08]SAM_PROTO_GetFieldsCounters [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 13 00 00 [16:05:08]Write to MH i2c: E2 08 00 7E 11 80 13 00 00 00 00 00 00 0B [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 62 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 62 00 7E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 10 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [16:05:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 10 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:08]wFMCommunicate OK [16:05:08]SAM_PROTO_GetFieldsCounters done [16:05:08]requested_item shift.num is exist - process it [16:05:08]requested_item shift.opened is exist - process it [16:05:08]req_shift_opened [16:05:08]FM_GetShiftState [16:05:08]SAM_PROTO_GetShiftState [16:05:08]wFMCommunicate request_size=4 [16:05:08]MH_SAM_APDU [16:05:08]CAPDU: 80 13 01 00 [16:05:08]Write to MH i2c: E2 08 00 7F 11 80 13 01 00 00 00 00 00 0D [16:05:08]Write i2c OK [16:05:08]MH_I2C_Read... [16:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:08]Read from MH i2c: E2 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 0E 00 [16:05:08]MH_I2C_Read... [16:05:08]Read from MH i2c: E2 0E 00 7F 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 07 [16:05:08]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:05:08]wFMCommunicate OK [16:05:08]SAM_PROTO_GetShiftState done [16:05:08]FM_GetShiftState done [16:05:08]req_shift_opened done [16:05:08]requested_item shift.open_date is exist - process it [16:05:08]req_shift_open_date [16:05:08]req_shift_open_date done [16:05:08]produce_requested_data done [16:05:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162576,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:05:08]process_action_free close_receipt [16:05:08]json_value_free [16:05:08]json_value_free done [16:05:08]process_json_proto returns [16:05:08]Send response to host [16:05:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162576,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:05:08]free response buf [16:05:08]execute_script done [16:05:08]execute_script returns [16:05:08]free content buf [16:05:08]Sock 7.Close socket [16:05:08]Sock 7.Thread stoped [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:24]accept exits with 10 [16:05:24]New connection [16:05:24]New thread 3067366756 created [16:05:24]Thread 3067510116 joined [16:05:24]Waiting for new connection... [16:05:24] Sock 10.Parse request [16:05:24]Sock 10.Check first char [16:05:24]Sock 10.First char is OK [16:05:24]request: POST /json_proto HTTP/1.0 [16:05:24]Method: POST [16:05:24]URL: /json_proto [16:05:24]Method is POST - this is cgi request [16:05:24]url: /json_proto [16:05:24]query_string will be loaded in cgi processing [16:05:24]execute_cgi json_proto POST (null) [16:05:24]execute_cgi path=json_proto method=POST [16:05:24]POST find Content-Length [16:05:24]Host: 172.17.39.67:8080 [16:05:24]Content-Length: 688 [16:05:24]Content-Type: application/json [16:05:24] [16:05:24]POST finish read [16:05:24]Found Content-Length = 688 [16:05:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 39.400, "sum" : 2860.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2860.00, "total" : 2860.00, "payments": [ { "type": 0, "sum" : 2860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:24]execute_script... [16: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)1319137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 39.400, "sum" : 2860.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2860.00, "total" : 2860.00, "payments": [ { "type": 0, "sum" : 2860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:24]POST & json_proto [16:05:24]process_json_proto [16:05:24]json parsed OK: [16:05:24]protocol is kg_v1.0 [16:05:24]action value=close_receipt [16:05:24]process_action close_receipt [16:05:24]cmd_close_receipt [16:05:24]MH_GetDate [16:05:24]Write to MH i2c: F0 00 00 80 11 80 [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: F0 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: F0 09 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: F0 09 00 80 11 00 C5 A5 92 66 86 7C 92 66 E5 [16:05:24]GetLastDocTimeStamp 1720886703 [16:05:24]current date 1720886725 [16:05:24]FM_GetShiftState [16:05:24]SAM_PROTO_GetShiftState [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 13 01 00 [16:05:24]Write to MH i2c: E2 08 00 81 11 80 13 01 00 00 00 00 00 0F [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 0E 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 0E 00 81 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 09 [16:05:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:05:24]wFMCommunicate OK [16:05:24]SAM_PROTO_GetShiftState done [16:05:24]FM_GetShiftState done [16:05:24]opened in 1720828979 [16:05:24]opened+sec_in_day 1720915379 [16:05:24]quantity*price = 286044 [16:05:24]sum+1 = 286045 [16:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 2860.00 Внесено: 2860.00 СДАЧА: 0.00 НСП 1% : 25.31 НДС 12% : 303.76 Наличными: 2860.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 245 13.07.2024 16:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162577 ФПД: 130213185032173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160525&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162577&fm=130213185032173&tin=02508201610067®Number=0000000000090858&sum=286000 [16:05:25]StoreToDocumentArchive [16:05:25]shift 462 fd 162577 [16:05:25]save to /storage/0462/doc_00162577 [16:05:25]save last doc name /storage/0462/doc_00162577 to /storage/kkm_last_doc_name [16:05:25]save OK [16:05:25]Clear old archive folders... [16:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:05:25]tlvbuf is 005F9FE0 [16:05:25]SAM_PROTO_ClearQueue [16:05:25]wFMCommunicate request_size=4 [16:05:25]MH_SAM_APDU [16:05:25]CAPDU: 80 09 00 00 [16:05:25]Write to MH i2c: E2 08 00 8E 11 80 09 00 00 00 00 00 00 11 [16:05:25]Write i2c OK [16:05:25]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 8E 11 00 90 00 13 [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]SAM_PROTO_ClearQueue done [16:05:26]KKMCreateOFDPacket [16:05:26]OFDProtocolAddRootSTLVToBuf [16:05:26]FM_MakeSignedData [16:05:26]FM_MakeSignedData [16:05:26]SAM_PROTO_SignData [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 01 02 [16:05:26]Write to MH i2c: E2 08 00 8F 11 80 0D 01 02 00 00 00 00 19 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 8F 11 00 90 00 14 [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]wFMCommunicate request_size=255 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E8 99 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 5C 5D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 76 00 00 00 00 07 04 06 00 30 5D 04 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 C5 A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7B 02 00 35 04 06 00 [16:05:26]Write to MH i2c: E2 02 01 90 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E8 99 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 5C 5D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 76 00 00 00 00 07 04 06 00 30 5D 04 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 C5 A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7B 02 00 35 04 06 00 00 00 06 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 90 11 00 90 00 15 [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]wFMCommunicate request_size=11 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 02 02 06 76 6D 9E A3 8F ED [16:05:26]Write to MH i2c: E2 0E 00 91 11 80 0D 02 02 06 00 76 6D 9E A3 8F ED 00 00 C8 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 03 00 91 11 00 90 00 16 [16:05:26]RAPDU: 90 00 [16:05:26]wFMCommunicate OK [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 0D 03 02 [16:05:26]Write to MH i2c: E2 08 00 92 11 80 0D 03 02 00 00 00 00 1E [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 0B 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 0B 00 92 11 00 D0 B0 19 E0 92 50 2D 63 90 00 0A [16:05:26]RAPDU: D0 B0 19 E0 92 50 2D 63 90 00 [16:05:26]wFMCommunicate OK [16:05:26]SAM_PROTO_SignData done [16:05:26]FM_MakeSignedData done [16:05:26]CreateOFDProtocolMessage [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 11 00 00 [16:05:26]Write to MH i2c: E2 08 00 93 11 80 11 00 00 00 00 00 00 1E [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 17 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 17 00 93 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7E [16:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:05:26]wFMCommunicate OK [16:05:26]CreateOFDProtocolMessage done [16:05:26]OFDSenderStorePacket 162577 [16:05:26]StoreOFDPacket docnum=162577 [16:05:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B9 96 08 01 45 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E8 99 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 5C 5D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 76 00 00 00 00 07 04 06 00 30 5D 04 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 C5 A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7B 02 00 35 04 06 00 76 6D 9E A3 8F ED D0 B0 19 E0 92 50 2D 63 [16:05:26]CheckFolder [16:05:26]dirname=/storage/ofd_packets [16:05:26]CheckFolder done [16:05:26]ProducePacketName [16:05:26]name=ofd_packets/00162577 [16:05:26]NVStorageSaveData ofd_packets/00162577 [16:05:26]File name is /storage/ofd_packets/00162577 [16:05:26]Write 302 bytes [16:05:26]NVStorageSaveData done [16:05:26]OFDSenderStorePacket done [16:05:26]KKMCreateOFDPacket done [16:05:26]NVStorageSaveData kkm_last_timestamp [16:05:26]File name is /storage/kkm_last_timestamp [16:05:26]Write 4 bytes [16:05:26]NVStorageSaveData done [16:05:26]ExternCall_PrintAddStr [16:05:26]wPrintStart [16:05:26]Write to MH i2c: 01 00 00 94 11 A5 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: 01 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: 01 07 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: 01 07 00 94 11 00 00 00 00 00 FF 0F BA [16:05:26]RasterBufferAndPrint [16:05:26]line Счет N : (1)1319137 [16:05:26]line ИНН: 02508201610067 [16:05:26]line Контрольно-Кассовый Чек [16:05:26]line ПРОДАЖА [16:05:26]line ТРК (МРК, ГНК) : 11 [16:05:26]line Товар: 2710194210 [16:05:26]line ДТ(л)-К-5 [16:05:26]line 39.400 * 72.60 [16:05:26]line = 2860.44 [16:05:26]line НДС 12% НСП 1% [16:05:26]line > о реализуемом товаре [16:05:26]line ОКРУГЛЕНИЕ: -0.44 [16:05:26]line ИТОГО: 2860.00 [16:05:26]line Внесено: 2860.00 [16:05:26]line СДАЧА: 0.00 [16:05:26]line НСП 1% : 25.31 [16:05:26]line НДС 12% : 303.76 [16:05:26]line Наличными: 2860.00 [16:05:26]line Безнал.: 0.00 [16:05:26]line Место: АЗС № 140 "Партнер Нефть" [16:05:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:05:26]line СНО: Общий режим [16:05:26]line Чек 245 13.07.2024 16:05 [16:05:26]line Смена: 462 ФФД: 1.0 [16:05:26]line ЗНМ: 0300000129 [16:05:26]line РНМ: 0000000000090858 [16:05:26]line Версия ККМ: 001 [16:05:26]line ФМ: 0000000000874899 [16:05:26]line ФД: 162577 [16:05:26]line ФПД: 130213185032173 [16:05:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160525&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162577&fm=130213185032173&tin=02508201610067®Number=0000000000090858&sum=286000 [16:05:26]OFD Sender: Processing packet 162577 [packets to send 106, broken 105] [16:05:26]ProducePacketName [16:05:26]name=ofd_packets/00162577 [16:05:26]OFD Sender: To server: pG, [16:05:26]CommunicateWithHost lk.salyk.kg:30040 [16:05:26]ConnectInit lk.salyk.kg [16:05:26]written 0, free lines is 4095 [16:05:26]Connected sock=9 [16: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 34 38 39 39 10 01 00 00 B9 96 08 01 45 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E8 99 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 5C 5D 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5D 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E3 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A8 76 00 00 00 00 07 04 06 00 30 5D 04 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 C5 A5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7B 02 00 35 04 06 00 76 6D 9E A3 8F ED D0 B0 19 E0 92 50 2D 63 [16:05:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8C DA 47 00 F8 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 11 7B 02 00 F4 03 04 00 D4 51 92 66 B6 04 01 00 00 3E 9A EB 90 9C 5C A1 BB [16:05:27]CommunicateWithHost err = 0 [16:05:27]CheckOFDResponse [16:05:27]1017 (14) - 77093643461234 [16:05:27]1041 (16) - 0000000000874899 [16:05:27]1040 (4) - 162577 [16:05:27]1012 (4) - 13.07.2024 10:07 [16:05:27]1206 (1) - 0 [16:05:27]OFD Sender: Remove packet 162577 [16:05:27]ProducePacketName [16:05:27]name=ofd_packets/00162577 [16:05:27]NVStorageDeleteData [16:05:27]Write to MH i2c: 01 00 00 BF 11 D0 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: 01 07 00 BF 11 00 00 00 00 00 E4 0C C7 [16:05:27]RasterBufferAndPrint [16:05:27]line [16:05:27]line [16:05:27]line [16:05:27]line [16:05:27]line [16:05:27]written 0, free lines is 3306 [16:05:27]MH_Cut [16:05:27]Write to MH i2c: D1 01 00 C6 11 01 A9 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: D1 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: D1 01 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: D1 01 00 C6 11 00 A8 [16:05:27]Write to MH i2c: 01 00 00 C7 11 D8 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]OFD Sender: No OFD packet to send [16:05:28]*** Cut start [16:05:28]*** Purtial cut [16:05:28]*** Stage 1: CUTSNS_PIN = 1 [16:05:28]Read from MH i2c: 01 [16:05:28]MH_I2C_Read... [16:05:28]*** Stop cut motor [16:05:28]*** Cut end [16:05:28]Read from MH i2c: 01 07 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: 01 07 00 C7 11 00 00 00 00 00 FF 0F ED [16:05:28]process_action close_receipt done [16:05:28]requested_data is exist [16:05:28]produce_requested_data [16:05:28]requested_item fm.sn is exist - process it [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 11 00 00 [16:05:28]Write to MH i2c: E2 08 00 C8 11 80 11 00 00 00 00 00 00 53 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 17 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 17 00 C8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B3 [16:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:05:28]wFMCommunicate OK [16:05:28]requested_item fd.num is exist - process it [16:05:28]SAM_PROTO_GetFieldsCounters [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 13 00 00 [16:05:28]Write to MH i2c: E2 08 00 C9 11 80 13 00 00 00 00 00 00 56 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 62 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 62 00 C9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 11 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [16: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 11 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:28]wFMCommunicate OK [16:05:28]SAM_PROTO_GetFieldsCounters done [16:05:28]requested_item shift.num is exist - process it [16:05:28]requested_item shift.opened is exist - process it [16:05:28]req_shift_opened [16:05:28]FM_GetShiftState [16:05:28]SAM_PROTO_GetShiftState [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 13 01 00 [16:05:28]Write to MH i2c: E2 08 00 CA 11 80 13 01 00 00 00 00 00 58 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 0E 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 0E 00 CA 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 52 [16:05:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:05:28]wFMCommunicate OK [16:05:28]SAM_PROTO_GetShiftState done [16:05:28]FM_GetShiftState done [16:05:28]req_shift_opened done [16:05:28]requested_item shift.open_date is exist - process it [16:05:28]req_shift_open_date [16:05:28]req_shift_open_date done [16:05:28]produce_requested_data done [16:05:28]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162577,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:05:28]process_action_free close_receipt [16:05:28]json_value_free [16:05:28]json_value_free done [16:05:28]process_json_proto returns [16:05:28]Send response to host [16:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162577,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:05:28]free response buf [16:05:28]execute_script done [16:05:28]execute_script returns [16:05:28]free content buf [16:05:28]Sock 10.Close socket [16:05:28]Sock 10.Thread stoped [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:25]accept exits with 7 [16:07:25]New connection [16:07:25]New thread 3067510116 created [16:07:25]Thread 3067366756 joined [16:07:25]Waiting for new connection... [16:07:25] Sock 7.Parse request [16:07:25]Sock 7.Check first char [16:07:25]Sock 7.First char is OK [16:07:25]request: POST /json_proto HTTP/1.0 [16:07:25]Method: POST [16:07:25]URL: /json_proto [16:07:25]Method is POST - this is cgi request [16:07:25]url: /json_proto [16:07:25]query_string will be loaded in cgi processing [16:07:25]execute_cgi json_proto POST (null) [16:07:25]execute_cgi path=json_proto method=POST [16:07:25]POST find Content-Length [16:07:25]Host: 172.17.39.67:8080 [16:07:25]Content-Length: 648 [16:07:25]Content-Type: application/json [16:07:25] [16:07:25]POST finish read [16:07:25]Found Content-Length = 648 [16:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 50.000, "sum" : 3630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:25]execute_script... [16:07: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)1319140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 50.000, "sum" : 3630.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:25]POST & json_proto [16:07:25]process_json_proto [16:07:25]json parsed OK: [16:07:25]protocol is kg_v1.0 [16:07:25]action value=close_receipt [16:07:25]process_action close_receipt [16:07:25]cmd_close_receipt [16:07:25]MH_GetDate [16:07:25]Write to MH i2c: F0 00 00 CB 11 CB [16:07:25]Write i2c OK [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: F0 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: F0 09 00 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: F0 09 00 CB 11 00 3D A6 92 66 86 7C 92 66 A9 [16:07:25]GetLastDocTimeStamp 1720886725 [16:07:25]current date 1720886845 [16:07:25]FM_GetShiftState [16:07:25]SAM_PROTO_GetShiftState [16:07:25]wFMCommunicate request_size=4 [16:07:25]MH_SAM_APDU [16:07:25]CAPDU: 80 13 01 00 [16:07:25]Write to MH i2c: E2 08 00 CC 11 80 13 01 00 00 00 00 00 5A [16:07:25]Write i2c OK [16:07:25]MH_I2C_Read... [16:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:25]Read from MH i2c: E2 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: E2 0E 00 [16:07:25]MH_I2C_Read... [16:07:25]Read from MH i2c: E2 0E 00 CC 11 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 54 [16:07:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:07:25]wFMCommunicate OK [16:07:25]SAM_PROTO_GetShiftState done [16:07:25]FM_GetShiftState done [16:07:25]opened in 1720828979 [16:07:25]opened+sec_in_day 1720915379 [16:07:25]quantity*price = 363000 [16:07:25]sum+1 = 363001 [16:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3630.00 НСП 1% : 32.12 НДС 12% : 385.49 Наличными: 3630.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 246 13.07.2024 16:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162578 ФПД: 94784481273872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160726&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162578&fm=94784481273872&tin=02508201610067®Number=0000000000090858&sum=363000 [16:07:26]StoreToDocumentArchive [16:07:26]shift 462 fd 162578 [16:07:26]save to /storage/0462/doc_00162578 [16:07:26]save last doc name /storage/0462/doc_00162578 to /storage/kkm_last_doc_name [16:07:26]save OK [16:07:26]Clear old archive folders... [16:07:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:07:26]tlvbuf is 005D8670 [16:07:26]SAM_PROTO_ClearQueue [16:07:26]wFMCommunicate request_size=4 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 09 00 00 [16:07:26]Write to MH i2c: E2 08 00 D9 11 80 09 00 00 00 00 00 00 5C [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:26]Read from MH i2c: E2 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 D9 11 00 90 00 5E [16:07:26]RAPDU: 90 00 [16:07:26]wFMCommunicate OK [16:07:26]SAM_PROTO_ClearQueue done [16:07:26]KKMCreateOFDPacket [16:07:26]OFDProtocolAddRootSTLVToBuf [16:07:26]FM_MakeSignedData [16:07:26]FM_MakeSignedData [16:07:26]SAM_PROTO_SignData [16:07:26]wFMCommunicate request_size=4 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 0D 01 02 [16:07:26]Write to MH i2c: E2 08 00 DA 11 80 0D 01 02 00 00 00 00 64 [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:26]Read from MH i2c: E2 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 DA 11 00 90 00 5F [16:07:26]RAPDU: 90 00 [16:07:26]wFMCommunicate OK [16:07:26]wFMCommunicate request_size=255 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 F8 89 05 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 3E A6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7B 02 00 35 04 06 00 [16:07:26]Write to MH i2c: E2 02 01 DB 11 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 F8 89 05 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 3E A6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7B 02 00 35 04 06 00 00 00 CB [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:26]Read from MH i2c: E2 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 DB 11 00 90 00 60 [16:07:26]RAPDU: 90 00 [16:07:26]wFMCommunicate OK [16:07:26]wFMCommunicate request_size=11 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 0D 02 02 06 56 34 BB 56 28 10 [16:07:26]Write to MH i2c: E2 0E 00 DC 11 80 0D 02 02 06 00 56 34 BB 56 28 10 00 00 46 [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:26]Read from MH i2c: E2 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 03 00 DC 11 00 90 00 61 [16:07:26]RAPDU: 90 00 [16:07:26]wFMCommunicate OK [16:07:26]wFMCommunicate request_size=4 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 0D 03 02 [16:07:26]Write to MH i2c: E2 08 00 DD 11 80 0D 03 02 00 00 00 00 69 [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:26]Read from MH i2c: E2 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 0B 00 [16:07:26]MH_I2C_Read... [16:07:26]Read from MH i2c: E2 0B 00 DD 11 00 50 5E B5 47 25 F4 BD 2F 90 00 19 [16:07:26]RAPDU: 50 5E B5 47 25 F4 BD 2F 90 00 [16:07:26]wFMCommunicate OK [16:07:26]SAM_PROTO_SignData done [16:07:26]FM_MakeSignedData done [16:07:26]CreateOFDProtocolMessage [16:07:26]wFMCommunicate request_size=4 [16:07:26]MH_SAM_APDU [16:07:26]CAPDU: 80 11 00 00 [16:07:26]Write to MH i2c: E2 08 00 DE 11 80 11 00 00 00 00 00 00 69 [16:07:26]Write i2c OK [16:07:26]MH_I2C_Read... [16:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:27]Read from MH i2c: E2 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 17 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: E2 17 00 DE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C9 [16:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:07:27]wFMCommunicate OK [16:07:27]CreateOFDProtocolMessage done [16:07:27]OFDSenderStorePacket 162578 [16:07:27]StoreOFDPacket docnum=162578 [16:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F2 55 08 01 F8 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 F8 89 05 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 3E A6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7B 02 00 35 04 06 00 56 34 BB 56 28 10 50 5E B5 47 25 F4 BD 2F [16:07:27]CheckFolder [16:07:27]dirname=/storage/ofd_packets [16:07:27]CheckFolder done [16:07:27]ProducePacketName [16:07:27]name=ofd_packets/00162578 [16:07:27]NVStorageSaveData ofd_packets/00162578 [16:07:27]File name is /storage/ofd_packets/00162578 [16:07:27]Write 302 bytes [16:07:27]NVStorageSaveData done [16:07:27]OFDSenderStorePacket done [16:07:27]KKMCreateOFDPacket done [16:07:27]NVStorageSaveData kkm_last_timestamp [16:07:27]File name is /storage/kkm_last_timestamp [16:07:27]Write 4 bytes [16:07:27]NVStorageSaveData done [16:07:27]ExternCall_PrintAddStr [16:07:27]wPrintStart [16:07:27]Write to MH i2c: 01 00 00 DF 11 F0 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 07 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 07 00 DF 11 00 00 00 00 00 FF 0F 05 [16:07:27]RasterBufferAndPrint [16:07:27]line Счет N : (1)1319140 [16:07:27]line ИНН: 02508201610067 [16:07:27]line Контрольно-Кассовый Чек [16:07:27]line ПРОДАЖА [16:07:27]line ТРК (МРК, ГНК) : 21 [16:07:27]line Товар: 2710194210 [16:07:27]line ДТ(л)-К-5 [16:07:27]line 50.000 * 72.60 [16:07:27]line = 3630.00 [16:07:27]line НДС 12% НСП 1% [16:07:27]line > о реализуемом товаре [16:07:27]line ИТОГО: 3630.00 [16:07:27]line НСП 1% : 32.12 [16:07:27]line НДС 12% : 385.49 [16:07:27]line Наличными: 3630.00 [16:07:27]line Безнал.: 0.00 [16:07:27]line Место: АЗС № 140 "Партнер Нефть" [16:07:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:07:27]line СНО: Общий режим [16:07:27]line Чек 246 13.07.2024 16:07 [16:07:27]line Смена: 462 ФФД: 1.0 [16:07:27]line ЗНМ: 0300000129 [16:07:27]line РНМ: 0000000000090858 [16:07:27]line Версия ККМ: 001 [16:07:27]line ФМ: 0000000000874899 [16:07:27]line ФД: 162578 [16:07:27]line ФПД: 94784481273872 [16:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T160726&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162578&fm=94784481273872&tin=02508201610067®Number=0000000000090858&sum=363000 [16:07:27]OFD Sender: Processing packet 162578 [packets to send 106, broken 105] [16:07:27]ProducePacketName [16:07:27]name=ofd_packets/00162578 [16:07:27]OFD Sender: To server: pG, [16:07:27]CommunicateWithHost lk.salyk.kg:30040 [16:07:27]ConnectInit lk.salyk.kg [16:07:27]written 0, free lines is 4095 [16:07:27]Connected sock=10 [16:07:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F2 55 08 01 F8 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F8 89 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 89 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 96 00 00 00 00 07 04 06 00 F8 89 05 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 3E A6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7B 02 00 35 04 06 00 56 34 BB 56 28 10 50 5E B5 47 25 F4 BD 2F [16:07:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 21 EB 47 00 D0 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 12 7B 02 00 F4 03 04 00 4C 52 92 66 B6 04 01 00 00 E7 EF 7A 30 01 32 D0 67 [16:07:27]CommunicateWithHost err = 0 [16:07:27]CheckOFDResponse [16:07:27]1017 (14) - 77093643461234 [16:07:27]1041 (16) - 0000000000874899 [16:07:27]1040 (4) - 162578 [16:07:27]1012 (4) - 13.07.2024 10:09 [16:07:27]1206 (1) - 0 [16:07:27]OFD Sender: Remove packet 162578 [16:07:27]ProducePacketName [16:07:27]name=ofd_packets/00162578 [16:07:27]NVStorageDeleteData [16:07:27]Write to MH i2c: 01 00 00 07 12 19 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 07 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: 01 07 00 07 12 00 00 00 00 00 15 0D 42 [16:07:27]RasterBufferAndPrint [16:07:27]line [16:07:27]line [16:07:27]line [16:07:27]line [16:07:27]line [16:07:27]written 0, free lines is 3356 [16:07:27]MH_Cut [16:07:27]Write to MH i2c: D1 01 00 0E 12 01 F2 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: D1 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: D1 01 00 [16:07:27]MH_I2C_Read... [16:07:27]Read from MH i2c: D1 01 00 0E 12 00 F1 [16:07:27]Write to MH i2c: 01 00 00 0F 12 21 [16:07:27]Write i2c OK [16:07:27]MH_I2C_Read... [16:07:28]OFD Sender: No OFD packet to send [16:07:28]*** Cut start [16:07:28]*** Purtial cut [16:07:28]*** CUTSNS_PIN = 0 [16:07:28]*** Stage 1: CUTSNS_PIN = 1 [16:07:30]Read from MH i2c: 01 [16:07:30]MH_I2C_Read... [16:07:30]*** Stop cut motor [16:07:30]*** Cut end [16:07:30]Read from MH i2c: 01 07 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: 01 07 00 0F 12 00 00 00 00 00 FF 0F 36 [16:07:30]process_action close_receipt done [16:07:30]requested_data is exist [16:07:30]produce_requested_data [16:07:30]requested_item fm.sn is exist - process it [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 11 00 00 [16:07:30]Write to MH i2c: E2 08 00 10 12 80 11 00 00 00 00 00 00 9C [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 17 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 17 00 10 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FC [16:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:07:30]wFMCommunicate OK [16:07:30]requested_item fd.num is exist - process it [16:07:30]SAM_PROTO_GetFieldsCounters [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 13 00 00 [16:07:30]Write to MH i2c: E2 08 00 11 12 80 13 00 00 00 00 00 00 9F [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 62 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 62 00 11 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 12 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [16:07:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 12 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:30]wFMCommunicate OK [16:07:30]SAM_PROTO_GetFieldsCounters done [16:07:30]requested_item shift.num is exist - process it [16:07:30]requested_item shift.opened is exist - process it [16:07:30]req_shift_opened [16:07:30]FM_GetShiftState [16:07:30]SAM_PROTO_GetShiftState [16:07:30]wFMCommunicate request_size=4 [16:07:30]MH_SAM_APDU [16:07:30]CAPDU: 80 13 01 00 [16:07:30]Write to MH i2c: E2 08 00 12 12 80 13 01 00 00 00 00 00 A1 [16:07:30]Write i2c OK [16:07:30]MH_I2C_Read... [16:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:30]Read from MH i2c: E2 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 0E 00 [16:07:30]MH_I2C_Read... [16:07:30]Read from MH i2c: E2 0E 00 12 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9B [16:07:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:07:30]wFMCommunicate OK [16:07:30]SAM_PROTO_GetShiftState done [16:07:30]FM_GetShiftState done [16:07:30]req_shift_opened done [16:07:30]requested_item shift.open_date is exist - process it [16:07:30]req_shift_open_date [16:07:30]req_shift_open_date done [16:07:30]produce_requested_data done [16:07:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162578,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:07:30]process_action_free close_receipt [16:07:30]json_value_free [16:07:30]json_value_free done [16:07:30]process_json_proto returns [16:07:30]Send response to host [16:07:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162578,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:07:30]free response buf [16:07:30]execute_script done [16:07:30]execute_script returns [16:07:30]free content buf [16:07:30]Sock 7.Close socket [16:07:30]Sock 7.Thread stoped [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:06]accept exits with 9 [16:19:06]New connection [16:19:06]New thread 3067366756 created [16:19:06]Thread 3067510116 joined [16:19:06]Waiting for new connection... [16:19:06] Sock 9.Parse request [16:19:06]Sock 9.Check first char [16:19:06]Sock 9.First char is OK [16:19:06]request: POST /json_proto HTTP/1.0 [16:19:06]Method: POST [16:19:06]URL: /json_proto [16:19:06]Method is POST - this is cgi request [16:19:06]url: /json_proto [16:19:06]query_string will be loaded in cgi processing [16:19:06]execute_cgi json_proto POST (null) [16:19:06]execute_cgi path=json_proto method=POST [16:19:06]POST find Content-Length [16:19:06]Host: 172.17.39.67:8080 [16:19:06]Content-Length: 834 [16:19:06]Content-Type: application/json [16:19:06] [16:19:06]POST finish read [16:19:06]Found Content-Length = 834 [16:19:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 4.450, "sum" : 299.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 299.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:06]execute_script... [16:19:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 4.450, "sum" : 299.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 299.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:06]POST & json_proto [16:19:06]process_json_proto [16:19:06]json parsed OK: [16:19:06]protocol is kg_v1.0 [16:19:06]action value=close_receipt [16:19:06]process_action close_receipt [16:19:06]cmd_close_receipt [16:19:06]MH_GetDate [16:19:06]Write to MH i2c: F0 00 00 13 12 14 [16:19:06]Write i2c OK [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: F0 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: F0 09 00 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: F0 09 00 13 12 00 FB A8 92 66 86 7C 92 66 B2 [16:19:06]GetLastDocTimeStamp 1720886846 [16:19:06]current date 1720887547 [16:19:06]FM_GetShiftState [16:19:06]SAM_PROTO_GetShiftState [16:19:06]wFMCommunicate request_size=4 [16:19:06]MH_SAM_APDU [16:19:06]CAPDU: 80 13 01 00 [16:19:06]Write to MH i2c: E2 08 00 14 12 80 13 01 00 00 00 00 00 A3 [16:19:06]Write i2c OK [16:19:06]MH_I2C_Read... [16:19:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:06]Read from MH i2c: E2 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: E2 0E 00 [16:19:06]MH_I2C_Read... [16:19:06]Read from MH i2c: E2 0E 00 14 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9D [16:19:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:19:06]wFMCommunicate OK [16:19:06]SAM_PROTO_GetShiftState done [16:19:06]FM_GetShiftState done [16:19:06]opened in 1720828979 [16:19:06]opened+sec_in_day 1720915379 [16:19:06]quantity*price = 29948 [16:19:06]sum+1 = 29950 [16:19:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 299.49 НСП 1% : 2.65 НДС 12% : 31.80 Наличными: 0.00 Безнал.: 299.49 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 247 13.07.2024 16:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162579 ФПД: 144365821133443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161907&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162579&fm=144365821133443&tin=02508201610067®Number=0000000000090858&sum=29949 [16:19:07]StoreToDocumentArchive [16:19:07]shift 462 fd 162579 [16:19:07]save to /storage/0462/doc_00162579 [16:19:07]save last doc name /storage/0462/doc_00162579 to /storage/kkm_last_doc_name [16:19:07]save OK [16:19:07]Clear old archive folders... [16:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:19:07]tlvbuf is 006BDFF0 [16:19:07]SAM_PROTO_ClearQueue [16:19:07]wFMCommunicate request_size=4 [16:19:07]MH_SAM_APDU [16:19:07]CAPDU: 80 09 00 00 [16:19:07]Write to MH i2c: E2 08 00 21 12 80 09 00 00 00 00 00 00 A5 [16:19:07]Write i2c OK [16:19:07]MH_I2C_Read... [16:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:07]Read from MH i2c: E2 [16:19:07]MH_I2C_Read... [16:19:07]Read from MH i2c: E2 03 00 [16:19:07]MH_I2C_Read... [16:19:07]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [16:19:07]RAPDU: 90 00 [16:19:07]wFMCommunicate OK [16:19:07]SAM_PROTO_ClearQueue done [16:19:07]KKMCreateOFDPacket [16:19:07]OFDProtocolAddRootSTLVToBuf [16:19:07]FM_MakeSignedData [16:19:07]FM_MakeSignedData [16:19:07]SAM_PROTO_SignData [16:19:07]wFMCommunicate request_size=4 [16:19:07]MH_SAM_APDU [16:19:07]CAPDU: 80 0D 01 02 [16:19:07]Write to MH i2c: E2 08 00 22 12 80 0D 01 02 00 00 00 00 AD [16:19:07]Write i2c OK [16:19:07]MH_I2C_Read... [16:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:07]Read from MH i2c: E2 [16:19:07]MH_I2C_Read... [16:19:07]Read from MH i2c: E2 03 00 [16:19:07]MH_I2C_Read... [16:19:07]Read from MH i2c: E2 03 00 22 12 00 90 00 A8 [16:19:07]RAPDU: 90 00 [16:19:07]wFMCommunicate OK [16:19:07]wFMCommunicate request_size=255 [16:19:07]MH_SAM_APDU [16:19:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 11 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FD 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FB A8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7B 02 00 35 04 06 00 [16:19:07]Write to MH i2c: E2 02 01 23 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 11 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FD 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FB A8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7B 02 00 35 04 06 00 00 00 90 [16:19:07]Write i2c OK [16:19:07]MH_I2C_Read... [16:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:08]Read from MH i2c: E2 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 03 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 03 00 23 12 00 90 00 A9 [16:19:08]RAPDU: 90 00 [16:19:08]wFMCommunicate OK [16:19:08]wFMCommunicate request_size=11 [16:19:08]MH_SAM_APDU [16:19:08]CAPDU: 80 0D 02 02 06 83 4C C9 7C 82 83 [16:19:08]Write to MH i2c: E2 0E 00 24 12 80 0D 02 02 06 00 83 4C C9 7C 82 83 00 00 D5 [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:08]Read from MH i2c: E2 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 03 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 03 00 24 12 00 90 00 AA [16:19:08]RAPDU: 90 00 [16:19:08]wFMCommunicate OK [16:19:08]wFMCommunicate request_size=4 [16:19:08]MH_SAM_APDU [16:19:08]CAPDU: 80 0D 03 02 [16:19:08]Write to MH i2c: E2 08 00 25 12 80 0D 03 02 00 00 00 00 B2 [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:08]Read from MH i2c: E2 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 0B 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 0B 00 25 12 00 AF 3D 61 09 10 D8 35 C2 90 00 E8 [16:19:08]RAPDU: AF 3D 61 09 10 D8 35 C2 90 00 [16:19:08]wFMCommunicate OK [16:19:08]SAM_PROTO_SignData done [16:19:08]FM_MakeSignedData done [16:19:08]CreateOFDProtocolMessage [16:19:08]wFMCommunicate request_size=4 [16:19:08]MH_SAM_APDU [16:19:08]CAPDU: 80 11 00 00 [16:19:08]Write to MH i2c: E2 08 00 26 12 80 11 00 00 00 00 00 00 B2 [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:08]Read from MH i2c: E2 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 17 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: E2 17 00 26 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 12 [16:19:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:19:08]wFMCommunicate OK [16:19:08]CreateOFDProtocolMessage done [16:19:08]OFDSenderStorePacket 162579 [16:19:08]StoreOFDPacket docnum=162579 [16:19:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BA E4 08 01 F0 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 11 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FD 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FB A8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7B 02 00 35 04 06 00 83 4C C9 7C 82 83 AF 3D 61 09 10 D8 35 C2 [16:19:08]CheckFolder [16:19:08]dirname=/storage/ofd_packets [16:19:08]CheckFolder done [16:19:08]ProducePacketName [16:19:08]name=ofd_packets/00162579 [16:19:08]NVStorageSaveData ofd_packets/00162579 [16:19:08]File name is /storage/ofd_packets/00162579 [16:19:08]Write 302 bytes [16:19:08]NVStorageSaveData done [16:19:08]OFDSenderStorePacket done [16:19:08]KKMCreateOFDPacket done [16:19:08]NVStorageSaveData kkm_last_timestamp [16:19:08]File name is /storage/kkm_last_timestamp [16:19:08]Write 4 bytes [16:19:08]NVStorageSaveData done [16:19:08]ExternCall_PrintAddStr [16:19:08]wPrintStart [16:19:08]Write to MH i2c: 01 00 00 27 12 39 [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: 01 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: 01 07 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: 01 07 00 27 12 00 00 00 00 00 FF 0F 4E [16:19:08]RasterBufferAndPrint [16:19:08]line Счет N : (1)1319141 [16:19:08]line ИНН: 02508201610067 [16:19:08]line Контрольно-Кассовый Чек [16:19:08]line ПРОДАЖА [16:19:08]line ТРК (МРК, ГНК) : 62 [16:19:08]line Товар: 2710124130 [16:19:08]line Super-92-К-5 [16:19:08]line 4.450 * 67.30 [16:19:08]line = 299.49 [16:19:08]line НДС 12% НСП 1% [16:19:08]line > о реализуемом товаре [16:19:08]line ИТОГО: 299.49 [16:19:08]line НСП 1% : 2.65 [16:19:08]line НДС 12% : 31.80 [16:19:08]line Наличными: 0.00 [16:19:08]line Безнал.: 299.49 [16:19:08]line Место: АЗС № 140 "Партнер Нефть" [16:19:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:19:08]line СНО: Общий режим [16:19:08]line Чек 247 13.07.2024 16:19 [16:19:08]line Смена: 462 ФФД: 1.0 [16:19:08]line ЗНМ: 0300000129 [16:19:08]line РНМ: 0000000000090858 [16:19:08]line Версия ККМ: 001 [16:19:08]line Платежная система: АКБ Кыргызстан [16:19:08]line ФМ: 0000000000874899 [16:19:08]line ФД: 162579 [16:19:08]line ФПД: 144365821133443 [16:19:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161907&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162579&fm=144365821133443&tin=02508201610067®Number=0000000000090858&sum=29949 [16:19:08]OFD Sender: Processing packet 162579 [packets to send 106, broken 105] [16:19:08]ProducePacketName [16:19:08]name=ofd_packets/00162579 [16:19:08]OFD Sender: To server: pG, [16:19:08]CommunicateWithHost lk.salyk.kg:30040 [16:19:08]ConnectInit lk.salyk.kg [16:19:08]written 0, free lines is 4095 [16:19:08]Connected sock=10 [16:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BA E4 08 01 F0 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 62 11 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 FD 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FD 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FD 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 00 00 00 F4 03 04 00 FB A8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7B 02 00 35 04 06 00 83 4C C9 7C 82 83 AF 3D 61 09 10 D8 35 C2 [16:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 63 90 47 00 7C 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 13 7B 02 00 F4 03 04 00 0A 55 92 66 B6 04 01 00 00 34 29 E6 8F E2 17 47 9B [16:19:08]CommunicateWithHost err = 0 [16:19:08]CheckOFDResponse [16:19:08]1017 (14) - 77093643461234 [16:19:08]1041 (16) - 0000000000874899 [16:19:08]1040 (4) - 162579 [16:19:08]1012 (4) - 13.07.2024 10:20 [16:19:08]1206 (1) - 0 [16:19:08]OFD Sender: Remove packet 162579 [16:19:08]ProducePacketName [16:19:08]name=ofd_packets/00162579 [16:19:08]NVStorageDeleteData [16:19:08]Write to MH i2c: 01 00 00 51 12 63 [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: 01 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: 01 07 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: 01 07 00 51 12 00 00 00 00 00 F7 0C 6D [16:19:08]RasterBufferAndPrint [16:19:08]line [16:19:08]line [16:19:08]line [16:19:08]line [16:19:08]line [16:19:08]written 0, free lines is 3325 [16:19:08]MH_Cut [16:19:08]Write to MH i2c: D1 01 00 58 12 01 3C [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: D1 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: D1 01 00 [16:19:08]MH_I2C_Read... [16:19:08]Read from MH i2c: D1 01 00 58 12 00 3B [16:19:08]Write to MH i2c: 01 00 00 59 12 6B [16:19:08]Write i2c OK [16:19:08]MH_I2C_Read... [16:19:09]OFD Sender: No OFD packet to send [16:19:09]*** Cut start [16:19:09]*** Purtial cut [16:19:09]*** Stage 1: CUTSNS_PIN = 1 [16:19:09]Read from MH i2c: 01 [16:19:09]MH_I2C_Read... [16:19:09]*** Stop cut motor [16:19:09]*** Cut end [16:19:09]Read from MH i2c: 01 07 00 [16:19:09]MH_I2C_Read... [16:19:09]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 FF 0F 80 [16:19:09]process_action close_receipt done [16:19:09]requested_data is exist [16:19:09]produce_requested_data [16:19:09]requested_item fm.sn is exist - process it [16:19:09]wFMCommunicate request_size=4 [16:19:09]MH_SAM_APDU [16:19:09]CAPDU: 80 11 00 00 [16:19:09]Write to MH i2c: E2 08 00 5A 12 80 11 00 00 00 00 00 00 E6 [16:19:09]Write i2c OK [16:19:09]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 17 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 17 00 5A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [16:19:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:19:10]wFMCommunicate OK [16:19:10]requested_item fd.num is exist - process it [16:19:10]SAM_PROTO_GetFieldsCounters [16:19:10]wFMCommunicate request_size=4 [16:19:10]MH_SAM_APDU [16:19:10]CAPDU: 80 13 00 00 [16:19:10]Write to MH i2c: E2 08 00 5B 12 80 13 00 00 00 00 00 00 E9 [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 62 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 62 00 5B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 13 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [16:19:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 13 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:19:10]wFMCommunicate OK [16:19:10]SAM_PROTO_GetFieldsCounters done [16:19:10]requested_item shift.num is exist - process it [16:19:10]requested_item shift.opened is exist - process it [16:19:10]req_shift_opened [16:19:10]FM_GetShiftState [16:19:10]SAM_PROTO_GetShiftState [16:19:10]wFMCommunicate request_size=4 [16:19:10]MH_SAM_APDU [16:19:10]CAPDU: 80 13 01 00 [16:19:10]Write to MH i2c: E2 08 00 5C 12 80 13 01 00 00 00 00 00 EB [16:19:10]Write i2c OK [16:19:10]MH_I2C_Read... [16:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:10]Read from MH i2c: E2 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 0E 00 [16:19:10]MH_I2C_Read... [16:19:10]Read from MH i2c: E2 0E 00 5C 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E5 [16:19:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:19:10]wFMCommunicate OK [16:19:10]SAM_PROTO_GetShiftState done [16:19:10]FM_GetShiftState done [16:19:10]req_shift_opened done [16:19:10]requested_item shift.open_date is exist - process it [16:19:10]req_shift_open_date [16:19:10]req_shift_open_date done [16:19:10]produce_requested_data done [16:19:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162579,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:19:10]process_action_free close_receipt [16:19:10]json_value_free [16:19:10]json_value_free done [16:19:10]process_json_proto returns [16:19:10]Send response to host [16:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162579,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:19:10]free response buf [16:19:10]execute_script done [16:19:10]execute_script returns [16:19:10]free content buf [16:19:10]Sock 9.Close socket [16:19:10]Sock 9.Thread stoped [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [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:58]accept exits with 7 [16:19:58]New connection [16:19:58]New thread 3067510116 created [16:19:58]Thread 3067366756 joined [16:19:58]Waiting for new connection... [16:19:58] Sock 7.Parse request [16:19:58]Sock 7.Check first char [16:19:58]Sock 7.First char is OK [16:19:58]request: POST /json_proto HTTP/1.0 [16:19:58]Method: POST [16:19:58]URL: /json_proto [16:19:58]Method is POST - this is cgi request [16:19:58]url: /json_proto [16:19:58]query_string will be loaded in cgi processing [16:19:58]execute_cgi json_proto POST (null) [16:19:58]execute_cgi path=json_proto method=POST [16:19:58]POST find Content-Length [16:19:58]Host: 172.17.39.67:8080 [16:19:58]Content-Length: 672 [16:19:58]Content-Type: application/json [16:19:58] [16:19:58]POST finish read [16:19:58]Found Content-Length = 672 [16:19:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.420, "sum" : 701.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 701.00, "total" : 701.00, "payments": [ { "type": 0, "sum" : 701.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:58]execute_script... [16:19:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.420, "sum" : 701.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 701.00, "total" : 701.00, "payments": [ { "type": 0, "sum" : 701.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:58]POST & json_proto [16:19:58]process_json_proto [16:19:58]json parsed OK: [16:19:58]protocol is kg_v1.0 [16:19:58]action value=close_receipt [16:19:58]process_action close_receipt [16:19:58]cmd_close_receipt [16:19:58]MH_GetDate [16:19:58]Write to MH i2c: F0 00 00 5D 12 5E [16:19:58]Write i2c OK [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: F0 [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: F0 09 00 [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: F0 09 00 5D 12 00 2F A9 92 66 86 7C 92 66 31 [16:19:58]GetLastDocTimeStamp 1720887547 [16:19:58]current date 1720887599 [16:19:58]FM_GetShiftState [16:19:58]SAM_PROTO_GetShiftState [16:19:58]wFMCommunicate request_size=4 [16:19:58]MH_SAM_APDU [16:19:58]CAPDU: 80 13 01 00 [16:19:58]Write to MH i2c: E2 08 00 5E 12 80 13 01 00 00 00 00 00 ED [16:19:58]Write i2c OK [16:19:58]MH_I2C_Read... [16:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:58]Read from MH i2c: E2 [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: E2 0E 00 [16:19:58]MH_I2C_Read... [16:19:58]Read from MH i2c: E2 0E 00 5E 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E7 [16:19:58]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:19:58]wFMCommunicate OK [16:19:58]SAM_PROTO_GetShiftState done [16:19:58]FM_GetShiftState done [16:19:58]opened in 1720828979 [16:19:58]opened+sec_in_day 1720915379 [16:19:58]quantity*price = 70126 [16:19:58]sum+1 = 70128 [16:19:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 701.00 Внесено: 701.00 СДАЧА: 0.00 НСП 1% : 6.21 НДС 12% : 74.47 Наличными: 701.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 248 13.07.2024 16:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162580 ФПД: 199317652993844 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161959&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162580&fm=199317652993844&tin=02508201610067®Number=0000000000090858&sum=70100 [16:19:59]StoreToDocumentArchive [16:19:59]shift 462 fd 162580 [16:19:59]save to /storage/0462/doc_00162580 [16:19:59]save last doc name /storage/0462/doc_00162580 to /storage/kkm_last_doc_name [16:19:59]save OK [16:19:59]Clear old archive folders... [16:19:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:19:59]tlvbuf is 006DAE20 [16:19:59]SAM_PROTO_ClearQueue [16:19:59]wFMCommunicate request_size=4 [16:19:59]MH_SAM_APDU [16:19:59]CAPDU: 80 09 00 00 [16:19:59]Write to MH i2c: E2 08 00 6B 12 80 09 00 00 00 00 00 00 EF [16:19:59]Write i2c OK [16:19:59]MH_I2C_Read... [16:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:59]Read from MH i2c: E2 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 03 00 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 03 00 6B 12 00 90 00 F1 [16:19:59]RAPDU: 90 00 [16:19:59]wFMCommunicate OK [16:19:59]SAM_PROTO_ClearQueue done [16:19:59]KKMCreateOFDPacket [16:19:59]OFDProtocolAddRootSTLVToBuf [16:19:59]FM_MakeSignedData [16:19:59]FM_MakeSignedData [16:19:59]SAM_PROTO_SignData [16:19:59]wFMCommunicate request_size=4 [16:19:59]MH_SAM_APDU [16:19:59]CAPDU: 80 0D 01 02 [16:19:59]Write to MH i2c: E2 08 00 6C 12 80 0D 01 02 00 00 00 00 F7 [16:19:59]Write i2c OK [16:19:59]MH_I2C_Read... [16:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:59]Read from MH i2c: E2 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 03 00 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 03 00 6C 12 00 90 00 F2 [16:19:59]RAPDU: 90 00 [16:19:59]wFMCommunicate OK [16:19:59]wFMCommunicate request_size=255 [16:19:59]MH_SAM_APDU [16:19:59]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 EF 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 1D 00 00 00 00 07 04 06 00 D4 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 F8 00 00 00 F4 03 04 00 2F A9 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7B 02 00 35 04 06 00 [16:19:59]Write to MH i2c: E2 02 01 6D 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 EF 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 1D 00 00 00 00 07 04 06 00 D4 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 F8 00 00 00 F4 03 04 00 2F A9 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7B 02 00 35 04 06 00 00 00 15 [16:19:59]Write i2c OK [16:19:59]MH_I2C_Read... [16:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:59]Read from MH i2c: E2 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 03 00 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 03 00 6D 12 00 90 00 F3 [16:19:59]RAPDU: 90 00 [16:19:59]wFMCommunicate OK [16:19:59]wFMCommunicate request_size=11 [16:19:59]MH_SAM_APDU [16:19:59]CAPDU: 80 0D 02 02 06 B5 47 41 E7 77 34 [16:19:59]Write to MH i2c: E2 0E 00 6E 12 80 0D 02 02 06 00 B5 47 41 E7 77 34 00 00 D5 [16:19:59]Write i2c OK [16:19:59]MH_I2C_Read... [16:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:59]Read from MH i2c: E2 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 03 00 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 03 00 6E 12 00 90 00 F4 [16:19:59]RAPDU: 90 00 [16:19:59]wFMCommunicate OK [16:19:59]wFMCommunicate request_size=4 [16:19:59]MH_SAM_APDU [16:19:59]CAPDU: 80 0D 03 02 [16:19:59]Write to MH i2c: E2 08 00 6F 12 80 0D 03 02 00 00 00 00 FC [16:19:59]Write i2c OK [16:19:59]MH_I2C_Read... [16:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:59]Read from MH i2c: E2 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 0B 00 [16:19:59]MH_I2C_Read... [16:19:59]Read from MH i2c: E2 0B 00 6F 12 00 1B AC DB 21 48 66 63 33 90 00 04 [16:19:59]RAPDU: 1B AC DB 21 48 66 63 33 90 00 [16:19:59]wFMCommunicate OK [16:19:59]SAM_PROTO_SignData done [16:19:59]FM_MakeSignedData done [16:19:59]CreateOFDProtocolMessage [16:19:59]wFMCommunicate request_size=4 [16:19:59]MH_SAM_APDU [16:19:59]CAPDU: 80 11 00 00 [16:19:59]Write to MH i2c: E2 08 00 70 12 80 11 00 00 00 00 00 00 FC [16:19:59]Write i2c OK [16:19:59]MH_I2C_Read... [16:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:00]Read from MH i2c: E2 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 17 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: E2 17 00 70 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5C [16:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:20:00]wFMCommunicate OK [16:20:00]CreateOFDProtocolMessage done [16:20:00]OFDSenderStorePacket 162580 [16:20:00]StoreOFDPacket docnum=162580 [16:20:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 EB 1A 08 01 CA 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 EF 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 1D 00 00 00 00 07 04 06 00 D4 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 F8 00 00 00 F4 03 04 00 2F A9 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7B 02 00 35 04 06 00 B5 47 41 E7 77 34 1B AC DB 21 48 66 63 33 [16:20:00]CheckFolder [16:20:00]dirname=/storage/ofd_packets [16:20:00]CheckFolder done [16:20:00]ProducePacketName [16:20:00]name=ofd_packets/00162580 [16:20:00]NVStorageSaveData ofd_packets/00162580 [16:20:00]File name is /storage/ofd_packets/00162580 [16:20:00]Write 302 bytes [16:20:00]NVStorageSaveData done [16:20:00]OFDSenderStorePacket done [16:20:00]KKMCreateOFDPacket done [16:20:00]NVStorageSaveData kkm_last_timestamp [16:20:00]File name is /storage/kkm_last_timestamp [16:20:00]Write 4 bytes [16:20:00]NVStorageSaveData done [16:20:00]ExternCall_PrintAddStr [16:20:00]wPrintStart [16:20:00]Write to MH i2c: 01 00 00 71 12 83 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 07 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 07 00 71 12 00 00 00 00 00 FF 0F 98 [16:20:00]RasterBufferAndPrint [16:20:00]line Счет N : (1)1319142 [16:20:00]line ИНН: 02508201610067 [16:20:00]line Контрольно-Кассовый Чек [16:20:00]line ПРОДАЖА [16:20:00]line ТРК (МРК, ГНК) : 62 [16:20:00]line Товар: 2710124130 [16:20:00]line Super-92-К-5 [16:20:00]line 10.420 * 67.30 [16:20:00]line = 701.27 [16:20:00]line НДС 12% НСП 1% [16:20:00]line > о реализуемом товаре [16:20:00]line ОКРУГЛЕНИЕ: -0.27 [16:20:00]line ИТОГО: 701.00 [16:20:00]line Внесено: 701.00 [16:20:00]line СДАЧА: 0.00 [16:20:00]line НСП 1% : 6.21 [16:20:00]line НДС 12% : 74.47 [16:20:00]line Наличными: 701.00 [16:20:00]line Безнал.: 0.00 [16:20:00]line Место: АЗС № 140 "Партнер Нефть" [16:20:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:20:00]line СНО: Общий режим [16:20:00]line Чек 248 13.07.2024 16:19 [16:20:00]line Смена: 462 ФФД: 1.0 [16:20:00]line ЗНМ: 0300000129 [16:20:00]line РНМ: 0000000000090858 [16:20:00]line Версия ККМ: 001 [16:20:00]line ФМ: 0000000000874899 [16:20:00]line ФД: 162580 [16:20:00]line ФПД: 199317652993844 [16:20:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T161959&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162580&fm=199317652993844&tin=02508201610067®Number=0000000000090858&sum=70100 [16:20:00]OFD Sender: Processing packet 162580 [packets to send 106, broken 105] [16:20:00]ProducePacketName [16:20:00]name=ofd_packets/00162580 [16:20:00]OFD Sender: To server: pG, [16:20:00]CommunicateWithHost lk.salyk.kg:30040 [16:20:00]ConnectInit lk.salyk.kg [16:20:00]written 0, free lines is 4095 [16:20:00]Connected sock=10 [16:20:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 EB 1A 08 01 CA 3F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 28 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 EF 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 1D 00 00 00 00 07 04 06 00 D4 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 F8 00 00 00 F4 03 04 00 2F A9 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7B 02 00 35 04 06 00 B5 47 41 E7 77 34 1B AC DB 21 48 66 63 33 [16:20:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 18 78 47 00 03 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 14 7B 02 00 F4 03 04 00 3D 55 92 66 B6 04 01 00 00 E7 E6 08 E5 93 78 E6 F3 [16:20:00]CommunicateWithHost err = 0 [16:20:00]CheckOFDResponse [16:20:00]1017 (14) - 77093643461234 [16:20:00]1041 (16) - 0000000000874899 [16:20:00]1040 (4) - 162580 [16:20:00]1012 (4) - 13.07.2024 10:21 [16:20:00]1206 (1) - 0 [16:20:00]OFD Sender: Remove packet 162580 [16:20:00]ProducePacketName [16:20:00]name=ofd_packets/00162580 [16:20:00]NVStorageDeleteData [16:20:00]Write to MH i2c: 01 00 00 9C 12 AE [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 07 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: 01 07 00 9C 12 00 00 00 00 00 E4 0C A5 [16:20:00]RasterBufferAndPrint [16:20:00]line [16:20:00]line [16:20:00]line [16:20:00]line [16:20:00]line [16:20:00]written 0, free lines is 3306 [16:20:00]MH_Cut [16:20:00]Write to MH i2c: D1 01 00 A3 12 01 87 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: D1 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: D1 01 00 [16:20:00]MH_I2C_Read... [16:20:00]Read from MH i2c: D1 01 00 A3 12 00 86 [16:20:00]Write to MH i2c: 01 00 00 A4 12 B6 [16:20:00]Write i2c OK [16:20:00]MH_I2C_Read... [16:20:01]OFD Sender: No OFD packet to send [16:20:01]*** Cut start [16:20:01]*** Purtial cut [16:20:01]*** CUTSNS_PIN = 0 [16:20:01]*** Stage 1: CUTSNS_PIN = 1 [16:20:03]Read from MH i2c: 01 [16:20:03]MH_I2C_Read... [16:20:03]*** Stop cut motor [16:20:03]*** Cut end [16:20:03]Read from MH i2c: 01 07 00 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: 01 07 00 A4 12 00 00 00 00 00 FF 0F CB [16:20:03]process_action close_receipt done [16:20:03]requested_data is exist [16:20:03]produce_requested_data [16:20:03]requested_item fm.sn is exist - process it [16:20:03]wFMCommunicate request_size=4 [16:20:03]MH_SAM_APDU [16:20:03]CAPDU: 80 11 00 00 [16:20:03]Write to MH i2c: E2 08 00 A5 12 80 11 00 00 00 00 00 00 31 [16:20:03]Write i2c OK [16:20:03]MH_I2C_Read... [16:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:03]Read from MH i2c: E2 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 17 00 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 17 00 A5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 91 [16:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:20:03]wFMCommunicate OK [16:20:03]requested_item fd.num is exist - process it [16:20:03]SAM_PROTO_GetFieldsCounters [16:20:03]wFMCommunicate request_size=4 [16:20:03]MH_SAM_APDU [16:20:03]CAPDU: 80 13 00 00 [16:20:03]Write to MH i2c: E2 08 00 A6 12 80 13 00 00 00 00 00 00 34 [16:20:03]Write i2c OK [16:20:03]MH_I2C_Read... [16:20:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:03]Read from MH i2c: E2 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 62 00 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 62 00 A6 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 14 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [16:20:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 14 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:03]wFMCommunicate OK [16:20:03]SAM_PROTO_GetFieldsCounters done [16:20:03]requested_item shift.num is exist - process it [16:20:03]requested_item shift.opened is exist - process it [16:20:03]req_shift_opened [16:20:03]FM_GetShiftState [16:20:03]SAM_PROTO_GetShiftState [16:20:03]wFMCommunicate request_size=4 [16:20:03]MH_SAM_APDU [16:20:03]CAPDU: 80 13 01 00 [16:20:03]Write to MH i2c: E2 08 00 A7 12 80 13 01 00 00 00 00 00 36 [16:20:03]Write i2c OK [16:20:03]MH_I2C_Read... [16:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:03]Read from MH i2c: E2 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 0E 00 [16:20:03]MH_I2C_Read... [16:20:03]Read from MH i2c: E2 0E 00 A7 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 30 [16:20:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:20:03]wFMCommunicate OK [16:20:03]SAM_PROTO_GetShiftState done [16:20:03]FM_GetShiftState done [16:20:03]req_shift_opened done [16:20:03]requested_item shift.open_date is exist - process it [16:20:03]req_shift_open_date [16:20:03]req_shift_open_date done [16:20:03]produce_requested_data done [16:20:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162580,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:20:03]process_action_free close_receipt [16:20:03]json_value_free [16:20:03]json_value_free done [16:20:03]process_json_proto returns [16:20:03]Send response to host [16:20:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162580,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:20:03]free response buf [16:20:03]execute_script done [16:20:03]execute_script returns [16:20:03]free content buf [16:20:03]Sock 7.Close socket [16:20:03]Sock 7.Thread stoped [16:20:06]OFD Sender: No OFD packet to send [16:20:11]OFD Sender: No OFD packet to send [16:20:16]OFD Sender: No OFD packet to send [16:20:21]OFD Sender: No OFD packet to send [16:20:26]OFD Sender: No OFD packet to send [16:20:31]OFD Sender: No OFD packet to send [16:20:36]OFD Sender: No OFD packet to send [16:20:41]OFD Sender: No OFD packet to send [16:20:46]OFD Sender: No OFD packet to send [16:20:51]OFD Sender: No OFD packet to send [16:20:56]OFD Sender: No OFD packet to send [16:21:01]OFD Sender: No OFD packet to send [16:21:06]OFD Sender: No OFD packet to send [16:21:11]OFD Sender: No OFD packet to send [16:21:16]OFD Sender: No OFD packet to send [16:21:21]OFD Sender: No OFD packet to send [16:21:26]OFD Sender: No OFD packet to send [16:21:31]OFD Sender: No OFD packet to send [16:21:36]OFD Sender: No OFD packet to send [16:21:41]OFD Sender: No OFD packet to send [16:21:46]OFD Sender: No OFD packet to send [16:21:51]OFD Sender: No OFD packet to send [16:21:56]OFD Sender: No OFD packet to send [16:22:01]OFD Sender: No OFD packet to send [16:22:06]OFD Sender: No OFD packet to send [16:22:11]OFD Sender: No OFD packet to send [16:22:16]OFD Sender: No OFD packet to send [16:22:21]OFD Sender: No OFD packet to send [16:22:26]OFD Sender: No OFD packet to send [16:22:31]OFD Sender: No OFD packet to send [16:22:36]OFD Sender: No OFD packet to send [16:22:41]OFD Sender: No OFD packet to send [16:22:46]OFD Sender: No OFD packet to send [16:22:51]OFD Sender: No OFD packet to send [16:22:56]OFD Sender: No OFD packet to send [16:23:01]OFD Sender: No OFD packet to send [16:23:06]OFD Sender: No OFD packet to send [16:23:11]OFD Sender: No OFD packet to send [16:23:16]OFD Sender: No OFD packet to send [16:23:21]OFD Sender: No OFD packet to send [16:23:26]OFD Sender: No OFD packet to send [16:23:31]OFD Sender: No OFD packet to send [16:23:36]OFD Sender: No OFD packet to send [16:23:41]OFD Sender: No OFD packet to send [16:23:46]OFD Sender: No OFD packet to send [16:23:51]OFD Sender: No OFD packet to send [16:23:56]OFD Sender: No OFD packet to send [16:24:01]OFD Sender: No OFD packet to send [16:24:06]OFD Sender: No OFD packet to send [16:24:11]OFD Sender: No OFD packet to send [16:24:16]OFD Sender: No OFD packet to send [16:24:21]OFD Sender: No OFD packet to send [16:24:26]OFD Sender: No OFD packet to send [16:24:31]OFD Sender: No OFD packet to send [16:24:36]OFD Sender: No OFD packet to send [16:24:41]OFD Sender: No OFD packet to send [16:24:46]OFD Sender: No OFD packet to send [16:24:51]OFD Sender: No OFD packet to send [16:24:56]OFD Sender: No OFD packet to send [16:25:01]OFD Sender: No OFD packet to send [16:25:06]OFD Sender: No OFD packet to send [16:25:11]OFD Sender: No OFD packet to send [16:25:16]OFD Sender: No OFD packet to send [16:25:21]OFD Sender: No OFD packet to send [16:25:26]OFD Sender: No OFD packet to send [16:25:31]OFD Sender: No OFD packet to send [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]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:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:44]accept exits with 9 [16:36:44]New connection [16:36:44]New thread 3067366756 created [16:36:44]Thread 3067510116 joined [16:36:44]Waiting for new connection... [16:36:44] Sock 9.Parse request [16:36:44]Sock 9.Check first char [16:36:44]Sock 9.First char is OK [16:36:44]request: POST /json_proto HTTP/1.0 [16:36:44]Method: POST [16:36:44]URL: /json_proto [16:36:44]Method is POST - this is cgi request [16:36:44]url: /json_proto [16:36:44]query_string will be loaded in cgi processing [16:36:44]execute_cgi json_proto POST (null) [16:36:44]execute_cgi path=json_proto method=POST [16:36:44]POST find Content-Length [16:36:44]Host: 172.17.39.67:8080 [16:36:44]Content-Length: 807 [16:36:44]Content-Type: application/json [16:36:44] [16:36:44]POST finish read [16:36:44]Found Content-Length = 807 [16:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:44]execute_script... [16:36: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)1319143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:44]POST & json_proto [16:36:44]process_json_proto [16:36:44]json parsed OK: [16:36:44]protocol is kg_v1.0 [16:36:44]action value=close_receipt [16:36:44]process_action close_receipt [16:36:44]cmd_close_receipt [16:36:44]MH_GetDate [16:36:44]Write to MH i2c: F0 00 00 A8 12 A9 [16:36:44]Write i2c OK [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: F0 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: F0 09 00 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: F0 09 00 A8 12 00 1D AD 92 66 86 7C 92 66 6E [16:36:44]GetLastDocTimeStamp 1720887599 [16:36:44]current date 1720888605 [16:36:44]FM_GetShiftState [16:36:44]SAM_PROTO_GetShiftState [16:36:44]wFMCommunicate request_size=4 [16:36:44]MH_SAM_APDU [16:36:44]CAPDU: 80 13 01 00 [16:36:44]Write to MH i2c: E2 08 00 A9 12 80 13 01 00 00 00 00 00 38 [16:36:44]Write i2c OK [16:36:44]MH_I2C_Read... [16:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:44]Read from MH i2c: E2 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: E2 0E 00 [16:36:44]MH_I2C_Read... [16:36:44]Read from MH i2c: E2 0E 00 A9 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 32 [16:36:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:36:44]wFMCommunicate OK [16:36:44]SAM_PROTO_GetShiftState done [16:36:44]FM_GetShiftState done [16:36:44]opened in 1720828979 [16:36:44]opened+sec_in_day 1720915379 [16:36:44]quantity*price = 99970 [16:36:44]sum+1 = 99971 [16:36:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.70 НСП 1% : 8.85 НДС 12% : 106.16 Наличными: 0.00 Безнал.: 999.70 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 249 13.07.2024 16:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162581 ФПД: 28849281618328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T163645&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162581&fm=28849281618328&tin=02508201610067®Number=0000000000090858&sum=99970 [16:36:45]StoreToDocumentArchive [16:36:45]shift 462 fd 162581 [16:36:45]save to /storage/0462/doc_00162581 [16:36:45]save last doc name /storage/0462/doc_00162581 to /storage/kkm_last_doc_name [16:36:45]save OK [16:36:45]Clear old archive folders... [16:36:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:36:45]tlvbuf is B6FDD100 [16:36:45]SAM_PROTO_ClearQueue [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 09 00 00 [16:36:45]Write to MH i2c: E2 08 00 B6 12 80 09 00 00 00 00 00 00 3A [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 B6 12 00 90 00 3C [16:36:45]RAPDU: 90 00 [16:36:45]wFMCommunicate OK [16:36:45]SAM_PROTO_ClearQueue done [16:36:45]KKMCreateOFDPacket [16:36:45]OFDProtocolAddRootSTLVToBuf [16:36:45]FM_MakeSignedData [16:36:45]FM_MakeSignedData [16:36:45]SAM_PROTO_SignData [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 0D 01 02 [16:36:45]Write to MH i2c: E2 08 00 B7 12 80 0D 01 02 00 00 00 00 42 [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 B7 12 00 90 00 3D [16:36:45]RAPDU: 90 00 [16:36:45]wFMCommunicate OK [16:36:45]wFMCommunicate request_size=255 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1D AD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7B 02 00 35 04 06 00 [16:36:45]Write to MH i2c: E2 02 01 B8 12 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1D AD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7B 02 00 35 04 06 00 00 00 60 [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 B8 12 00 90 00 3E [16:36:45]RAPDU: 90 00 [16:36:45]wFMCommunicate OK [16:36:45]wFMCommunicate request_size=11 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 0D 02 02 06 1A 3C FF 2E D1 98 [16:36:45]Write to MH i2c: E2 0E 00 B9 12 80 0D 02 02 06 00 1A 3C FF 2E D1 98 00 00 3D [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 03 00 B9 12 00 90 00 3F [16:36:45]RAPDU: 90 00 [16:36:45]wFMCommunicate OK [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 0D 03 02 [16:36:45]Write to MH i2c: E2 08 00 BA 12 80 0D 03 02 00 00 00 00 47 [16:36:45]Write i2c OK [16:36:45]MH_I2C_Read... [16:36:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:45]Read from MH i2c: E2 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 0B 00 [16:36:45]MH_I2C_Read... [16:36:45]Read from MH i2c: E2 0B 00 BA 12 00 8E 12 E2 DE CE 7C 31 2A 90 00 4D [16:36:45]RAPDU: 8E 12 E2 DE CE 7C 31 2A 90 00 [16:36:45]wFMCommunicate OK [16:36:45]SAM_PROTO_SignData done [16:36:45]FM_MakeSignedData done [16:36:45]CreateOFDProtocolMessage [16:36:45]wFMCommunicate request_size=4 [16:36:45]MH_SAM_APDU [16:36:45]CAPDU: 80 11 00 00 [16:36:45]Write to MH i2c: E2 08 00 BB 12 80 11 00 00 00 00 00 00 47 [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:46]Read from MH i2c: E2 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 17 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: E2 17 00 BB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A7 [16:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:36:46]wFMCommunicate OK [16:36:46]CreateOFDProtocolMessage done [16:36:46]OFDSenderStorePacket 162581 [16:36:46]StoreOFDPacket docnum=162581 [16:36:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 01 18 08 01 02 D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1D AD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7B 02 00 35 04 06 00 1A 3C FF 2E D1 98 8E 12 E2 DE CE 7C 31 2A [16:36:46]CheckFolder [16:36:46]dirname=/storage/ofd_packets [16:36:46]CheckFolder done [16:36:46]ProducePacketName [16:36:46]name=ofd_packets/00162581 [16:36:46]NVStorageSaveData ofd_packets/00162581 [16:36:46]File name is /storage/ofd_packets/00162581 [16:36:46]Write 302 bytes [16:36:46]NVStorageSaveData done [16:36:46]OFDSenderStorePacket done [16:36:46]KKMCreateOFDPacket done [16:36:46]NVStorageSaveData kkm_last_timestamp [16:36:46]File name is /storage/kkm_last_timestamp [16:36:46]Write 4 bytes [16:36:46]NVStorageSaveData done [16:36:46]ExternCall_PrintAddStr [16:36:46]wPrintStart [16:36:46]Write to MH i2c: 01 00 00 BC 12 CE [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 BC 12 00 00 00 00 00 FF 0F E3 [16:36:46]RasterBufferAndPrint [16:36:46]line Счет N : (1)1319143 [16:36:46]line ИНН: 02508201610067 [16:36:46]line Контрольно-Кассовый Чек [16:36:46]line ПРОДАЖА [16:36:46]line ТРК (МРК, ГНК) : 41 [16:36:46]line Товар: 2710194210 [16:36:46]line ДТ(л)-К-5 [16:36:46]line 13.770 * 72.60 [16:36:46]line = 999.70 [16:36:46]line НДС 12% НСП 1% [16:36:46]line > о реализуемом товаре [16:36:46]line ИТОГО: 999.70 [16:36:46]line НСП 1% : 8.85 [16:36:46]line НДС 12% : 106.16 [16:36:46]line Наличными: 0.00 [16:36:46]line Безнал.: 999.70 [16:36:46]line Место: АЗС № 140 "Партнер Нефть" [16:36:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:36:46]line СНО: Общий режим [16:36:46]line Чек 249 13.07.2024 16:36 [16:36:46]line Смена: 462 ФФД: 1.0 [16:36:46]line ЗНМ: 0300000129 [16:36:46]line РНМ: 0000000000090858 [16:36:46]line Версия ККМ: 001 [16:36:46]line Платежная система: O! деньги [16:36:46]line ФМ: 0000000000874899 [16:36:46]line ФД: 162581 [16:36:46]line ФПД: 28849281618328 [16:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T163645&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162581&fm=28849281618328&tin=02508201610067®Number=0000000000090858&sum=99970 [16:36:46]written 0, free lines is 4095 [16:36:46]OFD Sender: Processing packet 162581 [packets to send 106, broken 105] [16:36:46]ProducePacketName [16:36:46]name=ofd_packets/00162581 [16:36:46]OFD Sender: To server: pG, [16:36:46]CommunicateWithHost lk.salyk.kg:30040 [16:36:46]ConnectInit lk.salyk.kg [16:36:46]Connected sock=10 [16:36:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 01 18 08 01 02 D9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 00 00 00 F4 03 04 00 1D AD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7B 02 00 35 04 06 00 1A 3C FF 2E D1 98 8E 12 E2 DE CE 7C 31 2A [16:36:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 44 87 47 00 04 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 15 7B 02 00 F4 03 04 00 2B 59 92 66 B6 04 01 00 00 CC 36 0E 2A 81 E4 AE E0 [16:36:46]CommunicateWithHost err = 0 [16:36:46]CheckOFDResponse [16:36:46]1017 (14) - 77093643461234 [16:36:46]1041 (16) - 0000000000874899 [16:36:46]1040 (4) - 162581 [16:36:46]1012 (4) - 13.07.2024 10:38 [16:36:46]1206 (1) - 0 [16:36:46]OFD Sender: Remove packet 162581 [16:36:46]ProducePacketName [16:36:46]name=ofd_packets/00162581 [16:36:46]NVStorageDeleteData [16:36:46]Write to MH i2c: 01 00 00 E6 12 F8 [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: 01 07 00 E6 12 00 00 00 00 00 F3 0C FE [16:36:46]RasterBufferAndPrint [16:36:46]line [16:36:46]line [16:36:46]line [16:36:46]line [16:36:46]line [16:36:46]written 0, free lines is 3321 [16:36:46]MH_Cut [16:36:46]Write to MH i2c: D1 01 00 ED 12 01 D1 [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: D1 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: D1 01 00 [16:36:46]MH_I2C_Read... [16:36:46]Read from MH i2c: D1 01 00 ED 12 00 D0 [16:36:46]Write to MH i2c: 01 00 00 EE 12 00 [16:36:46]Write i2c OK [16:36:46]MH_I2C_Read... [16:36:47]OFD Sender: No OFD packet to send [16:36:47]*** Cut start [16:36:47]*** Purtial cut [16:36:47]*** Stage 1: CUTSNS_PIN = 1 [16:36:47]Read from MH i2c: 01 [16:36:47]MH_I2C_Read... [16:36:47]*** Stop cut motor [16:36:47]*** Cut end [16:36:47]Read from MH i2c: 01 07 00 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: 01 07 00 EE 12 00 00 00 00 00 FF 0F 15 [16:36:47]process_action close_receipt done [16:36:47]requested_data is exist [16:36:47]produce_requested_data [16:36:47]requested_item fm.sn is exist - process it [16:36:47]wFMCommunicate request_size=4 [16:36:47]MH_SAM_APDU [16:36:47]CAPDU: 80 11 00 00 [16:36:47]Write to MH i2c: E2 08 00 EF 12 80 11 00 00 00 00 00 00 7B [16:36:47]Write i2c OK [16:36:47]MH_I2C_Read... [16:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:47]Read from MH i2c: E2 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: E2 17 00 [16:36:47]MH_I2C_Read... [16:36:47]Read from MH i2c: E2 17 00 EF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DB [16:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:36:47]wFMCommunicate OK [16:36:47]requested_item fd.num is exist - process it [16:36:47]SAM_PROTO_GetFieldsCounters [16:36:47]wFMCommunicate request_size=4 [16:36:47]MH_SAM_APDU [16:36:47]CAPDU: 80 13 00 00 [16:36:47]Write to MH i2c: E2 08 00 F0 12 80 13 00 00 00 00 00 00 7E [16:36:47]Write i2c OK [16:36:47]MH_I2C_Read... [16:36:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:48]Read from MH i2c: E2 [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: E2 62 00 [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: E2 62 00 F0 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 15 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [16:36:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 15 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:48]wFMCommunicate OK [16:36:48]SAM_PROTO_GetFieldsCounters done [16:36:48]requested_item shift.num is exist - process it [16:36:48]requested_item shift.opened is exist - process it [16:36:48]req_shift_opened [16:36:48]FM_GetShiftState [16:36:48]SAM_PROTO_GetShiftState [16:36:48]wFMCommunicate request_size=4 [16:36:48]MH_SAM_APDU [16:36:48]CAPDU: 80 13 01 00 [16:36:48]Write to MH i2c: E2 08 00 F1 12 80 13 01 00 00 00 00 00 80 [16:36:48]Write i2c OK [16:36:48]MH_I2C_Read... [16:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:48]Read from MH i2c: E2 [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: E2 0E 00 [16:36:48]MH_I2C_Read... [16:36:48]Read from MH i2c: E2 0E 00 F1 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7A [16:36:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:36:48]wFMCommunicate OK [16:36:48]SAM_PROTO_GetShiftState done [16:36:48]FM_GetShiftState done [16:36:48]req_shift_opened done [16:36:48]requested_item shift.open_date is exist - process it [16:36:48]req_shift_open_date [16:36:48]req_shift_open_date done [16:36:48]produce_requested_data done [16:36:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162581,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:36:48]process_action_free close_receipt [16:36:48]json_value_free [16:36:48]json_value_free done [16:36:48]process_json_proto returns [16:36:48]Send response to host [16:36:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162581,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:36:48]free response buf [16:36:48]execute_script done [16:36:48]execute_script returns [16:36:48]free content buf [16:36:48]Sock 9.Close socket [16:36:48]Sock 9.Thread stoped [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [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:42:02]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]OFD Sender: No OFD packet to send [16:46:52]OFD Sender: No OFD packet to send [16:46:57]OFD Sender: No OFD packet to send [16:47:02]OFD Sender: No OFD packet to send [16:47:07]OFD Sender: No OFD packet to send [16:47:12]OFD Sender: No OFD packet to send [16:47:17]OFD Sender: No OFD packet to send [16:47:22]OFD Sender: No OFD packet to send [16:47:27]OFD Sender: No OFD packet to send [16:47:32]OFD Sender: No OFD packet to send [16:47:37]OFD Sender: No OFD packet to send [16:47:42]OFD Sender: No OFD packet to send [16:47:47]OFD Sender: No OFD packet to send [16:47:52]OFD Sender: No OFD packet to send [16:47:57]OFD Sender: No OFD packet to send [16:48:02]OFD Sender: No OFD packet to send [16:48:07]OFD Sender: No OFD packet to send [16:48:12]OFD Sender: No OFD packet to send [16:48:17]OFD Sender: No OFD packet to send [16:48:22]OFD Sender: No OFD packet to send [16:48:27]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:42]OFD Sender: No OFD packet to send [16:48:47]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:01]accept exits with 7 [16:53:01]New connection [16:53:01]New thread 3067510116 created [16:53:01]Thread 3067366756 joined [16:53:01]Waiting for new connection... [16:53:01] Sock 7.Parse request [16:53:01]Sock 7.Check first char [16:53:01]Sock 7.First char is OK [16:53:01]request: POST /json_proto HTTP/1.0 [16:53:01]Method: POST [16:53:01]URL: /json_proto [16:53:01]Method is POST - this is cgi request [16:53:01]url: /json_proto [16:53:01]query_string will be loaded in cgi processing [16:53:01]execute_cgi json_proto POST (null) [16:53:01]execute_cgi path=json_proto method=POST [16:53:01]POST find Content-Length [16:53:01]Host: 172.17.39.67:8080 [16:53:01]Content-Length: 678 [16:53:01]Content-Type: application/json [16:53:01] [16:53:01]POST finish read [16:53:01]Found Content-Length = 678 [16:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:01]execute_script... [16:53: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)1319144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:01]POST & json_proto [16:53:01]process_json_proto [16:53:01]json parsed OK: [16:53:01]protocol is kg_v1.0 [16:53:01]action value=close_receipt [16:53:01]process_action close_receipt [16:53:01]cmd_close_receipt [16:53:01]MH_GetDate [16:53:01]Write to MH i2c: F0 00 00 F2 12 F3 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: F0 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: F0 09 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: F0 09 00 F2 12 00 EE B0 92 66 86 7C 92 66 8C [16:53:01]GetLastDocTimeStamp 1720888605 [16:53:01]current date 1720889582 [16:53:01]FM_GetShiftState [16:53:01]SAM_PROTO_GetShiftState [16:53:01]wFMCommunicate request_size=4 [16:53:01]MH_SAM_APDU [16:53:01]CAPDU: 80 13 01 00 [16:53:01]Write to MH i2c: E2 08 00 F3 12 80 13 01 00 00 00 00 00 82 [16:53:01]Write i2c OK [16:53:01]MH_I2C_Read... [16:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:01]Read from MH i2c: E2 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 0E 00 [16:53:01]MH_I2C_Read... [16:53:01]Read from MH i2c: E2 0E 00 F3 12 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7C [16:53:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:53:01]wFMCommunicate OK [16:53:01]SAM_PROTO_GetShiftState done [16:53:01]FM_GetShiftState done [16:53:01]opened in 1720828979 [16:53:01]opened+sec_in_day 1720915379 [16:53:01]quantity*price = 50056 [16:53:01]sum+1 = 50058 [16:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 250 13.07.2024 16:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162582 ФПД: 195438294800854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165302&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162582&fm=195438294800854&tin=02508201610067®Number=0000000000090858&sum=50000 [16:53:02]StoreToDocumentArchive [16:53:02]shift 462 fd 162582 [16:53:02]save to /storage/0462/doc_00162582 [16:53:02]save last doc name /storage/0462/doc_00162582 to /storage/kkm_last_doc_name [16:53:02]save OK [16:53:02]Clear old archive folders... [16:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:02]tlvbuf is 006C8690 [16:53:02]SAM_PROTO_ClearQueue [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 09 00 00 [16:53:02]Write to MH i2c: E2 08 00 00 13 80 09 00 00 00 00 00 00 85 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 03 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 03 00 00 13 00 90 00 87 [16:53:02]RAPDU: 90 00 [16:53:02]wFMCommunicate OK [16:53:02]SAM_PROTO_ClearQueue done [16:53:02]KKMCreateOFDPacket [16:53:02]OFDProtocolAddRootSTLVToBuf [16:53:02]FM_MakeSignedData [16:53:02]FM_MakeSignedData [16:53:02]SAM_PROTO_SignData [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 0D 01 02 [16:53:02]Write to MH i2c: E2 08 00 01 13 80 0D 01 02 00 00 00 00 8D [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 03 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 03 00 01 13 00 90 00 88 [16:53:02]RAPDU: 90 00 [16:53:02]wFMCommunicate OK [16:53:02]wFMCommunicate request_size=255 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 EE B0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7B 02 00 35 04 06 00 B1 [16:53:02]Write to MH i2c: E2 02 01 02 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 EE B0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7B 02 00 35 04 06 00 B1 00 00 EC [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 03 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 03 00 02 13 00 90 00 89 [16:53:02]RAPDU: 90 00 [16:53:02]wFMCommunicate OK [16:53:02]wFMCommunicate request_size=10 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 0D 02 02 05 C0 06 23 19 D6 [16:53:02]Write to MH i2c: E2 0D 00 03 13 80 0D 02 02 05 00 C0 06 23 19 D6 00 00 72 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:02]Read from MH i2c: E2 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 03 00 [16:53:02]MH_I2C_Read... [16:53:02]Read from MH i2c: E2 03 00 03 13 00 90 00 8A [16:53:02]RAPDU: 90 00 [16:53:02]wFMCommunicate OK [16:53:02]wFMCommunicate request_size=4 [16:53:02]MH_SAM_APDU [16:53:02]CAPDU: 80 0D 03 02 [16:53:02]Write to MH i2c: E2 08 00 04 13 80 0D 03 02 00 00 00 00 92 [16:53:02]Write i2c OK [16:53:02]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 0B 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 0B 00 04 13 00 14 D6 8F A1 16 C1 48 88 90 00 54 [16:53:03]RAPDU: 14 D6 8F A1 16 C1 48 88 90 00 [16:53:03]wFMCommunicate OK [16:53:03]SAM_PROTO_SignData done [16:53:03]FM_MakeSignedData done [16:53:03]CreateOFDProtocolMessage [16:53:03]wFMCommunicate request_size=4 [16:53:03]MH_SAM_APDU [16:53:03]CAPDU: 80 11 00 00 [16:53:03]Write to MH i2c: E2 08 00 05 13 80 11 00 00 00 00 00 00 92 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:03]Read from MH i2c: E2 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 17 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: E2 17 00 05 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F2 [16:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:53:03]wFMCommunicate OK [16:53:03]CreateOFDProtocolMessage done [16:53:03]OFDSenderStorePacket 162582 [16:53:03]StoreOFDPacket docnum=162582 [16:53:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F4 37 07 01 C0 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 EE B0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7B 02 00 35 04 06 00 B1 C0 06 23 19 D6 14 D6 8F A1 16 C1 48 88 [16:53:03]CheckFolder [16:53:03]dirname=/storage/ofd_packets [16:53:03]CheckFolder done [16:53:03]ProducePacketName [16:53:03]name=ofd_packets/00162582 [16:53:03]NVStorageSaveData ofd_packets/00162582 [16:53:03]File name is /storage/ofd_packets/00162582 [16:53:03]Write 301 bytes [16:53:03]NVStorageSaveData done [16:53:03]OFDSenderStorePacket done [16:53:03]KKMCreateOFDPacket done [16:53:03]NVStorageSaveData kkm_last_timestamp [16:53:03]File name is /storage/kkm_last_timestamp [16:53:03]Write 4 bytes [16:53:03]NVStorageSaveData done [16:53:03]ExternCall_PrintAddStr [16:53:03]wPrintStart [16:53:03]Write to MH i2c: 01 00 00 06 13 19 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 07 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 07 00 06 13 00 00 00 00 00 FF 0F 2E [16:53:03]RasterBufferAndPrint [16:53:03]line Счет N : (1)1319144 [16:53:03]line ИНН: 02508201610067 [16:53:03]line Контрольно-Кассовый Чек [16:53:03]line ПРОДАЖА [16:53:03]line ТРК (МРК, ГНК) : 53 [16:53:03]line Товар: 2710124130 [16:53:03]line Аи-92-К-5 [16:53:03]line 7.550 * 66.30 [16:53:03]line = 500.57 [16:53:03]line НДС 12% НСП 1% [16:53:03]line > о реализуемом товаре [16:53:03]line ОКРУГЛЕНИЕ: -0.57 [16:53:03]line ИТОГО: 500.00 [16:53:03]line Внесено: 500.00 [16:53:03]line СДАЧА: 0.00 [16:53:03]line НСП 1% : 4.43 [16:53:03]line НДС 12% : 53.16 [16:53:03]line Наличными: 500.00 [16:53:03]line Безнал.: 0.00 [16:53:03]line Место: АЗС № 140 "Партнер Нефть" [16:53:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:53:03]line СНО: Общий режим [16:53:03]line Чек 250 13.07.2024 16:53 [16:53:03]line Смена: 462 ФФД: 1.0 [16:53:03]line ЗНМ: 0300000129 [16:53:03]line РНМ: 0000000000090858 [16:53:03]line Версия ККМ: 001 [16:53:03]line ФМ: 0000000000874899 [16:53:03]line ФД: 162582 [16:53:03]line ФПД: 195438294800854 [16:53:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165302&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162582&fm=195438294800854&tin=02508201610067®Number=0000000000090858&sum=50000 [16:53:03]written 0, free lines is 4095 [16:53:03]OFD Sender: Processing packet 162582 [packets to send 106, broken 105] [16:53:03]ProducePacketName [16:53:03]name=ofd_packets/00162582 [16:53:03]OFD Sender: To server: pG, [16:53:03]CommunicateWithHost lk.salyk.kg:30040 [16:53:03]ConnectInit lk.salyk.kg [16:53:03]Connected sock=11 [16:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F4 37 07 01 C0 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 EE B0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7B 02 00 35 04 06 00 B1 C0 06 23 19 D6 14 D6 8F A1 16 C1 48 88 [16:53:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E B2 47 00 33 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 16 7B 02 00 F4 03 04 00 FC 5C 92 66 B6 04 01 00 00 73 28 0C E6 9C 4A 1B 0B [16:53:03]CommunicateWithHost err = 0 [16:53:03]CheckOFDResponse [16:53:03]1017 (14) - 77093643461234 [16:53:03]1041 (16) - 0000000000874899 [16:53:03]1040 (4) - 162582 [16:53:03]1012 (4) - 13.07.2024 10:54 [16:53:03]1206 (1) - 0 [16:53:03]OFD Sender: Remove packet 162582 [16:53:03]ProducePacketName [16:53:03]name=ofd_packets/00162582 [16:53:03]NVStorageDeleteData [16:53:03]Write to MH i2c: 01 00 00 31 13 44 [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 07 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: 01 07 00 31 13 00 00 00 00 00 E4 0C 3B [16:53:03]RasterBufferAndPrint [16:53:03]line [16:53:03]line [16:53:03]line [16:53:03]line [16:53:03]line [16:53:03]written 0, free lines is 3306 [16:53:03]MH_Cut [16:53:03]Write to MH i2c: D1 01 00 38 13 01 1D [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: D1 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: D1 01 00 [16:53:03]MH_I2C_Read... [16:53:03]Read from MH i2c: D1 01 00 38 13 00 1C [16:53:03]Write to MH i2c: 01 00 00 39 13 4C [16:53:03]Write i2c OK [16:53:03]MH_I2C_Read... [16:53:03]OFD Sender: No OFD packet to send [16:53:04]*** Cut start [16:53:04]*** Purtial cut [16:53:04]*** CUTSNS_PIN = 0 [16:53:04]*** Stage 1: CUTSNS_PIN = 1 [16:53:06]Read from MH i2c: 01 [16:53:06]MH_I2C_Read... [16:53:06]*** Stop cut motor [16:53:06]*** Cut end [16:53:06]Read from MH i2c: 01 07 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: 01 07 00 39 13 00 00 00 00 00 FF 0F 61 [16:53:06]process_action close_receipt done [16:53:06]requested_data is exist [16:53:06]produce_requested_data [16:53:06]requested_item fm.sn is exist - process it [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 11 00 00 [16:53:06]Write to MH i2c: E2 08 00 3A 13 80 11 00 00 00 00 00 00 C7 [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 17 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 17 00 3A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 27 [16:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:53:06]wFMCommunicate OK [16:53:06]requested_item fd.num is exist - process it [16:53:06]SAM_PROTO_GetFieldsCounters [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 13 00 00 [16:53:06]Write to MH i2c: E2 08 00 3B 13 80 13 00 00 00 00 00 00 CA [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 62 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 62 00 3B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 16 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [16:53:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 16 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:06]wFMCommunicate OK [16:53:06]SAM_PROTO_GetFieldsCounters done [16:53:06]requested_item shift.num is exist - process it [16:53:06]requested_item shift.opened is exist - process it [16:53:06]req_shift_opened [16:53:06]FM_GetShiftState [16:53:06]SAM_PROTO_GetShiftState [16:53:06]wFMCommunicate request_size=4 [16:53:06]MH_SAM_APDU [16:53:06]CAPDU: 80 13 01 00 [16:53:06]Write to MH i2c: E2 08 00 3C 13 80 13 01 00 00 00 00 00 CC [16:53:06]Write i2c OK [16:53:06]MH_I2C_Read... [16:53:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:06]Read from MH i2c: E2 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 0E 00 [16:53:06]MH_I2C_Read... [16:53:06]Read from MH i2c: E2 0E 00 3C 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C6 [16:53:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:53:06]wFMCommunicate OK [16:53:06]SAM_PROTO_GetShiftState done [16:53:06]FM_GetShiftState done [16:53:06]req_shift_opened done [16:53:06]requested_item shift.open_date is exist - process it [16:53:06]req_shift_open_date [16:53:06]req_shift_open_date done [16:53:06]produce_requested_data done [16:53:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162582,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:53:06]process_action_free close_receipt [16:53:06]json_value_free [16:53:06]json_value_free done [16:53:06]process_json_proto returns [16:53:06]Send response to host [16:53:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162582,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:53:06]free response buf [16:53:06]execute_script done [16:53:06]execute_script returns [16:53:06]free content buf [16:53:06]Sock 7.Close socket [16:53:06]Sock 7.Thread stoped [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:06]accept exits with 9 [16:56:06]New connection [16:56:06]New thread 3067366756 created [16:56:06]Thread 3067510116 joined [16:56:06]Waiting for new connection... [16:56:06] Sock 9.Parse request [16:56:06]Sock 9.Check first char [16:56:06]Sock 9.First char is OK [16:56:06]request: POST /json_proto HTTP/1.0 [16:56:06]Method: POST [16:56:06]URL: /json_proto [16:56:06]Method is POST - this is cgi request [16:56:06]url: /json_proto [16:56:06]query_string will be loaded in cgi processing [16:56:06]execute_cgi json_proto POST (null) [16:56:06]execute_cgi path=json_proto method=POST [16:56:06]POST find Content-Length [16:56:06]Host: 172.17.39.67:8080 [16:56:06]Content-Length: 683 [16:56:06]Content-Type: application/json [16:56:06] [16:56:06]POST finish read [16:56:06]Found Content-Length = 683 [16:56:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:06]execute_script... [16:56: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)1319145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:06]POST & json_proto [16:56:06]process_json_proto [16:56:06]json parsed OK: [16:56:06]protocol is kg_v1.0 [16:56:06]action value=close_receipt [16:56:06]process_action close_receipt [16:56:06]cmd_close_receipt [16:56:06]MH_GetDate [16:56:06]Write to MH i2c: F0 00 00 3D 13 3F [16:56:06]Write i2c OK [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: F0 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: F0 09 00 [16:56:06]MH_I2C_Read... [16:56:06]Read from MH i2c: F0 09 00 3D 13 00 A7 B1 92 66 86 7C 92 66 92 [16:56:06]GetLastDocTimeStamp 1720889582 [16:56:06]current date 1720889767 [16:56:06]FM_GetShiftState [16:56:06]SAM_PROTO_GetShiftState [16:56:06]wFMCommunicate request_size=4 [16:56:06]MH_SAM_APDU [16:56:06]CAPDU: 80 13 01 00 [16:56:06]Write to MH i2c: E2 08 00 3E 13 80 13 01 00 00 00 00 00 CE [16:56:06]Write i2c OK [16:56:07]MH_I2C_Read... [16:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:07]Read from MH i2c: E2 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: E2 0E 00 [16:56:07]MH_I2C_Read... [16:56:07]Read from MH i2c: E2 0E 00 3E 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C8 [16:56:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:56:07]wFMCommunicate OK [16:56:07]SAM_PROTO_GetShiftState done [16:56:07]FM_GetShiftState done [16:56:07]opened in 1720828979 [16:56:07]opened+sec_in_day 1720915379 [16:56:07]quantity*price = 100046 [16:56:07]sum+1 = 100048 [16:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 251 13.07.2024 16:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162583 ФПД: 279497611410449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165607&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162583&fm=279497611410449&tin=02508201610067®Number=0000000000090858&sum=100000 [16:56:08]StoreToDocumentArchive [16:56:08]shift 462 fd 162583 [16:56:08]save to /storage/0462/doc_00162583 [16:56:08]save last doc name /storage/0462/doc_00162583 to /storage/kkm_last_doc_name [16:56:08]save OK [16:56:08]Clear old archive folders... [16:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:56:08]tlvbuf is B6E30750 [16:56:08]SAM_PROTO_ClearQueue [16:56:08]wFMCommunicate request_size=4 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 09 00 00 [16:56:08]Write to MH i2c: E2 08 00 4B 13 80 09 00 00 00 00 00 00 D0 [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 4B 13 00 90 00 D2 [16:56:08]RAPDU: 90 00 [16:56:08]wFMCommunicate OK [16:56:08]SAM_PROTO_ClearQueue done [16:56:08]KKMCreateOFDPacket [16:56:08]OFDProtocolAddRootSTLVToBuf [16:56:08]FM_MakeSignedData [16:56:08]FM_MakeSignedData [16:56:08]SAM_PROTO_SignData [16:56:08]wFMCommunicate request_size=4 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 0D 01 02 [16:56:08]Write to MH i2c: E2 08 00 4C 13 80 0D 01 02 00 00 00 00 D8 [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 4C 13 00 90 00 D3 [16:56:08]RAPDU: 90 00 [16:56:08]wFMCommunicate OK [16:56:08]wFMCommunicate request_size=255 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FB 00 00 00 F4 03 04 00 A7 B1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7B 02 00 35 04 06 00 FE [16:56:08]Write to MH i2c: E2 02 01 4D 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FB 00 00 00 F4 03 04 00 A7 B1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7B 02 00 35 04 06 00 FE 00 00 90 [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 4D 13 00 90 00 D4 [16:56:08]RAPDU: 90 00 [16:56:08]wFMCommunicate OK [16:56:08]wFMCommunicate request_size=10 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 0D 02 02 05 33 9B D7 FC 11 [16:56:08]Write to MH i2c: E2 0D 00 4E 13 80 0D 02 02 05 00 33 9B D7 FC 11 00 00 97 [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 03 00 4E 13 00 90 00 D5 [16:56:08]RAPDU: 90 00 [16:56:08]wFMCommunicate OK [16:56:08]wFMCommunicate request_size=4 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 0D 03 02 [16:56:08]Write to MH i2c: E2 08 00 4F 13 80 0D 03 02 00 00 00 00 DD [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 0B 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 0B 00 4F 13 00 69 DA 1B 3C E3 EB 47 96 90 00 23 [16:56:08]RAPDU: 69 DA 1B 3C E3 EB 47 96 90 00 [16:56:08]wFMCommunicate OK [16:56:08]SAM_PROTO_SignData done [16:56:08]FM_MakeSignedData done [16:56:08]CreateOFDProtocolMessage [16:56:08]wFMCommunicate request_size=4 [16:56:08]MH_SAM_APDU [16:56:08]CAPDU: 80 11 00 00 [16:56:08]Write to MH i2c: E2 08 00 50 13 80 11 00 00 00 00 00 00 DD [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:08]Read from MH i2c: E2 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 17 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: E2 17 00 50 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3D [16:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:56:08]wFMCommunicate OK [16:56:08]CreateOFDProtocolMessage done [16:56:08]OFDSenderStorePacket 162583 [16:56:08]StoreOFDPacket docnum=162583 [16:56:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 29 54 07 01 B5 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FB 00 00 00 F4 03 04 00 A7 B1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7B 02 00 35 04 06 00 FE 33 9B D7 FC 11 69 DA 1B 3C E3 EB 47 96 [16:56:08]CheckFolder [16:56:08]dirname=/storage/ofd_packets [16:56:08]CheckFolder done [16:56:08]ProducePacketName [16:56:08]name=ofd_packets/00162583 [16:56:08]NVStorageSaveData ofd_packets/00162583 [16:56:08]File name is /storage/ofd_packets/00162583 [16:56:08]Write 301 bytes [16:56:08]NVStorageSaveData done [16:56:08]OFDSenderStorePacket done [16:56:08]KKMCreateOFDPacket done [16:56:08]NVStorageSaveData kkm_last_timestamp [16:56:08]File name is /storage/kkm_last_timestamp [16:56:08]Write 4 bytes [16:56:08]NVStorageSaveData done [16:56:08]ExternCall_PrintAddStr [16:56:08]wPrintStart [16:56:08]Write to MH i2c: 01 00 00 51 13 64 [16:56:08]Write i2c OK [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: 01 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: 01 07 00 [16:56:08]MH_I2C_Read... [16:56:08]Read from MH i2c: 01 07 00 51 13 00 00 00 00 00 FF 0F 79 [16:56:08]RasterBufferAndPrint [16:56:08]line Счет N : (1)1319145 [16:56:08]line ИНН: 02508201610067 [16:56:08]line Контрольно-Кассовый Чек [16:56:08]line ПРОДАЖА [16:56:08]line ТРК (МРК, ГНК) : 63 [16:56:08]line Товар: 2710124130 [16:56:08]line Аи-92-К-5 [16:56:08]line 15.090 * 66.30 [16:56:08]line = 1000.47 [16:56:08]line НДС 12% НСП 1% [16:56:08]line > о реализуемом товаре [16:56:08]line ОКРУГЛЕНИЕ: -0.47 [16:56:08]line ИТОГО: 1000.00 [16:56:08]line Внесено: 1000.00 [16:56:08]line СДАЧА: 0.00 [16:56:08]line НСП 1% : 8.85 [16:56:08]line НДС 12% : 106.24 [16:56:08]line Наличными: 1000.00 [16:56:08]line Безнал.: 0.00 [16:56:08]line Место: АЗС № 140 "Партнер Нефть" [16:56:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:56:08]line СНО: Общий режим [16:56:08]line Чек 251 13.07.2024 16:56 [16:56:08]line Смена: 462 ФФД: 1.0 [16:56:08]line ЗНМ: 0300000129 [16:56:08]line РНМ: 0000000000090858 [16:56:08]line Версия ККМ: 001 [16:56:08]line ФМ: 0000000000874899 [16:56:08]line ФД: 162583 [16:56:08]line ФПД: 279497611410449 [16:56:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165607&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162583&fm=279497611410449&tin=02508201610067®Number=0000000000090858&sum=100000 [16:56:09]OFD Sender: Processing packet 162583 [packets to send 106, broken 105] [16:56:09]ProducePacketName [16:56:09]name=ofd_packets/00162583 [16:56:09]OFD Sender: To server: pG, [16:56:09]CommunicateWithHost lk.salyk.kg:30040 [16:56:09]ConnectInit lk.salyk.kg [16:56:09]written 0, free lines is 4095 [16:56:09]Connected sock=10 [16:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 29 54 07 01 B5 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 FB 00 00 00 F4 03 04 00 A7 B1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7B 02 00 35 04 06 00 FE 33 9B D7 FC 11 69 DA 1B 3C E3 EB 47 96 [16:56:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3A 05 47 00 FA 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 17 7B 02 00 F4 03 04 00 B6 5D 92 66 B6 04 01 00 00 1D BE BF CB EB B6 94 CF [16:56:09]CommunicateWithHost err = 0 [16:56:09]CheckOFDResponse [16:56:09]1017 (14) - 77093643461234 [16:56:09]1041 (16) - 0000000000874899 [16:56:09]1040 (4) - 162583 [16:56:09]1012 (4) - 13.07.2024 10:57 [16:56:09]1206 (1) - 0 [16:56:09]OFD Sender: Remove packet 162583 [16:56:09]ProducePacketName [16:56:09]name=ofd_packets/00162583 [16:56:09]NVStorageDeleteData [16:56:09]Write to MH i2c: 01 00 00 7C 13 8F [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: 01 07 00 7C 13 00 00 00 00 00 F1 0C 93 [16:56:09]RasterBufferAndPrint [16:56:09]line [16:56:09]line [16:56:09]line [16:56:09]line [16:56:09]line [16:56:09]written 0, free lines is 3319 [16:56:09]MH_Cut [16:56:09]Write to MH i2c: D1 01 00 83 13 01 68 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: D1 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: D1 01 00 [16:56:09]MH_I2C_Read... [16:56:09]Read from MH i2c: D1 01 00 83 13 00 67 [16:56:09]Write to MH i2c: 01 00 00 84 13 97 [16:56:09]Write i2c OK [16:56:09]MH_I2C_Read... [16:56:09]OFD Sender: No OFD packet to send [16:56:10]*** Cut start [16:56:10]*** Purtial cut [16:56:10]*** Stage 1: CUTSNS_PIN = 1 [16:56:10]Read from MH i2c: 01 [16:56:10]MH_I2C_Read... [16:56:10]*** Stop cut motor [16:56:10]*** Cut end [16:56:10]Read from MH i2c: 01 07 00 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: 01 07 00 84 13 00 00 00 00 00 FF 0F AC [16:56:10]process_action close_receipt done [16:56:10]requested_data is exist [16:56:10]produce_requested_data [16:56:10]requested_item fm.sn is exist - process it [16:56:10]wFMCommunicate request_size=4 [16:56:10]MH_SAM_APDU [16:56:10]CAPDU: 80 11 00 00 [16:56:10]Write to MH i2c: E2 08 00 85 13 80 11 00 00 00 00 00 00 12 [16:56:10]Write i2c OK [16:56:10]MH_I2C_Read... [16:56:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:10]Read from MH i2c: E2 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: E2 17 00 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: E2 17 00 85 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 72 [16:56:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:56:10]wFMCommunicate OK [16:56:10]requested_item fd.num is exist - process it [16:56:10]SAM_PROTO_GetFieldsCounters [16:56:10]wFMCommunicate request_size=4 [16:56:10]MH_SAM_APDU [16:56:10]CAPDU: 80 13 00 00 [16:56:10]Write to MH i2c: E2 08 00 86 13 80 13 00 00 00 00 00 00 15 [16:56:10]Write i2c OK [16:56:10]MH_I2C_Read... [16:56:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:10]Read from MH i2c: E2 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: E2 62 00 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: E2 62 00 86 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 17 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [16:56:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 17 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:10]wFMCommunicate OK [16:56:10]SAM_PROTO_GetFieldsCounters done [16:56:10]requested_item shift.num is exist - process it [16:56:10]requested_item shift.opened is exist - process it [16:56:10]req_shift_opened [16:56:10]FM_GetShiftState [16:56:10]SAM_PROTO_GetShiftState [16:56:10]wFMCommunicate request_size=4 [16:56:10]MH_SAM_APDU [16:56:10]CAPDU: 80 13 01 00 [16:56:10]Write to MH i2c: E2 08 00 87 13 80 13 01 00 00 00 00 00 17 [16:56:10]Write i2c OK [16:56:10]MH_I2C_Read... [16:56:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:10]Read from MH i2c: E2 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: E2 0E 00 [16:56:10]MH_I2C_Read... [16:56:10]Read from MH i2c: E2 0E 00 87 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 11 [16:56:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:56:10]wFMCommunicate OK [16:56:10]SAM_PROTO_GetShiftState done [16:56:10]FM_GetShiftState done [16:56:10]req_shift_opened done [16:56:10]requested_item shift.open_date is exist - process it [16:56:10]req_shift_open_date [16:56:10]req_shift_open_date done [16:56:10]produce_requested_data done [16:56:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162583,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:56:10]process_action_free close_receipt [16:56:10]json_value_free [16:56:10]json_value_free done [16:56:10]process_json_proto returns [16:56:10]Send response to host [16:56:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162583,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:56:10]free response buf [16:56:10]execute_script done [16:56:10]execute_script returns [16:56:10]free content buf [16:56:10]Sock 9.Close socket [16:56:10]Sock 9.Thread stoped [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]accept exits with 7 [16:56:54]New connection [16:56:54]New thread 3067510116 created [16:56:54]Thread 3067366756 joined [16:56:54]Waiting for new connection... [16:56:54] Sock 7.Parse request [16:56:54]Sock 7.Check first char [16:56:54]Sock 7.First char is OK [16:56:54]request: POST /json_proto HTTP/1.0 [16:56:54]Method: POST [16:56:54]URL: /json_proto [16:56:54]Method is POST - this is cgi request [16:56:54]url: /json_proto [16:56:54]query_string will be loaded in cgi processing [16:56:54]execute_cgi json_proto POST (null) [16:56:54]execute_cgi path=json_proto method=POST [16:56:54]POST find Content-Length [16:56:54]Host: 172.17.39.67:8080 [16:56:54]Content-Length: 684 [16:56:54]Content-Type: application/json [16:56:54] [16:56:54]POST finish read [16:56:54]Found Content-Length = 684 [16:56:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:56:54]execute_script... [16:56: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)1319146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [16:56:54]POST & json_proto [16:56:54]process_json_proto [16:56:54]json parsed OK: [16:56:54]protocol is kg_v1.0 [16:56:54]action value=close_receipt [16:56:54]process_action close_receipt [16:56:54]cmd_close_receipt [16:56:54]MH_GetDate [16:56:54]Write to MH i2c: F0 00 00 88 13 8A [16:56:54]Write i2c OK [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: F0 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: F0 09 00 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: F0 09 00 88 13 00 D6 B1 92 66 86 7C 92 66 0C [16:56:54]GetLastDocTimeStamp 1720889767 [16:56:54]current date 1720889814 [16:56:54]FM_GetShiftState [16:56:54]SAM_PROTO_GetShiftState [16:56:54]wFMCommunicate request_size=4 [16:56:54]MH_SAM_APDU [16:56:54]CAPDU: 80 13 01 00 [16:56:54]Write to MH i2c: E2 08 00 89 13 80 13 01 00 00 00 00 00 19 [16:56:54]Write i2c OK [16:56:54]MH_I2C_Read... [16:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:54]Read from MH i2c: E2 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: E2 0E 00 [16:56:54]MH_I2C_Read... [16:56:54]Read from MH i2c: E2 0E 00 89 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 13 [16:56:54]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:56:54]wFMCommunicate OK [16:56:54]SAM_PROTO_GetShiftState done [16:56:54]FM_GetShiftState done [16:56:54]opened in 1720828979 [16:56:54]opened+sec_in_day 1720915379 [16:56:54]quantity*price = 80005 [16:56:54]sum+1 = 80006 [16:56:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 252 13.07.2024 16:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162584 ФПД: 133521508505482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165654&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162584&fm=133521508505482&tin=02508201610067®Number=0000000000090858&sum=80000 [16:56:55]StoreToDocumentArchive [16:56:55]shift 462 fd 162584 [16:56:55]save to /storage/0462/doc_00162584 [16:56:55]save last doc name /storage/0462/doc_00162584 to /storage/kkm_last_doc_name [16:56:55]save OK [16:56:55]Clear old archive folders... [16:56:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:56:55]tlvbuf is 006B5440 [16:56:55]SAM_PROTO_ClearQueue [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 09 00 00 [16:56:55]Write to MH i2c: E2 08 00 96 13 80 09 00 00 00 00 00 00 1B [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 03 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 03 00 96 13 00 90 00 1D [16:56:55]RAPDU: 90 00 [16:56:55]wFMCommunicate OK [16:56:55]SAM_PROTO_ClearQueue done [16:56:55]KKMCreateOFDPacket [16:56:55]OFDProtocolAddRootSTLVToBuf [16:56:55]FM_MakeSignedData [16:56:55]FM_MakeSignedData [16:56:55]SAM_PROTO_SignData [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 0D 01 02 [16:56:55]Write to MH i2c: E2 08 00 97 13 80 0D 01 02 00 00 00 00 23 [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 03 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 03 00 97 13 00 90 00 1E [16:56:55]RAPDU: 90 00 [16:56:55]wFMCommunicate OK [16:56:55]wFMCommunicate request_size=255 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 FC 00 00 00 F4 03 04 00 D6 B1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7B 02 00 35 04 06 00 [16:56:55]Write to MH i2c: E2 02 01 98 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 FC 00 00 00 F4 03 04 00 D6 B1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7B 02 00 35 04 06 00 00 00 4F [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 03 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 03 00 98 13 00 90 00 1F [16:56:55]RAPDU: 90 00 [16:56:55]wFMCommunicate OK [16:56:55]wFMCommunicate request_size=11 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 0D 02 02 06 79 6F E6 15 97 8A [16:56:55]Write to MH i2c: E2 0E 00 99 13 80 0D 02 02 06 00 79 6F E6 15 97 8A 00 00 36 [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 03 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 03 00 99 13 00 90 00 20 [16:56:55]RAPDU: 90 00 [16:56:55]wFMCommunicate OK [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 0D 03 02 [16:56:55]Write to MH i2c: E2 08 00 9A 13 80 0D 03 02 00 00 00 00 28 [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 0B 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 0B 00 9A 13 00 FE 21 1B 05 09 0F A4 71 90 00 95 [16:56:55]RAPDU: FE 21 1B 05 09 0F A4 71 90 00 [16:56:55]wFMCommunicate OK [16:56:55]SAM_PROTO_SignData done [16:56:55]FM_MakeSignedData done [16:56:55]CreateOFDProtocolMessage [16:56:55]wFMCommunicate request_size=4 [16:56:55]MH_SAM_APDU [16:56:55]CAPDU: 80 11 00 00 [16:56:55]Write to MH i2c: E2 08 00 9B 13 80 11 00 00 00 00 00 00 28 [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:55]Read from MH i2c: E2 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 17 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: E2 17 00 9B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 88 [16:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:56:55]wFMCommunicate OK [16:56:55]CreateOFDProtocolMessage done [16:56:55]OFDSenderStorePacket 162584 [16:56:55]StoreOFDPacket docnum=162584 [16:56:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 90 80 08 01 EB E5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 FC 00 00 00 F4 03 04 00 D6 B1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7B 02 00 35 04 06 00 79 6F E6 15 97 8A FE 21 1B 05 09 0F A4 71 [16:56:55]CheckFolder [16:56:55]dirname=/storage/ofd_packets [16:56:55]CheckFolder done [16:56:55]ProducePacketName [16:56:55]name=ofd_packets/00162584 [16:56:55]NVStorageSaveData ofd_packets/00162584 [16:56:55]File name is /storage/ofd_packets/00162584 [16:56:55]Write 302 bytes [16:56:55]NVStorageSaveData done [16:56:55]OFDSenderStorePacket done [16:56:55]KKMCreateOFDPacket done [16:56:55]NVStorageSaveData kkm_last_timestamp [16:56:55]File name is /storage/kkm_last_timestamp [16:56:55]Write 4 bytes [16:56:55]NVStorageSaveData done [16:56:55]ExternCall_PrintAddStr [16:56:55]wPrintStart [16:56:55]Write to MH i2c: 01 00 00 9C 13 AF [16:56:55]Write i2c OK [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: 01 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: 01 07 00 [16:56:55]MH_I2C_Read... [16:56:55]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [16:56:55]RasterBufferAndPrint [16:56:55]line Счет N : (1)1319146 [16:56:55]line ИНН: 02508201610067 [16:56:55]line Контрольно-Кассовый Чек [16:56:55]line ПРОДАЖА [16:56:55]line ТРК (МРК, ГНК) : 51 [16:56:55]line Товар: 2710194210 [16:56:55]line ДТ(л)-К-5 [16:56:55]line 11.020 * 72.60 [16:56:55]line = 800.05 [16:56:55]line НДС 12% НСП 1% [16:56:55]line > о реализуемом товаре [16:56:55]line ОКРУГЛЕНИЕ: -0.05 [16:56:55]line ИТОГО: 800.00 [16:56:55]line Внесено: 800.00 [16:56:55]line СДАЧА: 0.00 [16:56:55]line НСП 1% : 7.08 [16:56:55]line НДС 12% : 84.96 [16:56:55]line Наличными: 800.00 [16:56:55]line Безнал.: 0.00 [16:56:55]line Место: АЗС № 140 "Партнер Нефть" [16:56:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:56:55]line СНО: Общий режим [16:56:55]line Чек 252 13.07.2024 16:56 [16:56:55]line Смена: 462 ФФД: 1.0 [16:56:55]line ЗНМ: 0300000129 [16:56:55]line РНМ: 0000000000090858 [16:56:55]line Версия ККМ: 001 [16:56:56]line ФМ: 0000000000874899 [16:56:56]line ФД: 162584 [16:56:56]line ФПД: 133521508505482 [16:56:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T165654&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162584&fm=133521508505482&tin=02508201610067®Number=0000000000090858&sum=80000 [16:56:56]OFD Sender: Processing packet 162584 [packets to send 106, broken 105] [16:56:56]ProducePacketName [16:56:56]name=ofd_packets/00162584 [16:56:56]OFD Sender: To server: pG, [16:56:56]CommunicateWithHost lk.salyk.kg:30040 [16:56:56]ConnectInit lk.salyk.kg [16:56:56]written 0, free lines is 4095 [16:56:56]Connected sock=10 [16:56:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 90 80 08 01 EB E5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 FC 00 00 00 F4 03 04 00 D6 B1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7B 02 00 35 04 06 00 79 6F E6 15 97 8A FE 21 1B 05 09 0F A4 71 [16:56:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 21 CF 47 00 D7 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 18 7B 02 00 F4 03 04 00 E5 5D 92 66 B6 04 01 00 00 96 DE 48 A6 78 31 D2 2C [16:56:56]CommunicateWithHost err = 0 [16:56:56]CheckOFDResponse [16:56:56]1017 (14) - 77093643461234 [16:56:56]1041 (16) - 0000000000874899 [16:56:56]1040 (4) - 162584 [16:56:56]1012 (4) - 13.07.2024 10:58 [16:56:56]1206 (1) - 0 [16:56:56]OFD Sender: Remove packet 162584 [16:56:56]ProducePacketName [16:56:56]name=ofd_packets/00162584 [16:56:56]NVStorageDeleteData [16:56:56]Write to MH i2c: 01 00 00 C7 13 DA [16:56:56]Write i2c OK [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: 01 [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: 01 07 00 [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: 01 07 00 C7 13 00 00 00 00 00 F3 0C E0 [16:56:56]RasterBufferAndPrint [16:56:56]line [16:56:56]line [16:56:56]line [16:56:56]line [16:56:56]line [16:56:56]written 0, free lines is 3321 [16:56:56]MH_Cut [16:56:56]Write to MH i2c: D1 01 00 CE 13 01 B3 [16:56:56]Write i2c OK [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: D1 [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: D1 01 00 [16:56:56]MH_I2C_Read... [16:56:56]Read from MH i2c: D1 01 00 CE 13 00 B2 [16:56:56]Write to MH i2c: 01 00 00 CF 13 E2 [16:56:56]Write i2c OK [16:56:56]MH_I2C_Read... [16:56:56]OFD Sender: No OFD packet to send [16:56:57]*** Cut start [16:56:57]*** Purtial cut [16:56:57]*** CUTSNS_PIN = 0 [16:56:57]*** Stage 1: CUTSNS_PIN = 1 [16:56:59]Read from MH i2c: 01 [16:56:59]MH_I2C_Read... [16:56:59]*** Stop cut motor [16:56:59]*** Cut end [16:56:59]Read from MH i2c: 01 07 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: 01 07 00 CF 13 00 00 00 00 00 FF 0F F7 [16:56:59]process_action close_receipt done [16:56:59]requested_data is exist [16:56:59]produce_requested_data [16:56:59]requested_item fm.sn is exist - process it [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 11 00 00 [16:56:59]Write to MH i2c: E2 08 00 D0 13 80 11 00 00 00 00 00 00 5D [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 17 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 17 00 D0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BD [16:56:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [16:56:59]wFMCommunicate OK [16:56:59]requested_item fd.num is exist - process it [16:56:59]SAM_PROTO_GetFieldsCounters [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 13 00 00 [16:56:59]Write to MH i2c: E2 08 00 D1 13 80 13 00 00 00 00 00 00 60 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 62 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 62 00 D1 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 18 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [16:56:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 18 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:56:59]wFMCommunicate OK [16:56:59]SAM_PROTO_GetFieldsCounters done [16:56:59]requested_item shift.num is exist - process it [16:56:59]requested_item shift.opened is exist - process it [16:56:59]req_shift_opened [16:56:59]FM_GetShiftState [16:56:59]SAM_PROTO_GetShiftState [16:56:59]wFMCommunicate request_size=4 [16:56:59]MH_SAM_APDU [16:56:59]CAPDU: 80 13 01 00 [16:56:59]Write to MH i2c: E2 08 00 D2 13 80 13 01 00 00 00 00 00 62 [16:56:59]Write i2c OK [16:56:59]MH_I2C_Read... [16:56:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:56:59]Read from MH i2c: E2 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 0E 00 [16:56:59]MH_I2C_Read... [16:56:59]Read from MH i2c: E2 0E 00 D2 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5C [16:56:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [16:56:59]wFMCommunicate OK [16:56:59]SAM_PROTO_GetShiftState done [16:56:59]FM_GetShiftState done [16:56:59]req_shift_opened done [16:56:59]requested_item shift.open_date is exist - process it [16:56:59]req_shift_open_date [16:56:59]req_shift_open_date done [16:56:59]produce_requested_data done [16:56:59]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162584,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [16:56:59]process_action_free close_receipt [16:56:59]json_value_free [16:56:59]json_value_free done [16:56:59]process_json_proto returns [16:56:59]Send response to host [16:56:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162584,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [16:56:59]free response buf [16:56:59]execute_script done [16:56:59]execute_script returns [16:56:59]free content buf [16:56:59]Sock 7.Close socket [16:56:59]Sock 7.Thread stoped [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:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:21]accept exits with 9 [17:01:21]New connection [17:01:21]New thread 3067366756 created [17:01:21]Thread 3067510116 joined [17:01:21]Waiting for new connection... [17:01:21] Sock 9.Parse request [17:01:21]Sock 9.Check first char [17:01:21]Sock 9.First char is OK [17:01:21]request: POST /json_proto HTTP/1.0 [17:01:21]Method: POST [17:01:21]URL: /json_proto [17:01:21]Method is POST - this is cgi request [17:01:21]url: /json_proto [17:01:21]query_string will be loaded in cgi processing [17:01:21]execute_cgi json_proto POST (null) [17:01:21]execute_cgi path=json_proto method=POST [17:01:21]POST find Content-Length [17:01:21]Host: 172.17.39.67:8080 [17:01:21]Content-Length: 684 [17:01:21]Content-Type: application/json [17:01:21] [17:01:21]POST finish read [17:01:21]Found Content-Length = 684 [17:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [17:01:21]execute_script... [17:01:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [17:01:21]POST & json_proto [17:01:21]process_json_proto [17:01:21]json parsed OK: [17:01:21]protocol is kg_v1.0 [17:01:21]action value=close_receipt [17:01:21]process_action close_receipt [17:01:21]cmd_close_receipt [17:01:21]MH_GetDate [17:01:21]Write to MH i2c: F0 00 00 D3 13 D5 [17:01:21]Write i2c OK [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 09 00 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: F0 09 00 D3 13 00 E2 B2 92 66 86 7C 92 66 64 [17:01:21]GetLastDocTimeStamp 1720889814 [17:01:21]current date 1720890082 [17:01:21]FM_GetShiftState [17:01:21]SAM_PROTO_GetShiftState [17:01:21]wFMCommunicate request_size=4 [17:01:21]MH_SAM_APDU [17:01:21]CAPDU: 80 13 01 00 [17:01:21]Write to MH i2c: E2 08 00 D4 13 80 13 01 00 00 00 00 00 64 [17:01:21]Write i2c OK [17:01:21]MH_I2C_Read... [17:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:21]Read from MH i2c: E2 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: E2 0E 00 [17:01:21]MH_I2C_Read... [17:01:21]Read from MH i2c: E2 0E 00 D4 13 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5E [17:01:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:01:21]wFMCommunicate OK [17:01:21]SAM_PROTO_GetShiftState done [17:01:21]FM_GetShiftState done [17:01:21]opened in 1720828979 [17:01:21]opened+sec_in_day 1720915379 [17:01:21]quantity*price = 80005 [17:01:21]sum+1 = 80006 [17:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.96 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 253 13.07.2024 17:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162585 ФПД: 190833741638352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170122&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162585&fm=190833741638352&tin=02508201610067®Number=0000000000090858&sum=80000 [17:01:22]StoreToDocumentArchive [17:01:22]shift 462 fd 162585 [17:01:22]save to /storage/0462/doc_00162585 [17:01:22]save last doc name /storage/0462/doc_00162585 to /storage/kkm_last_doc_name [17:01:22]save OK [17:01:22]Clear old archive folders... [17:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:01:22]tlvbuf is 005FACB0 [17:01:22]SAM_PROTO_ClearQueue [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 09 00 00 [17:01:22]Write to MH i2c: E2 08 00 E1 13 80 09 00 00 00 00 00 00 66 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 E1 13 00 90 00 68 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]SAM_PROTO_ClearQueue done [17:01:22]KKMCreateOFDPacket [17:01:22]OFDProtocolAddRootSTLVToBuf [17:01:22]FM_MakeSignedData [17:01:22]FM_MakeSignedData [17:01:22]SAM_PROTO_SignData [17:01:22]wFMCommunicate request_size=4 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 01 02 [17:01:22]Write to MH i2c: E2 08 00 E2 13 80 0D 01 02 00 00 00 00 6E [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:22]Read from MH i2c: E2 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 [17:01:22]MH_I2C_Read... [17:01:22]Read from MH i2c: E2 03 00 E2 13 00 90 00 69 [17:01:22]RAPDU: 90 00 [17:01:22]wFMCommunicate OK [17:01:22]wFMCommunicate request_size=255 [17:01:22]MH_SAM_APDU [17:01:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 FD 00 00 00 F4 03 04 00 E2 B2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7B 02 00 35 04 06 00 [17:01:22]Write to MH i2c: E2 02 01 E3 13 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 FD 00 00 00 F4 03 04 00 E2 B2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7B 02 00 35 04 06 00 00 00 A9 [17:01:22]Write i2c OK [17:01:22]MH_I2C_Read... [17:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:23]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 03 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 03 00 E3 13 00 90 00 6A [17:01:23]RAPDU: 90 00 [17:01:23]wFMCommunicate OK [17:01:23]wFMCommunicate request_size=11 [17:01:23]MH_SAM_APDU [17:01:23]CAPDU: 80 0D 02 02 06 AD 8F F1 61 AA D0 [17:01:23]Write to MH i2c: E2 0E 00 E4 13 80 0D 02 02 06 00 AD 8F F1 61 AA D0 00 00 85 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:23]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 03 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 03 00 E4 13 00 90 00 6B [17:01:23]RAPDU: 90 00 [17:01:23]wFMCommunicate OK [17:01:23]wFMCommunicate request_size=4 [17:01:23]MH_SAM_APDU [17:01:23]CAPDU: 80 0D 03 02 [17:01:23]Write to MH i2c: E2 08 00 E5 13 80 0D 03 02 00 00 00 00 73 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:23]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 0B 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 0B 00 E5 13 00 1D FF 6A 8D 96 B4 7A 89 90 00 D4 [17:01:23]RAPDU: 1D FF 6A 8D 96 B4 7A 89 90 00 [17:01:23]wFMCommunicate OK [17:01:23]SAM_PROTO_SignData done [17:01:23]FM_MakeSignedData done [17:01:23]CreateOFDProtocolMessage [17:01:23]wFMCommunicate request_size=4 [17:01:23]MH_SAM_APDU [17:01:23]CAPDU: 80 11 00 00 [17:01:23]Write to MH i2c: E2 08 00 E6 13 80 11 00 00 00 00 00 00 73 [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:23]Read from MH i2c: E2 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 17 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: E2 17 00 E6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D3 [17:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:01:23]wFMCommunicate OK [17:01:23]CreateOFDProtocolMessage done [17:01:23]OFDSenderStorePacket 162585 [17:01:23]StoreOFDPacket docnum=162585 [17:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 FF 08 01 12 EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 FD 00 00 00 F4 03 04 00 E2 B2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7B 02 00 35 04 06 00 AD 8F F1 61 AA D0 1D FF 6A 8D 96 B4 7A 89 [17:01:23]CheckFolder [17:01:23]dirname=/storage/ofd_packets [17:01:23]CheckFolder done [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00162585 [17:01:23]NVStorageSaveData ofd_packets/00162585 [17:01:23]File name is /storage/ofd_packets/00162585 [17:01:23]Write 302 bytes [17:01:23]NVStorageSaveData done [17:01:23]OFDSenderStorePacket done [17:01:23]KKMCreateOFDPacket done [17:01:23]NVStorageSaveData kkm_last_timestamp [17:01:23]File name is /storage/kkm_last_timestamp [17:01:23]Write 4 bytes [17:01:23]NVStorageSaveData done [17:01:23]ExternCall_PrintAddStr [17:01:23]wPrintStart [17:01:23]Write to MH i2c: 01 00 00 E7 13 FA [17:01:23]Write i2c OK [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 [17:01:23]MH_I2C_Read... [17:01:23]Read from MH i2c: 01 07 00 E7 13 00 00 00 00 00 FF 0F 0F [17:01:23]RasterBufferAndPrint [17:01:23]line Счет N : (1)1319147 [17:01:23]line ИНН: 02508201610067 [17:01:23]line Контрольно-Кассовый Чек [17:01:23]line ПРОДАЖА [17:01:23]line ТРК (МРК, ГНК) : 21 [17:01:23]line Товар: 2710194210 [17:01:23]line ДТ(л)-К-5 [17:01:23]line 11.020 * 72.60 [17:01:23]line = 800.05 [17:01:23]line НДС 12% НСП 1% [17:01:23]line > о реализуемом товаре [17:01:23]line ОКРУГЛЕНИЕ: -0.05 [17:01:23]line ИТОГО: 800.00 [17:01:23]line Внесено: 800.00 [17:01:23]line СДАЧА: 0.00 [17:01:23]line НСП 1% : 7.08 [17:01:23]line НДС 12% : 84.96 [17:01:23]line Наличными: 800.00 [17:01:23]line Безнал.: 0.00 [17:01:23]line Место: АЗС № 140 "Партнер Нефть" [17:01:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:01:23]line СНО: Общий режим [17:01:23]line Чек 253 13.07.2024 17:01 [17:01:23]line Смена: 462 ФФД: 1.0 [17:01:23]line ЗНМ: 0300000129 [17:01:23]line РНМ: 0000000000090858 [17:01:23]line Версия ККМ: 001 [17:01:23]line ФМ: 0000000000874899 [17:01:23]line ФД: 162585 [17:01:23]line ФПД: 190833741638352 [17:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170122&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162585&fm=190833741638352&tin=02508201610067®Number=0000000000090858&sum=80000 [17:01:23]OFD Sender: Processing packet 162585 [packets to send 106, broken 105] [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00162585 [17:01:23]OFD Sender: To server: pG, [17:01:23]CommunicateWithHost lk.salyk.kg:30040 [17:01:23]ConnectInit lk.salyk.kg [17:01:23]written 0, free lines is 4095 [17:01:23]Connected sock=10 [17:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 FF 08 01 12 EB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 FD 00 00 00 F4 03 04 00 E2 B2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7B 02 00 35 04 06 00 AD 8F F1 61 AA D0 1D FF 6A 8D 96 B4 7A 89 [17:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F3 D8 47 00 20 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 19 7B 02 00 F4 03 04 00 F1 5E 92 66 B6 04 01 00 00 26 55 A9 6E 95 6C 6F E3 [17:01:23]CommunicateWithHost err = 0 [17:01:23]CheckOFDResponse [17:01:23]1017 (14) - 77093643461234 [17:01:23]1041 (16) - 0000000000874899 [17:01:23]1040 (4) - 162585 [17:01:23]1012 (4) - 13.07.2024 11:03 [17:01:23]1206 (1) - 0 [17:01:23]OFD Sender: Remove packet 162585 [17:01:23]ProducePacketName [17:01:23]name=ofd_packets/00162585 [17:01:23]NVStorageDeleteData [17:01:24]Write to MH i2c: 01 00 00 12 14 26 [17:01:24]Write i2c OK [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: 01 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: 01 07 00 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: 01 07 00 12 14 00 00 00 00 00 F7 0C 30 [17:01:24]RasterBufferAndPrint [17:01:24]line [17:01:24]line [17:01:24]line [17:01:24]line [17:01:24]line [17:01:24]written 0, free lines is 3325 [17:01:24]MH_Cut [17:01:24]Write to MH i2c: D1 01 00 19 14 01 FF [17:01:24]Write i2c OK [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: D1 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: D1 01 00 [17:01:24]MH_I2C_Read... [17:01:24]Read from MH i2c: D1 01 00 19 14 00 FE [17:01:24]Write to MH i2c: 01 00 00 1A 14 2E [17:01:24]Write i2c OK [17:01:24]MH_I2C_Read... [17:01:24]OFD Sender: No OFD packet to send [17:01:24]*** Cut start [17:01:24]*** Purtial cut [17:01:24]*** Stage 1: CUTSNS_PIN = 1 [17:01:25]Read from MH i2c: 01 [17:01:25]MH_I2C_Read... [17:01:25]*** Stop cut motor [17:01:25]*** Cut end [17:01:25]Read from MH i2c: 01 07 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: 01 07 00 1A 14 00 00 00 00 00 FF 0F 43 [17:01:25]process_action close_receipt done [17:01:25]requested_data is exist [17:01:25]produce_requested_data [17:01:25]requested_item fm.sn is exist - process it [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 11 00 00 [17:01:25]Write to MH i2c: E2 08 00 1B 14 80 11 00 00 00 00 00 00 A9 [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 17 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 17 00 1B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 09 [17:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:01:25]wFMCommunicate OK [17:01:25]requested_item fd.num is exist - process it [17:01:25]SAM_PROTO_GetFieldsCounters [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 13 00 00 [17:01:25]Write to MH i2c: E2 08 00 1C 14 80 13 00 00 00 00 00 00 AC [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 62 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 62 00 1C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 19 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [17:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 19 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:25]wFMCommunicate OK [17:01:25]SAM_PROTO_GetFieldsCounters done [17:01:25]requested_item shift.num is exist - process it [17:01:25]requested_item shift.opened is exist - process it [17:01:25]req_shift_opened [17:01:25]FM_GetShiftState [17:01:25]SAM_PROTO_GetShiftState [17:01:25]wFMCommunicate request_size=4 [17:01:25]MH_SAM_APDU [17:01:25]CAPDU: 80 13 01 00 [17:01:25]Write to MH i2c: E2 08 00 1D 14 80 13 01 00 00 00 00 00 AE [17:01:25]Write i2c OK [17:01:25]MH_I2C_Read... [17:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:25]Read from MH i2c: E2 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 0E 00 [17:01:25]MH_I2C_Read... [17:01:25]Read from MH i2c: E2 0E 00 1D 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A8 [17:01:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:01:25]wFMCommunicate OK [17:01:25]SAM_PROTO_GetShiftState done [17:01:25]FM_GetShiftState done [17:01:25]req_shift_opened done [17:01:25]requested_item shift.open_date is exist - process it [17:01:25]req_shift_open_date [17:01:25]req_shift_open_date done [17:01:25]produce_requested_data done [17:01:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162585,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:01:25]process_action_free close_receipt [17:01:25]json_value_free [17:01:25]json_value_free done [17:01:25]process_json_proto returns [17:01:25]Send response to host [17:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162585,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:01:25]free response buf [17:01:25]execute_script done [17:01:25]execute_script returns [17:01:25]free content buf [17:01:25]Sock 9.Close socket [17:01:25]Sock 9.Thread stoped [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:26]accept exits with 7 [17:02:26]New connection [17:02:26]New thread 3067510116 created [17:02:26]Thread 3067366756 joined [17:02:26]Waiting for new connection... [17:02:26] Sock 7.Parse request [17:02:26]Sock 7.Check first char [17:02:26]Sock 7.First char is OK [17:02:26]request: POST /json_proto HTTP/1.0 [17:02:26]Method: POST [17:02:26]URL: /json_proto [17:02:26]Method is POST - this is cgi request [17:02:26]url: /json_proto [17:02:26]query_string will be loaded in cgi processing [17:02:26]execute_cgi json_proto POST (null) [17:02:26]execute_cgi path=json_proto method=POST [17:02:26]POST find Content-Length [17:02:26]Host: 172.17.39.67:8080 [17:02:26]Content-Length: 678 [17:02:26]Content-Type: application/json [17:02:26] [17:02:26]POST finish read [17:02:26]Found Content-Length = 678 [17:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:26]execute_script... [17:02: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)1319149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:26]POST & json_proto [17:02:26]process_json_proto [17:02:26]json parsed OK: [17:02:26]protocol is kg_v1.0 [17:02:26]action value=close_receipt [17:02:26]process_action close_receipt [17:02:26]cmd_close_receipt [17:02:26]MH_GetDate [17:02:26]Write to MH i2c: F0 00 00 1E 14 21 [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: F0 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: F0 09 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: F0 09 00 1E 14 00 23 B3 92 66 86 7C 92 66 F2 [17:02:26]GetLastDocTimeStamp 1720890082 [17:02:26]current date 1720890147 [17:02:26]FM_GetShiftState [17:02:26]SAM_PROTO_GetShiftState [17:02:26]wFMCommunicate request_size=4 [17:02:26]MH_SAM_APDU [17:02:26]CAPDU: 80 13 01 00 [17:02:26]Write to MH i2c: E2 08 00 1F 14 80 13 01 00 00 00 00 00 B0 [17:02:26]Write i2c OK [17:02:26]MH_I2C_Read... [17:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:26]Read from MH i2c: E2 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 0E 00 [17:02:26]MH_I2C_Read... [17:02:26]Read from MH i2c: E2 0E 00 1F 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AA [17:02:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:02:26]wFMCommunicate OK [17:02:26]SAM_PROTO_GetShiftState done [17:02:26]FM_GetShiftState done [17:02:26]opened in 1720828979 [17:02:26]opened+sec_in_day 1720915379 [17:02:26]quantity*price = 30033 [17:02:26]sum+1 = 30035 [17:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 254 13.07.2024 17:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162586 ФПД: 166807034727894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170227&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162586&fm=166807034727894&tin=02508201610067®Number=0000000000090858&sum=30000 [17:02:27]StoreToDocumentArchive [17:02:27]shift 462 fd 162586 [17:02:27]save to /storage/0462/doc_00162586 [17:02:27]save last doc name /storage/0462/doc_00162586 to /storage/kkm_last_doc_name [17:02:27]save OK [17:02:27]Clear old archive folders... [17:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:27]tlvbuf is B6F49E20 [17:02:27]SAM_PROTO_ClearQueue [17:02:27]wFMCommunicate request_size=4 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 09 00 00 [17:02:27]Write to MH i2c: E2 08 00 2C 14 80 09 00 00 00 00 00 00 B2 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 2C 14 00 90 00 B4 [17:02:27]RAPDU: 90 00 [17:02:27]wFMCommunicate OK [17:02:27]SAM_PROTO_ClearQueue done [17:02:27]KKMCreateOFDPacket [17:02:27]OFDProtocolAddRootSTLVToBuf [17:02:27]FM_MakeSignedData [17:02:27]FM_MakeSignedData [17:02:27]SAM_PROTO_SignData [17:02:27]wFMCommunicate request_size=4 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 0D 01 02 [17:02:27]Write to MH i2c: E2 08 00 2D 14 80 0D 01 02 00 00 00 00 BA [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 2D 14 00 90 00 B5 [17:02:27]RAPDU: 90 00 [17:02:27]wFMCommunicate OK [17:02:27]wFMCommunicate request_size=255 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 FE 00 00 00 F4 03 04 00 23 B3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7B 02 00 35 04 06 00 97 [17:02:27]Write to MH i2c: E2 02 01 2E 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 FE 00 00 00 F4 03 04 00 23 B3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7B 02 00 35 04 06 00 97 00 00 FE [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 2E 14 00 90 00 B6 [17:02:27]RAPDU: 90 00 [17:02:27]wFMCommunicate OK [17:02:27]wFMCommunicate request_size=10 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 0D 02 02 05 B5 CA 0D 0D D6 [17:02:27]Write to MH i2c: E2 0D 00 2F 14 80 0D 02 02 05 00 B5 CA 0D 0D D6 00 00 36 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 03 00 2F 14 00 90 00 B7 [17:02:27]RAPDU: 90 00 [17:02:27]wFMCommunicate OK [17:02:27]wFMCommunicate request_size=4 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 0D 03 02 [17:02:27]Write to MH i2c: E2 08 00 30 14 80 0D 03 02 00 00 00 00 BF [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 0B 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 0B 00 30 14 00 F5 AF 45 91 14 B8 9A B7 90 00 57 [17:02:27]RAPDU: F5 AF 45 91 14 B8 9A B7 90 00 [17:02:27]wFMCommunicate OK [17:02:27]SAM_PROTO_SignData done [17:02:27]FM_MakeSignedData done [17:02:27]CreateOFDProtocolMessage [17:02:27]wFMCommunicate request_size=4 [17:02:27]MH_SAM_APDU [17:02:27]CAPDU: 80 11 00 00 [17:02:27]Write to MH i2c: E2 08 00 31 14 80 11 00 00 00 00 00 00 BF [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:27]Read from MH i2c: E2 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 17 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: E2 17 00 31 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1F [17:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:02:27]wFMCommunicate OK [17:02:27]CreateOFDProtocolMessage done [17:02:27]OFDSenderStorePacket 162586 [17:02:27]StoreOFDPacket docnum=162586 [17:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E0 CB 07 01 DF 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 FE 00 00 00 F4 03 04 00 23 B3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7B 02 00 35 04 06 00 97 B5 CA 0D 0D D6 F5 AF 45 91 14 B8 9A B7 [17:02:27]CheckFolder [17:02:27]dirname=/storage/ofd_packets [17:02:27]CheckFolder done [17:02:27]ProducePacketName [17:02:27]name=ofd_packets/00162586 [17:02:27]NVStorageSaveData ofd_packets/00162586 [17:02:27]File name is /storage/ofd_packets/00162586 [17:02:27]Write 301 bytes [17:02:27]NVStorageSaveData done [17:02:27]OFDSenderStorePacket done [17:02:27]KKMCreateOFDPacket done [17:02:27]NVStorageSaveData kkm_last_timestamp [17:02:27]File name is /storage/kkm_last_timestamp [17:02:27]Write 4 bytes [17:02:27]NVStorageSaveData done [17:02:27]ExternCall_PrintAddStr [17:02:27]wPrintStart [17:02:27]Write to MH i2c: 01 00 00 32 14 46 [17:02:27]Write i2c OK [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 07 00 [17:02:27]MH_I2C_Read... [17:02:27]Read from MH i2c: 01 07 00 32 14 00 00 00 00 00 FF 0F 5B [17:02:27]RasterBufferAndPrint [17:02:27]line Счет N : (1)1319149 [17:02:27]line ИНН: 02508201610067 [17:02:27]line Контрольно-Кассовый Чек [17:02:27]line ПРОДАЖА [17:02:27]line ТРК (МРК, ГНК) : 63 [17:02:27]line Товар: 2710124130 [17:02:27]line Аи-92-К-5 [17:02:27]line 4.530 * 66.30 [17:02:27]line = 300.34 [17:02:27]line НДС 12% НСП 1% [17:02:27]line > о реализуемом товаре [17:02:27]line ОКРУГЛЕНИЕ: -0.34 [17:02:27]line ИТОГО: 300.00 [17:02:27]line Внесено: 300.00 [17:02:27]line СДАЧА: 0.00 [17:02:27]line НСП 1% : 2.66 [17:02:27]line НДС 12% : 31.89 [17:02:27]line Наличными: 300.00 [17:02:27]line Безнал.: 0.00 [17:02:27]line Место: АЗС № 140 "Партнер Нефть" [17:02:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:02:27]line СНО: Общий режим [17:02:27]line Чек 254 13.07.2024 17:02 [17:02:27]line Смена: 462 ФФД: 1.0 [17:02:27]line ЗНМ: 0300000129 [17:02:27]line РНМ: 0000000000090858 [17:02:27]line Версия ККМ: 001 [17:02:27]line ФМ: 0000000000874899 [17:02:27]line ФД: 162586 [17:02:27]line ФПД: 166807034727894 [17:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170227&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162586&fm=166807034727894&tin=02508201610067®Number=0000000000090858&sum=30000 [17:02:28]OFD Sender: Processing packet 162586 [packets to send 106, broken 105] [17:02:28]ProducePacketName [17:02:28]name=ofd_packets/00162586 [17:02:28]OFD Sender: To server: pG, [17:02:28]CommunicateWithHost lk.salyk.kg:30040 [17:02:28]ConnectInit lk.salyk.kg [17:02:28]written 0, free lines is 4095 [17:02:28]Connected sock=10 [17:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E0 CB 07 01 DF 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 FE 00 00 00 F4 03 04 00 23 B3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7B 02 00 35 04 06 00 97 B5 CA 0D 0D D6 F5 AF 45 91 14 B8 9A B7 [17:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3C B1 47 00 92 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1A 7B 02 00 F4 03 04 00 31 5F 92 66 B6 04 01 00 00 5E 2C 13 1E 5C 30 64 1F [17:02:28]CommunicateWithHost err = 0 [17:02:28]CheckOFDResponse [17:02:28]1017 (14) - 77093643461234 [17:02:28]1041 (16) - 0000000000874899 [17:02:28]1040 (4) - 162586 [17:02:28]1012 (4) - 13.07.2024 11:04 [17:02:28]1206 (1) - 0 [17:02:28]OFD Sender: Remove packet 162586 [17:02:28]ProducePacketName [17:02:28]name=ofd_packets/00162586 [17:02:28]NVStorageDeleteData [17:02:28]Write to MH i2c: 01 00 00 5D 14 71 [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: 01 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: 01 07 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: 01 07 00 5D 14 00 00 00 00 00 F1 0C 75 [17:02:28]RasterBufferAndPrint [17:02:28]line [17:02:28]line [17:02:28]line [17:02:28]line [17:02:28]line [17:02:28]written 0, free lines is 3319 [17:02:28]MH_Cut [17:02:28]Write to MH i2c: D1 01 00 64 14 01 4A [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: D1 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: D1 01 00 [17:02:28]MH_I2C_Read... [17:02:28]Read from MH i2c: D1 01 00 64 14 00 49 [17:02:28]Write to MH i2c: 01 00 00 65 14 79 [17:02:28]Write i2c OK [17:02:28]MH_I2C_Read... [17:02:29]OFD Sender: No OFD packet to send [17:02:29]*** Cut start [17:02:29]*** Purtial cut [17:02:29]*** CUTSNS_PIN = 0 [17:02:29]*** Stage 1: CUTSNS_PIN = 1 [17:02:31]Read from MH i2c: 01 [17:02:31]MH_I2C_Read... [17:02:31]*** Stop cut motor [17:02:31]*** Cut end [17:02:31]Read from MH i2c: 01 07 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: 01 07 00 65 14 00 00 00 00 00 FF 0F 8E [17:02:31]process_action close_receipt done [17:02:31]requested_data is exist [17:02:31]produce_requested_data [17:02:31]requested_item fm.sn is exist - process it [17:02:31]wFMCommunicate request_size=4 [17:02:31]MH_SAM_APDU [17:02:31]CAPDU: 80 11 00 00 [17:02:31]Write to MH i2c: E2 08 00 66 14 80 11 00 00 00 00 00 00 F4 [17:02:31]Write i2c OK [17:02:31]MH_I2C_Read... [17:02:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:31]Read from MH i2c: E2 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 17 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 17 00 66 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 54 [17:02:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:02:31]wFMCommunicate OK [17:02:31]requested_item fd.num is exist - process it [17:02:31]SAM_PROTO_GetFieldsCounters [17:02:31]wFMCommunicate request_size=4 [17:02:31]MH_SAM_APDU [17:02:31]CAPDU: 80 13 00 00 [17:02:31]Write to MH i2c: E2 08 00 67 14 80 13 00 00 00 00 00 00 F7 [17:02:31]Write i2c OK [17:02:31]MH_I2C_Read... [17:02:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:31]Read from MH i2c: E2 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 62 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 62 00 67 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [17:02:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:31]wFMCommunicate OK [17:02:31]SAM_PROTO_GetFieldsCounters done [17:02:31]requested_item shift.num is exist - process it [17:02:31]requested_item shift.opened is exist - process it [17:02:31]req_shift_opened [17:02:31]FM_GetShiftState [17:02:31]SAM_PROTO_GetShiftState [17:02:31]wFMCommunicate request_size=4 [17:02:31]MH_SAM_APDU [17:02:31]CAPDU: 80 13 01 00 [17:02:31]Write to MH i2c: E2 08 00 68 14 80 13 01 00 00 00 00 00 F9 [17:02:31]Write i2c OK [17:02:31]MH_I2C_Read... [17:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:31]Read from MH i2c: E2 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 0E 00 [17:02:31]MH_I2C_Read... [17:02:31]Read from MH i2c: E2 0E 00 68 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F3 [17:02:31]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:02:31]wFMCommunicate OK [17:02:31]SAM_PROTO_GetShiftState done [17:02:31]FM_GetShiftState done [17:02:31]req_shift_opened done [17:02:31]requested_item shift.open_date is exist - process it [17:02:31]req_shift_open_date [17:02:31]req_shift_open_date done [17:02:31]produce_requested_data done [17:02:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162586,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:02:31]process_action_free close_receipt [17:02:31]json_value_free [17:02:31]json_value_free done [17:02:31]process_json_proto returns [17:02:31]Send response to host [17:02:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162586,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:02:31]free response buf [17:02:31]execute_script done [17:02:31]execute_script returns [17:02:31]free content buf [17:02:31]Sock 7.Close socket [17:02:31]Sock 7.Thread stoped [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:21]accept exits with 9 [17:04:21]New connection [17:04:21]New thread 3067366756 created [17:04:21]Thread 3067510116 joined [17:04:21]Waiting for new connection... [17:04:21] Sock 9.Parse request [17:04:21]Sock 9.Check first char [17:04:21]Sock 9.First char is OK [17:04:21]request: POST /json_proto HTTP/1.0 [17:04:21]Method: POST [17:04:21]URL: /json_proto [17:04:21]Method is POST - this is cgi request [17:04:21]url: /json_proto [17:04:21]query_string will be loaded in cgi processing [17:04:21]execute_cgi json_proto POST (null) [17:04:21]execute_cgi path=json_proto method=POST [17:04:21]POST find Content-Length [17:04:21]Host: 172.17.39.67:8080 [17:04:21]Content-Length: 678 [17:04:21]Content-Type: application/json [17:04:21] [17:04:21]POST finish read [17:04:21]Found Content-Length = 678 [17:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:21]execute_script... [17:04: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)1319150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:21]POST & json_proto [17:04:21]process_json_proto [17:04:21]json parsed OK: [17:04:21]protocol is kg_v1.0 [17:04:21]action value=close_receipt [17:04:21]process_action close_receipt [17:04:21]cmd_close_receipt [17:04:21]MH_GetDate [17:04:21]Write to MH i2c: F0 00 00 69 14 6C [17:04:21]Write i2c OK [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: F0 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: F0 09 00 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: F0 09 00 69 14 00 96 B3 92 66 86 7C 92 66 B0 [17:04:21]GetLastDocTimeStamp 1720890147 [17:04:21]current date 1720890262 [17:04:21]FM_GetShiftState [17:04:21]SAM_PROTO_GetShiftState [17:04:21]wFMCommunicate request_size=4 [17:04:21]MH_SAM_APDU [17:04:21]CAPDU: 80 13 01 00 [17:04:21]Write to MH i2c: E2 08 00 6A 14 80 13 01 00 00 00 00 00 FB [17:04:21]Write i2c OK [17:04:21]MH_I2C_Read... [17:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:21]Read from MH i2c: E2 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: E2 0E 00 [17:04:21]MH_I2C_Read... [17:04:21]Read from MH i2c: E2 0E 00 6A 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F5 [17:04:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:04:21]wFMCommunicate OK [17:04:21]SAM_PROTO_GetShiftState done [17:04:21]FM_GetShiftState done [17:04:21]opened in 1720828979 [17:04:21]opened+sec_in_day 1720915379 [17:04:21]quantity*price = 60001 [17:04:21]sum+1 = 60003 [17:04:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 255 13.07.2024 17:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162587 ФПД: 96778776213236 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170422&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162587&fm=96778776213236&tin=02508201610067®Number=0000000000090858&sum=60000 [17:04:22]StoreToDocumentArchive [17:04:22]shift 462 fd 162587 [17:04:22]save to /storage/0462/doc_00162587 [17:04:22]save last doc name /storage/0462/doc_00162587 to /storage/kkm_last_doc_name [17:04:22]save OK [17:04:22]Clear old archive folders... [17:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:22]tlvbuf is 005FA170 [17:04:22]SAM_PROTO_ClearQueue [17:04:22]wFMCommunicate request_size=4 [17:04:22]MH_SAM_APDU [17:04:22]CAPDU: 80 09 00 00 [17:04:22]Write to MH i2c: E2 08 00 77 14 80 09 00 00 00 00 00 00 FD [17:04:22]Write i2c OK [17:04:22]MH_I2C_Read... [17:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:22]Read from MH i2c: E2 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 03 00 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 03 00 77 14 00 90 00 FF [17:04:22]RAPDU: 90 00 [17:04:22]wFMCommunicate OK [17:04:22]SAM_PROTO_ClearQueue done [17:04:22]KKMCreateOFDPacket [17:04:22]OFDProtocolAddRootSTLVToBuf [17:04:22]FM_MakeSignedData [17:04:22]FM_MakeSignedData [17:04:22]SAM_PROTO_SignData [17:04:22]wFMCommunicate request_size=4 [17:04:22]MH_SAM_APDU [17:04:22]CAPDU: 80 0D 01 02 [17:04:22]Write to MH i2c: E2 08 00 78 14 80 0D 01 02 00 00 00 00 05 [17:04:22]Write i2c OK [17:04:22]MH_I2C_Read... [17:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:22]Read from MH i2c: E2 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 03 00 [17:04:22]MH_I2C_Read... [17:04:22]Read from MH i2c: E2 03 00 78 14 00 90 00 00 [17:04:22]RAPDU: 90 00 [17:04:22]wFMCommunicate OK [17:04:22]wFMCommunicate request_size=255 [17:04:22]MH_SAM_APDU [17:04:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 FF 00 00 00 F4 03 04 00 96 B3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7B 02 00 35 04 06 00 58 [17:04:22]Write to MH i2c: E2 02 01 79 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 FF 00 00 00 F4 03 04 00 96 B3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7B 02 00 35 04 06 00 58 00 00 8D [17:04:22]Write i2c OK [17:04:22]MH_I2C_Read... [17:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:23]Read from MH i2c: E2 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 03 00 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 03 00 79 14 00 90 00 01 [17:04:23]RAPDU: 90 00 [17:04:23]wFMCommunicate OK [17:04:23]wFMCommunicate request_size=10 [17:04:23]MH_SAM_APDU [17:04:23]CAPDU: 80 0D 02 02 05 05 10 93 F6 F4 [17:04:23]Write to MH i2c: E2 0D 00 7A 14 80 0D 02 02 05 00 05 10 93 F6 F4 00 00 A4 [17:04:23]Write i2c OK [17:04:23]MH_I2C_Read... [17:04:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:23]Read from MH i2c: E2 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 03 00 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 03 00 7A 14 00 90 00 02 [17:04:23]RAPDU: 90 00 [17:04:23]wFMCommunicate OK [17:04:23]wFMCommunicate request_size=4 [17:04:23]MH_SAM_APDU [17:04:23]CAPDU: 80 0D 03 02 [17:04:23]Write to MH i2c: E2 08 00 7B 14 80 0D 03 02 00 00 00 00 0A [17:04:23]Write i2c OK [17:04:23]MH_I2C_Read... [17:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:23]Read from MH i2c: E2 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 0B 00 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 0B 00 7B 14 00 26 18 92 79 C8 EA EA 2D 90 00 1D [17:04:23]RAPDU: 26 18 92 79 C8 EA EA 2D 90 00 [17:04:23]wFMCommunicate OK [17:04:23]SAM_PROTO_SignData done [17:04:23]FM_MakeSignedData done [17:04:23]CreateOFDProtocolMessage [17:04:23]wFMCommunicate request_size=4 [17:04:23]MH_SAM_APDU [17:04:23]CAPDU: 80 11 00 00 [17:04:23]Write to MH i2c: E2 08 00 7C 14 80 11 00 00 00 00 00 00 0A [17:04:23]Write i2c OK [17:04:23]MH_I2C_Read... [17:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:23]Read from MH i2c: E2 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 17 00 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: E2 17 00 7C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6A [17:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:04:23]wFMCommunicate OK [17:04:23]CreateOFDProtocolMessage done [17:04:23]OFDSenderStorePacket 162587 [17:04:23]StoreOFDPacket docnum=162587 [17:04:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F8 7A 07 01 89 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 FF 00 00 00 F4 03 04 00 96 B3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7B 02 00 35 04 06 00 58 05 10 93 F6 F4 26 18 92 79 C8 EA EA 2D [17:04:23]CheckFolder [17:04:23]dirname=/storage/ofd_packets [17:04:23]CheckFolder done [17:04:23]ProducePacketName [17:04:23]name=ofd_packets/00162587 [17:04:23]NVStorageSaveData ofd_packets/00162587 [17:04:23]File name is /storage/ofd_packets/00162587 [17:04:23]Write 301 bytes [17:04:23]NVStorageSaveData done [17:04:23]OFDSenderStorePacket done [17:04:23]KKMCreateOFDPacket done [17:04:23]NVStorageSaveData kkm_last_timestamp [17:04:23]File name is /storage/kkm_last_timestamp [17:04:23]Write 4 bytes [17:04:23]NVStorageSaveData done [17:04:23]ExternCall_PrintAddStr [17:04:23]wPrintStart [17:04:23]Write to MH i2c: 01 00 00 7D 14 91 [17:04:23]Write i2c OK [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: 01 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: 01 07 00 [17:04:23]MH_I2C_Read... [17:04:23]Read from MH i2c: 01 07 00 7D 14 00 00 00 00 00 FF 0F A6 [17:04:23]RasterBufferAndPrint [17:04:23]line Счет N : (1)1319150 [17:04:23]line ИНН: 02508201610067 [17:04:23]line Контрольно-Кассовый Чек [17:04:23]line ПРОДАЖА [17:04:23]line ТРК (МРК, ГНК) : 33 [17:04:23]line Товар: 2710124130 [17:04:23]line Аи-92-К-5 [17:04:23]line 9.050 * 66.30 [17:04:23]line = 600.02 [17:04:23]line НДС 12% НСП 1% [17:04:23]line > о реализуемом товаре [17:04:23]line ОКРУГЛЕНИЕ: -0.02 [17:04:23]line ИТОГО: 600.00 [17:04:23]line Внесено: 600.00 [17:04:23]line СДАЧА: 0.00 [17:04:23]line НСП 1% : 5.31 [17:04:23]line НДС 12% : 63.72 [17:04:23]line Наличными: 600.00 [17:04:23]line Безнал.: 0.00 [17:04:23]line Место: АЗС № 140 "Партнер Нефть" [17:04:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:04:23]line СНО: Общий режим [17:04:23]line Чек 255 13.07.2024 17:04 [17:04:23]line Смена: 462 ФФД: 1.0 [17:04:23]line ЗНМ: 0300000129 [17:04:23]line РНМ: 0000000000090858 [17:04:23]line Версия ККМ: 001 [17:04:23]line ФМ: 0000000000874899 [17:04:23]line ФД: 162587 [17:04:23]line ФПД: 96778776213236 [17:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170422&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162587&fm=96778776213236&tin=02508201610067®Number=0000000000090858&sum=60000 [17:04:23]OFD Sender: Processing packet 162587 [packets to send 106, broken 105] [17:04:23]ProducePacketName [17:04:23]name=ofd_packets/00162587 [17:04:23]OFD Sender: To server: pG, [17:04:23]CommunicateWithHost lk.salyk.kg:30040 [17:04:23]ConnectInit lk.salyk.kg [17:04:23]written 0, free lines is 4095 [17:04:23]Connected sock=11 [17:04:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F8 7A 07 01 89 DB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 FF 00 00 00 F4 03 04 00 96 B3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7B 02 00 35 04 06 00 58 05 10 93 F6 F4 26 18 92 79 C8 EA EA 2D [17:04:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 15 40 47 00 C9 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1B 7B 02 00 F4 03 04 00 A5 5F 92 66 B6 04 01 00 00 54 27 BA EB A0 1B 6B 97 [17:04:23]CommunicateWithHost err = 0 [17:04:23]CheckOFDResponse [17:04:23]1017 (14) - 77093643461234 [17:04:23]1041 (16) - 0000000000874899 [17:04:23]1040 (4) - 162587 [17:04:23]1012 (4) - 13.07.2024 11:06 [17:04:23]1206 (1) - 0 [17:04:23]OFD Sender: Remove packet 162587 [17:04:23]ProducePacketName [17:04:23]name=ofd_packets/00162587 [17:04:23]NVStorageDeleteData [17:04:24]Write to MH i2c: 01 00 00 A8 14 BC [17:04:24]Write i2c OK [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: 01 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: 01 07 00 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: 01 07 00 A8 14 00 00 00 00 00 EE 0C BD [17:04:24]RasterBufferAndPrint [17:04:24]line [17:04:24]line [17:04:24]line [17:04:24]line [17:04:24]line [17:04:24]written 0, free lines is 3316 [17:04:24]MH_Cut [17:04:24]Write to MH i2c: D1 01 00 AF 14 01 95 [17:04:24]Write i2c OK [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: D1 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: D1 01 00 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: D1 01 00 AF 14 00 94 [17:04:24]Write to MH i2c: 01 00 00 B0 14 C4 [17:04:24]Write i2c OK [17:04:24]MH_I2C_Read... [17:04:24]OFD Sender: No OFD packet to send [17:04:24]*** Cut start [17:04:24]*** Purtial cut [17:04:24]*** Stage 1: CUTSNS_PIN = 1 [17:04:24]Read from MH i2c: 01 [17:04:24]MH_I2C_Read... [17:04:24]*** Stop cut motor [17:04:24]*** Cut end [17:04:24]Read from MH i2c: 01 07 00 [17:04:24]MH_I2C_Read... [17:04:24]Read from MH i2c: 01 07 00 B0 14 00 00 00 00 00 FF 0F D9 [17:04:24]process_action close_receipt done [17:04:24]requested_data is exist [17:04:24]produce_requested_data [17:04:24]requested_item fm.sn is exist - process it [17:04:24]wFMCommunicate request_size=4 [17:04:24]MH_SAM_APDU [17:04:24]CAPDU: 80 11 00 00 [17:04:24]Write to MH i2c: E2 08 00 B1 14 80 11 00 00 00 00 00 00 3F [17:04:24]Write i2c OK [17:04:24]MH_I2C_Read... [17:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:25]Read from MH i2c: E2 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: E2 17 00 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: E2 17 00 B1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9F [17:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:04:25]wFMCommunicate OK [17:04:25]requested_item fd.num is exist - process it [17:04:25]SAM_PROTO_GetFieldsCounters [17:04:25]wFMCommunicate request_size=4 [17:04:25]MH_SAM_APDU [17:04:25]CAPDU: 80 13 00 00 [17:04:25]Write to MH i2c: E2 08 00 B2 14 80 13 00 00 00 00 00 00 42 [17:04:25]Write i2c OK [17:04:25]MH_I2C_Read... [17:04:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:25]Read from MH i2c: E2 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: E2 62 00 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: E2 62 00 B2 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [17:04:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:25]wFMCommunicate OK [17:04:25]SAM_PROTO_GetFieldsCounters done [17:04:25]requested_item shift.num is exist - process it [17:04:25]requested_item shift.opened is exist - process it [17:04:25]req_shift_opened [17:04:25]FM_GetShiftState [17:04:25]SAM_PROTO_GetShiftState [17:04:25]wFMCommunicate request_size=4 [17:04:25]MH_SAM_APDU [17:04:25]CAPDU: 80 13 01 00 [17:04:25]Write to MH i2c: E2 08 00 B3 14 80 13 01 00 00 00 00 00 44 [17:04:25]Write i2c OK [17:04:25]MH_I2C_Read... [17:04:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:25]Read from MH i2c: E2 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: E2 0E 00 [17:04:25]MH_I2C_Read... [17:04:25]Read from MH i2c: E2 0E 00 B3 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3E [17:04:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:04:25]wFMCommunicate OK [17:04:25]SAM_PROTO_GetShiftState done [17:04:25]FM_GetShiftState done [17:04:25]req_shift_opened done [17:04:25]requested_item shift.open_date is exist - process it [17:04:25]req_shift_open_date [17:04:25]req_shift_open_date done [17:04:25]produce_requested_data done [17:04:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162587,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:04:25]process_action_free close_receipt [17:04:25]json_value_free [17:04:25]json_value_free done [17:04:25]process_json_proto returns [17:04:25]Send response to host [17:04:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162587,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:04:25]free response buf [17:04:25]execute_script done [17:04:25]execute_script returns [17:04:25]free content buf [17:04:25]Sock 9.Close socket [17:04:25]Sock 9.Thread stoped [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:00]accept exits with 7 [17:07:00]New connection [17:07:00]New thread 3067510116 created [17:07:00]Thread 3067366756 joined [17:07:00]Waiting for new connection... [17:07:00] Sock 7.Parse request [17:07:00]Sock 7.Check first char [17:07:00]Sock 7.First char is OK [17:07:00]request: POST /json_proto HTTP/1.0 [17:07:00]Method: POST [17:07:00]URL: /json_proto [17:07:00]Method is POST - this is cgi request [17:07:00]url: /json_proto [17:07:00]query_string will be loaded in cgi processing [17:07:00]execute_cgi json_proto POST (null) [17:07:00]execute_cgi path=json_proto method=POST [17:07:00]POST find Content-Length [17:07:00]Host: 172.17.39.67:8080 [17:07:00]Content-Length: 683 [17:07:00]Content-Type: application/json [17:07:00] [17:07:00]POST finish read [17:07:00]Found Content-Length = 683 [17:07:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:07:00]execute_script... [17:07: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)1319151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:07:00]POST & json_proto [17:07:00]process_json_proto [17:07:00]json parsed OK: [17:07:00]protocol is kg_v1.0 [17:07:00]action value=close_receipt [17:07:00]process_action close_receipt [17:07:00]cmd_close_receipt [17:07:00]MH_GetDate [17:07:00]Write to MH i2c: F0 00 00 B4 14 B7 [17:07:00]Write i2c OK [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: F0 [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: F0 09 00 [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: F0 09 00 B4 14 00 35 B4 92 66 86 7C 92 66 9B [17:07:00]GetLastDocTimeStamp 1720890262 [17:07:00]current date 1720890421 [17:07:00]FM_GetShiftState [17:07:00]SAM_PROTO_GetShiftState [17:07:00]wFMCommunicate request_size=4 [17:07:00]MH_SAM_APDU [17:07:00]CAPDU: 80 13 01 00 [17:07:00]Write to MH i2c: E2 08 00 B5 14 80 13 01 00 00 00 00 00 46 [17:07:00]Write i2c OK [17:07:00]MH_I2C_Read... [17:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:00]Read from MH i2c: E2 [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: E2 0E 00 [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: E2 0E 00 B5 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 40 [17:07:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:07:00]wFMCommunicate OK [17:07:00]SAM_PROTO_GetShiftState done [17:07:00]FM_GetShiftState done [17:07:00]opened in 1720828979 [17:07:00]opened+sec_in_day 1720915379 [17:07:00]quantity*price = 50021 [17:07:00]sum+1 = 50022 [17:07:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 256 13.07.2024 17:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162588 ФПД: 20613706805491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170701&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162588&fm=20613706805491&tin=02508201610067®Number=0000000000090858&sum=50000 [17:07:01]StoreToDocumentArchive [17:07:01]shift 462 fd 162588 [17:07:01]save to /storage/0462/doc_00162588 [17:07:01]save last doc name /storage/0462/doc_00162588 to /storage/kkm_last_doc_name [17:07:01]save OK [17:07:01]Clear old archive folders... [17:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:07:01]tlvbuf is 005FA110 [17:07:01]SAM_PROTO_ClearQueue [17:07:01]wFMCommunicate request_size=4 [17:07:01]MH_SAM_APDU [17:07:01]CAPDU: 80 09 00 00 [17:07:01]Write to MH i2c: E2 08 00 C2 14 80 09 00 00 00 00 00 00 48 [17:07:01]Write i2c OK [17:07:01]MH_I2C_Read... [17:07:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:01]Read from MH i2c: E2 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 03 00 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 03 00 C2 14 00 90 00 4A [17:07:01]RAPDU: 90 00 [17:07:01]wFMCommunicate OK [17:07:01]SAM_PROTO_ClearQueue done [17:07:01]KKMCreateOFDPacket [17:07:01]OFDProtocolAddRootSTLVToBuf [17:07:01]FM_MakeSignedData [17:07:01]FM_MakeSignedData [17:07:01]SAM_PROTO_SignData [17:07:01]wFMCommunicate request_size=4 [17:07:01]MH_SAM_APDU [17:07:01]CAPDU: 80 0D 01 02 [17:07:01]Write to MH i2c: E2 08 00 C3 14 80 0D 01 02 00 00 00 00 50 [17:07:01]Write i2c OK [17:07:01]MH_I2C_Read... [17:07:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:01]Read from MH i2c: E2 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 03 00 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 03 00 C3 14 00 90 00 4B [17:07:01]RAPDU: 90 00 [17:07:01]wFMCommunicate OK [17:07:01]wFMCommunicate request_size=255 [17:07:01]MH_SAM_APDU [17:07:01]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 01 00 00 F4 03 04 00 35 B4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7B 02 00 35 04 06 00 [17:07:01]Write to MH i2c: E2 02 01 C4 14 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 01 00 00 F4 03 04 00 35 B4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7B 02 00 35 04 06 00 00 00 4B [17:07:01]Write i2c OK [17:07:01]MH_I2C_Read... [17:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:01]Read from MH i2c: E2 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 03 00 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [17:07:01]RAPDU: 90 00 [17:07:01]wFMCommunicate OK [17:07:01]wFMCommunicate request_size=11 [17:07:01]MH_SAM_APDU [17:07:01]CAPDU: 80 0D 02 02 06 12 BF 80 AB F0 F3 [17:07:01]Write to MH i2c: E2 0E 00 C5 14 80 0D 02 02 06 00 12 BF 80 AB F0 F3 00 00 3E [17:07:01]Write i2c OK [17:07:01]MH_I2C_Read... [17:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:01]Read from MH i2c: E2 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 03 00 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [17:07:01]RAPDU: 90 00 [17:07:01]wFMCommunicate OK [17:07:01]wFMCommunicate request_size=4 [17:07:01]MH_SAM_APDU [17:07:01]CAPDU: 80 0D 03 02 [17:07:01]Write to MH i2c: E2 08 00 C6 14 80 0D 03 02 00 00 00 00 55 [17:07:01]Write i2c OK [17:07:01]MH_I2C_Read... [17:07:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:01]Read from MH i2c: E2 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 0B 00 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 0B 00 C6 14 00 08 A8 02 93 6C B9 2B 81 90 00 6C [17:07:01]RAPDU: 08 A8 02 93 6C B9 2B 81 90 00 [17:07:01]wFMCommunicate OK [17:07:01]SAM_PROTO_SignData done [17:07:01]FM_MakeSignedData done [17:07:01]CreateOFDProtocolMessage [17:07:01]wFMCommunicate request_size=4 [17:07:01]MH_SAM_APDU [17:07:01]CAPDU: 80 11 00 00 [17:07:01]Write to MH i2c: E2 08 00 C7 14 80 11 00 00 00 00 00 00 55 [17:07:01]Write i2c OK [17:07:01]MH_I2C_Read... [17:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:01]Read from MH i2c: E2 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 17 00 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: E2 17 00 C7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B5 [17:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:07:01]wFMCommunicate OK [17:07:01]CreateOFDProtocolMessage done [17:07:01]OFDSenderStorePacket 162588 [17:07:01]StoreOFDPacket docnum=162588 [17:07:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 50 92 08 01 95 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 01 00 00 F4 03 04 00 35 B4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7B 02 00 35 04 06 00 12 BF 80 AB F0 F3 08 A8 02 93 6C B9 2B 81 [17:07:01]CheckFolder [17:07:01]dirname=/storage/ofd_packets [17:07:01]CheckFolder done [17:07:01]ProducePacketName [17:07:01]name=ofd_packets/00162588 [17:07:01]NVStorageSaveData ofd_packets/00162588 [17:07:01]File name is /storage/ofd_packets/00162588 [17:07:01]Write 302 bytes [17:07:01]NVStorageSaveData done [17:07:01]OFDSenderStorePacket done [17:07:01]KKMCreateOFDPacket done [17:07:01]NVStorageSaveData kkm_last_timestamp [17:07:01]File name is /storage/kkm_last_timestamp [17:07:01]Write 4 bytes [17:07:01]NVStorageSaveData done [17:07:01]ExternCall_PrintAddStr [17:07:01]wPrintStart [17:07:01]Write to MH i2c: 01 00 00 C8 14 DC [17:07:01]Write i2c OK [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: 01 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: 01 07 00 [17:07:01]MH_I2C_Read... [17:07:01]Read from MH i2c: 01 07 00 C8 14 00 00 00 00 00 FF 0F F1 [17:07:01]RasterBufferAndPrint [17:07:01]line Счет N : (1)1319151 [17:07:01]line ИНН: 02508201610067 [17:07:01]line Контрольно-Кассовый Чек [17:07:01]line ПРОДАЖА [17:07:01]line ТРК (МРК, ГНК) : 21 [17:07:01]line Товар: 2710194210 [17:07:01]line ДТ(л)-К-5 [17:07:01]line 6.890 * 72.60 [17:07:01]line = 500.21 [17:07:01]line НДС 12% НСП 1% [17:07:01]line > о реализуемом товаре [17:07:01]line ОКРУГЛЕНИЕ: -0.21 [17:07:01]line ИТОГО: 500.00 [17:07:01]line Внесено: 500.00 [17:07:01]line СДАЧА: 0.00 [17:07:01]line НСП 1% : 4.43 [17:07:01]line НДС 12% : 53.12 [17:07:01]line Наличными: 500.00 [17:07:01]line Безнал.: 0.00 [17:07:01]line Место: АЗС № 140 "Партнер Нефть" [17:07:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:07:01]line СНО: Общий режим [17:07:01]line Чек 256 13.07.2024 17:07 [17:07:01]line Смена: 462 ФФД: 1.0 [17:07:01]line ЗНМ: 0300000129 [17:07:01]line РНМ: 0000000000090858 [17:07:01]line Версия ККМ: 001 [17:07:01]line ФМ: 0000000000874899 [17:07:01]line ФД: 162588 [17:07:01]line ФПД: 20613706805491 [17:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T170701&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162588&fm=20613706805491&tin=02508201610067®Number=0000000000090858&sum=50000 [17:07:02]OFD Sender: Processing packet 162588 [packets to send 106, broken 105] [17:07:02]ProducePacketName [17:07:02]name=ofd_packets/00162588 [17:07:02]OFD Sender: To server: pG, [17:07:02]CommunicateWithHost lk.salyk.kg:30040 [17:07:02]ConnectInit lk.salyk.kg [17:07:02]written 0, free lines is 4095 [17:07:02]Connected sock=10 [17:07:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 50 92 08 01 95 55 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 00 01 00 00 F4 03 04 00 35 B4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7B 02 00 35 04 06 00 12 BF 80 AB F0 F3 08 A8 02 93 6C B9 2B 81 [17:07:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 29 6B 47 00 EE 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1C 7B 02 00 F4 03 04 00 43 60 92 66 B6 04 01 00 00 3F 33 CC 5B 86 74 B9 56 [17:07:02]CommunicateWithHost err = 0 [17:07:02]CheckOFDResponse [17:07:02]1017 (14) - 77093643461234 [17:07:02]1041 (16) - 0000000000874899 [17:07:02]1040 (4) - 162588 [17:07:02]1012 (4) - 13.07.2024 11:08 [17:07:02]1206 (1) - 0 [17:07:02]OFD Sender: Remove packet 162588 [17:07:02]ProducePacketName [17:07:02]name=ofd_packets/00162588 [17:07:02]NVStorageDeleteData [17:07:02]Write to MH i2c: 01 00 00 F3 14 07 [17:07:02]Write i2c OK [17:07:02]MH_I2C_Read... [17:07:02]Read from MH i2c: 01 [17:07:02]MH_I2C_Read... [17:07:02]Read from MH i2c: 01 07 00 [17:07:02]MH_I2C_Read... [17:07:02]Read from MH i2c: 01 07 00 F3 14 00 00 00 00 00 DF 0C F9 [17:07:02]RasterBufferAndPrint [17:07:02]line [17:07:02]line [17:07:02]line [17:07:02]line [17:07:02]line [17:07:02]written 0, free lines is 3301 [17:07:02]MH_Cut [17:07:02]Write to MH i2c: D1 01 00 FA 14 01 E0 [17:07:02]Write i2c OK [17:07:02]MH_I2C_Read... [17:07:02]Read from MH i2c: D1 [17:07:02]MH_I2C_Read... [17:07:02]Read from MH i2c: D1 01 00 [17:07:02]MH_I2C_Read... [17:07:02]Read from MH i2c: D1 01 00 FA 14 00 DF [17:07:02]Write to MH i2c: 01 00 00 FB 14 0F [17:07:02]Write i2c OK [17:07:02]MH_I2C_Read... [17:07:03]OFD Sender: No OFD packet to send [17:07:03]*** Cut start [17:07:03]*** Purtial cut [17:07:03]*** CUTSNS_PIN = 0 [17:07:03]*** Stage 1: CUTSNS_PIN = 1 [17:07:05]Read from MH i2c: 01 [17:07:05]MH_I2C_Read... [17:07:05]*** Stop cut motor [17:07:05]*** Cut end [17:07:05]Read from MH i2c: 01 07 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: 01 07 00 FB 14 00 00 00 00 00 FF 0F 24 [17:07:05]process_action close_receipt done [17:07:05]requested_data is exist [17:07:05]produce_requested_data [17:07:05]requested_item fm.sn is exist - process it [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 11 00 00 [17:07:05]Write to MH i2c: E2 08 00 FC 14 80 11 00 00 00 00 00 00 8A [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 17 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 17 00 FC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EA [17:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:07:05]wFMCommunicate OK [17:07:05]requested_item fd.num is exist - process it [17:07:05]SAM_PROTO_GetFieldsCounters [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 13 00 00 [17:07:05]Write to MH i2c: E2 08 00 FD 14 80 13 00 00 00 00 00 00 8D [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 62 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 62 00 FD 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [17:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:05]wFMCommunicate OK [17:07:05]SAM_PROTO_GetFieldsCounters done [17:07:05]requested_item shift.num is exist - process it [17:07:05]requested_item shift.opened is exist - process it [17:07:05]req_shift_opened [17:07:05]FM_GetShiftState [17:07:05]SAM_PROTO_GetShiftState [17:07:05]wFMCommunicate request_size=4 [17:07:05]MH_SAM_APDU [17:07:05]CAPDU: 80 13 01 00 [17:07:05]Write to MH i2c: E2 08 00 FE 14 80 13 01 00 00 00 00 00 8F [17:07:05]Write i2c OK [17:07:05]MH_I2C_Read... [17:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:05]Read from MH i2c: E2 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0E 00 [17:07:05]MH_I2C_Read... [17:07:05]Read from MH i2c: E2 0E 00 FE 14 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 89 [17:07:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:07:05]wFMCommunicate OK [17:07:05]SAM_PROTO_GetShiftState done [17:07:05]FM_GetShiftState done [17:07:05]req_shift_opened done [17:07:05]requested_item shift.open_date is exist - process it [17:07:05]req_shift_open_date [17:07:05]req_shift_open_date done [17:07:05]produce_requested_data done [17:07:05]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162588,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:07:05]process_action_free close_receipt [17:07:05]json_value_free [17:07:05]json_value_free done [17:07:05]process_json_proto returns [17:07:05]Send response to host [17:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162588,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:07:05]free response buf [17:07:05]execute_script done [17:07:05]execute_script returns [17:07:05]free content buf [17:07:05]Sock 7.Close socket [17:07:05]Sock 7.Thread stoped [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:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [17:13:48]OFD Sender: No OFD packet to send [17:13:53]OFD Sender: No OFD packet to send [17:13:58]OFD Sender: No OFD packet to send [17:14:03]OFD Sender: No OFD packet to send [17:14:08]OFD Sender: No OFD packet to send [17:14:13]OFD Sender: No OFD packet to send [17:14:18]OFD Sender: No OFD packet to send [17:14:23]OFD Sender: No OFD packet to send [17:14:28]OFD Sender: No OFD packet to send [17:14:33]OFD Sender: No OFD packet to send [17:14:38]OFD Sender: No OFD packet to send [17:14:43]OFD Sender: No OFD packet to send [17:14:48]OFD Sender: No OFD packet to send [17:14:53]OFD Sender: No OFD packet to send [17:14:58]OFD Sender: No OFD packet to send [17:15:03]OFD Sender: No OFD packet to send [17:15:08]OFD Sender: No OFD packet to send [17:15:13]OFD Sender: No OFD packet to send [17:15:18]OFD Sender: No OFD packet to send [17:15:23]OFD Sender: No OFD packet to send [17:15:28]OFD Sender: No OFD packet to send [17:15:33]OFD Sender: No OFD packet to send [17:15:38]OFD Sender: No OFD packet to send [17:15:43]OFD Sender: No OFD packet to send [17:15:48]OFD Sender: No OFD packet to send [17:15:53]OFD Sender: No OFD packet to send [17:15:58]OFD Sender: No OFD packet to send [17:16:03]OFD Sender: No OFD packet to send [17:16:08]OFD Sender: No OFD packet to send [17:16:13]OFD Sender: No OFD packet to send [17:16:18]OFD Sender: No OFD packet to send [17:16:23]OFD Sender: No OFD packet to send [17:16:28]OFD Sender: No OFD packet to send [17:16:33]OFD Sender: No OFD packet to send [17:16:38]OFD Sender: No OFD packet to send [17:16:43]OFD Sender: No OFD packet to send [17:16:48]OFD Sender: No OFD packet to send [17:16:53]OFD Sender: No OFD packet to send [17:16:58]OFD Sender: No OFD packet to send [17:17:03]OFD Sender: No OFD packet to send [17:17:08]OFD Sender: No OFD packet to send [17:17:13]OFD Sender: No OFD packet to send [17:17:18]OFD Sender: No OFD packet to send [17:17:23]OFD Sender: No OFD packet to send [17:17:28]OFD Sender: No OFD packet to send [17:17:33]OFD Sender: No OFD packet to send [17:17:38]OFD Sender: No OFD packet to send [17:17:43]OFD Sender: No OFD packet to send [17:17:48]OFD Sender: No OFD packet to send [17:17:53]OFD Sender: No OFD packet to send [17:17:58]OFD Sender: No OFD packet to send [17:18:03]OFD Sender: No OFD packet to send [17:18:08]OFD Sender: No OFD packet to send [17:18:13]OFD Sender: No OFD packet to send [17:18:18]OFD Sender: No OFD packet to send [17:18:23]OFD Sender: No OFD packet to send [17:18:28]OFD Sender: No OFD packet to send [17:18:33]OFD Sender: No OFD packet to send [17:18:38]OFD Sender: No OFD packet to send [17:18:43]OFD Sender: No OFD packet to send [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]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:17]accept exits with 9 [17:21:17]New connection [17:21:17]New thread 3067366756 created [17:21:17]Thread 3067510116 joined [17:21:17]Waiting for new connection... [17:21:17] Sock 9.Parse request [17:21:17]Sock 9.Check first char [17:21:17]Sock 9.First char is OK [17:21:17]request: POST /json_proto HTTP/1.0 [17:21:17]Method: POST [17:21:17]URL: /json_proto [17:21:17]Method is POST - this is cgi request [17:21:17]url: /json_proto [17:21:17]query_string will be loaded in cgi processing [17:21:17]execute_cgi json_proto POST (null) [17:21:17]execute_cgi path=json_proto method=POST [17:21:17]POST find Content-Length [17:21:17]Host: 172.17.39.67:8080 [17:21:17]Content-Length: 1213 [17:21:17]Content-Type: application/json [17:21:17] [17:21:17]POST finish read [17:21:17]Found Content-Length = 1213 [17:21:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319152\u000A13.07.2024 17:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1989.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32579\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:17]execute_script... [17:21:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319152\u000A13.07.2024 17:18\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 30.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1989.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32579\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:17]POST & json_proto [17:21:17]process_json_proto [17:21:17]json parsed OK: [17:21:17]protocol is kg_v1.0 [17:21:17]action value=print_text [17:21:17]process_action print_text [17:21:17]cmd_print_text [17:21:17]ExternCall_PrintAddStr [17:21:17]wPrintStart [17:21:17]Write to MH i2c: 01 00 00 FF 14 13 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 FF 14 00 00 00 00 00 FF 0F 28 [17:21:17]RasterBufferAndPrint [17:21:17]line *****ТОВАРНЫЙ ЧЕК***** [17:21:17]line АЗС 140 [17:21:17]line Партнер нефть [17:21:17]line 02508201610067 [17:21:17]line Кассир : Шамбеталиев А. [17:21:17]line Счет N : (1)1319152 [17:21:17]line 13.07.2024 17:18 [17:21:17]line ПРОДАЖА [17:21:17]line ТРК (МРК, ГНК): 63 [17:21:17]line Вид ГСМ : 2710124130 [17:21:17]line Аи-92-К-5 [17:21:17]line 30.000 x 66.30 [17:21:17]line ИТОГ: 1989.00 [17:21:17]line Тип оплаты: Талоны: Топливная Карта [17:21:17]line 32579 [17:21:17]line ______________________ [17:21:17]line (подпись) [17:21:17]written 0, free lines is 4095 [17:21:17]Write to MH i2c: 01 00 00 14 15 29 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: 01 07 00 14 15 00 00 00 00 00 F5 0D 32 [17:21:17]RasterBufferAndPrint [17:21:17]line [17:21:17]line [17:21:17]line [17:21:17]line [17:21:17]line [17:21:17]written 0, free lines is 3575 [17:21:17]MH_Cut [17:21:17]Write to MH i2c: D1 01 00 1B 15 01 02 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: D1 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: D1 01 00 [17:21:17]MH_I2C_Read... [17:21:17]Read from MH i2c: D1 01 00 1B 15 00 01 [17:21:17]Write to MH i2c: 01 00 00 1C 15 31 [17:21:17]Write i2c OK [17:21:17]MH_I2C_Read... [17:21:17]*** Cut start [17:21:17]*** Purtial cut [17:21:17]*** Stage 1: CUTSNS_PIN = 1 [17:21:18]Read from MH i2c: 01 [17:21:18]MH_I2C_Read... [17:21:18]*** Stop cut motor [17:21:18]*** Cut end [17:21:18]Read from MH i2c: 01 07 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: 01 07 00 1C 15 00 00 00 00 00 FF 0F 46 [17:21:18]process_action print_text done [17:21:18]requested_data is exist [17:21:18]produce_requested_data [17:21:18]requested_item fm.sn is exist - process it [17:21:18]wFMCommunicate request_size=4 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 11 00 00 [17:21:18]Write to MH i2c: E2 08 00 1D 15 80 11 00 00 00 00 00 00 AC [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 17 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 17 00 1D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0C [17:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:21:18]wFMCommunicate OK [17:21:18]requested_item fd.num is exist - process it [17:21:18]SAM_PROTO_GetFieldsCounters [17:21:18]wFMCommunicate request_size=4 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 13 00 00 [17:21:18]Write to MH i2c: E2 08 00 1E 15 80 13 00 00 00 00 00 00 AF [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 62 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 62 00 1E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [17:21:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:18]wFMCommunicate OK [17:21:18]SAM_PROTO_GetFieldsCounters done [17:21:18]requested_item shift.num is exist - process it [17:21:18]requested_item shift.opened is exist - process it [17:21:18]req_shift_opened [17:21:18]FM_GetShiftState [17:21:18]SAM_PROTO_GetShiftState [17:21:18]wFMCommunicate request_size=4 [17:21:18]MH_SAM_APDU [17:21:18]CAPDU: 80 13 01 00 [17:21:18]Write to MH i2c: E2 08 00 1F 15 80 13 01 00 00 00 00 00 B1 [17:21:18]Write i2c OK [17:21:18]MH_I2C_Read... [17:21:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:18]Read from MH i2c: E2 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 0E 00 [17:21:18]MH_I2C_Read... [17:21:18]Read from MH i2c: E2 0E 00 1F 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AB [17:21:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:21:18]wFMCommunicate OK [17:21:18]SAM_PROTO_GetShiftState done [17:21:18]FM_GetShiftState done [17:21:18]req_shift_opened done [17:21:18]requested_item shift.open_date is exist - process it [17:21:18]req_shift_open_date [17:21:18]req_shift_open_date done [17:21:18]produce_requested_data done [17:21:18]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162588,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:21:18]process_action_free print_text [17:21:18]json_value_free [17:21:18]json_value_free done [17:21:18]process_json_proto returns [17:21:18]Send response to host [17:21:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162588,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:21:18]free response buf [17:21:18]execute_script done [17:21:18]execute_script returns [17:21:18]free content buf [17:21:18]Sock 9.Close socket [17:21:18]Sock 9.Thread stoped [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:16]accept exits with 7 [17:22:16]New connection [17:22:16]New thread 3067510116 created [17:22:16]Thread 3067366756 joined [17:22:16]Waiting for new connection... [17:22:16] Sock 7.Parse request [17:22:16]Sock 7.Check first char [17:22:16]Sock 7.First char is OK [17:22:16]request: POST /json_proto HTTP/1.0 [17:22:16]Method: POST [17:22:16]URL: /json_proto [17:22:16]Method is POST - this is cgi request [17:22:16]url: /json_proto [17:22:16]query_string will be loaded in cgi processing [17:22:16]execute_cgi json_proto POST (null) [17:22:16]execute_cgi path=json_proto method=POST [17:22:16]POST find Content-Length [17:22:16]Host: 172.17.39.67:8080 [17:22:16]Content-Length: 1213 [17:22:16]Content-Type: application/json [17:22:16] [17:22:16]POST finish read [17:22:16]Found Content-Length = 1213 [17:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319153\u000A13.07.2024 17:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00445\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:16]execute_script... [17:22:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319153\u000A13.07.2024 17:19\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A00445\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:16]POST & json_proto [17:22:16]process_json_proto [17:22:16]json parsed OK: [17:22:16]protocol is kg_v1.0 [17:22:16]action value=print_text [17:22:16]process_action print_text [17:22:16]cmd_print_text [17:22:16]ExternCall_PrintAddStr [17:22:16]wPrintStart [17:22:16]Write to MH i2c: 01 00 00 20 15 35 [17:22:16]Write i2c OK [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 [17:22:16]MH_I2C_Read... [17:22:16]Read from MH i2c: 01 07 00 20 15 00 00 00 00 00 FF 0F 4A [17:22:16]RasterBufferAndPrint [17:22:16]line *****ТОВАРНЫЙ ЧЕК***** [17:22:16]line АЗС 140 [17:22:16]line Партнер нефть [17:22:16]line 02508201610067 [17:22:16]line Кассир : Шамбеталиев А. [17:22:16]line Счет N : (1)1319153 [17:22:16]line 13.07.2024 17:19 [17:22:16]line ПРОДАЖА [17:22:16]line ТРК (МРК, ГНК): 53 [17:22:16]line Вид ГСМ : 2710124130 [17:22:16]line Аи-92-К-5 [17:22:16]line 20.000 x 66.30 [17:22:16]line ИТОГ: 1326.00 [17:22:16]line Тип оплаты: Талоны: Топливная Карта [17:22:16]line 00445 [17:22:16]line ______________________ [17:22:16]line (подпись) [17:22:16]written 0, free lines is 4095 [17:22:17]Write to MH i2c: 01 00 00 35 15 4A [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: 01 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: 01 07 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: 01 07 00 35 15 00 00 00 00 00 F5 0D 53 [17:22:17]RasterBufferAndPrint [17:22:17]line [17:22:17]line [17:22:17]line [17:22:17]line [17:22:17]line [17:22:17]written 0, free lines is 3574 [17:22:17]MH_Cut [17:22:17]Write to MH i2c: D1 01 00 3C 15 01 23 [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: D1 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: D1 01 00 [17:22:17]MH_I2C_Read... [17:22:17]Read from MH i2c: D1 01 00 3C 15 00 22 [17:22:17]Write to MH i2c: 01 00 00 3D 15 52 [17:22:17]Write i2c OK [17:22:17]MH_I2C_Read... [17:22:17]*** Cut start [17:22:17]*** Purtial cut [17:22:17]*** CUTSNS_PIN = 0 [17:22:17]*** Stage 1: CUTSNS_PIN = 1 [17:22:19]OFD Sender: No OFD packet to send [17:22:19]Read from MH i2c: 01 [17:22:19]MH_I2C_Read... [17:22:19]*** Stop cut motor [17:22:19]*** Cut end [17:22:19]Read from MH i2c: 01 07 00 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: 01 07 00 3D 15 00 00 00 00 00 FF 0F 67 [17:22:19]process_action print_text done [17:22:19]requested_data is exist [17:22:19]produce_requested_data [17:22:19]requested_item fm.sn is exist - process it [17:22:19]wFMCommunicate request_size=4 [17:22:19]MH_SAM_APDU [17:22:19]CAPDU: 80 11 00 00 [17:22:19]Write to MH i2c: E2 08 00 3E 15 80 11 00 00 00 00 00 00 CD [17:22:19]Write i2c OK [17:22:19]MH_I2C_Read... [17:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:19]Read from MH i2c: E2 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 17 00 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 17 00 3E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2D [17:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:22:19]wFMCommunicate OK [17:22:19]requested_item fd.num is exist - process it [17:22:19]SAM_PROTO_GetFieldsCounters [17:22:19]wFMCommunicate request_size=4 [17:22:19]MH_SAM_APDU [17:22:19]CAPDU: 80 13 00 00 [17:22:19]Write to MH i2c: E2 08 00 3F 15 80 13 00 00 00 00 00 00 D0 [17:22:19]Write i2c OK [17:22:19]MH_I2C_Read... [17:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:19]Read from MH i2c: E2 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 62 00 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 62 00 3F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:22:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:19]wFMCommunicate OK [17:22:19]SAM_PROTO_GetFieldsCounters done [17:22:19]requested_item shift.num is exist - process it [17:22:19]requested_item shift.opened is exist - process it [17:22:19]req_shift_opened [17:22:19]FM_GetShiftState [17:22:19]SAM_PROTO_GetShiftState [17:22:19]wFMCommunicate request_size=4 [17:22:19]MH_SAM_APDU [17:22:19]CAPDU: 80 13 01 00 [17:22:19]Write to MH i2c: E2 08 00 40 15 80 13 01 00 00 00 00 00 D2 [17:22:19]Write i2c OK [17:22:19]MH_I2C_Read... [17:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:19]Read from MH i2c: E2 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 0E 00 [17:22:19]MH_I2C_Read... [17:22:19]Read from MH i2c: E2 0E 00 40 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CC [17:22:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:22:19]wFMCommunicate OK [17:22:19]SAM_PROTO_GetShiftState done [17:22:19]FM_GetShiftState done [17:22:19]req_shift_opened done [17:22:19]requested_item shift.open_date is exist - process it [17:22:19]req_shift_open_date [17:22:19]req_shift_open_date done [17:22:19]produce_requested_data done [17:22:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162588,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:22:19]process_action_free print_text [17:22:19]json_value_free [17:22:19]json_value_free done [17:22:19]process_json_proto returns [17:22:19]Send response to host [17:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162588,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:22:19]free response buf [17:22:19]execute_script done [17:22:19]execute_script returns [17:22:19]free content buf [17:22:19]Sock 7.Close socket [17:22:19]Sock 7.Thread stoped [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:52]accept exits with 9 [17:22:52]New connection [17:22:52]New thread 3067366756 created [17:22:52]Thread 3067510116 joined [17:22:52]Waiting for new connection... [17:22:52] Sock 9.Parse request [17:22:52]Sock 9.Check first char [17:22:52]Sock 9.First char is OK [17:22:52]request: POST /json_proto HTTP/1.0 [17:22:52]Method: POST [17:22:52]URL: /json_proto [17:22:52]Method is POST - this is cgi request [17:22:52]url: /json_proto [17:22:52]query_string will be loaded in cgi processing [17:22:52]execute_cgi json_proto POST (null) [17:22:52]execute_cgi path=json_proto method=POST [17:22:52]POST find Content-Length [17:22:52]Host: 172.17.39.67:8080 [17:22:52]Content-Length: 818 [17:22:52]Content-Type: application/json [17:22:52] [17:22:52]POST finish read [17:22:52]Found Content-Length = 818 [17:22:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:52]execute_script... [17:22: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)1319154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:22:52]POST & json_proto [17:22:52]process_json_proto [17:22:52]json parsed OK: [17:22:52]protocol is kg_v1.0 [17:22:52]action value=close_receipt [17:22:52]process_action close_receipt [17:22:52]cmd_close_receipt [17:22:52]MH_GetDate [17:22:52]Write to MH i2c: F0 00 00 41 15 45 [17:22:52]Write i2c OK [17:22:52]MH_I2C_Read... [17:22:52]Read from MH i2c: F0 [17:22:52]MH_I2C_Read... [17:22:52]Read from MH i2c: F0 09 00 [17:22:52]MH_I2C_Read... [17:22:52]Read from MH i2c: F0 09 00 41 15 00 ED B7 92 66 86 7C 92 66 E4 [17:22:52]GetLastDocTimeStamp 1720890421 [17:22:52]current date 1720891373 [17:22:52]FM_GetShiftState [17:22:52]SAM_PROTO_GetShiftState [17:22:52]wFMCommunicate request_size=4 [17:22:52]MH_SAM_APDU [17:22:52]CAPDU: 80 13 01 00 [17:22:52]Write to MH i2c: E2 08 00 42 15 80 13 01 00 00 00 00 00 D4 [17:22:52]Write i2c OK [17:22:52]MH_I2C_Read... [17:22:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:52]Read from MH i2c: E2 [17:22:52]MH_I2C_Read... [17:22:52]Read from MH i2c: E2 0E 00 [17:22:52]MH_I2C_Read... [17:22:52]Read from MH i2c: E2 0E 00 42 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CE [17:22:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:22:52]wFMCommunicate OK [17:22:52]SAM_PROTO_GetShiftState done [17:22:52]FM_GetShiftState done [17:22:52]opened in 1720828979 [17:22:52]opened+sec_in_day 1720915379 [17:22:52]quantity*price = 66300 [17:22:52]sum+1 = 66301 [17:22:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 257 13.07.2024 17:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162589 ФПД: 41120708855364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172253&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162589&fm=41120708855364&tin=02508201610067®Number=0000000000090858&sum=66300 [17:22:53]StoreToDocumentArchive [17:22:53]shift 462 fd 162589 [17:22:53]save to /storage/0462/doc_00162589 [17:22:53]save last doc name /storage/0462/doc_00162589 to /storage/kkm_last_doc_name [17:22:53]save OK [17:22:53]Clear old archive folders... [17:22:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:53]tlvbuf is 006C5E80 [17:22:53]SAM_PROTO_ClearQueue [17:22:53]wFMCommunicate request_size=4 [17:22:53]MH_SAM_APDU [17:22:53]CAPDU: 80 09 00 00 [17:22:53]Write to MH i2c: E2 08 00 4F 15 80 09 00 00 00 00 00 00 D6 [17:22:53]Write i2c OK [17:22:53]MH_I2C_Read... [17:22:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:53]Read from MH i2c: E2 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 03 00 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 03 00 4F 15 00 90 00 D8 [17:22:53]RAPDU: 90 00 [17:22:53]wFMCommunicate OK [17:22:53]SAM_PROTO_ClearQueue done [17:22:53]KKMCreateOFDPacket [17:22:53]OFDProtocolAddRootSTLVToBuf [17:22:53]FM_MakeSignedData [17:22:53]FM_MakeSignedData [17:22:53]SAM_PROTO_SignData [17:22:53]wFMCommunicate request_size=4 [17:22:53]MH_SAM_APDU [17:22:53]CAPDU: 80 0D 01 02 [17:22:53]Write to MH i2c: E2 08 00 50 15 80 0D 01 02 00 00 00 00 DE [17:22:53]Write i2c OK [17:22:53]MH_I2C_Read... [17:22:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:53]Read from MH i2c: E2 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 03 00 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 03 00 50 15 00 90 00 D9 [17:22:53]RAPDU: 90 00 [17:22:53]wFMCommunicate OK [17:22:53]wFMCommunicate request_size=255 [17:22:53]MH_SAM_APDU [17:22:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 ED B7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7B 02 00 35 04 06 00 25 [17:22:53]Write to MH i2c: E2 02 01 51 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 ED B7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7B 02 00 35 04 06 00 25 00 00 42 [17:22:53]Write i2c OK [17:22:53]MH_I2C_Read... [17:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:53]Read from MH i2c: E2 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 03 00 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 03 00 51 15 00 90 00 DA [17:22:53]RAPDU: 90 00 [17:22:53]wFMCommunicate OK [17:22:53]wFMCommunicate request_size=10 [17:22:53]MH_SAM_APDU [17:22:53]CAPDU: 80 0D 02 02 05 66 29 3E 86 44 [17:22:53]Write to MH i2c: E2 0D 00 52 15 80 0D 02 02 05 00 66 29 3E 86 44 00 00 82 [17:22:53]Write i2c OK [17:22:53]MH_I2C_Read... [17:22:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:53]Read from MH i2c: E2 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 03 00 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 03 00 52 15 00 90 00 DB [17:22:53]RAPDU: 90 00 [17:22:53]wFMCommunicate OK [17:22:53]wFMCommunicate request_size=4 [17:22:53]MH_SAM_APDU [17:22:53]CAPDU: 80 0D 03 02 [17:22:53]Write to MH i2c: E2 08 00 53 15 80 0D 03 02 00 00 00 00 E3 [17:22:53]Write i2c OK [17:22:53]MH_I2C_Read... [17:22:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:53]Read from MH i2c: E2 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 0B 00 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 0B 00 53 15 00 9D BE 27 A5 36 7A 32 24 90 00 11 [17:22:53]RAPDU: 9D BE 27 A5 36 7A 32 24 90 00 [17:22:53]wFMCommunicate OK [17:22:53]SAM_PROTO_SignData done [17:22:53]FM_MakeSignedData done [17:22:53]CreateOFDProtocolMessage [17:22:53]wFMCommunicate request_size=4 [17:22:53]MH_SAM_APDU [17:22:53]CAPDU: 80 11 00 00 [17:22:53]Write to MH i2c: E2 08 00 54 15 80 11 00 00 00 00 00 00 E3 [17:22:53]Write i2c OK [17:22:53]MH_I2C_Read... [17:22:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:53]Read from MH i2c: E2 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 17 00 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: E2 17 00 54 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 43 [17:22:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:22:53]wFMCommunicate OK [17:22:53]CreateOFDProtocolMessage done [17:22:53]OFDSenderStorePacket 162589 [17:22:53]StoreOFDPacket docnum=162589 [17:22:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C5 00 07 01 F5 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 ED B7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7B 02 00 35 04 06 00 25 66 29 3E 86 44 9D BE 27 A5 36 7A 32 24 [17:22:53]CheckFolder [17:22:53]dirname=/storage/ofd_packets [17:22:53]CheckFolder done [17:22:53]ProducePacketName [17:22:53]name=ofd_packets/00162589 [17:22:53]NVStorageSaveData ofd_packets/00162589 [17:22:53]File name is /storage/ofd_packets/00162589 [17:22:53]Write 301 bytes [17:22:53]NVStorageSaveData done [17:22:53]OFDSenderStorePacket done [17:22:53]KKMCreateOFDPacket done [17:22:53]NVStorageSaveData kkm_last_timestamp [17:22:53]File name is /storage/kkm_last_timestamp [17:22:53]Write 4 bytes [17:22:53]NVStorageSaveData done [17:22:53]ExternCall_PrintAddStr [17:22:53]wPrintStart [17:22:53]Write to MH i2c: 01 00 00 55 15 6A [17:22:53]Write i2c OK [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: 01 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: 01 07 00 [17:22:53]MH_I2C_Read... [17:22:53]Read from MH i2c: 01 07 00 55 15 00 00 00 00 00 FF 0F 7F [17:22:53]RasterBufferAndPrint [17:22:53]line Счет N : (1)1319154 [17:22:53]line ИНН: 02508201610067 [17:22:53]line Контрольно-Кассовый Чек [17:22:53]line ПРОДАЖА [17:22:53]line ТРК (МРК, ГНК) : 43 [17:22:53]line Товар: 2710124130 [17:22:53]line Аи-92-К-5 [17:22:53]line 10.000 * 66.30 [17:22:53]line = 663.00 [17:22:53]line НДС 12% НСП 1% [17:22:53]line > о реализуемом товаре [17:22:53]line ИТОГО: 663.00 [17:22:53]line НСП 1% : 5.87 [17:22:53]line НДС 12% : 70.41 [17:22:53]line Наличными: 0.00 [17:22:53]line Безнал.: 663.00 [17:22:53]line Место: АЗС № 140 "Партнер Нефть" [17:22:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:22:53]line СНО: Общий режим [17:22:53]line Чек 257 13.07.2024 17:22 [17:22:53]line Смена: 462 ФФД: 1.0 [17:22:53]line ЗНМ: 0300000129 [17:22:53]line РНМ: 0000000000090858 [17:22:53]line Версия ККМ: 001 [17:22:53]line Платежная система: Бакай Банк [17:22:53]line ФМ: 0000000000874899 [17:22:53]line ФД: 162589 [17:22:53]line ФПД: 41120708855364 [17:22:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172253&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162589&fm=41120708855364&tin=02508201610067®Number=0000000000090858&sum=66300 [17:22:54]written 0, free lines is 4095 [17:22:54]OFD Sender: Processing packet 162589 [packets to send 106, broken 105] [17:22:54]ProducePacketName [17:22:54]name=ofd_packets/00162589 [17:22:54]OFD Sender: To server: pG, [17:22:54]CommunicateWithHost lk.salyk.kg:30040 [17:22:54]ConnectInit lk.salyk.kg [17:22:54]Connected sock=10 [17:22:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C5 00 07 01 F5 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 ED B7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7B 02 00 35 04 06 00 25 66 29 3E 86 44 9D BE 27 A5 36 7A 32 24 [17:22:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0E DA 47 00 16 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1D 7B 02 00 F4 03 04 00 FB 63 92 66 B6 04 01 00 00 3B 05 50 85 AD D7 EA 99 [17:22:54]CommunicateWithHost err = 0 [17:22:54]CheckOFDResponse [17:22:54]1017 (14) - 77093643461234 [17:22:54]1041 (16) - 0000000000874899 [17:22:54]1040 (4) - 162589 [17:22:54]1012 (4) - 13.07.2024 11:24 [17:22:54]1206 (1) - 0 [17:22:54]OFD Sender: Remove packet 162589 [17:22:54]ProducePacketName [17:22:54]name=ofd_packets/00162589 [17:22:54]NVStorageDeleteData [17:22:54]Write to MH i2c: 01 00 00 7F 15 94 [17:22:54]Write i2c OK [17:22:54]MH_I2C_Read... [17:22:54]Read from MH i2c: 01 [17:22:54]MH_I2C_Read... [17:22:54]Read from MH i2c: 01 07 00 [17:22:54]MH_I2C_Read... [17:22:54]Read from MH i2c: 01 07 00 7F 15 00 00 00 00 00 F4 0C 9B [17:22:54]RasterBufferAndPrint [17:22:54]line [17:22:54]line [17:22:54]line [17:22:54]line [17:22:54]line [17:22:54]written 0, free lines is 3322 [17:22:54]MH_Cut [17:22:54]Write to MH i2c: D1 01 00 86 15 01 6D [17:22:54]Write i2c OK [17:22:54]MH_I2C_Read... [17:22:54]Read from MH i2c: D1 [17:22:54]MH_I2C_Read... [17:22:54]Read from MH i2c: D1 01 00 [17:22:54]MH_I2C_Read... [17:22:54]Read from MH i2c: D1 01 00 86 15 00 6C [17:22:54]Write to MH i2c: 01 00 00 87 15 9C [17:22:54]Write i2c OK [17:22:54]MH_I2C_Read... [17:22:54]OFD Sender: No OFD packet to send [17:22:55]*** Cut start [17:22:55]*** Purtial cut [17:22:55]*** Stage 1: CUTSNS_PIN = 1 [17:22:55]Read from MH i2c: 01 [17:22:55]MH_I2C_Read... [17:22:55]*** Stop cut motor [17:22:55]*** Cut end [17:22:55]Read from MH i2c: 01 07 00 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: 01 07 00 87 15 00 00 00 00 00 FF 0F B1 [17:22:55]process_action close_receipt done [17:22:55]requested_data is exist [17:22:55]produce_requested_data [17:22:55]requested_item fm.sn is exist - process it [17:22:55]wFMCommunicate request_size=4 [17:22:55]MH_SAM_APDU [17:22:55]CAPDU: 80 11 00 00 [17:22:55]Write to MH i2c: E2 08 00 88 15 80 11 00 00 00 00 00 00 17 [17:22:55]Write i2c OK [17:22:55]MH_I2C_Read... [17:22:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:55]Read from MH i2c: E2 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: E2 17 00 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: E2 17 00 88 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [17:22:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:22:55]wFMCommunicate OK [17:22:55]requested_item fd.num is exist - process it [17:22:55]SAM_PROTO_GetFieldsCounters [17:22:55]wFMCommunicate request_size=4 [17:22:55]MH_SAM_APDU [17:22:55]CAPDU: 80 13 00 00 [17:22:55]Write to MH i2c: E2 08 00 89 15 80 13 00 00 00 00 00 00 1A [17:22:55]Write i2c OK [17:22:55]MH_I2C_Read... [17:22:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:55]Read from MH i2c: E2 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: E2 62 00 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: E2 62 00 89 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [17:22:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:55]wFMCommunicate OK [17:22:55]SAM_PROTO_GetFieldsCounters done [17:22:55]requested_item shift.num is exist - process it [17:22:55]requested_item shift.opened is exist - process it [17:22:55]req_shift_opened [17:22:55]FM_GetShiftState [17:22:55]SAM_PROTO_GetShiftState [17:22:55]wFMCommunicate request_size=4 [17:22:55]MH_SAM_APDU [17:22:55]CAPDU: 80 13 01 00 [17:22:55]Write to MH i2c: E2 08 00 8A 15 80 13 01 00 00 00 00 00 1C [17:22:55]Write i2c OK [17:22:55]MH_I2C_Read... [17:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:55]Read from MH i2c: E2 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: E2 0E 00 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: E2 0E 00 8A 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 16 [17:22:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:22:55]wFMCommunicate OK [17:22:55]SAM_PROTO_GetShiftState done [17:22:55]FM_GetShiftState done [17:22:55]req_shift_opened done [17:22:55]requested_item shift.open_date is exist - process it [17:22:55]req_shift_open_date [17:22:55]req_shift_open_date done [17:22:55]produce_requested_data done [17:22:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162589,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:22:55]process_action_free close_receipt [17:22:55]json_value_free [17:22:55]json_value_free done [17:22:55]process_json_proto returns [17:22:55]Send response to host [17:22:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162589,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:22:55]free response buf [17:22:55]execute_script done [17:22:55]execute_script returns [17:22:55]free content buf [17:22:55]Sock 9.Close socket [17:22:55]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:49]accept exits with 7 [17:24:49]New connection [17:24:49]New thread 3067510116 created [17:24:49]Thread 3067366756 joined [17:24:49]Waiting for new connection... [17:24:49] Sock 7.Parse request [17:24:49]Sock 7.Check first char [17:24:49]Sock 7.First char is OK [17:24:49]request: POST /json_proto HTTP/1.0 [17:24:49]Method: POST [17:24:49]URL: /json_proto [17:24:49]Method is POST - this is cgi request [17:24:49]url: /json_proto [17:24:49]query_string will be loaded in cgi processing [17:24:49]execute_cgi json_proto POST (null) [17:24:49]execute_cgi path=json_proto method=POST [17:24:49]POST find Content-Length [17:24:49]Host: 172.17.39.67:8080 [17:24:49]Content-Length: 809 [17:24:49]Content-Type: application/json [17:24:49] [17:24:49]POST finish read [17:24:49]Found Content-Length = 809 [17:24:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 38.560, "sum" : 2799.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2799.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:49]execute_script... [17:24: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)1319155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 38.560, "sum" : 2799.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2799.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:49]POST & json_proto [17:24:49]process_json_proto [17:24:49]json parsed OK: [17:24:49]protocol is kg_v1.0 [17:24:49]action value=close_receipt [17:24:49]process_action close_receipt [17:24:49]cmd_close_receipt [17:24:49]MH_GetDate [17:24:49]Write to MH i2c: F0 00 00 8B 15 8F [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: F0 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: F0 09 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: F0 09 00 8B 15 00 62 B8 92 66 86 7C 92 66 A4 [17:24:49]GetLastDocTimeStamp 1720891373 [17:24:49]current date 1720891490 [17:24:49]FM_GetShiftState [17:24:49]SAM_PROTO_GetShiftState [17:24:49]wFMCommunicate request_size=4 [17:24:49]MH_SAM_APDU [17:24:49]CAPDU: 80 13 01 00 [17:24:49]Write to MH i2c: E2 08 00 8C 15 80 13 01 00 00 00 00 00 1E [17:24:49]Write i2c OK [17:24:49]MH_I2C_Read... [17:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:49]Read from MH i2c: E2 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0E 00 [17:24:49]MH_I2C_Read... [17:24:49]Read from MH i2c: E2 0E 00 8C 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 18 [17:24:49]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:24:49]wFMCommunicate OK [17:24:49]SAM_PROTO_GetShiftState done [17:24:49]FM_GetShiftState done [17:24:49]opened in 1720828979 [17:24:49]opened+sec_in_day 1720915379 [17:24:49]quantity*price = 279945 [17:24:49]sum+1 = 279947 [17:24:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2799.46 НСП 1% : 24.77 НДС 12% : 297.29 Наличными: 0.00 Безнал.: 2799.46 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 258 13.07.2024 17:24 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162590 ФПД: 22958503794694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172450&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162590&fm=22958503794694&tin=02508201610067®Number=0000000000090858&sum=279946 [17:24:50]StoreToDocumentArchive [17:24:50]shift 462 fd 162590 [17:24:50]save to /storage/0462/doc_00162590 [17:24:50]save last doc name /storage/0462/doc_00162590 to /storage/kkm_last_doc_name [17:24:50]save OK [17:24:50]Clear old archive folders... [17:24:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:24:50]tlvbuf is 005FA730 [17:24:50]SAM_PROTO_ClearQueue [17:24:50]wFMCommunicate request_size=4 [17:24:50]MH_SAM_APDU [17:24:50]CAPDU: 80 09 00 00 [17:24:50]Write to MH i2c: E2 08 00 99 15 80 09 00 00 00 00 00 00 20 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:50]Read from MH i2c: E2 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 03 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 03 00 99 15 00 90 00 22 [17:24:50]RAPDU: 90 00 [17:24:50]wFMCommunicate OK [17:24:50]SAM_PROTO_ClearQueue done [17:24:50]KKMCreateOFDPacket [17:24:50]OFDProtocolAddRootSTLVToBuf [17:24:50]FM_MakeSignedData [17:24:50]FM_MakeSignedData [17:24:50]SAM_PROTO_SignData [17:24:50]wFMCommunicate request_size=4 [17:24:50]MH_SAM_APDU [17:24:50]CAPDU: 80 0D 01 02 [17:24:50]Write to MH i2c: E2 08 00 9A 15 80 0D 01 02 00 00 00 00 28 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:50]Read from MH i2c: E2 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 03 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 03 00 9A 15 00 90 00 23 [17:24:50]RAPDU: 90 00 [17:24:50]wFMCommunicate OK [17:24:50]wFMCommunicate request_size=255 [17:24:50]MH_SAM_APDU [17:24:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 96 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8A 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 62 B8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7B 02 00 35 04 06 00 [17:24:50]Write to MH i2c: E2 02 01 9B 15 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 96 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8A 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 62 B8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7B 02 00 35 04 06 00 00 00 70 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:50]Read from MH i2c: E2 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 03 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 03 00 9B 15 00 90 00 24 [17:24:50]RAPDU: 90 00 [17:24:50]wFMCommunicate OK [17:24:50]wFMCommunicate request_size=11 [17:24:50]MH_SAM_APDU [17:24:50]CAPDU: 80 0D 02 02 06 14 E1 71 76 98 06 [17:24:50]Write to MH i2c: E2 0E 00 9C 15 80 0D 02 02 06 00 14 E1 71 76 98 06 00 00 B1 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:50]Read from MH i2c: E2 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 03 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 03 00 9C 15 00 90 00 25 [17:24:50]RAPDU: 90 00 [17:24:50]wFMCommunicate OK [17:24:50]wFMCommunicate request_size=4 [17:24:50]MH_SAM_APDU [17:24:50]CAPDU: 80 0D 03 02 [17:24:50]Write to MH i2c: E2 08 00 9D 15 80 0D 03 02 00 00 00 00 2D [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:50]Read from MH i2c: E2 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 0B 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 0B 00 9D 15 00 24 8D B2 A3 4C 23 D8 B8 90 00 33 [17:24:50]RAPDU: 24 8D B2 A3 4C 23 D8 B8 90 00 [17:24:50]wFMCommunicate OK [17:24:50]SAM_PROTO_SignData done [17:24:50]FM_MakeSignedData done [17:24:50]CreateOFDProtocolMessage [17:24:50]wFMCommunicate request_size=4 [17:24:50]MH_SAM_APDU [17:24:50]CAPDU: 80 11 00 00 [17:24:50]Write to MH i2c: E2 08 00 9E 15 80 11 00 00 00 00 00 00 2D [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:50]Read from MH i2c: E2 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 17 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: E2 17 00 9E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8D [17:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:24:50]wFMCommunicate OK [17:24:50]CreateOFDProtocolMessage done [17:24:50]OFDSenderStorePacket 162590 [17:24:50]StoreOFDPacket docnum=162590 [17:24:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 63 C8 08 01 4A 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 96 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8A 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 62 B8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7B 02 00 35 04 06 00 14 E1 71 76 98 06 24 8D B2 A3 4C 23 D8 B8 [17:24:50]CheckFolder [17:24:50]dirname=/storage/ofd_packets [17:24:50]CheckFolder done [17:24:50]ProducePacketName [17:24:50]name=ofd_packets/00162590 [17:24:50]NVStorageSaveData ofd_packets/00162590 [17:24:50]File name is /storage/ofd_packets/00162590 [17:24:50]Write 302 bytes [17:24:50]NVStorageSaveData done [17:24:50]OFDSenderStorePacket done [17:24:50]KKMCreateOFDPacket done [17:24:50]NVStorageSaveData kkm_last_timestamp [17:24:50]File name is /storage/kkm_last_timestamp [17:24:50]Write 4 bytes [17:24:50]NVStorageSaveData done [17:24:50]ExternCall_PrintAddStr [17:24:50]wPrintStart [17:24:50]Write to MH i2c: 01 00 00 9F 15 B4 [17:24:50]Write i2c OK [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 [17:24:50]MH_I2C_Read... [17:24:50]Read from MH i2c: 01 07 00 9F 15 00 00 00 00 00 FF 0F C9 [17:24:50]RasterBufferAndPrint [17:24:50]line Счет N : (1)1319155 [17:24:50]line ИНН: 02508201610067 [17:24:50]line Контрольно-Кассовый Чек [17:24:50]line ПРОДАЖА [17:24:50]line ТРК (МРК, ГНК) : 21 [17:24:50]line Товар: 2710194210 [17:24:50]line ДТ(л)-К-5 [17:24:50]line 38.560 * 72.60 [17:24:50]line = 2799.46 [17:24:50]line НДС 12% НСП 1% [17:24:50]line > о реализуемом товаре [17:24:50]line ИТОГО: 2799.46 [17:24:50]line НСП 1% : 24.77 [17:24:50]line НДС 12% : 297.29 [17:24:50]line Наличными: 0.00 [17:24:50]line Безнал.: 2799.46 [17:24:50]line Место: АЗС № 140 "Партнер Нефть" [17:24:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:24:50]line СНО: Общий режим [17:24:50]line Чек 258 13.07.2024 17:24 [17:24:50]line Смена: 462 ФФД: 1.0 [17:24:50]line ЗНМ: 0300000129 [17:24:50]line РНМ: 0000000000090858 [17:24:50]line Версия ККМ: 001 [17:24:50]line Платежная система: O! деньги [17:24:50]line ФМ: 0000000000874899 [17:24:50]line ФД: 162590 [17:24:50]line ФПД: 22958503794694 [17:24:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T172450&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162590&fm=22958503794694&tin=02508201610067®Number=0000000000090858&sum=279946 [17:24:51]written 0, free lines is 4095 [17:24:51]OFD Sender: Processing packet 162590 [packets to send 106, broken 105] [17:24:51]ProducePacketName [17:24:51]name=ofd_packets/00162590 [17:24:51]OFD Sender: To server: pG, [17:24:51]CommunicateWithHost lk.salyk.kg:30040 [17:24:51]ConnectInit lk.salyk.kg [17:24:51]Connected sock=10 [17:24:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 63 C8 08 01 4A 56 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 96 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 8A 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8A 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 74 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8A 45 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 62 B8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7B 02 00 35 04 06 00 14 E1 71 76 98 06 24 8D B2 A3 4C 23 D8 B8 [17:24:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3E 45 47 00 A3 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1E 7B 02 00 F4 03 04 00 70 64 92 66 B6 04 01 00 00 68 08 D2 09 E5 0D 5B 2C [17:24:51]CommunicateWithHost err = 0 [17:24:51]CheckOFDResponse [17:24:51]1017 (14) - 77093643461234 [17:24:51]1041 (16) - 0000000000874899 [17:24:51]1040 (4) - 162590 [17:24:51]1012 (4) - 13.07.2024 11:26 [17:24:51]1206 (1) - 0 [17:24:51]OFD Sender: Remove packet 162590 [17:24:51]ProducePacketName [17:24:51]name=ofd_packets/00162590 [17:24:51]NVStorageDeleteData [17:24:51]Write to MH i2c: 01 00 00 C9 15 DE [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: 01 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: 01 07 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: 01 07 00 C9 15 00 00 00 00 00 05 0D F7 [17:24:51]RasterBufferAndPrint [17:24:51]line [17:24:51]line [17:24:51]line [17:24:51]line [17:24:51]line [17:24:51]written 0, free lines is 3338 [17:24:51]MH_Cut [17:24:51]Write to MH i2c: D1 01 00 D0 15 01 B7 [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: D1 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: D1 01 00 [17:24:51]MH_I2C_Read... [17:24:51]Read from MH i2c: D1 01 00 D0 15 00 B6 [17:24:51]Write to MH i2c: 01 00 00 D1 15 E6 [17:24:51]Write i2c OK [17:24:51]MH_I2C_Read... [17:24:52]OFD Sender: No OFD packet to send [17:24:52]*** Cut start [17:24:52]*** Purtial cut [17:24:52]*** CUTSNS_PIN = 0 [17:24:52]*** Stage 1: CUTSNS_PIN = 1 [17:24:54]Read from MH i2c: 01 [17:24:54]MH_I2C_Read... [17:24:54]*** Stop cut motor [17:24:54]*** Cut end [17:24:54]Read from MH i2c: 01 07 00 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: 01 07 00 D1 15 00 00 00 00 00 FF 0F FB [17:24:54]process_action close_receipt done [17:24:54]requested_data is exist [17:24:54]produce_requested_data [17:24:54]requested_item fm.sn is exist - process it [17:24:54]wFMCommunicate request_size=4 [17:24:54]MH_SAM_APDU [17:24:54]CAPDU: 80 11 00 00 [17:24:54]Write to MH i2c: E2 08 00 D2 15 80 11 00 00 00 00 00 00 61 [17:24:54]Write i2c OK [17:24:54]MH_I2C_Read... [17:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:54]Read from MH i2c: E2 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 17 00 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 17 00 D2 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C1 [17:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:24:54]wFMCommunicate OK [17:24:54]requested_item fd.num is exist - process it [17:24:54]SAM_PROTO_GetFieldsCounters [17:24:54]wFMCommunicate request_size=4 [17:24:54]MH_SAM_APDU [17:24:54]CAPDU: 80 13 00 00 [17:24:54]Write to MH i2c: E2 08 00 D3 15 80 13 00 00 00 00 00 00 64 [17:24:54]Write i2c OK [17:24:54]MH_I2C_Read... [17:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:54]Read from MH i2c: E2 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 62 00 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 62 00 D3 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [17:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:54]wFMCommunicate OK [17:24:54]SAM_PROTO_GetFieldsCounters done [17:24:54]requested_item shift.num is exist - process it [17:24:54]requested_item shift.opened is exist - process it [17:24:54]req_shift_opened [17:24:54]FM_GetShiftState [17:24:54]SAM_PROTO_GetShiftState [17:24:54]wFMCommunicate request_size=4 [17:24:54]MH_SAM_APDU [17:24:54]CAPDU: 80 13 01 00 [17:24:54]Write to MH i2c: E2 08 00 D4 15 80 13 01 00 00 00 00 00 66 [17:24:54]Write i2c OK [17:24:54]MH_I2C_Read... [17:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:54]Read from MH i2c: E2 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 0E 00 [17:24:54]MH_I2C_Read... [17:24:54]Read from MH i2c: E2 0E 00 D4 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 60 [17:24:54]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:24:54]wFMCommunicate OK [17:24:54]SAM_PROTO_GetShiftState done [17:24:54]FM_GetShiftState done [17:24:54]req_shift_opened done [17:24:54]requested_item shift.open_date is exist - process it [17:24:54]req_shift_open_date [17:24:54]req_shift_open_date done [17:24:54]produce_requested_data done [17:24:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162590,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:24:54]process_action_free close_receipt [17:24:54]json_value_free [17:24:54]json_value_free done [17:24:54]process_json_proto returns [17:24:54]Send response to host [17:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162590,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:24:54]free response buf [17:24:54]execute_script done [17:24:54]execute_script returns [17:24:54]free content buf [17:24:54]Sock 7.Close socket [17:24:54]Sock 7.Thread stoped [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [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:13]accept exits with 9 [17:33:13]New connection [17:33:13]New thread 3067366756 created [17:33:13]Thread 3067510116 joined [17:33:13]Waiting for new connection... [17:33:13] Sock 9.Parse request [17:33:13]Sock 9.Check first char [17:33:13]Sock 9.First char is OK [17:33:13]request: POST /json_proto HTTP/1.0 [17:33:13]Method: POST [17:33:13]URL: /json_proto [17:33:13]Method is POST - this is cgi request [17:33:13]url: /json_proto [17:33:13]query_string will be loaded in cgi processing [17:33:13]execute_cgi json_proto POST (null) [17:33:13]execute_cgi path=json_proto method=POST [17:33:13]POST find Content-Length [17:33:13]Host: 172.17.39.67:8080 [17:33:13]Content-Length: 818 [17:33:13]Content-Type: application/json [17:33:13] [17:33:13]POST finish read [17:33:13]Found Content-Length = 818 [17:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 10.000, "sum" : 744.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 744.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:13]execute_script... [17:33:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 10.000, "sum" : 744.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 744.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:13]POST & json_proto [17:33:13]process_json_proto [17:33:13]json parsed OK: [17:33:13]protocol is kg_v1.0 [17:33:13]action value=close_receipt [17:33:13]process_action close_receipt [17:33:13]cmd_close_receipt [17:33:13]MH_GetDate [17:33:13]Write to MH i2c: F0 00 00 D5 15 D9 [17:33:13]Write i2c OK [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: F0 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: F0 09 00 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: F0 09 00 D5 15 00 5A BA 92 66 86 7C 92 66 E8 [17:33:13]GetLastDocTimeStamp 1720891490 [17:33:13]current date 1720891994 [17:33:13]FM_GetShiftState [17:33:13]SAM_PROTO_GetShiftState [17:33:13]wFMCommunicate request_size=4 [17:33:13]MH_SAM_APDU [17:33:13]CAPDU: 80 13 01 00 [17:33:13]Write to MH i2c: E2 08 00 D6 15 80 13 01 00 00 00 00 00 68 [17:33:13]Write i2c OK [17:33:13]MH_I2C_Read... [17:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:13]Read from MH i2c: E2 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 0E 00 [17:33:13]MH_I2C_Read... [17:33:13]Read from MH i2c: E2 0E 00 D6 15 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 62 [17:33:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:33:13]wFMCommunicate OK [17:33:13]SAM_PROTO_GetShiftState done [17:33:13]FM_GetShiftState done [17:33:13]opened in 1720828979 [17:33:13]opened+sec_in_day 1720915379 [17:33:13]quantity*price = 74400 [17:33:13]sum+1 = 74401 [17:33:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 744.00 НСП 1% : 6.58 НДС 12% : 79.01 Наличными: 0.00 Безнал.: 744.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 259 13.07.2024 17:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162591 ФПД: 118830886977393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162591&fm=118830886977393&tin=02508201610067®Number=0000000000090858&sum=74400 [17:33:15]StoreToDocumentArchive [17:33:15]shift 462 fd 162591 [17:33:15]save to /storage/0462/doc_00162591 [17:33:15]save last doc name /storage/0462/doc_00162591 to /storage/kkm_last_doc_name [17:33:15]save OK [17:33:15]Clear old archive folders... [17:33:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:15]tlvbuf is 006C5E80 [17:33:15]SAM_PROTO_ClearQueue [17:33:15]wFMCommunicate request_size=4 [17:33:15]MH_SAM_APDU [17:33:15]CAPDU: 80 09 00 00 [17:33:15]Write to MH i2c: E2 08 00 E3 15 80 09 00 00 00 00 00 00 6A [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 03 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 03 00 E3 15 00 90 00 6C [17:33:15]RAPDU: 90 00 [17:33:15]wFMCommunicate OK [17:33:15]SAM_PROTO_ClearQueue done [17:33:15]KKMCreateOFDPacket [17:33:15]OFDProtocolAddRootSTLVToBuf [17:33:15]FM_MakeSignedData [17:33:15]FM_MakeSignedData [17:33:15]SAM_PROTO_SignData [17:33:15]wFMCommunicate request_size=4 [17:33:15]MH_SAM_APDU [17:33:15]CAPDU: 80 0D 01 02 [17:33:15]Write to MH i2c: E2 08 00 E4 15 80 0D 01 02 00 00 00 00 72 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 03 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 03 00 E4 15 00 90 00 6D [17:33:15]RAPDU: 90 00 [17:33:15]wFMCommunicate OK [17:33:15]wFMCommunicate request_size=255 [17:33:15]MH_SAM_APDU [17:33: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 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 5A BA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7B 02 00 35 04 06 00 6C [17:33:15]Write to MH i2c: E2 02 01 E5 15 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 5A BA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7B 02 00 35 04 06 00 6C 00 00 B5 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 03 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 03 00 E5 15 00 90 00 6E [17:33:15]RAPDU: 90 00 [17:33:15]wFMCommunicate OK [17:33:15]wFMCommunicate request_size=10 [17:33:15]MH_SAM_APDU [17:33:15]CAPDU: 80 0D 02 02 05 13 78 CE 7F 71 [17:33:15]Write to MH i2c: E2 0D 00 E6 15 80 0D 02 02 05 00 13 78 CE 7F 71 00 00 C8 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 03 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 03 00 E6 15 00 90 00 6F [17:33:15]RAPDU: 90 00 [17:33:15]wFMCommunicate OK [17:33:15]wFMCommunicate request_size=4 [17:33:15]MH_SAM_APDU [17:33:15]CAPDU: 80 0D 03 02 [17:33:15]Write to MH i2c: E2 08 00 E7 15 80 0D 03 02 00 00 00 00 77 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 0B 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 0B 00 E7 15 00 85 1D 17 98 D5 73 14 32 90 00 57 [17:33:15]RAPDU: 85 1D 17 98 D5 73 14 32 90 00 [17:33:15]wFMCommunicate OK [17:33:15]SAM_PROTO_SignData done [17:33:15]FM_MakeSignedData done [17:33:15]CreateOFDProtocolMessage [17:33:15]wFMCommunicate request_size=4 [17:33:15]MH_SAM_APDU [17:33:15]CAPDU: 80 11 00 00 [17:33:15]Write to MH i2c: E2 08 00 E8 15 80 11 00 00 00 00 00 00 77 [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:15]Read from MH i2c: E2 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 17 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: E2 17 00 E8 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D7 [17:33:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:33:15]wFMCommunicate OK [17:33:15]CreateOFDProtocolMessage done [17:33:15]OFDSenderStorePacket 162591 [17:33:15]StoreOFDPacket docnum=162591 [17:33:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C4 7A 07 01 36 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 5A BA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7B 02 00 35 04 06 00 6C 13 78 CE 7F 71 85 1D 17 98 D5 73 14 32 [17:33:15]CheckFolder [17:33:15]dirname=/storage/ofd_packets [17:33:15]CheckFolder done [17:33:15]ProducePacketName [17:33:15]name=ofd_packets/00162591 [17:33:15]NVStorageSaveData ofd_packets/00162591 [17:33:15]File name is /storage/ofd_packets/00162591 [17:33:15]Write 301 bytes [17:33:15]NVStorageSaveData done [17:33:15]OFDSenderStorePacket done [17:33:15]KKMCreateOFDPacket done [17:33:15]NVStorageSaveData kkm_last_timestamp [17:33:15]File name is /storage/kkm_last_timestamp [17:33:15]Write 4 bytes [17:33:15]NVStorageSaveData done [17:33:15]ExternCall_PrintAddStr [17:33:15]wPrintStart [17:33:15]Write to MH i2c: 01 00 00 E9 15 FE [17:33:15]Write i2c OK [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: 01 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: 01 07 00 [17:33:15]MH_I2C_Read... [17:33:15]Read from MH i2c: 01 07 00 E9 15 00 00 00 00 00 FF 0F 13 [17:33:15]RasterBufferAndPrint [17:33:15]line Счет N : (1)1319156 [17:33:15]line ИНН: 02508201610067 [17:33:15]line Контрольно-Кассовый Чек [17:33:15]line ПРОДАЖА [17:33:15]line ТРК (МРК, ГНК) : 54 [17:33:15]line Товар: 2710124500 [17:33:15]line Аи-95-К-5 [17:33:15]line 10.000 * 74.40 [17:33:15]line = 744.00 [17:33:15]line НДС 12% НСП 1% [17:33:15]line > о реализуемом товаре [17:33:15]line ИТОГО: 744.00 [17:33:15]line НСП 1% : 6.58 [17:33:15]line НДС 12% : 79.01 [17:33:15]line Наличными: 0.00 [17:33:15]line Безнал.: 744.00 [17:33:15]line Место: АЗС № 140 "Партнер Нефть" [17:33:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:33:15]line СНО: Общий режим [17:33:15]line Чек 259 13.07.2024 17:33 [17:33:15]line Смена: 462 ФФД: 1.0 [17:33:15]line ЗНМ: 0300000129 [17:33:15]line РНМ: 0000000000090858 [17:33:15]line Версия ККМ: 001 [17:33:15]line Платежная система: Бакай Банк [17:33:15]line ФМ: 0000000000874899 [17:33:15]line ФД: 162591 [17:33:15]line ФПД: 118830886977393 [17:33:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162591&fm=118830886977393&tin=02508201610067®Number=0000000000090858&sum=74400 [17:33:15]written 0, free lines is 4095 [17:33:15]OFD Sender: Processing packet 162591 [packets to send 106, broken 105] [17:33:15]ProducePacketName [17:33:15]name=ofd_packets/00162591 [17:33:15]OFD Sender: To server: pG, [17:33:15]CommunicateWithHost lk.salyk.kg:30040 [17:33:15]ConnectInit lk.salyk.kg [17:33:15]Connected sock=10 [17:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C4 7A 07 01 36 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 5A BA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7B 02 00 35 04 06 00 6C 13 78 CE 7F 71 85 1D 17 98 D5 73 14 32 [17:33:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A0 D7 47 00 88 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 1F 7B 02 00 F4 03 04 00 69 66 92 66 B6 04 01 00 00 4B 4B 4F D5 30 18 A9 CC [17:33:16]CommunicateWithHost err = 0 [17:33:16]CheckOFDResponse [17:33:16]1017 (14) - 77093643461234 [17:33:16]1041 (16) - 0000000000874899 [17:33:16]1040 (4) - 162591 [17:33:16]1012 (4) - 13.07.2024 11:35 [17:33:16]1206 (1) - 0 [17:33:16]OFD Sender: Remove packet 162591 [17:33:16]ProducePacketName [17:33:16]name=ofd_packets/00162591 [17:33:16]NVStorageDeleteData [17:33:16]Write to MH i2c: 01 00 00 13 16 29 [17:33:16]Write i2c OK [17:33:16]MH_I2C_Read... [17:33:16]Read from MH i2c: 01 [17:33:16]MH_I2C_Read... [17:33:16]Read from MH i2c: 01 07 00 [17:33:16]MH_I2C_Read... [17:33:16]Read from MH i2c: 01 07 00 13 16 00 00 00 00 00 ED 0C 29 [17:33:16]RasterBufferAndPrint [17:33:16]line [17:33:16]line [17:33:16]line [17:33:16]line [17:33:16]line [17:33:16]written 0, free lines is 3315 [17:33:16]MH_Cut [17:33:16]Write to MH i2c: D1 01 00 1A 16 01 02 [17:33:16]Write i2c OK [17:33:16]MH_I2C_Read... [17:33:16]Read from MH i2c: D1 [17:33:16]MH_I2C_Read... [17:33:16]Read from MH i2c: D1 01 00 [17:33:16]MH_I2C_Read... [17:33:16]Read from MH i2c: D1 01 00 1A 16 00 01 [17:33:16]Write to MH i2c: 01 00 00 1B 16 31 [17:33:16]Write i2c OK [17:33:16]MH_I2C_Read... [17:33:16]OFD Sender: No OFD packet to send [17:33:17]*** Cut start [17:33:17]*** Purtial cut [17:33:17]*** Stage 1: CUTSNS_PIN = 1 [17:33:17]Read from MH i2c: 01 [17:33:17]MH_I2C_Read... [17:33:17]*** Stop cut motor [17:33:17]*** Cut end [17:33:17]Read from MH i2c: 01 07 00 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: 01 07 00 1B 16 00 00 00 00 00 FF 0F 46 [17:33:17]process_action close_receipt done [17:33:17]requested_data is exist [17:33:17]produce_requested_data [17:33:17]requested_item fm.sn is exist - process it [17:33:17]wFMCommunicate request_size=4 [17:33:17]MH_SAM_APDU [17:33:17]CAPDU: 80 11 00 00 [17:33:17]Write to MH i2c: E2 08 00 1C 16 80 11 00 00 00 00 00 00 AC [17:33:17]Write i2c OK [17:33:17]MH_I2C_Read... [17:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:17]Read from MH i2c: E2 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 17 00 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 17 00 1C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0C [17:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:33:17]wFMCommunicate OK [17:33:17]requested_item fd.num is exist - process it [17:33:17]SAM_PROTO_GetFieldsCounters [17:33:17]wFMCommunicate request_size=4 [17:33:17]MH_SAM_APDU [17:33:17]CAPDU: 80 13 00 00 [17:33:17]Write to MH i2c: E2 08 00 1D 16 80 13 00 00 00 00 00 00 AF [17:33:17]Write i2c OK [17:33:17]MH_I2C_Read... [17:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:17]Read from MH i2c: E2 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 62 00 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 62 00 1D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [17:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 1F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:17]wFMCommunicate OK [17:33:17]SAM_PROTO_GetFieldsCounters done [17:33:17]requested_item shift.num is exist - process it [17:33:17]requested_item shift.opened is exist - process it [17:33:17]req_shift_opened [17:33:17]FM_GetShiftState [17:33:17]SAM_PROTO_GetShiftState [17:33:17]wFMCommunicate request_size=4 [17:33:17]MH_SAM_APDU [17:33:17]CAPDU: 80 13 01 00 [17:33:17]Write to MH i2c: E2 08 00 1E 16 80 13 01 00 00 00 00 00 B1 [17:33:17]Write i2c OK [17:33:17]MH_I2C_Read... [17:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:17]Read from MH i2c: E2 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 0E 00 [17:33:17]MH_I2C_Read... [17:33:17]Read from MH i2c: E2 0E 00 1E 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AB [17:33:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:33:17]wFMCommunicate OK [17:33:17]SAM_PROTO_GetShiftState done [17:33:17]FM_GetShiftState done [17:33:17]req_shift_opened done [17:33:17]requested_item shift.open_date is exist - process it [17:33:17]req_shift_open_date [17:33:17]req_shift_open_date done [17:33:17]produce_requested_data done [17:33:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162591,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:33:17]process_action_free close_receipt [17:33:17]json_value_free [17:33:17]json_value_free done [17:33:17]process_json_proto returns [17:33:17]Send response to host [17:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162591,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:33:17]free response buf [17:33:17]execute_script done [17:33:17]execute_script returns [17:33:17]free content buf [17:33:17]Sock 9.Close socket [17:33:17]Sock 9.Thread stoped [17:33:21]accept exits with 7 [17:33:21]New connection [17:33:21]New thread 3067510116 created [17:33:21]Thread 3067366756 joined [17:33:21]Waiting for new connection... [17:33:21] Sock 7.Parse request [17:33:21]Sock 7.Check first char [17:33:21]Sock 7.First char is OK [17:33:21]request: POST /json_proto HTTP/1.0 [17:33:21]Method: POST [17:33:21]URL: /json_proto [17:33:21]Method is POST - this is cgi request [17:33:21]url: /json_proto [17:33:21]query_string will be loaded in cgi processing [17:33:21]execute_cgi json_proto POST (null) [17:33:21]execute_cgi path=json_proto method=POST [17:33:21]POST find Content-Length [17:33:21]Host: 172.17.39.67:8080 [17:33:21]Content-Length: 676 [17:33:21]Content-Type: application/json [17:33:21] [17:33:21]POST finish read [17:33:21]Found Content-Length = 676 [17:33:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 29.720, "sum" : 2000.16, "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" ] } } [17:33:21]execute_script... [17:33:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 29.720, "sum" : 2000.16, "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" ] } } [17:33:21]POST & json_proto [17:33:21]process_json_proto [17:33:21]json parsed OK: [17:33:21]protocol is kg_v1.0 [17:33:21]action value=close_receipt [17:33:21]process_action close_receipt [17:33:21]cmd_close_receipt [17:33:21]MH_GetDate [17:33:21]Write to MH i2c: F0 00 00 1F 16 24 [17:33:21]Write i2c OK [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: F0 [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: F0 09 00 [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: F0 09 00 1F 16 00 62 BA 92 66 86 7C 92 66 3B [17:33:21]GetLastDocTimeStamp 1720891994 [17:33:21]current date 1720892002 [17:33:21]FM_GetShiftState [17:33:21]SAM_PROTO_GetShiftState [17:33:21]wFMCommunicate request_size=4 [17:33:21]MH_SAM_APDU [17:33:21]CAPDU: 80 13 01 00 [17:33:21]Write to MH i2c: E2 08 00 20 16 80 13 01 00 00 00 00 00 B3 [17:33:21]Write i2c OK [17:33:21]MH_I2C_Read... [17:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:21]Read from MH i2c: E2 [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: E2 0E 00 [17:33:21]MH_I2C_Read... [17:33:21]Read from MH i2c: E2 0E 00 20 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AD [17:33:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:33:21]wFMCommunicate OK [17:33:21]SAM_PROTO_GetShiftState done [17:33:21]FM_GetShiftState done [17:33:21]opened in 1720828979 [17:33:21]opened+sec_in_day 1720915379 [17:33:21]quantity*price = 200015 [17:33:21]sum+1 = 200017 [17:33:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 260 13.07.2024 17:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162592 ФПД: 171011755634911 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173322&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162592&fm=171011755634911&tin=02508201610067®Number=0000000000090858&sum=200000 [17:33:22]StoreToDocumentArchive [17:33:22]shift 462 fd 162592 [17:33:22]save to /storage/0462/doc_00162592 [17:33:22]save last doc name /storage/0462/doc_00162592 to /storage/kkm_last_doc_name [17:33:22]save OK [17:33:22]Clear old archive folders... [17:33:22]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:33:22]tlvbuf is 0070ABA0 [17:33:22]SAM_PROTO_ClearQueue [17:33:22]wFMCommunicate request_size=4 [17:33:22]MH_SAM_APDU [17:33:22]CAPDU: 80 09 00 00 [17:33:22]Write to MH i2c: E2 08 00 2D 16 80 09 00 00 00 00 00 00 B5 [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:22]Read from MH i2c: E2 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 03 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 03 00 2D 16 00 90 00 B7 [17:33:22]RAPDU: 90 00 [17:33:22]wFMCommunicate OK [17:33:22]SAM_PROTO_ClearQueue done [17:33:22]KKMCreateOFDPacket [17:33:22]OFDProtocolAddRootSTLVToBuf [17:33:22]FM_MakeSignedData [17:33:22]FM_MakeSignedData [17:33:22]SAM_PROTO_SignData [17:33:22]wFMCommunicate request_size=4 [17:33:22]MH_SAM_APDU [17:33:22]CAPDU: 80 0D 01 02 [17:33:22]Write to MH i2c: E2 08 00 2E 16 80 0D 01 02 00 00 00 00 BD [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:22]Read from MH i2c: E2 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 03 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 03 00 2E 16 00 90 00 B8 [17:33:22]RAPDU: 90 00 [17:33:22]wFMCommunicate OK [17:33:22]wFMCommunicate request_size=255 [17:33:22]MH_SAM_APDU [17:33:22]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 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 F9 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 04 01 00 00 F4 03 04 00 62 BA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7B 02 00 35 04 06 00 [17:33:22]Write to MH i2c: E2 02 01 2F 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 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 F9 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 04 01 00 00 F4 03 04 00 62 BA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7B 02 00 35 04 06 00 00 00 B3 [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 2F 16 00 90 00 B9 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=11 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 02 02 06 9B 88 C6 F2 70 DF [17:33:23]Write to MH i2c: E2 0E 00 30 16 80 0D 02 02 06 00 9B 88 C6 F2 70 DF 00 00 F6 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 30 16 00 90 00 BA [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 03 02 [17:33:23]Write to MH i2c: E2 08 00 31 16 80 0D 03 02 00 00 00 00 C2 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 0B 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 0B 00 31 16 00 5C CD 6A 3B 88 39 F0 09 90 00 4B [17:33:23]RAPDU: 5C CD 6A 3B 88 39 F0 09 90 00 [17:33:23]wFMCommunicate OK [17:33:23]SAM_PROTO_SignData done [17:33:23]FM_MakeSignedData done [17:33:23]CreateOFDProtocolMessage [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 11 00 00 [17:33:23]Write to MH i2c: E2 08 00 32 16 80 11 00 00 00 00 00 00 C2 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 17 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 17 00 32 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 22 [17:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:33:23]wFMCommunicate OK [17:33:23]CreateOFDProtocolMessage done [17:33:23]OFDSenderStorePacket 162592 [17:33:23]StoreOFDPacket docnum=162592 [17:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CE F5 08 01 99 09 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 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 F9 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 04 01 00 00 F4 03 04 00 62 BA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7B 02 00 35 04 06 00 9B 88 C6 F2 70 DF 5C CD 6A 3B 88 39 F0 09 [17:33:23]CheckFolder [17:33:23]dirname=/storage/ofd_packets [17:33:23]CheckFolder done [17:33:23]ProducePacketName [17:33:23]name=ofd_packets/00162592 [17:33:23]NVStorageSaveData ofd_packets/00162592 [17:33:23]File name is /storage/ofd_packets/00162592 [17:33:23]Write 302 bytes [17:33:23]NVStorageSaveData done [17:33:23]OFDSenderStorePacket done [17:33:23]KKMCreateOFDPacket done [17:33:23]NVStorageSaveData kkm_last_timestamp [17:33:23]File name is /storage/kkm_last_timestamp [17:33:23]Write 4 bytes [17:33:23]NVStorageSaveData done [17:33:23]ExternCall_PrintAddStr [17:33:23]wPrintStart [17:33:23]Write to MH i2c: 01 00 00 33 16 49 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 33 16 00 00 00 00 00 FF 0F 5E [17:33:23]RasterBufferAndPrint [17:33:23]line Счет N : (1)1319157 [17:33:23]line ИНН: 02508201610067 [17:33:23]line Контрольно-Кассовый Чек [17:33:23]line ПРОДАЖА [17:33:23]line ТРК (МРК, ГНК) : 42 [17:33:23]line Товар: 2710124130 [17:33:23]line Super-92-К-5 [17:33:23]line 29.720 * 67.30 [17:33:23]line = 2000.16 [17:33:23]line НДС 12% НСП 1% [17:33:23]line > о реализуемом товаре [17:33:23]line ОКРУГЛЕНИЕ: -0.16 [17:33:23]line ИТОГО: 2000.00 [17:33:23]line Внесено: 2000.00 [17:33:23]line СДАЧА: 0.00 [17:33:23]line НСП 1% : 17.70 [17:33:23]line НДС 12% : 212.41 [17:33:23]line Наличными: 2000.00 [17:33:23]line Безнал.: 0.00 [17:33:23]line Место: АЗС № 140 "Партнер Нефть" [17:33:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:33:23]line СНО: Общий режим [17:33:23]line Чек 260 13.07.2024 17:33 [17:33:23]line Смена: 462 ФФД: 1.0 [17:33:23]line ЗНМ: 0300000129 [17:33:23]line РНМ: 0000000000090858 [17:33:23]line Версия ККМ: 001 [17:33:23]line ФМ: 0000000000874899 [17:33:23]line ФД: 162592 [17:33:23]line ФПД: 171011755634911 [17:33:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173322&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162592&fm=171011755634911&tin=02508201610067®Number=0000000000090858&sum=200000 [17:33:23]written 0, free lines is 4095 [17:33:23]OFD Sender: Processing packet 162592 [packets to send 106, broken 105] [17:33:23]ProducePacketName [17:33:23]name=ofd_packets/00162592 [17:33:23]OFD Sender: To server: pG, [17:33:23]CommunicateWithHost lk.salyk.kg:30040 [17:33:23]ConnectInit lk.salyk.kg [17:33:23]Connected sock=10 [17:33:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CE F5 08 01 99 09 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 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 F9 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 04 01 00 00 F4 03 04 00 62 BA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 20 7B 02 00 35 04 06 00 9B 88 C6 F2 70 DF 5C CD 6A 3B 88 39 F0 09 [17:33:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BC 52 47 00 D2 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 34 38 39 39 10 04 04 00 20 7B 02 00 F4 03 04 00 70 66 92 66 B6 04 01 00 00 6F F5 82 6D F1 F2 41 80 [17:33:23]CommunicateWithHost err = 0 [17:33:23]CheckOFDResponse [17:33:23]1017 (14) - 77093643461234 [17:33:23]1041 (16) - 0000000000874899 [17:33:23]1040 (4) - 162592 [17:33:23]1012 (4) - 13.07.2024 11:35 [17:33:23]1206 (1) - 0 [17:33:23]OFD Sender: Remove packet 162592 [17:33:23]ProducePacketName [17:33:23]name=ofd_packets/00162592 [17:33:23]NVStorageDeleteData [17:33:23]Write to MH i2c: 01 00 00 5E 16 74 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: 01 07 00 5E 16 00 00 00 00 00 FC 0C 83 [17:33:23]RasterBufferAndPrint [17:33:23]line [17:33:23]line [17:33:23]line [17:33:23]line [17:33:23]line [17:33:23]written 0, free lines is 3338 [17:33:23]MH_Cut [17:33:23]Write to MH i2c: D1 01 00 65 16 01 4D [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: D1 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: D1 01 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: D1 01 00 65 16 00 4C [17:33:23]Write to MH i2c: 01 00 00 66 16 7C [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:24]OFD Sender: No OFD packet to send [17:33:24]*** Cut start [17:33:24]*** Purtial cut [17:33:24]*** CUTSNS_PIN = 0 [17:33:24]*** Stage 1: CUTSNS_PIN = 1 [17:33:26]Read from MH i2c: 01 [17:33:26]MH_I2C_Read... [17:33:26]*** Stop cut motor [17:33:26]*** Cut end [17:33:26]Read from MH i2c: 01 07 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: 01 07 00 66 16 00 00 00 00 00 FF 0F 91 [17:33:26]process_action close_receipt done [17:33:26]requested_data is exist [17:33:26]produce_requested_data [17:33:26]requested_item fm.sn is exist - process it [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 11 00 00 [17:33:26]Write to MH i2c: E2 08 00 67 16 80 11 00 00 00 00 00 00 F7 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 17 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 17 00 67 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 57 [17:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:33:26]wFMCommunicate OK [17:33:26]requested_item fd.num is exist - process it [17:33:26]SAM_PROTO_GetFieldsCounters [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 13 00 00 [17:33:26]Write to MH i2c: E2 08 00 68 16 80 13 00 00 00 00 00 00 FA [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 62 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 62 00 68 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 20 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [17:33:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 20 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_GetFieldsCounters done [17:33:26]requested_item shift.num is exist - process it [17:33:26]requested_item shift.opened is exist - process it [17:33:26]req_shift_opened [17:33:26]FM_GetShiftState [17:33:26]SAM_PROTO_GetShiftState [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 13 01 00 [17:33:26]Write to MH i2c: E2 08 00 69 16 80 13 01 00 00 00 00 00 FC [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 0E 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 0E 00 69 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F6 [17:33:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_GetShiftState done [17:33:26]FM_GetShiftState done [17:33:26]req_shift_opened done [17:33:26]requested_item shift.open_date is exist - process it [17:33:26]req_shift_open_date [17:33:26]req_shift_open_date done [17:33:26]produce_requested_data done [17:33:26]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162592,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:33:26]process_action_free close_receipt [17:33:26]json_value_free [17:33:26]json_value_free done [17:33:26]process_json_proto returns [17:33:26]Send response to host [17:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162592,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:33:26]free response buf [17:33:26]execute_script done [17:33:26]execute_script returns [17:33:26]free content buf [17:33:26]Sock 7.Close socket [17:33:26]Sock 7.Thread stoped [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]OFD Sender: No OFD packet to send [17:34:14]OFD Sender: No OFD packet to send [17:34:19]OFD Sender: No OFD packet to send [17:34:24]OFD Sender: No OFD packet to send [17:34:29]OFD Sender: No OFD packet to send [17:34:34]OFD Sender: No OFD packet to send [17:34:39]OFD Sender: No OFD packet to send [17:34:44]OFD Sender: No OFD packet to send [17:34:49]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:57]accept exits with 9 [17:36:57]New connection [17:36:57]New thread 3067366756 created [17:36:57]Thread 3067510116 joined [17:36:57]Waiting for new connection... [17:36:57] Sock 9.Parse request [17:36:57]Sock 9.Check first char [17:36:57]Sock 9.First char is OK [17:36:57]request: POST /json_proto HTTP/1.0 [17:36:57]Method: POST [17:36:57]URL: /json_proto [17:36:57]Method is POST - this is cgi request [17:36:57]url: /json_proto [17:36:57]query_string will be loaded in cgi processing [17:36:57]execute_cgi json_proto POST (null) [17:36:57]execute_cgi path=json_proto method=POST [17:36:57]POST find Content-Length [17:36:57]Host: 172.17.39.67:8080 [17:36:57]Content-Length: 679 [17:36:57]Content-Type: application/json [17:36:57] [17:36:57]POST finish read [17:36:57]Found Content-Length = 679 [17:36:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:57]execute_script... [17:36: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)1319158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:57]POST & json_proto [17:36:57]process_json_proto [17:36:57]json parsed OK: [17:36:57]protocol is kg_v1.0 [17:36:57]action value=close_receipt [17:36:57]process_action close_receipt [17:36:57]cmd_close_receipt [17:36:57]MH_GetDate [17:36:57]Write to MH i2c: F0 00 00 6A 16 6F [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: F0 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: F0 09 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: F0 09 00 6A 16 00 3A BB 92 66 86 7C 92 66 5F [17:36:57]GetLastDocTimeStamp 1720892002 [17:36:57]current date 1720892218 [17:36:57]FM_GetShiftState [17:36:57]SAM_PROTO_GetShiftState [17:36:57]wFMCommunicate request_size=4 [17:36:57]MH_SAM_APDU [17:36:57]CAPDU: 80 13 01 00 [17:36:57]Write to MH i2c: E2 08 00 6B 16 80 13 01 00 00 00 00 00 FE [17:36:57]Write i2c OK [17:36:57]MH_I2C_Read... [17:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:57]Read from MH i2c: E2 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: E2 0E 00 [17:36:57]MH_I2C_Read... [17:36:57]Read from MH i2c: E2 0E 00 6B 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F8 [17:36:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:36:57]wFMCommunicate OK [17:36:57]SAM_PROTO_GetShiftState done [17:36:57]FM_GetShiftState done [17:36:57]opened in 1720828979 [17:36:57]opened+sec_in_day 1720915379 [17:36:57]quantity*price = 67029 [17:36:57]sum+1 = 67030 [17:36:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 261 13.07.2024 17:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162593 ФПД: 58984035185228 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173658&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162593&fm=58984035185228&tin=02508201610067®Number=0000000000090858&sum=67000 [17:36:58]StoreToDocumentArchive [17:36:58]shift 462 fd 162593 [17:36:58]save to /storage/0462/doc_00162593 [17:36:58]save last doc name /storage/0462/doc_00162593 to /storage/kkm_last_doc_name [17:36:58]save OK [17:36:58]Clear old archive folders... [17:36:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:58]tlvbuf is 006EA920 [17:36:58]SAM_PROTO_ClearQueue [17:36:58]wFMCommunicate request_size=4 [17:36:58]MH_SAM_APDU [17:36:58]CAPDU: 80 09 00 00 [17:36:58]Write to MH i2c: E2 08 00 78 16 80 09 00 00 00 00 00 00 00 [17:36:58]Write i2c OK [17:36:58]MH_I2C_Read... [17:36:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:58]Read from MH i2c: E2 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: E2 03 00 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: E2 03 00 78 16 00 90 00 02 [17:36:58]RAPDU: 90 00 [17:36:58]wFMCommunicate OK [17:36:58]SAM_PROTO_ClearQueue done [17:36:58]KKMCreateOFDPacket [17:36:58]OFDProtocolAddRootSTLVToBuf [17:36:58]FM_MakeSignedData [17:36:58]FM_MakeSignedData [17:36:58]SAM_PROTO_SignData [17:36:58]wFMCommunicate request_size=4 [17:36:58]MH_SAM_APDU [17:36:58]CAPDU: 80 0D 01 02 [17:36:58]Write to MH i2c: E2 08 00 79 16 80 0D 01 02 00 00 00 00 08 [17:36:58]Write i2c OK [17:36:58]MH_I2C_Read... [17:36:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:58]Read from MH i2c: E2 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: E2 03 00 [17:36:58]MH_I2C_Read... [17:36:58]Read from MH i2c: E2 03 00 79 16 00 90 00 03 [17:36:58]RAPDU: 90 00 [17:36:58]wFMCommunicate OK [17:36:58]wFMCommunicate request_size=255 [17:36:58]MH_SAM_APDU [17:36:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3A BB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7B 02 00 35 04 06 00 35 [17:36:58]Write to MH i2c: E2 02 01 7A 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3A BB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7B 02 00 35 04 06 00 35 00 00 F0 [17:36:58]Write i2c OK [17:36:58]MH_I2C_Read... [17:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:59]Read from MH i2c: E2 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 03 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 03 00 7A 16 00 90 00 04 [17:36:59]RAPDU: 90 00 [17:36:59]wFMCommunicate OK [17:36:59]wFMCommunicate request_size=10 [17:36:59]MH_SAM_APDU [17:36:59]CAPDU: 80 0D 02 02 05 A5 4A 76 F2 4C [17:36:59]Write to MH i2c: E2 0D 00 7B 16 80 0D 02 02 05 00 A5 4A 76 F2 4C 00 00 B8 [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:59]Read from MH i2c: E2 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 03 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 03 00 7B 16 00 90 00 05 [17:36:59]RAPDU: 90 00 [17:36:59]wFMCommunicate OK [17:36:59]wFMCommunicate request_size=4 [17:36:59]MH_SAM_APDU [17:36:59]CAPDU: 80 0D 03 02 [17:36:59]Write to MH i2c: E2 08 00 7C 16 80 0D 03 02 00 00 00 00 0D [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:59]Read from MH i2c: E2 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 0B 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 0B 00 7C 16 00 A5 E3 18 0E 8E 6B 5B F6 90 00 06 [17:36:59]RAPDU: A5 E3 18 0E 8E 6B 5B F6 90 00 [17:36:59]wFMCommunicate OK [17:36:59]SAM_PROTO_SignData done [17:36:59]FM_MakeSignedData done [17:36:59]CreateOFDProtocolMessage [17:36:59]wFMCommunicate request_size=4 [17:36:59]MH_SAM_APDU [17:36:59]CAPDU: 80 11 00 00 [17:36:59]Write to MH i2c: E2 08 00 7D 16 80 11 00 00 00 00 00 00 0D [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:59]Read from MH i2c: E2 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 17 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: E2 17 00 7D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6D [17:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:36:59]wFMCommunicate OK [17:36:59]CreateOFDProtocolMessage done [17:36:59]OFDSenderStorePacket 162593 [17:36:59]StoreOFDPacket docnum=162593 [17:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 42 06 07 01 04 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3A BB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7B 02 00 35 04 06 00 35 A5 4A 76 F2 4C A5 E3 18 0E 8E 6B 5B F6 [17:36:59]CheckFolder [17:36:59]dirname=/storage/ofd_packets [17:36:59]CheckFolder done [17:36:59]ProducePacketName [17:36:59]name=ofd_packets/00162593 [17:36:59]NVStorageSaveData ofd_packets/00162593 [17:36:59]File name is /storage/ofd_packets/00162593 [17:36:59]Write 301 bytes [17:36:59]NVStorageSaveData done [17:36:59]OFDSenderStorePacket done [17:36:59]KKMCreateOFDPacket done [17:36:59]NVStorageSaveData kkm_last_timestamp [17:36:59]File name is /storage/kkm_last_timestamp [17:36:59]Write 4 bytes [17:36:59]NVStorageSaveData done [17:36:59]ExternCall_PrintAddStr [17:36:59]wPrintStart [17:36:59]Write to MH i2c: 01 00 00 7E 16 94 [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: 01 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: 01 07 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: 01 07 00 7E 16 00 00 00 00 00 FF 0F A9 [17:36:59]RasterBufferAndPrint [17:36:59]line Счет N : (1)1319158 [17:36:59]line ИНН: 02508201610067 [17:36:59]line Контрольно-Кассовый Чек [17:36:59]line ПРОДАЖА [17:36:59]line ТРК (МРК, ГНК) : 33 [17:36:59]line Товар: 2710124130 [17:36:59]line Аи-92-К-5 [17:36:59]line 10.110 * 66.30 [17:36:59]line = 670.29 [17:36:59]line НДС 12% НСП 1% [17:36:59]line > о реализуемом товаре [17:36:59]line ОКРУГЛЕНИЕ: -0.29 [17:36:59]line ИТОГО: 670.00 [17:36:59]line Внесено: 670.00 [17:36:59]line СДАЧА: 0.00 [17:36:59]line НСП 1% : 5.93 [17:36:59]line НДС 12% : 71.18 [17:36:59]line Наличными: 670.00 [17:36:59]line Безнал.: 0.00 [17:36:59]line Место: АЗС № 140 "Партнер Нефть" [17:36:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:36:59]line СНО: Общий режим [17:36:59]line Чек 261 13.07.2024 17:36 [17:36:59]line Смена: 462 ФФД: 1.0 [17:36:59]line ЗНМ: 0300000129 [17:36:59]line РНМ: 0000000000090858 [17:36:59]line Версия ККМ: 001 [17:36:59]line ФМ: 0000000000874899 [17:36:59]line ФД: 162593 [17:36:59]line ФПД: 58984035185228 [17:36:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173658&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162593&fm=58984035185228&tin=02508201610067®Number=0000000000090858&sum=67000 [17:36:59]OFD Sender: Processing packet 162593 [packets to send 106, broken 105] [17:36:59]ProducePacketName [17:36:59]name=ofd_packets/00162593 [17:36:59]OFD Sender: To server: pG, [17:36:59]CommunicateWithHost lk.salyk.kg:30040 [17:36:59]ConnectInit lk.salyk.kg [17:36:59]written 0, free lines is 4095 [17:36:59]Connected sock=10 [17:36:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 42 06 07 01 04 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 3A BB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7B 02 00 35 04 06 00 35 A5 4A 76 F2 4C A5 E3 18 0E 8E 6B 5B F6 [17:36:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4F 7C 47 00 C2 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 21 7B 02 00 F4 03 04 00 49 67 92 66 B6 04 01 00 00 76 D2 4D 2C 1F 38 52 1B [17:36:59]CommunicateWithHost err = 0 [17:36:59]CheckOFDResponse [17:36:59]1017 (14) - 77093643461234 [17:36:59]1041 (16) - 0000000000874899 [17:36:59]1040 (4) - 162593 [17:36:59]1012 (4) - 13.07.2024 11:38 [17:36:59]1206 (1) - 0 [17:36:59]OFD Sender: Remove packet 162593 [17:36:59]ProducePacketName [17:36:59]name=ofd_packets/00162593 [17:36:59]NVStorageDeleteData [17:36:59]Write to MH i2c: 01 00 00 A9 16 BF [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: 01 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: 01 07 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: 01 07 00 A9 16 00 00 00 00 00 E0 0C B2 [17:36:59]RasterBufferAndPrint [17:36:59]line [17:36:59]line [17:36:59]line [17:36:59]line [17:36:59]line [17:36:59]written 0, free lines is 3302 [17:36:59]MH_Cut [17:36:59]Write to MH i2c: D1 01 00 B0 16 01 98 [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: D1 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: D1 01 00 [17:36:59]MH_I2C_Read... [17:36:59]Read from MH i2c: D1 01 00 B0 16 00 97 [17:36:59]Write to MH i2c: 01 00 00 B1 16 C7 [17:36:59]Write i2c OK [17:36:59]MH_I2C_Read... [17:37:00]OFD Sender: No OFD packet to send [17:37:00]*** Cut start [17:37:00]*** Purtial cut [17:37:00]*** Stage 1: CUTSNS_PIN = 1 [17:37:00]Read from MH i2c: 01 [17:37:00]MH_I2C_Read... [17:37:00]*** Stop cut motor [17:37:00]*** Cut end [17:37:00]Read from MH i2c: 01 07 00 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: 01 07 00 B1 16 00 00 00 00 00 FF 0F DC [17:37:00]process_action close_receipt done [17:37:00]requested_data is exist [17:37:00]produce_requested_data [17:37:00]requested_item fm.sn is exist - process it [17:37:00]wFMCommunicate request_size=4 [17:37:00]MH_SAM_APDU [17:37:00]CAPDU: 80 11 00 00 [17:37:00]Write to MH i2c: E2 08 00 B2 16 80 11 00 00 00 00 00 00 42 [17:37:00]Write i2c OK [17:37:00]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 17 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 17 00 B2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A2 [17:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:37:01]wFMCommunicate OK [17:37:01]requested_item fd.num is exist - process it [17:37:01]SAM_PROTO_GetFieldsCounters [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 13 00 00 [17:37:01]Write to MH i2c: E2 08 00 B3 16 80 13 00 00 00 00 00 00 45 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 62 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 62 00 B3 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 21 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [17:37:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 21 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_GetFieldsCounters done [17:37:01]requested_item shift.num is exist - process it [17:37:01]requested_item shift.opened is exist - process it [17:37:01]req_shift_opened [17:37:01]FM_GetShiftState [17:37:01]SAM_PROTO_GetShiftState [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 13 01 00 [17:37:01]Write to MH i2c: E2 08 00 B4 16 80 13 01 00 00 00 00 00 47 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 0E 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 0E 00 B4 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 41 [17:37:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_GetShiftState done [17:37:01]FM_GetShiftState done [17:37:01]req_shift_opened done [17:37:01]requested_item shift.open_date is exist - process it [17:37:01]req_shift_open_date [17:37:01]req_shift_open_date done [17:37:01]produce_requested_data done [17:37:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162593,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:37:01]process_action_free close_receipt [17:37:01]json_value_free [17:37:01]json_value_free done [17:37:01]process_json_proto returns [17:37:01]Send response to host [17:37:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162593,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:37:01]free response buf [17:37:01]execute_script done [17:37:01]execute_script returns [17:37:01]free content buf [17:37:01]Sock 9.Close socket [17:37:01]Sock 9.Thread stoped [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [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:36]accept exits with 7 [17:39:36]New connection [17:39:36]New thread 3067510116 created [17:39:36]Thread 3067366756 joined [17:39:36]Waiting for new connection... [17:39:36] Sock 7.Parse request [17:39:36]Sock 7.Check first char [17:39:36]Sock 7.First char is OK [17:39:36]request: POST /json_proto HTTP/1.0 [17:39:36]Method: POST [17:39:36]URL: /json_proto [17:39:36]Method is POST - this is cgi request [17:39:36]url: /json_proto [17:39:36]query_string will be loaded in cgi processing [17:39:36]execute_cgi json_proto POST (null) [17:39:36]execute_cgi path=json_proto method=POST [17:39:36]POST find Content-Length [17:39:36]Host: 172.17.39.67:8080 [17:39:36]Content-Length: 683 [17:39:36]Content-Type: application/json [17:39:36] [17:39:36]POST finish read [17:39:36]Found Content-Length = 683 [17:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:36]execute_script... [17:39: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)1319159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:36]POST & json_proto [17:39:36]process_json_proto [17:39:36]json parsed OK: [17:39:36]protocol is kg_v1.0 [17:39:36]action value=close_receipt [17:39:36]process_action close_receipt [17:39:36]cmd_close_receipt [17:39:36]MH_GetDate [17:39:36]Write to MH i2c: F0 00 00 B5 16 BA [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 09 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 09 00 B5 16 00 D8 BB 92 66 86 7C 92 66 48 [17:39:36]GetLastDocTimeStamp 1720892218 [17:39:36]current date 1720892376 [17:39:36]FM_GetShiftState [17:39:36]SAM_PROTO_GetShiftState [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 13 01 00 [17:39:36]Write to MH i2c: E2 08 00 B6 16 80 13 01 00 00 00 00 00 49 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 B6 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 43 [17:39:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetShiftState done [17:39:36]FM_GetShiftState done [17:39:36]opened in 1720828979 [17:39:36]opened+sec_in_day 1720915379 [17:39:36]quantity*price = 100046 [17:39:36]sum+1 = 100048 [17:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 262 13.07.2024 17:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162594 ФПД: 181638706933221 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173937&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162594&fm=181638706933221&tin=02508201610067®Number=0000000000090858&sum=100000 [17:39:37]StoreToDocumentArchive [17:39:37]shift 462 fd 162594 [17:39:37]save to /storage/0462/doc_00162594 [17:39:37]save last doc name /storage/0462/doc_00162594 to /storage/kkm_last_doc_name [17:39:37]save OK [17:39:37]Clear old archive folders... [17:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:37]tlvbuf is 005FA050 [17:39:37]SAM_PROTO_ClearQueue [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 09 00 00 [17:39:37]Write to MH i2c: E2 08 00 C3 16 80 09 00 00 00 00 00 00 4B [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 C3 16 00 90 00 4D [17:39:37]RAPDU: 90 00 [17:39:37]wFMCommunicate OK [17:39:37]SAM_PROTO_ClearQueue done [17:39:37]KKMCreateOFDPacket [17:39:37]OFDProtocolAddRootSTLVToBuf [17:39:37]FM_MakeSignedData [17:39:37]FM_MakeSignedData [17:39:37]SAM_PROTO_SignData [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 0D 01 02 [17:39:37]Write to MH i2c: E2 08 00 C4 16 80 0D 01 02 00 00 00 00 53 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 C4 16 00 90 00 4E [17:39:37]RAPDU: 90 00 [17:39:37]wFMCommunicate OK [17:39:37]wFMCommunicate request_size=255 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 06 01 00 00 F4 03 04 00 D9 BB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7B 02 00 35 04 06 00 A5 [17:39:37]Write to MH i2c: E2 02 01 C5 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 06 01 00 00 F4 03 04 00 D9 BB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7B 02 00 35 04 06 00 A5 00 00 05 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 C5 16 00 90 00 4F [17:39:37]RAPDU: 90 00 [17:39:37]wFMCommunicate OK [17:39:37]wFMCommunicate request_size=10 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 0D 02 02 05 33 0E 9A AD E5 [17:39:37]Write to MH i2c: E2 0D 00 C6 16 80 0D 02 02 05 00 33 0E 9A AD E5 00 00 CD [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 C6 16 00 90 00 50 [17:39:37]RAPDU: 90 00 [17:39:37]wFMCommunicate OK [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 0D 03 02 [17:39:37]Write to MH i2c: E2 08 00 C7 16 80 0D 03 02 00 00 00 00 58 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 0B 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 0B 00 C7 16 00 41 D0 A2 2F 29 3B C1 16 90 00 76 [17:39:37]RAPDU: 41 D0 A2 2F 29 3B C1 16 90 00 [17:39:37]wFMCommunicate OK [17:39:37]SAM_PROTO_SignData done [17:39:37]FM_MakeSignedData done [17:39:37]CreateOFDProtocolMessage [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 11 00 00 [17:39:37]Write to MH i2c: E2 08 00 C8 16 80 11 00 00 00 00 00 00 58 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 17 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 17 00 C8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B8 [17:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:39:37]wFMCommunicate OK [17:39:37]CreateOFDProtocolMessage done [17:39:37]OFDSenderStorePacket 162594 [17:39:37]StoreOFDPacket docnum=162594 [17:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B3 15 07 01 ED 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 06 01 00 00 F4 03 04 00 D9 BB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7B 02 00 35 04 06 00 A5 33 0E 9A AD E5 41 D0 A2 2F 29 3B C1 16 [17:39:37]CheckFolder [17:39:37]dirname=/storage/ofd_packets [17:39:37]CheckFolder done [17:39:37]ProducePacketName [17:39:37]name=ofd_packets/00162594 [17:39:37]NVStorageSaveData ofd_packets/00162594 [17:39:37]File name is /storage/ofd_packets/00162594 [17:39:37]Write 301 bytes [17:39:37]NVStorageSaveData done [17:39:37]OFDSenderStorePacket done [17:39:37]KKMCreateOFDPacket done [17:39:37]NVStorageSaveData kkm_last_timestamp [17:39:37]File name is /storage/kkm_last_timestamp [17:39:37]Write 4 bytes [17:39:37]NVStorageSaveData done [17:39:37]ExternCall_PrintAddStr [17:39:37]wPrintStart [17:39:37]Write to MH i2c: 01 00 00 C9 16 DF [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: 01 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: 01 07 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: 01 07 00 C9 16 00 00 00 00 00 FF 0F F4 [17:39:37]RasterBufferAndPrint [17:39:37]line Счет N : (1)1319159 [17:39:37]line ИНН: 02508201610067 [17:39:37]line Контрольно-Кассовый Чек [17:39:37]line ПРОДАЖА [17:39:37]line ТРК (МРК, ГНК) : 63 [17:39:37]line Товар: 2710124130 [17:39:37]line Аи-92-К-5 [17:39:37]line 15.090 * 66.30 [17:39:37]line = 1000.47 [17:39:37]line НДС 12% НСП 1% [17:39:37]line > о реализуемом товаре [17:39:37]line ОКРУГЛЕНИЕ: -0.47 [17:39:37]line ИТОГО: 1000.00 [17:39:37]line Внесено: 1000.00 [17:39:37]line СДАЧА: 0.00 [17:39:37]line НСП 1% : 8.85 [17:39:37]line НДС 12% : 106.24 [17:39:37]line Наличными: 1000.00 [17:39:37]line Безнал.: 0.00 [17:39:37]line Место: АЗС № 140 "Партнер Нефть" [17:39:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:39:37]line СНО: Общий режим [17:39:37]line Чек 262 13.07.2024 17:39 [17:39:37]line Смена: 462 ФФД: 1.0 [17:39:37]line ЗНМ: 0300000129 [17:39:37]line РНМ: 0000000000090858 [17:39:37]line Версия ККМ: 001 [17:39:37]line ФМ: 0000000000874899 [17:39:37]line ФД: 162594 [17:39:37]line ФПД: 181638706933221 [17:39:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T173937&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162594&fm=181638706933221&tin=02508201610067®Number=0000000000090858&sum=100000 [17:39:38]OFD Sender: Processing packet 162594 [packets to send 106, broken 105] [17:39:38]ProducePacketName [17:39:38]name=ofd_packets/00162594 [17:39:38]OFD Sender: To server: pG, [17:39:38]CommunicateWithHost lk.salyk.kg:30040 [17:39:38]ConnectInit lk.salyk.kg [17:39:38]written 0, free lines is 4095 [17:39:38]Connected sock=10 [17:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B3 15 07 01 ED 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 06 01 00 00 F4 03 04 00 D9 BB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7B 02 00 35 04 06 00 A5 33 0E 9A AD E5 41 D0 A2 2F 29 3B C1 16 [17:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 32 23 47 00 21 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 22 7B 02 00 F4 03 04 00 E7 67 92 66 B6 04 01 00 00 E7 C8 CF 3A 4F E3 1C 8A [17:39:38]CommunicateWithHost err = 0 [17:39:38]CheckOFDResponse [17:39:38]1017 (14) - 77093643461234 [17:39:38]1041 (16) - 0000000000874899 [17:39:38]1040 (4) - 162594 [17:39:38]1012 (4) - 13.07.2024 11:41 [17:39:38]1206 (1) - 0 [17:39:38]OFD Sender: Remove packet 162594 [17:39:38]ProducePacketName [17:39:38]name=ofd_packets/00162594 [17:39:38]NVStorageDeleteData [17:39:38]Write to MH i2c: 01 00 00 F4 16 0A [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 07 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 07 00 F4 16 00 00 00 00 00 E2 0C FF [17:39:38]RasterBufferAndPrint [17:39:38]line [17:39:38]line [17:39:38]line [17:39:38]line [17:39:38]line [17:39:38]written 0, free lines is 3304 [17:39:38]MH_Cut [17:39:38]Write to MH i2c: D1 01 00 FB 16 01 E3 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: D1 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: D1 01 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: D1 01 00 FB 16 00 E2 [17:39:38]Write to MH i2c: 01 00 00 FC 16 12 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]OFD Sender: No OFD packet to send [17:39:39]*** Cut start [17:39:39]*** Purtial cut [17:39:39]*** CUTSNS_PIN = 0 [17:39:39]*** Stage 1: CUTSNS_PIN = 1 [17:39:41]Read from MH i2c: 01 [17:39:41]MH_I2C_Read... [17:39:41]*** Stop cut motor [17:39:41]*** Cut end [17:39:41]Read from MH i2c: 01 07 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 FC 16 00 00 00 00 00 FF 0F 27 [17:39:41]process_action close_receipt done [17:39:41]requested_data is exist [17:39:41]produce_requested_data [17:39:41]requested_item fm.sn is exist - process it [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 11 00 00 [17:39:41]Write to MH i2c: E2 08 00 FD 16 80 11 00 00 00 00 00 00 8D [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 FD 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 ED [17:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:39:41]wFMCommunicate OK [17:39:41]requested_item fd.num is exist - process it [17:39:41]SAM_PROTO_GetFieldsCounters [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 00 00 [17:39:41]Write to MH i2c: E2 08 00 FE 16 80 13 00 00 00 00 00 00 90 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 62 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 62 00 FE 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 22 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [17:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 22 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetFieldsCounters done [17:39:41]requested_item shift.num is exist - process it [17:39:41]requested_item shift.opened is exist - process it [17:39:41]req_shift_opened [17:39:41]FM_GetShiftState [17:39:41]SAM_PROTO_GetShiftState [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 01 00 [17:39:41]Write to MH i2c: E2 08 00 FF 16 80 13 01 00 00 00 00 00 92 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 FF 16 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8C [17:39:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetShiftState done [17:39:41]FM_GetShiftState done [17:39:41]req_shift_opened done [17:39:41]requested_item shift.open_date is exist - process it [17:39:41]req_shift_open_date [17:39:41]req_shift_open_date done [17:39:41]produce_requested_data done [17:39:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162594,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:39:41]process_action_free close_receipt [17:39:41]json_value_free [17:39:41]json_value_free done [17:39:41]process_json_proto returns [17:39:41]Send response to host [17:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162594,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:39:41]free response buf [17:39:41]execute_script done [17:39:41]execute_script returns [17:39:41]free content buf [17:39:41]Sock 7.Close socket [17:39:41]Sock 7.Thread stoped [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]accept exits with 9 [17:41:23]New connection [17:41:23]New thread 3067366756 created [17:41:23]Thread 3067510116 joined [17:41:23]Waiting for new connection... [17:41:23] Sock 9.Parse request [17:41:23]Sock 9.Check first char [17:41:23]Sock 9.First char is OK [17:41:23]request: POST /json_proto HTTP/1.0 [17:41:23]Method: POST [17:41:23]URL: /json_proto [17:41:23]Method is POST - this is cgi request [17:41:23]url: /json_proto [17:41:23]query_string will be loaded in cgi processing [17:41:23]execute_cgi json_proto POST (null) [17:41:23]execute_cgi path=json_proto method=POST [17:41:23]POST find Content-Length [17:41:23]Host: 172.17.39.67:8080 [17:41:23]Content-Length: 676 [17:41:23]Content-Type: application/json [17:41:23] [17:41:23]POST finish read [17:41:23]Found Content-Length = 676 [17:41:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 35.670, "sum" : 2400.59, "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" ] } } [17:41:23]execute_script... [17:41: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)1319160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 35.670, "sum" : 2400.59, "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" ] } } [17:41:23]POST & json_proto [17:41:23]process_json_proto [17:41:23]json parsed OK: [17:41:23]protocol is kg_v1.0 [17:41:23]action value=close_receipt [17:41:23]process_action close_receipt [17:41:23]cmd_close_receipt [17:41:23]MH_GetDate [17:41:23]Write to MH i2c: F0 00 00 00 17 06 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: F0 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: F0 09 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: F0 09 00 00 17 00 44 BC 92 66 86 7C 92 66 01 [17:41:23]GetLastDocTimeStamp 1720892377 [17:41:23]current date 1720892484 [17:41:23]FM_GetShiftState [17:41:23]SAM_PROTO_GetShiftState [17:41:23]wFMCommunicate request_size=4 [17:41:23]MH_SAM_APDU [17:41:23]CAPDU: 80 13 01 00 [17:41:23]Write to MH i2c: E2 08 00 01 17 80 13 01 00 00 00 00 00 95 [17:41:23]Write i2c OK [17:41:23]MH_I2C_Read... [17:41:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:23]Read from MH i2c: E2 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 0E 00 [17:41:23]MH_I2C_Read... [17:41:23]Read from MH i2c: E2 0E 00 01 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8F [17:41:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:41:23]wFMCommunicate OK [17:41:23]SAM_PROTO_GetShiftState done [17:41:23]FM_GetShiftState done [17:41:23]opened in 1720828979 [17:41:23]opened+sec_in_day 1720915379 [17:41:23]quantity*price = 240059 [17:41:23]sum+1 = 240060 [17:41:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.93 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 263 13.07.2024 17:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162595 ФПД: 5379410366051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174124&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162595&fm=5379410366051&tin=02508201610067®Number=0000000000090858&sum=240000 [17:41:24]StoreToDocumentArchive [17:41:24]shift 462 fd 162595 [17:41:24]save to /storage/0462/doc_00162595 [17:41:24]save last doc name /storage/0462/doc_00162595 to /storage/kkm_last_doc_name [17:41:24]save OK [17:41:24]Clear old archive folders... [17:41:24]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:41:24]tlvbuf is 00611DC0 [17:41:24]SAM_PROTO_ClearQueue [17:41:24]wFMCommunicate request_size=4 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 09 00 00 [17:41:24]Write to MH i2c: E2 08 00 0E 17 80 09 00 00 00 00 00 00 97 [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 03 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 03 00 0E 17 00 90 00 99 [17:41:24]RAPDU: 90 00 [17:41:24]wFMCommunicate OK [17:41:24]SAM_PROTO_ClearQueue done [17:41:24]KKMCreateOFDPacket [17:41:24]OFDProtocolAddRootSTLVToBuf [17:41:24]FM_MakeSignedData [17:41:24]FM_MakeSignedData [17:41:24]SAM_PROTO_SignData [17:41:24]wFMCommunicate request_size=4 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 0D 01 02 [17:41:24]Write to MH i2c: E2 08 00 0F 17 80 0D 01 02 00 00 00 00 9F [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 03 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 03 00 0F 17 00 90 00 9A [17:41:24]RAPDU: 90 00 [17:41:24]wFMCommunicate OK [17:41:24]wFMCommunicate request_size=255 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 8B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 BB 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 95 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 07 01 00 00 F4 03 04 00 44 BC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7B 02 00 35 04 06 00 [17:41:24]Write to MH i2c: E2 02 01 10 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 8B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 BB 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 95 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 07 01 00 00 F4 03 04 00 44 BC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7B 02 00 35 04 06 00 00 00 A4 [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 03 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 03 00 10 17 00 90 00 9B [17:41:24]RAPDU: 90 00 [17:41:24]wFMCommunicate OK [17:41:24]wFMCommunicate request_size=11 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 0D 02 02 06 04 E4 7D D8 0E 63 [17:41:24]Write to MH i2c: E2 0E 00 11 17 80 0D 02 02 06 00 04 E4 7D D8 0E 63 00 00 5C [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 03 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 03 00 11 17 00 90 00 9C [17:41:24]RAPDU: 90 00 [17:41:24]wFMCommunicate OK [17:41:24]wFMCommunicate request_size=4 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 0D 03 02 [17:41:24]Write to MH i2c: E2 08 00 12 17 80 0D 03 02 00 00 00 00 A4 [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 0B 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 0B 00 12 17 00 0F 50 91 20 36 DA 7E 69 90 00 AC [17:41:24]RAPDU: 0F 50 91 20 36 DA 7E 69 90 00 [17:41:24]wFMCommunicate OK [17:41:24]SAM_PROTO_SignData done [17:41:24]FM_MakeSignedData done [17:41:24]CreateOFDProtocolMessage [17:41:24]wFMCommunicate request_size=4 [17:41:24]MH_SAM_APDU [17:41:24]CAPDU: 80 11 00 00 [17:41:24]Write to MH i2c: E2 08 00 13 17 80 11 00 00 00 00 00 00 A4 [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:24]Read from MH i2c: E2 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 17 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: E2 17 00 13 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 04 [17:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:41:24]wFMCommunicate OK [17:41:24]CreateOFDProtocolMessage done [17:41:24]OFDSenderStorePacket 162595 [17:41:24]StoreOFDPacket docnum=162595 [17:41:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 20 E8 08 01 DD 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 8B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 BB 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 95 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 07 01 00 00 F4 03 04 00 44 BC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7B 02 00 35 04 06 00 04 E4 7D D8 0E 63 0F 50 91 20 36 DA 7E 69 [17:41:24]CheckFolder [17:41:24]dirname=/storage/ofd_packets [17:41:24]CheckFolder done [17:41:24]ProducePacketName [17:41:24]name=ofd_packets/00162595 [17:41:24]NVStorageSaveData ofd_packets/00162595 [17:41:24]File name is /storage/ofd_packets/00162595 [17:41:24]Write 302 bytes [17:41:24]NVStorageSaveData done [17:41:24]OFDSenderStorePacket done [17:41:24]KKMCreateOFDPacket done [17:41:24]NVStorageSaveData kkm_last_timestamp [17:41:24]File name is /storage/kkm_last_timestamp [17:41:24]Write 4 bytes [17:41:24]NVStorageSaveData done [17:41:24]ExternCall_PrintAddStr [17:41:24]wPrintStart [17:41:24]Write to MH i2c: 01 00 00 14 17 2B [17:41:24]Write i2c OK [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: 01 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: 01 07 00 [17:41:24]MH_I2C_Read... [17:41:24]Read from MH i2c: 01 07 00 14 17 00 00 00 00 00 FF 0F 40 [17:41:24]RasterBufferAndPrint [17:41:24]line Счет N : (1)1319160 [17:41:24]line ИНН: 02508201610067 [17:41:24]line Контрольно-Кассовый Чек [17:41:24]line ПРОДАЖА [17:41:24]line ТРК (МРК, ГНК) : 52 [17:41:24]line Товар: 2710124130 [17:41:24]line Super-92-К-5 [17:41:24]line 35.670 * 67.30 [17:41:24]line = 2400.59 [17:41:24]line НДС 12% НСП 1% [17:41:24]line > о реализуемом товаре [17:41:24]line ОКРУГЛЕНИЕ: -0.59 [17:41:24]line ИТОГО: 2400.00 [17:41:25]line Внесено: 2400.00 [17:41:25]line СДАЧА: 0.00 [17:41:25]line НСП 1% : 21.24 [17:41:25]line НДС 12% : 254.93 [17:41:25]line Наличными: 2400.00 [17:41:25]line Безнал.: 0.00 [17:41:25]line Место: АЗС № 140 "Партнер Нефть" [17:41:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:41:25]line СНО: Общий режим [17:41:25]line Чек 263 13.07.2024 17:41 [17:41:25]line Смена: 462 ФФД: 1.0 [17:41:25]line ЗНМ: 0300000129 [17:41:25]line РНМ: 0000000000090858 [17:41:25]line Версия ККМ: 001 [17:41:25]line ФМ: 0000000000874899 [17:41:25]line ФД: 162595 [17:41:25]line ФПД: 5379410366051 [17:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174124&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162595&fm=5379410366051&tin=02508201610067®Number=0000000000090858&sum=240000 [17:41:25]OFD Sender: Processing packet 162595 [packets to send 106, broken 105] [17:41:25]ProducePacketName [17:41:25]name=ofd_packets/00162595 [17:41:25]OFD Sender: To server: pG, [17:41:25]CommunicateWithHost lk.salyk.kg:30040 [17:41:25]ConnectInit lk.salyk.kg [17:41:25]written 0, free lines is 4095 [17:41:25]Connected sock=10 [17:41:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 20 E8 08 01 DD 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 8B 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 BB 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 95 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 07 01 00 00 F4 03 04 00 44 BC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7B 02 00 35 04 06 00 04 E4 7D D8 0E 63 0F 50 91 20 36 DA 7E 69 [17:41:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 BE 8D 47 00 6E 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 23 7B 02 00 F4 03 04 00 53 68 92 66 B6 04 01 00 00 26 B4 53 EC C0 78 32 1E [17:41:25]CommunicateWithHost err = 0 [17:41:25]CheckOFDResponse [17:41:25]1017 (14) - 77093643461234 [17:41:25]1041 (16) - 0000000000874899 [17:41:25]1040 (4) - 162595 [17:41:25]1012 (4) - 13.07.2024 11:43 [17:41:25]1206 (1) - 0 [17:41:25]OFD Sender: Remove packet 162595 [17:41:25]ProducePacketName [17:41:25]name=ofd_packets/00162595 [17:41:25]NVStorageDeleteData [17:41:25]Write to MH i2c: 01 00 00 3F 17 56 [17:41:25]Write i2c OK [17:41:25]MH_I2C_Read... [17:41:25]Read from MH i2c: 01 [17:41:25]MH_I2C_Read... [17:41:25]Read from MH i2c: 01 07 00 [17:41:25]MH_I2C_Read... [17:41:25]Read from MH i2c: 01 07 00 3F 17 00 00 00 00 00 EA 0C 53 [17:41:25]RasterBufferAndPrint [17:41:25]line [17:41:25]line [17:41:25]line [17:41:25]line [17:41:25]line [17:41:25]written 0, free lines is 3312 [17:41:25]MH_Cut [17:41:25]Write to MH i2c: D1 01 00 46 17 01 2F [17:41:25]Write i2c OK [17:41:25]MH_I2C_Read... [17:41:25]Read from MH i2c: D1 [17:41:25]MH_I2C_Read... [17:41:25]Read from MH i2c: D1 01 00 [17:41:25]MH_I2C_Read... [17:41:25]Read from MH i2c: D1 01 00 46 17 00 2E [17:41:25]Write to MH i2c: 01 00 00 47 17 5E [17:41:25]Write i2c OK [17:41:25]MH_I2C_Read... [17:41:26]OFD Sender: No OFD packet to send [17:41:26]*** Cut start [17:41:26]*** Purtial cut [17:41:26]*** Stage 1: CUTSNS_PIN = 1 [17:41:26]Read from MH i2c: 01 [17:41:26]MH_I2C_Read... [17:41:26]*** Stop cut motor [17:41:26]*** Cut end [17:41:26]Read from MH i2c: 01 07 00 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: 01 07 00 47 17 00 00 00 00 00 FF 0F 73 [17:41:26]process_action close_receipt done [17:41:26]requested_data is exist [17:41:26]produce_requested_data [17:41:26]requested_item fm.sn is exist - process it [17:41:26]wFMCommunicate request_size=4 [17:41:26]MH_SAM_APDU [17:41:26]CAPDU: 80 11 00 00 [17:41:26]Write to MH i2c: E2 08 00 48 17 80 11 00 00 00 00 00 00 D9 [17:41:26]Write i2c OK [17:41:26]MH_I2C_Read... [17:41:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:26]Read from MH i2c: E2 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: E2 17 00 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: E2 17 00 48 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 39 [17:41:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:41:26]wFMCommunicate OK [17:41:26]requested_item fd.num is exist - process it [17:41:26]SAM_PROTO_GetFieldsCounters [17:41:26]wFMCommunicate request_size=4 [17:41:26]MH_SAM_APDU [17:41:26]CAPDU: 80 13 00 00 [17:41:26]Write to MH i2c: E2 08 00 49 17 80 13 00 00 00 00 00 00 DC [17:41:26]Write i2c OK [17:41:26]MH_I2C_Read... [17:41:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:26]Read from MH i2c: E2 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: E2 62 00 [17:41:26]MH_I2C_Read... [17:41:26]Read from MH i2c: E2 62 00 49 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 23 7B 02 00 0E 04 04 00 CE 01 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 96 [17:41:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 23 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:26]wFMCommunicate OK [17:41:26]SAM_PROTO_GetFieldsCounters done [17:41:26]requested_item shift.num is exist - process it [17:41:26]requested_item shift.opened is exist - process it [17:41:26]req_shift_opened [17:41:26]FM_GetShiftState [17:41:26]SAM_PROTO_GetShiftState [17:41:26]wFMCommunicate request_size=4 [17:41:26]MH_SAM_APDU [17:41:26]CAPDU: 80 13 01 00 [17:41:26]Write to MH i2c: E2 08 00 4A 17 80 13 01 00 00 00 00 00 DE [17:41:26]Write i2c OK [17:41:26]MH_I2C_Read... [17:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:27]Read from MH i2c: E2 [17:41:27]MH_I2C_Read... [17:41:27]Read from MH i2c: E2 0E 00 [17:41:27]MH_I2C_Read... [17:41:27]Read from MH i2c: E2 0E 00 4A 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D8 [17:41:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:41:27]wFMCommunicate OK [17:41:27]SAM_PROTO_GetShiftState done [17:41:27]FM_GetShiftState done [17:41:27]req_shift_opened done [17:41:27]requested_item shift.open_date is exist - process it [17:41:27]req_shift_open_date [17:41:27]req_shift_open_date done [17:41:27]produce_requested_data done [17:41:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162595,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:41:27]process_action_free close_receipt [17:41:27]json_value_free [17:41:27]json_value_free done [17:41:27]process_json_proto returns [17:41:27]Send response to host [17:41:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162595,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:41:27]free response buf [17:41:27]execute_script done [17:41:27]execute_script returns [17:41:27]free content buf [17:41:27]Sock 9.Close socket [17:41:27]Sock 9.Thread stoped [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:22]accept exits with 7 [17:43:22]New connection [17:43:22]New thread 3067510116 created [17:43:22]Thread 3067366756 joined [17:43:22]Waiting for new connection... [17:43:22] Sock 7.Parse request [17:43:22]Sock 7.Check first char [17:43:22]Sock 7.First char is OK [17:43:22]request: POST /json_proto HTTP/1.0 [17:43:22]Method: POST [17:43:22]URL: /json_proto [17:43:22]Method is POST - this is cgi request [17:43:22]url: /json_proto [17:43:22]query_string will be loaded in cgi processing [17:43:22]execute_cgi json_proto POST (null) [17:43:22]execute_cgi path=json_proto method=POST [17:43:22]POST find Content-Length [17:43:22]Host: 172.17.39.67:8080 [17:43:22]Content-Length: 683 [17:43:22]Content-Type: application/json [17:43:22] [17:43:22]POST finish read [17:43:22]Found Content-Length = 683 [17:43:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.160, "sum" : 592.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:22]execute_script... [17:43: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)1319161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 8.160, "sum" : 592.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 592.00, "payments": [ { "type": 0, "sum" : 592.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:22]POST & json_proto [17:43:22]process_json_proto [17:43:22]json parsed OK: [17:43:22]protocol is kg_v1.0 [17:43:22]action value=close_receipt [17:43:22]process_action close_receipt [17:43:22]cmd_close_receipt [17:43:22]MH_GetDate [17:43:22]Write to MH i2c: F0 00 00 4B 17 51 [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: F0 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: F0 09 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: F0 09 00 4B 17 00 BB BC 92 66 86 7C 92 66 C3 [17:43:22]GetLastDocTimeStamp 1720892484 [17:43:22]current date 1720892603 [17:43:22]FM_GetShiftState [17:43:22]SAM_PROTO_GetShiftState [17:43:22]wFMCommunicate request_size=4 [17:43:22]MH_SAM_APDU [17:43:22]CAPDU: 80 13 01 00 [17:43:22]Write to MH i2c: E2 08 00 4C 17 80 13 01 00 00 00 00 00 E0 [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:22]Read from MH i2c: E2 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 0E 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 0E 00 4C 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DA [17:43:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:43:22]wFMCommunicate OK [17:43:22]SAM_PROTO_GetShiftState done [17:43:22]FM_GetShiftState done [17:43:22]opened in 1720828979 [17:43:22]opened+sec_in_day 1720915379 [17:43:22]quantity*price = 59241 [17:43:22]sum+1 = 59243 [17:43:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 592.00 Внесено: 730.00 СДАЧА: 138.00 НСП 1% : 5.24 НДС 12% : 62.91 Наличными: 592.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 264 13.07.2024 17:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162596 ФПД: 137087350676443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174323&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162596&fm=137087350676443&tin=02508201610067®Number=0000000000090858&sum=59200 [17:43:23]StoreToDocumentArchive [17:43:23]shift 462 fd 162596 [17:43:23]save to /storage/0462/doc_00162596 [17:43:23]save last doc name /storage/0462/doc_00162596 to /storage/kkm_last_doc_name [17:43:23]save OK [17:43:23]Clear old archive folders... [17:43:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:43:23]tlvbuf is 00611A70 [17:43:23]SAM_PROTO_ClearQueue [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 09 00 00 [17:43:23]Write to MH i2c: E2 08 00 59 17 80 09 00 00 00 00 00 00 E2 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 03 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 03 00 59 17 00 90 00 E4 [17:43:23]RAPDU: 90 00 [17:43:23]wFMCommunicate OK [17:43:23]SAM_PROTO_ClearQueue done [17:43:23]KKMCreateOFDPacket [17:43:23]OFDProtocolAddRootSTLVToBuf [17:43:23]FM_MakeSignedData [17:43:23]FM_MakeSignedData [17:43:23]SAM_PROTO_SignData [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 0D 01 02 [17:43:23]Write to MH i2c: E2 08 00 5A 17 80 0D 01 02 00 00 00 00 EA [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 03 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 03 00 5A 17 00 90 00 E5 [17:43:23]RAPDU: 90 00 [17:43:23]wFMCommunicate OK [17:43:23]wFMCommunicate request_size=255 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 BB BC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7B 02 00 35 04 06 00 [17:43:23]Write to MH i2c: E2 02 01 5B 17 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 BB BC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7B 02 00 35 04 06 00 00 00 F8 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 03 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 03 00 5B 17 00 90 00 E6 [17:43:23]RAPDU: 90 00 [17:43:23]wFMCommunicate OK [17:43:23]wFMCommunicate request_size=11 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 0D 02 02 06 7C AE 22 D7 1B DB [17:43:23]Write to MH i2c: E2 0E 00 5C 17 80 0D 02 02 06 00 7C AE 22 D7 1B DB 00 00 12 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 03 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 03 00 5C 17 00 90 00 E7 [17:43:23]RAPDU: 90 00 [17:43:23]wFMCommunicate OK [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 0D 03 02 [17:43:23]Write to MH i2c: E2 08 00 5D 17 80 0D 03 02 00 00 00 00 EF [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 0B 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 0B 00 5D 17 00 DE F1 EA 53 51 76 49 F1 90 00 FD [17:43:23]RAPDU: DE F1 EA 53 51 76 49 F1 90 00 [17:43:23]wFMCommunicate OK [17:43:23]SAM_PROTO_SignData done [17:43:23]FM_MakeSignedData done [17:43:23]CreateOFDProtocolMessage [17:43:23]wFMCommunicate request_size=4 [17:43:23]MH_SAM_APDU [17:43:23]CAPDU: 80 11 00 00 [17:43:23]Write to MH i2c: E2 08 00 5E 17 80 11 00 00 00 00 00 00 EF [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:23]Read from MH i2c: E2 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 17 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: E2 17 00 5E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4F [17:43:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:43:23]wFMCommunicate OK [17:43:23]CreateOFDProtocolMessage done [17:43:23]OFDSenderStorePacket 162596 [17:43:23]StoreOFDPacket docnum=162596 [17:43:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 0B 33 08 01 A0 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 BB BC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7B 02 00 35 04 06 00 7C AE 22 D7 1B DB DE F1 EA 53 51 76 49 F1 [17:43:23]CheckFolder [17:43:23]dirname=/storage/ofd_packets [17:43:23]CheckFolder done [17:43:23]ProducePacketName [17:43:23]name=ofd_packets/00162596 [17:43:23]NVStorageSaveData ofd_packets/00162596 [17:43:23]File name is /storage/ofd_packets/00162596 [17:43:23]Write 302 bytes [17:43:23]NVStorageSaveData done [17:43:23]OFDSenderStorePacket done [17:43:23]KKMCreateOFDPacket done [17:43:23]NVStorageSaveData kkm_last_timestamp [17:43:23]File name is /storage/kkm_last_timestamp [17:43:23]Write 4 bytes [17:43:23]NVStorageSaveData done [17:43:23]ExternCall_PrintAddStr [17:43:23]wPrintStart [17:43:23]Write to MH i2c: 01 00 00 5F 17 76 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: 01 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: 01 07 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: 01 07 00 5F 17 00 00 00 00 00 FF 0F 8B [17:43:23]RasterBufferAndPrint [17:43:23]line Счет N : (1)1319161 [17:43:23]line ИНН: 02508201610067 [17:43:23]line Контрольно-Кассовый Чек [17:43:23]line ПРОДАЖА [17:43:23]line ТРК (МРК, ГНК) : 11 [17:43:23]line Товар: 2710194210 [17:43:23]line ДТ(л)-К-5 [17:43:23]line 8.160 * 72.60 [17:43:23]line = 592.42 [17:43:23]line НДС 12% НСП 1% [17:43:23]line > о реализуемом товаре [17:43:23]line ОКРУГЛЕНИЕ: -0.42 [17:43:23]line ИТОГО: 592.00 [17:43:23]line Внесено: 730.00 [17:43:23]line СДАЧА: 138.00 [17:43:23]line НСП 1% : 5.24 [17:43:23]line НДС 12% : 62.91 [17:43:23]line Наличными: 592.00 [17:43:23]line Безнал.: 0.00 [17:43:23]line Место: АЗС № 140 "Партнер Нефть" [17:43:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:43:23]line СНО: Общий режим [17:43:23]line Чек 264 13.07.2024 17:43 [17:43:23]line Смена: 462 ФФД: 1.0 [17:43:23]line ЗНМ: 0300000129 [17:43:23]line РНМ: 0000000000090858 [17:43:23]line Версия ККМ: 001 [17:43:23]line ФМ: 0000000000874899 [17:43:23]line ФД: 162596 [17:43:23]line ФПД: 137087350676443 [17:43:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174323&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162596&fm=137087350676443&tin=02508201610067®Number=0000000000090858&sum=59200 [17:43:23]written 0, free lines is 4095 [17:43:23]OFD Sender: Processing packet 162596 [packets to send 106, broken 105] [17:43:23]ProducePacketName [17:43:23]name=ofd_packets/00162596 [17:43:23]OFD Sender: To server: pG, [17:43:23]CommunicateWithHost lk.salyk.kg:30040 [17:43:23]ConnectInit lk.salyk.kg [17:43:23]Connected sock=10 [17: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 34 38 39 39 10 01 00 00 0B 33 08 01 A0 8B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 1F 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 6A E7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 18 00 00 00 00 07 04 06 00 40 E7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 BB BC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7B 02 00 35 04 06 00 7C AE 22 D7 1B DB DE F1 EA 53 51 76 49 F1 [17:43:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 35 81 47 00 E6 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 24 7B 02 00 F4 03 04 00 C9 68 92 66 B6 04 01 00 00 A9 F3 92 5F 55 14 7F 55 [17:43:24]CommunicateWithHost err = 0 [17:43:24]CheckOFDResponse [17:43:24]1017 (14) - 77093643461234 [17:43:24]1041 (16) - 0000000000874899 [17:43:24]1040 (4) - 162596 [17:43:24]1012 (4) - 13.07.2024 11:45 [17:43:24]1206 (1) - 0 [17:43:24]OFD Sender: Remove packet 162596 [17:43:24]ProducePacketName [17:43:24]name=ofd_packets/00162596 [17:43:24]NVStorageDeleteData [17:43:24]Write to MH i2c: 01 00 00 8A 17 A1 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 07 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: 01 07 00 8A 17 00 00 00 00 00 E3 0C 97 [17:43:24]RasterBufferAndPrint [17:43:24]line [17:43:24]line [17:43:24]line [17:43:24]line [17:43:24]line [17:43:24]written 0, free lines is 3308 [17:43:24]MH_Cut [17:43:24]Write to MH i2c: D1 01 00 91 17 01 7A [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: D1 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: D1 01 00 [17:43:24]MH_I2C_Read... [17:43:24]Read from MH i2c: D1 01 00 91 17 00 79 [17:43:24]Write to MH i2c: 01 00 00 92 17 A9 [17:43:24]Write i2c OK [17:43:24]MH_I2C_Read... [17:43:24]OFD Sender: No OFD packet to send [17:43:25]*** Cut start [17:43:25]*** Purtial cut [17:43:25]*** CUTSNS_PIN = 0 [17:43:25]*** Stage 1: CUTSNS_PIN = 1 [17:43:27]Read from MH i2c: 01 [17:43:27]MH_I2C_Read... [17:43:27]*** Stop cut motor [17:43:27]*** Cut end [17:43:27]Read from MH i2c: 01 07 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: 01 07 00 92 17 00 00 00 00 00 FF 0F BE [17:43:27]process_action close_receipt done [17:43:27]requested_data is exist [17:43:27]produce_requested_data [17:43:27]requested_item fm.sn is exist - process it [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 11 00 00 [17:43:27]Write to MH i2c: E2 08 00 93 17 80 11 00 00 00 00 00 00 24 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 17 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 17 00 93 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 84 [17:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:43:27]wFMCommunicate OK [17:43:27]requested_item fd.num is exist - process it [17:43:27]SAM_PROTO_GetFieldsCounters [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 13 00 00 [17:43:27]Write to MH i2c: E2 08 00 94 17 80 13 00 00 00 00 00 00 27 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 62 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 62 00 94 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 24 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [17:43:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 24 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:27]wFMCommunicate OK [17:43:27]SAM_PROTO_GetFieldsCounters done [17:43:27]requested_item shift.num is exist - process it [17:43:27]requested_item shift.opened is exist - process it [17:43:27]req_shift_opened [17:43:27]FM_GetShiftState [17:43:27]SAM_PROTO_GetShiftState [17:43:27]wFMCommunicate request_size=4 [17:43:27]MH_SAM_APDU [17:43:27]CAPDU: 80 13 01 00 [17:43:27]Write to MH i2c: E2 08 00 95 17 80 13 01 00 00 00 00 00 29 [17:43:27]Write i2c OK [17:43:27]MH_I2C_Read... [17:43:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:27]Read from MH i2c: E2 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 0E 00 [17:43:27]MH_I2C_Read... [17:43:27]Read from MH i2c: E2 0E 00 95 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 23 [17:43:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:43:27]wFMCommunicate OK [17:43:27]SAM_PROTO_GetShiftState done [17:43:27]FM_GetShiftState done [17:43:27]req_shift_opened done [17:43:27]requested_item shift.open_date is exist - process it [17:43:27]req_shift_open_date [17:43:27]req_shift_open_date done [17:43:27]produce_requested_data done [17:43:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162596,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:43:27]process_action_free close_receipt [17:43:27]json_value_free [17:43:27]json_value_free done [17:43:27]process_json_proto returns [17:43:27]Send response to host [17:43:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162596,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:43:27]free response buf [17:43:27]execute_script done [17:43:27]execute_script returns [17:43:27]free content buf [17:43:27]Sock 7.Close socket [17:43:27]Sock 7.Thread stoped [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:26]accept exits with 9 [17:48:26]New connection [17:48:26]New thread 3067366756 created [17:48:26]Thread 3067510116 joined [17:48:26]Waiting for new connection... [17:48:26] Sock 9.Parse request [17:48:26]Sock 9.Check first char [17:48:26]Sock 9.First char is OK [17:48:26]request: POST /json_proto HTTP/1.0 [17:48:26]Method: POST [17:48:26]URL: /json_proto [17:48:26]Method is POST - this is cgi request [17:48:26]url: /json_proto [17:48:26]query_string will be loaded in cgi processing [17:48:26]execute_cgi json_proto POST (null) [17:48:26]execute_cgi path=json_proto method=POST [17:48:26]POST find Content-Length [17:48:26]Host: 172.17.39.67:8080 [17:48:26]Content-Length: 683 [17:48:26]Content-Type: application/json [17:48:26] [17:48:26]POST finish read [17:48:26]Found Content-Length = 683 [17:48:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:26]execute_script... [17:48: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)1319162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:26]POST & json_proto [17:48:26]process_json_proto [17:48:26]json parsed OK: [17:48:26]protocol is kg_v1.0 [17:48:26]action value=close_receipt [17:48:26]process_action close_receipt [17:48:26]cmd_close_receipt [17:48:26]MH_GetDate [17:48:26]Write to MH i2c: F0 00 00 96 17 9C [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: F0 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: F0 09 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: F0 09 00 96 17 00 EB BD 92 66 86 7C 92 66 3F [17:48:26]GetLastDocTimeStamp 1720892603 [17:48:26]current date 1720892907 [17:48:26]FM_GetShiftState [17:48:26]SAM_PROTO_GetShiftState [17:48:26]wFMCommunicate request_size=4 [17:48:26]MH_SAM_APDU [17:48:26]CAPDU: 80 13 01 00 [17:48:26]Write to MH i2c: E2 08 00 97 17 80 13 01 00 00 00 00 00 2B [17:48:26]Write i2c OK [17:48:26]MH_I2C_Read... [17:48:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:26]Read from MH i2c: E2 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 0E 00 [17:48:26]MH_I2C_Read... [17:48:26]Read from MH i2c: E2 0E 00 97 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 25 [17:48:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:48:26]wFMCommunicate OK [17:48:26]SAM_PROTO_GetShiftState done [17:48:26]FM_GetShiftState done [17:48:26]opened in 1720828979 [17:48:26]opened+sec_in_day 1720915379 [17:48:26]quantity*price = 100046 [17:48:26]sum+1 = 100048 [17:48:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 265 13.07.2024 17:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162597 ФПД: 227222975036459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174827&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162597&fm=227222975036459&tin=02508201610067®Number=0000000000090858&sum=100000 [17:48:28]StoreToDocumentArchive [17:48:28]shift 462 fd 162597 [17:48:28]save to /storage/0462/doc_00162597 [17:48:28]save last doc name /storage/0462/doc_00162597 to /storage/kkm_last_doc_name [17:48:28]save OK [17:48:28]Clear old archive folders... [17:48:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:28]tlvbuf is 006DC020 [17:48:28]SAM_PROTO_ClearQueue [17:48:28]wFMCommunicate request_size=4 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 09 00 00 [17:48:28]Write to MH i2c: E2 08 00 A4 17 80 09 00 00 00 00 00 00 2D [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 A4 17 00 90 00 2F [17:48:28]RAPDU: 90 00 [17:48:28]wFMCommunicate OK [17:48:28]SAM_PROTO_ClearQueue done [17:48:28]KKMCreateOFDPacket [17:48:28]OFDProtocolAddRootSTLVToBuf [17:48:28]FM_MakeSignedData [17:48:28]FM_MakeSignedData [17:48:28]SAM_PROTO_SignData [17:48:28]wFMCommunicate request_size=4 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 0D 01 02 [17:48:28]Write to MH i2c: E2 08 00 A5 17 80 0D 01 02 00 00 00 00 35 [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 A5 17 00 90 00 30 [17:48:28]RAPDU: 90 00 [17:48:28]wFMCommunicate OK [17:48:28]wFMCommunicate request_size=255 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 09 01 00 00 F4 03 04 00 EB BD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7B 02 00 35 04 06 00 CE [17:48:28]Write to MH i2c: E2 02 01 A6 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 09 01 00 00 F4 03 04 00 EB BD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7B 02 00 35 04 06 00 CE 00 00 2A [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 A6 17 00 90 00 31 [17:48:28]RAPDU: 90 00 [17:48:28]wFMCommunicate OK [17:48:28]wFMCommunicate request_size=10 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 0D 02 02 05 A8 78 B6 3C 2B [17:48:28]Write to MH i2c: E2 0D 00 A7 17 80 0D 02 02 05 00 A8 78 B6 3C 2B 00 00 7F [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 03 00 A7 17 00 90 00 32 [17:48:28]RAPDU: 90 00 [17:48:28]wFMCommunicate OK [17:48:28]wFMCommunicate request_size=4 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 0D 03 02 [17:48:28]Write to MH i2c: E2 08 00 A8 17 80 0D 03 02 00 00 00 00 3A [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 0B 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 0B 00 A8 17 00 FC 43 A5 19 25 42 73 69 90 00 7B [17:48:28]RAPDU: FC 43 A5 19 25 42 73 69 90 00 [17:48:28]wFMCommunicate OK [17:48:28]SAM_PROTO_SignData done [17:48:28]FM_MakeSignedData done [17:48:28]CreateOFDProtocolMessage [17:48:28]wFMCommunicate request_size=4 [17:48:28]MH_SAM_APDU [17:48:28]CAPDU: 80 11 00 00 [17:48:28]Write to MH i2c: E2 08 00 A9 17 80 11 00 00 00 00 00 00 3A [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:28]Read from MH i2c: E2 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 17 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: E2 17 00 A9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9A [17:48:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:48:28]wFMCommunicate OK [17:48:28]CreateOFDProtocolMessage done [17:48:28]OFDSenderStorePacket 162597 [17:48:28]StoreOFDPacket docnum=162597 [17:48:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C8 7A 07 01 4F 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 09 01 00 00 F4 03 04 00 EB BD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7B 02 00 35 04 06 00 CE A8 78 B6 3C 2B FC 43 A5 19 25 42 73 69 [17:48:28]CheckFolder [17:48:28]dirname=/storage/ofd_packets [17:48:28]CheckFolder done [17:48:28]ProducePacketName [17:48:28]name=ofd_packets/00162597 [17:48:28]NVStorageSaveData ofd_packets/00162597 [17:48:28]File name is /storage/ofd_packets/00162597 [17:48:28]Write 301 bytes [17:48:28]NVStorageSaveData done [17:48:28]OFDSenderStorePacket done [17:48:28]KKMCreateOFDPacket done [17:48:28]NVStorageSaveData kkm_last_timestamp [17:48:28]File name is /storage/kkm_last_timestamp [17:48:28]Write 4 bytes [17:48:28]NVStorageSaveData done [17:48:28]ExternCall_PrintAddStr [17:48:28]wPrintStart [17:48:28]Write to MH i2c: 01 00 00 AA 17 C1 [17:48:28]Write i2c OK [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 07 00 [17:48:28]MH_I2C_Read... [17:48:28]Read from MH i2c: 01 07 00 AA 17 00 00 00 00 00 FF 0F D6 [17:48:28]RasterBufferAndPrint [17:48:28]line Счет N : (1)1319162 [17:48:28]line ИНН: 02508201610067 [17:48:28]line Контрольно-Кассовый Чек [17:48:28]line ПРОДАЖА [17:48:28]line ТРК (МРК, ГНК) : 43 [17:48:28]line Товар: 2710124130 [17:48:28]line Аи-92-К-5 [17:48:28]line 15.090 * 66.30 [17:48:28]line = 1000.47 [17:48:28]line НДС 12% НСП 1% [17:48:28]line > о реализуемом товаре [17:48:28]line ОКРУГЛЕНИЕ: -0.47 [17:48:28]line ИТОГО: 1000.00 [17:48:28]line Внесено: 1000.00 [17:48:28]line СДАЧА: 0.00 [17:48:28]line НСП 1% : 8.85 [17:48:28]line НДС 12% : 106.24 [17:48:28]line Наличными: 1000.00 [17:48:28]line Безнал.: 0.00 [17:48:28]line Место: АЗС № 140 "Партнер Нефть" [17:48:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:48:28]line СНО: Общий режим [17:48:28]line Чек 265 13.07.2024 17:48 [17:48:28]line Смена: 462 ФФД: 1.0 [17:48:28]line ЗНМ: 0300000129 [17:48:28]line РНМ: 0000000000090858 [17:48:28]line Версия ККМ: 001 [17:48:28]line ФМ: 0000000000874899 [17:48:28]line ФД: 162597 [17:48:28]line ФПД: 227222975036459 [17:48:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174827&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162597&fm=227222975036459&tin=02508201610067®Number=0000000000090858&sum=100000 [17:48:28]OFD Sender: Processing packet 162597 [packets to send 106, broken 105] [17:48:28]ProducePacketName [17:48:28]name=ofd_packets/00162597 [17:48:28]OFD Sender: To server: pG, [17:48:28]CommunicateWithHost lk.salyk.kg:30040 [17:48:28]ConnectInit lk.salyk.kg [17:48:28]written 0, free lines is 4095 [17:48:29]Connected sock=10 [17:48:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C8 7A 07 01 4F 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 09 01 00 00 F4 03 04 00 EB BD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7B 02 00 35 04 06 00 CE A8 78 B6 3C 2B FC 43 A5 19 25 42 73 69 [17:48:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D7 84 47 00 CC 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 25 7B 02 00 F4 03 04 00 FA 69 92 66 B6 04 01 00 00 AA 51 47 67 F6 09 48 F5 [17:48:29]CommunicateWithHost err = 0 [17:48:29]CheckOFDResponse [17:48:29]1017 (14) - 77093643461234 [17:48:29]1041 (16) - 0000000000874899 [17:48:29]1040 (4) - 162597 [17:48:29]1012 (4) - 13.07.2024 11:50 [17:48:29]1206 (1) - 0 [17:48:29]OFD Sender: Remove packet 162597 [17:48:29]ProducePacketName [17:48:29]name=ofd_packets/00162597 [17:48:29]NVStorageDeleteData [17:48:29]Write to MH i2c: 01 00 00 D5 17 EC [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 07 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: 01 07 00 D5 17 00 00 00 00 00 DC 0C DB [17:48:29]RasterBufferAndPrint [17:48:29]line [17:48:29]line [17:48:29]line [17:48:29]line [17:48:29]line [17:48:29]written 0, free lines is 3298 [17:48:29]MH_Cut [17:48:29]Write to MH i2c: D1 01 00 DC 17 01 C5 [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: D1 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: D1 01 00 [17:48:29]MH_I2C_Read... [17:48:29]Read from MH i2c: D1 01 00 DC 17 00 C4 [17:48:29]Write to MH i2c: 01 00 00 DD 17 F4 [17:48:29]Write i2c OK [17:48:29]MH_I2C_Read... [17:48:29]OFD Sender: No OFD packet to send [17:48:30]*** Cut start [17:48:30]*** Purtial cut [17:48:30]*** Stage 1: CUTSNS_PIN = 1 [17:48:30]Read from MH i2c: 01 [17:48:30]MH_I2C_Read... [17:48:30]*** Stop cut motor [17:48:30]*** Cut end [17:48:30]Read from MH i2c: 01 07 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: 01 07 00 DD 17 00 00 00 00 00 FF 0F 09 [17:48:30]process_action close_receipt done [17:48:30]requested_data is exist [17:48:30]produce_requested_data [17:48:30]requested_item fm.sn is exist - process it [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 11 00 00 [17:48:30]Write to MH i2c: E2 08 00 DE 17 80 11 00 00 00 00 00 00 6F [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 17 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 17 00 DE 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CF [17:48:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:48:30]wFMCommunicate OK [17:48:30]requested_item fd.num is exist - process it [17:48:30]SAM_PROTO_GetFieldsCounters [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 13 00 00 [17:48:30]Write to MH i2c: E2 08 00 DF 17 80 13 00 00 00 00 00 00 72 [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 62 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 62 00 DF 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 25 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:48:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 25 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:30]wFMCommunicate OK [17:48:30]SAM_PROTO_GetFieldsCounters done [17:48:30]requested_item shift.num is exist - process it [17:48:30]requested_item shift.opened is exist - process it [17:48:30]req_shift_opened [17:48:30]FM_GetShiftState [17:48:30]SAM_PROTO_GetShiftState [17:48:30]wFMCommunicate request_size=4 [17:48:30]MH_SAM_APDU [17:48:30]CAPDU: 80 13 01 00 [17:48:30]Write to MH i2c: E2 08 00 E0 17 80 13 01 00 00 00 00 00 74 [17:48:30]Write i2c OK [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 [17:48:30]MH_I2C_Read... [17:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:30]Read from MH i2c: E2 0E 00 [17:48:30]MH_I2C_Read... [17:48:30]Read from MH i2c: E2 0E 00 E0 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6E [17:48:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:48:30]wFMCommunicate OK [17:48:30]SAM_PROTO_GetShiftState done [17:48:30]FM_GetShiftState done [17:48:30]req_shift_opened done [17:48:30]requested_item shift.open_date is exist - process it [17:48:30]req_shift_open_date [17:48:30]req_shift_open_date done [17:48:30]produce_requested_data done [17:48:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162597,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:48:30]process_action_free close_receipt [17:48:30]json_value_free [17:48:30]json_value_free done [17:48:30]process_json_proto returns [17:48:30]Send response to host [17:48:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162597,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:48:30]free response buf [17:48:30]execute_script done [17:48:30]execute_script returns [17:48:30]free content buf [17:48:30]Sock 9.Close socket [17:48:30]Sock 9.Thread stoped [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:56]accept exits with 7 [17:48:56]New connection [17:48:56]New thread 3067510116 created [17:48:56]Thread 3067366756 joined [17:48:56]Waiting for new connection... [17:48:56] Sock 7.Parse request [17:48:56]Sock 7.Check first char [17:48:56]Sock 7.First char is OK [17:48:56]request: POST /json_proto HTTP/1.0 [17:48:56]Method: POST [17:48:56]URL: /json_proto [17:48:56]Method is POST - this is cgi request [17:48:56]url: /json_proto [17:48:56]query_string will be loaded in cgi processing [17:48:56]execute_cgi json_proto POST (null) [17:48:56]execute_cgi path=json_proto method=POST [17:48:56]POST find Content-Length [17:48:56]Host: 172.17.39.67:8080 [17:48:56]Content-Length: 679 [17:48:56]Content-Type: application/json [17:48:56] [17:48:56]POST finish read [17:48:56]Found Content-Length = 679 [17:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 10.760, "sum" : 800.54, "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" ] } } [17:48:56]execute_script... [17:48: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)1319163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 10.760, "sum" : 800.54, "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" ] } } [17:48:56]POST & json_proto [17:48:56]process_json_proto [17:48:56]json parsed OK: [17:48:56]protocol is kg_v1.0 [17:48:56]action value=close_receipt [17:48:56]process_action close_receipt [17:48:56]cmd_close_receipt [17:48:56]MH_GetDate [17:48:56]Write to MH i2c: F0 00 00 E1 17 E7 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: F0 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: F0 09 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: F0 09 00 E1 17 00 09 BE 92 66 86 7C 92 66 A9 [17:48:56]GetLastDocTimeStamp 1720892907 [17:48:56]current date 1720892937 [17:48:56]FM_GetShiftState [17:48:56]SAM_PROTO_GetShiftState [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 13 01 00 [17:48:56]Write to MH i2c: E2 08 00 E2 17 80 13 01 00 00 00 00 00 76 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 0E 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 0E 00 E2 17 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 70 [17:48:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:48:56]wFMCommunicate OK [17:48:56]SAM_PROTO_GetShiftState done [17:48:56]FM_GetShiftState done [17:48:56]opened in 1720828979 [17:48:56]opened+sec_in_day 1720915379 [17:48:56]quantity*price = 80054 [17:48:56]sum+1 = 80055 [17:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 266 13.07.2024 17:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162598 ФПД: 107407928330399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174857&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162598&fm=107407928330399&tin=02508201610067®Number=0000000000090858&sum=80000 [17:48:58]StoreToDocumentArchive [17:48:58]shift 462 fd 162598 [17:48:58]save to /storage/0462/doc_00162598 [17:48:58]save last doc name /storage/0462/doc_00162598 to /storage/kkm_last_doc_name [17:48:58]save OK [17:48:58]Clear old archive folders... [17:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:58]tlvbuf is 006B2D80 [17:48:58]SAM_PROTO_ClearQueue [17:48:58]wFMCommunicate request_size=4 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 09 00 00 [17:48:58]Write to MH i2c: E2 08 00 EF 17 80 09 00 00 00 00 00 00 78 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 EF 17 00 90 00 7A [17:48:58]RAPDU: 90 00 [17:48:58]wFMCommunicate OK [17:48:58]SAM_PROTO_ClearQueue done [17:48:58]KKMCreateOFDPacket [17:48:58]OFDProtocolAddRootSTLVToBuf [17:48:58]FM_MakeSignedData [17:48:58]FM_MakeSignedData [17:48:58]SAM_PROTO_SignData [17:48:58]wFMCommunicate request_size=4 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 0D 01 02 [17:48:58]Write to MH i2c: E2 08 00 F0 17 80 0D 01 02 00 00 00 00 80 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 F0 17 00 90 00 7B [17:48:58]RAPDU: 90 00 [17:48:58]wFMCommunicate OK [17:48:58]wFMCommunicate request_size=255 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 2A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B6 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 35 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 0A 01 00 00 F4 03 04 00 09 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7B 02 00 35 04 06 00 61 [17:48:58]Write to MH i2c: E2 02 01 F1 17 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 2A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B6 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 35 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 0A 01 00 00 F4 03 04 00 09 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7B 02 00 35 04 06 00 61 00 00 19 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 F1 17 00 90 00 7C [17:48:58]RAPDU: 90 00 [17:48:58]wFMCommunicate OK [17:48:58]wFMCommunicate request_size=10 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 0D 02 02 05 AF DB 6A 08 9F [17:48:58]Write to MH i2c: E2 0D 00 F2 17 80 0D 02 02 05 00 AF DB 6A 08 9F 00 00 28 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 03 00 F2 17 00 90 00 7D [17:48:58]RAPDU: 90 00 [17:48:58]wFMCommunicate OK [17:48:58]wFMCommunicate request_size=4 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 0D 03 02 [17:48:58]Write to MH i2c: E2 08 00 F3 17 80 0D 03 02 00 00 00 00 85 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 0B 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 0B 00 F3 17 00 E3 EC AE 8E 2F E2 86 01 90 00 29 [17:48:58]RAPDU: E3 EC AE 8E 2F E2 86 01 90 00 [17:48:58]wFMCommunicate OK [17:48:58]SAM_PROTO_SignData done [17:48:58]FM_MakeSignedData done [17:48:58]CreateOFDProtocolMessage [17:48:58]wFMCommunicate request_size=4 [17:48:58]MH_SAM_APDU [17:48:58]CAPDU: 80 11 00 00 [17:48:58]Write to MH i2c: E2 08 00 F4 17 80 11 00 00 00 00 00 00 85 [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:58]Read from MH i2c: E2 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 17 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: E2 17 00 F4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E5 [17:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:48:58]wFMCommunicate OK [17:48:58]CreateOFDProtocolMessage done [17:48:58]OFDSenderStorePacket 162598 [17:48:58]StoreOFDPacket docnum=162598 [17:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4F 62 07 01 2A 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 2A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B6 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 35 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 0A 01 00 00 F4 03 04 00 09 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7B 02 00 35 04 06 00 61 AF DB 6A 08 9F E3 EC AE 8E 2F E2 86 01 [17:48:58]CheckFolder [17:48:58]dirname=/storage/ofd_packets [17:48:58]CheckFolder done [17:48:58]ProducePacketName [17:48:58]name=ofd_packets/00162598 [17:48:58]NVStorageSaveData ofd_packets/00162598 [17:48:58]File name is /storage/ofd_packets/00162598 [17:48:58]Write 301 bytes [17:48:58]NVStorageSaveData done [17:48:58]OFDSenderStorePacket done [17:48:58]KKMCreateOFDPacket done [17:48:58]NVStorageSaveData kkm_last_timestamp [17:48:58]File name is /storage/kkm_last_timestamp [17:48:58]Write 4 bytes [17:48:58]NVStorageSaveData done [17:48:58]ExternCall_PrintAddStr [17:48:58]wPrintStart [17:48:58]Write to MH i2c: 01 00 00 F5 17 0C [17:48:58]Write i2c OK [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: 01 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: 01 07 00 [17:48:58]MH_I2C_Read... [17:48:58]Read from MH i2c: 01 07 00 F5 17 00 00 00 00 00 FF 0F 21 [17:48:58]RasterBufferAndPrint [17:48:58]line Счет N : (1)1319163 [17:48:58]line ИНН: 02508201610067 [17:48:58]line Контрольно-Кассовый Чек [17:48:58]line ПРОДАЖА [17:48:58]line ТРК (МРК, ГНК) : 34 [17:48:58]line Товар: 2710124500 [17:48:58]line Аи-95-К-5 [17:48:58]line 10.760 * 74.40 [17:48:58]line = 800.54 [17:48:58]line НДС 12% НСП 1% [17:48:58]line > о реализуемом товаре [17:48:58]line ОКРУГЛЕНИЕ: -0.54 [17:48:58]line ИТОГО: 800.00 [17:48:58]line Внесено: 800.00 [17:48:58]line СДАЧА: 0.00 [17:48:58]line НСП 1% : 7.08 [17:48:58]line НДС 12% : 85.01 [17:48:58]line Наличными: 800.00 [17:48:58]line Безнал.: 0.00 [17:48:58]line Место: АЗС № 140 "Партнер Нефть" [17:48:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:48:58]line СНО: Общий режим [17:48:58]line Чек 266 13.07.2024 17:48 [17:48:58]line Смена: 462 ФФД: 1.0 [17:48:58]line ЗНМ: 0300000129 [17:48:58]line РНМ: 0000000000090858 [17:48:58]line Версия ККМ: 001 [17:48:58]line ФМ: 0000000000874899 [17:48:58]line ФД: 162598 [17:48:58]line ФПД: 107407928330399 [17:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T174857&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162598&fm=107407928330399&tin=02508201610067®Number=0000000000090858&sum=80000 [17:48:58]OFD Sender: Processing packet 162598 [packets to send 106, broken 105] [17:48:58]ProducePacketName [17:48:58]name=ofd_packets/00162598 [17:48:58]OFD Sender: To server: pG, [17:48:58]CommunicateWithHost lk.salyk.kg:30040 [17:48:58]ConnectInit lk.salyk.kg [17:48:58]written 0, free lines is 4095 [17:48:58]Connected sock=10 [17:48:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4F 62 07 01 2A 6D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 08 2A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 B6 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 35 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 0A 01 00 00 F4 03 04 00 09 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7B 02 00 35 04 06 00 61 AF DB 6A 08 9F E3 EC AE 8E 2F E2 86 01 [17:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 32 AE 47 00 49 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 26 7B 02 00 F4 03 04 00 18 6A 92 66 B6 04 01 00 00 7A 45 37 B4 81 D1 03 A1 [17:48:59]CommunicateWithHost err = 0 [17:48:59]CheckOFDResponse [17:48:59]1017 (14) - 77093643461234 [17:48:59]1041 (16) - 0000000000874899 [17:48:59]1040 (4) - 162598 [17:48:59]1012 (4) - 13.07.2024 11:50 [17:48:59]1206 (1) - 0 [17:48:59]OFD Sender: Remove packet 162598 [17:48:59]ProducePacketName [17:48:59]name=ofd_packets/00162598 [17:48:59]NVStorageDeleteData [17:48:59]Write to MH i2c: 01 00 00 20 18 38 [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 07 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: 01 07 00 20 18 00 00 00 00 00 F6 0C 41 [17:48:59]RasterBufferAndPrint [17:48:59]line [17:48:59]line [17:48:59]line [17:48:59]line [17:48:59]line [17:48:59]written 0, free lines is 3324 [17:48:59]MH_Cut [17:48:59]Write to MH i2c: D1 01 00 27 18 01 11 [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: D1 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: D1 01 00 [17:48:59]MH_I2C_Read... [17:48:59]Read from MH i2c: D1 01 00 27 18 00 10 [17:48:59]Write to MH i2c: 01 00 00 28 18 40 [17:48:59]Write i2c OK [17:48:59]MH_I2C_Read... [17:48:59]OFD Sender: No OFD packet to send [17:49:00]*** Cut start [17:49:00]*** Purtial cut [17:49:00]*** CUTSNS_PIN = 0 [17:49:00]*** Stage 1: CUTSNS_PIN = 1 [17:49:02]Read from MH i2c: 01 [17:49:02]MH_I2C_Read... [17:49:02]*** Stop cut motor [17:49:02]*** Cut end [17:49:02]Read from MH i2c: 01 07 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: 01 07 00 28 18 00 00 00 00 00 FF 0F 55 [17:49:02]process_action close_receipt done [17:49:02]requested_data is exist [17:49:02]produce_requested_data [17:49:02]requested_item fm.sn is exist - process it [17:49:02]wFMCommunicate request_size=4 [17:49:02]MH_SAM_APDU [17:49:02]CAPDU: 80 11 00 00 [17:49:02]Write to MH i2c: E2 08 00 29 18 80 11 00 00 00 00 00 00 BB [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:49:02]Read from MH i2c: E2 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 17 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 17 00 29 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1B [17:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:49:02]wFMCommunicate OK [17:49:02]requested_item fd.num is exist - process it [17:49:02]SAM_PROTO_GetFieldsCounters [17:49:02]wFMCommunicate request_size=4 [17:49:02]MH_SAM_APDU [17:49:02]CAPDU: 80 13 00 00 [17:49:02]Write to MH i2c: E2 08 00 2A 18 80 13 00 00 00 00 00 00 BE [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:49:02]Read from MH i2c: E2 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 62 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 62 00 2A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 26 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [17:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 26 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:49:02]wFMCommunicate OK [17:49:02]SAM_PROTO_GetFieldsCounters done [17:49:02]requested_item shift.num is exist - process it [17:49:02]requested_item shift.opened is exist - process it [17:49:02]req_shift_opened [17:49:02]FM_GetShiftState [17:49:02]SAM_PROTO_GetShiftState [17:49:02]wFMCommunicate request_size=4 [17:49:02]MH_SAM_APDU [17:49:02]CAPDU: 80 13 01 00 [17:49:02]Write to MH i2c: E2 08 00 2B 18 80 13 01 00 00 00 00 00 C0 [17:49:02]Write i2c OK [17:49:02]MH_I2C_Read... [17:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:49:02]Read from MH i2c: E2 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 0E 00 [17:49:02]MH_I2C_Read... [17:49:02]Read from MH i2c: E2 0E 00 2B 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BA [17:49:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:49:02]wFMCommunicate OK [17:49:02]SAM_PROTO_GetShiftState done [17:49:02]FM_GetShiftState done [17:49:02]req_shift_opened done [17:49:02]requested_item shift.open_date is exist - process it [17:49:02]req_shift_open_date [17:49:02]req_shift_open_date done [17:49:02]produce_requested_data done [17:49:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162598,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:49:02]process_action_free close_receipt [17:49:02]json_value_free [17:49:02]json_value_free done [17:49:02]process_json_proto returns [17:49:02]Send response to host [17:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162598,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:49:02]free response buf [17:49:02]execute_script done [17:49:02]execute_script returns [17:49:02]free content buf [17:49:02]Sock 7.Close socket [17:49:02]Sock 7.Thread stoped [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:50]accept exits with 9 [17:51:50]New connection [17:51:50]New thread 3067366756 created [17:51:50]Thread 3067510116 joined [17:51:50]Waiting for new connection... [17:51:50] Sock 9.Parse request [17:51:50]Sock 9.Check first char [17:51:50]Sock 9.First char is OK [17:51:50]request: POST /json_proto HTTP/1.0 [17:51:50]Method: POST [17:51:50]URL: /json_proto [17:51:50]Method is POST - this is cgi request [17:51:50]url: /json_proto [17:51:50]query_string will be loaded in cgi processing [17:51:50]execute_cgi json_proto POST (null) [17:51:50]execute_cgi path=json_proto method=POST [17:51:50]POST find Content-Length [17:51:50]Host: 172.17.39.67:8080 [17:51:50]Content-Length: 688 [17:51:50]Content-Type: application/json [17:51:50] [17:51:50]POST finish read [17:51:50]Found Content-Length = 688 [17:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:50]execute_script... [17:51:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 34.440, "sum" : 2500.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:50]POST & json_proto [17:51:50]process_json_proto [17:51:50]json parsed OK: [17:51:50]protocol is kg_v1.0 [17:51:50]action value=close_receipt [17:51:50]process_action close_receipt [17:51:50]cmd_close_receipt [17:51:50]MH_GetDate [17:51:50]Write to MH i2c: F0 00 00 2C 18 33 [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 09 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 09 00 2C 18 00 B7 BE 92 66 86 7C 92 66 A3 [17:51:50]GetLastDocTimeStamp 1720892937 [17:51:50]current date 1720893111 [17:51:50]FM_GetShiftState [17:51:50]SAM_PROTO_GetShiftState [17:51:50]wFMCommunicate request_size=4 [17:51:50]MH_SAM_APDU [17:51:50]CAPDU: 80 13 01 00 [17:51:50]Write to MH i2c: E2 08 00 2D 18 80 13 01 00 00 00 00 00 C2 [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 0E 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 0E 00 2D 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BC [17:51:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:51:50]wFMCommunicate OK [17:51:50]SAM_PROTO_GetShiftState done [17:51:50]FM_GetShiftState done [17:51:50]opened in 1720828979 [17:51:50]opened+sec_in_day 1720915379 [17:51:50]quantity*price = 250034 [17:51:50]sum+1 = 250035 [17:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.52 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 267 13.07.2024 17:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162599 ФПД: 158028409619471 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175151&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162599&fm=158028409619471&tin=02508201610067®Number=0000000000090858&sum=250000 [17:51:51]StoreToDocumentArchive [17:51:51]shift 462 fd 162599 [17:51:51]save to /storage/0462/doc_00162599 [17:51:51]save last doc name /storage/0462/doc_00162599 to /storage/kkm_last_doc_name [17:51:51]save OK [17:51:51]Clear old archive folders... [17:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:51:51]tlvbuf is 00611A70 [17:51:51]SAM_PROTO_ClearQueue [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 09 00 00 [17:51:51]Write to MH i2c: E2 08 00 3A 18 80 09 00 00 00 00 00 00 C4 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 3A 18 00 90 00 C6 [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]SAM_PROTO_ClearQueue done [17:51:51]KKMCreateOFDPacket [17:51:51]OFDProtocolAddRootSTLVToBuf [17:51:51]FM_MakeSignedData [17:51:51]FM_MakeSignedData [17:51:51]SAM_PROTO_SignData [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 01 02 [17:51:51]Write to MH i2c: E2 08 00 3B 18 80 0D 01 02 00 00 00 00 CC [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 3B 18 00 90 00 C7 [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]wFMCommunicate request_size=255 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B7 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7B 02 00 35 04 06 00 [17:51:51]Write to MH i2c: E2 02 01 3C 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B7 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7B 02 00 35 04 06 00 00 00 AC [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 3C 18 00 90 00 C8 [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]wFMCommunicate request_size=11 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 02 02 06 8F B9 DB 38 44 0F [17:51:51]Write to MH i2c: E2 0E 00 3D 18 80 0D 02 02 06 00 8F B9 DB 38 44 0F 00 00 89 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 3D 18 00 90 00 C9 [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 03 02 [17:51:51]Write to MH i2c: E2 08 00 3E 18 80 0D 03 02 00 00 00 00 D1 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 0B 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 0B 00 3E 18 00 5E E6 35 F2 83 0F 8D 07 90 00 63 [17:51:51]RAPDU: 5E E6 35 F2 83 0F 8D 07 90 00 [17:51:51]wFMCommunicate OK [17:51:51]SAM_PROTO_SignData done [17:51:51]FM_MakeSignedData done [17:51:51]CreateOFDProtocolMessage [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 11 00 00 [17:51:51]Write to MH i2c: E2 08 00 3F 18 80 11 00 00 00 00 00 00 D1 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 17 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 17 00 3F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 31 [17:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:51:51]wFMCommunicate OK [17:51:51]CreateOFDProtocolMessage done [17:51:51]OFDSenderStorePacket 162599 [17:51:51]StoreOFDPacket docnum=162599 [17:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 93 EF 08 01 2B 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B7 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7B 02 00 35 04 06 00 8F B9 DB 38 44 0F 5E E6 35 F2 83 0F 8D 07 [17:51:51]CheckFolder [17:51:51]dirname=/storage/ofd_packets [17:51:51]CheckFolder done [17:51:51]ProducePacketName [17:51:51]name=ofd_packets/00162599 [17:51:51]NVStorageSaveData ofd_packets/00162599 [17:51:51]File name is /storage/ofd_packets/00162599 [17:51:51]Write 302 bytes [17:51:51]NVStorageSaveData done [17:51:51]OFDSenderStorePacket done [17:51:51]KKMCreateOFDPacket done [17:51:51]NVStorageSaveData kkm_last_timestamp [17:51:51]File name is /storage/kkm_last_timestamp [17:51:51]Write 4 bytes [17:51:51]NVStorageSaveData done [17:51:51]ExternCall_PrintAddStr [17:51:51]wPrintStart [17:51:51]Write to MH i2c: 01 00 00 40 18 58 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 07 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 07 00 40 18 00 00 00 00 00 FF 0F 6D [17:51:51]RasterBufferAndPrint [17:51:51]line Счет N : (1)1319164 [17:51:51]line ИНН: 02508201610067 [17:51:51]line Контрольно-Кассовый Чек [17:51:51]line ПРОДАЖА [17:51:51]line ТРК (МРК, ГНК) : 61 [17:51:51]line Товар: 2710194210 [17:51:51]line ДТ(л)-К-5 [17:51:51]line 34.440 * 72.60 [17:51:51]line = 2500.34 [17:51:51]line НДС 12% НСП 1% [17:51:51]line > о реализуемом товаре [17:51:51]line ОКРУГЛЕНИЕ: -0.34 [17:51:51]line ИТОГО: 2500.00 [17:51:51]line Внесено: 2500.00 [17:51:51]line СДАЧА: 0.00 [17:51:51]line НСП 1% : 22.13 [17:51:51]line НДС 12% : 265.52 [17:51:51]line Наличными: 2500.00 [17:51:51]line Безнал.: 0.00 [17:51:51]line Место: АЗС № 140 "Партнер Нефть" [17:51:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:51:51]line СНО: Общий режим [17:51:51]line Чек 267 13.07.2024 17:51 [17:51:51]line Смена: 462 ФФД: 1.0 [17:51:51]line ЗНМ: 0300000129 [17:51:51]line РНМ: 0000000000090858 [17:51:51]line Версия ККМ: 001 [17:51:51]line ФМ: 0000000000874899 [17:51:51]line ФД: 162599 [17:51:51]line ФПД: 158028409619471 [17:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175151&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162599&fm=158028409619471&tin=02508201610067®Number=0000000000090858&sum=250000 [17:51:52]OFD Sender: Processing packet 162599 [packets to send 106, broken 105] [17:51:52]ProducePacketName [17:51:52]name=ofd_packets/00162599 [17:51:52]OFD Sender: To server: pG, [17:51:52]CommunicateWithHost lk.salyk.kg:30040 [17:51:52]ConnectInit lk.salyk.kg [17:51:52]written 0, free lines is 4095 [17:51:52]Connected sock=11 [17:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 93 EF 08 01 2B 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 88 86 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B2 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 B7 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7B 02 00 35 04 06 00 8F B9 DB 38 44 0F 5E E6 35 F2 83 0F 8D 07 [17:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 01 25 47 00 56 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 27 7B 02 00 F4 03 04 00 C5 6A 92 66 B6 04 01 00 00 7D E6 6E C3 EB 0D A5 B9 [17:51:52]CommunicateWithHost err = 0 [17:51:52]CheckOFDResponse [17:51:52]1017 (14) - 77093643461234 [17:51:52]1041 (16) - 0000000000874899 [17:51:52]1040 (4) - 162599 [17:51:52]1012 (4) - 13.07.2024 11:53 [17:51:52]1206 (1) - 0 [17:51:52]OFD Sender: Remove packet 162599 [17:51:52]ProducePacketName [17:51:52]name=ofd_packets/00162599 [17:51:52]NVStorageDeleteData [17:51:52]Write to MH i2c: 01 00 00 6B 18 83 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 6B 18 00 00 00 00 00 EF 0C 85 [17:51:52]RasterBufferAndPrint [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]written 0, free lines is 3317 [17:51:52]MH_Cut [17:51:52]Write to MH i2c: D1 01 00 72 18 01 5C [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 01 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 01 00 72 18 00 5B [17:51:52]Write to MH i2c: 01 00 00 73 18 8B [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]OFD Sender: No OFD packet to send [17:51:53]*** Cut start [17:51:53]*** Purtial cut [17:51:53]*** Stage 1: CUTSNS_PIN = 1 [17:51:53]Read from MH i2c: 01 [17:51:53]MH_I2C_Read... [17:51:53]*** Stop cut motor [17:51:53]*** Cut end [17:51:53]Read from MH i2c: 01 07 00 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: 01 07 00 73 18 00 00 00 00 00 FF 0F A0 [17:51:53]process_action close_receipt done [17:51:53]requested_data is exist [17:51:53]produce_requested_data [17:51:53]requested_item fm.sn is exist - process it [17:51:53]wFMCommunicate request_size=4 [17:51:53]MH_SAM_APDU [17:51:53]CAPDU: 80 11 00 00 [17:51:53]Write to MH i2c: E2 08 00 74 18 80 11 00 00 00 00 00 00 06 [17:51:53]Write i2c OK [17:51:53]MH_I2C_Read... [17:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:53]Read from MH i2c: E2 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 17 00 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 17 00 74 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 66 [17:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:51:53]wFMCommunicate OK [17:51:53]requested_item fd.num is exist - process it [17:51:53]SAM_PROTO_GetFieldsCounters [17:51:53]wFMCommunicate request_size=4 [17:51:53]MH_SAM_APDU [17:51:53]CAPDU: 80 13 00 00 [17:51:53]Write to MH i2c: E2 08 00 75 18 80 13 00 00 00 00 00 00 09 [17:51:53]Write i2c OK [17:51:53]MH_I2C_Read... [17:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:53]Read from MH i2c: E2 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 62 00 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 62 00 75 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 27 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [17:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 27 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:53]wFMCommunicate OK [17:51:53]SAM_PROTO_GetFieldsCounters done [17:51:53]requested_item shift.num is exist - process it [17:51:53]requested_item shift.opened is exist - process it [17:51:53]req_shift_opened [17:51:53]FM_GetShiftState [17:51:53]SAM_PROTO_GetShiftState [17:51:53]wFMCommunicate request_size=4 [17:51:53]MH_SAM_APDU [17:51:53]CAPDU: 80 13 01 00 [17:51:53]Write to MH i2c: E2 08 00 76 18 80 13 01 00 00 00 00 00 0B [17:51:53]Write i2c OK [17:51:53]MH_I2C_Read... [17:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:53]Read from MH i2c: E2 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 0E 00 [17:51:53]MH_I2C_Read... [17:51:53]Read from MH i2c: E2 0E 00 76 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 05 [17:51:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:51:53]wFMCommunicate OK [17:51:53]SAM_PROTO_GetShiftState done [17:51:53]FM_GetShiftState done [17:51:53]req_shift_opened done [17:51:53]requested_item shift.open_date is exist - process it [17:51:53]req_shift_open_date [17:51:53]req_shift_open_date done [17:51:53]produce_requested_data done [17:51:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162599,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:51:53]process_action_free close_receipt [17:51:53]json_value_free [17:51:53]json_value_free done [17:51:53]process_json_proto returns [17:51:53]Send response to host [17:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162599,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:51:53]free response buf [17:51:53]execute_script done [17:51:53]execute_script returns [17:51:53]free content buf [17:51:53]Sock 9.Close socket [17:51:53]Sock 9.Thread stoped [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:54]accept exits with 7 [17:52:54]New connection [17:52:54]New thread 3067510116 created [17:52:54]Thread 3067366756 joined [17:52:54]Waiting for new connection... [17:52:54] Sock 7.Parse request [17:52:54]Sock 7.Check first char [17:52:54]Sock 7.First char is OK [17:52:54]request: POST /json_proto HTTP/1.0 [17:52:54]Method: POST [17:52:54]URL: /json_proto [17:52:54]Method is POST - this is cgi request [17:52:54]url: /json_proto [17:52:54]query_string will be loaded in cgi processing [17:52:54]execute_cgi json_proto POST (null) [17:52:54]execute_cgi path=json_proto method=POST [17:52:54]POST find Content-Length [17:52:54]Host: 172.17.39.67:8080 [17:52:54]Content-Length: 634 [17:52:54]Content-Type: application/json [17:52:54] [17:52:54]POST finish read [17:52:54]Found Content-Length = 634 [17:52:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 12.630, "sum" : 850.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:54]execute_script... [17:52: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)1319165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 12.630, "sum" : 850.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:52:54]POST & json_proto [17:52:54]process_json_proto [17:52:54]json parsed OK: [17:52:54]protocol is kg_v1.0 [17:52:54]action value=close_receipt [17:52:54]process_action close_receipt [17:52:54]cmd_close_receipt [17:52:54]MH_GetDate [17:52:54]Write to MH i2c: F0 00 00 77 18 7E [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: F0 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: F0 09 00 [17:52:54]MH_I2C_Read... [17:52:54]Read from MH i2c: F0 09 00 77 18 00 F8 BE 92 66 86 7C 92 66 2F [17:52:54]GetLastDocTimeStamp 1720893111 [17:52:54]current date 1720893176 [17:52:54]FM_GetShiftState [17:52:54]SAM_PROTO_GetShiftState [17:52:54]wFMCommunicate request_size=4 [17:52:54]MH_SAM_APDU [17:52:54]CAPDU: 80 13 01 00 [17:52:54]Write to MH i2c: E2 08 00 78 18 80 13 01 00 00 00 00 00 0D [17:52:54]Write i2c OK [17:52:54]MH_I2C_Read... [17:52:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:55]Read from MH i2c: E2 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 0E 00 [17:52:55]MH_I2C_Read... [17:52:55]Read from MH i2c: E2 0E 00 78 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 07 [17:52:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:52:55]wFMCommunicate OK [17:52:55]SAM_PROTO_GetShiftState done [17:52:55]FM_GetShiftState done [17:52:55]opened in 1720828979 [17:52:55]opened+sec_in_day 1720915379 [17:52:55]quantity*price = 84999 [17:52:55]sum+1 = 85001 [17:52:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 850.00 НСП 1% : 7.52 НДС 12% : 90.26 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 268 13.07.2024 17:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162600 ФПД: 229839826425174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175256&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162600&fm=229839826425174&tin=02508201610067®Number=0000000000090858&sum=85000 [17:52:56]StoreToDocumentArchive [17:52:56]shift 462 fd 162600 [17:52:56]save to /storage/0462/doc_00162600 [17:52:56]save last doc name /storage/0462/doc_00162600 to /storage/kkm_last_doc_name [17:52:56]save OK [17:52:56]Clear old archive folders... [17:52:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:52:56]tlvbuf is B6F49A60 [17:52:56]SAM_PROTO_ClearQueue [17:52:56]wFMCommunicate request_size=4 [17:52:56]MH_SAM_APDU [17:52:56]CAPDU: 80 09 00 00 [17:52:56]Write to MH i2c: E2 08 00 85 18 80 09 00 00 00 00 00 00 0F [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:56]Read from MH i2c: E2 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 03 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 03 00 85 18 00 90 00 11 [17:52:56]RAPDU: 90 00 [17:52:56]wFMCommunicate OK [17:52:56]SAM_PROTO_ClearQueue done [17:52:56]KKMCreateOFDPacket [17:52:56]OFDProtocolAddRootSTLVToBuf [17:52:56]FM_MakeSignedData [17:52:56]FM_MakeSignedData [17:52:56]SAM_PROTO_SignData [17:52:56]wFMCommunicate request_size=4 [17:52:56]MH_SAM_APDU [17:52:56]CAPDU: 80 0D 01 02 [17:52:56]Write to MH i2c: E2 08 00 86 18 80 0D 01 02 00 00 00 00 17 [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:56]Read from MH i2c: E2 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 03 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 03 00 86 18 00 90 00 12 [17:52:56]RAPDU: 90 00 [17:52:56]wFMCommunicate OK [17:52:56]wFMCommunicate request_size=255 [17:52:56]MH_SAM_APDU [17:52:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 31 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 08 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 42 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 0C 01 00 00 F4 03 04 00 F8 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7B 02 00 35 04 06 00 [17:52:56]Write to MH i2c: E2 02 01 87 18 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 31 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 08 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 42 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 0C 01 00 00 F4 03 04 00 F8 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7B 02 00 35 04 06 00 00 00 CD [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:56]Read from MH i2c: E2 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 03 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 03 00 87 18 00 90 00 13 [17:52:56]RAPDU: 90 00 [17:52:56]wFMCommunicate OK [17:52:56]wFMCommunicate request_size=11 [17:52:56]MH_SAM_APDU [17:52:56]CAPDU: 80 0D 02 02 06 D1 09 C1 35 95 56 [17:52:56]Write to MH i2c: E2 0E 00 88 18 80 0D 02 02 06 00 D1 09 C1 35 95 56 00 00 E1 [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:56]Read from MH i2c: E2 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 03 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 03 00 88 18 00 90 00 14 [17:52:56]RAPDU: 90 00 [17:52:56]wFMCommunicate OK [17:52:56]wFMCommunicate request_size=4 [17:52:56]MH_SAM_APDU [17:52:56]CAPDU: 80 0D 03 02 [17:52:56]Write to MH i2c: E2 08 00 89 18 80 0D 03 02 00 00 00 00 1C [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:56]Read from MH i2c: E2 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 0B 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 0B 00 89 18 00 75 33 72 18 15 1B 65 86 90 00 6A [17:52:56]RAPDU: 75 33 72 18 15 1B 65 86 90 00 [17:52:56]wFMCommunicate OK [17:52:56]SAM_PROTO_SignData done [17:52:56]FM_MakeSignedData done [17:52:56]CreateOFDProtocolMessage [17:52:56]wFMCommunicate request_size=4 [17:52:56]MH_SAM_APDU [17:52:56]CAPDU: 80 11 00 00 [17:52:56]Write to MH i2c: E2 08 00 8A 18 80 11 00 00 00 00 00 00 1C [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:56]Read from MH i2c: E2 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 17 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: E2 17 00 8A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7C [17:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:52:56]wFMCommunicate OK [17:52:56]CreateOFDProtocolMessage done [17:52:56]OFDSenderStorePacket 162600 [17:52:56]StoreOFDPacket docnum=162600 [17:52:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A3 8F 08 01 C8 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 31 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 08 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 42 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 0C 01 00 00 F4 03 04 00 F8 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7B 02 00 35 04 06 00 D1 09 C1 35 95 56 75 33 72 18 15 1B 65 86 [17:52:56]CheckFolder [17:52:56]dirname=/storage/ofd_packets [17:52:56]CheckFolder done [17:52:56]ProducePacketName [17:52:56]name=ofd_packets/00162600 [17:52:56]NVStorageSaveData ofd_packets/00162600 [17:52:56]File name is /storage/ofd_packets/00162600 [17:52:56]Write 302 bytes [17:52:56]NVStorageSaveData done [17:52:56]OFDSenderStorePacket done [17:52:56]KKMCreateOFDPacket done [17:52:56]NVStorageSaveData kkm_last_timestamp [17:52:56]File name is /storage/kkm_last_timestamp [17:52:56]Write 4 bytes [17:52:56]NVStorageSaveData done [17:52:56]OFD Sender: Processing packet 162600 [packets to send 106, broken 105] [17:52:56]ProducePacketName [17:52:56]name=ofd_packets/00162600 [17:52:56]OFD Sender: To server: pG, [17:52:56]CommunicateWithHost lk.salyk.kg:30040 [17:52:56]ConnectInit lk.salyk.kg [17:52:56]ExternCall_PrintAddStr [17:52:56]wPrintStart [17:52:56]Write to MH i2c: 01 00 00 8B 18 A3 [17:52:56]Write i2c OK [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: 01 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: 01 07 00 [17:52:56]MH_I2C_Read... [17:52:56]Read from MH i2c: 01 07 00 8B 18 00 00 00 00 00 FF 0F B8 [17:52:56]RasterBufferAndPrint [17:52:56]line Счет N : (1)1319165 [17:52:56]line ИНН: 02508201610067 [17:52:56]line Контрольно-Кассовый Чек [17:52:56]line ПРОДАЖА [17:52:56]line ТРК (МРК, ГНК) : 52 [17:52:56]line Товар: 2710124130 [17:52:56]line Super-92-К-5 [17:52:56]line 12.630 * 67.30 [17:52:56]line = 850.00 [17:52:56]line НДС 12% НСП 1% [17:52:56]line > о реализуемом товаре [17:52:56]line ИТОГО: 850.00 [17:52:56]line НСП 1% : 7.52 [17:52:56]line НДС 12% : 90.26 [17:52:56]line Наличными: 850.00 [17:52:56]line Безнал.: 0.00 [17:52:56]line Место: АЗС № 140 "Партнер Нефть" [17:52:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:52:56]line СНО: Общий режим [17:52:56]line Чек 268 13.07.2024 17:52 [17:52:56]line Смена: 462 ФФД: 1.0 [17:52:56]line ЗНМ: 0300000129 [17:52:56]line РНМ: 0000000000090858 [17:52:56]line Версия ККМ: 001 [17:52:56]line ФМ: 0000000000874899 [17:52:56]line ФД: 162600 [17:52:56]line ФПД: 229839826425174 [17:52:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175256&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162600&fm=229839826425174&tin=02508201610067®Number=0000000000090858&sum=85000 [17:52:57]Connected sock=11 [17:52:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A3 8F 08 01 C8 34 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 31 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 08 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 42 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 0C 01 00 00 F4 03 04 00 F8 BE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7B 02 00 35 04 06 00 D1 09 C1 35 95 56 75 33 72 18 15 1B 65 86 [17:52:57]written 0, free lines is 4095 [17:52:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FC E2 47 00 CC 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 28 7B 02 00 F4 03 04 00 06 6B 92 66 B6 04 01 00 00 55 CB 9E 8D F4 BA 0B 48 [17:52:57]CommunicateWithHost err = 0 [17:52:57]CheckOFDResponse [17:52:57]1017 (14) - 77093643461234 [17:52:57]1041 (16) - 0000000000874899 [17:52:57]1040 (4) - 162600 [17:52:57]1012 (4) - 13.07.2024 11:54 [17:52:57]1206 (1) - 0 [17:52:57]OFD Sender: Remove packet 162600 [17:52:57]ProducePacketName [17:52:57]name=ofd_packets/00162600 [17:52:57]NVStorageDeleteData [17:52:57]Write to MH i2c: 01 00 00 B3 18 CB [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: 01 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: 01 07 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 14 0D F3 [17:52:57]RasterBufferAndPrint [17:52:57]line [17:52:57]line [17:52:57]line [17:52:57]line [17:52:57]line [17:52:57]written 0, free lines is 3354 [17:52:57]MH_Cut [17:52:57]Write to MH i2c: D1 01 00 BA 18 01 A4 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: D1 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: D1 01 00 [17:52:57]MH_I2C_Read... [17:52:57]Read from MH i2c: D1 01 00 BA 18 00 A3 [17:52:57]Write to MH i2c: 01 00 00 BB 18 D3 [17:52:57]Write i2c OK [17:52:57]MH_I2C_Read... [17:52:57]OFD Sender: No OFD packet to send [17:52:58]*** Cut start [17:52:58]*** Purtial cut [17:52:58]*** CUTSNS_PIN = 0 [17:52:58]*** Stage 1: CUTSNS_PIN = 1 [17:53:00]Read from MH i2c: 01 [17:53:00]MH_I2C_Read... [17:53:00]*** Stop cut motor [17:53:00]*** Cut end [17:53:00]Read from MH i2c: 01 07 00 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 FF 0F E8 [17:53:00]process_action close_receipt done [17:53:00]requested_data is exist [17:53:00]produce_requested_data [17:53:00]requested_item fm.sn is exist - process it [17:53:00]wFMCommunicate request_size=4 [17:53:00]MH_SAM_APDU [17:53:00]CAPDU: 80 11 00 00 [17:53:00]Write to MH i2c: E2 08 00 BC 18 80 11 00 00 00 00 00 00 4E [17:53:00]Write i2c OK [17:53:00]MH_I2C_Read... [17:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:00]Read from MH i2c: E2 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 17 00 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 17 00 BC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AE [17:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:53:00]wFMCommunicate OK [17:53:00]requested_item fd.num is exist - process it [17:53:00]SAM_PROTO_GetFieldsCounters [17:53:00]wFMCommunicate request_size=4 [17:53:00]MH_SAM_APDU [17:53:00]CAPDU: 80 13 00 00 [17:53:00]Write to MH i2c: E2 08 00 BD 18 80 13 00 00 00 00 00 00 51 [17:53:00]Write i2c OK [17:53:00]MH_I2C_Read... [17:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:00]Read from MH i2c: E2 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 62 00 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 62 00 BD 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 28 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [17:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 28 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:00]wFMCommunicate OK [17:53:00]SAM_PROTO_GetFieldsCounters done [17:53:00]requested_item shift.num is exist - process it [17:53:00]requested_item shift.opened is exist - process it [17:53:00]req_shift_opened [17:53:00]FM_GetShiftState [17:53:00]SAM_PROTO_GetShiftState [17:53:00]wFMCommunicate request_size=4 [17:53:00]MH_SAM_APDU [17:53:00]CAPDU: 80 13 01 00 [17:53:00]Write to MH i2c: E2 08 00 BE 18 80 13 01 00 00 00 00 00 53 [17:53:00]Write i2c OK [17:53:00]MH_I2C_Read... [17:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:00]Read from MH i2c: E2 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 0E 00 [17:53:00]MH_I2C_Read... [17:53:00]Read from MH i2c: E2 0E 00 BE 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4D [17:53:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:53:00]wFMCommunicate OK [17:53:00]SAM_PROTO_GetShiftState done [17:53:00]FM_GetShiftState done [17:53:00]req_shift_opened done [17:53:00]requested_item shift.open_date is exist - process it [17:53:00]req_shift_open_date [17:53:00]req_shift_open_date done [17:53:00]produce_requested_data done [17:53:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162600,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:53:00]process_action_free close_receipt [17:53:00]json_value_free [17:53:00]json_value_free done [17:53:00]process_json_proto returns [17:53:00]Send response to host [17:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162600,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:53:00]free response buf [17:53:00]execute_script done [17:53:00]execute_script returns [17:53:00]free content buf [17:53:00]Sock 7.Close socket [17:53:00]Sock 7.Thread stoped [17:53:02]OFD Sender: No OFD packet to send [17:53:03]accept exits with 9 [17:53:03]New connection [17:53:03]New thread 3067366756 created [17:53:03]Thread 3067510116 joined [17:53:03]Waiting for new connection... [17:53:03] Sock 9.Parse request [17:53:03]Sock 9.Check first char [17:53:03]Sock 9.First char is OK [17:53:03]request: POST /json_proto HTTP/1.0 [17:53:03]Method: POST [17:53:03]URL: /json_proto [17:53:03]Method is POST - this is cgi request [17:53:03]url: /json_proto [17:53:03]query_string will be loaded in cgi processing [17:53:03]execute_cgi json_proto POST (null) [17:53:03]execute_cgi path=json_proto method=POST [17:53:03]POST find Content-Length [17:53:03]Host: 172.17.39.67:8080 [17:53:03]Content-Length: 678 [17:53:03]Content-Type: application/json [17:53:03] [17:53:03]POST finish read [17:53:03]Found Content-Length = 678 [17:53:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:03]execute_script... [17:53:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:53:03]POST & json_proto [17:53:03]process_json_proto [17:53:03]json parsed OK: [17:53:03]protocol is kg_v1.0 [17:53:03]action value=close_receipt [17:53:03]process_action close_receipt [17:53:03]cmd_close_receipt [17:53:03]MH_GetDate [17:53:03]Write to MH i2c: F0 00 00 BF 18 C6 [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: F0 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: F0 09 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: F0 09 00 BF 18 00 00 BF 92 66 86 7C 92 66 80 [17:53:03]GetLastDocTimeStamp 1720893176 [17:53:03]current date 1720893184 [17:53:03]FM_GetShiftState [17:53:03]SAM_PROTO_GetShiftState [17:53:03]wFMCommunicate request_size=4 [17:53:03]MH_SAM_APDU [17:53:03]CAPDU: 80 13 01 00 [17:53:03]Write to MH i2c: E2 08 00 C0 18 80 13 01 00 00 00 00 00 55 [17:53:03]Write i2c OK [17:53:03]MH_I2C_Read... [17:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:03]Read from MH i2c: E2 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 0E 00 [17:53:03]MH_I2C_Read... [17:53:03]Read from MH i2c: E2 0E 00 C0 18 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4F [17:53:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:53:03]wFMCommunicate OK [17:53:03]SAM_PROTO_GetShiftState done [17:53:03]FM_GetShiftState done [17:53:03]opened in 1720828979 [17:53:03]opened+sec_in_day 1720915379 [17:53:03]quantity*price = 50071 [17:53:03]sum+1 = 50072 [17:53:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 269 13.07.2024 17:53 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162601 ФПД: 45235058920514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175304&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162601&fm=45235058920514&tin=02508201610067®Number=0000000000090858&sum=50000 [17:53:04]StoreToDocumentArchive [17:53:04]shift 462 fd 162601 [17:53:04]save to /storage/0462/doc_00162601 [17:53:04]save last doc name /storage/0462/doc_00162601 to /storage/kkm_last_doc_name [17:53:04]save OK [17:53:04]Clear old archive folders... [17:53:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:04]tlvbuf is 00604FA0 [17:53:04]SAM_PROTO_ClearQueue [17:53:04]wFMCommunicate request_size=4 [17:53:04]MH_SAM_APDU [17:53:04]CAPDU: 80 09 00 00 [17:53:04]Write to MH i2c: E2 08 00 CD 18 80 09 00 00 00 00 00 00 57 [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:04]Read from MH i2c: E2 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 03 00 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 03 00 CD 18 00 90 00 59 [17:53:04]RAPDU: 90 00 [17:53:04]wFMCommunicate OK [17:53:04]SAM_PROTO_ClearQueue done [17:53:04]KKMCreateOFDPacket [17:53:04]OFDProtocolAddRootSTLVToBuf [17:53:04]FM_MakeSignedData [17:53:04]FM_MakeSignedData [17:53:04]SAM_PROTO_SignData [17:53:04]wFMCommunicate request_size=4 [17:53:04]MH_SAM_APDU [17:53:04]CAPDU: 80 0D 01 02 [17:53:04]Write to MH i2c: E2 08 00 CE 18 80 0D 01 02 00 00 00 00 5F [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:04]Read from MH i2c: E2 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 03 00 [17:53:04]MH_I2C_Read... [17:53:04]Read from MH i2c: E2 03 00 CE 18 00 90 00 5A [17:53:04]RAPDU: 90 00 [17:53:04]wFMCommunicate OK [17:53:04]wFMCommunicate request_size=255 [17:53:04]MH_SAM_APDU [17:53:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 00 BF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7B 02 00 35 04 06 00 29 [17:53:04]Write to MH i2c: E2 02 01 CF 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 00 BF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7B 02 00 35 04 06 00 29 00 00 88 [17:53:04]Write i2c OK [17:53:04]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [17:53:05]RAPDU: 90 00 [17:53:05]wFMCommunicate OK [17:53:05]wFMCommunicate request_size=10 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 0D 02 02 05 24 1B 9E 4C 42 [17:53:05]Write to MH i2c: E2 0D 00 D0 18 80 0D 02 02 05 00 24 1B 9E 4C 42 00 00 D7 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [17:53:05]RAPDU: 90 00 [17:53:05]wFMCommunicate OK [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 0D 03 02 [17:53:05]Write to MH i2c: E2 08 00 D1 18 80 0D 03 02 00 00 00 00 64 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 0B 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 0B 00 D1 18 00 E9 4D 17 3E 2F FE EF 70 90 00 7C [17:53:05]RAPDU: E9 4D 17 3E 2F FE EF 70 90 00 [17:53:05]wFMCommunicate OK [17:53:05]SAM_PROTO_SignData done [17:53:05]FM_MakeSignedData done [17:53:05]CreateOFDProtocolMessage [17:53:05]wFMCommunicate request_size=4 [17:53:05]MH_SAM_APDU [17:53:05]CAPDU: 80 11 00 00 [17:53:05]Write to MH i2c: E2 08 00 D2 18 80 11 00 00 00 00 00 00 64 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:05]Read from MH i2c: E2 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 17 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: E2 17 00 D2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C4 [17:53:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:53:05]wFMCommunicate OK [17:53:05]CreateOFDProtocolMessage done [17:53:05]OFDSenderStorePacket 162601 [17:53:05]StoreOFDPacket docnum=162601 [17:53:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 AB 02 07 01 FD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 00 BF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7B 02 00 35 04 06 00 29 24 1B 9E 4C 42 E9 4D 17 3E 2F FE EF 70 [17:53:05]CheckFolder [17:53:05]dirname=/storage/ofd_packets [17:53:05]CheckFolder done [17:53:05]ProducePacketName [17:53:05]name=ofd_packets/00162601 [17:53:05]NVStorageSaveData ofd_packets/00162601 [17:53:05]File name is /storage/ofd_packets/00162601 [17:53:05]Write 301 bytes [17:53:05]NVStorageSaveData done [17:53:05]OFDSenderStorePacket done [17:53:05]KKMCreateOFDPacket done [17:53:05]NVStorageSaveData kkm_last_timestamp [17:53:05]File name is /storage/kkm_last_timestamp [17:53:05]Write 4 bytes [17:53:05]NVStorageSaveData done [17:53:05]ExternCall_PrintAddStr [17:53:05]wPrintStart [17:53:05]Write to MH i2c: 01 00 00 D3 18 EB [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 07 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 07 00 D3 18 00 00 00 00 00 FF 0F 00 [17:53:05]RasterBufferAndPrint [17:53:05]line Счет N : (1)1319166 [17:53:05]line ИНН: 02508201610067 [17:53:05]line Контрольно-Кассовый Чек [17:53:05]line ПРОДАЖА [17:53:05]line ТРК (МРК, ГНК) : 44 [17:53:05]line Товар: 2710124500 [17:53:05]line Аи-95-К-5 [17:53:05]line 6.730 * 74.40 [17:53:05]line = 500.71 [17:53:05]line НДС 12% НСП 1% [17:53:05]line > о реализуемом товаре [17:53:05]line ОКРУГЛЕНИЕ: -0.71 [17:53:05]line ИТОГО: 500.00 [17:53:05]line Внесено: 500.00 [17:53:05]line СДАЧА: 0.00 [17:53:05]line НСП 1% : 4.43 [17:53:05]line НДС 12% : 53.17 [17:53:05]line Наличными: 500.00 [17:53:05]line Безнал.: 0.00 [17:53:05]line Место: АЗС № 140 "Партнер Нефть" [17:53:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:53:05]line СНО: Общий режим [17:53:05]line Чек 269 13.07.2024 17:53 [17:53:05]line Смена: 462 ФФД: 1.0 [17:53:05]line ЗНМ: 0300000129 [17:53:05]line РНМ: 0000000000090858 [17:53:05]line Версия ККМ: 001 [17:53:05]line ФМ: 0000000000874899 [17:53:05]line ФД: 162601 [17:53:05]line ФПД: 45235058920514 [17:53:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175304&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162601&fm=45235058920514&tin=02508201610067®Number=0000000000090858&sum=50000 [17:53:05]OFD Sender: Processing packet 162601 [packets to send 106, broken 105] [17:53:05]ProducePacketName [17:53:05]name=ofd_packets/00162601 [17:53:05]OFD Sender: To server: pG, [17:53:05]CommunicateWithHost lk.salyk.kg:30040 [17:53:05]ConnectInit lk.salyk.kg [17:53:05]written 0, free lines is 4095 [17:53:05]Connected sock=10 [17:53:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 AB 02 07 01 FD 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 00 BF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7B 02 00 35 04 06 00 29 24 1B 9E 4C 42 E9 4D 17 3E 2F FE EF 70 [17:53:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 28 22 47 00 1A 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 29 7B 02 00 F4 03 04 00 0F 6B 92 66 B6 04 01 00 00 12 9B 7F 13 E6 72 EC AF [17:53:05]CommunicateWithHost err = 0 [17:53:05]CheckOFDResponse [17:53:05]1017 (14) - 77093643461234 [17:53:05]1041 (16) - 0000000000874899 [17:53:05]1040 (4) - 162601 [17:53:05]1012 (4) - 13.07.2024 11:54 [17:53:05]1206 (1) - 0 [17:53:05]OFD Sender: Remove packet 162601 [17:53:05]ProducePacketName [17:53:05]name=ofd_packets/00162601 [17:53:05]NVStorageDeleteData [17:53:05]Write to MH i2c: 01 00 00 FE 18 16 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 07 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 F7 0C 20 [17:53:05]RasterBufferAndPrint [17:53:05]line [17:53:05]line [17:53:05]line [17:53:05]line [17:53:05]line [17:53:05]written 0, free lines is 3328 [17:53:05]MH_Cut [17:53:05]Write to MH i2c: D1 01 00 05 19 01 F0 [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: D1 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: D1 01 00 [17:53:05]MH_I2C_Read... [17:53:05]Read from MH i2c: D1 01 00 05 19 00 EF [17:53:05]Write to MH i2c: 01 00 00 06 19 1F [17:53:05]Write i2c OK [17:53:05]MH_I2C_Read... [17:53:06]OFD Sender: No OFD packet to send [17:53:06]*** Cut start [17:53:06]*** Purtial cut [17:53:06]*** Stage 1: CUTSNS_PIN = 1 [17:53:06]Read from MH i2c: 01 [17:53:06]MH_I2C_Read... [17:53:06]*** Stop cut motor [17:53:06]*** Cut end [17:53:06]Read from MH i2c: 01 07 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 FF 0F 34 [17:53:06]process_action close_receipt done [17:53:06]requested_data is exist [17:53:06]produce_requested_data [17:53:06]requested_item fm.sn is exist - process it [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 11 00 00 [17:53:06]Write to MH i2c: E2 08 00 07 19 80 11 00 00 00 00 00 00 9A [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:06]Read from MH i2c: E2 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 17 00 [17:53:06]MH_I2C_Read... [17:53:06]Read from MH i2c: E2 17 00 07 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FA [17:53:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:53:06]wFMCommunicate OK [17:53:06]requested_item fd.num is exist - process it [17:53:06]SAM_PROTO_GetFieldsCounters [17:53:06]wFMCommunicate request_size=4 [17:53:06]MH_SAM_APDU [17:53:06]CAPDU: 80 13 00 00 [17:53:06]Write to MH i2c: E2 08 00 08 19 80 13 00 00 00 00 00 00 9D [17:53:06]Write i2c OK [17:53:06]MH_I2C_Read... [17:53:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 62 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 62 00 08 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 29 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [17:53:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 29 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:07]wFMCommunicate OK [17:53:07]SAM_PROTO_GetFieldsCounters done [17:53:07]requested_item shift.num is exist - process it [17:53:07]requested_item shift.opened is exist - process it [17:53:07]req_shift_opened [17:53:07]FM_GetShiftState [17:53:07]SAM_PROTO_GetShiftState [17:53:07]wFMCommunicate request_size=4 [17:53:07]MH_SAM_APDU [17:53:07]CAPDU: 80 13 01 00 [17:53:07]Write to MH i2c: E2 08 00 09 19 80 13 01 00 00 00 00 00 9F [17:53:07]Write i2c OK [17:53:07]MH_I2C_Read... [17:53:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:07]Read from MH i2c: E2 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 0E 00 [17:53:07]MH_I2C_Read... [17:53:07]Read from MH i2c: E2 0E 00 09 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 99 [17:53:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:53:07]wFMCommunicate OK [17:53:07]SAM_PROTO_GetShiftState done [17:53:07]FM_GetShiftState done [17:53:07]req_shift_opened done [17:53:07]requested_item shift.open_date is exist - process it [17:53:07]req_shift_open_date [17:53:07]req_shift_open_date done [17:53:07]produce_requested_data done [17:53:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162601,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:53:07]process_action_free close_receipt [17:53:07]json_value_free [17:53:07]json_value_free done [17:53:07]process_json_proto returns [17:53:07]Send response to host [17:53:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162601,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:53:07]free response buf [17:53:07]execute_script done [17:53:07]execute_script returns [17:53:07]free content buf [17:53:07]Sock 9.Close socket [17:53:07]Sock 9.Thread stoped [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]accept exits with 7 [17:56:51]New connection [17:56:51]New thread 3067510116 created [17:56:51]Thread 3067366756 joined [17:56:51]Waiting for new connection... [17:56:51] Sock 7.Parse request [17:56:51]Sock 7.Check first char [17:56:51]Sock 7.First char is OK [17:56:51]request: POST /json_proto HTTP/1.0 [17:56:51]Method: POST [17:56:51]URL: /json_proto [17:56:51]Method is POST - this is cgi request [17:56:51]url: /json_proto [17:56:51]query_string will be loaded in cgi processing [17:56:51]execute_cgi json_proto POST (null) [17:56:51]execute_cgi path=json_proto method=POST [17:56:51]POST find Content-Length [17:56:51]Host: 172.17.39.67:8080 [17:56:51]Content-Length: 683 [17:56:51]Content-Type: application/json [17:56:51] [17:56:51]POST finish read [17:56:51]Found Content-Length = 683 [17:56:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:51]execute_script... [17:56: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)1319167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:56:51]POST & json_proto [17:56:51]process_json_proto [17:56:51]json parsed OK: [17:56:51]protocol is kg_v1.0 [17:56:51]action value=close_receipt [17:56:51]process_action close_receipt [17:56:51]cmd_close_receipt [17:56:51]MH_GetDate [17:56:51]Write to MH i2c: F0 00 00 0A 19 12 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: F0 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: F0 09 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: F0 09 00 0A 19 00 E4 BF 92 66 86 7C 92 66 B0 [17:56:51]GetLastDocTimeStamp 1720893184 [17:56:51]current date 1720893412 [17:56:51]FM_GetShiftState [17:56:51]SAM_PROTO_GetShiftState [17:56:51]wFMCommunicate request_size=4 [17:56:51]MH_SAM_APDU [17:56:51]CAPDU: 80 13 01 00 [17:56:51]Write to MH i2c: E2 08 00 0B 19 80 13 01 00 00 00 00 00 A1 [17:56:51]Write i2c OK [17:56:51]MH_I2C_Read... [17:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:51]Read from MH i2c: E2 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 0E 00 [17:56:51]MH_I2C_Read... [17:56:51]Read from MH i2c: E2 0E 00 0B 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 9B [17:56:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:56:51]wFMCommunicate OK [17:56:51]SAM_PROTO_GetShiftState done [17:56:51]FM_GetShiftState done [17:56:51]opened in 1720828979 [17:56:51]opened+sec_in_day 1720915379 [17:56:51]quantity*price = 100046 [17:56:51]sum+1 = 100048 [17:56:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 270 13.07.2024 17:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162602 ФПД: 216408011492117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175652&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162602&fm=216408011492117&tin=02508201610067®Number=0000000000090858&sum=100000 [17:56:52]StoreToDocumentArchive [17:56:52]shift 462 fd 162602 [17:56:52]save to /storage/0462/doc_00162602 [17:56:52]save last doc name /storage/0462/doc_00162602 to /storage/kkm_last_doc_name [17:56:52]save OK [17:56:52]Clear old archive folders... [17:56:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:56:52]tlvbuf is 006C6A10 [17:56:52]SAM_PROTO_ClearQueue [17:56:52]wFMCommunicate request_size=4 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 09 00 00 [17:56:52]Write to MH i2c: E2 08 00 18 19 80 09 00 00 00 00 00 00 A3 [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 18 19 00 90 00 A5 [17:56:52]RAPDU: 90 00 [17:56:52]wFMCommunicate OK [17:56:52]SAM_PROTO_ClearQueue done [17:56:52]KKMCreateOFDPacket [17:56:52]OFDProtocolAddRootSTLVToBuf [17:56:52]FM_MakeSignedData [17:56:52]FM_MakeSignedData [17:56:52]SAM_PROTO_SignData [17:56:52]wFMCommunicate request_size=4 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 0D 01 02 [17:56:52]Write to MH i2c: E2 08 00 19 19 80 0D 01 02 00 00 00 00 AB [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 19 19 00 90 00 A6 [17:56:52]RAPDU: 90 00 [17:56:52]wFMCommunicate OK [17:56:52]wFMCommunicate request_size=255 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0E 01 00 00 F4 03 04 00 E4 BF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7B 02 00 35 04 06 00 C4 [17:56:52]Write to MH i2c: E2 02 01 1A 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0E 01 00 00 F4 03 04 00 E4 BF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7B 02 00 35 04 06 00 C4 00 00 9B [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 1A 19 00 90 00 A7 [17:56:52]RAPDU: 90 00 [17:56:52]wFMCommunicate OK [17:56:52]wFMCommunicate request_size=10 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 0D 02 02 05 D2 6A A6 CB 15 [17:56:52]Write to MH i2c: E2 0D 00 1B 19 80 0D 02 02 05 00 D2 6A A6 CB 15 00 00 7A [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 03 00 1B 19 00 90 00 A8 [17:56:52]RAPDU: 90 00 [17:56:52]wFMCommunicate OK [17:56:52]wFMCommunicate request_size=4 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 0D 03 02 [17:56:52]Write to MH i2c: E2 08 00 1C 19 80 0D 03 02 00 00 00 00 B0 [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 0B 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 0B 00 1C 19 00 C4 72 46 46 F5 6C CB 9A 90 00 39 [17:56:52]RAPDU: C4 72 46 46 F5 6C CB 9A 90 00 [17:56:52]wFMCommunicate OK [17:56:52]SAM_PROTO_SignData done [17:56:52]FM_MakeSignedData done [17:56:52]CreateOFDProtocolMessage [17:56:52]wFMCommunicate request_size=4 [17:56:52]MH_SAM_APDU [17:56:52]CAPDU: 80 11 00 00 [17:56:52]Write to MH i2c: E2 08 00 1D 19 80 11 00 00 00 00 00 00 B0 [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:52]Read from MH i2c: E2 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 17 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: E2 17 00 1D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 10 [17:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:56:52]wFMCommunicate OK [17:56:52]CreateOFDProtocolMessage done [17:56:52]OFDSenderStorePacket 162602 [17:56:52]StoreOFDPacket docnum=162602 [17:56:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BC 9E 07 01 56 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0E 01 00 00 F4 03 04 00 E4 BF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7B 02 00 35 04 06 00 C4 D2 6A A6 CB 15 C4 72 46 46 F5 6C CB 9A [17:56:52]CheckFolder [17:56:52]dirname=/storage/ofd_packets [17:56:52]CheckFolder done [17:56:52]ProducePacketName [17:56:52]name=ofd_packets/00162602 [17:56:52]NVStorageSaveData ofd_packets/00162602 [17:56:52]File name is /storage/ofd_packets/00162602 [17:56:52]Write 301 bytes [17:56:52]NVStorageSaveData done [17:56:52]OFDSenderStorePacket done [17:56:52]KKMCreateOFDPacket done [17:56:52]NVStorageSaveData kkm_last_timestamp [17:56:52]File name is /storage/kkm_last_timestamp [17:56:52]Write 4 bytes [17:56:52]NVStorageSaveData done [17:56:52]ExternCall_PrintAddStr [17:56:52]wPrintStart [17:56:52]Write to MH i2c: 01 00 00 1E 19 37 [17:56:52]Write i2c OK [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: 01 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: 01 07 00 [17:56:52]MH_I2C_Read... [17:56:52]Read from MH i2c: 01 07 00 1E 19 00 00 00 00 00 FF 0F 4C [17:56:52]RasterBufferAndPrint [17:56:52]line Счет N : (1)1319167 [17:56:52]line ИНН: 02508201610067 [17:56:52]line Контрольно-Кассовый Чек [17:56:52]line ПРОДАЖА [17:56:52]line ТРК (МРК, ГНК) : 33 [17:56:52]line Товар: 2710124130 [17:56:52]line Аи-92-К-5 [17:56:52]line 15.090 * 66.30 [17:56:52]line = 1000.47 [17:56:52]line НДС 12% НСП 1% [17:56:52]line > о реализуемом товаре [17:56:52]line ОКРУГЛЕНИЕ: -0.47 [17:56:52]line ИТОГО: 1000.00 [17:56:52]line Внесено: 1000.00 [17:56:52]line СДАЧА: 0.00 [17:56:52]line НСП 1% : 8.85 [17:56:52]line НДС 12% : 106.24 [17:56:52]line Наличными: 1000.00 [17:56:52]line Безнал.: 0.00 [17:56:52]line Место: АЗС № 140 "Партнер Нефть" [17:56:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:56:52]line СНО: Общий режим [17:56:52]line Чек 270 13.07.2024 17:56 [17:56:52]line Смена: 462 ФФД: 1.0 [17:56:52]line ЗНМ: 0300000129 [17:56:52]line РНМ: 0000000000090858 [17:56:52]line Версия ККМ: 001 [17:56:52]line ФМ: 0000000000874899 [17:56:52]line ФД: 162602 [17:56:52]line ФПД: 216408011492117 [17:56:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175652&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162602&fm=216408011492117&tin=02508201610067®Number=0000000000090858&sum=100000 [17:56:53]OFD Sender: Processing packet 162602 [packets to send 106, broken 105] [17:56:53]ProducePacketName [17:56:53]name=ofd_packets/00162602 [17:56:53]OFD Sender: To server: pG, [17:56:53]CommunicateWithHost lk.salyk.kg:30040 [17:56:53]ConnectInit lk.salyk.kg [17:56:53]written 0, free lines is 4095 [17:56:53]Connected sock=10 [17:56:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 BC 9E 07 01 56 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 0E 01 00 00 F4 03 04 00 E4 BF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7B 02 00 35 04 06 00 C4 D2 6A A6 CB 15 C4 72 46 46 F5 6C CB 9A [17:56:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6D DF 47 00 30 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2A 7B 02 00 F4 03 04 00 F2 6B 92 66 B6 04 01 00 00 F1 24 73 C8 AC 4D F0 9D [17:56:53]CommunicateWithHost err = 0 [17:56:53]CheckOFDResponse [17:56:53]1017 (14) - 77093643461234 [17:56:53]1041 (16) - 0000000000874899 [17:56:53]1040 (4) - 162602 [17:56:53]1012 (4) - 13.07.2024 11:58 [17:56:53]1206 (1) - 0 [17:56:53]OFD Sender: Remove packet 162602 [17:56:53]ProducePacketName [17:56:53]name=ofd_packets/00162602 [17:56:53]NVStorageDeleteData [17:56:53]Write to MH i2c: 01 00 00 49 19 62 [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: 01 07 00 49 19 00 00 00 00 00 EF 0C 64 [17:56:53]RasterBufferAndPrint [17:56:53]line [17:56:53]line [17:56:53]line [17:56:53]line [17:56:53]line [17:56:53]written 0, free lines is 3317 [17:56:53]MH_Cut [17:56:53]Write to MH i2c: D1 01 00 50 19 01 3B [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: D1 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: D1 01 00 [17:56:53]MH_I2C_Read... [17:56:53]Read from MH i2c: D1 01 00 50 19 00 3A [17:56:53]Write to MH i2c: 01 00 00 51 19 6A [17:56:53]Write i2c OK [17:56:53]MH_I2C_Read... [17:56:54]OFD Sender: No OFD packet to send [17:56:54]*** Cut start [17:56:54]*** Purtial cut [17:56:54]*** CUTSNS_PIN = 0 [17:56:54]*** Stage 1: CUTSNS_PIN = 1 [17:56:56]Read from MH i2c: 01 [17:56:56]MH_I2C_Read... [17:56:56]*** Stop cut motor [17:56:56]*** Cut end [17:56:56]Read from MH i2c: 01 07 00 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: 01 07 00 51 19 00 00 00 00 00 FF 0F 7F [17:56:56]process_action close_receipt done [17:56:56]requested_data is exist [17:56:56]produce_requested_data [17:56:56]requested_item fm.sn is exist - process it [17:56:56]wFMCommunicate request_size=4 [17:56:56]MH_SAM_APDU [17:56:56]CAPDU: 80 11 00 00 [17:56:56]Write to MH i2c: E2 08 00 52 19 80 11 00 00 00 00 00 00 E5 [17:56:56]Write i2c OK [17:56:56]MH_I2C_Read... [17:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:56]Read from MH i2c: E2 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 17 00 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 17 00 52 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 45 [17:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:56:56]wFMCommunicate OK [17:56:56]requested_item fd.num is exist - process it [17:56:56]SAM_PROTO_GetFieldsCounters [17:56:56]wFMCommunicate request_size=4 [17:56:56]MH_SAM_APDU [17:56:56]CAPDU: 80 13 00 00 [17:56:56]Write to MH i2c: E2 08 00 53 19 80 13 00 00 00 00 00 00 E8 [17:56:56]Write i2c OK [17:56:56]MH_I2C_Read... [17:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:56]Read from MH i2c: E2 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 62 00 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 62 00 53 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [17:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:56]wFMCommunicate OK [17:56:56]SAM_PROTO_GetFieldsCounters done [17:56:56]requested_item shift.num is exist - process it [17:56:56]requested_item shift.opened is exist - process it [17:56:56]req_shift_opened [17:56:56]FM_GetShiftState [17:56:56]SAM_PROTO_GetShiftState [17:56:56]wFMCommunicate request_size=4 [17:56:56]MH_SAM_APDU [17:56:56]CAPDU: 80 13 01 00 [17:56:56]Write to MH i2c: E2 08 00 54 19 80 13 01 00 00 00 00 00 EA [17:56:56]Write i2c OK [17:56:56]MH_I2C_Read... [17:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:56]Read from MH i2c: E2 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 0E 00 [17:56:56]MH_I2C_Read... [17:56:56]Read from MH i2c: E2 0E 00 54 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E4 [17:56:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:56:56]wFMCommunicate OK [17:56:56]SAM_PROTO_GetShiftState done [17:56:56]FM_GetShiftState done [17:56:56]req_shift_opened done [17:56:56]requested_item shift.open_date is exist - process it [17:56:56]req_shift_open_date [17:56:56]req_shift_open_date done [17:56:56]produce_requested_data done [17:56:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162602,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:56:56]process_action_free close_receipt [17:56:56]json_value_free [17:56:56]json_value_free done [17:56:56]process_json_proto returns [17:56:56]Send response to host [17:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162602,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:56:56]free response buf [17:56:56]execute_script done [17:56:56]execute_script returns [17:56:56]free content buf [17:56:56]Sock 7.Close socket [17:56:56]Sock 7.Thread stoped [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:52]accept exits with 9 [17:57:52]New connection [17:57:52]New thread 3067366756 created [17:57:52]Thread 3067510116 joined [17:57:52]Waiting for new connection... [17:57:52] Sock 9.Parse request [17:57:52]Sock 9.Check first char [17:57:52]Sock 9.First char is OK [17:57:52]request: POST /json_proto HTTP/1.0 [17:57:52]Method: POST [17:57:52]URL: /json_proto [17:57:52]Method is POST - this is cgi request [17:57:52]url: /json_proto [17:57:52]query_string will be loaded in cgi processing [17:57:52]execute_cgi json_proto POST (null) [17:57:52]execute_cgi path=json_proto method=POST [17:57:52]POST find Content-Length [17:57:52]Host: 172.17.39.67:8080 [17:57:52]Content-Length: 683 [17:57:52]Content-Type: application/json [17:57:52] [17:57:52]POST finish read [17:57:52]Found Content-Length = 683 [17:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [17:57:52]execute_script... [17:57: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)1319168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [17:57:52]POST & json_proto [17:57:52]process_json_proto [17:57:52]json parsed OK: [17:57:52]protocol is kg_v1.0 [17:57:52]action value=close_receipt [17:57:52]process_action close_receipt [17:57:52]cmd_close_receipt [17:57:52]MH_GetDate [17:57:52]Write to MH i2c: F0 00 00 55 19 5D [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 09 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: F0 09 00 55 19 00 21 C0 92 66 86 7C 92 66 39 [17:57:52]GetLastDocTimeStamp 1720893412 [17:57:52]current date 1720893473 [17:57:52]FM_GetShiftState [17:57:52]SAM_PROTO_GetShiftState [17:57:52]wFMCommunicate request_size=4 [17:57:52]MH_SAM_APDU [17:57:52]CAPDU: 80 13 01 00 [17:57:52]Write to MH i2c: E2 08 00 56 19 80 13 01 00 00 00 00 00 EC [17:57:52]Write i2c OK [17:57:52]MH_I2C_Read... [17:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:52]Read from MH i2c: E2 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 0E 00 [17:57:52]MH_I2C_Read... [17:57:52]Read from MH i2c: E2 0E 00 56 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E6 [17:57:52]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:57:52]wFMCommunicate OK [17:57:52]SAM_PROTO_GetShiftState done [17:57:52]FM_GetShiftState done [17:57:52]opened in 1720828979 [17:57:52]opened+sec_in_day 1720915379 [17:57:52]quantity*price = 70059 [17:57:52]sum+1 = 70060 [17:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 271 13.07.2024 17:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162603 ФПД: 112711439409956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175753&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162603&fm=112711439409956&tin=02508201610067®Number=0000000000090858&sum=70000 [17:57:53]StoreToDocumentArchive [17:57:53]shift 462 fd 162603 [17:57:53]save to /storage/0462/doc_00162603 [17:57:53]save last doc name /storage/0462/doc_00162603 to /storage/kkm_last_doc_name [17:57:53]save OK [17:57:53]Clear old archive folders... [17:57:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:57:53]tlvbuf is 006DB330 [17:57:53]SAM_PROTO_ClearQueue [17:57:53]wFMCommunicate request_size=4 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 09 00 00 [17:57:53]Write to MH i2c: E2 08 00 63 19 80 09 00 00 00 00 00 00 EE [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:53]Read from MH i2c: E2 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 63 19 00 90 00 F0 [17:57:53]RAPDU: 90 00 [17:57:53]wFMCommunicate OK [17:57:53]SAM_PROTO_ClearQueue done [17:57:53]KKMCreateOFDPacket [17:57:53]OFDProtocolAddRootSTLVToBuf [17:57:53]FM_MakeSignedData [17:57:53]FM_MakeSignedData [17:57:53]SAM_PROTO_SignData [17:57:53]wFMCommunicate request_size=4 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 0D 01 02 [17:57:53]Write to MH i2c: E2 08 00 64 19 80 0D 01 02 00 00 00 00 F6 [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:53]Read from MH i2c: E2 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 64 19 00 90 00 F1 [17:57:53]RAPDU: 90 00 [17:57:53]wFMCommunicate OK [17:57:53]wFMCommunicate request_size=255 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0F 01 00 00 F4 03 04 00 21 C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7B 02 00 35 04 06 00 [17:57:53]Write to MH i2c: E2 02 01 65 19 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0F 01 00 00 F4 03 04 00 21 C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7B 02 00 35 04 06 00 00 00 58 [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:53]Read from MH i2c: E2 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 65 19 00 90 00 F2 [17:57:53]RAPDU: 90 00 [17:57:53]wFMCommunicate OK [17:57:53]wFMCommunicate request_size=11 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 0D 02 02 06 66 82 AD 4E E3 24 [17:57:53]Write to MH i2c: E2 0E 00 66 19 80 0D 02 02 06 00 66 82 AD 4E E3 24 00 00 EF [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:53]Read from MH i2c: E2 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 03 00 66 19 00 90 00 F3 [17:57:53]RAPDU: 90 00 [17:57:53]wFMCommunicate OK [17:57:53]wFMCommunicate request_size=4 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 0D 03 02 [17:57:53]Write to MH i2c: E2 08 00 67 19 80 0D 03 02 00 00 00 00 FB [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:53]Read from MH i2c: E2 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 0B 00 [17:57:53]MH_I2C_Read... [17:57:53]Read from MH i2c: E2 0B 00 67 19 00 01 CF 7A 89 90 AA 67 51 90 00 C1 [17:57:53]RAPDU: 01 CF 7A 89 90 AA 67 51 90 00 [17:57:53]wFMCommunicate OK [17:57:53]SAM_PROTO_SignData done [17:57:53]FM_MakeSignedData done [17:57:53]CreateOFDProtocolMessage [17:57:53]wFMCommunicate request_size=4 [17:57:53]MH_SAM_APDU [17:57:53]CAPDU: 80 11 00 00 [17:57:53]Write to MH i2c: E2 08 00 68 19 80 11 00 00 00 00 00 00 FB [17:57:53]Write i2c OK [17:57:53]MH_I2C_Read... [17:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:54]Read from MH i2c: E2 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 17 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: E2 17 00 68 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5B [17:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:57:54]wFMCommunicate OK [17:57:54]CreateOFDProtocolMessage done [17:57:54]OFDSenderStorePacket 162603 [17:57:54]StoreOFDPacket docnum=162603 [17:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 59 08 01 D9 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0F 01 00 00 F4 03 04 00 21 C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7B 02 00 35 04 06 00 66 82 AD 4E E3 24 01 CF 7A 89 90 AA 67 51 [17:57:54]CheckFolder [17:57:54]dirname=/storage/ofd_packets [17:57:54]CheckFolder done [17:57:54]ProducePacketName [17:57:54]name=ofd_packets/00162603 [17:57:54]NVStorageSaveData ofd_packets/00162603 [17:57:54]File name is /storage/ofd_packets/00162603 [17:57:54]Write 302 bytes [17:57:54]NVStorageSaveData done [17:57:54]OFDSenderStorePacket done [17:57:54]KKMCreateOFDPacket done [17:57:54]NVStorageSaveData kkm_last_timestamp [17:57:54]File name is /storage/kkm_last_timestamp [17:57:54]Write 4 bytes [17:57:54]NVStorageSaveData done [17:57:54]ExternCall_PrintAddStr [17:57:54]wPrintStart [17:57:54]Write to MH i2c: 01 00 00 69 19 82 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 69 19 00 00 00 00 00 FF 0F 97 [17:57:54]RasterBufferAndPrint [17:57:54]line Счет N : (1)1319168 [17:57:54]line ИНН: 02508201610067 [17:57:54]line Контрольно-Кассовый Чек [17:57:54]line ПРОДАЖА [17:57:54]line ТРК (МРК, ГНК) : 21 [17:57:54]line Товар: 2710194210 [17:57:54]line ДТ(л)-К-5 [17:57:54]line 9.650 * 72.60 [17:57:54]line = 700.59 [17:57:54]line НДС 12% НСП 1% [17:57:54]line > о реализуемом товаре [17:57:54]line ОКРУГЛЕНИЕ: -0.59 [17:57:54]line ИТОГО: 700.00 [17:57:54]line Внесено: 700.00 [17:57:54]line СДАЧА: 0.00 [17:57:54]line НСП 1% : 6.20 [17:57:54]line НДС 12% : 74.40 [17:57:54]line Наличными: 700.00 [17:57:54]line Безнал.: 0.00 [17:57:54]line Место: АЗС № 140 "Партнер Нефть" [17:57:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:57:54]line СНО: Общий режим [17:57:54]line Чек 271 13.07.2024 17:57 [17:57:54]line Смена: 462 ФФД: 1.0 [17:57:54]line ЗНМ: 0300000129 [17:57:54]line РНМ: 0000000000090858 [17:57:54]line Версия ККМ: 001 [17:57:54]line ФМ: 0000000000874899 [17:57:54]line ФД: 162603 [17:57:54]line ФПД: 112711439409956 [17:57:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175753&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162603&fm=112711439409956&tin=02508201610067®Number=0000000000090858&sum=70000 [17:57:54]OFD Sender: Processing packet 162603 [packets to send 106, broken 105] [17:57:54]ProducePacketName [17:57:54]name=ofd_packets/00162603 [17:57:54]OFD Sender: To server: pG, [17:57:54]CommunicateWithHost lk.salyk.kg:30040 [17:57:54]ConnectInit lk.salyk.kg [17:57:54]written 0, free lines is 4095 [17:57:54]Connected sock=10 [17:57:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 59 08 01 D9 A9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0F 01 00 00 F4 03 04 00 21 C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7B 02 00 35 04 06 00 66 82 AD 4E E3 24 01 CF 7A 89 90 AA 67 51 [17:57:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3E 98 47 00 1A 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2B 7B 02 00 F4 03 04 00 30 6C 92 66 B6 04 01 00 00 C0 4C 97 3A FC 6A 45 3F [17:57:54]CommunicateWithHost err = 0 [17:57:54]CheckOFDResponse [17:57:54]1017 (14) - 77093643461234 [17:57:54]1041 (16) - 0000000000874899 [17:57:54]1040 (4) - 162603 [17:57:54]1012 (4) - 13.07.2024 11:59 [17:57:54]1206 (1) - 0 [17:57:54]OFD Sender: Remove packet 162603 [17:57:54]ProducePacketName [17:57:54]name=ofd_packets/00162603 [17:57:54]NVStorageDeleteData [17:57:54]Write to MH i2c: 01 00 00 94 19 AD [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 EE 0C AE [17:57:54]RasterBufferAndPrint [17:57:54]line [17:57:54]line [17:57:54]line [17:57:54]line [17:57:54]line [17:57:54]written 0, free lines is 3319 [17:57:54]MH_Cut [17:57:54]Write to MH i2c: D1 01 00 9B 19 01 86 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: D1 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: D1 01 00 [17:57:54]MH_I2C_Read... [17:57:54]Read from MH i2c: D1 01 00 9B 19 00 85 [17:57:54]Write to MH i2c: 01 00 00 9C 19 B5 [17:57:54]Write i2c OK [17:57:54]MH_I2C_Read... [17:57:55]OFD Sender: No OFD packet to send [17:57:55]*** Cut start [17:57:55]*** Purtial cut [17:57:55]*** Stage 1: CUTSNS_PIN = 1 [17:57:55]Read from MH i2c: 01 [17:57:55]MH_I2C_Read... [17:57:55]*** Stop cut motor [17:57:55]*** Cut end [17:57:55]Read from MH i2c: 01 07 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: 01 07 00 9C 19 00 00 00 00 00 FF 0F CA [17:57:55]process_action close_receipt done [17:57:55]requested_data is exist [17:57:55]produce_requested_data [17:57:55]requested_item fm.sn is exist - process it [17:57:55]wFMCommunicate request_size=4 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 11 00 00 [17:57:55]Write to MH i2c: E2 08 00 9D 19 80 11 00 00 00 00 00 00 30 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 17 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 17 00 9D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 90 [17:57:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:57:55]wFMCommunicate OK [17:57:55]requested_item fd.num is exist - process it [17:57:55]SAM_PROTO_GetFieldsCounters [17:57:55]wFMCommunicate request_size=4 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 13 00 00 [17:57:55]Write to MH i2c: E2 08 00 9E 19 80 13 00 00 00 00 00 00 33 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:55]Read from MH i2c: E2 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 62 00 [17:57:55]MH_I2C_Read... [17:57:55]Read from MH i2c: E2 62 00 9E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [17:57:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:55]wFMCommunicate OK [17:57:55]SAM_PROTO_GetFieldsCounters done [17:57:55]requested_item shift.num is exist - process it [17:57:55]requested_item shift.opened is exist - process it [17:57:55]req_shift_opened [17:57:55]FM_GetShiftState [17:57:55]SAM_PROTO_GetShiftState [17:57:55]wFMCommunicate request_size=4 [17:57:55]MH_SAM_APDU [17:57:55]CAPDU: 80 13 01 00 [17:57:55]Write to MH i2c: E2 08 00 9F 19 80 13 01 00 00 00 00 00 35 [17:57:55]Write i2c OK [17:57:55]MH_I2C_Read... [17:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:56]Read from MH i2c: E2 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 0E 00 [17:57:56]MH_I2C_Read... [17:57:56]Read from MH i2c: E2 0E 00 9F 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2F [17:57:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:57:56]wFMCommunicate OK [17:57:56]SAM_PROTO_GetShiftState done [17:57:56]FM_GetShiftState done [17:57:56]req_shift_opened done [17:57:56]requested_item shift.open_date is exist - process it [17:57:56]req_shift_open_date [17:57:56]req_shift_open_date done [17:57:56]produce_requested_data done [17:57:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162603,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:57:56]process_action_free close_receipt [17:57:56]json_value_free [17:57:56]json_value_free done [17:57:56]process_json_proto returns [17:57:56]Send response to host [17:57:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162603,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:57:56]free response buf [17:57:56]execute_script done [17:57:56]execute_script returns [17:57:56]free content buf [17:57:56]Sock 9.Close socket [17:57:56]Sock 9.Thread stoped [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]accept exits with 7 [17:58:45]New connection [17:58:45]New thread 3067510116 created [17:58:45]Thread 3067366756 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.39.67:8080 [17:58:45]Content-Length: 804 [17:58:45]Content-Type: application/json [17:58:45] [17:58:45]POST finish read [17:58:45]Found Content-Length = 804 [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)1319169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 18.090, "sum" : 1199.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1199.37 } ] } , "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)1319169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 18.090, "sum" : 1199.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1199.37 } ] } , "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 A0 19 A8 [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 A0 19 00 56 C0 92 66 86 7C 92 66 B9 [17:58:45]GetLastDocTimeStamp 1720893473 [17:58:45]current date 1720893526 [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 A1 19 80 13 01 00 00 00 00 00 37 [17:58:45]Write i2c OK [17:58:45]MH_I2C_Read... [17:58:45]OFD Sender: No OFD packet to send [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 A1 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 31 [17:58:45]RAPDU: 09 00 01 33 C4 91 66 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 1720828979 [17:58:45]opened+sec_in_day 1720915379 [17:58:45]quantity*price = 119936 [17:58:45]sum+1 = 119938 [17:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1199.37 НСП 1% : 10.61 НДС 12% : 127.37 Наличными: 0.00 Безнал.: 1199.37 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 272 13.07.2024 17:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162604 ФПД: 41052199698074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175846&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162604&fm=41052199698074&tin=02508201610067®Number=0000000000090858&sum=119937 [17:58:46]StoreToDocumentArchive [17:58:46]shift 462 fd 162604 [17:58:46]save to /storage/0462/doc_00162604 [17:58:46]save last doc name /storage/0462/doc_00162604 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=251 [17:58:46]tlvbuf is 006DB360 [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 AE 19 80 09 00 00 00 00 00 00 39 [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 AE 19 00 90 00 3B [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 AF 19 80 0D 01 02 00 00 00 00 41 [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 AF 19 00 90 00 3C [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 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 81 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 56 C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7B 02 00 35 04 06 00 25 [17:58:46]Write to MH i2c: E2 02 01 B0 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 81 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 56 C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7B 02 00 35 04 06 00 25 00 00 25 [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 B0 19 00 90 00 3D [17:58:46]RAPDU: 90 00 [17:58:46]wFMCommunicate OK [17:58:46]wFMCommunicate request_size=10 [17:58:46]MH_SAM_APDU [17:58:46]CAPDU: 80 0D 02 02 05 56 35 C7 BE 9A [17:58:46]Write to MH i2c: E2 0D 00 B1 19 80 0D 02 02 05 00 56 35 C7 BE 9A 00 00 F8 [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 B1 19 00 90 00 3E [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 B2 19 80 0D 03 02 00 00 00 00 46 [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 B2 19 00 14 E0 BC A4 D0 CB 9D 15 90 00 E8 [17:58:46]RAPDU: 14 E0 BC A4 D0 CB 9D 15 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 B3 19 80 11 00 00 00 00 00 00 46 [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:46]Read from MH i2c: E2 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 17 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: E2 17 00 B3 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A6 [17:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:58:46]wFMCommunicate OK [17:58:46]CreateOFDProtocolMessage done [17:58:46]OFDSenderStorePacket 162604 [17:58:46]StoreOFDPacket docnum=162604 [17:58:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8D 59 07 01 A3 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 81 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 56 C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7B 02 00 35 04 06 00 25 56 35 C7 BE 9A 14 E0 BC A4 D0 CB 9D 15 [17:58:46]CheckFolder [17:58:46]dirname=/storage/ofd_packets [17:58:46]CheckFolder done [17:58:46]ProducePacketName [17:58:46]name=ofd_packets/00162604 [17:58:46]NVStorageSaveData ofd_packets/00162604 [17:58:46]File name is /storage/ofd_packets/00162604 [17:58:46]Write 301 bytes [17:58:46]NVStorageSaveData done [17:58:46]OFDSenderStorePacket done [17:58:46]KKMCreateOFDPacket done [17:58:46]NVStorageSaveData kkm_last_timestamp [17:58:46]File name is /storage/kkm_last_timestamp [17:58:46]Write 4 bytes [17:58:46]NVStorageSaveData done [17:58:46]ExternCall_PrintAddStr [17:58:46]wPrintStart [17:58:46]Write to MH i2c: 01 00 00 B4 19 CD [17:58:46]Write i2c OK [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 07 00 [17:58:46]MH_I2C_Read... [17:58:46]Read from MH i2c: 01 07 00 B4 19 00 00 00 00 00 FF 0F E2 [17:58:46]RasterBufferAndPrint [17:58:46]line Счет N : (1)1319169 [17:58:46]line ИНН: 02508201610067 [17:58:46]line Контрольно-Кассовый Чек [17:58:46]line ПРОДАЖА [17:58:46]line ТРК (МРК, ГНК) : 53 [17:58:46]line Товар: 2710124130 [17:58:46]line Аи-92-К-5 [17:58:46]line 18.090 * 66.30 [17:58:46]line = 1199.37 [17:58:46]line НДС 12% НСП 1% [17:58:46]line > о реализуемом товаре [17:58:46]line ИТОГО: 1199.37 [17:58:46]line НСП 1% : 10.61 [17:58:46]line НДС 12% : 127.37 [17:58:46]line Наличными: 0.00 [17:58:46]line Безнал.: 1199.37 [17:58:46]line Место: АЗС № 140 "Партнер Нефть" [17:58:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:58:46]line СНО: Общий режим [17:58:46]line Чек 272 13.07.2024 17:58 [17:58:46]line Смена: 462 ФФД: 1.0 [17:58:46]line ЗНМ: 0300000129 [17:58:46]line РНМ: 0000000000090858 [17:58:46]line Версия ККМ: 001 [17:58:46]line Платежная система: O! деньги [17:58:46]line ФМ: 0000000000874899 [17:58:46]line ФД: 162604 [17:58:46]line ФПД: 41052199698074 [17:58:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T175846&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162604&fm=41052199698074&tin=02508201610067®Number=0000000000090858&sum=119937 [17:58:46]written 0, free lines is 4095 [17:58:46]OFD Sender: Processing packet 162604 [packets to send 106, broken 105] [17:58:46]ProducePacketName [17:58:46]name=ofd_packets/00162604 [17:58:46]OFD Sender: To server: pG, [17:58:46]CommunicateWithHost lk.salyk.kg:30040 [17:58:46]ConnectInit lk.salyk.kg [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 34 38 39 39 0F 01 00 00 8D 59 07 01 A3 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 81 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 56 C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7B 02 00 35 04 06 00 25 56 35 C7 BE 9A 14 E0 BC A4 D0 CB 9D 15 [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 34 38 39 39 4F 00 00 00 FD 49 47 00 21 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2C 7B 02 00 F4 03 04 00 64 6C 92 66 B6 04 01 00 00 F3 5D 36 22 F6 07 DD B3 [17:58:47]CommunicateWithHost err = 0 [17:58:47]CheckOFDResponse [17:58:47]1017 (14) - 77093643461234 [17:58:47]1041 (16) - 0000000000874899 [17:58:47]1040 (4) - 162604 [17:58:47]1012 (4) - 13.07.2024 12:00 [17:58:47]1206 (1) - 0 [17:58:47]OFD Sender: Remove packet 162604 [17:58:47]ProducePacketName [17:58:47]name=ofd_packets/00162604 [17:58:47]NVStorageDeleteData [17:58:47]Write to MH i2c: 01 00 00 DE 19 F7 [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 DE 19 00 00 00 00 00 F6 0C 00 [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 3324 [17:58:47]MH_Cut [17:58:47]Write to MH i2c: D1 01 00 E5 19 01 D0 [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 E5 19 00 CF [17:58:47]Write to MH i2c: 01 00 00 E6 19 FF [17:58:47]Write i2c OK [17:58:47]MH_I2C_Read... [17:58:47]OFD Sender: No OFD packet to send [17:58:48]*** Cut start [17:58:48]*** Purtial cut [17:58:48]*** CUTSNS_PIN = 0 [17:58:48]*** Stage 1: CUTSNS_PIN = 1 [17:58:50]Read from MH i2c: 01 [17:58:50]MH_I2C_Read... [17:58:50]*** Stop cut motor [17:58:50]*** Cut end [17:58:50]Read from MH i2c: 01 07 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 FF 0F 14 [17:58:50]process_action close_receipt done [17:58:50]requested_data is exist [17:58:50]produce_requested_data [17:58:50]requested_item fm.sn is exist - process it [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 11 00 00 [17:58:50]Write to MH i2c: E2 08 00 E7 19 80 11 00 00 00 00 00 00 7A [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 17 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 17 00 E7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DA [17:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [17:58:50]wFMCommunicate OK [17:58:50]requested_item fd.num is exist - process it [17:58:50]SAM_PROTO_GetFieldsCounters [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 13 00 00 [17:58:50]Write to MH i2c: E2 08 00 E8 19 80 13 00 00 00 00 00 00 7D [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 62 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 62 00 E8 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [17:58:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:50]wFMCommunicate OK [17:58:50]SAM_PROTO_GetFieldsCounters done [17:58:50]requested_item shift.num is exist - process it [17:58:50]requested_item shift.opened is exist - process it [17:58:50]req_shift_opened [17:58:50]FM_GetShiftState [17:58:50]SAM_PROTO_GetShiftState [17:58:50]wFMCommunicate request_size=4 [17:58:50]MH_SAM_APDU [17:58:50]CAPDU: 80 13 01 00 [17:58:50]Write to MH i2c: E2 08 00 E9 19 80 13 01 00 00 00 00 00 7F [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:50]Read from MH i2c: E2 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 0E 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: E2 0E 00 E9 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 79 [17:58:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [17:58:50]wFMCommunicate OK [17:58:50]SAM_PROTO_GetShiftState done [17:58:50]FM_GetShiftState done [17:58:50]req_shift_opened done [17:58:50]requested_item shift.open_date is exist - process it [17:58:50]req_shift_open_date [17:58:50]req_shift_open_date done [17:58:50]produce_requested_data done [17:58:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162604,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [17:58:50]process_action_free close_receipt [17:58:50]json_value_free [17:58:50]json_value_free done [17:58:50]process_json_proto returns [17:58:50]Send response to host [17:58:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162604,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [17:58:50]free response buf [17:58:50]execute_script done [17:58:50]execute_script returns [17:58:50]free content buf [17:58:50]Sock 7.Close socket [17:58:50]Sock 7.Thread stoped [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:14]accept exits with 9 [18:01:14]New connection [18:01:14]New thread 3067366756 created [18:01:14]Thread 3067510116 joined [18:01:14]Waiting for new connection... [18:01:14] Sock 9.Parse request [18:01:14]Sock 9.Check first char [18:01:14]Sock 9.First char is OK [18:01:14]request: POST /json_proto HTTP/1.0 [18:01:14]Method: POST [18:01:14]URL: /json_proto [18:01:14]Method is POST - this is cgi request [18:01:14]url: /json_proto [18:01:14]query_string will be loaded in cgi processing [18:01:14]execute_cgi json_proto POST (null) [18:01:14]execute_cgi path=json_proto method=POST [18:01:14]POST find Content-Length [18:01:14]Host: 172.17.39.67:8080 [18:01:14]Content-Length: 678 [18:01:14]Content-Type: application/json [18:01:14] [18:01:14]POST finish read [18:01:14]Found Content-Length = 678 [18:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:14]execute_script... [18:01: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)1319171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:01:14]POST & json_proto [18:01:14]process_json_proto [18:01:14]json parsed OK: [18:01:14]protocol is kg_v1.0 [18:01:14]action value=close_receipt [18:01:14]process_action close_receipt [18:01:14]cmd_close_receipt [18:01:14]MH_GetDate [18:01:14]Write to MH i2c: F0 00 00 EA 19 F2 [18:01:14]Write i2c OK [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: F0 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: F0 09 00 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: F0 09 00 EA 19 00 EB C0 92 66 86 7C 92 66 98 [18:01:14]GetLastDocTimeStamp 1720893526 [18:01:14]current date 1720893675 [18:01:14]FM_GetShiftState [18:01:14]SAM_PROTO_GetShiftState [18:01:14]wFMCommunicate request_size=4 [18:01:14]MH_SAM_APDU [18:01:14]CAPDU: 80 13 01 00 [18:01:14]Write to MH i2c: E2 08 00 EB 19 80 13 01 00 00 00 00 00 81 [18:01:14]Write i2c OK [18:01:14]MH_I2C_Read... [18:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:14]Read from MH i2c: E2 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 0E 00 [18:01:14]MH_I2C_Read... [18:01:14]Read from MH i2c: E2 0E 00 EB 19 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7B [18:01:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:01:14]wFMCommunicate OK [18:01:14]SAM_PROTO_GetShiftState done [18:01:14]FM_GetShiftState done [18:01:14]opened in 1720828979 [18:01:14]opened+sec_in_day 1720915379 [18:01:14]quantity*price = 50056 [18:01:14]sum+1 = 50058 [18:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 273 13.07.2024 18:01 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162605 ФПД: 245201405494946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180115&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162605&fm=245201405494946&tin=02508201610067®Number=0000000000090858&sum=50000 [18:01:15]StoreToDocumentArchive [18:01:15]shift 462 fd 162605 [18:01:15]save to /storage/0462/doc_00162605 [18:01:15]save last doc name /storage/0462/doc_00162605 to /storage/kkm_last_doc_name [18:01:15]save OK [18:01:15]Clear old archive folders... [18:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:15]tlvbuf is 006C5CB0 [18:01:15]SAM_PROTO_ClearQueue [18:01:15]wFMCommunicate request_size=4 [18:01:15]MH_SAM_APDU [18:01:15]CAPDU: 80 09 00 00 [18:01:15]Write to MH i2c: E2 08 00 F8 19 80 09 00 00 00 00 00 00 83 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:15]Read from MH i2c: E2 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 03 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 03 00 F8 19 00 90 00 85 [18:01:15]RAPDU: 90 00 [18:01:15]wFMCommunicate OK [18:01:15]SAM_PROTO_ClearQueue done [18:01:15]KKMCreateOFDPacket [18:01:15]OFDProtocolAddRootSTLVToBuf [18:01:15]FM_MakeSignedData [18:01:15]FM_MakeSignedData [18:01:15]SAM_PROTO_SignData [18:01:15]wFMCommunicate request_size=4 [18:01:15]MH_SAM_APDU [18:01:15]CAPDU: 80 0D 01 02 [18:01:15]Write to MH i2c: E2 08 00 F9 19 80 0D 01 02 00 00 00 00 8B [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:15]Read from MH i2c: E2 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 03 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 03 00 F9 19 00 90 00 86 [18:01:15]RAPDU: 90 00 [18:01:15]wFMCommunicate OK [18:01:15]wFMCommunicate request_size=255 [18:01:15]MH_SAM_APDU [18:01:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 EB C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7B 02 00 35 04 06 00 DF [18:01:15]Write to MH i2c: E2 02 01 FA 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 EB C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7B 02 00 35 04 06 00 DF 00 00 54 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:15]Read from MH i2c: E2 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 03 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 03 00 FA 19 00 90 00 87 [18:01:15]RAPDU: 90 00 [18:01:15]wFMCommunicate OK [18:01:15]wFMCommunicate request_size=10 [18:01:15]MH_SAM_APDU [18:01:15]CAPDU: 80 0D 02 02 05 02 66 AC 46 A2 [18:01:15]Write to MH i2c: E2 0D 00 FB 19 80 0D 02 02 05 00 02 66 AC 46 A2 00 00 94 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:15]Read from MH i2c: E2 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 03 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 03 00 FB 19 00 90 00 88 [18:01:15]RAPDU: 90 00 [18:01:15]wFMCommunicate OK [18:01:15]wFMCommunicate request_size=4 [18:01:15]MH_SAM_APDU [18:01:15]CAPDU: 80 0D 03 02 [18:01:15]Write to MH i2c: E2 08 00 FC 19 80 0D 03 02 00 00 00 00 90 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:15]Read from MH i2c: E2 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 0B 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 0B 00 FC 19 00 3D 75 F7 07 EF DE C0 9C 90 00 6A [18:01:15]RAPDU: 3D 75 F7 07 EF DE C0 9C 90 00 [18:01:15]wFMCommunicate OK [18:01:15]SAM_PROTO_SignData done [18:01:15]FM_MakeSignedData done [18:01:15]CreateOFDProtocolMessage [18:01:15]wFMCommunicate request_size=4 [18:01:15]MH_SAM_APDU [18:01:15]CAPDU: 80 11 00 00 [18:01:15]Write to MH i2c: E2 08 00 FD 19 80 11 00 00 00 00 00 00 90 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:15]Read from MH i2c: E2 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 17 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: E2 17 00 FD 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F0 [18:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:01:15]wFMCommunicate OK [18:01:15]CreateOFDProtocolMessage done [18:01:15]OFDSenderStorePacket 162605 [18:01:15]StoreOFDPacket docnum=162605 [18:01:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C0 78 07 01 96 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 EB C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7B 02 00 35 04 06 00 DF 02 66 AC 46 A2 3D 75 F7 07 EF DE C0 9C [18:01:15]CheckFolder [18:01:15]dirname=/storage/ofd_packets [18:01:15]CheckFolder done [18:01:15]ProducePacketName [18:01:15]name=ofd_packets/00162605 [18:01:15]NVStorageSaveData ofd_packets/00162605 [18:01:15]File name is /storage/ofd_packets/00162605 [18:01:15]Write 301 bytes [18:01:15]NVStorageSaveData done [18:01:15]OFDSenderStorePacket done [18:01:15]KKMCreateOFDPacket done [18:01:15]NVStorageSaveData kkm_last_timestamp [18:01:15]File name is /storage/kkm_last_timestamp [18:01:15]Write 4 bytes [18:01:15]NVStorageSaveData done [18:01:15]ExternCall_PrintAddStr [18:01:15]wPrintStart [18:01:15]Write to MH i2c: 01 00 00 FE 19 17 [18:01:15]Write i2c OK [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: 01 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: 01 07 00 [18:01:15]MH_I2C_Read... [18:01:15]Read from MH i2c: 01 07 00 FE 19 00 00 00 00 00 FF 0F 2C [18:01:15]RasterBufferAndPrint [18:01:15]line Счет N : (1)1319171 [18:01:15]line ИНН: 02508201610067 [18:01:15]line Контрольно-Кассовый Чек [18:01:15]line ПРОДАЖА [18:01:15]line ТРК (МРК, ГНК) : 53 [18:01:15]line Товар: 2710124130 [18:01:15]line Аи-92-К-5 [18:01:15]line 7.550 * 66.30 [18:01:15]line = 500.57 [18:01:15]line НДС 12% НСП 1% [18:01:15]line > о реализуемом товаре [18:01:15]line ОКРУГЛЕНИЕ: -0.57 [18:01:15]line ИТОГО: 500.00 [18:01:15]line Внесено: 500.00 [18:01:15]line СДАЧА: 0.00 [18:01:15]line НСП 1% : 4.43 [18:01:15]line НДС 12% : 53.16 [18:01:15]line Наличными: 500.00 [18:01:15]line Безнал.: 0.00 [18:01:15]line Место: АЗС № 140 "Партнер Нефть" [18:01:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:01:15]line СНО: Общий режим [18:01:15]line Чек 273 13.07.2024 18:01 [18:01:15]line Смена: 462 ФФД: 1.0 [18:01:15]line ЗНМ: 0300000129 [18:01:15]line РНМ: 0000000000090858 [18:01:15]line Версия ККМ: 001 [18:01:15]line ФМ: 0000000000874899 [18:01:15]line ФД: 162605 [18:01:15]line ФПД: 245201405494946 [18:01:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180115&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162605&fm=245201405494946&tin=02508201610067®Number=0000000000090858&sum=50000 [18:01:16]OFD Sender: Processing packet 162605 [packets to send 106, broken 105] [18:01:16]ProducePacketName [18:01:16]name=ofd_packets/00162605 [18:01:16]OFD Sender: To server: pG, [18:01:16]CommunicateWithHost lk.salyk.kg:30040 [18:01:16]ConnectInit lk.salyk.kg [18:01:16]written 0, free lines is 4095 [18:01:16]Connected sock=11 [18:01:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C0 78 07 01 96 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 EB C0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2D 7B 02 00 35 04 06 00 DF 02 66 AC 46 A2 3D 75 F7 07 EF DE C0 9C [18:01:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CF 1D 47 00 05 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 34 38 39 39 10 04 04 00 2D 7B 02 00 F4 03 04 00 F9 6C 92 66 B6 04 01 00 00 66 F8 D0 4E B0 45 94 82 [18:01:16]CommunicateWithHost err = 0 [18:01:16]CheckOFDResponse [18:01:16]1017 (14) - 77093643461234 [18:01:16]1041 (16) - 0000000000874899 [18:01:16]1040 (4) - 162605 [18:01:16]1012 (4) - 13.07.2024 12:03 [18:01:16]1206 (1) - 0 [18:01:16]OFD Sender: Remove packet 162605 [18:01:16]ProducePacketName [18:01:16]name=ofd_packets/00162605 [18:01:16]NVStorageDeleteData [18:01:16]Write to MH i2c: 01 00 00 29 1A 43 [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: 01 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: 01 07 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: 01 07 00 29 1A 00 00 00 00 00 DF 0C 35 [18:01:16]RasterBufferAndPrint [18:01:16]line [18:01:16]line [18:01:16]line [18:01:16]line [18:01:16]line [18:01:16]written 0, free lines is 3301 [18:01:16]MH_Cut [18:01:16]Write to MH i2c: D1 01 00 30 1A 01 1C [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: D1 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: D1 01 00 [18:01:16]MH_I2C_Read... [18:01:16]Read from MH i2c: D1 01 00 30 1A 00 1B [18:01:16]Write to MH i2c: 01 00 00 31 1A 4B [18:01:16]Write i2c OK [18:01:16]MH_I2C_Read... [18:01:16]OFD Sender: No OFD packet to send [18:01:17]*** Cut start [18:01:17]*** Purtial cut [18:01:17]*** Stage 1: CUTSNS_PIN = 1 [18:01:17]Read from MH i2c: 01 [18:01:17]MH_I2C_Read... [18:01:17]*** Stop cut motor [18:01:17]*** Cut end [18:01:17]Read from MH i2c: 01 07 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 FF 0F 60 [18:01:17]process_action close_receipt done [18:01:17]requested_data is exist [18:01:17]produce_requested_data [18:01:17]requested_item fm.sn is exist - process it [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 11 00 00 [18:01:17]Write to MH i2c: E2 08 00 32 1A 80 11 00 00 00 00 00 00 C6 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 17 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 17 00 32 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 26 [18:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:01:17]wFMCommunicate OK [18:01:17]requested_item fd.num is exist - process it [18:01:17]SAM_PROTO_GetFieldsCounters [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 13 00 00 [18:01:17]Write to MH i2c: E2 08 00 33 1A 80 13 00 00 00 00 00 00 C9 [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 62 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 62 00 33 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [18: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:17]wFMCommunicate OK [18:01:17]SAM_PROTO_GetFieldsCounters done [18:01:17]requested_item shift.num is exist - process it [18:01:17]requested_item shift.opened is exist - process it [18:01:17]req_shift_opened [18:01:17]FM_GetShiftState [18:01:17]SAM_PROTO_GetShiftState [18:01:17]wFMCommunicate request_size=4 [18:01:17]MH_SAM_APDU [18:01:17]CAPDU: 80 13 01 00 [18:01:17]Write to MH i2c: E2 08 00 34 1A 80 13 01 00 00 00 00 00 CB [18:01:17]Write i2c OK [18:01:17]MH_I2C_Read... [18:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:17]Read from MH i2c: E2 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 0E 00 [18:01:17]MH_I2C_Read... [18:01:17]Read from MH i2c: E2 0E 00 34 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C5 [18:01:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:01:17]wFMCommunicate OK [18:01:17]SAM_PROTO_GetShiftState done [18:01:17]FM_GetShiftState done [18:01:17]req_shift_opened done [18:01:17]requested_item shift.open_date is exist - process it [18:01:17]req_shift_open_date [18:01:17]req_shift_open_date done [18:01:17]produce_requested_data done [18:01:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162605,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:01:17]process_action_free close_receipt [18:01:17]json_value_free [18:01:17]json_value_free done [18:01:17]process_json_proto returns [18:01:17]Send response to host [18:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162605,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:01:17]free response buf [18:01:17]execute_script done [18:01:17]execute_script returns [18:01:17]free content buf [18:01:17]Sock 9.Close socket [18:01:17]Sock 9.Thread stoped [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:39]accept exits with 7 [18:02:39]New connection [18:02:39]New thread 3067510116 created [18:02:39]Thread 3067366756 joined [18:02:39]Waiting for new connection... [18:02:39] Sock 7.Parse request [18:02:39]Sock 7.Check first char [18:02:39]Sock 7.First char is OK [18:02:39]request: POST /json_proto HTTP/1.0 [18:02:39]Method: POST [18:02:39]URL: /json_proto [18:02:39]Method is POST - this is cgi request [18:02:39]url: /json_proto [18:02:39]query_string will be loaded in cgi processing [18:02:39]execute_cgi json_proto POST (null) [18:02:39]execute_cgi path=json_proto method=POST [18:02:39]POST find Content-Length [18:02:39]Host: 172.17.39.67:8080 [18:02:39]Content-Length: 688 [18:02:39]Content-Type: application/json [18:02:39] [18:02:39]POST finish read [18:02:39]Found Content-Length = 688 [18:02:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:02:39]execute_script... [18:02: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)1319170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:02:39]POST & json_proto [18:02:39]process_json_proto [18:02:39]json parsed OK: [18:02:39]protocol is kg_v1.0 [18:02:39]action value=close_receipt [18:02:39]process_action close_receipt [18:02:39]cmd_close_receipt [18:02:39]MH_GetDate [18:02:39]Write to MH i2c: F0 00 00 35 1A 3E [18:02:39]Write i2c OK [18:02:39]MH_I2C_Read... [18:02:39]Read from MH i2c: F0 [18:02:39]MH_I2C_Read... [18:02:39]Read from MH i2c: F0 09 00 [18:02:39]MH_I2C_Read... [18:02:39]Read from MH i2c: F0 09 00 35 1A 00 40 C1 92 66 86 7C 92 66 3A [18:02:39]GetLastDocTimeStamp 1720893675 [18:02:39]current date 1720893760 [18:02:39]FM_GetShiftState [18:02:39]SAM_PROTO_GetShiftState [18:02:39]wFMCommunicate request_size=4 [18:02:39]MH_SAM_APDU [18:02:39]CAPDU: 80 13 01 00 [18:02:39]Write to MH i2c: E2 08 00 36 1A 80 13 01 00 00 00 00 00 CD [18:02:39]Write i2c OK [18:02:39]MH_I2C_Read... [18:02:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:39]Read from MH i2c: E2 [18:02:39]MH_I2C_Read... [18:02:39]Read from MH i2c: E2 0E 00 [18:02:39]MH_I2C_Read... [18:02:39]Read from MH i2c: E2 0E 00 36 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C7 [18:02:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:02:39]wFMCommunicate OK [18:02:39]SAM_PROTO_GetShiftState done [18:02:39]FM_GetShiftState done [18:02:39]opened in 1720828979 [18:02:39]opened+sec_in_day 1720915379 [18:02:39]quantity*price = 100042 [18:02:39]sum+1 = 100044 [18:02:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 274 13.07.2024 18:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162606 ФПД: 88429912199651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180240&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162606&fm=88429912199651&tin=02508201610067®Number=0000000000090858&sum=100000 [18:02:40]StoreToDocumentArchive [18:02:40]shift 462 fd 162606 [18:02:40]save to /storage/0462/doc_00162606 [18:02:40]save last doc name /storage/0462/doc_00162606 to /storage/kkm_last_doc_name [18:02:40]save OK [18:02:40]Clear old archive folders... [18:02:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:02:40]tlvbuf is 006117B0 [18:02:40]SAM_PROTO_ClearQueue [18:02:40]wFMCommunicate request_size=4 [18:02:40]MH_SAM_APDU [18:02:40]CAPDU: 80 09 00 00 [18:02:40]Write to MH i2c: E2 08 00 43 1A 80 09 00 00 00 00 00 00 CF [18:02:40]Write i2c OK [18:02:40]MH_I2C_Read... [18:02:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:40]Read from MH i2c: E2 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 03 00 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 03 00 43 1A 00 90 00 D1 [18:02:40]RAPDU: 90 00 [18:02:40]wFMCommunicate OK [18:02:40]SAM_PROTO_ClearQueue done [18:02:40]KKMCreateOFDPacket [18:02:40]OFDProtocolAddRootSTLVToBuf [18:02:40]FM_MakeSignedData [18:02:40]FM_MakeSignedData [18:02:40]SAM_PROTO_SignData [18:02:40]wFMCommunicate request_size=4 [18:02:40]MH_SAM_APDU [18:02:40]CAPDU: 80 0D 01 02 [18:02:40]Write to MH i2c: E2 08 00 44 1A 80 0D 01 02 00 00 00 00 D7 [18:02:40]Write i2c OK [18:02:40]MH_I2C_Read... [18:02:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:40]Read from MH i2c: E2 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 03 00 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 03 00 44 1A 00 90 00 D2 [18:02:40]RAPDU: 90 00 [18:02:40]wFMCommunicate OK [18:02:40]wFMCommunicate request_size=255 [18:02:40]MH_SAM_APDU [18:02:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 12 01 00 00 F4 03 04 00 40 C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7B 02 00 35 04 06 00 [18:02:40]Write to MH i2c: E2 02 01 45 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 12 01 00 00 F4 03 04 00 40 C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7B 02 00 35 04 06 00 00 00 F6 [18:02:40]Write i2c OK [18:02:40]MH_I2C_Read... [18:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:40]Read from MH i2c: E2 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 03 00 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 03 00 45 1A 00 90 00 D3 [18:02:40]RAPDU: 90 00 [18:02:40]wFMCommunicate OK [18:02:40]wFMCommunicate request_size=11 [18:02:40]MH_SAM_APDU [18:02:40]CAPDU: 80 0D 02 02 06 50 6D 31 81 11 E3 [18:02:40]Write to MH i2c: E2 0E 00 46 1A 80 0D 02 02 06 00 50 6D 31 81 11 E3 00 00 49 [18:02:40]Write i2c OK [18:02:40]MH_I2C_Read... [18:02:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:40]Read from MH i2c: E2 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 03 00 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 03 00 46 1A 00 90 00 D4 [18:02:40]RAPDU: 90 00 [18:02:40]wFMCommunicate OK [18:02:40]wFMCommunicate request_size=4 [18:02:40]MH_SAM_APDU [18:02:40]CAPDU: 80 0D 03 02 [18:02:40]Write to MH i2c: E2 08 00 47 1A 80 0D 03 02 00 00 00 00 DC [18:02:40]Write i2c OK [18:02:40]MH_I2C_Read... [18:02:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:40]Read from MH i2c: E2 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 0B 00 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 0B 00 47 1A 00 20 E4 B3 18 1F DD C3 BD 90 00 28 [18:02:40]RAPDU: 20 E4 B3 18 1F DD C3 BD 90 00 [18:02:40]wFMCommunicate OK [18:02:40]SAM_PROTO_SignData done [18:02:40]FM_MakeSignedData done [18:02:40]CreateOFDProtocolMessage [18:02:40]wFMCommunicate request_size=4 [18:02:40]MH_SAM_APDU [18:02:40]CAPDU: 80 11 00 00 [18:02:40]Write to MH i2c: E2 08 00 48 1A 80 11 00 00 00 00 00 00 DC [18:02:40]Write i2c OK [18:02:40]MH_I2C_Read... [18:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:40]Read from MH i2c: E2 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 17 00 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: E2 17 00 48 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3C [18:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:02:40]wFMCommunicate OK [18:02:40]CreateOFDProtocolMessage done [18:02:40]OFDSenderStorePacket 162606 [18:02:40]StoreOFDPacket docnum=162606 [18:02:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 03 DF 08 01 FA 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 12 01 00 00 F4 03 04 00 40 C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7B 02 00 35 04 06 00 50 6D 31 81 11 E3 20 E4 B3 18 1F DD C3 BD [18:02:40]CheckFolder [18:02:40]dirname=/storage/ofd_packets [18:02:40]CheckFolder done [18:02:40]ProducePacketName [18:02:40]name=ofd_packets/00162606 [18:02:40]NVStorageSaveData ofd_packets/00162606 [18:02:40]File name is /storage/ofd_packets/00162606 [18:02:40]Write 302 bytes [18:02:40]NVStorageSaveData done [18:02:40]OFDSenderStorePacket done [18:02:40]KKMCreateOFDPacket done [18:02:40]NVStorageSaveData kkm_last_timestamp [18:02:40]File name is /storage/kkm_last_timestamp [18:02:40]Write 4 bytes [18:02:40]NVStorageSaveData done [18:02:40]ExternCall_PrintAddStr [18:02:40]wPrintStart [18:02:40]Write to MH i2c: 01 00 00 49 1A 63 [18:02:40]Write i2c OK [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: 01 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: 01 07 00 [18:02:40]MH_I2C_Read... [18:02:40]Read from MH i2c: 01 07 00 49 1A 00 00 00 00 00 FF 0F 78 [18:02:40]RasterBufferAndPrint [18:02:40]line Счет N : (1)1319170 [18:02:40]line ИНН: 02508201610067 [18:02:40]line Контрольно-Кассовый Чек [18:02:40]line ПРОДАЖА [18:02:40]line ТРК (МРК, ГНК) : 21 [18:02:40]line Товар: 2710194210 [18:02:40]line ДТ(л)-К-5 [18:02:40]line 13.780 * 72.60 [18:02:40]line = 1000.43 [18:02:40]line НДС 12% НСП 1% [18:02:40]line > о реализуемом товаре [18:02:40]line ОКРУГЛЕНИЕ: -0.43 [18:02:40]line ИТОГО: 1000.00 [18:02:40]line Внесено: 1000.00 [18:02:40]line СДАЧА: 0.00 [18:02:40]line НСП 1% : 8.85 [18:02:40]line НДС 12% : 106.24 [18:02:40]line Наличными: 1000.00 [18:02:40]line Безнал.: 0.00 [18:02:40]line Место: АЗС № 140 "Партнер Нефть" [18:02:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:02:40]line СНО: Общий режим [18:02:40]line Чек 274 13.07.2024 18:02 [18:02:40]line Смена: 462 ФФД: 1.0 [18:02:40]line ЗНМ: 0300000129 [18:02:40]line РНМ: 0000000000090858 [18:02:40]line Версия ККМ: 001 [18:02:40]line ФМ: 0000000000874899 [18:02:40]line ФД: 162606 [18:02:40]line ФПД: 88429912199651 [18:02:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180240&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162606&fm=88429912199651&tin=02508201610067®Number=0000000000090858&sum=100000 [18:02:41]OFD Sender: Processing packet 162606 [packets to send 106, broken 105] [18:02:41]ProducePacketName [18:02:41]name=ofd_packets/00162606 [18:02:41]OFD Sender: To server: pG, [18:02:41]CommunicateWithHost lk.salyk.kg:30040 [18:02:41]ConnectInit lk.salyk.kg [18:02:41]written 0, free lines is 4095 [18:02:41]Connected sock=10 [18:02:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 03 DF 08 01 FA 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 12 01 00 00 F4 03 04 00 40 C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7B 02 00 35 04 06 00 50 6D 31 81 11 E3 20 E4 B3 18 1F DD C3 BD [18:02:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 EE F5 47 00 25 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2E 7B 02 00 F4 03 04 00 4E 6D 92 66 B6 04 01 00 00 E1 23 88 4D 5A 1A 5B 5A [18:02:41]CommunicateWithHost err = 0 [18:02:41]CheckOFDResponse [18:02:41]1017 (14) - 77093643461234 [18:02:41]1041 (16) - 0000000000874899 [18:02:41]1040 (4) - 162606 [18:02:41]1012 (4) - 13.07.2024 12:04 [18:02:41]1206 (1) - 0 [18:02:41]OFD Sender: Remove packet 162606 [18:02:41]ProducePacketName [18:02:41]name=ofd_packets/00162606 [18:02:41]NVStorageDeleteData [18:02:41]Write to MH i2c: 01 00 00 74 1A 8E [18:02:41]Write i2c OK [18:02:41]MH_I2C_Read... [18:02:41]Read from MH i2c: 01 [18:02:41]MH_I2C_Read... [18:02:41]Read from MH i2c: 01 07 00 [18:02:41]MH_I2C_Read... [18:02:41]Read from MH i2c: 01 07 00 74 1A 00 00 00 00 00 EF 0C 90 [18:02:41]RasterBufferAndPrint [18:02:41]line [18:02:41]line [18:02:41]line [18:02:41]line [18:02:41]line [18:02:41]written 0, free lines is 3317 [18:02:41]MH_Cut [18:02:41]Write to MH i2c: D1 01 00 7B 1A 01 67 [18:02:41]Write i2c OK [18:02:41]MH_I2C_Read... [18:02:41]Read from MH i2c: D1 [18:02:41]MH_I2C_Read... [18:02:41]Read from MH i2c: D1 01 00 [18:02:41]MH_I2C_Read... [18:02:41]Read from MH i2c: D1 01 00 7B 1A 00 66 [18:02:41]Write to MH i2c: 01 00 00 7C 1A 96 [18:02:41]Write i2c OK [18:02:41]MH_I2C_Read... [18:02:41]OFD Sender: No OFD packet to send [18:02:42]*** Cut start [18:02:42]*** Purtial cut [18:02:42]*** CUTSNS_PIN = 0 [18:02:42]*** Stage 1: CUTSNS_PIN = 1 [18:02:44]Read from MH i2c: 01 [18:02:44]MH_I2C_Read... [18:02:44]*** Stop cut motor [18:02:44]*** Cut end [18:02:44]Read from MH i2c: 01 07 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: 01 07 00 7C 1A 00 00 00 00 00 FF 0F AB [18:02:44]process_action close_receipt done [18:02:44]requested_data is exist [18:02:44]produce_requested_data [18:02:44]requested_item fm.sn is exist - process it [18:02:44]wFMCommunicate request_size=4 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 11 00 00 [18:02:44]Write to MH i2c: E2 08 00 7D 1A 80 11 00 00 00 00 00 00 11 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 17 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 17 00 7D 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 71 [18:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:02:44]wFMCommunicate OK [18:02:44]requested_item fd.num is exist - process it [18:02:44]SAM_PROTO_GetFieldsCounters [18:02:44]wFMCommunicate request_size=4 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 13 00 00 [18:02:44]Write to MH i2c: E2 08 00 7E 1A 80 13 00 00 00 00 00 00 14 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 62 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 62 00 7E 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [18:02:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:44]wFMCommunicate OK [18:02:44]SAM_PROTO_GetFieldsCounters done [18:02:44]requested_item shift.num is exist - process it [18:02:44]requested_item shift.opened is exist - process it [18:02:44]req_shift_opened [18:02:44]FM_GetShiftState [18:02:44]SAM_PROTO_GetShiftState [18:02:44]wFMCommunicate request_size=4 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 13 01 00 [18:02:44]Write to MH i2c: E2 08 00 7F 1A 80 13 01 00 00 00 00 00 16 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 0E 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 0E 00 7F 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 10 [18:02:44]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:02:44]wFMCommunicate OK [18:02:44]SAM_PROTO_GetShiftState done [18:02:44]FM_GetShiftState done [18:02:44]req_shift_opened done [18:02:44]requested_item shift.open_date is exist - process it [18:02:44]req_shift_open_date [18:02:44]req_shift_open_date done [18:02:44]produce_requested_data done [18:02:44]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162606,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:02:44]process_action_free close_receipt [18:02:44]json_value_free [18:02:44]json_value_free done [18:02:44]process_json_proto returns [18:02:44]Send response to host [18:02:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162606,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:02:44]free response buf [18:02:44]execute_script done [18:02:44]execute_script returns [18:02:44]free content buf [18:02:44]Sock 7.Close socket [18:02:44]Sock 7.Thread stoped [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:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:09]accept exits with 9 [18:05:09]New connection [18:05:09]New thread 3067366756 created [18:05:09]Thread 3067510116 joined [18:05:09]Waiting for new connection... [18:05:09] Sock 9.Parse request [18:05:09]Sock 9.Check first char [18:05:09]Sock 9.First char is OK [18:05:09]request: POST /json_proto HTTP/1.0 [18:05:09]Method: POST [18:05:09]URL: /json_proto [18:05:09]Method is POST - this is cgi request [18:05:09]url: /json_proto [18:05:09]query_string will be loaded in cgi processing [18:05:09]execute_cgi json_proto POST (null) [18:05:09]execute_cgi path=json_proto method=POST [18:05:09]POST find Content-Length [18:05:09]Host: 172.17.39.67:8080 [18:05:09]Content-Length: 688 [18:05:09]Content-Type: application/json [18:05:09] [18:05:09]POST finish read [18:05:09]Found Content-Length = 688 [18:05:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:05:09]execute_script... [18:05: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)1319172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:05:09]POST & json_proto [18:05:09]process_json_proto [18:05:09]json parsed OK: [18:05:09]protocol is kg_v1.0 [18:05:09]action value=close_receipt [18:05:09]process_action close_receipt [18:05:09]cmd_close_receipt [18:05:09]MH_GetDate [18:05:09]Write to MH i2c: F0 00 00 80 1A 89 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: F0 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: F0 09 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: F0 09 00 80 1A 00 D6 C1 92 66 86 7C 92 66 1B [18:05:09]GetLastDocTimeStamp 1720893760 [18:05:09]current date 1720893910 [18:05:09]FM_GetShiftState [18:05:09]SAM_PROTO_GetShiftState [18:05:09]wFMCommunicate request_size=4 [18:05:09]MH_SAM_APDU [18:05:09]CAPDU: 80 13 01 00 [18:05:09]Write to MH i2c: E2 08 00 81 1A 80 13 01 00 00 00 00 00 18 [18:05:09]Write i2c OK [18:05:09]MH_I2C_Read... [18:05:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:09]Read from MH i2c: E2 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 0E 00 [18:05:09]MH_I2C_Read... [18:05:09]Read from MH i2c: E2 0E 00 81 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 12 [18:05:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:05:09]wFMCommunicate OK [18:05:09]SAM_PROTO_GetShiftState done [18:05:09]FM_GetShiftState done [18:05:09]opened in 1720828979 [18:05:09]opened+sec_in_day 1720915379 [18:05:09]quantity*price = 350004 [18:05:09]sum+1 = 350006 [18:05:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.97 НДС 12% : 371.69 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 275 13.07.2024 18:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162607 ФПД: 158921569014083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180510&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162607&fm=158921569014083&tin=02508201610067®Number=0000000000090858&sum=350000 [18:05:10]StoreToDocumentArchive [18:05:10]shift 462 fd 162607 [18:05:10]save to /storage/0462/doc_00162607 [18:05:10]save last doc name /storage/0462/doc_00162607 to /storage/kkm_last_doc_name [18:05:10]save OK [18:05:10]Clear old archive folders... [18:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:05:10]tlvbuf is 006121D0 [18:05:10]SAM_PROTO_ClearQueue [18:05:10]wFMCommunicate request_size=4 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 09 00 00 [18:05:10]Write to MH i2c: E2 08 00 8E 1A 80 09 00 00 00 00 00 00 1A [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 8E 1A 00 90 00 1C [18:05:10]RAPDU: 90 00 [18:05:10]wFMCommunicate OK [18:05:10]SAM_PROTO_ClearQueue done [18:05:10]KKMCreateOFDPacket [18:05:10]OFDProtocolAddRootSTLVToBuf [18:05:10]FM_MakeSignedData [18:05:10]FM_MakeSignedData [18:05:10]SAM_PROTO_SignData [18:05:10]wFMCommunicate request_size=4 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 0D 01 02 [18:05:10]Write to MH i2c: E2 08 00 8F 1A 80 0D 01 02 00 00 00 00 22 [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:10]Read from MH i2c: E2 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 [18:05:10]MH_I2C_Read... [18:05:10]Read from MH i2c: E2 03 00 8F 1A 00 90 00 1D [18:05:10]RAPDU: 90 00 [18:05:10]wFMCommunicate OK [18:05:10]wFMCommunicate request_size=255 [18:05:10]MH_SAM_APDU [18:05:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 13 01 00 00 F4 03 04 00 D6 C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7B 02 00 35 04 06 00 [18:05:10]Write to MH i2c: E2 02 01 90 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 13 01 00 00 F4 03 04 00 D6 C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7B 02 00 35 04 06 00 00 00 AD [18:05:10]Write i2c OK [18:05:10]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 90 1A 00 90 00 1E [18:05:11]RAPDU: 90 00 [18:05:11]wFMCommunicate OK [18:05:11]wFMCommunicate request_size=11 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 0D 02 02 06 90 89 CF AB 11 43 [18:05:11]Write to MH i2c: E2 0E 00 91 1A 80 0D 02 02 06 00 90 89 CF AB 11 43 00 00 18 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 03 00 91 1A 00 90 00 1F [18:05:11]RAPDU: 90 00 [18:05:11]wFMCommunicate OK [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 0D 03 02 [18:05:11]Write to MH i2c: E2 08 00 92 1A 80 0D 03 02 00 00 00 00 27 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 0B 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 0B 00 92 1A 00 5D 3D 05 50 EB 70 A8 E6 90 00 00 [18:05:11]RAPDU: 5D 3D 05 50 EB 70 A8 E6 90 00 [18:05:11]wFMCommunicate OK [18:05:11]SAM_PROTO_SignData done [18:05:11]FM_MakeSignedData done [18:05:11]CreateOFDProtocolMessage [18:05:11]wFMCommunicate request_size=4 [18:05:11]MH_SAM_APDU [18:05:11]CAPDU: 80 11 00 00 [18:05:11]Write to MH i2c: E2 08 00 93 1A 80 11 00 00 00 00 00 00 27 [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:11]Read from MH i2c: E2 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 17 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: E2 17 00 93 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 87 [18:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:05:11]wFMCommunicate OK [18:05:11]CreateOFDProtocolMessage done [18:05:11]OFDSenderStorePacket 162607 [18:05:11]StoreOFDPacket docnum=162607 [18:05:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7A E1 08 01 D0 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 13 01 00 00 F4 03 04 00 D6 C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7B 02 00 35 04 06 00 90 89 CF AB 11 43 5D 3D 05 50 EB 70 A8 E6 [18:05:11]CheckFolder [18:05:11]dirname=/storage/ofd_packets [18:05:11]CheckFolder done [18:05:11]ProducePacketName [18:05:11]name=ofd_packets/00162607 [18:05:11]NVStorageSaveData ofd_packets/00162607 [18:05:11]File name is /storage/ofd_packets/00162607 [18:05:11]Write 302 bytes [18:05:11]NVStorageSaveData done [18:05:11]OFDSenderStorePacket done [18:05:11]KKMCreateOFDPacket done [18:05:11]NVStorageSaveData kkm_last_timestamp [18:05:11]File name is /storage/kkm_last_timestamp [18:05:11]Write 4 bytes [18:05:11]NVStorageSaveData done [18:05:11]OFD Sender: Processing packet 162607 [packets to send 106, broken 105] [18:05:11]ProducePacketName [18:05:11]name=ofd_packets/00162607 [18:05:11]OFD Sender: To server: pG, [18:05:11]CommunicateWithHost lk.salyk.kg:30040 [18:05:11]ConnectInit lk.salyk.kg [18:05:11]ExternCall_PrintAddStr [18:05:11]wPrintStart [18:05:11]Write to MH i2c: 01 00 00 94 1A AE [18:05:11]Write i2c OK [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 07 00 [18:05:11]MH_I2C_Read... [18:05:11]Read from MH i2c: 01 07 00 94 1A 00 00 00 00 00 FF 0F C3 [18:05:11]RasterBufferAndPrint [18:05:11]line Счет N : (1)1319172 [18:05:11]line ИНН: 02508201610067 [18:05:11]line Контрольно-Кассовый Чек [18:05:11]line ПРОДАЖА [18:05:11]line ТРК (МРК, ГНК) : 21 [18:05:11]line Товар: 2710194210 [18:05:11]line ДТ(л)-К-5 [18:05:11]line 48.210 * 72.60 [18:05:11]line = 3500.05 [18:05:11]line НДС 12% НСП 1% [18:05:11]line > о реализуемом товаре [18:05:11]line ОКРУГЛЕНИЕ: -0.05 [18:05:11]line ИТОГО: 3500.00 [18:05:11]line Внесено: 3500.00 [18:05:11]line СДАЧА: 0.00 [18:05:11]line НСП 1% : 30.97 [18:05:11]line НДС 12% : 371.69 [18:05:11]line Наличными: 3500.00 [18:05:11]line Безнал.: 0.00 [18:05:11]line Место: АЗС № 140 "Партнер Нефть" [18:05:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:05:11]line СНО: Общий режим [18:05:11]line Чек 275 13.07.2024 18:05 [18:05:11]line Смена: 462 ФФД: 1.0 [18:05:11]line ЗНМ: 0300000129 [18:05:11]line РНМ: 0000000000090858 [18:05:11]line Версия ККМ: 001 [18:05:11]line ФМ: 0000000000874899 [18:05:11]line ФД: 162607 [18:05:11]line ФПД: 158921569014083 [18:05:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180510&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162607&fm=158921569014083&tin=02508201610067®Number=0000000000090858&sum=350000 [18:05:11]Connected sock=11 [18:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7A E1 08 01 D0 DE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 13 01 00 00 F4 03 04 00 D6 C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7B 02 00 35 04 06 00 90 89 CF AB 11 43 5D 3D 05 50 EB 70 A8 E6 [18:05:11]written 0, free lines is 4095 [18:05:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 35 C6 47 00 A8 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 2F 7B 02 00 F4 03 04 00 E5 6D 92 66 B6 04 01 00 00 6C 55 0E 2E B7 A8 5A DB [18:05:11]CommunicateWithHost err = 0 [18:05:11]CheckOFDResponse [18:05:11]1017 (14) - 77093643461234 [18:05:11]1041 (16) - 0000000000874899 [18:05:11]1040 (4) - 162607 [18:05:11]1012 (4) - 13.07.2024 12:07 [18:05:11]1206 (1) - 0 [18:05:11]OFD Sender: Remove packet 162607 [18:05:11]ProducePacketName [18:05:11]name=ofd_packets/00162607 [18:05:11]NVStorageDeleteData [18:05:12]Write to MH i2c: 01 00 00 BF 1A D9 [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: 01 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: 01 07 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: 01 07 00 BF 1A 00 00 00 00 00 EE 0C DA [18:05:12]RasterBufferAndPrint [18:05:12]line [18:05:12]line [18:05:12]line [18:05:12]line [18:05:12]line [18:05:12]written 0, free lines is 3319 [18:05:12]MH_Cut [18:05:12]Write to MH i2c: D1 01 00 C6 1A 01 B2 [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: D1 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: D1 01 00 [18:05:12]MH_I2C_Read... [18:05:12]Read from MH i2c: D1 01 00 C6 1A 00 B1 [18:05:12]Write to MH i2c: 01 00 00 C7 1A E1 [18:05:12]Write i2c OK [18:05:12]MH_I2C_Read... [18:05:12]OFD Sender: No OFD packet to send [18:05:12]*** Cut start [18:05:12]*** Purtial cut [18:05:12]*** Stage 1: CUTSNS_PIN = 1 [18:05:12]Read from MH i2c: 01 [18:05:12]MH_I2C_Read... [18:05:12]*** Stop cut motor [18:05:13]*** Cut end [18:05:13]Read from MH i2c: 01 07 00 [18:05:13]MH_I2C_Read... [18:05:13]Read from MH i2c: 01 07 00 C7 1A 00 00 00 00 00 FF 0F F6 [18:05:13]process_action close_receipt done [18:05:13]requested_data is exist [18:05:13]produce_requested_data [18:05:13]requested_item fm.sn is exist - process it [18:05:13]wFMCommunicate request_size=4 [18:05:13]MH_SAM_APDU [18:05:13]CAPDU: 80 11 00 00 [18:05:13]Write to MH i2c: E2 08 00 C8 1A 80 11 00 00 00 00 00 00 5C [18:05:13]Write i2c OK [18:05:13]MH_I2C_Read... [18:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:13]Read from MH i2c: E2 [18:05:13]MH_I2C_Read... [18:05:13]Read from MH i2c: E2 17 00 [18:05:13]MH_I2C_Read... [18:05:13]Read from MH i2c: E2 17 00 C8 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BC [18:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:05:13]wFMCommunicate OK [18:05:13]requested_item fd.num is exist - process it [18:05:13]SAM_PROTO_GetFieldsCounters [18:05:13]wFMCommunicate request_size=4 [18:05:13]MH_SAM_APDU [18:05:13]CAPDU: 80 13 00 00 [18:05:13]Write to MH i2c: E2 08 00 C9 1A 80 13 00 00 00 00 00 00 5F [18:05:13]Write i2c OK [18:05:13]MH_I2C_Read... [18:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:13]Read from MH i2c: E2 [18:05:13]MH_I2C_Read... [18:05:13]Read from MH i2c: E2 62 00 [18:05:13]MH_I2C_Read... [18:05:13]Read from MH i2c: E2 62 00 C9 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [18:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 2F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:13]wFMCommunicate OK [18:05:13]SAM_PROTO_GetFieldsCounters done [18:05:13]requested_item shift.num is exist - process it [18:05:13]requested_item shift.opened is exist - process it [18:05:13]req_shift_opened [18:05:13]FM_GetShiftState [18:05:13]SAM_PROTO_GetShiftState [18:05:13]wFMCommunicate request_size=4 [18:05:13]MH_SAM_APDU [18:05:13]CAPDU: 80 13 01 00 [18:05:13]Write to MH i2c: E2 08 00 CA 1A 80 13 01 00 00 00 00 00 61 [18:05:13]Write i2c OK [18:05:13]MH_I2C_Read... [18:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:13]Read from MH i2c: E2 [18:05:13]MH_I2C_Read... [18:05:13]Read from MH i2c: E2 0E 00 [18:05:13]MH_I2C_Read... [18:05:13]Read from MH i2c: E2 0E 00 CA 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5B [18:05:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:05:13]wFMCommunicate OK [18:05:13]SAM_PROTO_GetShiftState done [18:05:13]FM_GetShiftState done [18:05:13]req_shift_opened done [18:05:13]requested_item shift.open_date is exist - process it [18:05:13]req_shift_open_date [18:05:13]req_shift_open_date done [18:05:13]produce_requested_data done [18:05:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162607,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:05:13]process_action_free close_receipt [18:05:13]json_value_free [18:05:13]json_value_free done [18:05:13]process_json_proto returns [18:05:13]Send response to host [18:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162607,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:05:13]free response buf [18:05:13]execute_script done [18:05:13]execute_script returns [18:05:13]free content buf [18:05:13]Sock 9.Close socket [18:05:13]Sock 9.Thread stoped [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:48]accept exits with 7 [18:05:48]New connection [18:05:48]New thread 3067510116 created [18:05:48]Thread 3067366756 joined [18:05:48]Waiting for new connection... [18:05:48] Sock 7.Parse request [18:05:48]Sock 7.Check first char [18:05:48]Sock 7.First char is OK [18:05:48]request: POST /json_proto HTTP/1.0 [18:05:48]Method: POST [18:05:48]URL: /json_proto [18:05:48]Method is POST - this is cgi request [18:05:48]url: /json_proto [18:05:48]query_string will be loaded in cgi processing [18:05:48]execute_cgi json_proto POST (null) [18:05:48]execute_cgi path=json_proto method=POST [18:05:48]POST find Content-Length [18:05:48]Host: 172.17.39.67:8080 [18:05:48]Content-Length: 688 [18:05:48]Content-Type: application/json [18:05:48] [18:05:48]POST finish read [18:05:48]Found Content-Length = 688 [18:05:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.120, "sum" : 1460.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:48]execute_script... [18:05: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)1319173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.120, "sum" : 1460.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1460.00, "total" : 1460.00, "payments": [ { "type": 0, "sum" : 1460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:48]POST & json_proto [18:05:48]process_json_proto [18:05:48]json parsed OK: [18:05:48]protocol is kg_v1.0 [18:05:48]action value=close_receipt [18:05:48]process_action close_receipt [18:05:48]cmd_close_receipt [18:05:48]MH_GetDate [18:05:48]Write to MH i2c: F0 00 00 CB 1A D4 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: F0 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: F0 09 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: F0 09 00 CB 1A 00 FD C1 92 66 86 7C 92 66 8D [18:05:48]GetLastDocTimeStamp 1720893910 [18:05:48]current date 1720893949 [18:05:48]FM_GetShiftState [18:05:48]SAM_PROTO_GetShiftState [18:05:48]wFMCommunicate request_size=4 [18:05:48]MH_SAM_APDU [18:05:48]CAPDU: 80 13 01 00 [18:05:48]Write to MH i2c: E2 08 00 CC 1A 80 13 01 00 00 00 00 00 63 [18:05:48]Write i2c OK [18:05:48]MH_I2C_Read... [18:05:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:48]Read from MH i2c: E2 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0E 00 [18:05:48]MH_I2C_Read... [18:05:48]Read from MH i2c: E2 0E 00 CC 1A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5D [18:05:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:05:48]wFMCommunicate OK [18:05:48]SAM_PROTO_GetShiftState done [18:05:48]FM_GetShiftState done [18:05:48]opened in 1720828979 [18:05:48]opened+sec_in_day 1720915379 [18:05:48]quantity*price = 146071 [18:05:48]sum+1 = 146072 [18:05:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 1460.00 Внесено: 1460.00 СДАЧА: 0.00 НСП 1% : 12.93 НДС 12% : 155.12 Наличными: 1460.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 276 13.07.2024 18:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162608 ФПД: 227937761176909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180549&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162608&fm=227937761176909&tin=02508201610067®Number=0000000000090858&sum=146000 [18:05:49]StoreToDocumentArchive [18:05:49]shift 462 fd 162608 [18:05:49]save to /storage/0462/doc_00162608 [18:05:49]save last doc name /storage/0462/doc_00162608 to /storage/kkm_last_doc_name [18:05:49]save OK [18:05:49]Clear old archive folders... [18:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:05:49]tlvbuf is B6F49E30 [18:05:49]SAM_PROTO_ClearQueue [18:05:49]wFMCommunicate request_size=4 [18:05:49]MH_SAM_APDU [18:05:49]CAPDU: 80 09 00 00 [18:05:49]Write to MH i2c: E2 08 00 D9 1A 80 09 00 00 00 00 00 00 65 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:49]Read from MH i2c: E2 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 03 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 03 00 D9 1A 00 90 00 67 [18:05:49]RAPDU: 90 00 [18:05:49]wFMCommunicate OK [18:05:49]SAM_PROTO_ClearQueue done [18:05:49]KKMCreateOFDPacket [18:05:49]OFDProtocolAddRootSTLVToBuf [18:05:49]FM_MakeSignedData [18:05:49]FM_MakeSignedData [18:05:49]SAM_PROTO_SignData [18:05:49]wFMCommunicate request_size=4 [18:05:49]MH_SAM_APDU [18:05:49]CAPDU: 80 0D 01 02 [18:05:49]Write to MH i2c: E2 08 00 DA 1A 80 0D 01 02 00 00 00 00 6D [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:49]Read from MH i2c: E2 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 03 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 03 00 DA 1A 00 90 00 68 [18:05:49]RAPDU: 90 00 [18:05:49]wFMCommunicate OK [18:05:49]wFMCommunicate request_size=255 [18:05:49]MH_SAM_APDU [18:05:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 97 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FD C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7B 02 00 35 04 06 00 [18:05:49]Write to MH i2c: E2 02 01 DB 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 97 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FD C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7B 02 00 35 04 06 00 00 00 3A [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:49]Read from MH i2c: E2 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 03 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 03 00 DB 1A 00 90 00 69 [18:05:49]RAPDU: 90 00 [18:05:49]wFMCommunicate OK [18:05:49]wFMCommunicate request_size=11 [18:05:49]MH_SAM_APDU [18:05:49]CAPDU: 80 0D 02 02 06 CF 4E E5 49 2D 4D [18:05:49]Write to MH i2c: E2 0E 00 DC 1A 80 0D 02 02 06 00 CF 4E E5 49 2D 4D 00 00 41 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:49]Read from MH i2c: E2 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 03 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 03 00 DC 1A 00 90 00 6A [18:05:49]RAPDU: 90 00 [18:05:49]wFMCommunicate OK [18:05:49]wFMCommunicate request_size=4 [18:05:49]MH_SAM_APDU [18:05:49]CAPDU: 80 0D 03 02 [18:05:49]Write to MH i2c: E2 08 00 DD 1A 80 0D 03 02 00 00 00 00 72 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:49]Read from MH i2c: E2 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 0B 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 0B 00 DD 1A 00 22 3D CC C0 39 97 D0 56 90 00 54 [18:05:49]RAPDU: 22 3D CC C0 39 97 D0 56 90 00 [18:05:49]wFMCommunicate OK [18:05:49]SAM_PROTO_SignData done [18:05:49]FM_MakeSignedData done [18:05:49]CreateOFDProtocolMessage [18:05:49]wFMCommunicate request_size=4 [18:05:49]MH_SAM_APDU [18:05:49]CAPDU: 80 11 00 00 [18:05:49]Write to MH i2c: E2 08 00 DE 1A 80 11 00 00 00 00 00 00 72 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:49]Read from MH i2c: E2 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 17 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: E2 17 00 DE 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D2 [18:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:05:49]wFMCommunicate OK [18:05:49]CreateOFDProtocolMessage done [18:05:49]OFDSenderStorePacket 162608 [18:05:49]StoreOFDPacket docnum=162608 [18:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 34 59 08 01 41 AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 97 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FD C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7B 02 00 35 04 06 00 CF 4E E5 49 2D 4D 22 3D CC C0 39 97 D0 56 [18:05:49]CheckFolder [18:05:49]dirname=/storage/ofd_packets [18:05:49]CheckFolder done [18:05:49]ProducePacketName [18:05:49]name=ofd_packets/00162608 [18:05:49]NVStorageSaveData ofd_packets/00162608 [18:05:49]File name is /storage/ofd_packets/00162608 [18:05:49]Write 302 bytes [18:05:49]NVStorageSaveData done [18:05:49]OFDSenderStorePacket done [18:05:49]KKMCreateOFDPacket done [18:05:49]NVStorageSaveData kkm_last_timestamp [18:05:49]File name is /storage/kkm_last_timestamp [18:05:49]Write 4 bytes [18:05:49]NVStorageSaveData done [18:05:49]ExternCall_PrintAddStr [18:05:49]wPrintStart [18:05:49]Write to MH i2c: 01 00 00 DF 1A F9 [18:05:49]Write i2c OK [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 07 00 [18:05:49]MH_I2C_Read... [18:05:49]Read from MH i2c: 01 07 00 DF 1A 00 00 00 00 00 FF 0F 0E [18:05:49]RasterBufferAndPrint [18:05:49]line Счет N : (1)1319173 [18:05:49]line ИНН: 02508201610067 [18:05:49]line Контрольно-Кассовый Чек [18:05:49]line ПРОДАЖА [18:05:49]line ТРК (МРК, ГНК) : 11 [18:05:49]line Товар: 2710194210 [18:05:49]line ДТ(л)-К-5 [18:05:49]line 20.120 * 72.60 [18:05:49]line = 1460.71 [18:05:49]line НДС 12% НСП 1% [18:05:49]line > о реализуемом товаре [18:05:49]line ОКРУГЛЕНИЕ: -0.71 [18:05:49]line ИТОГО: 1460.00 [18:05:49]line Внесено: 1460.00 [18:05:49]line СДАЧА: 0.00 [18:05:49]line НСП 1% : 12.93 [18:05:49]line НДС 12% : 155.12 [18:05:49]line Наличными: 1460.00 [18:05:49]line Безнал.: 0.00 [18:05:49]line Место: АЗС № 140 "Партнер Нефть" [18:05:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:05:49]line СНО: Общий режим [18:05:49]line Чек 276 13.07.2024 18:05 [18:05:49]line Смена: 462 ФФД: 1.0 [18:05:49]line ЗНМ: 0300000129 [18:05:49]line РНМ: 0000000000090858 [18:05:49]line Версия ККМ: 001 [18:05:49]line ФМ: 0000000000874899 [18:05:49]line ФД: 162608 [18:05:49]line ФПД: 227937761176909 [18:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180549&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162608&fm=227937761176909&tin=02508201610067®Number=0000000000090858&sum=146000 [18:05:50]OFD Sender: Processing packet 162608 [packets to send 106, broken 105] [18:05:50]ProducePacketName [18:05:50]name=ofd_packets/00162608 [18:05:50]OFD Sender: To server: pG, [18:05:50]CommunicateWithHost lk.salyk.kg:30040 [18:05:50]ConnectInit lk.salyk.kg [18:05:50]written 0, free lines is 4095 [18:05:50]Connected sock=10 [18:05:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 34 59 08 01 41 AD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 98 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 97 3A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 3A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 3C 00 00 00 00 07 04 06 00 50 3A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 FD C1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7B 02 00 35 04 06 00 CF 4E E5 49 2D 4D 22 3D CC C0 39 97 D0 56 [18:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F2 0B 47 00 65 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 30 7B 02 00 F4 03 04 00 0B 6E 92 66 B6 04 01 00 00 4B 66 48 43 B5 2F C9 58 [18:05:50]CommunicateWithHost err = 0 [18:05:50]CheckOFDResponse [18:05:50]1017 (14) - 77093643461234 [18:05:50]1041 (16) - 0000000000874899 [18:05:50]1040 (4) - 162608 [18:05:50]1012 (4) - 13.07.2024 12:07 [18:05:50]1206 (1) - 0 [18:05:50]OFD Sender: Remove packet 162608 [18:05:50]ProducePacketName [18:05:50]name=ofd_packets/00162608 [18:05:50]NVStorageDeleteData [18:05:50]Write to MH i2c: 01 00 00 0A 1B 25 [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: 01 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: 01 07 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: 01 07 00 0A 1B 00 00 00 00 00 E7 0C 1F [18:05:50]RasterBufferAndPrint [18:05:50]line [18:05:50]line [18:05:50]line [18:05:50]line [18:05:50]line [18:05:50]written 0, free lines is 3309 [18:05:50]MH_Cut [18:05:50]Write to MH i2c: D1 01 00 11 1B 01 FE [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: D1 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: D1 01 00 [18:05:50]MH_I2C_Read... [18:05:50]Read from MH i2c: D1 01 00 11 1B 00 FD [18:05:50]Write to MH i2c: 01 00 00 12 1B 2D [18:05:50]Write i2c OK [18:05:50]MH_I2C_Read... [18:05:50]OFD Sender: No OFD packet to send [18:05:51]*** Cut start [18:05:51]*** Purtial cut [18:05:51]*** CUTSNS_PIN = 0 [18:05:51]*** Stage 1: CUTSNS_PIN = 1 [18:05:53]Read from MH i2c: 01 [18:05:53]MH_I2C_Read... [18:05:53]*** Stop cut motor [18:05:53]*** Cut end [18:05:53]Read from MH i2c: 01 07 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: 01 07 00 12 1B 00 00 00 00 00 FF 0F 42 [18:05:53]process_action close_receipt done [18:05:53]requested_data is exist [18:05:53]produce_requested_data [18:05:53]requested_item fm.sn is exist - process it [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 11 00 00 [18:05:53]Write to MH i2c: E2 08 00 13 1B 80 11 00 00 00 00 00 00 A8 [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 17 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 17 00 13 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 08 [18:05:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:05:53]wFMCommunicate OK [18:05:53]requested_item fd.num is exist - process it [18:05:53]SAM_PROTO_GetFieldsCounters [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 13 00 00 [18:05:53]Write to MH i2c: E2 08 00 14 1B 80 13 00 00 00 00 00 00 AB [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 62 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 62 00 14 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 30 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [18:05:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 30 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:53]wFMCommunicate OK [18:05:53]SAM_PROTO_GetFieldsCounters done [18:05:53]requested_item shift.num is exist - process it [18:05:53]requested_item shift.opened is exist - process it [18:05:53]req_shift_opened [18:05:53]FM_GetShiftState [18:05:53]SAM_PROTO_GetShiftState [18:05:53]wFMCommunicate request_size=4 [18:05:53]MH_SAM_APDU [18:05:53]CAPDU: 80 13 01 00 [18:05:53]Write to MH i2c: E2 08 00 15 1B 80 13 01 00 00 00 00 00 AD [18:05:53]Write i2c OK [18:05:53]MH_I2C_Read... [18:05:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:53]Read from MH i2c: E2 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 0E 00 [18:05:53]MH_I2C_Read... [18:05:53]Read from MH i2c: E2 0E 00 15 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A7 [18:05:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:05:53]wFMCommunicate OK [18:05:53]SAM_PROTO_GetShiftState done [18:05:53]FM_GetShiftState done [18:05:53]req_shift_opened done [18:05:53]requested_item shift.open_date is exist - process it [18:05:53]req_shift_open_date [18:05:53]req_shift_open_date done [18:05:53]produce_requested_data done [18:05:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162608,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:05:53]process_action_free close_receipt [18:05:53]json_value_free [18:05:53]json_value_free done [18:05:53]process_json_proto returns [18:05:53]Send response to host [18:05:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162608,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:05:53]free response buf [18:05:53]execute_script done [18:05:53]execute_script returns [18:05:53]free content buf [18:05:53]Sock 7.Close socket [18:05:53]Sock 7.Thread stoped [18:05:55]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:03]accept exits with 9 [18:07:03]New connection [18:07:03]New thread 3067366756 created [18:07:03]Thread 3067510116 joined [18:07:03]Waiting for new connection... [18:07:03] Sock 9.Parse request [18:07:03]Sock 9.Check first char [18:07:03]Sock 9.First char is OK [18:07:03]request: POST /json_proto HTTP/1.0 [18:07:03]Method: POST [18:07:03]URL: /json_proto [18:07:03]Method is POST - this is cgi request [18:07:03]url: /json_proto [18:07:03]query_string will be loaded in cgi processing [18:07:03]execute_cgi json_proto POST (null) [18:07:03]execute_cgi path=json_proto method=POST [18:07:03]POST find Content-Length [18:07:03]Host: 172.17.39.67:8080 [18:07:03]Content-Length: 683 [18:07:03]Content-Type: application/json [18:07:03] [18:07:03]POST finish read [18:07:03]Found Content-Length = 683 [18:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:07:03]execute_script... [18:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:07:03]POST & json_proto [18:07:03]process_json_proto [18:07:03]json parsed OK: [18:07:03]protocol is kg_v1.0 [18:07:03]action value=close_receipt [18:07:03]process_action close_receipt [18:07:03]cmd_close_receipt [18:07:03]MH_GetDate [18:07:03]Write to MH i2c: F0 00 00 16 1B 20 [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 09 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: F0 09 00 16 1B 00 49 C2 92 66 86 7C 92 66 26 [18:07:03]GetLastDocTimeStamp 1720893949 [18:07:03]current date 1720894025 [18:07:03]FM_GetShiftState [18:07:03]SAM_PROTO_GetShiftState [18:07:03]wFMCommunicate request_size=4 [18:07:03]MH_SAM_APDU [18:07:03]CAPDU: 80 13 01 00 [18:07:03]Write to MH i2c: E2 08 00 17 1B 80 13 01 00 00 00 00 00 AF [18:07:03]Write i2c OK [18:07:03]MH_I2C_Read... [18:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:03]Read from MH i2c: E2 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 0E 00 [18:07:03]MH_I2C_Read... [18:07:03]Read from MH i2c: E2 0E 00 17 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A9 [18:07:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:07:03]wFMCommunicate OK [18:07:03]SAM_PROTO_GetShiftState done [18:07:03]FM_GetShiftState done [18:07:03]opened in 1720828979 [18:07:03]opened+sec_in_day 1720915379 [18:07:03]quantity*price = 50021 [18:07:03]sum+1 = 50022 [18:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 277 13.07.2024 18:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162609 ФПД: 138969248757923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180705&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162609&fm=138969248757923&tin=02508201610067®Number=0000000000090858&sum=50000 [18:07:05]StoreToDocumentArchive [18:07:05]shift 462 fd 162609 [18:07:05]save to /storage/0462/doc_00162609 [18:07:05]save last doc name /storage/0462/doc_00162609 to /storage/kkm_last_doc_name [18:07:05]save OK [18:07:05]Clear old archive folders... [18:07:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:07:05]tlvbuf is 006E3480 [18:07:05]SAM_PROTO_ClearQueue [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 09 00 00 [18:07:05]Write to MH i2c: E2 08 00 24 1B 80 09 00 00 00 00 00 00 B1 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 24 1B 00 90 00 B3 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_ClearQueue done [18:07:05]KKMCreateOFDPacket [18:07:05]OFDProtocolAddRootSTLVToBuf [18:07:05]FM_MakeSignedData [18:07:05]FM_MakeSignedData [18:07:05]SAM_PROTO_SignData [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 01 02 [18:07:05]Write to MH i2c: E2 08 00 25 1B 80 0D 01 02 00 00 00 00 B9 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 25 1B 00 90 00 B4 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=255 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 15 01 00 00 F4 03 04 00 49 C2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7B 02 00 35 04 06 00 [18:07:05]Write to MH i2c: E2 02 01 26 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 15 01 00 00 F4 03 04 00 49 C2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7B 02 00 35 04 06 00 00 00 00 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 26 1B 00 90 00 B5 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=11 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 02 02 06 7E 64 4C B4 F8 A3 [18:07:05]Write to MH i2c: E2 0E 00 27 1B 80 0D 02 02 06 00 7E 64 4C B4 F8 A3 00 00 45 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 03 00 27 1B 00 90 00 B6 [18:07:05]RAPDU: 90 00 [18:07:05]wFMCommunicate OK [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 0D 03 02 [18:07:05]Write to MH i2c: E2 08 00 28 1B 80 0D 03 02 00 00 00 00 BE [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0B 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 0B 00 28 1B 00 61 53 4A 58 4D 72 55 D1 90 00 FA [18:07:05]RAPDU: 61 53 4A 58 4D 72 55 D1 90 00 [18:07:05]wFMCommunicate OK [18:07:05]SAM_PROTO_SignData done [18:07:05]FM_MakeSignedData done [18:07:05]CreateOFDProtocolMessage [18:07:05]wFMCommunicate request_size=4 [18:07:05]MH_SAM_APDU [18:07:05]CAPDU: 80 11 00 00 [18:07:05]Write to MH i2c: E2 08 00 29 1B 80 11 00 00 00 00 00 00 BE [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:05]Read from MH i2c: E2 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: E2 17 00 29 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1E [18:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:07:05]wFMCommunicate OK [18:07:05]CreateOFDProtocolMessage done [18:07:05]OFDSenderStorePacket 162609 [18:07:05]StoreOFDPacket docnum=162609 [18:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AA C8 08 01 50 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 15 01 00 00 F4 03 04 00 49 C2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7B 02 00 35 04 06 00 7E 64 4C B4 F8 A3 61 53 4A 58 4D 72 55 D1 [18:07:05]CheckFolder [18:07:05]dirname=/storage/ofd_packets [18:07:05]CheckFolder done [18:07:05]ProducePacketName [18:07:05]name=ofd_packets/00162609 [18:07:05]NVStorageSaveData ofd_packets/00162609 [18:07:05]File name is /storage/ofd_packets/00162609 [18:07:05]Write 302 bytes [18:07:05]NVStorageSaveData done [18:07:05]OFDSenderStorePacket done [18:07:05]KKMCreateOFDPacket done [18:07:05]NVStorageSaveData kkm_last_timestamp [18:07:05]File name is /storage/kkm_last_timestamp [18:07:05]Write 4 bytes [18:07:05]NVStorageSaveData done [18:07:05]ExternCall_PrintAddStr [18:07:05]wPrintStart [18:07:05]Write to MH i2c: 01 00 00 2A 1B 45 [18:07:05]Write i2c OK [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 [18:07:05]MH_I2C_Read... [18:07:05]Read from MH i2c: 01 07 00 2A 1B 00 00 00 00 00 FF 0F 5A [18:07:05]RasterBufferAndPrint [18:07:05]line Счет N : (1)1319176 [18:07:05]line ИНН: 02508201610067 [18:07:05]line Контрольно-Кассовый Чек [18:07:05]line ПРОДАЖА [18:07:05]line ТРК (МРК, ГНК) : 21 [18:07:05]line Товар: 2710194210 [18:07:05]line ДТ(л)-К-5 [18:07:05]line 6.890 * 72.60 [18:07:05]line = 500.21 [18:07:05]line НДС 12% НСП 1% [18:07:05]line > о реализуемом товаре [18:07:05]line ОКРУГЛЕНИЕ: -0.21 [18:07:05]line ИТОГО: 500.00 [18:07:05]line Внесено: 500.00 [18:07:05]line СДАЧА: 0.00 [18:07:05]line НСП 1% : 4.43 [18:07:05]line НДС 12% : 53.12 [18:07:05]line Наличными: 500.00 [18:07:05]line Безнал.: 0.00 [18:07:05]line Место: АЗС № 140 "Партнер Нефть" [18:07:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:07:05]line СНО: Общий режим [18:07:05]line Чек 277 13.07.2024 18:07 [18:07:05]line Смена: 462 ФФД: 1.0 [18:07:05]line ЗНМ: 0300000129 [18:07:05]line РНМ: 0000000000090858 [18:07:05]line Версия ККМ: 001 [18:07:05]line ФМ: 0000000000874899 [18:07:05]line ФД: 162609 [18:07:05]line ФПД: 138969248757923 [18:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180705&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162609&fm=138969248757923&tin=02508201610067®Number=0000000000090858&sum=50000 [18:07:05]OFD Sender: Processing packet 162609 [packets to send 106, broken 105] [18:07:05]ProducePacketName [18:07:05]name=ofd_packets/00162609 [18:07:05]OFD Sender: To server: pG, [18:07:05]CommunicateWithHost lk.salyk.kg:30040 [18:07:05]ConnectInit lk.salyk.kg [18:07:05]written 0, free lines is 4095 [18:07:06]Connected sock=10 [18:07:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AA C8 08 01 50 42 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 15 01 00 00 F4 03 04 00 49 C2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 31 7B 02 00 35 04 06 00 7E 64 4C B4 F8 A3 61 53 4A 58 4D 72 55 D1 [18:07:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 43 47 00 66 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 34 38 39 39 10 04 04 00 31 7B 02 00 F4 03 04 00 57 6E 92 66 B6 04 01 00 00 FD A6 AC 7F 94 30 87 03 [18:07:06]CommunicateWithHost err = 0 [18:07:06]CheckOFDResponse [18:07:06]1017 (14) - 77093643461234 [18:07:06]1041 (16) - 0000000000874899 [18:07:06]1040 (4) - 162609 [18:07:06]1012 (4) - 13.07.2024 12:08 [18:07:06]1206 (1) - 0 [18:07:06]OFD Sender: Remove packet 162609 [18:07:06]ProducePacketName [18:07:06]name=ofd_packets/00162609 [18:07:06]NVStorageDeleteData [18:07:06]Write to MH i2c: 01 00 00 55 1B 70 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 07 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: 01 07 00 55 1B 00 00 00 00 00 E5 0C 68 [18:07:06]RasterBufferAndPrint [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]line [18:07:06]written 0, free lines is 3307 [18:07:06]MH_Cut [18:07:06]Write to MH i2c: D1 01 00 5C 1B 01 49 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 01 00 [18:07:06]MH_I2C_Read... [18:07:06]Read from MH i2c: D1 01 00 5C 1B 00 48 [18:07:06]Write to MH i2c: 01 00 00 5D 1B 78 [18:07:06]Write i2c OK [18:07:06]MH_I2C_Read... [18:07:06]OFD Sender: No OFD packet to send [18:07:07]*** Cut start [18:07:07]*** Purtial cut [18:07:07]*** Stage 1: CUTSNS_PIN = 1 [18:07:07]Read from MH i2c: 01 [18:07:07]MH_I2C_Read... [18:07:07]*** Stop cut motor [18:07:07]*** Cut end [18:07:07]Read from MH i2c: 01 07 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: 01 07 00 5D 1B 00 00 00 00 00 FF 0F 8D [18:07:07]process_action close_receipt done [18:07:07]requested_data is exist [18:07:07]produce_requested_data [18:07:07]requested_item fm.sn is exist - process it [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 11 00 00 [18:07:07]Write to MH i2c: E2 08 00 5E 1B 80 11 00 00 00 00 00 00 F3 [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 17 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 17 00 5E 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 53 [18:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:07:07]wFMCommunicate OK [18:07:07]requested_item fd.num is exist - process it [18:07:07]SAM_PROTO_GetFieldsCounters [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 13 00 00 [18:07:07]Write to MH i2c: E2 08 00 5F 1B 80 13 00 00 00 00 00 00 F6 [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 62 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 62 00 5F 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 31 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [18:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 31 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:07]wFMCommunicate OK [18:07:07]SAM_PROTO_GetFieldsCounters done [18:07:07]requested_item shift.num is exist - process it [18:07:07]requested_item shift.opened is exist - process it [18:07:07]req_shift_opened [18:07:07]FM_GetShiftState [18:07:07]SAM_PROTO_GetShiftState [18:07:07]wFMCommunicate request_size=4 [18:07:07]MH_SAM_APDU [18:07:07]CAPDU: 80 13 01 00 [18:07:07]Write to MH i2c: E2 08 00 60 1B 80 13 01 00 00 00 00 00 F8 [18:07:07]Write i2c OK [18:07:07]MH_I2C_Read... [18:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:07]Read from MH i2c: E2 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0E 00 [18:07:07]MH_I2C_Read... [18:07:07]Read from MH i2c: E2 0E 00 60 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F2 [18:07:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:07:07]wFMCommunicate OK [18:07:07]SAM_PROTO_GetShiftState done [18:07:07]FM_GetShiftState done [18:07:07]req_shift_opened done [18:07:07]requested_item shift.open_date is exist - process it [18:07:07]req_shift_open_date [18:07:07]req_shift_open_date done [18:07:07]produce_requested_data done [18:07:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162609,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:07:07]process_action_free close_receipt [18:07:07]json_value_free [18:07:07]json_value_free done [18:07:07]process_json_proto returns [18:07:07]Send response to host [18:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162609,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:07:07]free response buf [18:07:07]execute_script done [18:07:07]execute_script returns [18:07:07]free content buf [18:07:07]Sock 9.Close socket [18:07:07]Sock 9.Thread stoped [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:20]accept exits with 7 [18:09:20]New connection [18:09:20]New thread 3067510116 created [18:09:20]Thread 3067366756 joined [18:09:20]Waiting for new connection... [18:09:20] Sock 7.Parse request [18:09:20]Sock 7.Check first char [18:09:20]Sock 7.First char is OK [18:09:20]request: POST /json_proto HTTP/1.0 [18:09:20]Method: POST [18:09:20]URL: /json_proto [18:09:20]Method is POST - this is cgi request [18:09:20]url: /json_proto [18:09:20]query_string will be loaded in cgi processing [18:09:20]execute_cgi json_proto POST (null) [18:09:20]execute_cgi path=json_proto method=POST [18:09:20]POST find Content-Length [18:09:20]Host: 172.17.39.67:8080 [18:09:20]Content-Length: 688 [18:09:20]Content-Type: application/json [18:09:20] [18:09:20]POST finish read [18:09:20]Found Content-Length = 688 [18:09:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:20]execute_script... [18:09: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)1319177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.550, "sum" : 2000.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:09:20]POST & json_proto [18:09:20]process_json_proto [18:09:20]json parsed OK: [18:09:20]protocol is kg_v1.0 [18:09:20]action value=close_receipt [18:09:20]process_action close_receipt [18:09:20]cmd_close_receipt [18:09:20]MH_GetDate [18:09:20]Write to MH i2c: F0 00 00 61 1B 6B [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: F0 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: F0 09 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: F0 09 00 61 1B 00 D1 C2 92 66 86 7C 92 66 F9 [18:09:20]GetLastDocTimeStamp 1720894025 [18:09:20]current date 1720894161 [18:09:20]FM_GetShiftState [18:09:20]SAM_PROTO_GetShiftState [18:09:20]wFMCommunicate request_size=4 [18:09:20]MH_SAM_APDU [18:09:20]CAPDU: 80 13 01 00 [18:09:20]Write to MH i2c: E2 08 00 62 1B 80 13 01 00 00 00 00 00 FA [18:09:20]Write i2c OK [18:09:20]MH_I2C_Read... [18:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:20]Read from MH i2c: E2 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: E2 0E 00 [18:09:20]MH_I2C_Read... [18:09:20]Read from MH i2c: E2 0E 00 62 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F4 [18:09:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:09:20]wFMCommunicate OK [18:09:20]SAM_PROTO_GetShiftState done [18:09:20]FM_GetShiftState done [18:09:20]opened in 1720828979 [18:09:20]opened+sec_in_day 1720915379 [18:09:20]quantity*price = 200013 [18:09:20]sum+1 = 200014 [18:09:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 278 13.07.2024 18:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162610 ФПД: 40104105275763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180921&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162610&fm=40104105275763&tin=02508201610067®Number=0000000000090858&sum=200000 [18:09:21]StoreToDocumentArchive [18:09:21]shift 462 fd 162610 [18:09:21]save to /storage/0462/doc_00162610 [18:09:21]save last doc name /storage/0462/doc_00162610 to /storage/kkm_last_doc_name [18:09:21]save OK [18:09:21]Clear old archive folders... [18:09:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:09:21]tlvbuf is 005E7070 [18:09:21]SAM_PROTO_ClearQueue [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 09 00 00 [18:09:21]Write to MH i2c: E2 08 00 6F 1B 80 09 00 00 00 00 00 00 FC [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 6F 1B 00 90 00 FE [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]SAM_PROTO_ClearQueue done [18:09:21]KKMCreateOFDPacket [18:09:21]OFDProtocolAddRootSTLVToBuf [18:09:21]FM_MakeSignedData [18:09:21]FM_MakeSignedData [18:09:21]SAM_PROTO_SignData [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 01 02 [18:09:21]Write to MH i2c: E2 08 00 70 1B 80 0D 01 02 00 00 00 00 04 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 70 1B 00 90 00 FF [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]wFMCommunicate request_size=255 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 01 00 00 F4 03 04 00 D1 C2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7B 02 00 35 04 06 00 [18:09:21]Write to MH i2c: E2 02 01 71 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 01 00 00 F4 03 04 00 D1 C2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7B 02 00 35 04 06 00 00 00 33 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 71 1B 00 90 00 00 [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]wFMCommunicate request_size=11 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 02 02 06 24 79 76 F2 F1 73 [18:09:21]Write to MH i2c: E2 0E 00 72 1B 80 0D 02 02 06 00 24 79 76 F2 F1 73 00 00 7C [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 03 00 72 1B 00 90 00 01 [18:09:21]RAPDU: 90 00 [18:09:21]wFMCommunicate OK [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 0D 03 02 [18:09:21]Write to MH i2c: E2 08 00 73 1B 80 0D 03 02 00 00 00 00 09 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 0B 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 0B 00 73 1B 00 22 05 BE 8C 0D 59 A4 B4 90 00 39 [18:09:21]RAPDU: 22 05 BE 8C 0D 59 A4 B4 90 00 [18:09:21]wFMCommunicate OK [18:09:21]SAM_PROTO_SignData done [18:09:21]FM_MakeSignedData done [18:09:21]CreateOFDProtocolMessage [18:09:21]wFMCommunicate request_size=4 [18:09:21]MH_SAM_APDU [18:09:21]CAPDU: 80 11 00 00 [18:09:21]Write to MH i2c: E2 08 00 74 1B 80 11 00 00 00 00 00 00 09 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:21]Read from MH i2c: E2 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 17 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: E2 17 00 74 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 69 [18:09:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:09:21]wFMCommunicate OK [18:09:21]CreateOFDProtocolMessage done [18:09:21]OFDSenderStorePacket 162610 [18:09:21]StoreOFDPacket docnum=162610 [18:09:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 56 68 08 01 4A D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 01 00 00 F4 03 04 00 D1 C2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7B 02 00 35 04 06 00 24 79 76 F2 F1 73 22 05 BE 8C 0D 59 A4 B4 [18:09:21]CheckFolder [18:09:21]dirname=/storage/ofd_packets [18:09:21]CheckFolder done [18:09:21]ProducePacketName [18:09:21]name=ofd_packets/00162610 [18:09:21]NVStorageSaveData ofd_packets/00162610 [18:09:21]File name is /storage/ofd_packets/00162610 [18:09:21]Write 302 bytes [18:09:21]NVStorageSaveData done [18:09:21]OFDSenderStorePacket done [18:09:21]KKMCreateOFDPacket done [18:09:21]NVStorageSaveData kkm_last_timestamp [18:09:21]File name is /storage/kkm_last_timestamp [18:09:21]Write 4 bytes [18:09:21]NVStorageSaveData done [18:09:21]ExternCall_PrintAddStr [18:09:21]wPrintStart [18:09:21]Write to MH i2c: 01 00 00 75 1B 90 [18:09:21]Write i2c OK [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: 01 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: 01 07 00 [18:09:21]MH_I2C_Read... [18:09:21]Read from MH i2c: 01 07 00 75 1B 00 00 00 00 00 FF 0F A5 [18:09:21]RasterBufferAndPrint [18:09:21]line Счет N : (1)1319177 [18:09:21]line ИНН: 02508201610067 [18:09:21]line Контрольно-Кассовый Чек [18:09:21]line ПРОДАЖА [18:09:21]line ТРК (МРК, ГНК) : 31 [18:09:21]line Товар: 2710194210 [18:09:21]line ДТ(л)-К-5 [18:09:21]line 27.550 * 72.60 [18:09:21]line = 2000.13 [18:09:21]line НДС 12% НСП 1% [18:09:21]line > о реализуемом товаре [18:09:21]line ОКРУГЛЕНИЕ: -0.13 [18:09:21]line ИТОГО: 2000.00 [18:09:21]line Внесено: 2000.00 [18:09:21]line СДАЧА: 0.00 [18:09:21]line НСП 1% : 17.70 [18:09:21]line НДС 12% : 212.40 [18:09:21]line Наличными: 2000.00 [18:09:21]line Безнал.: 0.00 [18:09:21]line Место: АЗС № 140 "Партнер Нефть" [18:09:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:09:21]line СНО: Общий режим [18:09:21]line Чек 278 13.07.2024 18:09 [18:09:21]line Смена: 462 ФФД: 1.0 [18:09:21]line ЗНМ: 0300000129 [18:09:21]line РНМ: 0000000000090858 [18:09:21]line Версия ККМ: 001 [18:09:22]line ФМ: 0000000000874899 [18:09:22]line ФД: 162610 [18:09:22]line ФПД: 40104105275763 [18:09:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T180921&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162610&fm=40104105275763&tin=02508201610067®Number=0000000000090858&sum=200000 [18:09:22]OFD Sender: Processing packet 162610 [packets to send 106, broken 105] [18:09:22]ProducePacketName [18:09:22]name=ofd_packets/00162610 [18:09:22]OFD Sender: To server: pG, [18:09:22]CommunicateWithHost lk.salyk.kg:30040 [18:09:22]ConnectInit lk.salyk.kg [18:09:22]written 0, free lines is 4095 [18:09:22]Connected sock=10 [18:09:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 56 68 08 01 4A D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 16 01 00 00 F4 03 04 00 D1 C2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7B 02 00 35 04 06 00 24 79 76 F2 F1 73 22 05 BE 8C 0D 59 A4 B4 [18:09:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FB 8A 47 00 0E E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 32 7B 02 00 F4 03 04 00 DF 6E 92 66 B6 04 01 00 00 D9 06 79 47 EF 73 0B FE [18:09:22]CommunicateWithHost err = 0 [18:09:22]CheckOFDResponse [18:09:22]1017 (14) - 77093643461234 [18:09:22]1041 (16) - 0000000000874899 [18:09:22]1040 (4) - 162610 [18:09:22]1012 (4) - 13.07.2024 12:11 [18:09:22]1206 (1) - 0 [18:09:22]OFD Sender: Remove packet 162610 [18:09:22]ProducePacketName [18:09:22]name=ofd_packets/00162610 [18:09:22]NVStorageDeleteData [18:09:22]Write to MH i2c: 01 00 00 A0 1B BB [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 07 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: 01 07 00 A0 1B 00 00 00 00 00 EF 0C BD [18:09:22]RasterBufferAndPrint [18:09:22]line [18:09:22]line [18:09:22]line [18:09:22]line [18:09:22]line [18:09:22]written 0, free lines is 3317 [18:09:22]MH_Cut [18:09:22]Write to MH i2c: D1 01 00 A7 1B 01 94 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: D1 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: D1 01 00 [18:09:22]MH_I2C_Read... [18:09:22]Read from MH i2c: D1 01 00 A7 1B 00 93 [18:09:22]Write to MH i2c: 01 00 00 A8 1B C3 [18:09:22]Write i2c OK [18:09:22]MH_I2C_Read... [18:09:23]OFD Sender: No OFD packet to send [18:09:23]*** Cut start [18:09:23]*** Purtial cut [18:09:23]*** CUTSNS_PIN = 0 [18:09:23]*** Stage 1: CUTSNS_PIN = 1 [18:09:25]Read from MH i2c: 01 [18:09:25]MH_I2C_Read... [18:09:25]*** Stop cut motor [18:09:25]*** Cut end [18:09:25]Read from MH i2c: 01 07 00 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: 01 07 00 A8 1B 00 00 00 00 00 FF 0F D8 [18:09:25]process_action close_receipt done [18:09:25]requested_data is exist [18:09:25]produce_requested_data [18:09:25]requested_item fm.sn is exist - process it [18:09:25]wFMCommunicate request_size=4 [18:09:25]MH_SAM_APDU [18:09:25]CAPDU: 80 11 00 00 [18:09:25]Write to MH i2c: E2 08 00 A9 1B 80 11 00 00 00 00 00 00 3E [18:09:25]Write i2c OK [18:09:25]MH_I2C_Read... [18:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:09:25]Read from MH i2c: E2 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: E2 17 00 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: E2 17 00 A9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9E [18:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:09:25]wFMCommunicate OK [18:09:25]requested_item fd.num is exist - process it [18:09:25]SAM_PROTO_GetFieldsCounters [18:09:25]wFMCommunicate request_size=4 [18:09:25]MH_SAM_APDU [18:09:25]CAPDU: 80 13 00 00 [18:09:25]Write to MH i2c: E2 08 00 AA 1B 80 13 00 00 00 00 00 00 41 [18:09:25]Write i2c OK [18:09:25]MH_I2C_Read... [18:09:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:09:25]Read from MH i2c: E2 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: E2 62 00 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: E2 62 00 AA 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 32 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [18:09:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 32 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:09:25]wFMCommunicate OK [18:09:25]SAM_PROTO_GetFieldsCounters done [18:09:25]requested_item shift.num is exist - process it [18:09:25]requested_item shift.opened is exist - process it [18:09:25]req_shift_opened [18:09:25]FM_GetShiftState [18:09:25]SAM_PROTO_GetShiftState [18:09:25]wFMCommunicate request_size=4 [18:09:25]MH_SAM_APDU [18:09:25]CAPDU: 80 13 01 00 [18:09:25]Write to MH i2c: E2 08 00 AB 1B 80 13 01 00 00 00 00 00 43 [18:09:25]Write i2c OK [18:09:25]MH_I2C_Read... [18:09:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:09:25]Read from MH i2c: E2 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: E2 0E 00 [18:09:25]MH_I2C_Read... [18:09:25]Read from MH i2c: E2 0E 00 AB 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3D [18:09:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:09:25]wFMCommunicate OK [18:09:25]SAM_PROTO_GetShiftState done [18:09:25]FM_GetShiftState done [18:09:25]req_shift_opened done [18:09:25]requested_item shift.open_date is exist - process it [18:09:25]req_shift_open_date [18:09:25]req_shift_open_date done [18:09:25]produce_requested_data done [18:09:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162610,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:09:25]process_action_free close_receipt [18:09:25]json_value_free [18:09:25]json_value_free done [18:09:25]process_json_proto returns [18:09:25]Send response to host [18:09:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162610,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:09:25]free response buf [18:09:25]execute_script done [18:09:25]execute_script returns [18:09:25]free content buf [18:09:25]Sock 7.Close socket [18:09:25]Sock 7.Thread stoped [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:13]OFD Sender: No OFD packet to send [18:10:18]OFD Sender: No OFD packet to send [18:10:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:36]accept exits with 9 [18:10:36]New connection [18:10:36]New thread 3067366756 created [18:10:36]Thread 3067510116 joined [18:10:36]Waiting for new connection... [18:10:36] Sock 9.Parse request [18:10:36]Sock 9.Check first char [18:10:36]Sock 9.First char is OK [18:10:36]request: POST /json_proto HTTP/1.0 [18:10:36]Method: POST [18:10:36]URL: /json_proto [18:10:36]Method is POST - this is cgi request [18:10:36]url: /json_proto [18:10:36]query_string will be loaded in cgi processing [18:10:36]execute_cgi json_proto POST (null) [18:10:36]execute_cgi path=json_proto method=POST [18:10:36]POST find Content-Length [18:10:36]Host: 172.17.39.67:8080 [18:10:36]Content-Length: 688 [18:10:36]Content-Type: application/json [18:10:36] [18:10:36]POST finish read [18:10:36]Found Content-Length = 688 [18:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:10:36]execute_script... [18:10:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:10:36]POST & json_proto [18:10:36]process_json_proto [18:10:36]json parsed OK: [18:10:36]protocol is kg_v1.0 [18:10:36]action value=close_receipt [18:10:36]process_action close_receipt [18:10:36]cmd_close_receipt [18:10:36]MH_GetDate [18:10:36]Write to MH i2c: F0 00 00 AC 1B B6 [18:10:36]Write i2c OK [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: F0 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: F0 09 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: F0 09 00 AC 1B 00 1D C3 92 66 86 7C 92 66 91 [18:10:36]GetLastDocTimeStamp 1720894161 [18:10:36]current date 1720894237 [18:10:36]FM_GetShiftState [18:10:36]SAM_PROTO_GetShiftState [18:10:36]wFMCommunicate request_size=4 [18:10:36]MH_SAM_APDU [18:10:36]CAPDU: 80 13 01 00 [18:10:36]Write to MH i2c: E2 08 00 AD 1B 80 13 01 00 00 00 00 00 45 [18:10:36]Write i2c OK [18:10:36]MH_I2C_Read... [18:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:36]Read from MH i2c: E2 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: E2 0E 00 [18:10:36]MH_I2C_Read... [18:10:36]Read from MH i2c: E2 0E 00 AD 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3F [18:10:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:10:36]wFMCommunicate OK [18:10:36]SAM_PROTO_GetShiftState done [18:10:36]FM_GetShiftState done [18:10:36]opened in 1720828979 [18:10:36]opened+sec_in_day 1720915379 [18:10:36]quantity*price = 120007 [18:10:36]sum+1 = 120009 [18:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 279 13.07.2024 18:10 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162611 ФПД: 46387524653053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181037&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162611&fm=46387524653053&tin=02508201610067®Number=0000000000090858&sum=120000 [18:10:37]StoreToDocumentArchive [18:10:37]shift 462 fd 162611 [18:10:37]save to /storage/0462/doc_00162611 [18:10:37]save last doc name /storage/0462/doc_00162611 to /storage/kkm_last_doc_name [18:10:37]save OK [18:10:37]Clear old archive folders... [18:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:10:37]tlvbuf is 005F2300 [18:10:37]SAM_PROTO_ClearQueue [18:10:37]wFMCommunicate request_size=4 [18:10:37]MH_SAM_APDU [18:10:37]CAPDU: 80 09 00 00 [18:10:37]Write to MH i2c: E2 08 00 BA 1B 80 09 00 00 00 00 00 00 47 [18:10:37]Write i2c OK [18:10:37]MH_I2C_Read... [18:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:37]Read from MH i2c: E2 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 03 00 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 03 00 BA 1B 00 90 00 49 [18:10:37]RAPDU: 90 00 [18:10:37]wFMCommunicate OK [18:10:37]SAM_PROTO_ClearQueue done [18:10:37]KKMCreateOFDPacket [18:10:37]OFDProtocolAddRootSTLVToBuf [18:10:37]FM_MakeSignedData [18:10:37]FM_MakeSignedData [18:10:37]SAM_PROTO_SignData [18:10:37]wFMCommunicate request_size=4 [18:10:37]MH_SAM_APDU [18:10:37]CAPDU: 80 0D 01 02 [18:10:37]Write to MH i2c: E2 08 00 BB 1B 80 0D 01 02 00 00 00 00 4F [18:10:37]Write i2c OK [18:10:37]MH_I2C_Read... [18:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:37]Read from MH i2c: E2 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 03 00 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 03 00 BB 1B 00 90 00 4A [18:10:37]RAPDU: 90 00 [18:10:37]wFMCommunicate OK [18:10:37]wFMCommunicate request_size=255 [18:10:37]MH_SAM_APDU [18:10:37]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 17 01 00 00 F4 03 04 00 1D C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7B 02 00 35 04 06 00 [18:10:37]Write to MH i2c: E2 02 01 BC 1B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 17 01 00 00 F4 03 04 00 1D C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7B 02 00 35 04 06 00 00 00 49 [18:10:37]Write i2c OK [18:10:37]MH_I2C_Read... [18:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:37]Read from MH i2c: E2 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 03 00 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 03 00 BC 1B 00 90 00 4B [18:10:37]RAPDU: 90 00 [18:10:37]wFMCommunicate OK [18:10:37]wFMCommunicate request_size=11 [18:10:37]MH_SAM_APDU [18:10:37]CAPDU: 80 0D 02 02 06 2A 30 6F ED CF FD [18:10:37]Write to MH i2c: E2 0E 00 BD 1B 80 0D 02 02 06 00 2A 30 6F ED CF FD 00 00 E0 [18:10:37]Write i2c OK [18:10:37]MH_I2C_Read... [18:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:37]Read from MH i2c: E2 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 03 00 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 03 00 BD 1B 00 90 00 4C [18:10:37]RAPDU: 90 00 [18:10:37]wFMCommunicate OK [18:10:37]wFMCommunicate request_size=4 [18:10:37]MH_SAM_APDU [18:10:37]CAPDU: 80 0D 03 02 [18:10:37]Write to MH i2c: E2 08 00 BE 1B 80 0D 03 02 00 00 00 00 54 [18:10:37]Write i2c OK [18:10:37]MH_I2C_Read... [18:10:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:37]Read from MH i2c: E2 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 0B 00 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 0B 00 BE 1B 00 7B D6 8F 4C A2 54 C0 40 90 00 77 [18:10:37]RAPDU: 7B D6 8F 4C A2 54 C0 40 90 00 [18:10:37]wFMCommunicate OK [18:10:37]SAM_PROTO_SignData done [18:10:37]FM_MakeSignedData done [18:10:37]CreateOFDProtocolMessage [18:10:37]wFMCommunicate request_size=4 [18:10:37]MH_SAM_APDU [18:10:37]CAPDU: 80 11 00 00 [18:10:37]Write to MH i2c: E2 08 00 BF 1B 80 11 00 00 00 00 00 00 54 [18:10:37]Write i2c OK [18:10:37]MH_I2C_Read... [18:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:37]Read from MH i2c: E2 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 17 00 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: E2 17 00 BF 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B4 [18:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:10:37]wFMCommunicate OK [18:10:37]CreateOFDProtocolMessage done [18:10:37]OFDSenderStorePacket 162611 [18:10:37]StoreOFDPacket docnum=162611 [18:10:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C1 60 08 01 5E B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 17 01 00 00 F4 03 04 00 1D C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7B 02 00 35 04 06 00 2A 30 6F ED CF FD 7B D6 8F 4C A2 54 C0 40 [18:10:37]CheckFolder [18:10:37]dirname=/storage/ofd_packets [18:10:37]CheckFolder done [18:10:37]ProducePacketName [18:10:37]name=ofd_packets/00162611 [18:10:37]NVStorageSaveData ofd_packets/00162611 [18:10:37]File name is /storage/ofd_packets/00162611 [18:10:37]Write 302 bytes [18:10:37]NVStorageSaveData done [18:10:37]OFDSenderStorePacket done [18:10:37]KKMCreateOFDPacket done [18:10:37]NVStorageSaveData kkm_last_timestamp [18:10:37]File name is /storage/kkm_last_timestamp [18:10:37]Write 4 bytes [18:10:37]NVStorageSaveData done [18:10:37]ExternCall_PrintAddStr [18:10:37]wPrintStart [18:10:37]Write to MH i2c: 01 00 00 C0 1B DB [18:10:37]Write i2c OK [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: 01 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: 01 07 00 [18:10:37]MH_I2C_Read... [18:10:37]Read from MH i2c: 01 07 00 C0 1B 00 00 00 00 00 FF 0F F0 [18:10:37]RasterBufferAndPrint [18:10:37]line Счет N : (1)1319178 [18:10:37]line ИНН: 02508201610067 [18:10:37]line Контрольно-Кассовый Чек [18:10:37]line ПРОДАЖА [18:10:37]line ТРК (МРК, ГНК) : 11 [18:10:37]line Товар: 2710194210 [18:10:37]line ДТ(л)-К-5 [18:10:37]line 16.530 * 72.60 [18:10:37]line = 1200.08 [18:10:37]line НДС 12% НСП 1% [18:10:37]line > о реализуемом товаре [18:10:37]line ОКРУГЛЕНИЕ: -0.08 [18:10:37]line ИТОГО: 1200.00 [18:10:37]line Внесено: 1200.00 [18:10:37]line СДАЧА: 0.00 [18:10:37]line НСП 1% : 10.62 [18:10:37]line НДС 12% : 127.44 [18:10:37]line Наличными: 1200.00 [18:10:37]line Безнал.: 0.00 [18:10:37]line Место: АЗС № 140 "Партнер Нефть" [18:10:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:10:37]line СНО: Общий режим [18:10:37]line Чек 279 13.07.2024 18:10 [18:10:37]line Смена: 462 ФФД: 1.0 [18:10:37]line ЗНМ: 0300000129 [18:10:37]line РНМ: 0000000000090858 [18:10:37]line Версия ККМ: 001 [18:10:37]line ФМ: 0000000000874899 [18:10:37]line ФД: 162611 [18:10:37]line ФПД: 46387524653053 [18:10:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181037&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162611&fm=46387524653053&tin=02508201610067®Number=0000000000090858&sum=120000 [18:10:38]OFD Sender: Processing packet 162611 [packets to send 106, broken 105] [18:10:38]ProducePacketName [18:10:38]name=ofd_packets/00162611 [18:10:38]OFD Sender: To server: pG, [18:10:38]CommunicateWithHost lk.salyk.kg:30040 [18:10:38]ConnectInit lk.salyk.kg [18:10:38]written 0, free lines is 4095 [18:10:38]Connected sock=10 [18:10:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 C1 60 08 01 5E B2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 17 01 00 00 F4 03 04 00 1D C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7B 02 00 35 04 06 00 2A 30 6F ED CF FD 7B D6 8F 4C A2 54 C0 40 [18:10:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 09 F6 47 00 0B 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 33 7B 02 00 F4 03 04 00 2C 6F 92 66 B6 04 01 00 00 7F 59 31 FD 38 2E 5C 28 [18:10:38]CommunicateWithHost err = 0 [18:10:38]CheckOFDResponse [18:10:38]1017 (14) - 77093643461234 [18:10:38]1041 (16) - 0000000000874899 [18:10:38]1040 (4) - 162611 [18:10:38]1012 (4) - 13.07.2024 12:12 [18:10:38]1206 (1) - 0 [18:10:38]OFD Sender: Remove packet 162611 [18:10:38]ProducePacketName [18:10:38]name=ofd_packets/00162611 [18:10:38]NVStorageDeleteData [18:10:38]Write to MH i2c: 01 00 00 EB 1B 06 [18:10:38]Write i2c OK [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: 01 [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: 01 07 00 [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: 01 07 00 EB 1B 00 00 00 00 00 EF 0C 08 [18:10:38]RasterBufferAndPrint [18:10:38]line [18:10:38]line [18:10:38]line [18:10:38]line [18:10:38]line [18:10:38]written 0, free lines is 3319 [18:10:38]MH_Cut [18:10:38]Write to MH i2c: D1 01 00 F2 1B 01 DF [18:10:38]Write i2c OK [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: D1 [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: D1 01 00 [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: D1 01 00 F2 1B 00 DE [18:10:38]Write to MH i2c: 01 00 00 F3 1B 0E [18:10:38]Write i2c OK [18:10:38]MH_I2C_Read... [18:10:39]OFD Sender: No OFD packet to send [18:10:39]*** Cut start [18:10:39]*** Purtial cut [18:10:39]*** Stage 1: CUTSNS_PIN = 1 [18:10:39]Read from MH i2c: 01 [18:10:39]MH_I2C_Read... [18:10:39]*** Stop cut motor [18:10:39]*** Cut end [18:10:39]Read from MH i2c: 01 07 00 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: 01 07 00 F3 1B 00 00 00 00 00 FF 0F 23 [18:10:39]process_action close_receipt done [18:10:39]requested_data is exist [18:10:39]produce_requested_data [18:10:39]requested_item fm.sn is exist - process it [18:10:39]wFMCommunicate request_size=4 [18:10:39]MH_SAM_APDU [18:10:39]CAPDU: 80 11 00 00 [18:10:39]Write to MH i2c: E2 08 00 F4 1B 80 11 00 00 00 00 00 00 89 [18:10:39]Write i2c OK [18:10:39]MH_I2C_Read... [18:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:39]Read from MH i2c: E2 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 17 00 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 17 00 F4 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E9 [18:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:10:39]wFMCommunicate OK [18:10:39]requested_item fd.num is exist - process it [18:10:39]SAM_PROTO_GetFieldsCounters [18:10:39]wFMCommunicate request_size=4 [18:10:39]MH_SAM_APDU [18:10:39]CAPDU: 80 13 00 00 [18:10:39]Write to MH i2c: E2 08 00 F5 1B 80 13 00 00 00 00 00 00 8C [18:10:39]Write i2c OK [18:10:39]MH_I2C_Read... [18:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:39]Read from MH i2c: E2 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 62 00 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 62 00 F5 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 33 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [18:10:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 33 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:39]wFMCommunicate OK [18:10:39]SAM_PROTO_GetFieldsCounters done [18:10:39]requested_item shift.num is exist - process it [18:10:39]requested_item shift.opened is exist - process it [18:10:39]req_shift_opened [18:10:39]FM_GetShiftState [18:10:39]SAM_PROTO_GetShiftState [18:10:39]wFMCommunicate request_size=4 [18:10:39]MH_SAM_APDU [18:10:39]CAPDU: 80 13 01 00 [18:10:39]Write to MH i2c: E2 08 00 F6 1B 80 13 01 00 00 00 00 00 8E [18:10:39]Write i2c OK [18:10:39]MH_I2C_Read... [18:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:39]Read from MH i2c: E2 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 0E 00 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 0E 00 F6 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 88 [18:10:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:10:40]wFMCommunicate OK [18:10:40]SAM_PROTO_GetShiftState done [18:10:40]FM_GetShiftState done [18:10:40]req_shift_opened done [18:10:40]requested_item shift.open_date is exist - process it [18:10:40]req_shift_open_date [18:10:40]req_shift_open_date done [18:10:40]produce_requested_data done [18:10:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162611,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:10:40]process_action_free close_receipt [18:10:40]json_value_free [18:10:40]json_value_free done [18:10:40]process_json_proto returns [18:10:40]Send response to host [18:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162611,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:10:40]free response buf [18:10:40]execute_script done [18:10:40]execute_script returns [18:10:40]free content buf [18:10:40]Sock 9.Close socket [18:10:40]Sock 9.Thread stoped [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:23]accept exits with 7 [18:11:23]New connection [18:11:23]New thread 3067510116 created [18:11:23]Thread 3067366756 joined [18:11:23]Waiting for new connection... [18:11:23] Sock 7.Parse request [18:11:23]Sock 7.Check first char [18:11:23]Sock 7.First char is OK [18:11:23]request: POST /json_proto HTTP/1.0 [18:11:23]Method: POST [18:11:23]URL: /json_proto [18:11:23]Method is POST - this is cgi request [18:11:23]url: /json_proto [18:11:23]query_string will be loaded in cgi processing [18:11:23]execute_cgi json_proto POST (null) [18:11:23]execute_cgi path=json_proto method=POST [18:11:23]POST find Content-Length [18:11:23]Host: 172.17.39.67:8080 [18:11:23]Content-Length: 678 [18:11:23]Content-Type: application/json [18:11:23] [18:11:23]POST finish read [18:11:23]Found Content-Length = 678 [18:11:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.080, "sum" : 535.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 535.00, "payments": [ { "type": 0, "sum" : 535.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:23]execute_script... [18:11: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)1319179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.080, "sum" : 535.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 535.00, "payments": [ { "type": 0, "sum" : 535.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:23]POST & json_proto [18:11:23]process_json_proto [18:11:23]json parsed OK: [18:11:23]protocol is kg_v1.0 [18:11:23]action value=close_receipt [18:11:23]process_action close_receipt [18:11:23]cmd_close_receipt [18:11:23]MH_GetDate [18:11:23]Write to MH i2c: F0 00 00 F7 1B 01 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: F0 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: F0 09 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: F0 09 00 F7 1B 00 4C C3 92 66 86 7C 92 66 0B [18:11:23]GetLastDocTimeStamp 1720894237 [18:11:23]current date 1720894284 [18:11:23]FM_GetShiftState [18:11:23]SAM_PROTO_GetShiftState [18:11:23]wFMCommunicate request_size=4 [18:11:23]MH_SAM_APDU [18:11:23]CAPDU: 80 13 01 00 [18:11:23]Write to MH i2c: E2 08 00 F8 1B 80 13 01 00 00 00 00 00 90 [18:11:23]Write i2c OK [18:11:23]MH_I2C_Read... [18:11:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:23]Read from MH i2c: E2 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 0E 00 [18:11:23]MH_I2C_Read... [18:11:23]Read from MH i2c: E2 0E 00 F8 1B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 8A [18:11:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:11:23]wFMCommunicate OK [18:11:23]SAM_PROTO_GetShiftState done [18:11:23]FM_GetShiftState done [18:11:23]opened in 1720828979 [18:11:23]opened+sec_in_day 1720915379 [18:11:23]quantity*price = 53570 [18:11:23]sum+1 = 53571 [18:11:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 535.00 Внесено: 700.00 СДАЧА: 165.00 НСП 1% : 4.74 НДС 12% : 56.89 Наличными: 535.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 280 13.07.2024 18:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162612 ФПД: 256890523242518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181124&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162612&fm=256890523242518&tin=02508201610067®Number=0000000000090858&sum=53500 [18:11:24]StoreToDocumentArchive [18:11:24]shift 462 fd 162612 [18:11:24]save to /storage/0462/doc_00162612 [18:11:24]save last doc name /storage/0462/doc_00162612 to /storage/kkm_last_doc_name [18:11:24]save OK [18:11:24]Clear old archive folders... [18:11:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:24]tlvbuf is 006120E0 [18:11:24]SAM_PROTO_ClearQueue [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 09 00 00 [18:11:24]Write to MH i2c: E2 08 00 05 1C 80 09 00 00 00 00 00 00 93 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 05 1C 00 90 00 95 [18:11:24]RAPDU: 90 00 [18:11:24]wFMCommunicate OK [18:11:24]SAM_PROTO_ClearQueue done [18:11:24]KKMCreateOFDPacket [18:11:24]OFDProtocolAddRootSTLVToBuf [18:11:24]FM_MakeSignedData [18:11:24]FM_MakeSignedData [18:11:24]SAM_PROTO_SignData [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 0D 01 02 [18:11:24]Write to MH i2c: E2 08 00 06 1C 80 0D 01 02 00 00 00 00 9B [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 06 1C 00 90 00 96 [18:11:24]RAPDU: 90 00 [18:11:24]wFMCommunicate OK [18:11:24]wFMCommunicate request_size=255 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 42 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4C C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7B 02 00 35 04 06 00 E9 [18:11:24]Write to MH i2c: E2 02 01 07 1C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 42 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4C C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7B 02 00 35 04 06 00 E9 00 00 C3 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 07 1C 00 90 00 97 [18:11:24]RAPDU: 90 00 [18:11:24]wFMCommunicate OK [18:11:24]wFMCommunicate request_size=10 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 0D 02 02 05 A3 FC 62 50 16 [18:11:24]Write to MH i2c: E2 0D 00 08 1C 80 0D 02 02 05 00 A3 FC 62 50 16 00 00 0F [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 03 00 08 1C 00 90 00 98 [18:11:24]RAPDU: 90 00 [18:11:24]wFMCommunicate OK [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 0D 03 02 [18:11:24]Write to MH i2c: E2 08 00 09 1C 80 0D 03 02 00 00 00 00 A0 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 0B 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 0B 00 09 1C 00 2A 60 82 1B E3 20 61 43 90 00 6F [18:11:24]RAPDU: 2A 60 82 1B E3 20 61 43 90 00 [18:11:24]wFMCommunicate OK [18:11:24]SAM_PROTO_SignData done [18:11:24]FM_MakeSignedData done [18:11:24]CreateOFDProtocolMessage [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 11 00 00 [18:11:24]Write to MH i2c: E2 08 00 0A 1C 80 11 00 00 00 00 00 00 A0 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:24]Read from MH i2c: E2 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 17 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: E2 17 00 0A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 00 [18:11:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:11:24]wFMCommunicate OK [18:11:24]CreateOFDProtocolMessage done [18:11:24]OFDSenderStorePacket 162612 [18:11:24]StoreOFDPacket docnum=162612 [18:11:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8C 07 07 01 EE F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 42 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4C C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7B 02 00 35 04 06 00 E9 A3 FC 62 50 16 2A 60 82 1B E3 20 61 43 [18:11:24]CheckFolder [18:11:24]dirname=/storage/ofd_packets [18:11:24]CheckFolder done [18:11:24]ProducePacketName [18:11:24]name=ofd_packets/00162612 [18:11:24]NVStorageSaveData ofd_packets/00162612 [18:11:24]File name is /storage/ofd_packets/00162612 [18:11:24]Write 301 bytes [18:11:24]NVStorageSaveData done [18:11:24]OFDSenderStorePacket done [18:11:24]KKMCreateOFDPacket done [18:11:24]NVStorageSaveData kkm_last_timestamp [18:11:24]File name is /storage/kkm_last_timestamp [18:11:24]Write 4 bytes [18:11:24]NVStorageSaveData done [18:11:24]ExternCall_PrintAddStr [18:11:24]wPrintStart [18:11:24]Write to MH i2c: 01 00 00 0B 1C 27 [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 07 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: 01 07 00 0B 1C 00 00 00 00 00 FF 0F 3C [18:11:24]RasterBufferAndPrint [18:11:24]line Счет N : (1)1319179 [18:11:24]line ИНН: 02508201610067 [18:11:24]line Контрольно-Кассовый Чек [18:11:24]line ПРОДАЖА [18:11:24]line ТРК (МРК, ГНК) : 53 [18:11:24]line Товар: 2710124130 [18:11:24]line Аи-92-К-5 [18:11:24]line 8.080 * 66.30 [18:11:24]line = 535.70 [18:11:24]line НДС 12% НСП 1% [18:11:24]line > о реализуемом товаре [18:11:24]line ОКРУГЛЕНИЕ: -0.70 [18:11:24]line ИТОГО: 535.00 [18:11:24]line Внесено: 700.00 [18:11:24]line СДАЧА: 165.00 [18:11:24]line НСП 1% : 4.74 [18:11:24]line НДС 12% : 56.89 [18:11:24]line Наличными: 535.00 [18:11:24]line Безнал.: 0.00 [18:11:24]line Место: АЗС № 140 "Партнер Нефть" [18:11:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:11:24]line СНО: Общий режим [18:11:24]line Чек 280 13.07.2024 18:11 [18:11:24]line Смена: 462 ФФД: 1.0 [18:11:24]line ЗНМ: 0300000129 [18:11:24]line РНМ: 0000000000090858 [18:11:24]line Версия ККМ: 001 [18:11:24]line ФМ: 0000000000874899 [18:11:24]line ФД: 162612 [18:11:24]line ФПД: 256890523242518 [18:11:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181124&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162612&fm=256890523242518&tin=02508201610067®Number=0000000000090858&sum=53500 [18:11:25]OFD Sender: Processing packet 162612 [packets to send 106, broken 105] [18:11:25]ProducePacketName [18:11:25]name=ofd_packets/00162612 [18:11:25]OFD Sender: To server: pG, [18:11:25]CommunicateWithHost lk.salyk.kg:30040 [18:11:25]ConnectInit lk.salyk.kg [18:11:25]written 0, free lines is 4095 [18:11:25]Connected sock=9 [18:11:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8C 07 07 01 EE F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 1F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 42 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 16 00 00 00 00 07 04 06 00 FC D0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 4C C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7B 02 00 35 04 06 00 E9 A3 FC 62 50 16 2A 60 82 1B E3 20 61 43 [18:11:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2A D5 47 00 FC 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 34 7B 02 00 F4 03 04 00 5A 6F 92 66 B6 04 01 00 00 8E AB 67 A7 D0 08 2A 61 [18:11:25]CommunicateWithHost err = 0 [18:11:25]CheckOFDResponse [18:11:25]1017 (14) - 77093643461234 [18:11:25]1041 (16) - 0000000000874899 [18:11:25]1040 (4) - 162612 [18:11:25]1012 (4) - 13.07.2024 12:13 [18:11:25]1206 (1) - 0 [18:11:25]OFD Sender: Remove packet 162612 [18:11:25]ProducePacketName [18:11:25]name=ofd_packets/00162612 [18:11:25]NVStorageDeleteData [18:11:25]Write to MH i2c: 01 00 00 36 1C 52 [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: 01 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: 01 07 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: 01 07 00 36 1C 00 00 00 00 00 F1 0C 56 [18:11:25]RasterBufferAndPrint [18:11:25]line [18:11:25]line [18:11:25]line [18:11:25]line [18:11:25]line [18:11:25]written 0, free lines is 3319 [18:11:25]MH_Cut [18:11:25]Write to MH i2c: D1 01 00 3D 1C 01 2B [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: D1 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: D1 01 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: D1 01 00 3D 1C 00 2A [18:11:25]Write to MH i2c: 01 00 00 3E 1C 5A [18:11:25]Write i2c OK [18:11:25]MH_I2C_Read... [18:11:25]OFD Sender: No OFD packet to send [18:11:26]*** Cut start [18:11:26]*** Purtial cut [18:11:26]*** CUTSNS_PIN = 0 [18:11:26]*** Stage 1: CUTSNS_PIN = 1 [18:11:28]Read from MH i2c: 01 [18:11:28]MH_I2C_Read... [18:11:28]*** Stop cut motor [18:11:28]*** Cut end [18:11:28]Read from MH i2c: 01 07 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 07 00 3E 1C 00 00 00 00 00 FF 0F 6F [18:11:28]process_action close_receipt done [18:11:28]requested_data is exist [18:11:28]produce_requested_data [18:11:28]requested_item fm.sn is exist - process it [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 11 00 00 [18:11:28]Write to MH i2c: E2 08 00 3F 1C 80 11 00 00 00 00 00 00 D5 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 17 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 17 00 3F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 35 [18:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:11:28]wFMCommunicate OK [18:11:28]requested_item fd.num is exist - process it [18:11:28]SAM_PROTO_GetFieldsCounters [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 13 00 00 [18:11:28]Write to MH i2c: E2 08 00 40 1C 80 13 00 00 00 00 00 00 D8 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 62 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 62 00 40 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 34 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [18: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 34 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:28]wFMCommunicate OK [18:11:28]SAM_PROTO_GetFieldsCounters done [18:11:28]requested_item shift.num is exist - process it [18:11:28]requested_item shift.opened is exist - process it [18:11:28]req_shift_opened [18:11:28]FM_GetShiftState [18:11:28]SAM_PROTO_GetShiftState [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 13 01 00 [18:11:28]Write to MH i2c: E2 08 00 41 1C 80 13 01 00 00 00 00 00 DA [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 0E 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 0E 00 41 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D4 [18:11:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:11:28]wFMCommunicate OK [18:11:28]SAM_PROTO_GetShiftState done [18:11:28]FM_GetShiftState done [18:11:28]req_shift_opened done [18:11:28]requested_item shift.open_date is exist - process it [18:11:28]req_shift_open_date [18:11:28]req_shift_open_date done [18:11:28]produce_requested_data done [18:11:28]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162612,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:11:28]process_action_free close_receipt [18:11:28]json_value_free [18:11:28]json_value_free done [18:11:28]process_json_proto returns [18:11:28]Send response to host [18:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162612,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:11:28]free response buf [18:11:28]execute_script done [18:11:28]execute_script returns [18:11:28]free content buf [18:11:28]Sock 7.Close socket [18:11:28]Sock 7.Thread stoped [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:31]accept exits with 10 [18:13:31]New connection [18:13:31]New thread 3067366756 created [18:13:31]Thread 3067510116 joined [18:13:31]Waiting for new connection... [18:13:31] Sock 10.Parse request [18:13:31]Sock 10.Check first char [18:13:31]Sock 10.First char is OK [18:13:31]request: POST /json_proto HTTP/1.0 [18:13:31]Method: POST [18:13:31]URL: /json_proto [18:13:31]Method is POST - this is cgi request [18:13:31]url: /json_proto [18:13:31]query_string will be loaded in cgi processing [18:13:31]execute_cgi json_proto POST (null) [18:13:31]execute_cgi path=json_proto method=POST [18:13:31]POST find Content-Length [18:13:31]Host: 172.17.39.67:8080 [18:13:31]Content-Length: 688 [18:13:31]Content-Type: application/json [18:13:31] [18:13:31]POST finish read [18:13:31]Found Content-Length = 688 [18:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:13:31]execute_script... [18:13: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)1319181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:13:31]POST & json_proto [18:13:31]process_json_proto [18:13:31]json parsed OK: [18:13:31]protocol is kg_v1.0 [18:13:31]action value=close_receipt [18:13:31]process_action close_receipt [18:13:31]cmd_close_receipt [18:13:31]MH_GetDate [18:13:31]Write to MH i2c: F0 00 00 42 1C 4D [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 09 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 09 00 42 1C 00 CC C3 92 66 86 7C 92 66 D7 [18:13:31]GetLastDocTimeStamp 1720894284 [18:13:31]current date 1720894412 [18:13:31]FM_GetShiftState [18:13:31]SAM_PROTO_GetShiftState [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 13 01 00 [18:13:31]Write to MH i2c: E2 08 00 43 1C 80 13 01 00 00 00 00 00 DC [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 0E 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 0E 00 43 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D6 [18:13:31]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:13:31]wFMCommunicate OK [18:13:31]SAM_PROTO_GetShiftState done [18:13:31]FM_GetShiftState done [18:13:31]opened in 1720828979 [18:13:31]opened+sec_in_day 1720915379 [18:13:31]quantity*price = 100042 [18:13:31]sum+1 = 100044 [18:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 281 13.07.2024 18:13 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162613 ФПД: 151225855409989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181332&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162613&fm=151225855409989&tin=02508201610067®Number=0000000000090858&sum=100000 [18:13:32]StoreToDocumentArchive [18:13:32]shift 462 fd 162613 [18:13:32]save to /storage/0462/doc_00162613 [18:13:32]save last doc name /storage/0462/doc_00162613 to /storage/kkm_last_doc_name [18:13:32]save OK [18:13:32]Clear old archive folders... [18:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:13:32]tlvbuf is B6F30E20 [18:13:32]SAM_PROTO_ClearQueue [18:13:32]wFMCommunicate request_size=4 [18:13:32]MH_SAM_APDU [18:13:32]CAPDU: 80 09 00 00 [18:13:32]Write to MH i2c: E2 08 00 50 1C 80 09 00 00 00 00 00 00 DE [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:32]Read from MH i2c: E2 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 03 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 03 00 50 1C 00 90 00 E0 [18:13:32]RAPDU: 90 00 [18:13:32]wFMCommunicate OK [18:13:32]SAM_PROTO_ClearQueue done [18:13:32]KKMCreateOFDPacket [18:13:32]OFDProtocolAddRootSTLVToBuf [18:13:32]FM_MakeSignedData [18:13:32]FM_MakeSignedData [18:13:32]SAM_PROTO_SignData [18:13:32]wFMCommunicate request_size=4 [18:13:32]MH_SAM_APDU [18:13:32]CAPDU: 80 0D 01 02 [18:13:32]Write to MH i2c: E2 08 00 51 1C 80 0D 01 02 00 00 00 00 E6 [18:13:32]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 51 1C 00 90 00 E1 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=255 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 19 01 00 00 F4 03 04 00 CC C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7B 02 00 35 04 06 00 [18:13:33]Write to MH i2c: E2 02 01 52 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 19 01 00 00 F4 03 04 00 CC C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7B 02 00 35 04 06 00 00 00 A1 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 52 1C 00 90 00 E2 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=11 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 02 02 06 89 8A 03 64 7F 45 [18:13:33]Write to MH i2c: E2 0E 00 53 1C 80 0D 02 02 06 00 89 8A 03 64 7F 45 00 00 33 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 53 1C 00 90 00 E3 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 03 02 [18:13:33]Write to MH i2c: E2 08 00 54 1C 80 0D 03 02 00 00 00 00 EB [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0B 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0B 00 54 1C 00 11 D7 C4 5B E6 C6 47 F8 90 00 DE [18:13:33]RAPDU: 11 D7 C4 5B E6 C6 47 F8 90 00 [18:13:33]wFMCommunicate OK [18:13:33]SAM_PROTO_SignData done [18:13:33]FM_MakeSignedData done [18:13:33]CreateOFDProtocolMessage [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 11 00 00 [18:13:33]Write to MH i2c: E2 08 00 55 1C 80 11 00 00 00 00 00 00 EB [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 55 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4B [18:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:13:33]wFMCommunicate OK [18:13:33]CreateOFDProtocolMessage done [18:13:33]OFDSenderStorePacket 162613 [18:13:33]StoreOFDPacket docnum=162613 [18:13:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 14 57 08 01 A0 25 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 19 01 00 00 F4 03 04 00 CC C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7B 02 00 35 04 06 00 89 8A 03 64 7F 45 11 D7 C4 5B E6 C6 47 F8 [18:13:33]CheckFolder [18:13:33]dirname=/storage/ofd_packets [18:13:33]CheckFolder done [18:13:33]ProducePacketName [18:13:33]name=ofd_packets/00162613 [18:13:33]NVStorageSaveData ofd_packets/00162613 [18:13:33]File name is /storage/ofd_packets/00162613 [18:13:33]Write 302 bytes [18:13:33]NVStorageSaveData done [18:13:33]OFDSenderStorePacket done [18:13:33]KKMCreateOFDPacket done [18:13:33]NVStorageSaveData kkm_last_timestamp [18:13:33]File name is /storage/kkm_last_timestamp [18:13:33]Write 4 bytes [18:13:33]NVStorageSaveData done [18:13:33]ExternCall_PrintAddStr [18:13:33]wPrintStart [18:13:33]Write to MH i2c: 01 00 00 56 1C 72 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 56 1C 00 00 00 00 00 FF 0F 87 [18:13:33]RasterBufferAndPrint [18:13:33]line Счет N : (1)1319181 [18:13:33]line ИНН: 02508201610067 [18:13:33]line Контрольно-Кассовый Чек [18:13:33]line ПРОДАЖА [18:13:33]line ТРК (МРК, ГНК) : 61 [18:13:33]line Товар: 2710194210 [18:13:33]line ДТ(л)-К-5 [18:13:33]line 13.780 * 72.60 [18:13:33]line = 1000.43 [18:13:33]line НДС 12% НСП 1% [18:13:33]line > о реализуемом товаре [18:13:33]line ОКРУГЛЕНИЕ: -0.43 [18:13:33]line ИТОГО: 1000.00 [18:13:33]line Внесено: 1000.00 [18:13:33]line СДАЧА: 0.00 [18:13:33]line НСП 1% : 8.85 [18:13:33]line НДС 12% : 106.24 [18:13:33]line Наличными: 1000.00 [18:13:33]line Безнал.: 0.00 [18:13:33]line Место: АЗС № 140 "Партнер Нефть" [18:13:33]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:13:33]line СНО: Общий режим [18:13:33]line Чек 281 13.07.2024 18:13 [18:13:33]line Смена: 462 ФФД: 1.0 [18:13:33]line ЗНМ: 0300000129 [18:13:33]line РНМ: 0000000000090858 [18:13:33]line Версия ККМ: 001 [18:13:33]line ФМ: 0000000000874899 [18:13:33]line ФД: 162613 [18:13:33]line ФПД: 151225855409989 [18:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181332&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162613&fm=151225855409989&tin=02508201610067®Number=0000000000090858&sum=100000 [18:13:33]OFD Sender: Processing packet 162613 [packets to send 106, broken 105] [18:13:33]ProducePacketName [18:13:33]name=ofd_packets/00162613 [18:13:33]OFD Sender: To server: pG, [18:13:33]CommunicateWithHost lk.salyk.kg:30040 [18:13:33]ConnectInit lk.salyk.kg [18:13:33]written 0, free lines is 4095 [18:13:33]Connected sock=9 [18:13:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 14 57 08 01 A0 25 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 19 01 00 00 F4 03 04 00 CC C3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7B 02 00 35 04 06 00 89 8A 03 64 7F 45 11 D7 C4 5B E6 C6 47 F8 [18:13:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 34 47 00 21 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 35 7B 02 00 F4 03 04 00 DB 6F 92 66 B6 04 01 00 00 D0 51 03 97 C0 94 F9 1A [18:13:34]CommunicateWithHost err = 0 [18:13:34]CheckOFDResponse [18:13:34]1017 (14) - 77093643461234 [18:13:34]1041 (16) - 0000000000874899 [18:13:34]1040 (4) - 162613 [18:13:34]1012 (4) - 13.07.2024 12:15 [18:13:34]1206 (1) - 0 [18:13:34]OFD Sender: Remove packet 162613 [18:13:34]ProducePacketName [18:13:34]name=ofd_packets/00162613 [18:13:34]NVStorageDeleteData [18:13:34]Write to MH i2c: 01 00 00 81 1C 9D [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 81 1C 00 00 00 00 00 F2 0C A2 [18:13:34]RasterBufferAndPrint [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]written 0, free lines is 3323 [18:13:34]MH_Cut [18:13:34]Write to MH i2c: D1 01 00 88 1C 01 76 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 01 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 01 00 88 1C 00 75 [18:13:34]Write to MH i2c: 01 00 00 89 1C A5 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]OFD Sender: No OFD packet to send [18:13:35]*** Cut start [18:13:35]*** Purtial cut [18:13:35]*** Stage 1: CUTSNS_PIN = 1 [18:13:35]Read from MH i2c: 01 [18:13:35]MH_I2C_Read... [18:13:35]*** Stop cut motor [18:13:35]*** Cut end [18:13:35]Read from MH i2c: 01 07 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: 01 07 00 89 1C 00 00 00 00 00 FF 0F BA [18:13:35]process_action close_receipt done [18:13:35]requested_data is exist [18:13:35]produce_requested_data [18:13:35]requested_item fm.sn is exist - process it [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 11 00 00 [18:13:35]Write to MH i2c: E2 08 00 8A 1C 80 11 00 00 00 00 00 00 20 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 17 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 17 00 8A 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 80 [18:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:13:35]wFMCommunicate OK [18:13:35]requested_item fd.num is exist - process it [18:13:35]SAM_PROTO_GetFieldsCounters [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 13 00 00 [18:13:35]Write to MH i2c: E2 08 00 8B 1C 80 13 00 00 00 00 00 00 23 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 62 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 62 00 8B 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [18:13:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 35 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:35]wFMCommunicate OK [18:13:35]SAM_PROTO_GetFieldsCounters done [18:13:35]requested_item shift.num is exist - process it [18:13:35]requested_item shift.opened is exist - process it [18:13:35]req_shift_opened [18:13:35]FM_GetShiftState [18:13:35]SAM_PROTO_GetShiftState [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 13 01 00 [18:13:35]Write to MH i2c: E2 08 00 8C 1C 80 13 01 00 00 00 00 00 25 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 0E 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 0E 00 8C 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1F [18:13:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:13:35]wFMCommunicate OK [18:13:35]SAM_PROTO_GetShiftState done [18:13:35]FM_GetShiftState done [18:13:35]req_shift_opened done [18:13:35]requested_item shift.open_date is exist - process it [18:13:35]req_shift_open_date [18:13:35]req_shift_open_date done [18:13:35]produce_requested_data done [18:13:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162613,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:13:35]process_action_free close_receipt [18:13:35]json_value_free [18:13:35]json_value_free done [18:13:35]process_json_proto returns [18:13:35]Send response to host [18:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162613,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:13:35]free response buf [18:13:35]execute_script done [18:13:35]execute_script returns [18:13:35]free content buf [18:13:35]Sock 10.Close socket [18:13:35]Sock 10.Thread stoped [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:57]accept exits with 7 [18:15:57]New connection [18:15:57]New thread 3067510116 created [18:15:57]Thread 3067366756 joined [18:15:57]Waiting for new connection... [18:15:57] Sock 7.Parse request [18:15:57]Sock 7.Check first char [18:15:57]Sock 7.First char is OK [18:15:57]request: POST /json_proto HTTP/1.0 [18:15:57]Method: POST [18:15:57]URL: /json_proto [18:15:57]Method is POST - this is cgi request [18:15:57]url: /json_proto [18:15:57]query_string will be loaded in cgi processing [18:15:57]execute_cgi json_proto POST (null) [18:15:57]execute_cgi path=json_proto method=POST [18:15:57]POST find Content-Length [18:15:57]Host: 172.17.39.67:8080 [18:15:57]Content-Length: 688 [18:15:57]Content-Type: application/json [18:15:57] [18:15:57]POST finish read [18:15:57]Found Content-Length = 688 [18:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:15:57]execute_script... [18:15: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)1319182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:15:57]POST & json_proto [18:15:57]process_json_proto [18:15:57]json parsed OK: [18:15:57]protocol is kg_v1.0 [18:15:57]action value=close_receipt [18:15:57]process_action close_receipt [18:15:57]cmd_close_receipt [18:15:57]MH_GetDate [18:15:57]Write to MH i2c: F0 00 00 8D 1C 98 [18:15:57]Write i2c OK [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: F0 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: F0 09 00 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: F0 09 00 8D 1C 00 5E C4 92 66 86 7C 92 66 B5 [18:15:57]GetLastDocTimeStamp 1720894412 [18:15:57]current date 1720894558 [18:15:57]FM_GetShiftState [18:15:57]SAM_PROTO_GetShiftState [18:15:57]wFMCommunicate request_size=4 [18:15:57]MH_SAM_APDU [18:15:57]CAPDU: 80 13 01 00 [18:15:57]Write to MH i2c: E2 08 00 8E 1C 80 13 01 00 00 00 00 00 27 [18:15:57]Write i2c OK [18:15:57]MH_I2C_Read... [18:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:57]Read from MH i2c: E2 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: E2 0E 00 [18:15:57]MH_I2C_Read... [18:15:57]Read from MH i2c: E2 0E 00 8E 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 21 [18:15:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:15:57]wFMCommunicate OK [18:15:57]SAM_PROTO_GetShiftState done [18:15:57]FM_GetShiftState done [18:15:57]opened in 1720828979 [18:15:57]opened+sec_in_day 1720915379 [18:15:57]quantity*price = 350004 [18:15:57]sum+1 = 350006 [18:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.97 НДС 12% : 371.69 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 282 13.07.2024 18:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162614 ФПД: 199560714668527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181558&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162614&fm=199560714668527&tin=02508201610067®Number=0000000000090858&sum=350000 [18:15:58]StoreToDocumentArchive [18:15:58]shift 462 fd 162614 [18:15:58]save to /storage/0462/doc_00162614 [18:15:58]save last doc name /storage/0462/doc_00162614 to /storage/kkm_last_doc_name [18:15:58]save OK [18:15:58]Clear old archive folders... [18:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:15:58]tlvbuf is 006E2D50 [18:15:58]SAM_PROTO_ClearQueue [18:15:58]wFMCommunicate request_size=4 [18:15:58]MH_SAM_APDU [18:15:58]CAPDU: 80 09 00 00 [18:15:58]Write to MH i2c: E2 08 00 9B 1C 80 09 00 00 00 00 00 00 29 [18:15:58]Write i2c OK [18:15:58]MH_I2C_Read... [18:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:58]Read from MH i2c: E2 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 03 00 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 03 00 9B 1C 00 90 00 2B [18:15:58]RAPDU: 90 00 [18:15:58]wFMCommunicate OK [18:15:58]SAM_PROTO_ClearQueue done [18:15:58]KKMCreateOFDPacket [18:15:58]OFDProtocolAddRootSTLVToBuf [18:15:58]FM_MakeSignedData [18:15:58]FM_MakeSignedData [18:15:58]SAM_PROTO_SignData [18:15:58]wFMCommunicate request_size=4 [18:15:58]MH_SAM_APDU [18:15:58]CAPDU: 80 0D 01 02 [18:15:58]Write to MH i2c: E2 08 00 9C 1C 80 0D 01 02 00 00 00 00 31 [18:15:58]Write i2c OK [18:15:58]MH_I2C_Read... [18:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:58]Read from MH i2c: E2 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 03 00 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 03 00 9C 1C 00 90 00 2C [18:15:58]RAPDU: 90 00 [18:15:58]wFMCommunicate OK [18:15:58]wFMCommunicate request_size=255 [18:15:58]MH_SAM_APDU [18:15:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1A 01 00 00 F4 03 04 00 5E C4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7B 02 00 35 04 06 00 [18:15:58]Write to MH i2c: E2 02 01 9D 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1A 01 00 00 F4 03 04 00 5E C4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7B 02 00 35 04 06 00 00 00 55 [18:15:58]Write i2c OK [18:15:58]MH_I2C_Read... [18:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:58]Read from MH i2c: E2 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 03 00 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 03 00 9D 1C 00 90 00 2D [18:15:58]RAPDU: 90 00 [18:15:58]wFMCommunicate OK [18:15:58]wFMCommunicate request_size=11 [18:15:58]MH_SAM_APDU [18:15:58]CAPDU: 80 0D 02 02 06 B5 7F D9 82 49 EF [18:15:58]Write to MH i2c: E2 0E 00 9E 1C 80 0D 02 02 06 00 B5 7F D9 82 49 EF 00 00 07 [18:15:58]Write i2c OK [18:15:58]MH_I2C_Read... [18:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:58]Read from MH i2c: E2 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 03 00 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 03 00 9E 1C 00 90 00 2E [18:15:58]RAPDU: 90 00 [18:15:58]wFMCommunicate OK [18:15:58]wFMCommunicate request_size=4 [18:15:58]MH_SAM_APDU [18:15:58]CAPDU: 80 0D 03 02 [18:15:58]Write to MH i2c: E2 08 00 9F 1C 80 0D 03 02 00 00 00 00 36 [18:15:58]Write i2c OK [18:15:58]MH_I2C_Read... [18:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:58]Read from MH i2c: E2 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 0B 00 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 0B 00 9F 1C 00 4C 1E 1E 05 92 A8 D8 DE 90 00 B4 [18:15:58]RAPDU: 4C 1E 1E 05 92 A8 D8 DE 90 00 [18:15:58]wFMCommunicate OK [18:15:58]SAM_PROTO_SignData done [18:15:58]FM_MakeSignedData done [18:15:58]CreateOFDProtocolMessage [18:15:58]wFMCommunicate request_size=4 [18:15:58]MH_SAM_APDU [18:15:58]CAPDU: 80 11 00 00 [18:15:58]Write to MH i2c: E2 08 00 A0 1C 80 11 00 00 00 00 00 00 36 [18:15:58]Write i2c OK [18:15:58]MH_I2C_Read... [18:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:58]Read from MH i2c: E2 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 17 00 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: E2 17 00 A0 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 96 [18:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:15:58]wFMCommunicate OK [18:15:58]CreateOFDProtocolMessage done [18:15:58]OFDSenderStorePacket 162614 [18:15:58]StoreOFDPacket docnum=162614 [18:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8B 0D 08 01 7A 25 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1A 01 00 00 F4 03 04 00 5E C4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7B 02 00 35 04 06 00 B5 7F D9 82 49 EF 4C 1E 1E 05 92 A8 D8 DE [18:15:58]CheckFolder [18:15:58]dirname=/storage/ofd_packets [18:15:58]CheckFolder done [18:15:58]ProducePacketName [18:15:58]name=ofd_packets/00162614 [18:15:58]NVStorageSaveData ofd_packets/00162614 [18:15:58]File name is /storage/ofd_packets/00162614 [18:15:58]Write 302 bytes [18:15:58]NVStorageSaveData done [18:15:58]OFDSenderStorePacket done [18:15:58]KKMCreateOFDPacket done [18:15:58]NVStorageSaveData kkm_last_timestamp [18:15:58]File name is /storage/kkm_last_timestamp [18:15:58]Write 4 bytes [18:15:58]NVStorageSaveData done [18:15:58]ExternCall_PrintAddStr [18:15:58]wPrintStart [18:15:58]Write to MH i2c: 01 00 00 A1 1C BD [18:15:58]Write i2c OK [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: 01 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: 01 07 00 [18:15:58]MH_I2C_Read... [18:15:58]Read from MH i2c: 01 07 00 A1 1C 00 00 00 00 00 FF 0F D2 [18:15:58]RasterBufferAndPrint [18:15:58]line Счет N : (1)1319182 [18:15:58]line ИНН: 02508201610067 [18:15:58]line Контрольно-Кассовый Чек [18:15:58]line ПРОДАЖА [18:15:58]line ТРК (МРК, ГНК) : 11 [18:15:58]line Товар: 2710194210 [18:15:58]line ДТ(л)-К-5 [18:15:58]line 48.210 * 72.60 [18:15:58]line = 3500.05 [18:15:58]line НДС 12% НСП 1% [18:15:58]line > о реализуемом товаре [18:15:58]line ОКРУГЛЕНИЕ: -0.05 [18:15:58]line ИТОГО: 3500.00 [18:15:58]line Внесено: 3500.00 [18:15:58]line СДАЧА: 0.00 [18:15:58]line НСП 1% : 30.97 [18:15:58]line НДС 12% : 371.69 [18:15:58]line Наличными: 3500.00 [18:15:58]line Безнал.: 0.00 [18:15:58]line Место: АЗС № 140 "Партнер Нефть" [18:15:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:15:58]line СНО: Общий режим [18:15:58]line Чек 282 13.07.2024 18:15 [18:15:58]line Смена: 462 ФФД: 1.0 [18:15:58]line ЗНМ: 0300000129 [18:15:58]line РНМ: 0000000000090858 [18:15:58]line Версия ККМ: 001 [18:15:58]line ФМ: 0000000000874899 [18:15:58]line ФД: 162614 [18:15:58]line ФПД: 199560714668527 [18:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181558&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162614&fm=199560714668527&tin=02508201610067®Number=0000000000090858&sum=350000 [18:15:59]OFD Sender: Processing packet 162614 [packets to send 106, broken 105] [18:15:59]ProducePacketName [18:15:59]name=ofd_packets/00162614 [18:15:59]OFD Sender: To server: pG, [18:15:59]CommunicateWithHost lk.salyk.kg:30040 [18:15:59]ConnectInit lk.salyk.kg [18:15:59]written 0, free lines is 4095 [18:15:59]Connected sock=10 [18:15:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 8B 0D 08 01 7A 25 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1A 01 00 00 F4 03 04 00 5E C4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7B 02 00 35 04 06 00 B5 7F D9 82 49 EF 4C 1E 1E 05 92 A8 D8 DE [18:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 65 BE 47 00 86 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 36 7B 02 00 F4 03 04 00 6C 70 92 66 B6 04 01 00 00 1C B4 61 E4 BC E4 5B 4C [18:15:59]CommunicateWithHost err = 0 [18:15:59]CheckOFDResponse [18:15:59]1017 (14) - 77093643461234 [18:15:59]1041 (16) - 0000000000874899 [18:15:59]1040 (4) - 162614 [18:15:59]1012 (4) - 13.07.2024 12:17 [18:15:59]1206 (1) - 0 [18:15:59]OFD Sender: Remove packet 162614 [18:15:59]ProducePacketName [18:15:59]name=ofd_packets/00162614 [18:15:59]NVStorageDeleteData [18:15:59]Write to MH i2c: 01 00 00 CC 1C E8 [18:15:59]Write i2c OK [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: 01 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: 01 07 00 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: 01 07 00 CC 1C 00 00 00 00 00 EA 0C E5 [18:15:59]RasterBufferAndPrint [18:15:59]line [18:15:59]line [18:15:59]line [18:15:59]line [18:15:59]line [18:15:59]written 0, free lines is 3312 [18:15:59]MH_Cut [18:15:59]Write to MH i2c: D1 01 00 D3 1C 01 C1 [18:15:59]Write i2c OK [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: D1 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: D1 01 00 [18:15:59]MH_I2C_Read... [18:15:59]Read from MH i2c: D1 01 00 D3 1C 00 C0 [18:15:59]Write to MH i2c: 01 00 00 D4 1C F0 [18:15:59]Write i2c OK [18:15:59]MH_I2C_Read... [18:15:59]OFD Sender: No OFD packet to send [18:16:00]*** Cut start [18:16:00]*** Purtial cut [18:16:00]*** CUTSNS_PIN = 0 [18:16:00]*** Stage 1: CUTSNS_PIN = 1 [18:16:02]Read from MH i2c: 01 [18:16:02]MH_I2C_Read... [18:16:02]*** Stop cut motor [18:16:02]*** Cut end [18:16:02]Read from MH i2c: 01 07 00 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: 01 07 00 D4 1C 00 00 00 00 00 FF 0F 05 [18:16:02]process_action close_receipt done [18:16:02]requested_data is exist [18:16:02]produce_requested_data [18:16:02]requested_item fm.sn is exist - process it [18:16:02]wFMCommunicate request_size=4 [18:16:02]MH_SAM_APDU [18:16:02]CAPDU: 80 11 00 00 [18:16:02]Write to MH i2c: E2 08 00 D5 1C 80 11 00 00 00 00 00 00 6B [18:16:02]Write i2c OK [18:16:02]MH_I2C_Read... [18:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:02]Read from MH i2c: E2 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: E2 17 00 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: E2 17 00 D5 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CB [18:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:16:02]wFMCommunicate OK [18:16:02]requested_item fd.num is exist - process it [18:16:02]SAM_PROTO_GetFieldsCounters [18:16:02]wFMCommunicate request_size=4 [18:16:02]MH_SAM_APDU [18:16:02]CAPDU: 80 13 00 00 [18:16:02]Write to MH i2c: E2 08 00 D6 1C 80 13 00 00 00 00 00 00 6E [18:16:02]Write i2c OK [18:16:02]MH_I2C_Read... [18:16:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:02]Read from MH i2c: E2 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: E2 62 00 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: E2 62 00 D6 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 36 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [18:16:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 36 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:02]wFMCommunicate OK [18:16:02]SAM_PROTO_GetFieldsCounters done [18:16:02]requested_item shift.num is exist - process it [18:16:02]requested_item shift.opened is exist - process it [18:16:02]req_shift_opened [18:16:02]FM_GetShiftState [18:16:02]SAM_PROTO_GetShiftState [18:16:02]wFMCommunicate request_size=4 [18:16:02]MH_SAM_APDU [18:16:02]CAPDU: 80 13 01 00 [18:16:02]Write to MH i2c: E2 08 00 D7 1C 80 13 01 00 00 00 00 00 70 [18:16:02]Write i2c OK [18:16:02]MH_I2C_Read... [18:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:02]Read from MH i2c: E2 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: E2 0E 00 [18:16:02]MH_I2C_Read... [18:16:02]Read from MH i2c: E2 0E 00 D7 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6A [18:16:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:16:02]wFMCommunicate OK [18:16:02]SAM_PROTO_GetShiftState done [18:16:02]FM_GetShiftState done [18:16:02]req_shift_opened done [18:16:02]requested_item shift.open_date is exist - process it [18:16:02]req_shift_open_date [18:16:02]req_shift_open_date done [18:16:02]produce_requested_data done [18:16:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162614,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:16:02]process_action_free close_receipt [18:16:02]json_value_free [18:16:02]json_value_free done [18:16:02]process_json_proto returns [18:16:02]Send response to host [18:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162614,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:16:02]free response buf [18:16:02]execute_script done [18:16:02]execute_script returns [18:16:02]free content buf [18:16:02]Sock 7.Close socket [18:16:02]Sock 7.Thread stoped [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]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:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:28]accept exits with 9 [18:18:28]New connection [18:18:28]New thread 3067366756 created [18:18:28]Thread 3067510116 joined [18:18:28]Waiting for new connection... [18:18:28] Sock 9.Parse request [18:18:28]Sock 9.Check first char [18:18:28]Sock 9.First char is OK [18:18:28]request: POST /json_proto HTTP/1.0 [18:18:28]Method: POST [18:18:28]URL: /json_proto [18:18:28]Method is POST - this is cgi request [18:18:28]url: /json_proto [18:18:28]query_string will be loaded in cgi processing [18:18:28]execute_cgi json_proto POST (null) [18:18:28]execute_cgi path=json_proto method=POST [18:18:28]POST find Content-Length [18:18:28]Host: 172.17.39.67:8080 [18:18:28]Content-Length: 688 [18:18:28]Content-Type: application/json [18:18:28] [18:18:28]POST finish read [18:18:28]Found Content-Length = 688 [18:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:18:28]execute_script... [18:18: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)1319183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [18:18:28]POST & json_proto [18:18:28]process_json_proto [18:18:28]json parsed OK: [18:18:28]protocol is kg_v1.0 [18:18:28]action value=close_receipt [18:18:28]process_action close_receipt [18:18:28]cmd_close_receipt [18:18:28]MH_GetDate [18:18:28]Write to MH i2c: F0 00 00 D8 1C E3 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 09 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 09 00 D8 1C 00 F5 C4 92 66 86 7C 92 66 97 [18:18:28]GetLastDocTimeStamp 1720894558 [18:18:28]current date 1720894709 [18:18:28]FM_GetShiftState [18:18:28]SAM_PROTO_GetShiftState [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 01 00 [18:18:28]Write to MH i2c: E2 08 00 D9 1C 80 13 01 00 00 00 00 00 72 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 D9 1C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 6C [18:18:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetShiftState done [18:18:28]FM_GetShiftState done [18:18:28]opened in 1720828979 [18:18:28]opened+sec_in_day 1720915379 [18:18:28]quantity*price = 300055 [18:18:28]sum+1 = 300057 [18:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 283 13.07.2024 18:18 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162615 ФПД: 268826237548278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181829&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162615&fm=268826237548278&tin=02508201610067®Number=0000000000090858&sum=300000 [18:18:29]StoreToDocumentArchive [18:18:29]shift 462 fd 162615 [18:18:29]save to /storage/0462/doc_00162615 [18:18:29]save last doc name /storage/0462/doc_00162615 to /storage/kkm_last_doc_name [18:18:29]save OK [18:18:29]Clear old archive folders... [18:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:18:29]tlvbuf is 00611860 [18:18:29]SAM_PROTO_ClearQueue [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 09 00 00 [18:18:29]Write to MH i2c: E2 08 00 E6 1C 80 09 00 00 00 00 00 00 74 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 E6 1C 00 90 00 76 [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]SAM_PROTO_ClearQueue done [18:18:29]KKMCreateOFDPacket [18:18:29]OFDProtocolAddRootSTLVToBuf [18:18:29]FM_MakeSignedData [18:18:29]FM_MakeSignedData [18:18:29]SAM_PROTO_SignData [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 01 02 [18:18:29]Write to MH i2c: E2 08 00 E7 1C 80 0D 01 02 00 00 00 00 7C [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 E7 1C 00 90 00 77 [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]wFMCommunicate request_size=255 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1B 01 00 00 F4 03 04 00 F5 C4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7B 02 00 35 04 06 00 [18:18:29]Write to MH i2c: E2 02 01 E8 1C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1B 01 00 00 F4 03 04 00 F5 C4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7B 02 00 35 04 06 00 00 00 A9 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:30]OFD Sender: No OFD packet to send [18:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 E8 1C 00 90 00 78 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]wFMCommunicate request_size=11 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 02 02 06 F4 7E FC 65 36 F6 [18:18:30]Write to MH i2c: E2 0E 00 E9 1C 80 0D 02 02 06 00 F4 7E FC 65 36 F6 00 00 8A [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 03 00 E9 1C 00 90 00 79 [18:18:30]RAPDU: 90 00 [18:18:30]wFMCommunicate OK [18:18:30]wFMCommunicate request_size=4 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 0D 03 02 [18:18:30]Write to MH i2c: E2 08 00 EA 1C 80 0D 03 02 00 00 00 00 81 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 0B 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 0B 00 EA 1C 00 9B 0C EA 7E 82 F7 CD 38 90 00 0F [18:18:30]RAPDU: 9B 0C EA 7E 82 F7 CD 38 90 00 [18:18:30]wFMCommunicate OK [18:18:30]SAM_PROTO_SignData done [18:18:30]FM_MakeSignedData done [18:18:30]CreateOFDProtocolMessage [18:18:30]wFMCommunicate request_size=4 [18:18:30]MH_SAM_APDU [18:18:30]CAPDU: 80 11 00 00 [18:18:30]Write to MH i2c: E2 08 00 EB 1C 80 11 00 00 00 00 00 00 81 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:30]Read from MH i2c: E2 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 17 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: E2 17 00 EB 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E1 [18:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:18:30]wFMCommunicate OK [18:18:30]CreateOFDProtocolMessage done [18:18:30]OFDSenderStorePacket 162615 [18:18:30]StoreOFDPacket docnum=162615 [18:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 19 4D 08 01 16 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1B 01 00 00 F4 03 04 00 F5 C4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7B 02 00 35 04 06 00 F4 7E FC 65 36 F6 9B 0C EA 7E 82 F7 CD 38 [18:18:30]CheckFolder [18:18:30]dirname=/storage/ofd_packets [18:18:30]CheckFolder done [18:18:30]ProducePacketName [18:18:30]name=ofd_packets/00162615 [18:18:30]NVStorageSaveData ofd_packets/00162615 [18:18:30]File name is /storage/ofd_packets/00162615 [18:18:30]Write 302 bytes [18:18:30]NVStorageSaveData done [18:18:30]OFDSenderStorePacket done [18:18:30]KKMCreateOFDPacket done [18:18:30]NVStorageSaveData kkm_last_timestamp [18:18:30]File name is /storage/kkm_last_timestamp [18:18:30]Write 4 bytes [18:18:30]NVStorageSaveData done [18:18:30]ExternCall_PrintAddStr [18:18:30]wPrintStart [18:18:30]Write to MH i2c: 01 00 00 EC 1C 08 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 07 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 07 00 EC 1C 00 00 00 00 00 FF 0F 1D [18:18:30]RasterBufferAndPrint [18:18:30]line Счет N : (1)1319183 [18:18:30]line ИНН: 02508201610067 [18:18:30]line Контрольно-Кассовый Чек [18:18:30]line ПРОДАЖА [18:18:30]line ТРК (МРК, ГНК) : 41 [18:18:30]line Товар: 2710194210 [18:18:30]OFD Sender: Processing packet 162615 [packets to send 106, broken 105] [18:18:30]ProducePacketName [18:18:30]name=ofd_packets/00162615 [18:18:30]OFD Sender: To server: pG, [18:18:30]CommunicateWithHost lk.salyk.kg:30040 [18:18:30]ConnectInit lk.salyk.kg [18:18:30]line ДТ(л)-К-5 [18:18:30]line 41.330 * 72.60 [18:18:30]line = 3000.56 [18:18:30]line НДС 12% НСП 1% [18:18:30]line > о реализуемом товаре [18:18:30]line ОКРУГЛЕНИЕ: -0.56 [18:18:30]line ИТОГО: 3000.00 [18:18:30]line Внесено: 3000.00 [18:18:30]line СДАЧА: 0.00 [18:18:30]line НСП 1% : 26.55 [18:18:30]line НДС 12% : 318.64 [18:18:30]line Наличными: 3000.00 [18:18:30]line Безнал.: 0.00 [18:18:30]line Место: АЗС № 140 "Партнер Нефть" [18:18:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:18:30]line СНО: Общий режим [18:18:30]line Чек 283 13.07.2024 18:18 [18:18:30]line Смена: 462 ФФД: 1.0 [18:18:30]line ЗНМ: 0300000129 [18:18:30]line РНМ: 0000000000090858 [18:18:30]line Версия ККМ: 001 [18:18:30]line ФМ: 0000000000874899 [18:18:30]line ФД: 162615 [18:18:30]line ФПД: 268826237548278 [18:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181829&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162615&fm=268826237548278&tin=02508201610067®Number=0000000000090858&sum=300000 [18:18:30]written 0, free lines is 4095 [18:18:31]Write to MH i2c: 01 00 00 17 1D 34 [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 07 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 07 00 17 1D 00 00 00 00 00 E8 0C 2F [18:18:31]RasterBufferAndPrint [18:18:31]line [18:18:31]line [18:18:31]line [18:18:31]line [18:18:31]line [18:18:31]written 0, free lines is 3310 [18:18:31]MH_Cut [18:18:31]Write to MH i2c: D1 01 00 1E 1D 01 0D [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: D1 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: D1 01 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: D1 01 00 1E 1D 00 0C [18:18:31]Write to MH i2c: 01 00 00 1F 1D 3C [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]*** Cut start [18:18:31]*** Purtial cut [18:18:31]*** Stage 1: CUTSNS_PIN = 1 [18:18:32]Read from MH i2c: 01 [18:18:32]MH_I2C_Read... [18:18:32]*** Stop cut motor [18:18:32]*** Cut end [18:18:32]Read from MH i2c: 01 07 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: 01 07 00 1F 1D 00 00 00 00 00 FF 0F 51 [18:18:32]process_action close_receipt done [18:18:32]requested_data is exist [18:18:32]produce_requested_data [18:18:32]requested_item fm.sn is exist - process it [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 11 00 00 [18:18:32]Write to MH i2c: E2 08 00 20 1D 80 11 00 00 00 00 00 00 B7 [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 17 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 17 00 20 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 17 [18:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:18:32]wFMCommunicate OK [18:18:32]requested_item fd.num is exist - process it [18:18:32]SAM_PROTO_GetFieldsCounters [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 13 00 00 [18:18:32]Write to MH i2c: E2 08 00 21 1D 80 13 00 00 00 00 00 00 BA [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 62 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 62 00 21 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 37 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 C4 [18:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 37 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:32]wFMCommunicate OK [18:18:32]SAM_PROTO_GetFieldsCounters done [18:18:32]requested_item shift.num is exist - process it [18:18:32]requested_item shift.opened is exist - process it [18:18:32]req_shift_opened [18:18:32]FM_GetShiftState [18:18:32]SAM_PROTO_GetShiftState [18:18:32]wFMCommunicate request_size=4 [18:18:32]MH_SAM_APDU [18:18:32]CAPDU: 80 13 01 00 [18:18:32]Write to MH i2c: E2 08 00 22 1D 80 13 01 00 00 00 00 00 BC [18:18:32]Write i2c OK [18:18:32]MH_I2C_Read... [18:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:32]Read from MH i2c: E2 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 0E 00 [18:18:32]MH_I2C_Read... [18:18:32]Read from MH i2c: E2 0E 00 22 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B6 [18:18:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:18:32]wFMCommunicate OK [18:18:32]SAM_PROTO_GetShiftState done [18:18:32]FM_GetShiftState done [18:18:32]req_shift_opened done [18:18:32]requested_item shift.open_date is exist - process it [18:18:32]req_shift_open_date [18:18:32]req_shift_open_date done [18:18:32]produce_requested_data done [18:18:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162615,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:18:32]process_action_free close_receipt [18:18:32]json_value_free [18:18:32]json_value_free done [18:18:32]process_json_proto returns [18:18:32]Send response to host [18:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162615,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:18:32]free response buf [18:18:32]execute_script done [18:18:32]execute_script returns [18:18:32]free content buf [18:18:32]Sock 9.Close socket [18:18:32]Sock 9.Thread stoped [18:19:27]accept exits with 7 [18:19:27]New connection [18:19:27]New thread 3067510116 created [18:19:27]Thread 3067366756 joined [18:19:27]Waiting for new connection... [18:19:27] Sock 7.Parse request [18:19:27]Sock 7.Check first char [18:19:27]Sock 7.First char is OK [18:19:27]request: POST /json_proto HTTP/1.0 [18:19:27]Method: POST [18:19:27]URL: /json_proto [18:19:27]Method is POST - this is cgi request [18:19:27]url: /json_proto [18:19:27]query_string will be loaded in cgi processing [18:19:27]execute_cgi json_proto POST (null) [18:19:27]execute_cgi path=json_proto method=POST [18:19:27]POST find Content-Length [18:19:27]Host: 172.17.39.67:8080 [18:19:27]Content-Length: 806 [18:19:27]Content-Type: application/json [18:19:27] [18:19:27]POST finish read [18:19:27]Found Content-Length = 806 [18:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.500, "sum" : 399.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 399.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:27]execute_script... [18: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)1319184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.500, "sum" : 399.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 399.30 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:19:27]POST & json_proto [18:19:27]process_json_proto [18:19:27]json parsed OK: [18:19:27]protocol is kg_v1.0 [18:19:27]action value=close_receipt [18:19:27]process_action close_receipt [18:19:27]cmd_close_receipt [18:19:27]MH_GetDate [18:19:27]Write to MH i2c: F0 00 00 23 1D 2F [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: F0 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: F0 09 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: F0 09 00 23 1D 00 30 C5 92 66 86 7C 92 66 1F [18:19:27]GetLastDocTimeStamp 1720894709 [18:19:27]current date 1720894768 [18:19:27]FM_GetShiftState [18:19:27]SAM_PROTO_GetShiftState [18:19:27]wFMCommunicate request_size=4 [18:19:27]MH_SAM_APDU [18:19:27]CAPDU: 80 13 01 00 [18:19:27]Write to MH i2c: E2 08 00 24 1D 80 13 01 00 00 00 00 00 BE [18:19:27]Write i2c OK [18:19:27]MH_I2C_Read... [18:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:27]Read from MH i2c: E2 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 0E 00 [18:19:27]MH_I2C_Read... [18:19:27]Read from MH i2c: E2 0E 00 24 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B8 [18:19:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:19:27]wFMCommunicate OK [18:19:27]SAM_PROTO_GetShiftState done [18:19:27]FM_GetShiftState done [18:19:27]opened in 1720828979 [18:19:27]opened+sec_in_day 1720915379 [18:19:27]quantity*price = 39930 [18:19:27]sum+1 = 39931 [18:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 399.30 НСП 1% : 3.53 НДС 12% : 42.40 Наличными: 0.00 Безнал.: 399.30 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 284 13.07.2024 18:19 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162616 ФПД: 225452268574607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181928&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162616&fm=225452268574607&tin=02508201610067®Number=0000000000090858&sum=39930 [18:19:28]StoreToDocumentArchive [18:19:28]shift 462 fd 162616 [18:19:28]save to /storage/0462/doc_00162616 [18:19:28]save last doc name /storage/0462/doc_00162616 to /storage/kkm_last_doc_name [18:19:28]save OK [18:19:28]Clear old archive folders... [18:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:19:28]tlvbuf is B6F30830 [18:19:28]SAM_PROTO_ClearQueue [18:19:28]wFMCommunicate request_size=4 [18:19:28]MH_SAM_APDU [18:19:28]CAPDU: 80 09 00 00 [18:19:28]Write to MH i2c: E2 08 00 31 1D 80 09 00 00 00 00 00 00 C0 [18:19:28]Write i2c OK [18:19:28]MH_I2C_Read... [18:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:19:28]Read from MH i2c: E2 [18:19:28]MH_I2C_Read... [18:19:28]Read from MH i2c: E2 03 00 [18:19:28]MH_I2C_Read... [18:19:28]Read from MH i2c: E2 03 00 31 1D 00 90 00 C2 [18:19:28]RAPDU: 90 00 [18:19:28]wFMCommunicate OK [18:19:28]SAM_PROTO_ClearQueue done [18:19:28]KKMCreateOFDPacket [18:19:28]OFDProtocolAddRootSTLVToBuf [18:19:28]FM_MakeSignedData [18:19:28]FM_MakeSignedData [18:19:28]SAM_PROTO_SignData [18:19:28]wFMCommunicate request_size=4 [18:19:28]MH_SAM_APDU [18:19:28]CAPDU: 80 0D 01 02 [18:19:28]Write to MH i2c: E2 08 00 32 1D 80 0D 01 02 00 00 00 00 C8 [18:19:28]Write i2c OK [18:19:28]MH_I2C_Read... [18:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:19:28]Read from MH i2c: E2 [18:19:28]MH_I2C_Read... [18:19:28]Read from MH i2c: E2 03 00 [18:19:28]MH_I2C_Read... [18:19:28]Read from MH i2c: E2 03 00 32 1D 00 90 00 C3 [18:19:28]RAPDU: 90 00 [18:19:28]wFMCommunicate OK [18:19:28]wFMCommunicate request_size=255 [18:19:28]MH_SAM_APDU [18:19:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FA 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 30 C5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7B 02 00 35 04 06 00 [18:19:28]Write to MH i2c: E2 02 01 33 1D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FA 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 30 C5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7B 02 00 35 04 06 00 00 00 77 [18:19:28]Write i2c OK [18:19:28]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 33 1D 00 90 00 C4 [18:19:29]RAPDU: 90 00 [18:19:29]wFMCommunicate OK [18:19:29]wFMCommunicate request_size=11 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 0D 02 02 06 CD 0C 32 61 D7 8F [18:19:29]Write to MH i2c: E2 0E 00 34 1D 80 0D 02 02 06 00 CD 0C 32 61 D7 8F 00 00 A9 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 03 00 34 1D 00 90 00 C5 [18:19:29]RAPDU: 90 00 [18:19:29]wFMCommunicate OK [18:19:29]wFMCommunicate request_size=4 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 0D 03 02 [18:19:29]Write to MH i2c: E2 08 00 35 1D 80 0D 03 02 00 00 00 00 CD [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 0B 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 0B 00 35 1D 00 3A 9F 32 A9 56 57 A2 AF 90 00 80 [18:19:29]RAPDU: 3A 9F 32 A9 56 57 A2 AF 90 00 [18:19:29]wFMCommunicate OK [18:19:29]SAM_PROTO_SignData done [18:19:29]FM_MakeSignedData done [18:19:29]CreateOFDProtocolMessage [18:19:29]wFMCommunicate request_size=4 [18:19:29]MH_SAM_APDU [18:19:29]CAPDU: 80 11 00 00 [18:19:29]Write to MH i2c: E2 08 00 36 1D 80 11 00 00 00 00 00 00 CD [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:29]Read from MH i2c: E2 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 17 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: E2 17 00 36 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2D [18:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:19:29]wFMCommunicate OK [18:19:29]CreateOFDProtocolMessage done [18:19:29]OFDSenderStorePacket 162616 [18:19:29]StoreOFDPacket docnum=162616 [18:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1E BC 08 01 8D CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FA 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 30 C5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7B 02 00 35 04 06 00 CD 0C 32 61 D7 8F 3A 9F 32 A9 56 57 A2 AF [18:19:29]CheckFolder [18:19:29]dirname=/storage/ofd_packets [18:19:29]CheckFolder done [18:19:29]ProducePacketName [18:19:29]name=ofd_packets/00162616 [18:19:29]NVStorageSaveData ofd_packets/00162616 [18:19:29]File name is /storage/ofd_packets/00162616 [18:19:29]Write 302 bytes [18:19:29]NVStorageSaveData done [18:19:29]OFDSenderStorePacket done [18:19:29]KKMCreateOFDPacket done [18:19:29]NVStorageSaveData kkm_last_timestamp [18:19:29]File name is /storage/kkm_last_timestamp [18:19:29]Write 4 bytes [18:19:29]NVStorageSaveData done [18:19:29]ExternCall_PrintAddStr [18:19:29]wPrintStart [18:19:29]Write to MH i2c: 01 00 00 37 1D 54 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 07 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 07 00 37 1D 00 00 00 00 00 FF 0F 69 [18:19:29]RasterBufferAndPrint [18:19:29]line Счет N : (1)1319184 [18:19:29]line ИНН: 02508201610067 [18:19:29]line Контрольно-Кассовый Чек [18:19:29]line ПРОДАЖА [18:19:29]line ТРК (МРК, ГНК) : 21 [18:19:29]line Товар: 2710194210 [18:19:29]line ДТ(л)-К-5 [18:19:29]line 5.500 * 72.60 [18:19:29]line = 399.30 [18:19:29]line НДС 12% НСП 1% [18:19:29]line > о реализуемом товаре [18:19:29]line ИТОГО: 399.30 [18:19:29]line НСП 1% : 3.53 [18:19:29]line НДС 12% : 42.40 [18:19:29]line Наличными: 0.00 [18:19:29]line Безнал.: 399.30 [18:19:29]line Место: АЗС № 140 "Партнер Нефть" [18:19:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:19:29]line СНО: Общий режим [18:19:29]line Чек 284 13.07.2024 18:19 [18:19:29]line Смена: 462 ФФД: 1.0 [18:19:29]line ЗНМ: 0300000129 [18:19:29]line РНМ: 0000000000090858 [18:19:29]line Версия ККМ: 001 [18:19:29]line Платежная система: O! деньги [18:19:29]line ФМ: 0000000000874899 [18:19:29]line ФД: 162616 [18:19:29]line ФПД: 225452268574607 [18:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T181928&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162616&fm=225452268574607&tin=02508201610067®Number=0000000000090858&sum=39930 [18:19:29]written 0, free lines is 4095 [18:19:29]Write to MH i2c: 01 00 00 61 1D 7E [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 07 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: 01 07 00 61 1D 00 00 00 00 00 EF 0C 80 [18:19:29]RasterBufferAndPrint [18:19:29]line [18:19:29]line [18:19:29]line [18:19:29]line [18:19:29]line [18:19:29]written 0, free lines is 3317 [18:19:29]MH_Cut [18:19:29]Write to MH i2c: D1 01 00 68 1D 01 57 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: D1 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: D1 01 00 [18:19:29]MH_I2C_Read... [18:19:29]Read from MH i2c: D1 01 00 68 1D 00 56 [18:19:29]Write to MH i2c: 01 00 00 69 1D 86 [18:19:29]Write i2c OK [18:19:29]MH_I2C_Read... [18:19:30]*** Cut start [18:19:30]*** Purtial cut [18:19:30]*** CUTSNS_PIN = 0 [18:19:30]*** Stage 1: CUTSNS_PIN = 1 [18:19:32]Read from MH i2c: 01 [18:19:32]MH_I2C_Read... [18:19:32]*** Stop cut motor [18:19:32]*** Cut end [18:19:32]Read from MH i2c: 01 07 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: 01 07 00 69 1D 00 00 00 00 00 FF 0F 9B [18:19:32]process_action close_receipt done [18:19:32]requested_data is exist [18:19:32]produce_requested_data [18:19:32]requested_item fm.sn is exist - process it [18:19:32]wFMCommunicate request_size=4 [18:19:32]MH_SAM_APDU [18:19:32]CAPDU: 80 11 00 00 [18:19:32]Write to MH i2c: E2 08 00 6A 1D 80 11 00 00 00 00 00 00 01 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 17 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 17 00 6A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 61 [18:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:19:32]wFMCommunicate OK [18:19:32]requested_item fd.num is exist - process it [18:19:32]SAM_PROTO_GetFieldsCounters [18:19:32]wFMCommunicate request_size=4 [18:19:32]MH_SAM_APDU [18:19:32]CAPDU: 80 13 00 00 [18:19:32]Write to MH i2c: E2 08 00 6B 1D 80 13 00 00 00 00 00 00 04 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 62 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 62 00 6B 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 38 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [18:19:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 38 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:19:32]wFMCommunicate OK [18:19:32]SAM_PROTO_GetFieldsCounters done [18:19:32]requested_item shift.num is exist - process it [18:19:32]requested_item shift.opened is exist - process it [18:19:32]req_shift_opened [18:19:32]FM_GetShiftState [18:19:32]SAM_PROTO_GetShiftState [18:19:32]wFMCommunicate request_size=4 [18:19:32]MH_SAM_APDU [18:19:32]CAPDU: 80 13 01 00 [18:19:32]Write to MH i2c: E2 08 00 6C 1D 80 13 01 00 00 00 00 00 06 [18:19:32]Write i2c OK [18:19:32]MH_I2C_Read... [18:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:19:32]Read from MH i2c: E2 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 0E 00 [18:19:32]MH_I2C_Read... [18:19:32]Read from MH i2c: E2 0E 00 6C 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 00 [18:19:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:19:32]wFMCommunicate OK [18:19:32]SAM_PROTO_GetShiftState done [18:19:32]FM_GetShiftState done [18:19:32]req_shift_opened done [18:19:32]requested_item shift.open_date is exist - process it [18:19:32]req_shift_open_date [18:19:32]req_shift_open_date done [18:19:32]produce_requested_data done [18:19:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162616,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:19:32]process_action_free close_receipt [18:19:32]json_value_free [18:19:32]json_value_free done [18:19:32]process_json_proto returns [18:19:32]Send response to host [18:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162616,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:19:32]free response buf [18:19:32]execute_script done [18:19:32]execute_script returns [18:19:32]free content buf [18:19:32]Sock 7.Close socket [18:19:32]Sock 7.Thread stoped [18:20:43]ConnectInit Can't connect to host [18:20:43]CommunicateWithHost connect error [18:20:43]CommunicateWithHost err = -1 [18:20:43]OFD Sender: Server communicate error [18:20:44]OFD Sender: Processing packet 162615 [packets to send 107, broken 105] [18:20:44]ProducePacketName [18:20:44]name=ofd_packets/00162615 [18:20:44]OFD Sender: To server: pG, [18:20:44]CommunicateWithHost lk.salyk.kg:30040 [18:20:44]ConnectInit lk.salyk.kg [18:20:44]Connected sock=7 [18:20:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 19 4D 08 01 16 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 1B 01 00 00 F4 03 04 00 F5 C4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 37 7B 02 00 35 04 06 00 F4 7E FC 65 36 F6 9B 0C EA 7E 82 F7 CD 38 [18:20:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 91 5D 47 00 20 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 34 38 39 39 10 04 04 00 37 7B 02 00 F4 03 04 00 89 71 92 66 B6 04 01 00 00 60 94 FB 07 35 67 AC B7 [18:20:44]CommunicateWithHost err = 0 [18:20:44]CheckOFDResponse [18:20:44]1017 (14) - 77093643461234 [18:20:44]1041 (16) - 0000000000874899 [18:20:44]1040 (4) - 162615 [18:20:44]1012 (4) - 13.07.2024 12:22 [18:20:44]1206 (1) - 0 [18:20:44]OFD Sender: Remove packet 162615 [18:20:44]ProducePacketName [18:20:44]name=ofd_packets/00162615 [18:20:44]NVStorageDeleteData [18:20:44]OFD Sender: Processing packet 162616 [packets to send 106, broken 105] [18:20:44]ProducePacketName [18:20:44]name=ofd_packets/00162616 [18:20:44]OFD Sender: To server: pG, [18:20:44]CommunicateWithHost lk.salyk.kg:30040 [18:20:44]ConnectInit lk.salyk.kg [18:20:44]Connected sock=7 [18:20:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1E BC 08 01 8D CC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 7C 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FA 9B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FA 9B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FA 9B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 30 C5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7B 02 00 35 04 06 00 CD 0C 32 61 D7 8F 3A 9F 32 A9 56 57 A2 AF [18:20:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6E FB 47 00 D5 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 38 7B 02 00 F4 03 04 00 8A 71 92 66 B6 04 01 00 00 07 85 34 1A 3A A2 E5 BF [18:20:45]CommunicateWithHost err = 0 [18:20:45]CheckOFDResponse [18:20:45]1017 (14) - 77093643461234 [18:20:45]1041 (16) - 0000000000874899 [18:20:45]1040 (4) - 162616 [18:20:45]1012 (4) - 13.07.2024 12:22 [18:20:45]1206 (1) - 0 [18:20:45]OFD Sender: Remove packet 162616 [18:20:45]ProducePacketName [18:20:45]name=ofd_packets/00162616 [18:20:45]NVStorageDeleteData [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:15]accept exits with 9 [18:24:15]New connection [18:24:15]New thread 3067366756 created [18:24:15]Thread 3067510116 joined [18:24:15]Waiting for new connection... [18:24:15] Sock 9.Parse request [18:24:15]Sock 9.Check first char [18:24:15]Sock 9.First char is OK [18:24:15]request: POST /json_proto HTTP/1.0 [18:24:15]Method: POST [18:24:15]URL: /json_proto [18:24:15]Method is POST - this is cgi request [18:24:15]url: /json_proto [18:24:15]query_string will be loaded in cgi processing [18:24:15]execute_cgi json_proto POST (null) [18:24:15]execute_cgi path=json_proto method=POST [18:24:15]POST find Content-Length [18:24:15]Host: 172.17.39.67:8080 [18:24:15]Content-Length: 678 [18:24:15]Content-Type: application/json [18:24:15] [18:24:15]POST finish read [18:24:15]Found Content-Length = 678 [18:24:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 7.400, "sum" : 550.56, "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" ] } } [18:24:15]execute_script... [18:24:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 7.400, "sum" : 550.56, "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" ] } } [18:24:15]POST & json_proto [18:24:15]process_json_proto [18:24:15]json parsed OK: [18:24:15]protocol is kg_v1.0 [18:24:15]action value=close_receipt [18:24:15]process_action close_receipt [18:24:15]cmd_close_receipt [18:24:15]MH_GetDate [18:24:15]Write to MH i2c: F0 00 00 6D 1D 79 [18:24:15]Write i2c OK [18:24:15]MH_I2C_Read... [18:24:15]Read from MH i2c: F0 [18:24:15]MH_I2C_Read... [18:24:15]Read from MH i2c: F0 09 00 [18:24:15]MH_I2C_Read... [18:24:15]Read from MH i2c: F0 09 00 6D 1D 00 51 C6 92 66 86 7C 92 66 8B [18:24:15]GetLastDocTimeStamp 1720894768 [18:24:15]current date 1720895057 [18:24:15]FM_GetShiftState [18:24:15]SAM_PROTO_GetShiftState [18:24:15]wFMCommunicate request_size=4 [18:24:15]MH_SAM_APDU [18:24:15]CAPDU: 80 13 01 00 [18:24:15]Write to MH i2c: E2 08 00 6E 1D 80 13 01 00 00 00 00 00 08 [18:24:15]Write i2c OK [18:24:15]MH_I2C_Read... [18:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:16]Read from MH i2c: E2 [18:24:16]MH_I2C_Read... [18:24:16]Read from MH i2c: E2 0E 00 [18:24:16]MH_I2C_Read... [18:24:16]Read from MH i2c: E2 0E 00 6E 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 02 [18:24:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:24:16]wFMCommunicate OK [18:24:16]SAM_PROTO_GetShiftState done [18:24:16]FM_GetShiftState done [18:24:16]opened in 1720828979 [18:24:16]opened+sec_in_day 1720915379 [18:24:16]quantity*price = 55056 [18:24:16]sum+1 = 55057 [18:24:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 550.00 Внесено: 550.00 СДАЧА: 0.00 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 550.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 285 13.07.2024 18:24 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162617 ФПД: 225894789078499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182417&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162617&fm=225894789078499&tin=02508201610067®Number=0000000000090858&sum=55000 [18:24:17]StoreToDocumentArchive [18:24:17]shift 462 fd 162617 [18:24:17]save to /storage/0462/doc_00162617 [18:24:17]save last doc name /storage/0462/doc_00162617 to /storage/kkm_last_doc_name [18:24:17]save OK [18:24:17]Clear old archive folders... [18:24:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:17]tlvbuf is 006117B0 [18:24:17]SAM_PROTO_ClearQueue [18:24:17]wFMCommunicate request_size=4 [18:24:17]MH_SAM_APDU [18:24:17]CAPDU: 80 09 00 00 [18:24:17]Write to MH i2c: E2 08 00 7B 1D 80 09 00 00 00 00 00 00 0A [18:24:17]Write i2c OK [18:24:17]MH_I2C_Read... [18:24:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:17]Read from MH i2c: E2 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 03 00 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 03 00 7B 1D 00 90 00 0C [18:24:17]RAPDU: 90 00 [18:24:17]wFMCommunicate OK [18:24:17]SAM_PROTO_ClearQueue done [18:24:17]KKMCreateOFDPacket [18:24:17]OFDProtocolAddRootSTLVToBuf [18:24:17]FM_MakeSignedData [18:24:17]FM_MakeSignedData [18:24:17]SAM_PROTO_SignData [18:24:17]wFMCommunicate request_size=4 [18:24:17]MH_SAM_APDU [18:24:17]CAPDU: 80 0D 01 02 [18:24:17]Write to MH i2c: E2 08 00 7C 1D 80 0D 01 02 00 00 00 00 12 [18:24:17]Write i2c OK [18:24:17]MH_I2C_Read... [18:24:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:17]Read from MH i2c: E2 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 03 00 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 03 00 7C 1D 00 90 00 0D [18:24:17]RAPDU: 90 00 [18:24:17]wFMCommunicate OK [18:24:17]wFMCommunicate request_size=255 [18:24:17]MH_SAM_APDU [18:24:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 1C 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 10 D7 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 D7 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 1D 01 00 00 F4 03 04 00 51 C6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7B 02 00 35 04 06 00 CD [18:24:17]Write to MH i2c: E2 02 01 7D 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 1C 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 10 D7 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 D7 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 1D 01 00 00 F4 03 04 00 51 C6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7B 02 00 35 04 06 00 CD 00 00 FA [18:24:17]Write i2c OK [18:24:17]MH_I2C_Read... [18:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:17]Read from MH i2c: E2 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 03 00 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 03 00 7D 1D 00 90 00 0E [18:24:17]RAPDU: 90 00 [18:24:17]wFMCommunicate OK [18:24:17]wFMCommunicate request_size=10 [18:24:17]MH_SAM_APDU [18:24:17]CAPDU: 80 0D 02 02 05 73 3A A8 DD E3 [18:24:17]Write to MH i2c: E2 0D 00 7E 1D 80 0D 02 02 05 00 73 3A A8 DD E3 00 00 34 [18:24:17]Write i2c OK [18:24:17]MH_I2C_Read... [18:24:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:17]Read from MH i2c: E2 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 03 00 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 03 00 7E 1D 00 90 00 0F [18:24:17]RAPDU: 90 00 [18:24:17]wFMCommunicate OK [18:24:17]wFMCommunicate request_size=4 [18:24:17]MH_SAM_APDU [18:24:17]CAPDU: 80 0D 03 02 [18:24:17]Write to MH i2c: E2 08 00 7F 1D 80 0D 03 02 00 00 00 00 17 [18:24:17]Write i2c OK [18:24:17]MH_I2C_Read... [18:24:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:17]Read from MH i2c: E2 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 0B 00 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 0B 00 7F 1D 00 1E E4 48 B0 5C 68 93 29 90 00 92 [18:24:17]RAPDU: 1E E4 48 B0 5C 68 93 29 90 00 [18:24:17]wFMCommunicate OK [18:24:17]SAM_PROTO_SignData done [18:24:17]FM_MakeSignedData done [18:24:17]CreateOFDProtocolMessage [18:24:17]wFMCommunicate request_size=4 [18:24:17]MH_SAM_APDU [18:24:17]CAPDU: 80 11 00 00 [18:24:17]Write to MH i2c: E2 08 00 80 1D 80 11 00 00 00 00 00 00 17 [18:24:17]Write i2c OK [18:24:17]MH_I2C_Read... [18:24:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:17]Read from MH i2c: E2 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 17 00 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: E2 17 00 80 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 77 [18:24:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:24:17]wFMCommunicate OK [18:24:17]CreateOFDProtocolMessage done [18:24:17]OFDSenderStorePacket 162617 [18:24:17]StoreOFDPacket docnum=162617 [18:24:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F8 86 07 01 9A 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 1C 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 10 D7 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 D7 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 1D 01 00 00 F4 03 04 00 51 C6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7B 02 00 35 04 06 00 CD 73 3A A8 DD E3 1E E4 48 B0 5C 68 93 29 [18:24:17]CheckFolder [18:24:17]dirname=/storage/ofd_packets [18:24:17]CheckFolder done [18:24:17]ProducePacketName [18:24:17]name=ofd_packets/00162617 [18:24:17]NVStorageSaveData ofd_packets/00162617 [18:24:17]File name is /storage/ofd_packets/00162617 [18:24:17]Write 301 bytes [18:24:17]NVStorageSaveData done [18:24:17]OFDSenderStorePacket done [18:24:17]KKMCreateOFDPacket done [18:24:17]NVStorageSaveData kkm_last_timestamp [18:24:17]File name is /storage/kkm_last_timestamp [18:24:17]Write 4 bytes [18:24:17]NVStorageSaveData done [18:24:17]ExternCall_PrintAddStr [18:24:17]wPrintStart [18:24:17]Write to MH i2c: 01 00 00 81 1D 9E [18:24:17]Write i2c OK [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: 01 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: 01 07 00 [18:24:17]MH_I2C_Read... [18:24:17]Read from MH i2c: 01 07 00 81 1D 00 00 00 00 00 FF 0F B3 [18:24:17]RasterBufferAndPrint [18:24:17]line Счет N : (1)1319185 [18:24:17]line ИНН: 02508201610067 [18:24:17]line Контрольно-Кассовый Чек [18:24:17]line ПРОДАЖА [18:24:17]line ТРК (МРК, ГНК) : 44 [18:24:17]line Товар: 2710124500 [18:24:17]line Аи-95-К-5 [18:24:17]line 7.400 * 74.40 [18:24:17]line = 550.56 [18:24:17]line НДС 12% НСП 1% [18:24:17]line > о реализуемом товаре [18:24:17]line ОКРУГЛЕНИЕ: -0.56 [18:24:17]line ИТОГО: 550.00 [18:24:17]line Внесено: 550.00 [18:24:17]line СДАЧА: 0.00 [18:24:17]line НСП 1% : 4.87 [18:24:17]line НДС 12% : 58.47 [18:24:17]line Наличными: 550.00 [18:24:17]line Безнал.: 0.00 [18:24:17]line Место: АЗС № 140 "Партнер Нефть" [18:24:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:24:17]line СНО: Общий режим [18:24:17]line Чек 285 13.07.2024 18:24 [18:24:17]line Смена: 462 ФФД: 1.0 [18:24:17]line ЗНМ: 0300000129 [18:24:17]line РНМ: 0000000000090858 [18:24:17]line Версия ККМ: 001 [18:24:17]line ФМ: 0000000000874899 [18:24:17]line ФД: 162617 [18:24:17]line ФПД: 225894789078499 [18:24:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182417&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162617&fm=225894789078499&tin=02508201610067®Number=0000000000090858&sum=55000 [18:24:18]OFD Sender: Processing packet 162617 [packets to send 106, broken 105] [18:24:18]ProducePacketName [18:24:18]name=ofd_packets/00162617 [18:24:18]OFD Sender: To server: pG, [18:24:18]CommunicateWithHost lk.salyk.kg:30040 [18:24:18]ConnectInit lk.salyk.kg [18:24:18]written 0, free lines is 4095 [18:24:18]Connected sock=11 [18:24:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 F8 86 07 01 9A 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 1C 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 10 D7 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 D7 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 1D 01 00 00 F4 03 04 00 51 C6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 39 7B 02 00 35 04 06 00 CD 73 3A A8 DD E3 1E E4 48 B0 5C 68 93 29 [18:24:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8C D5 47 00 17 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 34 38 39 39 10 04 04 00 39 7B 02 00 F4 03 04 00 5F 72 92 66 B6 04 01 00 00 6D B8 90 05 1E ED C9 81 [18:24:18]CommunicateWithHost err = 0 [18:24:18]CheckOFDResponse [18:24:18]1017 (14) - 77093643461234 [18:24:18]1041 (16) - 0000000000874899 [18:24:18]1040 (4) - 162617 [18:24:18]1012 (4) - 13.07.2024 12:26 [18:24:18]1206 (1) - 0 [18:24:18]OFD Sender: Remove packet 162617 [18:24:18]ProducePacketName [18:24:18]name=ofd_packets/00162617 [18:24:18]NVStorageDeleteData [18:24:18]Write to MH i2c: 01 00 00 AC 1D C9 [18:24:18]Write i2c OK [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: 01 [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: 01 07 00 [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: 01 07 00 AC 1D 00 00 00 00 00 E5 0C C1 [18:24:18]RasterBufferAndPrint [18:24:18]line [18:24:18]line [18:24:18]line [18:24:18]line [18:24:18]line [18:24:18]written 0, free lines is 3307 [18:24:18]MH_Cut [18:24:18]Write to MH i2c: D1 01 00 B3 1D 01 A2 [18:24:18]Write i2c OK [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: D1 [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: D1 01 00 [18:24:18]MH_I2C_Read... [18:24:18]Read from MH i2c: D1 01 00 B3 1D 00 A1 [18:24:18]Write to MH i2c: 01 00 00 B4 1D D1 [18:24:18]Write i2c OK [18:24:18]MH_I2C_Read... [18:24:18]OFD Sender: No OFD packet to send [18:24:19]*** Cut start [18:24:19]*** Purtial cut [18:24:19]*** Stage 1: CUTSNS_PIN = 1 [18:24:19]Read from MH i2c: 01 [18:24:19]MH_I2C_Read... [18:24:19]*** Stop cut motor [18:24:19]*** Cut end [18:24:19]Read from MH i2c: 01 07 00 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: 01 07 00 B4 1D 00 00 00 00 00 FF 0F E6 [18:24:19]process_action close_receipt done [18:24:19]requested_data is exist [18:24:19]produce_requested_data [18:24:19]requested_item fm.sn is exist - process it [18:24:19]wFMCommunicate request_size=4 [18:24:19]MH_SAM_APDU [18:24:19]CAPDU: 80 11 00 00 [18:24:19]Write to MH i2c: E2 08 00 B5 1D 80 11 00 00 00 00 00 00 4C [18:24:19]Write i2c OK [18:24:19]MH_I2C_Read... [18:24:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:19]Read from MH i2c: E2 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 17 00 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 17 00 B5 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AC [18:24:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:24:19]wFMCommunicate OK [18:24:19]requested_item fd.num is exist - process it [18:24:19]SAM_PROTO_GetFieldsCounters [18:24:19]wFMCommunicate request_size=4 [18:24:19]MH_SAM_APDU [18:24:19]CAPDU: 80 13 00 00 [18:24:19]Write to MH i2c: E2 08 00 B6 1D 80 13 00 00 00 00 00 00 4F [18:24:19]Write i2c OK [18:24:19]MH_I2C_Read... [18:24:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:19]Read from MH i2c: E2 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 62 00 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 62 00 B6 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 39 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [18:24:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 39 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:19]wFMCommunicate OK [18:24:19]SAM_PROTO_GetFieldsCounters done [18:24:19]requested_item shift.num is exist - process it [18:24:19]requested_item shift.opened is exist - process it [18:24:19]req_shift_opened [18:24:19]FM_GetShiftState [18:24:19]SAM_PROTO_GetShiftState [18:24:19]wFMCommunicate request_size=4 [18:24:19]MH_SAM_APDU [18:24:19]CAPDU: 80 13 01 00 [18:24:19]Write to MH i2c: E2 08 00 B7 1D 80 13 01 00 00 00 00 00 51 [18:24:19]Write i2c OK [18:24:19]MH_I2C_Read... [18:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:19]Read from MH i2c: E2 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 0E 00 [18:24:19]MH_I2C_Read... [18:24:19]Read from MH i2c: E2 0E 00 B7 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4B [18:24:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:24:19]wFMCommunicate OK [18:24:19]SAM_PROTO_GetShiftState done [18:24:19]FM_GetShiftState done [18:24:19]req_shift_opened done [18:24:19]requested_item shift.open_date is exist - process it [18:24:19]req_shift_open_date [18:24:19]req_shift_open_date done [18:24:19]produce_requested_data done [18:24:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162617,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:24:19]process_action_free close_receipt [18:24:19]json_value_free [18:24:19]json_value_free done [18:24:19]process_json_proto returns [18:24:19]Send response to host [18:24:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162617,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:24:19]free response buf [18:24:19]execute_script done [18:24:19]execute_script returns [18:24:19]free content buf [18:24:19]Sock 9.Close socket [18:24:19]Sock 9.Thread stoped [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:39]OFD Sender: No OFD packet to send [18:26:44]OFD Sender: No OFD packet to send [18:26:48]accept exits with 7 [18:26:48]New connection [18:26:48]New thread 3067510116 created [18:26:48]Thread 3067366756 joined [18:26:48]Waiting for new connection... [18:26:48] Sock 7.Parse request [18:26:48]Sock 7.Check first char [18:26:48]Sock 7.First char is OK [18:26:48]request: POST /json_proto HTTP/1.0 [18:26:48]Method: POST [18:26:48]URL: /json_proto [18:26:48]Method is POST - this is cgi request [18:26:48]url: /json_proto [18:26:48]query_string will be loaded in cgi processing [18:26:48]execute_cgi json_proto POST (null) [18:26:48]execute_cgi path=json_proto method=POST [18:26:48]POST find Content-Length [18:26:48]Host: 172.17.39.67:8080 [18:26:48]Content-Length: 678 [18:26:48]Content-Type: application/json [18:26:48] [18:26:48]POST finish read [18:26:48]Found Content-Length = 678 [18:26:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:48]execute_script... [18:26:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:26:48]POST & json_proto [18:26:48]process_json_proto [18:26:48]json parsed OK: [18:26:48]protocol is kg_v1.0 [18:26:48]action value=close_receipt [18:26:48]process_action close_receipt [18:26:48]cmd_close_receipt [18:26:48]MH_GetDate [18:26:48]Write to MH i2c: F0 00 00 B8 1D C4 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 09 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: F0 09 00 B8 1D 00 E9 C6 92 66 86 7C 92 66 6E [18:26:48]GetLastDocTimeStamp 1720895057 [18:26:48]current date 1720895209 [18:26:48]FM_GetShiftState [18:26:48]SAM_PROTO_GetShiftState [18:26:48]wFMCommunicate request_size=4 [18:26:48]MH_SAM_APDU [18:26:48]CAPDU: 80 13 01 00 [18:26:48]Write to MH i2c: E2 08 00 B9 1D 80 13 01 00 00 00 00 00 53 [18:26:48]Write i2c OK [18:26:48]MH_I2C_Read... [18:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:48]Read from MH i2c: E2 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 0E 00 [18:26:48]MH_I2C_Read... [18:26:48]Read from MH i2c: E2 0E 00 B9 1D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4D [18:26:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:26:48]wFMCommunicate OK [18:26:48]SAM_PROTO_GetShiftState done [18:26:48]FM_GetShiftState done [18:26:48]opened in 1720828979 [18:26:48]opened+sec_in_day 1720915379 [18:26:48]quantity*price = 50071 [18:26:48]sum+1 = 50072 [18:26:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 286 13.07.2024 18:26 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162618 ФПД: 213242149913525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182649&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162618&fm=213242149913525&tin=02508201610067®Number=0000000000090858&sum=50000 [18:26:49]StoreToDocumentArchive [18:26:49]shift 462 fd 162618 [18:26:49]save to /storage/0462/doc_00162618 [18:26:49]save last doc name /storage/0462/doc_00162618 to /storage/kkm_last_doc_name [18:26:49]save OK [18:26:49]Clear old archive folders... [18:26:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:49]tlvbuf is 006DB990 [18:26:49]SAM_PROTO_ClearQueue [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 09 00 00 [18:26:49]Write to MH i2c: E2 08 00 C6 1D 80 09 00 00 00 00 00 00 55 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 C6 1D 00 90 00 57 [18:26:49]RAPDU: 90 00 [18:26:49]wFMCommunicate OK [18:26:49]SAM_PROTO_ClearQueue done [18:26:49]KKMCreateOFDPacket [18:26:49]OFDProtocolAddRootSTLVToBuf [18:26:49]FM_MakeSignedData [18:26:49]FM_MakeSignedData [18:26:49]SAM_PROTO_SignData [18:26:49]wFMCommunicate request_size=4 [18:26:49]MH_SAM_APDU [18:26:49]CAPDU: 80 0D 01 02 [18:26:49]Write to MH i2c: E2 08 00 C7 1D 80 0D 01 02 00 00 00 00 5D [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:49]Read from MH i2c: E2 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 [18:26:49]MH_I2C_Read... [18:26:49]Read from MH i2c: E2 03 00 C7 1D 00 90 00 58 [18:26:49]RAPDU: 90 00 [18:26:49]wFMCommunicate OK [18:26:49]wFMCommunicate request_size=255 [18:26:49]MH_SAM_APDU [18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 E9 C6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7B 02 00 35 04 06 00 C1 [18:26:49]Write to MH i2c: E2 02 01 C8 1D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 E9 C6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7B 02 00 35 04 06 00 C1 00 00 30 [18:26:49]Write i2c OK [18:26:49]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 C8 1D 00 90 00 59 [18:26:50]RAPDU: 90 00 [18:26:50]wFMCommunicate OK [18:26:50]wFMCommunicate request_size=10 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 0D 02 02 05 F1 4E 98 C3 B5 [18:26:50]Write to MH i2c: E2 0D 00 C9 1D 80 0D 02 02 05 00 F1 4E 98 C3 B5 00 00 B9 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 03 00 C9 1D 00 90 00 5A [18:26:50]RAPDU: 90 00 [18:26:50]wFMCommunicate OK [18:26:50]wFMCommunicate request_size=4 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 0D 03 02 [18:26:50]Write to MH i2c: E2 08 00 CA 1D 80 0D 03 02 00 00 00 00 62 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 0B 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 0B 00 CA 1D 00 AB 3C 05 0E 4B C0 40 07 90 00 AF [18:26:50]RAPDU: AB 3C 05 0E 4B C0 40 07 90 00 [18:26:50]wFMCommunicate OK [18:26:50]SAM_PROTO_SignData done [18:26:50]FM_MakeSignedData done [18:26:50]CreateOFDProtocolMessage [18:26:50]wFMCommunicate request_size=4 [18:26:50]MH_SAM_APDU [18:26:50]CAPDU: 80 11 00 00 [18:26:50]Write to MH i2c: E2 08 00 CB 1D 80 11 00 00 00 00 00 00 62 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:50]Read from MH i2c: E2 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 17 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: E2 17 00 CB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C2 [18:26:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:26:50]wFMCommunicate OK [18:26:50]CreateOFDProtocolMessage done [18:26:50]OFDSenderStorePacket 162618 [18:26:50]StoreOFDPacket docnum=162618 [18:26:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D7 E8 07 01 69 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 E9 C6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7B 02 00 35 04 06 00 C1 F1 4E 98 C3 B5 AB 3C 05 0E 4B C0 40 07 [18:26:50]CheckFolder [18:26:50]dirname=/storage/ofd_packets [18:26:50]CheckFolder done [18:26:50]ProducePacketName [18:26:50]name=ofd_packets/00162618 [18:26:50]NVStorageSaveData ofd_packets/00162618 [18:26:50]File name is /storage/ofd_packets/00162618 [18:26:50]Write 301 bytes [18:26:50]NVStorageSaveData done [18:26:50]OFDSenderStorePacket done [18:26:50]KKMCreateOFDPacket done [18:26:50]NVStorageSaveData kkm_last_timestamp [18:26:50]File name is /storage/kkm_last_timestamp [18:26:50]Write 4 bytes [18:26:50]NVStorageSaveData done [18:26:50]ExternCall_PrintAddStr [18:26:50]wPrintStart [18:26:50]Write to MH i2c: 01 00 00 CC 1D E9 [18:26:50]Write i2c OK [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 07 00 [18:26:50]MH_I2C_Read... [18:26:50]Read from MH i2c: 01 07 00 CC 1D 00 00 00 00 00 FF 0F FE [18:26:50]RasterBufferAndPrint [18:26:50]line Счет N : (1)1319186 [18:26:50]line ИНН: 02508201610067 [18:26:50]line Контрольно-Кассовый Чек [18:26:50]line ПРОДАЖА [18:26:50]line ТРК (МРК, ГНК) : 64 [18:26:50]line Товар: 2710124500 [18:26:50]line Аи-95-К-5 [18:26:50]line 6.730 * 74.40 [18:26:50]line = 500.71 [18:26:50]line НДС 12% НСП 1% [18:26:50]line > о реализуемом товаре [18:26:50]line ОКРУГЛЕНИЕ: -0.71 [18:26:50]line ИТОГО: 500.00 [18:26:50]line Внесено: 500.00 [18:26:50]line СДАЧА: 0.00 [18:26:50]line НСП 1% : 4.43 [18:26:50]line НДС 12% : 53.17 [18:26:50]line Наличными: 500.00 [18:26:50]line Безнал.: 0.00 [18:26:50]line Место: АЗС № 140 "Партнер Нефть" [18:26:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:26:50]line СНО: Общий режим [18:26:50]line Чек 286 13.07.2024 18:26 [18:26:50]line Смена: 462 ФФД: 1.0 [18:26:50]line ЗНМ: 0300000129 [18:26:50]line РНМ: 0000000000090858 [18:26:50]line Версия ККМ: 001 [18:26:50]line ФМ: 0000000000874899 [18:26:50]line ФД: 162618 [18:26:50]line ФПД: 213242149913525 [18:26:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182649&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162618&fm=213242149913525&tin=02508201610067®Number=0000000000090858&sum=50000 [18:26:50]OFD Sender: Processing packet 162618 [packets to send 106, broken 105] [18:26:50]ProducePacketName [18:26:50]name=ofd_packets/00162618 [18:26:50]OFD Sender: To server: pG, [18:26:50]CommunicateWithHost lk.salyk.kg:30040 [18:26:50]ConnectInit lk.salyk.kg [18:26:50]written 0, free lines is 4095 [18:26:50]Connected sock=10 [18:26:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 D7 E8 07 01 69 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 E9 C6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7B 02 00 35 04 06 00 C1 F1 4E 98 C3 B5 AB 3C 05 0E 4B C0 40 07 [18:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 82 74 47 00 7A BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3A 7B 02 00 F4 03 04 00 F8 72 92 66 B6 04 01 00 00 29 90 AE ED 6E 50 EB 6D [18:26:50]CommunicateWithHost err = 0 [18:26:50]CheckOFDResponse [18:26:50]1017 (14) - 77093643461234 [18:26:50]1041 (16) - 0000000000874899 [18:26:50]1040 (4) - 162618 [18:26:50]1012 (4) - 13.07.2024 12:28 [18:26:50]1206 (1) - 0 [18:26:50]OFD Sender: Remove packet 162618 [18:26:50]ProducePacketName [18:26:50]name=ofd_packets/00162618 [18:26:50]NVStorageDeleteData [18:26:51]Write to MH i2c: 01 00 00 F7 1D 14 [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: 01 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: 01 07 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: 01 07 00 F7 1D 00 00 00 00 00 F1 0C 18 [18:26:51]RasterBufferAndPrint [18:26:51]line [18:26:51]line [18:26:51]line [18:26:51]line [18:26:51]line [18:26:51]written 0, free lines is 3319 [18:26:51]MH_Cut [18:26:51]Write to MH i2c: D1 01 00 FE 1D 01 ED [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: D1 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: D1 01 00 [18:26:51]MH_I2C_Read... [18:26:51]Read from MH i2c: D1 01 00 FE 1D 00 EC [18:26:51]Write to MH i2c: 01 00 00 FF 1D 1C [18:26:51]Write i2c OK [18:26:51]MH_I2C_Read... [18:26:51]OFD Sender: No OFD packet to send [18:26:51]*** Cut start [18:26:51]*** Purtial cut [18:26:51]*** CUTSNS_PIN = 0 [18:26:52]*** Stage 1: CUTSNS_PIN = 1 [18:26:53]Read from MH i2c: 01 [18:26:53]MH_I2C_Read... [18:26:53]*** Stop cut motor [18:26:53]*** Cut end [18:26:53]Read from MH i2c: 01 07 00 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: 01 07 00 FF 1D 00 00 00 00 00 FF 0F 31 [18:26:53]process_action close_receipt done [18:26:53]requested_data is exist [18:26:53]produce_requested_data [18:26:53]requested_item fm.sn is exist - process it [18:26:53]wFMCommunicate request_size=4 [18:26:53]MH_SAM_APDU [18:26:53]CAPDU: 80 11 00 00 [18:26:53]Write to MH i2c: E2 08 00 00 1E 80 11 00 00 00 00 00 00 98 [18:26:53]Write i2c OK [18:26:53]MH_I2C_Read... [18:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:53]Read from MH i2c: E2 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: E2 17 00 [18:26:53]MH_I2C_Read... [18:26:53]Read from MH i2c: E2 17 00 00 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F8 [18:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:26:53]wFMCommunicate OK [18:26:53]requested_item fd.num is exist - process it [18:26:53]SAM_PROTO_GetFieldsCounters [18:26:53]wFMCommunicate request_size=4 [18:26:53]MH_SAM_APDU [18:26:53]CAPDU: 80 13 00 00 [18:26:53]Write to MH i2c: E2 08 00 01 1E 80 13 00 00 00 00 00 00 9B [18:26:53]Write i2c OK [18:26:53]MH_I2C_Read... [18:26:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:54]Read from MH i2c: E2 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 62 00 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 62 00 01 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [18:26:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:54]wFMCommunicate OK [18:26:54]SAM_PROTO_GetFieldsCounters done [18:26:54]requested_item shift.num is exist - process it [18:26:54]requested_item shift.opened is exist - process it [18:26:54]req_shift_opened [18:26:54]FM_GetShiftState [18:26:54]SAM_PROTO_GetShiftState [18:26:54]wFMCommunicate request_size=4 [18:26:54]MH_SAM_APDU [18:26:54]CAPDU: 80 13 01 00 [18:26:54]Write to MH i2c: E2 08 00 02 1E 80 13 01 00 00 00 00 00 9D [18:26:54]Write i2c OK [18:26:54]MH_I2C_Read... [18:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:54]Read from MH i2c: E2 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 0E 00 [18:26:54]MH_I2C_Read... [18:26:54]Read from MH i2c: E2 0E 00 02 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 97 [18:26:54]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:26:54]wFMCommunicate OK [18:26:54]SAM_PROTO_GetShiftState done [18:26:54]FM_GetShiftState done [18:26:54]req_shift_opened done [18:26:54]requested_item shift.open_date is exist - process it [18:26:54]req_shift_open_date [18:26:54]req_shift_open_date done [18:26:54]produce_requested_data done [18:26:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162618,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:26:54]process_action_free close_receipt [18:26:54]json_value_free [18:26:54]json_value_free done [18:26:54]process_json_proto returns [18:26:54]Send response to host [18:26:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162618,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:26:54]free response buf [18:26:54]execute_script done [18:26:54]execute_script returns [18:26:54]free content buf [18:26:54]Sock 7.Close socket [18:26:54]Sock 7.Thread stoped [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:32]accept exits with 9 [18:27:32]New connection [18:27:32]New thread 3067366756 created [18:27:32]Thread 3067510116 joined [18:27:32]Waiting for new connection... [18:27:32] Sock 9.Parse request [18:27:32]Sock 9.Check first char [18:27:32]Sock 9.First char is OK [18:27:32]request: POST /json_proto HTTP/1.0 [18:27:32]Method: POST [18:27:32]URL: /json_proto [18:27:32]Method is POST - this is cgi request [18:27:32]url: /json_proto [18:27:32]query_string will be loaded in cgi processing [18:27:32]execute_cgi json_proto POST (null) [18:27:32]execute_cgi path=json_proto method=POST [18:27:32]POST find Content-Length [18:27:32]Host: 172.17.39.67:8080 [18:27:32]Content-Length: 678 [18:27:32]Content-Type: application/json [18:27:32] [18:27:32]POST finish read [18:27:32]Found Content-Length = 678 [18:27:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:32]execute_script... [18:27: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)1319188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:27:32]POST & json_proto [18:27:32]process_json_proto [18:27:32]json parsed OK: [18:27:32]protocol is kg_v1.0 [18:27:32]action value=close_receipt [18:27:32]process_action close_receipt [18:27:32]cmd_close_receipt [18:27:32]MH_GetDate [18:27:32]Write to MH i2c: F0 00 00 03 1E 10 [18:27:32]Write i2c OK [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 09 00 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: F0 09 00 03 1E 00 16 C7 92 66 86 7C 92 66 E8 [18:27:32]GetLastDocTimeStamp 1720895209 [18:27:32]current date 1720895254 [18:27:32]FM_GetShiftState [18:27:32]SAM_PROTO_GetShiftState [18:27:32]wFMCommunicate request_size=4 [18:27:32]MH_SAM_APDU [18:27:32]CAPDU: 80 13 01 00 [18:27:32]Write to MH i2c: E2 08 00 04 1E 80 13 01 00 00 00 00 00 9F [18:27:32]Write i2c OK [18:27:32]MH_I2C_Read... [18:27:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:32]Read from MH i2c: E2 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: E2 0E 00 [18:27:32]MH_I2C_Read... [18:27:32]Read from MH i2c: E2 0E 00 04 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 99 [18:27:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:27:32]wFMCommunicate OK [18:27:32]SAM_PROTO_GetShiftState done [18:27:32]FM_GetShiftState done [18:27:32]opened in 1720828979 [18:27:32]opened+sec_in_day 1720915379 [18:27:32]quantity*price = 50056 [18:27:32]sum+1 = 50058 [18:27:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 287 13.07.2024 18:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162619 ФПД: 248416789581874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182734&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162619&fm=248416789581874&tin=02508201610067®Number=0000000000090858&sum=50000 [18:27:34]StoreToDocumentArchive [18:27:34]shift 462 fd 162619 [18:27:34]save to /storage/0462/doc_00162619 [18:27:34]save last doc name /storage/0462/doc_00162619 to /storage/kkm_last_doc_name [18:27:34]save OK [18:27:34]Clear old archive folders... [18:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:34]tlvbuf is B6FDD950 [18:27:34]SAM_PROTO_ClearQueue [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 09 00 00 [18:27:34]Write to MH i2c: E2 08 00 11 1E 80 09 00 00 00 00 00 00 A1 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 11 1E 00 90 00 A3 [18:27:34]RAPDU: 90 00 [18:27:34]wFMCommunicate OK [18:27:34]SAM_PROTO_ClearQueue done [18:27:34]KKMCreateOFDPacket [18:27:34]OFDProtocolAddRootSTLVToBuf [18:27:34]FM_MakeSignedData [18:27:34]FM_MakeSignedData [18:27:34]SAM_PROTO_SignData [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 0D 01 02 [18:27:34]Write to MH i2c: E2 08 00 12 1E 80 0D 01 02 00 00 00 00 A9 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 12 1E 00 90 00 A4 [18:27:34]RAPDU: 90 00 [18:27:34]wFMCommunicate OK [18:27:34]wFMCommunicate request_size=255 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 16 C7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7B 02 00 35 04 06 00 E1 [18:27:34]Write to MH i2c: E2 02 01 13 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 16 C7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7B 02 00 35 04 06 00 E1 00 00 C2 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 13 1E 00 90 00 A5 [18:27:34]RAPDU: 90 00 [18:27:34]wFMCommunicate OK [18:27:34]wFMCommunicate request_size=10 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 0D 02 02 05 EF 0A 7F D0 32 [18:27:34]Write to MH i2c: E2 0D 00 14 1E 80 0D 02 02 05 00 EF 0A 7F D0 32 00 00 30 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 03 00 14 1E 00 90 00 A6 [18:27:34]RAPDU: 90 00 [18:27:34]wFMCommunicate OK [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 0D 03 02 [18:27:34]Write to MH i2c: E2 08 00 15 1E 80 0D 03 02 00 00 00 00 AE [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0B 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 0B 00 15 1E 00 1C F5 E7 3A EE A0 20 40 90 00 CF [18:27:34]RAPDU: 1C F5 E7 3A EE A0 20 40 90 00 [18:27:34]wFMCommunicate OK [18:27:34]SAM_PROTO_SignData done [18:27:34]FM_MakeSignedData done [18:27:34]CreateOFDProtocolMessage [18:27:34]wFMCommunicate request_size=4 [18:27:34]MH_SAM_APDU [18:27:34]CAPDU: 80 11 00 00 [18:27:34]Write to MH i2c: E2 08 00 16 1E 80 11 00 00 00 00 00 00 AE [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:34]Read from MH i2c: E2 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 17 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: E2 17 00 16 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0E [18:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:27:34]wFMCommunicate OK [18:27:34]CreateOFDProtocolMessage done [18:27:34]OFDSenderStorePacket 162619 [18:27:34]StoreOFDPacket docnum=162619 [18:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0C AA 07 01 48 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 16 C7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7B 02 00 35 04 06 00 E1 EF 0A 7F D0 32 1C F5 E7 3A EE A0 20 40 [18:27:34]CheckFolder [18:27:34]dirname=/storage/ofd_packets [18:27:34]CheckFolder done [18:27:34]ProducePacketName [18:27:34]name=ofd_packets/00162619 [18:27:34]NVStorageSaveData ofd_packets/00162619 [18:27:34]File name is /storage/ofd_packets/00162619 [18:27:34]Write 301 bytes [18:27:34]NVStorageSaveData done [18:27:34]OFDSenderStorePacket done [18:27:34]KKMCreateOFDPacket done [18:27:34]NVStorageSaveData kkm_last_timestamp [18:27:34]File name is /storage/kkm_last_timestamp [18:27:34]Write 4 bytes [18:27:34]NVStorageSaveData done [18:27:34]ExternCall_PrintAddStr [18:27:34]wPrintStart [18:27:34]Write to MH i2c: 01 00 00 17 1E 35 [18:27:34]Write i2c OK [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 [18:27:34]MH_I2C_Read... [18:27:34]Read from MH i2c: 01 07 00 17 1E 00 00 00 00 00 FF 0F 4A [18:27:34]RasterBufferAndPrint [18:27:34]line Счет N : (1)1319188 [18:27:34]line ИНН: 02508201610067 [18:27:34]line Контрольно-Кассовый Чек [18:27:34]line ПРОДАЖА [18:27:34]line ТРК (МРК, ГНК) : 43 [18:27:34]line Товар: 2710124130 [18:27:34]line Аи-92-К-5 [18:27:34]line 7.550 * 66.30 [18:27:34]line = 500.57 [18:27:34]line НДС 12% НСП 1% [18:27:34]line > о реализуемом товаре [18:27:34]line ОКРУГЛЕНИЕ: -0.57 [18:27:34]line ИТОГО: 500.00 [18:27:34]line Внесено: 500.00 [18:27:34]line СДАЧА: 0.00 [18:27:34]line НСП 1% : 4.43 [18:27:34]line НДС 12% : 53.16 [18:27:34]line Наличными: 500.00 [18:27:34]line Безнал.: 0.00 [18:27:34]line Место: АЗС № 140 "Партнер Нефть" [18:27:34]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:27:34]line СНО: Общий режим [18:27:34]line Чек 287 13.07.2024 18:27 [18:27:34]line Смена: 462 ФФД: 1.0 [18:27:34]line ЗНМ: 0300000129 [18:27:34]line РНМ: 0000000000090858 [18:27:34]line Версия ККМ: 001 [18:27:34]line ФМ: 0000000000874899 [18:27:34]line ФД: 162619 [18:27:34]line ФПД: 248416789581874 [18:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182734&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162619&fm=248416789581874&tin=02508201610067®Number=0000000000090858&sum=50000 [18:27:34]OFD Sender: Processing packet 162619 [packets to send 106, broken 105] [18:27:34]ProducePacketName [18:27:34]name=ofd_packets/00162619 [18:27:34]OFD Sender: To server: pG, [18:27:34]CommunicateWithHost lk.salyk.kg:30040 [18:27:34]ConnectInit lk.salyk.kg [18:27:34]written 0, free lines is 4095 [18:27:35]Connected sock=10 [18:27:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 0C AA 07 01 48 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 16 C7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7B 02 00 35 04 06 00 E1 EF 0A 7F D0 32 1C F5 E7 3A EE A0 20 40 [18:27:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F4 EF 47 00 FF 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3B 7B 02 00 F4 03 04 00 24 73 92 66 B6 04 01 00 00 FF 92 A5 E6 9A 0E 59 E9 [18:27:35]CommunicateWithHost err = 0 [18:27:35]CheckOFDResponse [18:27:35]1017 (14) - 77093643461234 [18:27:35]1041 (16) - 0000000000874899 [18:27:35]1040 (4) - 162619 [18:27:35]1012 (4) - 13.07.2024 12:29 [18:27:35]1206 (1) - 0 [18:27:35]OFD Sender: Remove packet 162619 [18:27:35]ProducePacketName [18:27:35]name=ofd_packets/00162619 [18:27:35]NVStorageDeleteData [18:27:35]Write to MH i2c: 01 00 00 42 1E 60 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: 01 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: 01 07 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: 01 07 00 42 1E 00 00 00 00 00 F1 0C 64 [18:27:35]RasterBufferAndPrint [18:27:35]line [18:27:35]line [18:27:35]line [18:27:35]line [18:27:35]line [18:27:35]written 0, free lines is 3319 [18:27:35]MH_Cut [18:27:35]Write to MH i2c: D1 01 00 49 1E 01 39 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: D1 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: D1 01 00 [18:27:35]MH_I2C_Read... [18:27:35]Read from MH i2c: D1 01 00 49 1E 00 38 [18:27:35]Write to MH i2c: 01 00 00 4A 1E 68 [18:27:35]Write i2c OK [18:27:35]MH_I2C_Read... [18:27:35]OFD Sender: No OFD packet to send [18:27:36]*** Cut start [18:27:36]*** Purtial cut [18:27:36]*** Stage 1: CUTSNS_PIN = 1 [18:27:36]Read from MH i2c: 01 [18:27:36]MH_I2C_Read... [18:27:36]*** Stop cut motor [18:27:36]*** Cut end [18:27:36]Read from MH i2c: 01 07 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: 01 07 00 4A 1E 00 00 00 00 00 FF 0F 7D [18:27:36]process_action close_receipt done [18:27:36]requested_data is exist [18:27:36]produce_requested_data [18:27:36]requested_item fm.sn is exist - process it [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 11 00 00 [18:27:36]Write to MH i2c: E2 08 00 4B 1E 80 11 00 00 00 00 00 00 E3 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 17 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 17 00 4B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 43 [18:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:27:36]wFMCommunicate OK [18:27:36]requested_item fd.num is exist - process it [18:27:36]SAM_PROTO_GetFieldsCounters [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 13 00 00 [18:27:36]Write to MH i2c: E2 08 00 4C 1E 80 13 00 00 00 00 00 00 E6 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 62 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 62 00 4C 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [18:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:36]wFMCommunicate OK [18:27:36]SAM_PROTO_GetFieldsCounters done [18:27:36]requested_item shift.num is exist - process it [18:27:36]requested_item shift.opened is exist - process it [18:27:36]req_shift_opened [18:27:36]FM_GetShiftState [18:27:36]SAM_PROTO_GetShiftState [18:27:36]wFMCommunicate request_size=4 [18:27:36]MH_SAM_APDU [18:27:36]CAPDU: 80 13 01 00 [18:27:36]Write to MH i2c: E2 08 00 4D 1E 80 13 01 00 00 00 00 00 E8 [18:27:36]Write i2c OK [18:27:36]MH_I2C_Read... [18:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:36]Read from MH i2c: E2 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0E 00 [18:27:36]MH_I2C_Read... [18:27:36]Read from MH i2c: E2 0E 00 4D 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E2 [18:27:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:27:36]wFMCommunicate OK [18:27:36]SAM_PROTO_GetShiftState done [18:27:36]FM_GetShiftState done [18:27:36]req_shift_opened done [18:27:36]requested_item shift.open_date is exist - process it [18:27:36]req_shift_open_date [18:27:36]req_shift_open_date done [18:27:36]produce_requested_data done [18:27:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162619,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:27:36]process_action_free close_receipt [18:27:36]json_value_free [18:27:36]json_value_free done [18:27:36]process_json_proto returns [18:27:36]Send response to host [18:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162619,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:27:36]free response buf [18:27:36]execute_script done [18:27:36]execute_script returns [18:27:36]free content buf [18:27:36]Sock 9.Close socket [18:27:36]Sock 9.Thread stoped [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:48]accept exits with 7 [18:27:48]New connection [18:27:48]New thread 3067510116 created [18:27:48]Thread 3067366756 joined [18:27:48]Waiting for new connection... [18:27:48] Sock 7.Parse request [18:27:48]Sock 7.Check first char [18:27:48]Sock 7.First char is OK [18:27:48]request: POST /json_proto HTTP/1.0 [18:27:48]Method: POST [18:27:48]URL: /json_proto [18:27:48]Method is POST - this is cgi request [18:27:48]url: /json_proto [18:27:48]query_string will be loaded in cgi processing [18:27:48]execute_cgi json_proto POST (null) [18:27:48]execute_cgi path=json_proto method=POST [18:27:48]POST find Content-Length [18:27:48]Host: 172.17.39.67:8080 [18:27:48]Content-Length: 683 [18:27:48]Content-Type: application/json [18:27:48] [18:27:48]POST finish read [18:27:48]Found Content-Length = 683 [18:27:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 18.100, "sum" : 1200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:48]execute_script... [18:27: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)1319187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 18.100, "sum" : 1200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:48]POST & json_proto [18:27:48]process_json_proto [18:27:48]json parsed OK: [18:27:48]protocol is kg_v1.0 [18:27:48]action value=close_receipt [18:27:48]process_action close_receipt [18:27:48]cmd_close_receipt [18:27:48]MH_GetDate [18:27:48]Write to MH i2c: F0 00 00 4E 1E 5B [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: F0 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: F0 09 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: F0 09 00 4E 1E 00 25 C7 92 66 86 7C 92 66 42 [18:27:48]GetLastDocTimeStamp 1720895254 [18:27:48]current date 1720895269 [18:27:48]FM_GetShiftState [18:27:48]SAM_PROTO_GetShiftState [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 13 01 00 [18:27:48]Write to MH i2c: E2 08 00 4F 1E 80 13 01 00 00 00 00 00 EA [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 4F 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E4 [18:27:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:27:48]wFMCommunicate OK [18:27:48]SAM_PROTO_GetShiftState done [18:27:48]FM_GetShiftState done [18:27:48]opened in 1720828979 [18:27:48]opened+sec_in_day 1720915379 [18:27:48]quantity*price = 120003 [18:27:48]sum+1 = 120004 [18:27:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 288 13.07.2024 18:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162620 ФПД: 63311938707443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182749&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162620&fm=63311938707443&tin=02508201610067®Number=0000000000090858&sum=120000 [18:27:49]StoreToDocumentArchive [18:27:49]shift 462 fd 162620 [18:27:49]save to /storage/0462/doc_00162620 [18:27:49]save last doc name /storage/0462/doc_00162620 to /storage/kkm_last_doc_name [18:27:49]save OK [18:27:49]Clear old archive folders... [18:27:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:49]tlvbuf is 005F7D00 [18:27:49]SAM_PROTO_ClearQueue [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 09 00 00 [18:27:49]Write to MH i2c: E2 08 00 5C 1E 80 09 00 00 00 00 00 00 EC [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 5C 1E 00 90 00 EE [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]SAM_PROTO_ClearQueue done [18:27:49]KKMCreateOFDPacket [18:27:49]OFDProtocolAddRootSTLVToBuf [18:27:49]FM_MakeSignedData [18:27:49]FM_MakeSignedData [18:27:49]SAM_PROTO_SignData [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 01 02 [18:27:49]Write to MH i2c: E2 08 00 5D 1E 80 0D 01 02 00 00 00 00 F4 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 5D 1E 00 90 00 EF [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=255 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 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 20 01 00 00 F4 03 04 00 25 C7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7B 02 00 35 04 06 00 39 [18:27:49]Write to MH i2c: E2 02 01 5E 1E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 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 20 01 00 00 F4 03 04 00 25 C7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7B 02 00 35 04 06 00 39 00 00 B4 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 5E 1E 00 90 00 F0 [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=10 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 02 02 05 94 F5 9D DF F3 [18:27:49]Write to MH i2c: E2 0D 00 5F 1E 80 0D 02 02 05 00 94 F5 9D DF F3 00 00 F9 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 03 00 5F 1E 00 90 00 F1 [18:27:49]RAPDU: 90 00 [18:27:49]wFMCommunicate OK [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 0D 03 02 [18:27:49]Write to MH i2c: E2 08 00 60 1E 80 0D 03 02 00 00 00 00 F9 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 0B 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 0B 00 60 1E 00 C9 C9 A1 AF D4 B6 EC 3A 90 00 8C [18:27:49]RAPDU: C9 C9 A1 AF D4 B6 EC 3A 90 00 [18:27:49]wFMCommunicate OK [18:27:49]SAM_PROTO_SignData done [18:27:49]FM_MakeSignedData done [18:27:49]CreateOFDProtocolMessage [18:27:49]wFMCommunicate request_size=4 [18:27:49]MH_SAM_APDU [18:27:49]CAPDU: 80 11 00 00 [18:27:49]Write to MH i2c: E2 08 00 61 1E 80 11 00 00 00 00 00 00 F9 [18:27:49]Write i2c OK [18:27:49]MH_I2C_Read... [18:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:49]Read from MH i2c: E2 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 17 00 [18:27:49]MH_I2C_Read... [18:27:49]Read from MH i2c: E2 17 00 61 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 59 [18:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:27:49]wFMCommunicate OK [18:27:49]CreateOFDProtocolMessage done [18:27:49]OFDSenderStorePacket 162620 [18:27:49]StoreOFDPacket docnum=162620 [18:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 13 61 07 01 A2 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 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 20 01 00 00 F4 03 04 00 25 C7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7B 02 00 35 04 06 00 39 94 F5 9D DF F3 C9 C9 A1 AF D4 B6 EC 3A [18:27:49]CheckFolder [18:27:49]dirname=/storage/ofd_packets [18:27:49]CheckFolder done [18:27:49]ProducePacketName [18:27:49]name=ofd_packets/00162620 [18:27:49]NVStorageSaveData ofd_packets/00162620 [18:27:49]File name is /storage/ofd_packets/00162620 [18:27:49]Write 301 bytes [18:27:49]NVStorageSaveData done [18:27:49]OFDSenderStorePacket done [18:27:49]KKMCreateOFDPacket done [18:27:49]NVStorageSaveData kkm_last_timestamp [18:27:49]File name is /storage/kkm_last_timestamp [18:27:50]Write 4 bytes [18:27:50]NVStorageSaveData done [18:27:50]ExternCall_PrintAddStr [18:27:50]wPrintStart [18:27:50]Write to MH i2c: 01 00 00 62 1E 80 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 62 1E 00 00 00 00 00 FF 0F 95 [18:27:50]RasterBufferAndPrint [18:27:50]line Счет N : (1)1319187 [18:27:50]line ИНН: 02508201610067 [18:27:50]line Контрольно-Кассовый Чек [18:27:50]line ПРОДАЖА [18:27:50]line ТРК (МРК, ГНК) : 33 [18:27:50]line Товар: 2710124130 [18:27:50]line Аи-92-К-5 [18:27:50]line 18.100 * 66.30 [18:27:50]line = 1200.03 [18:27:50]line НДС 12% НСП 1% [18:27:50]line > о реализуемом товаре [18:27:50]line ОКРУГЛЕНИЕ: -0.03 [18:27:50]line ИТОГО: 1200.00 [18:27:50]line Внесено: 1200.00 [18:27:50]line СДАЧА: 0.00 [18:27:50]line НСП 1% : 10.62 [18:27:50]line НДС 12% : 127.44 [18:27:50]line Наличными: 1200.00 [18:27:50]line Безнал.: 0.00 [18:27:50]line Место: АЗС № 140 "Партнер Нефть" [18:27:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:27:50]line СНО: Общий режим [18:27:50]line Чек 288 13.07.2024 18:27 [18:27:50]line Смена: 462 ФФД: 1.0 [18:27:50]line ЗНМ: 0300000129 [18:27:50]line РНМ: 0000000000090858 [18:27:50]line Версия ККМ: 001 [18:27:50]line ФМ: 0000000000874899 [18:27:50]line ФД: 162620 [18:27:50]line ФПД: 63311938707443 [18:27:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T182749&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162620&fm=63311938707443&tin=02508201610067®Number=0000000000090858&sum=120000 [18:27:50]OFD Sender: Processing packet 162620 [packets to send 106, broken 105] [18:27:50]ProducePacketName [18:27:50]name=ofd_packets/00162620 [18:27:50]OFD Sender: To server: pG, [18:27:50]CommunicateWithHost lk.salyk.kg:30040 [18:27:50]ConnectInit lk.salyk.kg [18:27:50]written 0, free lines is 4095 [18:27:50]Connected sock=10 [18:27:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 13 61 07 01 A2 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B4 46 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 C3 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 20 01 00 00 F4 03 04 00 25 C7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7B 02 00 35 04 06 00 39 94 F5 9D DF F3 C9 C9 A1 AF D4 B6 EC 3A [18:27:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F7 5E 47 00 21 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3C 7B 02 00 F4 03 04 00 34 73 92 66 B6 04 01 00 00 B8 79 14 32 CD C7 70 F8 [18:27:50]CommunicateWithHost err = 0 [18:27:50]CheckOFDResponse [18:27:50]1017 (14) - 77093643461234 [18:27:50]1041 (16) - 0000000000874899 [18:27:50]1040 (4) - 162620 [18:27:50]1012 (4) - 13.07.2024 12:29 [18:27:50]1206 (1) - 0 [18:27:50]OFD Sender: Remove packet 162620 [18:27:50]ProducePacketName [18:27:50]name=ofd_packets/00162620 [18:27:50]NVStorageDeleteData [18:27:50]Write to MH i2c: 01 00 00 8D 1E AB [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: 01 07 00 8D 1E 00 00 00 00 00 E4 0C A2 [18:27:50]RasterBufferAndPrint [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]line [18:27:50]written 0, free lines is 3306 [18:27:50]MH_Cut [18:27:50]Write to MH i2c: D1 01 00 94 1E 01 84 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 01 00 [18:27:50]MH_I2C_Read... [18:27:50]Read from MH i2c: D1 01 00 94 1E 00 83 [18:27:50]Write to MH i2c: 01 00 00 95 1E B3 [18:27:50]Write i2c OK [18:27:50]MH_I2C_Read... [18:27:51]OFD Sender: No OFD packet to send [18:27:51]*** Cut start [18:27:51]*** Purtial cut [18:27:51]*** CUTSNS_PIN = 0 [18:27:51]*** Stage 1: CUTSNS_PIN = 1 [18:27:53]Read from MH i2c: 01 [18:27:53]MH_I2C_Read... [18:27:53]*** Stop cut motor [18:27:53]*** Cut end [18:27:53]Read from MH i2c: 01 07 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: 01 07 00 95 1E 00 00 00 00 00 FF 0F C8 [18:27:53]process_action close_receipt done [18:27:53]requested_data is exist [18:27:53]produce_requested_data [18:27:53]requested_item fm.sn is exist - process it [18:27:53]wFMCommunicate request_size=4 [18:27:53]MH_SAM_APDU [18:27:53]CAPDU: 80 11 00 00 [18:27:53]Write to MH i2c: E2 08 00 96 1E 80 11 00 00 00 00 00 00 2E [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:53]Read from MH i2c: E2 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 17 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 17 00 96 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8E [18:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:27:53]wFMCommunicate OK [18:27:53]requested_item fd.num is exist - process it [18:27:53]SAM_PROTO_GetFieldsCounters [18:27:53]wFMCommunicate request_size=4 [18:27:53]MH_SAM_APDU [18:27:53]CAPDU: 80 13 00 00 [18:27:53]Write to MH i2c: E2 08 00 97 1E 80 13 00 00 00 00 00 00 31 [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:53]Read from MH i2c: E2 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 62 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 62 00 97 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [18:27:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:53]wFMCommunicate OK [18:27:53]SAM_PROTO_GetFieldsCounters done [18:27:53]requested_item shift.num is exist - process it [18:27:53]requested_item shift.opened is exist - process it [18:27:53]req_shift_opened [18:27:53]FM_GetShiftState [18:27:53]SAM_PROTO_GetShiftState [18:27:53]wFMCommunicate request_size=4 [18:27:53]MH_SAM_APDU [18:27:53]CAPDU: 80 13 01 00 [18:27:53]Write to MH i2c: E2 08 00 98 1E 80 13 01 00 00 00 00 00 33 [18:27:53]Write i2c OK [18:27:53]MH_I2C_Read... [18:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:53]Read from MH i2c: E2 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 0E 00 [18:27:53]MH_I2C_Read... [18:27:53]Read from MH i2c: E2 0E 00 98 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2D [18:27:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:27:53]wFMCommunicate OK [18:27:53]SAM_PROTO_GetShiftState done [18:27:53]FM_GetShiftState done [18:27:53]req_shift_opened done [18:27:53]requested_item shift.open_date is exist - process it [18:27:53]req_shift_open_date [18:27:53]req_shift_open_date done [18:27:53]produce_requested_data done [18:27:53]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162620,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:27:53]process_action_free close_receipt [18:27:53]json_value_free [18:27:53]json_value_free done [18:27:53]process_json_proto returns [18:27:53]Send response to host [18:27:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162620,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:27:53]free response buf [18:27:53]execute_script done [18:27:53]execute_script returns [18:27:53]free content buf [18:27:53]Sock 7.Close socket [18:27:53]Sock 7.Thread stoped [18:27:56]OFD Sender: No OFD packet to send [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:46]OFD Sender: No OFD packet to send [18:29:51]OFD Sender: No OFD packet to send [18:29:56]OFD Sender: No OFD packet to send [18:30:01]OFD Sender: No OFD packet to send [18:30:06]OFD Sender: No OFD packet to send [18:30:11]OFD Sender: No OFD packet to send [18:30:16]OFD Sender: No OFD packet to send [18:30:21]OFD Sender: No OFD packet to send [18:30:26]OFD Sender: No OFD packet to send [18:30:31]OFD Sender: No OFD packet to send [18:30:36]OFD Sender: No OFD packet to send [18:30:41]OFD Sender: No OFD packet to send [18:30:46]OFD Sender: No OFD packet to send [18:30:51]OFD Sender: No OFD packet to send [18:30:56]OFD Sender: No OFD packet to send [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]accept exits with 9 [18:32:51]New connection [18:32:51]New thread 3067366756 created [18:32:51]Thread 3067510116 joined [18:32:51]Waiting for new connection... [18:32:51] Sock 9.Parse request [18:32:51]Sock 9.Check first char [18:32:51]Sock 9.First char is OK [18:32:51]request: POST /json_proto HTTP/1.0 [18:32:51]Method: POST [18:32:51]URL: /json_proto [18:32:51]Method is POST - this is cgi request [18:32:51]url: /json_proto [18:32:51]query_string will be loaded in cgi processing [18:32:51]execute_cgi json_proto POST (null) [18:32:51]execute_cgi path=json_proto method=POST [18:32:51]POST find Content-Length [18:32:51]Host: 172.17.39.67:8080 [18:32:51]Content-Length: 809 [18:32:51]Content-Type: application/json [18:32:51] [18:32:51]POST finish read [18:32:51]Found Content-Length = 809 [18:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:51]execute_script... [18:32:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.540, "sum" : 1999.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1999.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:32:51]POST & json_proto [18:32:51]process_json_proto [18:32:51]json parsed OK: [18:32:51]protocol is kg_v1.0 [18:32:51]action value=close_receipt [18:32:51]process_action close_receipt [18:32:51]cmd_close_receipt [18:32:51]MH_GetDate [18:32:51]Write to MH i2c: F0 00 00 99 1E A6 [18:32:51]Write i2c OK [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: F0 [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: F0 09 00 [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: F0 09 00 99 1E 00 54 C8 92 66 86 7C 92 66 BD [18:32:51]GetLastDocTimeStamp 1720895269 [18:32:51]current date 1720895572 [18:32:51]FM_GetShiftState [18:32:51]SAM_PROTO_GetShiftState [18:32:51]wFMCommunicate request_size=4 [18:32:51]MH_SAM_APDU [18:32:51]CAPDU: 80 13 01 00 [18:32:51]Write to MH i2c: E2 08 00 9A 1E 80 13 01 00 00 00 00 00 35 [18:32:51]Write i2c OK [18:32:51]MH_I2C_Read... [18:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:51]Read from MH i2c: E2 [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: E2 0E 00 [18:32:51]MH_I2C_Read... [18:32:51]Read from MH i2c: E2 0E 00 9A 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2F [18:32:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:32:51]wFMCommunicate OK [18:32:51]SAM_PROTO_GetShiftState done [18:32:51]FM_GetShiftState done [18:32:51]opened in 1720828979 [18:32:51]opened+sec_in_day 1720915379 [18:32:51]quantity*price = 199940 [18:32:51]sum+1 = 199941 [18:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1999.40 НСП 1% : 17.69 НДС 12% : 212.33 Наличными: 0.00 Безнал.: 1999.40 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 289 13.07.2024 18:32 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162621 ФПД: 271953254122702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183252&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162621&fm=271953254122702&tin=02508201610067®Number=0000000000090858&sum=199940 [18:32:52]StoreToDocumentArchive [18:32:52]shift 462 fd 162621 [18:32:52]save to /storage/0462/doc_00162621 [18:32:52]save last doc name /storage/0462/doc_00162621 to /storage/kkm_last_doc_name [18:32:52]save OK [18:32:52]Clear old archive folders... [18:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:32:52]tlvbuf is 006E34F0 [18:32:52]SAM_PROTO_ClearQueue [18:32:52]wFMCommunicate request_size=4 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 09 00 00 [18:32:52]Write to MH i2c: E2 08 00 A7 1E 80 09 00 00 00 00 00 00 37 [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:52]Read from MH i2c: E2 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 A7 1E 00 90 00 39 [18:32:52]RAPDU: 90 00 [18:32:52]wFMCommunicate OK [18:32:52]SAM_PROTO_ClearQueue done [18:32:52]KKMCreateOFDPacket [18:32:52]OFDProtocolAddRootSTLVToBuf [18:32:52]FM_MakeSignedData [18:32:52]FM_MakeSignedData [18:32:52]SAM_PROTO_SignData [18:32:52]wFMCommunicate request_size=4 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 0D 01 02 [18:32:52]Write to MH i2c: E2 08 00 A8 1E 80 0D 01 02 00 00 00 00 3F [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:52]Read from MH i2c: E2 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 A8 1E 00 90 00 3A [18:32:52]RAPDU: 90 00 [18:32:52]wFMCommunicate OK [18:32:52]wFMCommunicate request_size=255 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 54 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7B 02 00 35 04 06 00 [18:32:52]Write to MH i2c: E2 02 01 A9 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 54 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7B 02 00 35 04 06 00 00 00 3A [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:52]Read from MH i2c: E2 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 A9 1E 00 90 00 3B [18:32:52]RAPDU: 90 00 [18:32:52]wFMCommunicate OK [18:32:52]wFMCommunicate request_size=11 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 0D 02 02 06 F7 57 0D 1B 84 CE [18:32:52]Write to MH i2c: E2 0E 00 AA 1E 80 0D 02 02 06 00 F7 57 0D 1B 84 CE 00 00 16 [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:52]Read from MH i2c: E2 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 03 00 AA 1E 00 90 00 3C [18:32:52]RAPDU: 90 00 [18:32:52]wFMCommunicate OK [18:32:52]wFMCommunicate request_size=4 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 0D 03 02 [18:32:52]Write to MH i2c: E2 08 00 AB 1E 80 0D 03 02 00 00 00 00 44 [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:52]Read from MH i2c: E2 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 0B 00 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 0B 00 AB 1E 00 9B 9E AF 9D 6D F2 F7 16 90 00 36 [18:32:52]RAPDU: 9B 9E AF 9D 6D F2 F7 16 90 00 [18:32:52]wFMCommunicate OK [18:32:52]SAM_PROTO_SignData done [18:32:52]FM_MakeSignedData done [18:32:52]CreateOFDProtocolMessage [18:32:52]wFMCommunicate request_size=4 [18:32:52]MH_SAM_APDU [18:32:52]CAPDU: 80 11 00 00 [18:32:52]Write to MH i2c: E2 08 00 AC 1E 80 11 00 00 00 00 00 00 44 [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:52]Read from MH i2c: E2 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 17 00 [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: E2 17 00 AC 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A4 [18:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:32:52]wFMCommunicate OK [18:32:52]CreateOFDProtocolMessage done [18:32:52]OFDSenderStorePacket 162621 [18:32:52]StoreOFDPacket docnum=162621 [18:32:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AE F6 08 01 10 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 54 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7B 02 00 35 04 06 00 F7 57 0D 1B 84 CE 9B 9E AF 9D 6D F2 F7 16 [18:32:52]CheckFolder [18:32:52]dirname=/storage/ofd_packets [18:32:52]CheckFolder done [18:32:52]ProducePacketName [18:32:52]name=ofd_packets/00162621 [18:32:52]NVStorageSaveData ofd_packets/00162621 [18:32:52]File name is /storage/ofd_packets/00162621 [18:32:52]Write 302 bytes [18:32:52]NVStorageSaveData done [18:32:52]OFDSenderStorePacket done [18:32:52]KKMCreateOFDPacket done [18:32:52]NVStorageSaveData kkm_last_timestamp [18:32:52]File name is /storage/kkm_last_timestamp [18:32:52]Write 4 bytes [18:32:52]NVStorageSaveData done [18:32:52]ExternCall_PrintAddStr [18:32:52]wPrintStart [18:32:52]Write to MH i2c: 01 00 00 AD 1E CB [18:32:52]Write i2c OK [18:32:52]MH_I2C_Read... [18:32:52]Read from MH i2c: 01 [18:32:52]MH_I2C_Read... [18:32:53]Read from MH i2c: 01 07 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: 01 07 00 AD 1E 00 00 00 00 00 FF 0F E0 [18:32:53]RasterBufferAndPrint [18:32:53]line Счет N : (1)1319189 [18:32:53]line ИНН: 02508201610067 [18:32:53]line Контрольно-Кассовый Чек [18:32:53]line ПРОДАЖА [18:32:53]line ТРК (МРК, ГНК) : 41 [18:32:53]line Товар: 2710194210 [18:32:53]line ДТ(л)-К-5 [18:32:53]line 27.540 * 72.60 [18:32:53]line = 1999.40 [18:32:53]line НДС 12% НСП 1% [18:32:53]line > о реализуемом товаре [18:32:53]line ИТОГО: 1999.40 [18:32:53]line НСП 1% : 17.69 [18:32:53]line НДС 12% : 212.33 [18:32:53]line Наличными: 0.00 [18:32:53]line Безнал.: 1999.40 [18:32:53]line Место: АЗС № 140 "Партнер Нефть" [18:32:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:32:53]line СНО: Общий режим [18:32:53]line Чек 289 13.07.2024 18:32 [18:32:53]line Смена: 462 ФФД: 1.0 [18:32:53]line ЗНМ: 0300000129 [18:32:53]line РНМ: 0000000000090858 [18:32:53]line Версия ККМ: 001 [18:32:53]line Платежная система: O! деньги [18:32:53]line ФМ: 0000000000874899 [18:32:53]line ФД: 162621 [18:32:53]line ФПД: 271953254122702 [18:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183252&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162621&fm=271953254122702&tin=02508201610067®Number=0000000000090858&sum=199940 [18:32:53]written 0, free lines is 4095 [18:32:53]OFD Sender: Processing packet 162621 [packets to send 106, broken 105] [18:32:53]ProducePacketName [18:32:53]name=ofd_packets/00162621 [18:32:53]OFD Sender: To server: pG, [18:32:53]CommunicateWithHost lk.salyk.kg:30040 [18:32:53]ConnectInit lk.salyk.kg [18:32:53]Connected sock=10 [18:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AE F6 08 01 10 D3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 94 6B 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 04 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 54 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7B 02 00 35 04 06 00 F7 57 0D 1B 84 CE 9B 9E AF 9D 6D F2 F7 16 [18:32:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B6 76 47 00 0C C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3D 7B 02 00 F4 03 04 00 63 74 92 66 B6 04 01 00 00 F3 09 67 64 55 C0 C4 28 [18:32:53]CommunicateWithHost err = 0 [18:32:53]CheckOFDResponse [18:32:53]1017 (14) - 77093643461234 [18:32:53]1041 (16) - 0000000000874899 [18:32:53]1040 (4) - 162621 [18:32:53]1012 (4) - 13.07.2024 12:34 [18:32:53]1206 (1) - 0 [18:32:53]OFD Sender: Remove packet 162621 [18:32:53]ProducePacketName [18:32:53]name=ofd_packets/00162621 [18:32:53]NVStorageDeleteData [18:32:53]Write to MH i2c: 01 00 00 D7 1E F5 [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: 01 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: 01 07 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: 01 07 00 D7 1E 00 00 00 00 00 FE 0C 06 [18:32:53]RasterBufferAndPrint [18:32:53]line [18:32:53]line [18:32:53]line [18:32:53]line [18:32:53]line [18:32:53]written 0, free lines is 3332 [18:32:53]MH_Cut [18:32:53]Write to MH i2c: D1 01 00 DE 1E 01 CE [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: D1 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: D1 01 00 [18:32:53]MH_I2C_Read... [18:32:53]Read from MH i2c: D1 01 00 DE 1E 00 CD [18:32:53]Write to MH i2c: 01 00 00 DF 1E FD [18:32:53]Write i2c OK [18:32:53]MH_I2C_Read... [18:32:54]OFD Sender: No OFD packet to send [18:32:54]*** Cut start [18:32:54]*** Purtial cut [18:32:54]*** Stage 1: CUTSNS_PIN = 1 [18:32:54]Read from MH i2c: 01 [18:32:54]MH_I2C_Read... [18:32:54]*** Stop cut motor [18:32:54]*** Cut end [18:32:54]Read from MH i2c: 01 07 00 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: 01 07 00 DF 1E 00 00 00 00 00 FF 0F 12 [18:32:54]process_action close_receipt done [18:32:54]requested_data is exist [18:32:54]produce_requested_data [18:32:54]requested_item fm.sn is exist - process it [18:32:54]wFMCommunicate request_size=4 [18:32:54]MH_SAM_APDU [18:32:54]CAPDU: 80 11 00 00 [18:32:54]Write to MH i2c: E2 08 00 E0 1E 80 11 00 00 00 00 00 00 78 [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:54]Read from MH i2c: E2 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: E2 17 00 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: E2 17 00 E0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D8 [18:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:32:54]wFMCommunicate OK [18:32:54]requested_item fd.num is exist - process it [18:32:54]SAM_PROTO_GetFieldsCounters [18:32:54]wFMCommunicate request_size=4 [18:32:54]MH_SAM_APDU [18:32:54]CAPDU: 80 13 00 00 [18:32:54]Write to MH i2c: E2 08 00 E1 1E 80 13 00 00 00 00 00 00 7B [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:54]Read from MH i2c: E2 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: E2 62 00 [18:32:54]MH_I2C_Read... [18:32:54]Read from MH i2c: E2 62 00 E1 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [18:32:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:54]wFMCommunicate OK [18:32:54]SAM_PROTO_GetFieldsCounters done [18:32:54]requested_item shift.num is exist - process it [18:32:54]requested_item shift.opened is exist - process it [18:32:54]req_shift_opened [18:32:54]FM_GetShiftState [18:32:54]SAM_PROTO_GetShiftState [18:32:54]wFMCommunicate request_size=4 [18:32:54]MH_SAM_APDU [18:32:54]CAPDU: 80 13 01 00 [18:32:54]Write to MH i2c: E2 08 00 E2 1E 80 13 01 00 00 00 00 00 7D [18:32:54]Write i2c OK [18:32:54]MH_I2C_Read... [18:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:55]Read from MH i2c: E2 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 0E 00 [18:32:55]MH_I2C_Read... [18:32:55]Read from MH i2c: E2 0E 00 E2 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 77 [18:32:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:32:55]wFMCommunicate OK [18:32:55]SAM_PROTO_GetShiftState done [18:32:55]FM_GetShiftState done [18:32:55]req_shift_opened done [18:32:55]requested_item shift.open_date is exist - process it [18:32:55]req_shift_open_date [18:32:55]req_shift_open_date done [18:32:55]produce_requested_data done [18:32:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162621,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:32:55]process_action_free close_receipt [18:32:55]json_value_free [18:32:55]json_value_free done [18:32:55]process_json_proto returns [18:32:55]Send response to host [18:32:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162621,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:32:55]free response buf [18:32:55]execute_script done [18:32:55]execute_script returns [18:32:55]free content buf [18:32:55]Sock 9.Close socket [18:32:55]Sock 9.Thread stoped [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:44]OFD Sender: No OFD packet to send [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]accept exits with 7 [18:34:29]New connection [18:34:29]New thread 3067510116 created [18:34:29]Thread 3067366756 joined [18:34:29]Waiting for new connection... [18:34:29] Sock 7.Parse request [18:34:29]Sock 7.Check first char [18:34:29]Sock 7.First char is OK [18:34:29]request: POST /json_proto HTTP/1.0 [18:34:29]Method: POST [18:34:29]URL: /json_proto [18:34:29]Method is POST - this is cgi request [18:34:29]url: /json_proto [18:34:29]query_string will be loaded in cgi processing [18:34:29]execute_cgi json_proto POST (null) [18:34:29]execute_cgi path=json_proto method=POST [18:34:29]POST find Content-Length [18:34:29]Host: 172.17.39.67:8080 [18:34:29]Content-Length: 683 [18:34:29]Content-Type: application/json [18:34:29] [18:34:29]POST finish read [18:34:29]Found Content-Length = 683 [18:34:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:29]execute_script... [18: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)1319190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 5.510, "sum" : 400.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:29]POST & json_proto [18:34:29]process_json_proto [18:34:29]json parsed OK: [18:34:29]protocol is kg_v1.0 [18:34:29]action value=close_receipt [18:34:29]process_action close_receipt [18:34:29]cmd_close_receipt [18:34:29]MH_GetDate [18:34:29]Write to MH i2c: F0 00 00 E3 1E F0 [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: F0 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: F0 09 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: F0 09 00 E3 1E 00 B6 C8 92 66 86 7C 92 66 69 [18:34:29]GetLastDocTimeStamp 1720895572 [18:34:29]current date 1720895670 [18:34:29]FM_GetShiftState [18:34:29]SAM_PROTO_GetShiftState [18:34:29]wFMCommunicate request_size=4 [18:34:29]MH_SAM_APDU [18:34:29]CAPDU: 80 13 01 00 [18:34:29]Write to MH i2c: E2 08 00 E4 1E 80 13 01 00 00 00 00 00 7F [18:34:29]Write i2c OK [18:34:29]MH_I2C_Read... [18:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:29]Read from MH i2c: E2 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0E 00 [18:34:29]MH_I2C_Read... [18:34:29]Read from MH i2c: E2 0E 00 E4 1E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 79 [18:34:29]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:34:29]wFMCommunicate OK [18:34:29]SAM_PROTO_GetShiftState done [18:34:29]FM_GetShiftState done [18:34:29]opened in 1720828979 [18:34:29]opened+sec_in_day 1720915379 [18:34:29]quantity*price = 40002 [18:34:29]sum+1 = 40004 [18:34:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 290 13.07.2024 18:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162622 ФПД: 200794480403578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183430&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162622&fm=200794480403578&tin=02508201610067®Number=0000000000090858&sum=40000 [18:34:30]StoreToDocumentArchive [18:34:30]shift 462 fd 162622 [18:34:30]save to /storage/0462/doc_00162622 [18:34:30]save last doc name /storage/0462/doc_00162622 to /storage/kkm_last_doc_name [18:34:30]save OK [18:34:30]Clear old archive folders... [18:34:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:34:30]tlvbuf is B6E30370 [18:34:30]SAM_PROTO_ClearQueue [18:34:30]wFMCommunicate request_size=4 [18:34:30]MH_SAM_APDU [18:34:30]CAPDU: 80 09 00 00 [18:34:30]Write to MH i2c: E2 08 00 F1 1E 80 09 00 00 00 00 00 00 81 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 [18:34:30]MH_I2C_Read... [18:34:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:30]Read from MH i2c: E2 03 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 03 00 F1 1E 00 90 00 83 [18:34:30]RAPDU: 90 00 [18:34:30]wFMCommunicate OK [18:34:30]SAM_PROTO_ClearQueue done [18:34:30]KKMCreateOFDPacket [18:34:30]OFDProtocolAddRootSTLVToBuf [18:34:30]FM_MakeSignedData [18:34:30]FM_MakeSignedData [18:34:30]SAM_PROTO_SignData [18:34:30]wFMCommunicate request_size=4 [18:34:30]MH_SAM_APDU [18:34:30]CAPDU: 80 0D 01 02 [18:34:30]Write to MH i2c: E2 08 00 F2 1E 80 0D 01 02 00 00 00 00 89 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:30]Read from MH i2c: E2 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 03 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 03 00 F2 1E 00 90 00 84 [18:34:30]RAPDU: 90 00 [18:34:30]wFMCommunicate OK [18:34:30]wFMCommunicate request_size=255 [18:34:30]MH_SAM_APDU [18:34:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B6 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7B 02 00 35 04 06 00 [18:34:30]Write to MH i2c: E2 02 01 F3 1E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B6 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7B 02 00 35 04 06 00 00 00 B8 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:30]Read from MH i2c: E2 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 03 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 03 00 F3 1E 00 90 00 85 [18:34:30]RAPDU: 90 00 [18:34:30]wFMCommunicate OK [18:34:30]wFMCommunicate request_size=11 [18:34:30]MH_SAM_APDU [18:34:30]CAPDU: 80 0D 02 02 06 B6 9F 1B AD 64 7A [18:34:30]Write to MH i2c: E2 0E 00 F4 1E 80 0D 02 02 06 00 B6 9F 1B AD 64 7A 00 00 93 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:30]Read from MH i2c: E2 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 03 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 03 00 F4 1E 00 90 00 86 [18:34:30]RAPDU: 90 00 [18:34:30]wFMCommunicate OK [18:34:30]wFMCommunicate request_size=4 [18:34:30]MH_SAM_APDU [18:34:30]CAPDU: 80 0D 03 02 [18:34:30]Write to MH i2c: E2 08 00 F5 1E 80 0D 03 02 00 00 00 00 8E [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:30]Read from MH i2c: E2 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 0B 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 0B 00 F5 1E 00 97 56 3D 1E 8A D9 94 64 90 00 32 [18:34:30]RAPDU: 97 56 3D 1E 8A D9 94 64 90 00 [18:34:30]wFMCommunicate OK [18:34:30]SAM_PROTO_SignData done [18:34:30]FM_MakeSignedData done [18:34:30]CreateOFDProtocolMessage [18:34:30]wFMCommunicate request_size=4 [18:34:30]MH_SAM_APDU [18:34:30]CAPDU: 80 11 00 00 [18:34:30]Write to MH i2c: E2 08 00 F6 1E 80 11 00 00 00 00 00 00 8E [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:30]Read from MH i2c: E2 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 17 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: E2 17 00 F6 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EE [18:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:34:30]wFMCommunicate OK [18:34:30]CreateOFDProtocolMessage done [18:34:30]OFDSenderStorePacket 162622 [18:34:30]StoreOFDPacket docnum=162622 [18:34:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BA 95 08 01 9B F5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B6 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7B 02 00 35 04 06 00 B6 9F 1B AD 64 7A 97 56 3D 1E 8A D9 94 64 [18:34:30]CheckFolder [18:34:30]dirname=/storage/ofd_packets [18:34:30]CheckFolder done [18:34:30]ProducePacketName [18:34:30]name=ofd_packets/00162622 [18:34:30]NVStorageSaveData ofd_packets/00162622 [18:34:30]File name is /storage/ofd_packets/00162622 [18:34:30]Write 302 bytes [18:34:30]NVStorageSaveData done [18:34:30]OFDSenderStorePacket done [18:34:30]KKMCreateOFDPacket done [18:34:30]NVStorageSaveData kkm_last_timestamp [18:34:30]File name is /storage/kkm_last_timestamp [18:34:30]Write 4 bytes [18:34:30]NVStorageSaveData done [18:34:30]ExternCall_PrintAddStr [18:34:30]wPrintStart [18:34:30]Write to MH i2c: 01 00 00 F7 1E 15 [18:34:30]Write i2c OK [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 07 00 [18:34:30]MH_I2C_Read... [18:34:30]Read from MH i2c: 01 07 00 F7 1E 00 00 00 00 00 FF 0F 2A [18:34:30]RasterBufferAndPrint [18:34:30]line Счет N : (1)1319190 [18:34:30]line ИНН: 02508201610067 [18:34:30]line Контрольно-Кассовый Чек [18:34:30]line ПРОДАЖА [18:34:30]line ТРК (МРК, ГНК) : 21 [18:34:30]line Товар: 2710194210 [18:34:30]line ДТ(л)-К-5 [18:34:30]line 5.510 * 72.60 [18:34:30]line = 400.03 [18:34:30]line НДС 12% НСП 1% [18:34:30]line > о реализуемом товаре [18:34:30]line ОКРУГЛЕНИЕ: -0.03 [18:34:30]line ИТОГО: 400.00 [18:34:30]line Внесено: 400.00 [18:34:30]line СДАЧА: 0.00 [18:34:30]line НСП 1% : 3.54 [18:34:30]line НДС 12% : 42.48 [18:34:30]line Наличными: 400.00 [18:34:30]line Безнал.: 0.00 [18:34:30]line Место: АЗС № 140 "Партнер Нефть" [18:34:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:34:30]line СНО: Общий режим [18:34:30]line Чек 290 13.07.2024 18:34 [18:34:30]line Смена: 462 ФФД: 1.0 [18:34:30]line ЗНМ: 0300000129 [18:34:30]line РНМ: 0000000000090858 [18:34:30]line Версия ККМ: 001 [18:34:30]line ФМ: 0000000000874899 [18:34:30]line ФД: 162622 [18:34:30]line ФПД: 200794480403578 [18:34:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183430&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162622&fm=200794480403578&tin=02508201610067®Number=0000000000090858&sum=40000 [18:34:31]OFD Sender: Processing packet 162622 [packets to send 106, broken 105] [18:34:31]ProducePacketName [18:34:31]name=ofd_packets/00162622 [18:34:31]OFD Sender: To server: pG, [18:34:31]CommunicateWithHost lk.salyk.kg:30040 [18:34:31]ConnectInit lk.salyk.kg [18:34:31]written 0, free lines is 4095 [18:34:31]Connected sock=10 [18: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 34 38 39 39 10 01 00 00 BA 95 08 01 9B F5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 86 15 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 43 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 B6 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3E 7B 02 00 35 04 06 00 B6 9F 1B AD 64 7A 97 56 3D 1E 8A D9 94 64 [18:34:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E3 20 47 00 19 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 34 38 39 39 10 04 04 00 3E 7B 02 00 F4 03 04 00 C4 74 92 66 B6 04 01 00 00 78 69 AE C0 A2 75 A1 56 [18:34:31]CommunicateWithHost err = 0 [18:34:31]CheckOFDResponse [18:34:31]1017 (14) - 77093643461234 [18:34:31]1041 (16) - 0000000000874899 [18:34:31]1040 (4) - 162622 [18:34:31]1012 (4) - 13.07.2024 12:36 [18:34:31]1206 (1) - 0 [18:34:31]OFD Sender: Remove packet 162622 [18:34:31]ProducePacketName [18:34:31]name=ofd_packets/00162622 [18:34:31]NVStorageDeleteData [18:34:31]Write to MH i2c: 01 00 00 22 1F 41 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: 01 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: 01 07 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: 01 07 00 22 1F 00 00 00 00 00 E2 0C 36 [18:34:31]RasterBufferAndPrint [18:34:31]line [18:34:31]line [18:34:31]line [18:34:31]line [18:34:31]line [18:34:31]written 0, free lines is 3304 [18:34:31]MH_Cut [18:34:31]Write to MH i2c: D1 01 00 29 1F 01 1A [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: D1 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: D1 01 00 [18:34:31]MH_I2C_Read... [18:34:31]Read from MH i2c: D1 01 00 29 1F 00 19 [18:34:31]Write to MH i2c: 01 00 00 2A 1F 49 [18:34:31]Write i2c OK [18:34:31]MH_I2C_Read... [18:34:31]OFD Sender: No OFD packet to send [18:34:32]*** Cut start [18:34:32]*** Purtial cut [18:34:32]*** CUTSNS_PIN = 0 [18:34:32]*** Stage 1: CUTSNS_PIN = 1 [18:34:34]Read from MH i2c: 01 [18:34:34]MH_I2C_Read... [18:34:34]*** Stop cut motor [18:34:34]*** Cut end [18:34:34]Read from MH i2c: 01 07 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: 01 07 00 2A 1F 00 00 00 00 00 FF 0F 5E [18:34:34]process_action close_receipt done [18:34:34]requested_data is exist [18:34:34]produce_requested_data [18:34:34]requested_item fm.sn is exist - process it [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 11 00 00 [18:34:34]Write to MH i2c: E2 08 00 2B 1F 80 11 00 00 00 00 00 00 C4 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 17 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 17 00 2B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 24 [18:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:34:34]wFMCommunicate OK [18:34:34]requested_item fd.num is exist - process it [18:34:34]SAM_PROTO_GetFieldsCounters [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 13 00 00 [18:34:34]Write to MH i2c: E2 08 00 2C 1F 80 13 00 00 00 00 00 00 C7 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 62 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 62 00 2C 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [18:34:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:34]wFMCommunicate OK [18:34:34]SAM_PROTO_GetFieldsCounters done [18:34:34]requested_item shift.num is exist - process it [18:34:34]requested_item shift.opened is exist - process it [18:34:34]req_shift_opened [18:34:34]FM_GetShiftState [18:34:34]SAM_PROTO_GetShiftState [18:34:34]wFMCommunicate request_size=4 [18:34:34]MH_SAM_APDU [18:34:34]CAPDU: 80 13 01 00 [18:34:34]Write to MH i2c: E2 08 00 2D 1F 80 13 01 00 00 00 00 00 C9 [18:34:34]Write i2c OK [18:34:34]MH_I2C_Read... [18:34:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:34]Read from MH i2c: E2 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0E 00 [18:34:34]MH_I2C_Read... [18:34:34]Read from MH i2c: E2 0E 00 2D 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C3 [18:34:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:34:34]wFMCommunicate OK [18:34:34]SAM_PROTO_GetShiftState done [18:34:34]FM_GetShiftState done [18:34:34]req_shift_opened done [18:34:34]requested_item shift.open_date is exist - process it [18:34:34]req_shift_open_date [18:34:34]req_shift_open_date done [18:34:34]produce_requested_data done [18:34:34]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162622,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:34:34]process_action_free close_receipt [18:34:34]json_value_free [18:34:34]json_value_free done [18:34:34]process_json_proto returns [18:34:34]Send response to host [18:34:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162622,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:34:34]free response buf [18:34:34]execute_script done [18:34:34]execute_script returns [18:34:34]free content buf [18:34:34]Sock 7.Close socket [18:34:34]Sock 7.Thread stoped [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:16]accept exits with 9 [18:35:16]New connection [18:35:16]New thread 3067366756 created [18:35:16]Thread 3067510116 joined [18:35:16]Waiting for new connection... [18:35:16] Sock 9.Parse request [18:35:16]Sock 9.Check first char [18:35:16]Sock 9.First char is OK [18:35:16]request: POST /json_proto HTTP/1.0 [18:35:16]Method: POST [18:35:16]URL: /json_proto [18:35:16]Method is POST - this is cgi request [18:35:16]url: /json_proto [18:35:16]query_string will be loaded in cgi processing [18:35:16]execute_cgi json_proto POST (null) [18:35:16]execute_cgi path=json_proto method=POST [18:35:16]POST find Content-Length [18:35:16]Host: 172.17.39.67:8080 [18:35:16]Content-Length: 684 [18:35:16]Content-Type: application/json [18:35:16] [18:35:16]POST finish read [18:35:16]Found Content-Length = 684 [18:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.060, "sum" : 730.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:16]execute_script... [18:35: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)1319191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.060, "sum" : 730.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:16]POST & json_proto [18:35:16]process_json_proto [18:35:16]json parsed OK: [18:35:16]protocol is kg_v1.0 [18:35:16]action value=close_receipt [18:35:16]process_action close_receipt [18:35:16]cmd_close_receipt [18:35:16]MH_GetDate [18:35:16]Write to MH i2c: F0 00 00 2E 1F 3C [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: F0 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: F0 09 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: F0 09 00 2E 1F 00 E5 C8 92 66 86 7C 92 66 E4 [18:35:16]GetLastDocTimeStamp 1720895670 [18:35:16]current date 1720895717 [18:35:16]FM_GetShiftState [18:35:16]SAM_PROTO_GetShiftState [18:35:16]wFMCommunicate request_size=4 [18:35:16]MH_SAM_APDU [18:35:16]CAPDU: 80 13 01 00 [18:35:16]Write to MH i2c: E2 08 00 2F 1F 80 13 01 00 00 00 00 00 CB [18:35:16]Write i2c OK [18:35:16]MH_I2C_Read... [18:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:16]Read from MH i2c: E2 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 0E 00 [18:35:16]MH_I2C_Read... [18:35:16]Read from MH i2c: E2 0E 00 2F 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C5 [18:35:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:35:16]wFMCommunicate OK [18:35:16]SAM_PROTO_GetShiftState done [18:35:16]FM_GetShiftState done [18:35:16]opened in 1720828979 [18:35:16]opened+sec_in_day 1720915379 [18:35:16]quantity*price = 73035 [18:35:16]sum+1 = 73037 [18:35:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.56 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 291 13.07.2024 18:35 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162623 ФПД: 117333361770364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183517&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162623&fm=117333361770364&tin=02508201610067®Number=0000000000090858&sum=73000 [18:35:17]StoreToDocumentArchive [18:35:17]shift 462 fd 162623 [18:35:17]save to /storage/0462/doc_00162623 [18:35:17]save last doc name /storage/0462/doc_00162623 to /storage/kkm_last_doc_name [18:35:17]save OK [18:35:17]Clear old archive folders... [18:35:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:35:17]tlvbuf is B6FDD460 [18:35:17]SAM_PROTO_ClearQueue [18:35:17]wFMCommunicate request_size=4 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 09 00 00 [18:35:17]Write to MH i2c: E2 08 00 3C 1F 80 09 00 00 00 00 00 00 CD [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:17]Read from MH i2c: E2 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 03 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 03 00 3C 1F 00 90 00 CF [18:35:17]RAPDU: 90 00 [18:35:17]wFMCommunicate OK [18:35:17]SAM_PROTO_ClearQueue done [18:35:17]KKMCreateOFDPacket [18:35:17]OFDProtocolAddRootSTLVToBuf [18:35:17]FM_MakeSignedData [18:35:17]FM_MakeSignedData [18:35:17]SAM_PROTO_SignData [18:35:17]wFMCommunicate request_size=4 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 0D 01 02 [18:35:17]Write to MH i2c: E2 08 00 3D 1F 80 0D 01 02 00 00 00 00 D5 [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:17]Read from MH i2c: E2 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 03 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 03 00 3D 1F 00 90 00 D0 [18:35:17]RAPDU: 90 00 [18:35:17]wFMCommunicate OK [18:35:17]wFMCommunicate request_size=255 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E5 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7B 02 00 35 04 06 00 [18:35:17]Write to MH i2c: E2 02 01 3E 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E5 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7B 02 00 35 04 06 00 00 00 53 [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:17]Read from MH i2c: E2 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 03 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 03 00 3E 1F 00 90 00 D1 [18:35:17]RAPDU: 90 00 [18:35:17]wFMCommunicate OK [18:35:17]wFMCommunicate request_size=11 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 0D 02 02 06 6A B6 CD 59 3F 7C [18:35:17]Write to MH i2c: E2 0E 00 3F 1F 80 0D 02 02 06 00 6A B6 CD 59 3F 7C 00 00 E5 [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:17]Read from MH i2c: E2 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 03 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 03 00 3F 1F 00 90 00 D2 [18:35:17]RAPDU: 90 00 [18:35:17]wFMCommunicate OK [18:35:17]wFMCommunicate request_size=4 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 0D 03 02 [18:35:17]Write to MH i2c: E2 08 00 40 1F 80 0D 03 02 00 00 00 00 DA [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:17]Read from MH i2c: E2 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 0B 00 [18:35:17]MH_I2C_Read... [18:35:17]Read from MH i2c: E2 0B 00 40 1F 00 84 28 3A 05 56 B6 45 8D 90 00 A4 [18:35:17]RAPDU: 84 28 3A 05 56 B6 45 8D 90 00 [18:35:17]wFMCommunicate OK [18:35:17]SAM_PROTO_SignData done [18:35:17]FM_MakeSignedData done [18:35:17]CreateOFDProtocolMessage [18:35:17]wFMCommunicate request_size=4 [18:35:17]MH_SAM_APDU [18:35:17]CAPDU: 80 11 00 00 [18:35:17]Write to MH i2c: E2 08 00 41 1F 80 11 00 00 00 00 00 00 DA [18:35:17]Write i2c OK [18:35:17]MH_I2C_Read... [18:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:18]Read from MH i2c: E2 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 17 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: E2 17 00 41 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3A [18:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:35:18]wFMCommunicate OK [18:35:18]CreateOFDProtocolMessage done [18:35:18]OFDSenderStorePacket 162623 [18:35:18]StoreOFDPacket docnum=162623 [18:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2F 4E 08 01 D3 C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E5 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7B 02 00 35 04 06 00 6A B6 CD 59 3F 7C 84 28 3A 05 56 B6 45 8D [18:35:18]CheckFolder [18:35:18]dirname=/storage/ofd_packets [18:35:18]CheckFolder done [18:35:18]ProducePacketName [18:35:18]name=ofd_packets/00162623 [18:35:18]NVStorageSaveData ofd_packets/00162623 [18:35:18]File name is /storage/ofd_packets/00162623 [18:35:18]Write 302 bytes [18:35:18]NVStorageSaveData done [18:35:18]OFDSenderStorePacket done [18:35:18]KKMCreateOFDPacket done [18:35:18]NVStorageSaveData kkm_last_timestamp [18:35:18]File name is /storage/kkm_last_timestamp [18:35:18]Write 4 bytes [18:35:18]NVStorageSaveData done [18:35:18]ExternCall_PrintAddStr [18:35:18]wPrintStart [18:35:18]Write to MH i2c: 01 00 00 42 1F 61 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 07 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 07 00 42 1F 00 00 00 00 00 FF 0F 76 [18:35:18]RasterBufferAndPrint [18:35:18]line Счет N : (1)1319191 [18:35:18]line ИНН: 02508201610067 [18:35:18]line Контрольно-Кассовый Чек [18:35:18]line ПРОДАЖА [18:35:18]line ТРК (МРК, ГНК) : 41 [18:35:18]line Товар: 2710194210 [18:35:18]line ДТ(л)-К-5 [18:35:18]line 10.060 * 72.60 [18:35:18]line = 730.36 [18:35:18]line НДС 12% НСП 1% [18:35:18]line > о реализуемом товаре [18:35:18]line ОКРУГЛЕНИЕ: -0.36 [18:35:18]line ИТОГО: 730.00 [18:35:18]line Внесено: 730.00 [18:35:18]line СДАЧА: 0.00 [18:35:18]line НСП 1% : 6.46 [18:35:18]line НДС 12% : 77.56 [18:35:18]line Наличными: 730.00 [18:35:18]line Безнал.: 0.00 [18:35:18]line Место: АЗС № 140 "Партнер Нефть" [18:35:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:35:18]line СНО: Общий режим [18:35:18]line Чек 291 13.07.2024 18:35 [18:35:18]line Смена: 462 ФФД: 1.0 [18:35:18]line ЗНМ: 0300000129 [18:35:18]line РНМ: 0000000000090858 [18:35:18]line Версия ККМ: 001 [18:35:18]line ФМ: 0000000000874899 [18:35:18]line ФД: 162623 [18:35:18]line ФПД: 117333361770364 [18:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183517&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162623&fm=117333361770364&tin=02508201610067®Number=0000000000090858&sum=73000 [18:35:18]OFD Sender: Processing packet 162623 [packets to send 106, broken 105] [18:35:18]ProducePacketName [18:35:18]name=ofd_packets/00162623 [18:35:18]OFD Sender: To server: pG, [18:35:18]CommunicateWithHost lk.salyk.kg:30040 [18:35:18]ConnectInit lk.salyk.kg [18:35:18]written 0, free lines is 4095 [18:35:18]Connected sock=10 [18:35:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2F 4E 08 01 D3 C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 E5 C8 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7B 02 00 35 04 06 00 6A B6 CD 59 3F 7C 84 28 3A 05 56 B6 45 8D [18:35:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5B 3E 47 00 CB D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 3F 7B 02 00 F4 03 04 00 F4 74 92 66 B6 04 01 00 00 B9 08 FE BE EB CC AB 38 [18:35:18]CommunicateWithHost err = 0 [18:35:18]CheckOFDResponse [18:35:18]1017 (14) - 77093643461234 [18:35:18]1041 (16) - 0000000000874899 [18:35:18]1040 (4) - 162623 [18:35:18]1012 (4) - 13.07.2024 12:37 [18:35:18]1206 (1) - 0 [18:35:18]OFD Sender: Remove packet 162623 [18:35:18]ProducePacketName [18:35:18]name=ofd_packets/00162623 [18:35:18]NVStorageDeleteData [18:35:18]Write to MH i2c: 01 00 00 6D 1F 8C [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 07 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: 01 07 00 6D 1F 00 00 00 00 00 E2 0C 81 [18:35:18]RasterBufferAndPrint [18:35:18]line [18:35:18]line [18:35:18]line [18:35:18]line [18:35:18]line [18:35:18]written 0, free lines is 3304 [18:35:18]MH_Cut [18:35:18]Write to MH i2c: D1 01 00 74 1F 01 65 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: D1 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: D1 01 00 [18:35:18]MH_I2C_Read... [18:35:18]Read from MH i2c: D1 01 00 74 1F 00 64 [18:35:18]Write to MH i2c: 01 00 00 75 1F 94 [18:35:18]Write i2c OK [18:35:18]MH_I2C_Read... [18:35:19]OFD Sender: No OFD packet to send [18:35:19]*** Cut start [18:35:19]*** Purtial cut [18:35:19]*** Stage 1: CUTSNS_PIN = 1 [18:35:19]Read from MH i2c: 01 [18:35:19]MH_I2C_Read... [18:35:19]*** Stop cut motor [18:35:19]*** Cut end [18:35:19]Read from MH i2c: 01 07 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: 01 07 00 75 1F 00 00 00 00 00 FF 0F A9 [18:35:19]process_action close_receipt done [18:35:19]requested_data is exist [18:35:19]produce_requested_data [18:35:19]requested_item fm.sn is exist - process it [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 11 00 00 [18:35:19]Write to MH i2c: E2 08 00 76 1F 80 11 00 00 00 00 00 00 0F [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:19]Read from MH i2c: E2 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 17 00 [18:35:19]MH_I2C_Read... [18:35:19]Read from MH i2c: E2 17 00 76 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6F [18:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:35:19]wFMCommunicate OK [18:35:19]requested_item fd.num is exist - process it [18:35:19]SAM_PROTO_GetFieldsCounters [18:35:19]wFMCommunicate request_size=4 [18:35:19]MH_SAM_APDU [18:35:19]CAPDU: 80 13 00 00 [18:35:19]Write to MH i2c: E2 08 00 77 1F 80 13 00 00 00 00 00 00 12 [18:35:19]Write i2c OK [18:35:19]MH_I2C_Read... [18:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:20]Read from MH i2c: E2 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: E2 62 00 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: E2 62 00 77 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [18:35:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 3F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:20]wFMCommunicate OK [18:35:20]SAM_PROTO_GetFieldsCounters done [18:35:20]requested_item shift.num is exist - process it [18:35:20]requested_item shift.opened is exist - process it [18:35:20]req_shift_opened [18:35:20]FM_GetShiftState [18:35:20]SAM_PROTO_GetShiftState [18:35:20]wFMCommunicate request_size=4 [18:35:20]MH_SAM_APDU [18:35:20]CAPDU: 80 13 01 00 [18:35:20]Write to MH i2c: E2 08 00 78 1F 80 13 01 00 00 00 00 00 14 [18:35:20]Write i2c OK [18:35:20]MH_I2C_Read... [18:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:20]Read from MH i2c: E2 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: E2 0E 00 [18:35:20]MH_I2C_Read... [18:35:20]Read from MH i2c: E2 0E 00 78 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 0E [18:35:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:35:20]wFMCommunicate OK [18:35:20]SAM_PROTO_GetShiftState done [18:35:20]FM_GetShiftState done [18:35:20]req_shift_opened done [18:35:20]requested_item shift.open_date is exist - process it [18:35:20]req_shift_open_date [18:35:20]req_shift_open_date done [18:35:20]produce_requested_data done [18:35:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162623,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:35:20]process_action_free close_receipt [18:35:20]json_value_free [18:35:20]json_value_free done [18:35:20]process_json_proto returns [18:35:20]Send response to host [18:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162623,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:35:20]free response buf [18:35:20]execute_script done [18:35:20]execute_script returns [18:35:20]free content buf [18:35:20]Sock 9.Close socket [18:35:20]Sock 9.Thread stoped [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:46]accept exits with 7 [18:36:46]New connection [18:36:46]New thread 3067510116 created [18:36:46]Thread 3067366756 joined [18:36:46]Waiting for new connection... [18:36:46] Sock 7.Parse request [18:36:46]Sock 7.Check first char [18:36:46]Sock 7.First char is OK [18:36:46]request: POST /json_proto HTTP/1.0 [18:36:46]Method: POST [18:36:46]URL: /json_proto [18:36:46]Method is POST - this is cgi request [18:36:46]url: /json_proto [18:36:46]query_string will be loaded in cgi processing [18:36:46]execute_cgi json_proto POST (null) [18:36:46]execute_cgi path=json_proto method=POST [18:36:46]POST find Content-Length [18:36:46]Host: 172.17.39.67:8080 [18:36:46]Content-Length: 683 [18:36:46]Content-Type: application/json [18:36:46] [18:36:46]POST finish read [18:36:46]Found Content-Length = 683 [18:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 4.690, "sum" : 340.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:46]execute_script... [18:36: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)1319192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 4.690, "sum" : 340.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:46]POST & json_proto [18:36:46]process_json_proto [18:36:46]json parsed OK: [18:36:46]protocol is kg_v1.0 [18:36:46]action value=close_receipt [18:36:46]process_action close_receipt [18:36:46]cmd_close_receipt [18:36:46]MH_GetDate [18:36:46]Write to MH i2c: F0 00 00 79 1F 87 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 09 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: F0 09 00 79 1F 00 3F C9 92 66 86 7C 92 66 8A [18:36:46]GetLastDocTimeStamp 1720895717 [18:36:46]current date 1720895807 [18:36:46]FM_GetShiftState [18:36:46]SAM_PROTO_GetShiftState [18:36:46]wFMCommunicate request_size=4 [18:36:46]MH_SAM_APDU [18:36:46]CAPDU: 80 13 01 00 [18:36:46]Write to MH i2c: E2 08 00 7A 1F 80 13 01 00 00 00 00 00 16 [18:36:46]Write i2c OK [18:36:46]MH_I2C_Read... [18:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:46]Read from MH i2c: E2 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0E 00 [18:36:46]MH_I2C_Read... [18:36:46]Read from MH i2c: E2 0E 00 7A 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 10 [18:36:46]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:36:46]wFMCommunicate OK [18:36:46]SAM_PROTO_GetShiftState done [18:36:46]FM_GetShiftState done [18:36:46]opened in 1720828979 [18:36:46]opened+sec_in_day 1720915379 [18:36:46]quantity*price = 34049 [18:36:46]sum+1 = 34050 [18:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 292 13.07.2024 18:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162624 ФПД: 127458388041192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183647&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162624&fm=127458388041192&tin=02508201610067®Number=0000000000090858&sum=34000 [18:36:47]StoreToDocumentArchive [18:36:47]shift 462 fd 162624 [18:36:47]save to /storage/0462/doc_00162624 [18:36:47]save last doc name /storage/0462/doc_00162624 to /storage/kkm_last_doc_name [18:36:47]save OK [18:36:47]Clear old archive folders... [18:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:36:47]tlvbuf is 0060C410 [18:36:47]SAM_PROTO_ClearQueue [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 09 00 00 [18:36:47]Write to MH i2c: E2 08 00 87 1F 80 09 00 00 00 00 00 00 18 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 87 1F 00 90 00 1A [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]SAM_PROTO_ClearQueue done [18:36:47]KKMCreateOFDPacket [18:36:47]OFDProtocolAddRootSTLVToBuf [18:36:47]FM_MakeSignedData [18:36:47]FM_MakeSignedData [18:36:47]SAM_PROTO_SignData [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 01 02 [18:36:47]Write to MH i2c: E2 08 00 88 1F 80 0D 01 02 00 00 00 00 20 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 88 1F 00 90 00 1B [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=255 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 52 12 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 01 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3F C9 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7B 02 00 35 04 06 00 [18:36:47]Write to MH i2c: E2 02 01 89 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 52 12 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 01 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3F C9 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7B 02 00 35 04 06 00 00 00 8E [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 89 1F 00 90 00 1C [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=11 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 02 02 06 73 EC 37 F1 5D E8 [18:36:47]Write to MH i2c: E2 0E 00 8A 1F 80 0D 02 02 06 00 73 EC 37 F1 5D E8 00 00 FB [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 03 00 8A 1F 00 90 00 1D [18:36:47]RAPDU: 90 00 [18:36:47]wFMCommunicate OK [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 0D 03 02 [18:36:47]Write to MH i2c: E2 08 00 8B 1F 80 0D 03 02 00 00 00 00 25 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 0B 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 0B 00 8B 1F 00 6F 93 D3 FB 62 D4 B6 14 90 00 F6 [18:36:47]RAPDU: 6F 93 D3 FB 62 D4 B6 14 90 00 [18:36:47]wFMCommunicate OK [18:36:47]SAM_PROTO_SignData done [18:36:47]FM_MakeSignedData done [18:36:47]CreateOFDProtocolMessage [18:36:47]wFMCommunicate request_size=4 [18:36:47]MH_SAM_APDU [18:36:47]CAPDU: 80 11 00 00 [18:36:47]Write to MH i2c: E2 08 00 8C 1F 80 11 00 00 00 00 00 00 25 [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:47]Read from MH i2c: E2 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 17 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: E2 17 00 8C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 85 [18:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:36:47]wFMCommunicate OK [18:36:47]CreateOFDProtocolMessage done [18:36:47]OFDSenderStorePacket 162624 [18:36:47]StoreOFDPacket docnum=162624 [18:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5D B4 08 01 07 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 52 12 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 01 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3F C9 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7B 02 00 35 04 06 00 73 EC 37 F1 5D E8 6F 93 D3 FB 62 D4 B6 14 [18:36:47]CheckFolder [18:36:47]dirname=/storage/ofd_packets [18:36:47]CheckFolder done [18:36:47]ProducePacketName [18:36:47]name=ofd_packets/00162624 [18:36:47]NVStorageSaveData ofd_packets/00162624 [18:36:47]File name is /storage/ofd_packets/00162624 [18:36:47]Write 302 bytes [18:36:47]NVStorageSaveData done [18:36:47]OFDSenderStorePacket done [18:36:47]KKMCreateOFDPacket done [18:36:47]NVStorageSaveData kkm_last_timestamp [18:36:47]File name is /storage/kkm_last_timestamp [18:36:47]Write 4 bytes [18:36:47]NVStorageSaveData done [18:36:47]ExternCall_PrintAddStr [18:36:47]wPrintStart [18:36:47]Write to MH i2c: 01 00 00 8D 1F AC [18:36:47]Write i2c OK [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 [18:36:47]MH_I2C_Read... [18:36:47]Read from MH i2c: 01 07 00 8D 1F 00 00 00 00 00 FF 0F C1 [18:36:47]RasterBufferAndPrint [18:36:47]line Счет N : (1)1319192 [18:36:47]line ИНН: 02508201610067 [18:36:47]line Контрольно-Кассовый Чек [18:36:47]line ПРОДАЖА [18:36:47]line ТРК (МРК, ГНК) : 31 [18:36:47]line Товар: 2710194210 [18:36:47]line ДТ(л)-К-5 [18:36:47]line 4.690 * 72.60 [18:36:47]line = 340.49 [18:36:47]line НДС 12% НСП 1% [18:36:47]line > о реализуемом товаре [18:36:47]line ОКРУГЛЕНИЕ: -0.49 [18:36:47]line ИТОГО: 340.00 [18:36:47]line Внесено: 340.00 [18:36:47]line СДАЧА: 0.00 [18:36:47]line НСП 1% : 3.01 [18:36:47]line НДС 12% : 36.16 [18:36:47]line Наличными: 340.00 [18:36:47]line Безнал.: 0.00 [18:36:47]line Место: АЗС № 140 "Партнер Нефть" [18:36:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:36:47]line СНО: Общий режим [18:36:47]line Чек 292 13.07.2024 18:36 [18:36:47]line Смена: 462 ФФД: 1.0 [18:36:47]line ЗНМ: 0300000129 [18:36:47]line РНМ: 0000000000090858 [18:36:47]line Версия ККМ: 001 [18:36:47]line ФМ: 0000000000874899 [18:36:47]line ФД: 162624 [18:36:47]line ФПД: 127458388041192 [18:36:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T183647&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162624&fm=127458388041192&tin=02508201610067®Number=0000000000090858&sum=34000 [18:36:48]OFD Sender: Processing packet 162624 [packets to send 106, broken 105] [18:36:48]ProducePacketName [18:36:48]name=ofd_packets/00162624 [18:36:48]OFD Sender: To server: pG, [18:36:48]CommunicateWithHost lk.salyk.kg:30040 [18:36:48]ConnectInit lk.salyk.kg [18:36:48]written 0, free lines is 4095 [18:36:48]Connected sock=10 [18:36:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5D B4 08 01 07 E2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 52 12 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 01 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 3F C9 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7B 02 00 35 04 06 00 73 EC 37 F1 5D E8 6F 93 D3 FB 62 D4 B6 14 [18:36:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 46 64 47 00 AA 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 40 7B 02 00 F4 03 04 00 4E 75 92 66 B6 04 01 00 00 96 98 6E C8 56 79 BA 25 [18:36:48]CommunicateWithHost err = 0 [18:36:48]CheckOFDResponse [18:36:48]1017 (14) - 77093643461234 [18:36:48]1041 (16) - 0000000000874899 [18:36:48]1040 (4) - 162624 [18:36:48]1012 (4) - 13.07.2024 12:38 [18:36:48]1206 (1) - 0 [18:36:48]OFD Sender: Remove packet 162624 [18:36:48]ProducePacketName [18:36:48]name=ofd_packets/00162624 [18:36:48]NVStorageDeleteData [18:36:48]Write to MH i2c: 01 00 00 B8 1F D7 [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 07 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: 01 07 00 B8 1F 00 00 00 00 00 E7 0C D1 [18:36:48]RasterBufferAndPrint [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]line [18:36:48]written 0, free lines is 3309 [18:36:48]MH_Cut [18:36:48]Write to MH i2c: D1 01 00 BF 1F 01 B0 [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 01 00 [18:36:48]MH_I2C_Read... [18:36:48]Read from MH i2c: D1 01 00 BF 1F 00 AF [18:36:48]Write to MH i2c: 01 00 00 C0 1F DF [18:36:48]Write i2c OK [18:36:48]MH_I2C_Read... [18:36:49]OFD Sender: No OFD packet to send [18:36:49]*** Cut start [18:36:49]*** Purtial cut [18:36:49]*** CUTSNS_PIN = 0 [18:36:49]*** Stage 1: CUTSNS_PIN = 1 [18:36:51]Read from MH i2c: 01 [18:36:51]MH_I2C_Read... [18:36:51]*** Stop cut motor [18:36:51]*** Cut end [18:36:51]Read from MH i2c: 01 07 00 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: 01 07 00 C0 1F 00 00 00 00 00 FF 0F F4 [18:36:51]process_action close_receipt done [18:36:51]requested_data is exist [18:36:51]produce_requested_data [18:36:51]requested_item fm.sn is exist - process it [18:36:51]wFMCommunicate request_size=4 [18:36:51]MH_SAM_APDU [18:36:51]CAPDU: 80 11 00 00 [18:36:51]Write to MH i2c: E2 08 00 C1 1F 80 11 00 00 00 00 00 00 5A [18:36:51]Write i2c OK [18:36:51]MH_I2C_Read... [18:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:51]Read from MH i2c: E2 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: E2 17 00 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: E2 17 00 C1 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BA [18:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:36:51]wFMCommunicate OK [18:36:51]requested_item fd.num is exist - process it [18:36:51]SAM_PROTO_GetFieldsCounters [18:36:51]wFMCommunicate request_size=4 [18:36:51]MH_SAM_APDU [18:36:51]CAPDU: 80 13 00 00 [18:36:51]Write to MH i2c: E2 08 00 C2 1F 80 13 00 00 00 00 00 00 5D [18:36:51]Write i2c OK [18:36:51]MH_I2C_Read... [18:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:51]Read from MH i2c: E2 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: E2 62 00 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: E2 62 00 C2 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 40 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [18:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 40 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:51]wFMCommunicate OK [18:36:51]SAM_PROTO_GetFieldsCounters done [18:36:51]requested_item shift.num is exist - process it [18:36:51]requested_item shift.opened is exist - process it [18:36:51]req_shift_opened [18:36:51]FM_GetShiftState [18:36:51]SAM_PROTO_GetShiftState [18:36:51]wFMCommunicate request_size=4 [18:36:51]MH_SAM_APDU [18:36:51]CAPDU: 80 13 01 00 [18:36:51]Write to MH i2c: E2 08 00 C3 1F 80 13 01 00 00 00 00 00 5F [18:36:51]Write i2c OK [18:36:51]MH_I2C_Read... [18:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:51]Read from MH i2c: E2 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: E2 0E 00 [18:36:51]MH_I2C_Read... [18:36:51]Read from MH i2c: E2 0E 00 C3 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 59 [18:36:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:36:51]wFMCommunicate OK [18:36:51]SAM_PROTO_GetShiftState done [18:36:51]FM_GetShiftState done [18:36:51]req_shift_opened done [18:36:51]requested_item shift.open_date is exist - process it [18:36:51]req_shift_open_date [18:36:51]req_shift_open_date done [18:36:51]produce_requested_data done [18:36:51]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162624,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:36:51]process_action_free close_receipt [18:36:51]json_value_free [18:36:51]json_value_free done [18:36:51]process_json_proto returns [18:36:51]Send response to host [18:36:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162624,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:36:51]free response buf [18:36:51]execute_script done [18:36:51]execute_script returns [18:36:51]free content buf [18:36:51]Sock 7.Close socket [18:36:51]Sock 7.Thread stoped [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:10]accept exits with 9 [18:41:10]New connection [18:41:10]New thread 3067366756 created [18:41:10]Thread 3067510116 joined [18:41:10]Waiting for new connection... [18:41:10] Sock 9.Parse request [18:41:10]Sock 9.Check first char [18:41:10]Sock 9.First char is OK [18:41:10]request: POST /json_proto HTTP/1.0 [18:41:10]Method: POST [18:41:10]URL: /json_proto [18:41:10]Method is POST - this is cgi request [18:41:10]url: /json_proto [18:41:10]query_string will be loaded in cgi processing [18:41:10]execute_cgi json_proto POST (null) [18:41:10]execute_cgi path=json_proto method=POST [18:41:10]POST find Content-Length [18:41:10]Host: 172.17.39.67:8080 [18:41:10]Content-Length: 683 [18:41:10]Content-Type: application/json [18:41:10] [18:41:10]POST finish read [18:41:10]Found Content-Length = 683 [18:41:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [18:41:10]execute_script... [18:41:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 20.170, "sum" : 1500.65, "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" ] } } [18:41:10]POST & json_proto [18:41:10]process_json_proto [18:41:10]json parsed OK: [18:41:10]protocol is kg_v1.0 [18:41:10]action value=close_receipt [18:41:10]process_action close_receipt [18:41:10]cmd_close_receipt [18:41:10]MH_GetDate [18:41:10]Write to MH i2c: F0 00 00 C4 1F D2 [18:41:10]Write i2c OK [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: F0 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: F0 09 00 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: F0 09 00 C4 1F 00 47 CA 92 66 86 7C 92 66 DE [18:41:10]GetLastDocTimeStamp 1720895807 [18:41:10]current date 1720896071 [18:41:10]FM_GetShiftState [18:41:10]SAM_PROTO_GetShiftState [18:41:10]wFMCommunicate request_size=4 [18:41:10]MH_SAM_APDU [18:41:10]CAPDU: 80 13 01 00 [18:41:10]Write to MH i2c: E2 08 00 C5 1F 80 13 01 00 00 00 00 00 61 [18:41:10]Write i2c OK [18:41:10]MH_I2C_Read... [18:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:10]Read from MH i2c: E2 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: E2 0E 00 [18:41:10]MH_I2C_Read... [18:41:10]Read from MH i2c: E2 0E 00 C5 1F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5B [18:41:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:41:10]wFMCommunicate OK [18:41:10]SAM_PROTO_GetShiftState done [18:41:10]FM_GetShiftState done [18:41:10]opened in 1720828979 [18:41:10]opened+sec_in_day 1720915379 [18:41:10]quantity*price = 150064 [18:41:10]sum+1 = 150066 [18:41:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 293 13.07.2024 18:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162625 ФПД: 187250321656575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184111&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162625&fm=187250321656575&tin=02508201610067®Number=0000000000090858&sum=150000 [18:41:11]StoreToDocumentArchive [18:41:11]shift 462 fd 162625 [18:41:11]save to /storage/0462/doc_00162625 [18:41:11]save last doc name /storage/0462/doc_00162625 to /storage/kkm_last_doc_name [18:41:11]save OK [18:41:11]Clear old archive folders... [18:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:11]tlvbuf is 005F1F80 [18:41:11]SAM_PROTO_ClearQueue [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 09 00 00 [18:41:11]Write to MH i2c: E2 08 00 D2 1F 80 09 00 00 00 00 00 00 63 [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 D2 1F 00 90 00 65 [18:41:11]RAPDU: 90 00 [18:41:11]wFMCommunicate OK [18:41:11]SAM_PROTO_ClearQueue done [18:41:11]KKMCreateOFDPacket [18:41:11]OFDProtocolAddRootSTLVToBuf [18:41:11]FM_MakeSignedData [18:41:11]FM_MakeSignedData [18:41:11]SAM_PROTO_SignData [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 0D 01 02 [18:41:11]Write to MH i2c: E2 08 00 D3 1F 80 0D 01 02 00 00 00 00 6B [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 D3 1F 00 90 00 66 [18:41:11]RAPDU: 90 00 [18:41:11]wFMCommunicate OK [18:41:11]wFMCommunicate request_size=255 [18:41:11]MH_SAM_APDU [18:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 25 01 00 00 F4 03 04 00 47 CA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7B 02 00 35 04 06 00 AA [18:41:11]Write to MH i2c: E2 02 01 D4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 25 01 00 00 F4 03 04 00 47 CA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7B 02 00 35 04 06 00 AA 00 00 DC [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 D4 1F 00 90 00 67 [18:41:11]RAPDU: 90 00 [18:41:11]wFMCommunicate OK [18:41:11]wFMCommunicate request_size=10 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 0D 02 02 05 4D 9C E8 0A FF [18:41:11]Write to MH i2c: E2 0D 00 D5 1F 80 0D 02 02 05 00 4D 9C E8 0A FF 00 00 52 [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:12]Read from MH i2c: E2 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 03 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 03 00 D5 1F 00 90 00 68 [18:41:12]RAPDU: 90 00 [18:41:12]wFMCommunicate OK [18:41:12]wFMCommunicate request_size=4 [18:41:12]MH_SAM_APDU [18:41:12]CAPDU: 80 0D 03 02 [18:41:12]Write to MH i2c: E2 08 00 D6 1F 80 0D 03 02 00 00 00 00 70 [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:12]Read from MH i2c: E2 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 0B 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 0B 00 D6 1F 00 E5 DB 92 8F CE 78 E1 7A 90 00 F3 [18:41:12]RAPDU: E5 DB 92 8F CE 78 E1 7A 90 00 [18:41:12]wFMCommunicate OK [18:41:12]SAM_PROTO_SignData done [18:41:12]FM_MakeSignedData done [18:41:12]CreateOFDProtocolMessage [18:41:12]wFMCommunicate request_size=4 [18:41:12]MH_SAM_APDU [18:41:12]CAPDU: 80 11 00 00 [18:41:12]Write to MH i2c: E2 08 00 D7 1F 80 11 00 00 00 00 00 00 70 [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:12]Read from MH i2c: E2 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 17 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: E2 17 00 D7 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D0 [18:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:41:12]wFMCommunicate OK [18:41:12]CreateOFDProtocolMessage done [18:41:12]OFDSenderStorePacket 162625 [18:41:12]StoreOFDPacket docnum=162625 [18:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3D F8 07 01 97 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 25 01 00 00 F4 03 04 00 47 CA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7B 02 00 35 04 06 00 AA 4D 9C E8 0A FF E5 DB 92 8F CE 78 E1 7A [18:41:12]CheckFolder [18:41:12]dirname=/storage/ofd_packets [18:41:12]CheckFolder done [18:41:12]ProducePacketName [18:41:12]name=ofd_packets/00162625 [18:41:12]NVStorageSaveData ofd_packets/00162625 [18:41:12]File name is /storage/ofd_packets/00162625 [18:41:12]Write 301 bytes [18:41:12]NVStorageSaveData done [18:41:12]OFDSenderStorePacket done [18:41:12]KKMCreateOFDPacket done [18:41:12]NVStorageSaveData kkm_last_timestamp [18:41:12]File name is /storage/kkm_last_timestamp [18:41:12]Write 4 bytes [18:41:12]NVStorageSaveData done [18:41:12]ExternCall_PrintAddStr [18:41:12]wPrintStart [18:41:12]Write to MH i2c: 01 00 00 D8 1F F7 [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 07 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 07 00 D8 1F 00 00 00 00 00 FF 0F 0C [18:41:12]RasterBufferAndPrint [18:41:12]line Счет N : (1)1319193 [18:41:12]line ИНН: 02508201610067 [18:41:12]line Контрольно-Кассовый Чек [18:41:12]line ПРОДАЖА [18:41:12]line ТРК (МРК, ГНК) : 44 [18:41:12]line Товар: 2710124500 [18:41:12]line Аи-95-К-5 [18:41:12]line 20.170 * 74.40 [18:41:12]line = 1500.65 [18:41:12]line НДС 12% НСП 1% [18:41:12]line > о реализуемом товаре [18:41:12]line ОКРУГЛЕНИЕ: -0.65 [18:41:12]line ИТОГО: 1500.00 [18:41:12]line Внесено: 1500.00 [18:41:12]line СДАЧА: 0.00 [18:41:12]line НСП 1% : 13.28 [18:41:12]line НДС 12% : 159.36 [18:41:12]line Наличными: 1500.00 [18:41:12]line Безнал.: 0.00 [18:41:12]line Место: АЗС № 140 "Партнер Нефть" [18:41:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:41:12]line СНО: Общий режим [18:41:12]line Чек 293 13.07.2024 18:41 [18:41:12]line Смена: 462 ФФД: 1.0 [18:41:12]line ЗНМ: 0300000129 [18:41:12]line РНМ: 0000000000090858 [18:41:12]line Версия ККМ: 001 [18:41:12]line ФМ: 0000000000874899 [18:41:12]line ФД: 162625 [18:41:12]line ФПД: 187250321656575 [18:41:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184111&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162625&fm=187250321656575&tin=02508201610067®Number=0000000000090858&sum=150000 [18:41:12]OFD Sender: Processing packet 162625 [packets to send 106, broken 105] [18:41:12]ProducePacketName [18:41:12]name=ofd_packets/00162625 [18:41:12]OFD Sender: To server: pG, [18:41:12]CommunicateWithHost lk.salyk.kg:30040 [18:41:12]ConnectInit lk.salyk.kg [18:41:12]written 0, free lines is 4095 [18:41:12]Connected sock=10 [18:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 3D F8 07 01 97 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 CA 4E 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 31 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 25 01 00 00 F4 03 04 00 47 CA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7B 02 00 35 04 06 00 AA 4D 9C E8 0A FF E5 DB 92 8F CE 78 E1 7A [18:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8F 73 47 00 33 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 41 7B 02 00 F4 03 04 00 56 76 92 66 B6 04 01 00 00 E6 36 6B 84 AE 00 B2 EF [18:41:12]CommunicateWithHost err = 0 [18:41:12]CheckOFDResponse [18:41:12]1017 (14) - 77093643461234 [18:41:12]1041 (16) - 0000000000874899 [18:41:12]1040 (4) - 162625 [18:41:12]1012 (4) - 13.07.2024 12:43 [18:41:12]1206 (1) - 0 [18:41:12]OFD Sender: Remove packet 162625 [18:41:12]ProducePacketName [18:41:12]name=ofd_packets/00162625 [18:41:12]NVStorageDeleteData [18:41:12]Write to MH i2c: 01 00 00 03 20 23 [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 07 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 07 00 03 20 00 00 00 00 00 FE 0C 34 [18:41:12]RasterBufferAndPrint [18:41:12]line [18:41:12]line [18:41:12]line [18:41:12]line [18:41:12]line [18:41:12]written 0, free lines is 3332 [18:41:12]MH_Cut [18:41:12]Write to MH i2c: D1 01 00 0A 20 01 FC [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: D1 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: D1 01 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: D1 01 00 0A 20 00 FB [18:41:12]Write to MH i2c: 01 00 00 0B 20 2B [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:13]OFD Sender: No OFD packet to send [18:41:13]*** Cut start [18:41:13]*** Purtial cut [18:41:13]*** Stage 1: CUTSNS_PIN = 1 [18:41:13]Read from MH i2c: 01 [18:41:13]MH_I2C_Read... [18:41:13]*** Stop cut motor [18:41:13]*** Cut end [18:41:13]Read from MH i2c: 01 07 00 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: 01 07 00 0B 20 00 00 00 00 00 FF 0F 40 [18:41:13]process_action close_receipt done [18:41:13]requested_data is exist [18:41:13]produce_requested_data [18:41:13]requested_item fm.sn is exist - process it [18:41:13]wFMCommunicate request_size=4 [18:41:13]MH_SAM_APDU [18:41:13]CAPDU: 80 11 00 00 [18:41:13]Write to MH i2c: E2 08 00 0C 20 80 11 00 00 00 00 00 00 A6 [18:41:13]Write i2c OK [18:41:13]MH_I2C_Read... [18:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:13]Read from MH i2c: E2 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 17 00 [18:41:13]MH_I2C_Read... [18:41:13]Read from MH i2c: E2 17 00 0C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 06 [18:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:41:13]wFMCommunicate OK [18:41:13]requested_item fd.num is exist - process it [18:41:13]SAM_PROTO_GetFieldsCounters [18:41:13]wFMCommunicate request_size=4 [18:41:13]MH_SAM_APDU [18:41:13]CAPDU: 80 13 00 00 [18:41:13]Write to MH i2c: E2 08 00 0D 20 80 13 00 00 00 00 00 00 A9 [18:41:13]Write i2c OK [18:41:13]MH_I2C_Read... [18:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:14]Read from MH i2c: E2 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 62 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 62 00 0D 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 41 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [18:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 41 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:14]wFMCommunicate OK [18:41:14]SAM_PROTO_GetFieldsCounters done [18:41:14]requested_item shift.num is exist - process it [18:41:14]requested_item shift.opened is exist - process it [18:41:14]req_shift_opened [18:41:14]FM_GetShiftState [18:41:14]SAM_PROTO_GetShiftState [18:41:14]wFMCommunicate request_size=4 [18:41:14]MH_SAM_APDU [18:41:14]CAPDU: 80 13 01 00 [18:41:14]Write to MH i2c: E2 08 00 0E 20 80 13 01 00 00 00 00 00 AB [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:14]Read from MH i2c: E2 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 0E 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 0E 00 0E 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A5 [18:41:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:41:14]wFMCommunicate OK [18:41:14]SAM_PROTO_GetShiftState done [18:41:14]FM_GetShiftState done [18:41:14]req_shift_opened done [18:41:14]requested_item shift.open_date is exist - process it [18:41:14]req_shift_open_date [18:41:14]req_shift_open_date done [18:41:14]produce_requested_data done [18:41:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162625,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:41:14]process_action_free close_receipt [18:41:14]json_value_free [18:41:14]json_value_free done [18:41:14]process_json_proto returns [18:41:14]Send response to host [18:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162625,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:41:14]free response buf [18:41:14]execute_script done [18:41:14]execute_script returns [18:41:14]free content buf [18:41:14]Sock 9.Close socket [18:41:14]Sock 9.Thread stoped [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:00]accept exits with 7 [18:42:00]New connection [18:42:00]New thread 3067510116 created [18:42:00]Thread 3067366756 joined [18:42:00]Waiting for new connection... [18:42:00] Sock 7.Parse request [18:42:00]Sock 7.Check first char [18:42:00]Sock 7.First char is OK [18:42:00]request: POST /json_proto HTTP/1.0 [18:42:00]Method: POST [18:42:00]URL: /json_proto [18:42:00]Method is POST - this is cgi request [18:42:00]url: /json_proto [18:42:00]query_string will be loaded in cgi processing [18:42:00]execute_cgi json_proto POST (null) [18:42:00]execute_cgi path=json_proto method=POST [18:42:00]POST find Content-Length [18:42:00]Host: 172.17.39.67:8080 [18:42:00]Content-Length: 679 [18:42:00]Content-Type: application/json [18:42:00] [18:42:00]POST finish read [18:42:00]Found Content-Length = 679 [18:42:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.260, "sum" : 680.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:00]execute_script... [18:42:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.260, "sum" : 680.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:00]POST & json_proto [18:42:00]process_json_proto [18:42:00]json parsed OK: [18:42:00]protocol is kg_v1.0 [18:42:00]action value=close_receipt [18:42:00]process_action close_receipt [18:42:00]cmd_close_receipt [18:42:00]MH_GetDate [18:42:00]Write to MH i2c: F0 00 00 0F 20 1E [18:42:00]Write i2c OK [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: F0 [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: F0 09 00 [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: F0 09 00 0F 20 00 79 CA 92 66 86 7C 92 66 5C [18:42:00]GetLastDocTimeStamp 1720896071 [18:42:00]current date 1720896121 [18:42:00]FM_GetShiftState [18:42:00]SAM_PROTO_GetShiftState [18:42:00]wFMCommunicate request_size=4 [18:42:00]MH_SAM_APDU [18:42:00]CAPDU: 80 13 01 00 [18:42:00]Write to MH i2c: E2 08 00 10 20 80 13 01 00 00 00 00 00 AD [18:42:00]Write i2c OK [18:42:00]MH_I2C_Read... [18:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:00]Read from MH i2c: E2 [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: E2 0E 00 [18:42:00]MH_I2C_Read... [18:42:00]Read from MH i2c: E2 0E 00 10 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A7 [18:42:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:42:00]wFMCommunicate OK [18:42:00]SAM_PROTO_GetShiftState done [18:42:00]FM_GetShiftState done [18:42:00]opened in 1720828979 [18:42:00]opened+sec_in_day 1720915379 [18:42:00]quantity*price = 68023 [18:42:00]sum+1 = 68025 [18:42:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.24 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 294 13.07.2024 18:42 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162626 ФПД: 156607642953656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184201&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162626&fm=156607642953656&tin=02508201610067®Number=0000000000090858&sum=68000 [18:42:01]StoreToDocumentArchive [18:42:01]shift 462 fd 162626 [18:42:01]save to /storage/0462/doc_00162626 [18:42:01]save last doc name /storage/0462/doc_00162626 to /storage/kkm_last_doc_name [18:42:01]save OK [18:42:01]Clear old archive folders... [18:42:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:01]tlvbuf is 006C65A0 [18:42:01]SAM_PROTO_ClearQueue [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 09 00 00 [18:42:01]Write to MH i2c: E2 08 00 1D 20 80 09 00 00 00 00 00 00 AF [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 1D 20 00 90 00 B1 [18:42:01]RAPDU: 90 00 [18:42:01]wFMCommunicate OK [18:42:01]SAM_PROTO_ClearQueue done [18:42:01]KKMCreateOFDPacket [18:42:01]OFDProtocolAddRootSTLVToBuf [18:42:01]FM_MakeSignedData [18:42:01]FM_MakeSignedData [18:42:01]SAM_PROTO_SignData [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 0D 01 02 [18:42:01]Write to MH i2c: E2 08 00 1E 20 80 0D 01 02 00 00 00 00 B7 [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 1E 20 00 90 00 B2 [18:42:01]RAPDU: 90 00 [18:42:01]wFMCommunicate OK [18:42:01]wFMCommunicate request_size=255 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 79 CA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7B 02 00 35 04 06 00 8E [18:42:01]Write to MH i2c: E2 02 01 1F 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 79 CA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7B 02 00 35 04 06 00 8E 00 00 52 [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 1F 20 00 90 00 B3 [18:42:01]RAPDU: 90 00 [18:42:01]wFMCommunicate OK [18:42:01]wFMCommunicate request_size=10 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 0D 02 02 05 6F 0E ED 67 B8 [18:42:01]Write to MH i2c: E2 0D 00 20 20 80 0D 02 02 05 00 6F 0E ED 67 B8 00 00 4D [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:01]Read from MH i2c: E2 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 [18:42:01]MH_I2C_Read... [18:42:01]Read from MH i2c: E2 03 00 20 20 00 90 00 B4 [18:42:01]RAPDU: 90 00 [18:42:01]wFMCommunicate OK [18:42:01]wFMCommunicate request_size=4 [18:42:01]MH_SAM_APDU [18:42:01]CAPDU: 80 0D 03 02 [18:42:01]Write to MH i2c: E2 08 00 21 20 80 0D 03 02 00 00 00 00 BC [18:42:01]Write i2c OK [18:42:01]MH_I2C_Read... [18:42:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:02]Read from MH i2c: E2 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 0B 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 0B 00 21 20 00 7E EA 51 22 EF 2D F4 DB 90 00 83 [18:42:02]RAPDU: 7E EA 51 22 EF 2D F4 DB 90 00 [18:42:02]wFMCommunicate OK [18:42:02]SAM_PROTO_SignData done [18:42:02]FM_MakeSignedData done [18:42:02]CreateOFDProtocolMessage [18:42:02]wFMCommunicate request_size=4 [18:42:02]MH_SAM_APDU [18:42:02]CAPDU: 80 11 00 00 [18:42:02]Write to MH i2c: E2 08 00 22 20 80 11 00 00 00 00 00 00 BC [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:02]Read from MH i2c: E2 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 17 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: E2 17 00 22 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1C [18:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:42:02]wFMCommunicate OK [18:42:02]CreateOFDProtocolMessage done [18:42:02]OFDSenderStorePacket 162626 [18:42:02]StoreOFDPacket docnum=162626 [18:42:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2F E5 07 01 6E 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 79 CA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7B 02 00 35 04 06 00 8E 6F 0E ED 67 B8 7E EA 51 22 EF 2D F4 DB [18:42:02]CheckFolder [18:42:02]dirname=/storage/ofd_packets [18:42:02]CheckFolder done [18:42:02]ProducePacketName [18:42:02]name=ofd_packets/00162626 [18:42:02]NVStorageSaveData ofd_packets/00162626 [18:42:02]File name is /storage/ofd_packets/00162626 [18:42:02]Write 301 bytes [18:42:02]NVStorageSaveData done [18:42:02]OFDSenderStorePacket done [18:42:02]KKMCreateOFDPacket done [18:42:02]NVStorageSaveData kkm_last_timestamp [18:42:02]File name is /storage/kkm_last_timestamp [18:42:02]Write 4 bytes [18:42:02]NVStorageSaveData done [18:42:02]ExternCall_PrintAddStr [18:42:02]wPrintStart [18:42:02]Write to MH i2c: 01 00 00 23 20 43 [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 07 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 07 00 23 20 00 00 00 00 00 FF 0F 58 [18:42:02]RasterBufferAndPrint [18:42:02]line Счет N : (1)1319194 [18:42:02]line ИНН: 02508201610067 [18:42:02]line Контрольно-Кассовый Чек [18:42:02]line ПРОДАЖА [18:42:02]line ТРК (МРК, ГНК) : 53 [18:42:02]line Товар: 2710124130 [18:42:02]line Аи-92-К-5 [18:42:02]line 10.260 * 66.30 [18:42:02]line = 680.24 [18:42:02]line НДС 12% НСП 1% [18:42:02]line > о реализуемом товаре [18:42:02]line ОКРУГЛЕНИЕ: -0.24 [18:42:02]line ИТОГО: 680.00 [18:42:02]line Внесено: 680.00 [18:42:02]line СДАЧА: 0.00 [18:42:02]line НСП 1% : 6.02 [18:42:02]line НДС 12% : 72.24 [18:42:02]line Наличными: 680.00 [18:42:02]line Безнал.: 0.00 [18:42:02]line Место: АЗС № 140 "Партнер Нефть" [18:42:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:42:02]line СНО: Общий режим [18:42:02]line Чек 294 13.07.2024 18:42 [18:42:02]line Смена: 462 ФФД: 1.0 [18:42:02]line ЗНМ: 0300000129 [18:42:02]line РНМ: 0000000000090858 [18:42:02]line Версия ККМ: 001 [18:42:02]line ФМ: 0000000000874899 [18:42:02]line ФД: 162626 [18:42:02]line ФПД: 156607642953656 [18:42:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184201&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162626&fm=156607642953656&tin=02508201610067®Number=0000000000090858&sum=68000 [18:42:02]OFD Sender: Processing packet 162626 [packets to send 106, broken 105] [18:42:02]ProducePacketName [18:42:02]name=ofd_packets/00162626 [18:42:02]OFD Sender: To server: pG, [18:42:02]CommunicateWithHost lk.salyk.kg:30040 [18:42:02]ConnectInit lk.salyk.kg [18:42:02]written 0, free lines is 4095 [18:42:02]Connected sock=10 [18:42:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 2F E5 07 01 6E 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 B8 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 79 CA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7B 02 00 35 04 06 00 8E 6F 0E ED 67 B8 7E EA 51 22 EF 2D F4 DB [18:42:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1C C2 47 00 33 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 42 7B 02 00 F4 03 04 00 88 76 92 66 B6 04 01 00 00 EE 3C 07 4E C4 F9 76 F0 [18:42:02]CommunicateWithHost err = 0 [18:42:02]CheckOFDResponse [18:42:02]1017 (14) - 77093643461234 [18:42:02]1041 (16) - 0000000000874899 [18:42:02]1040 (4) - 162626 [18:42:02]1012 (4) - 13.07.2024 12:43 [18:42:02]1206 (1) - 0 [18:42:02]OFD Sender: Remove packet 162626 [18:42:02]ProducePacketName [18:42:02]name=ofd_packets/00162626 [18:42:02]NVStorageDeleteData [18:42:02]Write to MH i2c: 01 00 00 4E 20 6E [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 07 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: 01 07 00 4E 20 00 00 00 00 00 F9 0C 7A [18:42:02]RasterBufferAndPrint [18:42:02]line [18:42:02]line [18:42:02]line [18:42:02]line [18:42:02]line [18:42:02]written 0, free lines is 3330 [18:42:02]MH_Cut [18:42:02]Write to MH i2c: D1 01 00 55 20 01 47 [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: D1 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: D1 01 00 [18:42:02]MH_I2C_Read... [18:42:02]Read from MH i2c: D1 01 00 55 20 00 46 [18:42:02]Write to MH i2c: 01 00 00 56 20 76 [18:42:02]Write i2c OK [18:42:02]MH_I2C_Read... [18:42:03]OFD Sender: No OFD packet to send [18:42:03]*** Cut start [18:42:03]*** Purtial cut [18:42:03]*** CUTSNS_PIN = 0 [18:42:03]*** Stage 1: CUTSNS_PIN = 1 [18:42:05]Read from MH i2c: 01 [18:42:05]MH_I2C_Read... [18:42:05]*** Stop cut motor [18:42:05]*** Cut end [18:42:05]Read from MH i2c: 01 07 00 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: 01 07 00 56 20 00 00 00 00 00 FF 0F 8B [18:42:05]process_action close_receipt done [18:42:05]requested_data is exist [18:42:05]produce_requested_data [18:42:05]requested_item fm.sn is exist - process it [18:42:05]wFMCommunicate request_size=4 [18:42:05]MH_SAM_APDU [18:42:05]CAPDU: 80 11 00 00 [18:42:05]Write to MH i2c: E2 08 00 57 20 80 11 00 00 00 00 00 00 F1 [18:42:05]Write i2c OK [18:42:05]MH_I2C_Read... [18:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:05]Read from MH i2c: E2 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 17 00 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 17 00 57 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 51 [18:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:42:05]wFMCommunicate OK [18:42:05]requested_item fd.num is exist - process it [18:42:05]SAM_PROTO_GetFieldsCounters [18:42:05]wFMCommunicate request_size=4 [18:42:05]MH_SAM_APDU [18:42:05]CAPDU: 80 13 00 00 [18:42:05]Write to MH i2c: E2 08 00 58 20 80 13 00 00 00 00 00 00 F4 [18:42:05]Write i2c OK [18:42:05]MH_I2C_Read... [18:42:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:05]Read from MH i2c: E2 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 62 00 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 62 00 58 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 42 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [18:42:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 42 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:05]wFMCommunicate OK [18:42:05]SAM_PROTO_GetFieldsCounters done [18:42:05]requested_item shift.num is exist - process it [18:42:05]requested_item shift.opened is exist - process it [18:42:05]req_shift_opened [18:42:05]FM_GetShiftState [18:42:05]SAM_PROTO_GetShiftState [18:42:05]wFMCommunicate request_size=4 [18:42:05]MH_SAM_APDU [18:42:05]CAPDU: 80 13 01 00 [18:42:05]Write to MH i2c: E2 08 00 59 20 80 13 01 00 00 00 00 00 F6 [18:42:05]Write i2c OK [18:42:05]MH_I2C_Read... [18:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:05]Read from MH i2c: E2 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 0E 00 [18:42:05]MH_I2C_Read... [18:42:05]Read from MH i2c: E2 0E 00 59 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F0 [18:42:05]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:42:05]wFMCommunicate OK [18:42:05]SAM_PROTO_GetShiftState done [18:42:05]FM_GetShiftState done [18:42:05]req_shift_opened done [18:42:05]requested_item shift.open_date is exist - process it [18:42:05]req_shift_open_date [18:42:05]req_shift_open_date done [18:42:05]produce_requested_data done [18:42:05]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162626,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:42:05]process_action_free close_receipt [18:42:05]json_value_free [18:42:05]json_value_free done [18:42:05]process_json_proto returns [18:42:05]Send response to host [18:42:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162626,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:42:05]free response buf [18:42:05]execute_script done [18:42:05]execute_script returns [18:42:05]free content buf [18:42:05]Sock 7.Close socket [18:42:05]Sock 7.Thread stoped [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:28]OFD Sender: No OFD packet to send [18:44:33]OFD Sender: No OFD packet to send [18:44:38]OFD Sender: No OFD packet to send [18:44:43]OFD Sender: No OFD packet to send [18:44:48]OFD Sender: No OFD packet to send [18:44:53]OFD Sender: No OFD packet to send [18:44:58]OFD Sender: No OFD packet to send [18:45:03]OFD Sender: No OFD packet to send [18:45:08]OFD Sender: No OFD packet to send [18:45:09]accept exits with 9 [18:45:09]New connection [18:45:09]New thread 3067366756 created [18:45:09]Thread 3067510116 joined [18:45:09]Waiting for new connection... [18:45:09] Sock 9.Parse request [18:45:09]Sock 9.Check first char [18:45:09]Sock 9.First char is OK [18:45:09]request: POST /json_proto HTTP/1.0 [18:45:09]Method: POST [18:45:09]URL: /json_proto [18:45:09]Method is POST - this is cgi request [18:45:09]url: /json_proto [18:45:09]query_string will be loaded in cgi processing [18:45:09]execute_cgi json_proto POST (null) [18:45:09]execute_cgi path=json_proto method=POST [18:45:09]POST find Content-Length [18:45:09]Host: 172.17.39.67:8080 [18:45:09]Content-Length: 678 [18:45:09]Content-Type: application/json [18:45:09] [18:45:09]POST finish read [18:45:09]Found Content-Length = 678 [18:45:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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:45:09]execute_script... [18:45:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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:45:09]POST & json_proto [18:45:09]process_json_proto [18:45:09]json parsed OK: [18:45:09]protocol is kg_v1.0 [18:45:09]action value=close_receipt [18:45:09]process_action close_receipt [18:45:09]cmd_close_receipt [18:45:09]MH_GetDate [18:45:09]Write to MH i2c: F0 00 00 5A 20 69 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: F0 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: F0 09 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: F0 09 00 5A 20 00 37 CB 92 66 86 7C 92 66 66 [18:45:09]GetLastDocTimeStamp 1720896121 [18:45:09]current date 1720896311 [18:45:09]FM_GetShiftState [18:45:09]SAM_PROTO_GetShiftState [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 13 01 00 [18:45:09]Write to MH i2c: E2 08 00 5B 20 80 13 01 00 00 00 00 00 F8 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0E 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 0E 00 5B 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F2 [18:45:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:45:09]wFMCommunicate OK [18:45:09]SAM_PROTO_GetShiftState done [18:45:09]FM_GetShiftState done [18:45:09]opened in 1720828979 [18:45:09]opened+sec_in_day 1720915379 [18:45:09]quantity*price = 60001 [18:45:09]sum+1 = 60003 [18:45:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 295 13.07.2024 18:45 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162627 ФПД: 128380676078172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184511&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162627&fm=128380676078172&tin=02508201610067®Number=0000000000090858&sum=60000 [18:45:10]StoreToDocumentArchive [18:45:10]shift 462 fd 162627 [18:45:10]save to /storage/0462/doc_00162627 [18:45:10]save last doc name /storage/0462/doc_00162627 to /storage/kkm_last_doc_name [18:45:10]save OK [18:45:10]Clear old archive folders... [18:45:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:10]tlvbuf is B6F301A0 [18:45:10]SAM_PROTO_ClearQueue [18:45:10]wFMCommunicate request_size=4 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 09 00 00 [18:45:10]Write to MH i2c: E2 08 00 68 20 80 09 00 00 00 00 00 00 FA [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 68 20 00 90 00 FC [18:45:11]RAPDU: 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_ClearQueue done [18:45:11]KKMCreateOFDPacket [18:45:11]OFDProtocolAddRootSTLVToBuf [18:45:11]FM_MakeSignedData [18:45:11]FM_MakeSignedData [18:45:11]SAM_PROTO_SignData [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 0D 01 02 [18:45:11]Write to MH i2c: E2 08 00 69 20 80 0D 01 02 00 00 00 00 02 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 69 20 00 90 00 FD [18:45:11]RAPDU: 90 00 [18:45:11]wFMCommunicate OK [18:45:11]wFMCommunicate request_size=255 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 27 01 00 00 F4 03 04 00 37 CB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7B 02 00 35 04 06 00 74 [18:45:11]Write to MH i2c: E2 02 01 6A 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 27 01 00 00 F4 03 04 00 37 CB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7B 02 00 35 04 06 00 74 00 00 B0 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 6A 20 00 90 00 FE [18:45:11]RAPDU: 90 00 [18:45:11]wFMCommunicate OK [18:45:11]wFMCommunicate request_size=10 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 0D 02 02 05 C2 F4 97 FA 5C [18:45:11]Write to MH i2c: E2 0D 00 6B 20 80 0D 02 02 05 00 C2 F4 97 FA 5C 00 00 B2 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 03 00 6B 20 00 90 00 FF [18:45:11]RAPDU: 90 00 [18:45:11]wFMCommunicate OK [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 0D 03 02 [18:45:11]Write to MH i2c: E2 08 00 6C 20 80 0D 03 02 00 00 00 00 07 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0B 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 0B 00 6C 20 00 45 A6 63 A1 5C BB 56 D2 90 00 36 [18:45:11]RAPDU: 45 A6 63 A1 5C BB 56 D2 90 00 [18:45:11]wFMCommunicate OK [18:45:11]SAM_PROTO_SignData done [18:45:11]FM_MakeSignedData done [18:45:11]CreateOFDProtocolMessage [18:45:11]wFMCommunicate request_size=4 [18:45:11]MH_SAM_APDU [18:45:11]CAPDU: 80 11 00 00 [18:45:11]Write to MH i2c: E2 08 00 6D 20 80 11 00 00 00 00 00 00 07 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:11]Read from MH i2c: E2 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 17 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: E2 17 00 6D 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 67 [18:45:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:45:11]wFMCommunicate OK [18:45:11]CreateOFDProtocolMessage done [18:45:11]OFDSenderStorePacket 162627 [18:45:11]StoreOFDPacket docnum=162627 [18:45:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 29 70 07 01 3B 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 27 01 00 00 F4 03 04 00 37 CB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7B 02 00 35 04 06 00 74 C2 F4 97 FA 5C 45 A6 63 A1 5C BB 56 D2 [18:45:11]CheckFolder [18:45:11]dirname=/storage/ofd_packets [18:45:11]CheckFolder done [18:45:11]ProducePacketName [18:45:11]name=ofd_packets/00162627 [18:45:11]NVStorageSaveData ofd_packets/00162627 [18:45:11]File name is /storage/ofd_packets/00162627 [18:45:11]Write 301 bytes [18:45:11]NVStorageSaveData done [18:45:11]OFDSenderStorePacket done [18:45:11]KKMCreateOFDPacket done [18:45:11]NVStorageSaveData kkm_last_timestamp [18:45:11]File name is /storage/kkm_last_timestamp [18:45:11]Write 4 bytes [18:45:11]NVStorageSaveData done [18:45:11]ExternCall_PrintAddStr [18:45:11]wPrintStart [18:45:11]Write to MH i2c: 01 00 00 6E 20 8E [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 07 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 07 00 6E 20 00 00 00 00 00 FF 0F A3 [18:45:11]RasterBufferAndPrint [18:45:11]line Счет N : (1)1319195 [18:45:11]line ИНН: 02508201610067 [18:45:11]line Контрольно-Кассовый Чек [18:45:11]line ПРОДАЖА [18:45:11]line ТРК (МРК, ГНК) : 33 [18:45:11]line Товар: 2710124130 [18:45:11]line Аи-92-К-5 [18:45:11]line 9.050 * 66.30 [18:45:11]line = 600.02 [18:45:11]line НДС 12% НСП 1% [18:45:11]line > о реализуемом товаре [18:45:11]line ОКРУГЛЕНИЕ: -0.02 [18:45:11]line ИТОГО: 600.00 [18:45:11]line Внесено: 600.00 [18:45:11]line СДАЧА: 0.00 [18:45:11]line НСП 1% : 5.31 [18:45:11]line НДС 12% : 63.72 [18:45:11]line Наличными: 600.00 [18:45:11]line Безнал.: 0.00 [18:45:11]line Место: АЗС № 140 "Партнер Нефть" [18:45:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:45:11]line СНО: Общий режим [18:45:11]line Чек 295 13.07.2024 18:45 [18:45:11]line Смена: 462 ФФД: 1.0 [18:45:11]line ЗНМ: 0300000129 [18:45:11]line РНМ: 0000000000090858 [18:45:11]line Версия ККМ: 001 [18:45:11]line ФМ: 0000000000874899 [18:45:11]line ФД: 162627 [18:45:11]line ФПД: 128380676078172 [18:45:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T184511&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162627&fm=128380676078172&tin=02508201610067®Number=0000000000090858&sum=60000 [18:45:11]OFD Sender: Processing packet 162627 [packets to send 106, broken 105] [18:45:11]ProducePacketName [18:45:11]name=ofd_packets/00162627 [18:45:11]OFD Sender: To server: pG, [18:45:11]CommunicateWithHost lk.salyk.kg:30040 [18:45:11]ConnectInit lk.salyk.kg [18:45:11]written 0, free lines is 4095 [18:45:11]Connected sock=10 [18:45:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 29 70 07 01 3B 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 27 01 00 00 F4 03 04 00 37 CB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7B 02 00 35 04 06 00 74 C2 F4 97 FA 5C 45 A6 63 A1 5C BB 56 D2 [18:45:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E E2 47 00 E2 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 43 7B 02 00 F4 03 04 00 45 77 92 66 B6 04 01 00 00 D9 AC A3 7B D4 CA 4C 13 [18:45:12]CommunicateWithHost err = 0 [18:45:12]CheckOFDResponse [18:45:12]1017 (14) - 77093643461234 [18:45:12]1041 (16) - 0000000000874899 [18:45:12]1040 (4) - 162627 [18:45:12]1012 (4) - 13.07.2024 12:47 [18:45:12]1206 (1) - 0 [18:45:12]OFD Sender: Remove packet 162627 [18:45:12]ProducePacketName [18:45:12]name=ofd_packets/00162627 [18:45:12]NVStorageDeleteData [18:45:12]Write to MH i2c: 01 00 00 99 20 B9 [18:45:12]Write i2c OK [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 07 00 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 07 00 99 20 00 00 00 00 00 F1 0C BD [18:45:12]RasterBufferAndPrint [18:45:12]line [18:45:12]line [18:45:12]line [18:45:12]line [18:45:12]line [18:45:12]written 0, free lines is 3319 [18:45:12]MH_Cut [18:45:12]Write to MH i2c: D1 01 00 A0 20 01 92 [18:45:12]Write i2c OK [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: D1 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: D1 01 00 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: D1 01 00 A0 20 00 91 [18:45:12]Write to MH i2c: 01 00 00 A1 20 C1 [18:45:12]Write i2c OK [18:45:12]MH_I2C_Read... [18:45:12]OFD Sender: No OFD packet to send [18:45:13]*** Cut start [18:45:13]*** Purtial cut [18:45:13]*** Stage 1: CUTSNS_PIN = 1 [18:45:13]Read from MH i2c: 01 [18:45:13]MH_I2C_Read... [18:45:13]*** Stop cut motor [18:45:13]*** Cut end [18:45:13]Read from MH i2c: 01 07 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: 01 07 00 A1 20 00 00 00 00 00 FF 0F D6 [18:45:13]process_action close_receipt done [18:45:13]requested_data is exist [18:45:13]produce_requested_data [18:45:13]requested_item fm.sn is exist - process it [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 11 00 00 [18:45:13]Write to MH i2c: E2 08 00 A2 20 80 11 00 00 00 00 00 00 3C [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 17 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 17 00 A2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9C [18:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:45:13]wFMCommunicate OK [18:45:13]requested_item fd.num is exist - process it [18:45:13]SAM_PROTO_GetFieldsCounters [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 13 00 00 [18:45:13]Write to MH i2c: E2 08 00 A3 20 80 13 00 00 00 00 00 00 3F [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 62 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 62 00 A3 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 43 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [18:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 43 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:13]wFMCommunicate OK [18:45:13]SAM_PROTO_GetFieldsCounters done [18:45:13]requested_item shift.num is exist - process it [18:45:13]requested_item shift.opened is exist - process it [18:45:13]req_shift_opened [18:45:13]FM_GetShiftState [18:45:13]SAM_PROTO_GetShiftState [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 13 01 00 [18:45:13]Write to MH i2c: E2 08 00 A4 20 80 13 01 00 00 00 00 00 41 [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 0E 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 0E 00 A4 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3B [18:45:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:45:13]wFMCommunicate OK [18:45:13]SAM_PROTO_GetShiftState done [18:45:13]FM_GetShiftState done [18:45:13]req_shift_opened done [18:45:13]requested_item shift.open_date is exist - process it [18:45:13]req_shift_open_date [18:45:13]req_shift_open_date done [18:45:13]produce_requested_data done [18:45:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162627,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:45:13]process_action_free close_receipt [18:45:13]json_value_free [18:45:13]json_value_free done [18:45:13]process_json_proto returns [18:45:13]Send response to host [18:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162627,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:45:13]free response buf [18:45:13]execute_script done [18:45:13]execute_script returns [18:45:13]free content buf [18:45:13]Sock 9.Close socket [18:45:13]Sock 9.Thread stoped [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:22]OFD Sender: No OFD packet to send [18:48:27]OFD Sender: No OFD packet to send [18:48:32]OFD Sender: No OFD packet to send [18:48:37]OFD Sender: No OFD packet to send [18:48:42]OFD Sender: No OFD packet to send [18:48:47]OFD Sender: No OFD packet to send [18:48:52]OFD Sender: No OFD packet to send [18:48:57]OFD Sender: No OFD packet to send [18:49:02]OFD Sender: No OFD packet to send [18:49:07]OFD Sender: No OFD packet to send [18:49:12]OFD Sender: No OFD packet to send [18:49:17]OFD Sender: No OFD packet to send [18:49:22]OFD Sender: No OFD packet to send [18:49:27]OFD Sender: No OFD packet to send [18:49:32]OFD Sender: No OFD packet to send [18:49:37]OFD Sender: No OFD packet to send [18:49:42]OFD Sender: No OFD packet to send [18:49:47]OFD Sender: No OFD packet to send [18:49:52]OFD Sender: No OFD packet to send [18:49:57]OFD Sender: No OFD packet to send [18:50:02]OFD Sender: No OFD packet to send [18:50:07]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:48]accept exits with 7 [18:50:48]New connection [18:50:48]New thread 3067510116 created [18:50:48]Thread 3067366756 joined [18:50:48]Waiting for new connection... [18:50:48] Sock 7.Parse request [18:50:48]Sock 7.Check first char [18:50:48]Sock 7.First char is OK [18:50:48]request: POST /json_proto HTTP/1.0 [18:50:48]Method: POST [18:50:48]URL: /json_proto [18:50:48]Method is POST - this is cgi request [18:50:48]url: /json_proto [18:50:48]query_string will be loaded in cgi processing [18:50:48]execute_cgi json_proto POST (null) [18:50:48]execute_cgi path=json_proto method=POST [18:50:48]POST find Content-Length [18:50:48]Host: 172.17.39.67:8080 [18:50:48]Content-Length: 818 [18:50:48]Content-Type: application/json [18:50:48] [18:50:48]POST finish read [18:50:48]Found Content-Length = 818 [18:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:48]execute_script... [18:50:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.000, "sum" : 663.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 663.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:48]POST & json_proto [18:50:48]process_json_proto [18:50:48]json parsed OK: [18:50:48]protocol is kg_v1.0 [18:50:48]action value=close_receipt [18:50:48]process_action close_receipt [18:50:48]cmd_close_receipt [18:50:48]MH_GetDate [18:50:48]Write to MH i2c: F0 00 00 A5 20 B4 [18:50:48]Write i2c OK [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: F0 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: F0 09 00 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: F0 09 00 A5 20 00 89 CC 92 66 86 7C 92 66 04 [18:50:48]GetLastDocTimeStamp 1720896311 [18:50:48]current date 1720896649 [18:50:48]FM_GetShiftState [18:50:48]SAM_PROTO_GetShiftState [18:50:48]wFMCommunicate request_size=4 [18:50:48]MH_SAM_APDU [18:50:48]CAPDU: 80 13 01 00 [18:50:48]Write to MH i2c: E2 08 00 A6 20 80 13 01 00 00 00 00 00 43 [18:50:48]Write i2c OK [18:50:48]MH_I2C_Read... [18:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:48]Read from MH i2c: E2 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: E2 0E 00 [18:50:48]MH_I2C_Read... [18:50:48]Read from MH i2c: E2 0E 00 A6 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3D [18:50:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:50:48]wFMCommunicate OK [18:50:48]SAM_PROTO_GetShiftState done [18:50:48]FM_GetShiftState done [18:50:48]opened in 1720828979 [18:50:48]opened+sec_in_day 1720915379 [18:50:48]quantity*price = 66300 [18:50:48]sum+1 = 66301 [18:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 663.00 НСП 1% : 5.87 НДС 12% : 70.41 Наличными: 0.00 Безнал.: 663.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 296 13.07.2024 18:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162628 ФПД: 196913676427119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185049&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162628&fm=196913676427119&tin=02508201610067®Number=0000000000090858&sum=66300 [18:50:49]StoreToDocumentArchive [18:50:49]shift 462 fd 162628 [18:50:49]save to /storage/0462/doc_00162628 [18:50:49]save last doc name /storage/0462/doc_00162628 to /storage/kkm_last_doc_name [18:50:49]save OK [18:50:49]Clear old archive folders... [18:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:49]tlvbuf is B6F30A80 [18:50:49]SAM_PROTO_ClearQueue [18:50:49]wFMCommunicate request_size=4 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 09 00 00 [18:50:49]Write to MH i2c: E2 08 00 B3 20 80 09 00 00 00 00 00 00 45 [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:49]Read from MH i2c: E2 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 03 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 03 00 B3 20 00 90 00 47 [18:50:49]RAPDU: 90 00 [18:50:49]wFMCommunicate OK [18:50:49]SAM_PROTO_ClearQueue done [18:50:49]KKMCreateOFDPacket [18:50:49]OFDProtocolAddRootSTLVToBuf [18:50:49]FM_MakeSignedData [18:50:49]FM_MakeSignedData [18:50:49]SAM_PROTO_SignData [18:50:49]wFMCommunicate request_size=4 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 0D 01 02 [18:50:49]Write to MH i2c: E2 08 00 B4 20 80 0D 01 02 00 00 00 00 4D [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:49]Read from MH i2c: E2 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 03 00 [18:50:49]MH_I2C_Read... [18:50:49]Read from MH i2c: E2 03 00 B4 20 00 90 00 48 [18:50:49]RAPDU: 90 00 [18:50:49]wFMCommunicate OK [18:50:49]wFMCommunicate request_size=255 [18:50:49]MH_SAM_APDU [18:50:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 89 CC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7B 02 00 35 04 06 00 B3 [18:50:49]Write to MH i2c: E2 02 01 B5 20 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 89 CC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7B 02 00 35 04 06 00 B3 00 00 3E [18:50:49]Write i2c OK [18:50:49]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 B5 20 00 90 00 49 [18:50:50]RAPDU: 90 00 [18:50:50]wFMCommunicate OK [18:50:50]wFMCommunicate request_size=10 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 0D 02 02 05 17 89 BC 1F 6F [18:50:50]Write to MH i2c: E2 0D 00 B6 20 80 0D 02 02 05 00 17 89 BC 1F 6F 00 00 44 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 03 00 B6 20 00 90 00 4A [18:50:50]RAPDU: 90 00 [18:50:50]wFMCommunicate OK [18:50:50]wFMCommunicate request_size=4 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 0D 03 02 [18:50:50]Write to MH i2c: E2 08 00 B7 20 80 0D 03 02 00 00 00 00 52 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 0B 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 0B 00 B7 20 00 7A CA 75 4F C2 DA 35 DB 90 00 07 [18:50:50]RAPDU: 7A CA 75 4F C2 DA 35 DB 90 00 [18:50:50]wFMCommunicate OK [18:50:50]SAM_PROTO_SignData done [18:50:50]FM_MakeSignedData done [18:50:50]CreateOFDProtocolMessage [18:50:50]wFMCommunicate request_size=4 [18:50:50]MH_SAM_APDU [18:50:50]CAPDU: 80 11 00 00 [18:50:50]Write to MH i2c: E2 08 00 B8 20 80 11 00 00 00 00 00 00 52 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:50]Read from MH i2c: E2 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 17 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: E2 17 00 B8 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B2 [18:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:50:50]wFMCommunicate OK [18:50:50]CreateOFDProtocolMessage done [18:50:50]OFDSenderStorePacket 162628 [18:50:50]StoreOFDPacket docnum=162628 [18:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9E AE 07 01 16 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 89 CC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7B 02 00 35 04 06 00 B3 17 89 BC 1F 6F 7A CA 75 4F C2 DA 35 DB [18:50:50]CheckFolder [18:50:50]dirname=/storage/ofd_packets [18:50:50]CheckFolder done [18:50:50]ProducePacketName [18:50:50]name=ofd_packets/00162628 [18:50:50]NVStorageSaveData ofd_packets/00162628 [18:50:50]File name is /storage/ofd_packets/00162628 [18:50:50]Write 301 bytes [18:50:50]NVStorageSaveData done [18:50:50]OFDSenderStorePacket done [18:50:50]KKMCreateOFDPacket done [18:50:50]NVStorageSaveData kkm_last_timestamp [18:50:50]File name is /storage/kkm_last_timestamp [18:50:50]Write 4 bytes [18:50:50]NVStorageSaveData done [18:50:50]ExternCall_PrintAddStr [18:50:50]wPrintStart [18:50:50]Write to MH i2c: 01 00 00 B9 20 D9 [18:50:50]Write i2c OK [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 07 00 [18:50:50]MH_I2C_Read... [18:50:50]Read from MH i2c: 01 07 00 B9 20 00 00 00 00 00 FF 0F EE [18:50:50]RasterBufferAndPrint [18:50:50]line Счет N : (1)1319196 [18:50:50]line ИНН: 02508201610067 [18:50:50]line Контрольно-Кассовый Чек [18:50:50]line ПРОДАЖА [18:50:50]line ТРК (МРК, ГНК) : 63 [18:50:50]line Товар: 2710124130 [18:50:50]line Аи-92-К-5 [18:50:50]line 10.000 * 66.30 [18:50:50]line = 663.00 [18:50:50]line НДС 12% НСП 1% [18:50:50]line > о реализуемом товаре [18:50:50]line ИТОГО: 663.00 [18:50:50]line НСП 1% : 5.87 [18:50:50]line НДС 12% : 70.41 [18:50:50]line Наличными: 0.00 [18:50:50]line Безнал.: 663.00 [18:50:50]line Место: АЗС № 140 "Партнер Нефть" [18:50:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:50:50]line СНО: Общий режим [18:50:50]line Чек 296 13.07.2024 18:50 [18:50:50]line Смена: 462 ФФД: 1.0 [18:50:50]line ЗНМ: 0300000129 [18:50:50]line РНМ: 0000000000090858 [18:50:50]line Версия ККМ: 001 [18:50:50]line Платежная система: Бакай Банк [18:50:50]line ФМ: 0000000000874899 [18:50:50]line ФД: 162628 [18:50:50]line ФПД: 196913676427119 [18:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185049&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162628&fm=196913676427119&tin=02508201610067®Number=0000000000090858&sum=66300 [18:50:50]written 0, free lines is 4095 [18:50:50]OFD Sender: Processing packet 162628 [packets to send 106, broken 105] [18:50:50]ProducePacketName [18:50:50]name=ofd_packets/00162628 [18:50:50]OFD Sender: To server: pG, [18:50:50]CommunicateWithHost lk.salyk.kg:30040 [18:50:50]ConnectInit lk.salyk.kg [18:50:50]Connected sock=10 [18:50:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 9E AE 07 01 16 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 FC 02 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 02 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 02 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 89 CC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7B 02 00 35 04 06 00 B3 17 89 BC 1F 6F 7A CA 75 4F C2 DA 35 DB [18:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D2 F5 47 00 8F 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 44 7B 02 00 F4 03 04 00 98 78 92 66 B6 04 01 00 00 AD E0 6F 99 84 B2 85 F4 [18:50:51]CommunicateWithHost err = 0 [18:50:51]CheckOFDResponse [18:50:51]1017 (14) - 77093643461234 [18:50:51]1041 (16) - 0000000000874899 [18:50:51]1040 (4) - 162628 [18:50:51]1012 (4) - 13.07.2024 12:52 [18:50:51]1206 (1) - 0 [18:50:51]OFD Sender: Remove packet 162628 [18:50:51]ProducePacketName [18:50:51]name=ofd_packets/00162628 [18:50:51]NVStorageDeleteData [18:50:51]Write to MH i2c: 01 00 00 E3 20 03 [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 07 00 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: 01 07 00 E3 20 00 00 00 00 00 F3 0C 09 [18:50:51]RasterBufferAndPrint [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]line [18:50:51]written 0, free lines is 3320 [18:50:51]MH_Cut [18:50:51]Write to MH i2c: D1 01 00 EA 20 01 DC [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 01 00 [18:50:51]MH_I2C_Read... [18:50:51]Read from MH i2c: D1 01 00 EA 20 00 DB [18:50:51]Write to MH i2c: 01 00 00 EB 20 0B [18:50:51]Write i2c OK [18:50:51]MH_I2C_Read... [18:50:51]OFD Sender: No OFD packet to send [18:50:51]*** Cut start [18:50:51]*** Purtial cut [18:50:51]*** CUTSNS_PIN = 0 [18:50:52]*** Stage 1: CUTSNS_PIN = 1 [18:50:53]Read from MH i2c: 01 [18:50:53]MH_I2C_Read... [18:50:53]*** Stop cut motor [18:50:53]*** Cut end [18:50:53]Read from MH i2c: 01 07 00 [18:50:53]MH_I2C_Read... [18:50:53]Read from MH i2c: 01 07 00 EB 20 00 00 00 00 00 FF 0F 20 [18:50:53]process_action close_receipt done [18:50:53]requested_data is exist [18:50:53]produce_requested_data [18:50:53]requested_item fm.sn is exist - process it [18:50:53]wFMCommunicate request_size=4 [18:50:53]MH_SAM_APDU [18:50:53]CAPDU: 80 11 00 00 [18:50:53]Write to MH i2c: E2 08 00 EC 20 80 11 00 00 00 00 00 00 86 [18:50:53]Write i2c OK [18:50:53]MH_I2C_Read... [18:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:54]Read from MH i2c: E2 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: E2 17 00 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: E2 17 00 EC 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E6 [18:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:50:54]wFMCommunicate OK [18:50:54]requested_item fd.num is exist - process it [18:50:54]SAM_PROTO_GetFieldsCounters [18:50:54]wFMCommunicate request_size=4 [18:50:54]MH_SAM_APDU [18:50:54]CAPDU: 80 13 00 00 [18:50:54]Write to MH i2c: E2 08 00 ED 20 80 13 00 00 00 00 00 00 89 [18:50:54]Write i2c OK [18:50:54]MH_I2C_Read... [18:50:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:54]Read from MH i2c: E2 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: E2 62 00 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: E2 62 00 ED 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 44 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 C7 [18:50:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 44 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:54]wFMCommunicate OK [18:50:54]SAM_PROTO_GetFieldsCounters done [18:50:54]requested_item shift.num is exist - process it [18:50:54]requested_item shift.opened is exist - process it [18:50:54]req_shift_opened [18:50:54]FM_GetShiftState [18:50:54]SAM_PROTO_GetShiftState [18:50:54]wFMCommunicate request_size=4 [18:50:54]MH_SAM_APDU [18:50:54]CAPDU: 80 13 01 00 [18:50:54]Write to MH i2c: E2 08 00 EE 20 80 13 01 00 00 00 00 00 8B [18:50:54]Write i2c OK [18:50:54]MH_I2C_Read... [18:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:54]Read from MH i2c: E2 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: E2 0E 00 [18:50:54]MH_I2C_Read... [18:50:54]Read from MH i2c: E2 0E 00 EE 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 85 [18:50:54]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:50:54]wFMCommunicate OK [18:50:54]SAM_PROTO_GetShiftState done [18:50:54]FM_GetShiftState done [18:50:54]req_shift_opened done [18:50:54]requested_item shift.open_date is exist - process it [18:50:54]req_shift_open_date [18:50:54]req_shift_open_date done [18:50:54]produce_requested_data done [18:50:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162628,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:50:54]process_action_free close_receipt [18:50:54]json_value_free [18:50:54]json_value_free done [18:50:54]process_json_proto returns [18:50:54]Send response to host [18:50:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162628,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:50:54]free response buf [18:50:54]execute_script done [18:50:54]execute_script returns [18:50:54]free content buf [18:50:54]Sock 7.Close socket [18:50:54]Sock 7.Thread stoped [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:03]accept exits with 9 [18:56:03]New connection [18:56:03]New thread 3067366756 created [18:56:03]Thread 3067510116 joined [18:56:03]Waiting for new connection... [18:56:03] Sock 9.Parse request [18:56:03]Sock 9.Check first char [18:56:03]Sock 9.First char is OK [18:56:03]request: POST /json_proto HTTP/1.0 [18:56:03]Method: POST [18:56:03]URL: /json_proto [18:56:03]Method is POST - this is cgi request [18:56:03]url: /json_proto [18:56:03]query_string will be loaded in cgi processing [18:56:03]execute_cgi json_proto POST (null) [18:56:03]execute_cgi path=json_proto method=POST [18:56:03]POST find Content-Length [18:56:03]Host: 172.17.39.67:8080 [18:56:03]Content-Length: 688 [18:56:03]Content-Type: application/json [18:56:03] [18:56:03]POST finish read [18:56:03]Found Content-Length = 688 [18:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 61.990, "sum" : 4500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:03]execute_script... [18:56:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 61.990, "sum" : 4500.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:03]POST & json_proto [18:56:03]process_json_proto [18:56:03]json parsed OK: [18:56:03]protocol is kg_v1.0 [18:56:03]action value=close_receipt [18:56:03]process_action close_receipt [18:56:03]cmd_close_receipt [18:56:03]MH_GetDate [18:56:03]Write to MH i2c: F0 00 00 EF 20 FE [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: F0 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: F0 09 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: F0 09 00 EF 20 00 C4 CD 92 66 86 7C 92 66 8A [18:56:03]GetLastDocTimeStamp 1720896649 [18:56:03]current date 1720896964 [18:56:03]FM_GetShiftState [18:56:03]SAM_PROTO_GetShiftState [18:56:03]wFMCommunicate request_size=4 [18:56:03]MH_SAM_APDU [18:56:03]CAPDU: 80 13 01 00 [18:56:03]Write to MH i2c: E2 08 00 F0 20 80 13 01 00 00 00 00 00 8D [18:56:03]Write i2c OK [18:56:03]MH_I2C_Read... [18:56:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:03]Read from MH i2c: E2 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 0E 00 [18:56:03]MH_I2C_Read... [18:56:03]Read from MH i2c: E2 0E 00 F0 20 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 87 [18:56:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:56:03]wFMCommunicate OK [18:56:03]SAM_PROTO_GetShiftState done [18:56:03]FM_GetShiftState done [18:56:03]opened in 1720828979 [18:56:03]opened+sec_in_day 1720915379 [18:56:03]quantity*price = 450047 [18:56:03]sum+1 = 450048 [18:56:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.93 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 297 13.07.2024 18:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162629 ФПД: 149855866590605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185604&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162629&fm=149855866590605&tin=02508201610067®Number=0000000000090858&sum=450000 [18:56:04]StoreToDocumentArchive [18:56:04]shift 462 fd 162629 [18:56:04]save to /storage/0462/doc_00162629 [18:56:04]save last doc name /storage/0462/doc_00162629 to /storage/kkm_last_doc_name [18:56:04]save OK [18:56:04]Clear old archive folders... [18:56:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:56:04]tlvbuf is 006F5A90 [18:56:04]SAM_PROTO_ClearQueue [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 09 00 00 [18:56:04]Write to MH i2c: E2 08 00 FD 20 80 09 00 00 00 00 00 00 8F [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 FD 20 00 90 00 91 [18:56:04]RAPDU: 90 00 [18:56:04]wFMCommunicate OK [18:56:04]SAM_PROTO_ClearQueue done [18:56:04]KKMCreateOFDPacket [18:56:04]OFDProtocolAddRootSTLVToBuf [18:56:04]FM_MakeSignedData [18:56:04]FM_MakeSignedData [18:56:04]SAM_PROTO_SignData [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 0D 01 02 [18:56:04]Write to MH i2c: E2 08 00 FE 20 80 0D 01 02 00 00 00 00 97 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 FE 20 00 90 00 92 [18:56:04]RAPDU: 90 00 [18:56:04]wFMCommunicate OK [18:56:04]wFMCommunicate request_size=255 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 F2 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FF DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 C4 CD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7B 02 00 35 04 06 00 [18:56:04]Write to MH i2c: E2 02 01 FF 20 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 F2 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FF DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 C4 CD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7B 02 00 35 04 06 00 00 00 13 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 FF 20 00 90 00 93 [18:56:04]RAPDU: 90 00 [18:56:04]wFMCommunicate OK [18:56:04]wFMCommunicate request_size=11 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 0D 02 02 06 88 4B 09 B2 15 8D [18:56:04]Write to MH i2c: E2 0E 00 00 21 80 0D 02 02 06 00 88 4B 09 B2 15 8D 00 00 D7 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 03 00 00 21 00 90 00 95 [18:56:04]RAPDU: 90 00 [18:56:04]wFMCommunicate OK [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 0D 03 02 [18:56:04]Write to MH i2c: E2 08 00 01 21 80 0D 03 02 00 00 00 00 9D [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0B 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 0B 00 01 21 00 16 54 5F AC 42 B9 79 8A 90 00 11 [18:56:04]RAPDU: 16 54 5F AC 42 B9 79 8A 90 00 [18:56:04]wFMCommunicate OK [18:56:04]SAM_PROTO_SignData done [18:56:04]FM_MakeSignedData done [18:56:04]CreateOFDProtocolMessage [18:56:04]wFMCommunicate request_size=4 [18:56:04]MH_SAM_APDU [18:56:04]CAPDU: 80 11 00 00 [18:56:04]Write to MH i2c: E2 08 00 02 21 80 11 00 00 00 00 00 00 9D [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:04]Read from MH i2c: E2 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 17 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: E2 17 00 02 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FD [18:56:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:56:04]wFMCommunicate OK [18:56:04]CreateOFDProtocolMessage done [18:56:04]OFDSenderStorePacket 162629 [18:56:04]StoreOFDPacket docnum=162629 [18:56:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 60 08 01 3B 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 F2 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FF DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 C4 CD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7B 02 00 35 04 06 00 88 4B 09 B2 15 8D 16 54 5F AC 42 B9 79 8A [18:56:04]CheckFolder [18:56:04]dirname=/storage/ofd_packets [18:56:04]CheckFolder done [18:56:04]ProducePacketName [18:56:04]name=ofd_packets/00162629 [18:56:04]NVStorageSaveData ofd_packets/00162629 [18:56:04]File name is /storage/ofd_packets/00162629 [18:56:04]Write 302 bytes [18:56:04]NVStorageSaveData done [18:56:04]OFDSenderStorePacket done [18:56:04]KKMCreateOFDPacket done [18:56:04]NVStorageSaveData kkm_last_timestamp [18:56:04]File name is /storage/kkm_last_timestamp [18:56:04]Write 4 bytes [18:56:04]NVStorageSaveData done [18:56:04]ExternCall_PrintAddStr [18:56:04]wPrintStart [18:56:04]Write to MH i2c: 01 00 00 03 21 24 [18:56:04]Write i2c OK [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 [18:56:04]MH_I2C_Read... [18:56:04]Read from MH i2c: 01 07 00 03 21 00 00 00 00 00 FF 0F 39 [18:56:04]RasterBufferAndPrint [18:56:04]line Счет N : (1)1319198 [18:56:04]line ИНН: 02508201610067 [18:56:04]line Контрольно-Кассовый Чек [18:56:04]line ПРОДАЖА [18:56:04]line ТРК (МРК, ГНК) : 61 [18:56:04]line Товар: 2710194210 [18:56:04]line ДТ(л)-К-5 [18:56:04]line 61.990 * 72.60 [18:56:04]line = 4500.47 [18:56:04]line НДС 12% НСП 1% [18:56:04]line > о реализуемом товаре [18:56:04]line ОКРУГЛЕНИЕ: -0.47 [18:56:04]line ИТОГО: 4500.00 [18:56:04]line Внесено: 4500.00 [18:56:04]line СДАЧА: 0.00 [18:56:04]line НСП 1% : 39.83 [18:56:04]line НДС 12% : 477.93 [18:56:04]line Наличными: 4500.00 [18:56:04]line Безнал.: 0.00 [18:56:04]line Место: АЗС № 140 "Партнер Нефть" [18:56:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:56:04]line СНО: Общий режим [18:56:04]line Чек 297 13.07.2024 18:56 [18:56:04]line Смена: 462 ФФД: 1.0 [18:56:04]line ЗНМ: 0300000129 [18:56:04]line РНМ: 0000000000090858 [18:56:04]line Версия ККМ: 001 [18:56:04]line ФМ: 0000000000874899 [18:56:04]line ФД: 162629 [18:56:04]line ФПД: 149855866590605 [18:56:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185604&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162629&fm=149855866590605&tin=02508201610067®Number=0000000000090858&sum=450000 [18:56:05]OFD Sender: Processing packet 162629 [packets to send 106, broken 105] [18:56:05]ProducePacketName [18:56:05]name=ofd_packets/00162629 [18:56:05]OFD Sender: To server: pG, [18:56:05]CommunicateWithHost lk.salyk.kg:30040 [18:56:05]ConnectInit lk.salyk.kg [18:56:05]written 0, free lines is 4095 [18:56:05]Connected sock=10 [18:56:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 60 08 01 3B 65 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 F2 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 FF DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 C4 CD 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7B 02 00 35 04 06 00 88 4B 09 B2 15 8D 16 54 5F AC 42 B9 79 8A [18:56:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D6 FE 47 00 83 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 45 7B 02 00 F4 03 04 00 D3 79 92 66 B6 04 01 00 00 DA 6D 63 71 0C 00 93 89 [18:56:05]CommunicateWithHost err = 0 [18:56:05]CheckOFDResponse [18:56:05]1017 (14) - 77093643461234 [18:56:05]1041 (16) - 0000000000874899 [18:56:05]1040 (4) - 162629 [18:56:05]1012 (4) - 13.07.2024 12:57 [18:56:05]1206 (1) - 0 [18:56:05]OFD Sender: Remove packet 162629 [18:56:05]ProducePacketName [18:56:05]name=ofd_packets/00162629 [18:56:05]NVStorageDeleteData [18:56:05]Write to MH i2c: 01 00 00 2E 21 4F [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: 01 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: 01 07 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: 01 07 00 2E 21 00 00 00 00 00 F7 0C 59 [18:56:05]RasterBufferAndPrint [18:56:05]line [18:56:05]line [18:56:05]line [18:56:05]line [18:56:05]line [18:56:05]written 0, free lines is 3329 [18:56:05]MH_Cut [18:56:05]Write to MH i2c: D1 01 00 35 21 01 28 [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: D1 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: D1 01 00 [18:56:05]MH_I2C_Read... [18:56:05]Read from MH i2c: D1 01 00 35 21 00 27 [18:56:05]Write to MH i2c: 01 00 00 36 21 57 [18:56:05]Write i2c OK [18:56:05]MH_I2C_Read... [18:56:06]OFD Sender: No OFD packet to send [18:56:06]*** Cut start [18:56:06]*** Purtial cut [18:56:06]*** Stage 1: CUTSNS_PIN = 1 [18:56:06]Read from MH i2c: 01 [18:56:06]MH_I2C_Read... [18:56:06]*** Stop cut motor [18:56:06]*** Cut end [18:56:06]Read from MH i2c: 01 07 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: 01 07 00 36 21 00 00 00 00 00 FF 0F 6C [18:56:06]process_action close_receipt done [18:56:06]requested_data is exist [18:56:06]produce_requested_data [18:56:06]requested_item fm.sn is exist - process it [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 11 00 00 [18:56:06]Write to MH i2c: E2 08 00 37 21 80 11 00 00 00 00 00 00 D2 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 17 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 17 00 37 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 32 [18:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:56:06]wFMCommunicate OK [18:56:06]requested_item fd.num is exist - process it [18:56:06]SAM_PROTO_GetFieldsCounters [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 13 00 00 [18:56:06]Write to MH i2c: E2 08 00 38 21 80 13 00 00 00 00 00 00 D5 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 62 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 62 00 38 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [18:56:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_GetFieldsCounters done [18:56:06]requested_item shift.num is exist - process it [18:56:06]requested_item shift.opened is exist - process it [18:56:06]req_shift_opened [18:56:06]FM_GetShiftState [18:56:06]SAM_PROTO_GetShiftState [18:56:06]wFMCommunicate request_size=4 [18:56:06]MH_SAM_APDU [18:56:06]CAPDU: 80 13 01 00 [18:56:06]Write to MH i2c: E2 08 00 39 21 80 13 01 00 00 00 00 00 D7 [18:56:06]Write i2c OK [18:56:06]MH_I2C_Read... [18:56:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:06]Read from MH i2c: E2 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 [18:56:06]MH_I2C_Read... [18:56:06]Read from MH i2c: E2 0E 00 39 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D1 [18:56:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:56:06]wFMCommunicate OK [18:56:06]SAM_PROTO_GetShiftState done [18:56:06]FM_GetShiftState done [18:56:06]req_shift_opened done [18:56:07]requested_item shift.open_date is exist - process it [18:56:07]req_shift_open_date [18:56:07]req_shift_open_date done [18:56:07]produce_requested_data done [18:56:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162629,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:56:07]process_action_free close_receipt [18:56:07]json_value_free [18:56:07]json_value_free done [18:56:07]process_json_proto returns [18:56:07]Send response to host [18:56:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162629,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:56:07]free response buf [18:56:07]execute_script done [18:56:07]execute_script returns [18:56:07]free content buf [18:56:07]Sock 9.Close socket [18:56:07]Sock 9.Thread stoped [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:21]accept exits with 7 [18:56:21]New connection [18:56:21]New thread 3067510116 created [18:56:21]Thread 3067366756 joined [18:56:21]Waiting for new connection... [18:56:21] Sock 7.Parse request [18:56:21]Sock 7.Check first char [18:56:21]Sock 7.First char is OK [18:56:21]request: POST /json_proto HTTP/1.0 [18:56:21]Method: POST [18:56:21]URL: /json_proto [18:56:21]Method is POST - this is cgi request [18:56:21]url: /json_proto [18:56:21]query_string will be loaded in cgi processing [18:56:21]execute_cgi json_proto POST (null) [18:56:21]execute_cgi path=json_proto method=POST [18:56:21]POST find Content-Length [18:56:21]Host: 172.17.39.67:8080 [18:56:21]Content-Length: 1217 [18:56:21]Content-Type: application/json [18:56:21] [18:56:21]POST finish read [18:56:21]Found Content-Length = 1217 [18:56:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319197\u000A13.07.2024 18:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474986/3474987\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:21]execute_script... [18:56:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319197\u000A13.07.2024 18:53\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474986/3474987\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:21]POST & json_proto [18:56:21]process_json_proto [18:56:21]json parsed OK: [18:56:21]protocol is kg_v1.0 [18:56:21]action value=print_text [18:56:21]process_action print_text [18:56:21]cmd_print_text [18:56:21]ExternCall_PrintAddStr [18:56:21]wPrintStart [18:56:21]Write to MH i2c: 01 00 00 3A 21 5B [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 3A 21 00 00 00 00 00 FF 0F 70 [18:56:21]RasterBufferAndPrint [18:56:21]line *****ТОВАРНЫЙ ЧЕК***** [18:56:21]line АЗС 140 [18:56:21]line Партнер нефть [18:56:21]line 02508201610067 [18:56:21]line Кассир : Шамбеталиев А. [18:56:21]line Счет N : (1)1319197 [18:56:21]line 13.07.2024 18:53 [18:56:21]line ПРОДАЖА [18:56:21]line ТРК (МРК, ГНК): 11 [18:56:21]line Вид ГСМ : 2710194210 [18:56:21]line ДТ(л)-К-5 [18:56:21]line 100.000 x 72.60 [18:56:21]line ИТОГ: 7260.00 [18:56:21]line Тип оплаты: Талоны: Партнер нефть [18:56:21]line 3474986/3474987 [18:56:21]line ______________________ [18:56:21]line (подпись) [18:56:21]written 0, free lines is 4095 [18:56:21]Write to MH i2c: 01 00 00 4F 21 70 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 4F 21 00 00 00 00 00 F9 0D 7D [18:56:21]RasterBufferAndPrint [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]line [18:56:21]written 0, free lines is 3579 [18:56:21]MH_Cut [18:56:21]Write to MH i2c: D1 01 00 56 21 01 49 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 01 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: D1 01 00 56 21 00 48 [18:56:21]Write to MH i2c: 01 00 00 57 21 78 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:22]*** Cut start [18:56:22]*** Purtial cut [18:56:22]*** CUTSNS_PIN = 0 [18:56:22]*** Stage 1: CUTSNS_PIN = 1 [18:56:24]Read from MH i2c: 01 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: 01 07 00 [18:56:24]MH_I2C_Read... [18:56:24]*** Stop cut motor [18:56:24]*** Cut end [18:56:24]Read from MH i2c: 01 07 00 57 21 00 00 00 00 00 FF 0F 8D [18:56:24]process_action print_text done [18:56:24]requested_data is exist [18:56:24]produce_requested_data [18:56:24]requested_item fm.sn is exist - process it [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 11 00 00 [18:56:24]Write to MH i2c: E2 08 00 58 21 80 11 00 00 00 00 00 00 F3 [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 17 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 17 00 58 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 53 [18:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:56:24]wFMCommunicate OK [18:56:24]requested_item fd.num is exist - process it [18:56:24]SAM_PROTO_GetFieldsCounters [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 13 00 00 [18:56:24]Write to MH i2c: E2 08 00 59 21 80 13 00 00 00 00 00 00 F6 [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 62 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 62 00 59 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [18:56:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:56:24]wFMCommunicate OK [18:56:24]SAM_PROTO_GetFieldsCounters done [18:56:24]requested_item shift.num is exist - process it [18:56:24]requested_item shift.opened is exist - process it [18:56:24]req_shift_opened [18:56:24]FM_GetShiftState [18:56:24]SAM_PROTO_GetShiftState [18:56:24]wFMCommunicate request_size=4 [18:56:24]MH_SAM_APDU [18:56:24]CAPDU: 80 13 01 00 [18:56:24]Write to MH i2c: E2 08 00 5A 21 80 13 01 00 00 00 00 00 F8 [18:56:24]Write i2c OK [18:56:24]MH_I2C_Read... [18:56:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:24]Read from MH i2c: E2 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 0E 00 [18:56:24]MH_I2C_Read... [18:56:24]Read from MH i2c: E2 0E 00 5A 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F2 [18:56:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:56:24]wFMCommunicate OK [18:56:24]SAM_PROTO_GetShiftState done [18:56:24]FM_GetShiftState done [18:56:24]req_shift_opened done [18:56:24]requested_item shift.open_date is exist - process it [18:56:24]req_shift_open_date [18:56:24]req_shift_open_date done [18:56:24]produce_requested_data done [18:56:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162629,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:56:24]process_action_free print_text [18:56:24]json_value_free [18:56:24]json_value_free done [18:56:24]process_json_proto returns [18:56:24]Send response to host [18:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162629,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:56:24]free response buf [18:56:24]execute_script done [18:56:24]execute_script returns [18:56:24]free content buf [18:56:24]Sock 7.Close socket [18:56:24]Sock 7.Thread stoped [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56: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:02]accept exits with 9 [18:57:02]New connection [18:57:02]New thread 3067366756 created [18:57:02]Thread 3067510116 joined [18:57:02]Waiting for new connection... [18:57:02] Sock 9.Parse request [18:57:02]Sock 9.Check first char [18:57:02]Sock 9.First char is OK [18:57:02]request: POST /json_proto HTTP/1.0 [18:57:02]Method: POST [18:57:02]URL: /json_proto [18:57:02]Method is POST - this is cgi request [18:57:02]url: /json_proto [18:57:02]query_string will be loaded in cgi processing [18:57:02]execute_cgi json_proto POST (null) [18:57:02]execute_cgi path=json_proto method=POST [18:57:02]POST find Content-Length [18:57:02]Host: 172.17.39.67:8080 [18:57:02]Content-Length: 1208 [18:57:02]Content-Type: application/json [18:57:02] [18:57:02]POST finish read [18:57:02]Found Content-Length = 1208 [18:57:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319199\u000A13.07.2024 18:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092471\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:02]execute_script... [18:57:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319199\u000A13.07.2024 18:54\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 41\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 20.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 1452.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4092471\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:02]POST & json_proto [18:57:02]process_json_proto [18:57:02]json parsed OK: [18:57:02]protocol is kg_v1.0 [18:57:02]action value=print_text [18:57:02]process_action print_text [18:57:02]cmd_print_text [18:57:02]ExternCall_PrintAddStr [18:57:02]wPrintStart [18:57:02]Write to MH i2c: 01 00 00 5B 21 7C [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 5B 21 00 00 00 00 00 FF 0F 91 [18:57:02]RasterBufferAndPrint [18:57:02]line *****ТОВАРНЫЙ ЧЕК***** [18:57:02]line АЗС 140 [18:57:02]line Партнер нефть [18:57:02]line 02508201610067 [18:57:02]line Кассир : Шамбеталиев А. [18:57:02]line Счет N : (1)1319199 [18:57:02]line 13.07.2024 18:54 [18:57:02]line ПРОДАЖА [18:57:02]line ТРК (МРК, ГНК): 41 [18:57:02]line Вид ГСМ : 2710194210 [18:57:02]line ДТ(л)-К-5 [18:57:02]line 20.000 x 72.60 [18:57:02]line ИТОГ: 1452.00 [18:57:02]line Тип оплаты: Талоны: Партнер нефть [18:57:02]line 4092471 [18:57:02]line ______________________ [18:57:02]line (подпись) [18:57:02]written 0, free lines is 4095 [18:57:03]Write to MH i2c: 01 00 00 70 21 91 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 07 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 07 00 70 21 00 00 00 00 00 F4 0D 99 [18:57:03]RasterBufferAndPrint [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]written 0, free lines is 3574 [18:57:03]MH_Cut [18:57:03]Write to MH i2c: D1 01 00 77 21 01 6A [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 01 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 01 00 77 21 00 69 [18:57:03]Write to MH i2c: 01 00 00 78 21 99 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]*** Cut start [18:57:03]*** Purtial cut [18:57:03]*** Stage 1: CUTSNS_PIN = 1 [18:57:03]Read from MH i2c: 01 [18:57:03]MH_I2C_Read... [18:57:03]*** Stop cut motor [18:57:03]*** Cut end [18:57:03]Read from MH i2c: 01 07 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 07 00 78 21 00 00 00 00 00 FF 0F AE [18:57:03]process_action print_text done [18:57:03]requested_data is exist [18:57:03]produce_requested_data [18:57:03]requested_item fm.sn is exist - process it [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 11 00 00 [18:57:03]Write to MH i2c: E2 08 00 79 21 80 11 00 00 00 00 00 00 14 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:03]Read from MH i2c: E2 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 17 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: E2 17 00 79 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 74 [18:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:57:03]wFMCommunicate OK [18:57:03]requested_item fd.num is exist - process it [18:57:03]SAM_PROTO_GetFieldsCounters [18:57:03]wFMCommunicate request_size=4 [18:57:03]MH_SAM_APDU [18:57:03]CAPDU: 80 13 00 00 [18:57:03]Write to MH i2c: E2 08 00 7A 21 80 13 00 00 00 00 00 00 17 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 62 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 62 00 7A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [18:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 45 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:04]wFMCommunicate OK [18:57:04]SAM_PROTO_GetFieldsCounters done [18:57:04]requested_item shift.num is exist - process it [18:57:04]requested_item shift.opened is exist - process it [18:57:04]req_shift_opened [18:57:04]FM_GetShiftState [18:57:04]SAM_PROTO_GetShiftState [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 13 01 00 [18:57:04]Write to MH i2c: E2 08 00 7B 21 80 13 01 00 00 00 00 00 19 [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 0E 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 0E 00 7B 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 13 [18:57:04]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:57:04]wFMCommunicate OK [18:57:04]SAM_PROTO_GetShiftState done [18:57:04]FM_GetShiftState done [18:57:04]req_shift_opened done [18:57:04]requested_item shift.open_date is exist - process it [18:57:04]req_shift_open_date [18:57:04]req_shift_open_date done [18:57:04]produce_requested_data done [18:57:04]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162629,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:57:04]process_action_free print_text [18:57:04]json_value_free [18:57:04]json_value_free done [18:57:04]process_json_proto returns [18:57:04]Send response to host [18:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162629,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:57:04]free response buf [18:57:04]execute_script done [18:57:04]execute_script returns [18:57:04]free content buf [18:57:04]Sock 9.Close socket [18:57:04]Sock 9.Thread stoped [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:10]accept exits with 7 [18:58:10]New connection [18:58:10]New thread 3067510116 created [18:58:10]Thread 3067366756 joined [18:58:10]Waiting for new connection... [18:58:10] Sock 7.Parse request [18:58:10]Sock 7.Check first char [18:58:10]Sock 7.First char is OK [18:58:10]request: POST /json_proto HTTP/1.0 [18:58:10]Method: POST [18:58:10]URL: /json_proto [18:58:10]Method is POST - this is cgi request [18:58:10]url: /json_proto [18:58:10]query_string will be loaded in cgi processing [18:58:10]execute_cgi json_proto POST (null) [18:58:10]execute_cgi path=json_proto method=POST [18:58:10]POST find Content-Length [18:58:10]Host: 172.17.39.67:8080 [18:58:10]Content-Length: 684 [18:58:10]Content-Type: application/json [18:58:10] [18:58:10]POST finish read [18:58:10]Found Content-Length = 684 [18:58:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.310, "sum" : 748.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 748.00, "total" : 748.00, "payments": [ { "type": 0, "sum" : 748.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:10]execute_script... [18:58: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)1319200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.310, "sum" : 748.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 748.00, "total" : 748.00, "payments": [ { "type": 0, "sum" : 748.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:10]POST & json_proto [18:58:10]process_json_proto [18:58:10]json parsed OK: [18:58:10]protocol is kg_v1.0 [18:58:10]action value=close_receipt [18:58:10]process_action close_receipt [18:58:10]cmd_close_receipt [18:58:10]MH_GetDate [18:58:10]Write to MH i2c: F0 00 00 7C 21 8C [18:58:10]Write i2c OK [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: F0 [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: F0 09 00 [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: F0 09 00 7C 21 00 43 CE 92 66 86 7C 92 66 98 [18:58:10]GetLastDocTimeStamp 1720896964 [18:58:10]current date 1720897091 [18:58:10]FM_GetShiftState [18:58:10]SAM_PROTO_GetShiftState [18:58:10]wFMCommunicate request_size=4 [18:58:10]MH_SAM_APDU [18:58:10]CAPDU: 80 13 01 00 [18:58:10]Write to MH i2c: E2 08 00 7D 21 80 13 01 00 00 00 00 00 1B [18:58:10]Write i2c OK [18:58:10]MH_I2C_Read... [18:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:10]Read from MH i2c: E2 [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: E2 0E 00 [18:58:10]MH_I2C_Read... [18:58:10]Read from MH i2c: E2 0E 00 7D 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 15 [18:58:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:58:10]wFMCommunicate OK [18:58:10]SAM_PROTO_GetShiftState done [18:58:10]FM_GetShiftState done [18:58:10]opened in 1720828979 [18:58:10]opened+sec_in_day 1720915379 [18:58:10]quantity*price = 74850 [18:58:10]sum+1 = 74852 [18:58:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 748.00 Внесено: 748.00 СДАЧА: 0.00 НСП 1% : 6.62 НДС 12% : 79.49 Наличными: 748.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 298 13.07.2024 18:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162630 ФПД: 195132363840947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185811&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162630&fm=195132363840947&tin=02508201610067®Number=0000000000090858&sum=74800 [18:58:11]StoreToDocumentArchive [18:58:11]shift 462 fd 162630 [18:58:11]save to /storage/0462/doc_00162630 [18:58:11]save last doc name /storage/0462/doc_00162630 to /storage/kkm_last_doc_name [18:58:11]save OK [18:58:11]Clear old archive folders... [18:58:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:58:11]tlvbuf is 006C5930 [18:58:11]SAM_PROTO_ClearQueue [18:58:11]wFMCommunicate request_size=4 [18:58:11]MH_SAM_APDU [18:58:11]CAPDU: 80 09 00 00 [18:58:11]Write to MH i2c: E2 08 00 8A 21 80 09 00 00 00 00 00 00 1D [18:58:11]Write i2c OK [18:58:11]MH_I2C_Read... [18:58:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:11]Read from MH i2c: E2 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 03 00 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 03 00 8A 21 00 90 00 1F [18:58:11]RAPDU: 90 00 [18:58:11]wFMCommunicate OK [18:58:11]SAM_PROTO_ClearQueue done [18:58:11]KKMCreateOFDPacket [18:58:11]OFDProtocolAddRootSTLVToBuf [18:58:11]FM_MakeSignedData [18:58:11]FM_MakeSignedData [18:58:11]SAM_PROTO_SignData [18:58:11]wFMCommunicate request_size=4 [18:58:11]MH_SAM_APDU [18:58:11]CAPDU: 80 0D 01 02 [18:58:11]Write to MH i2c: E2 08 00 8B 21 80 0D 01 02 00 00 00 00 25 [18:58:11]Write i2c OK [18:58:11]MH_I2C_Read... [18:58:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:11]Read from MH i2c: E2 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 03 00 [18:58:11]MH_I2C_Read... [18:58:11]Read from MH i2c: E2 03 00 8B 21 00 90 00 20 [18:58:11]RAPDU: 90 00 [18:58:11]wFMCommunicate OK [18:58:11]wFMCommunicate request_size=255 [18:58:11]MH_SAM_APDU [18:58:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 63 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1F 00 00 00 00 07 04 06 00 30 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 43 CE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7B 02 00 35 04 06 00 [18:58:11]Write to MH i2c: E2 02 01 8C 21 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 63 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1F 00 00 00 00 07 04 06 00 30 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 43 CE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7B 02 00 35 04 06 00 00 00 1E [18:58:11]Write i2c OK [18:58:11]MH_I2C_Read... [18:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:12]Read from MH i2c: E2 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: E2 03 00 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: E2 03 00 8C 21 00 90 00 21 [18:58:12]RAPDU: 90 00 [18:58:12]wFMCommunicate OK [18:58:12]wFMCommunicate request_size=11 [18:58:12]MH_SAM_APDU [18:58:12]CAPDU: 80 0D 02 02 06 B1 78 CB 3B 1D B3 [18:58:12]Write to MH i2c: E2 0E 00 8D 21 80 0D 02 02 06 00 B1 78 CB 3B 1D B3 00 00 33 [18:58:12]Write i2c OK [18:58:12]MH_I2C_Read... [18:58:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:12]Read from MH i2c: E2 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: E2 03 00 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: E2 03 00 8D 21 00 90 00 22 [18:58:12]RAPDU: 90 00 [18:58:12]wFMCommunicate OK [18:58:12]wFMCommunicate request_size=4 [18:58:12]MH_SAM_APDU [18:58:12]CAPDU: 80 0D 03 02 [18:58:12]Write to MH i2c: E2 08 00 8E 21 80 0D 03 02 00 00 00 00 2A [18:58:12]Write i2c OK [18:58:12]MH_I2C_Read... [18:58:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:12]Read from MH i2c: E2 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: E2 0B 00 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: E2 0B 00 8E 21 00 A5 DC 29 8D AB A8 A5 45 90 00 9F [18:58:12]RAPDU: A5 DC 29 8D AB A8 A5 45 90 00 [18:58:12]wFMCommunicate OK [18:58:12]SAM_PROTO_SignData done [18:58:12]FM_MakeSignedData done [18:58:12]CreateOFDProtocolMessage [18:58:12]wFMCommunicate request_size=4 [18:58:12]MH_SAM_APDU [18:58:12]CAPDU: 80 11 00 00 [18:58:12]Write to MH i2c: E2 08 00 8F 21 80 11 00 00 00 00 00 00 2A [18:58:12]Write i2c OK [18:58:12]MH_I2C_Read... [18:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:12]Read from MH i2c: E2 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: E2 17 00 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: E2 17 00 8F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8A [18:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:58:12]wFMCommunicate OK [18:58:12]CreateOFDProtocolMessage done [18:58:12]OFDSenderStorePacket 162630 [18:58:12]StoreOFDPacket docnum=162630 [18:58:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1D 1A 08 01 8E D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 63 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1F 00 00 00 00 07 04 06 00 30 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 43 CE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7B 02 00 35 04 06 00 B1 78 CB 3B 1D B3 A5 DC 29 8D AB A8 A5 45 [18:58:12]CheckFolder [18:58:12]dirname=/storage/ofd_packets [18:58:12]CheckFolder done [18:58:12]ProducePacketName [18:58:12]name=ofd_packets/00162630 [18:58:12]NVStorageSaveData ofd_packets/00162630 [18:58:12]File name is /storage/ofd_packets/00162630 [18:58:12]Write 302 bytes [18:58:12]NVStorageSaveData done [18:58:12]OFDSenderStorePacket done [18:58:12]KKMCreateOFDPacket done [18:58:12]NVStorageSaveData kkm_last_timestamp [18:58:12]File name is /storage/kkm_last_timestamp [18:58:12]Write 4 bytes [18:58:12]NVStorageSaveData done [18:58:12]ExternCall_PrintAddStr [18:58:12]wPrintStart [18:58:12]Write to MH i2c: 01 00 00 90 21 B1 [18:58:12]Write i2c OK [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: 01 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: 01 07 00 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: 01 07 00 90 21 00 00 00 00 00 FF 0F C6 [18:58:12]RasterBufferAndPrint [18:58:12]line Счет N : (1)1319200 [18:58:12]line ИНН: 02508201610067 [18:58:12]line Контрольно-Кассовый Чек [18:58:12]line ПРОДАЖА [18:58:12]line ТРК (МРК, ГНК) : 41 [18:58:12]line Товар: 2710194210 [18:58:12]line ДТ(л)-К-5 [18:58:12]line 10.310 * 72.60 [18:58:12]line = 748.51 [18:58:12]line НДС 12% НСП 1% [18:58:12]line > о реализуемом товаре [18:58:12]line ОКРУГЛЕНИЕ: -0.51 [18:58:12]line ИТОГО: 748.00 [18:58:12]line Внесено: 748.00 [18:58:12]line СДАЧА: 0.00 [18:58:12]line НСП 1% : 6.62 [18:58:12]line НДС 12% : 79.49 [18:58:12]line Наличными: 748.00 [18:58:12]line Безнал.: 0.00 [18:58:12]line Место: АЗС № 140 "Партнер Нефть" [18:58:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:58:12]line СНО: Общий режим [18:58:12]line Чек 298 13.07.2024 18:58 [18:58:12]line Смена: 462 ФФД: 1.0 [18:58:12]line ЗНМ: 0300000129 [18:58:12]line РНМ: 0000000000090858 [18:58:12]line Версия ККМ: 001 [18:58:12]line ФМ: 0000000000874899 [18:58:12]line ФД: 162630 [18:58:12]line ФПД: 195132363840947 [18:58:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T185811&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162630&fm=195132363840947&tin=02508201610067®Number=0000000000090858&sum=74800 [18:58:12]OFD Sender: Processing packet 162630 [packets to send 106, broken 105] [18:58:12]ProducePacketName [18:58:12]name=ofd_packets/00162630 [18:58:12]OFD Sender: To server: pG, [18:58:12]CommunicateWithHost lk.salyk.kg:30040 [18:58:12]ConnectInit lk.salyk.kg [18:58:12]written 0, free lines is 4095 [18:58:12]Connected sock=10 [18:58:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 1D 1A 08 01 8E D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 46 28 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 63 24 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1F 00 00 00 00 07 04 06 00 30 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 43 CE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7B 02 00 35 04 06 00 B1 78 CB 3B 1D B3 A5 DC 29 8D AB A8 A5 45 [18:58:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 8B F9 47 00 29 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 46 7B 02 00 F4 03 04 00 52 7A 92 66 B6 04 01 00 00 1D 1C EE F8 F3 58 A4 3B [18:58:12]CommunicateWithHost err = 0 [18:58:12]CheckOFDResponse [18:58:12]1017 (14) - 77093643461234 [18:58:12]1041 (16) - 0000000000874899 [18:58:12]1040 (4) - 162630 [18:58:12]1012 (4) - 13.07.2024 13:00 [18:58:12]1206 (1) - 0 [18:58:12]OFD Sender: Remove packet 162630 [18:58:12]ProducePacketName [18:58:12]name=ofd_packets/00162630 [18:58:12]NVStorageDeleteData [18:58:12]Write to MH i2c: 01 00 00 BB 21 DC [18:58:12]Write i2c OK [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: 01 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: 01 07 00 [18:58:12]MH_I2C_Read... [18:58:12]Read from MH i2c: 01 07 00 BB 21 00 00 00 00 00 D9 0C C8 [18:58:12]RasterBufferAndPrint [18:58:12]line [18:58:12]line [18:58:12]line [18:58:12]line [18:58:12]line [18:58:12]written 0, free lines is 3296 [18:58:13]MH_Cut [18:58:13]Write to MH i2c: D1 01 00 C2 21 01 B5 [18:58:13]Write i2c OK [18:58:13]MH_I2C_Read... [18:58:13]Read from MH i2c: D1 [18:58:13]MH_I2C_Read... [18:58:13]Read from MH i2c: D1 01 00 [18:58:13]MH_I2C_Read... [18:58:13]Read from MH i2c: D1 01 00 C2 21 00 B4 [18:58:13]Write to MH i2c: 01 00 00 C3 21 E4 [18:58:13]Write i2c OK [18:58:13]MH_I2C_Read... [18:58:13]OFD Sender: No OFD packet to send [18:58:13]*** Cut start [18:58:13]*** Purtial cut [18:58:13]*** CUTSNS_PIN = 0 [18:58:13]*** Stage 1: CUTSNS_PIN = 1 [18:58:15]Read from MH i2c: 01 [18:58:15]MH_I2C_Read... [18:58:15]*** Stop cut motor [18:58:15]*** Cut end [18:58:15]Read from MH i2c: 01 07 00 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: 01 07 00 C3 21 00 00 00 00 00 FF 0F F9 [18:58:15]process_action close_receipt done [18:58:15]requested_data is exist [18:58:15]produce_requested_data [18:58:15]requested_item fm.sn is exist - process it [18:58:15]wFMCommunicate request_size=4 [18:58:15]MH_SAM_APDU [18:58:15]CAPDU: 80 11 00 00 [18:58:15]Write to MH i2c: E2 08 00 C4 21 80 11 00 00 00 00 00 00 5F [18:58:15]Write i2c OK [18:58:15]MH_I2C_Read... [18:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:15]Read from MH i2c: E2 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: E2 17 00 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: E2 17 00 C4 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BF [18:58:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [18:58:15]wFMCommunicate OK [18:58:15]requested_item fd.num is exist - process it [18:58:15]SAM_PROTO_GetFieldsCounters [18:58:15]wFMCommunicate request_size=4 [18:58:15]MH_SAM_APDU [18:58:15]CAPDU: 80 13 00 00 [18:58:15]Write to MH i2c: E2 08 00 C5 21 80 13 00 00 00 00 00 00 62 [18:58:15]Write i2c OK [18:58:15]MH_I2C_Read... [18:58:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:15]Read from MH i2c: E2 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: E2 62 00 [18:58:15]MH_I2C_Read... [18:58:15]Read from MH i2c: E2 62 00 C5 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 46 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [18: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 46 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:15]wFMCommunicate OK [18:58:15]SAM_PROTO_GetFieldsCounters done [18:58:15]requested_item shift.num is exist - process it [18:58:15]requested_item shift.opened is exist - process it [18:58:15]req_shift_opened [18:58:15]FM_GetShiftState [18:58:15]SAM_PROTO_GetShiftState [18:58:15]wFMCommunicate request_size=4 [18:58:15]MH_SAM_APDU [18:58:15]CAPDU: 80 13 01 00 [18:58:15]Write to MH i2c: E2 08 00 C6 21 80 13 01 00 00 00 00 00 64 [18:58:15]Write i2c OK [18:58:15]MH_I2C_Read... [18:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:16]Read from MH i2c: E2 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 0E 00 [18:58:16]MH_I2C_Read... [18:58:16]Read from MH i2c: E2 0E 00 C6 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 5E [18:58:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [18:58:16]wFMCommunicate OK [18:58:16]SAM_PROTO_GetShiftState done [18:58:16]FM_GetShiftState done [18:58:16]req_shift_opened done [18:58:16]requested_item shift.open_date is exist - process it [18:58:16]req_shift_open_date [18:58:16]req_shift_open_date done [18:58:16]produce_requested_data done [18:58:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162630,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [18:58:16]process_action_free close_receipt [18:58:16]json_value_free [18:58:16]json_value_free done [18:58:16]process_json_proto returns [18:58:16]Send response to host [18:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162630,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [18:58:16]free response buf [18:58:16]execute_script done [18:58:16]execute_script returns [18:58:16]free content buf [18:58:16]Sock 7.Close socket [18:58:16]Sock 7.Thread stoped [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:16]accept exits with 9 [19:00:16]New connection [19:00:16]New thread 3067366756 created [19:00:16]Thread 3067510116 joined [19:00:16]Waiting for new connection... [19:00:16] Sock 9.Parse request [19:00:16]Sock 9.Check first char [19:00:16]Sock 9.First char is OK [19:00:16]request: POST /json_proto HTTP/1.0 [19:00:16]Method: POST [19:00:16]URL: /json_proto [19:00:16]Method is POST - this is cgi request [19:00:16]url: /json_proto [19:00:16]query_string will be loaded in cgi processing [19:00:16]execute_cgi json_proto POST (null) [19:00:16]execute_cgi path=json_proto method=POST [19:00:16]POST find Content-Length [19:00:16]Host: 172.17.39.67:8080 [19:00:16]Content-Length: 1208 [19:00:16]Content-Type: application/json [19:00:16] [19:00:16]POST finish read [19:00:16]Found Content-Length = 1208 [19:00:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319201\u000A13.07.2024 18:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474983\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:16]execute_script... [19:00:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319201\u000A13.07.2024 18:57\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 50.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 3630.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474983\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:16]POST & json_proto [19:00:16]process_json_proto [19:00:16]json parsed OK: [19:00:16]protocol is kg_v1.0 [19:00:16]action value=print_text [19:00:16]process_action print_text [19:00:16]cmd_print_text [19:00:16]ExternCall_PrintAddStr [19:00:16]wPrintStart [19:00:16]Write to MH i2c: 01 00 00 C7 21 E8 [19:00:16]Write i2c OK [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: 01 [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: 01 07 00 [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: 01 07 00 C7 21 00 00 00 00 00 FF 0F FD [19:00:16]RasterBufferAndPrint [19:00:16]line *****ТОВАРНЫЙ ЧЕК***** [19:00:16]line АЗС 140 [19:00:16]line Партнер нефть [19:00:16]line 02508201610067 [19:00:16]line Кассир : Шамбеталиев А. [19:00:16]line Счет N : (1)1319201 [19:00:16]line 13.07.2024 18:57 [19:00:16]line ПРОДАЖА [19:00:16]line ТРК (МРК, ГНК): 21 [19:00:16]line Вид ГСМ : 2710194210 [19:00:16]line ДТ(л)-К-5 [19:00:16]line 50.000 x 72.60 [19:00:16]line ИТОГ: 3630.00 [19:00:16]line Тип оплаты: Талоны: Партнер нефть [19:00:16]line 3474983 [19:00:16]line ______________________ [19:00:16]line (подпись) [19:00:16]written 0, free lines is 4095 [19:00:16]Write to MH i2c: 01 00 00 DC 21 FD [19:00:16]Write i2c OK [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: 01 [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: 01 07 00 [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: 01 07 00 DC 21 00 00 00 00 00 F4 0D 05 [19:00:16]RasterBufferAndPrint [19:00:16]line [19:00:16]line [19:00:16]line [19:00:16]line [19:00:16]line [19:00:16]written 0, free lines is 3574 [19:00:16]MH_Cut [19:00:16]Write to MH i2c: D1 01 00 E3 21 01 D6 [19:00:16]Write i2c OK [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: D1 [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: D1 01 00 [19:00:16]MH_I2C_Read... [19:00:16]Read from MH i2c: D1 01 00 E3 21 00 D5 [19:00:16]Write to MH i2c: 01 00 00 E4 21 05 [19:00:16]Write i2c OK [19:00:16]MH_I2C_Read... [19:00:17]*** Cut start [19:00:17]*** Purtial cut [19:00:17]*** Stage 1: CUTSNS_PIN = 1 [19:00:17]Read from MH i2c: 01 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: 01 07 00 [19:00:17]MH_I2C_Read... [19:00:17]*** Stop cut motor [19:00:17]*** Cut end [19:00:17]Read from MH i2c: 01 07 00 E4 21 00 00 00 00 00 FF 0F 1A [19:00:17]process_action print_text done [19:00:17]requested_data is exist [19:00:17]produce_requested_data [19:00:17]requested_item fm.sn is exist - process it [19:00:17]wFMCommunicate request_size=4 [19:00:17]MH_SAM_APDU [19:00:17]CAPDU: 80 11 00 00 [19:00:17]Write to MH i2c: E2 08 00 E5 21 80 11 00 00 00 00 00 00 80 [19:00:17]Write i2c OK [19:00:17]MH_I2C_Read... [19:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:17]Read from MH i2c: E2 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 17 00 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 17 00 E5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E0 [19:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:00:17]wFMCommunicate OK [19:00:17]requested_item fd.num is exist - process it [19:00:17]SAM_PROTO_GetFieldsCounters [19:00:17]wFMCommunicate request_size=4 [19:00:17]MH_SAM_APDU [19:00:17]CAPDU: 80 13 00 00 [19:00:17]Write to MH i2c: E2 08 00 E6 21 80 13 00 00 00 00 00 00 83 [19:00:17]Write i2c OK [19:00:17]MH_I2C_Read... [19:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:17]Read from MH i2c: E2 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 62 00 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 62 00 E6 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 46 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [19:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 46 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:17]wFMCommunicate OK [19:00:17]SAM_PROTO_GetFieldsCounters done [19:00:17]requested_item shift.num is exist - process it [19:00:17]requested_item shift.opened is exist - process it [19:00:17]req_shift_opened [19:00:17]FM_GetShiftState [19:00:17]SAM_PROTO_GetShiftState [19:00:17]wFMCommunicate request_size=4 [19:00:17]MH_SAM_APDU [19:00:17]CAPDU: 80 13 01 00 [19:00:17]Write to MH i2c: E2 08 00 E7 21 80 13 01 00 00 00 00 00 85 [19:00:17]Write i2c OK [19:00:17]MH_I2C_Read... [19:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:17]Read from MH i2c: E2 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 0E 00 [19:00:17]MH_I2C_Read... [19:00:17]Read from MH i2c: E2 0E 00 E7 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 7F [19:00:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:00:17]wFMCommunicate OK [19:00:17]SAM_PROTO_GetShiftState done [19:00:17]FM_GetShiftState done [19:00:17]req_shift_opened done [19:00:17]requested_item shift.open_date is exist - process it [19:00:17]req_shift_open_date [19:00:17]req_shift_open_date done [19:00:17]produce_requested_data done [19:00:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162630,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:00:17]process_action_free print_text [19:00:17]json_value_free [19:00:17]json_value_free done [19:00:17]process_json_proto returns [19:00:17]Send response to host [19:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162630,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:00:17]free response buf [19:00:17]execute_script done [19:00:17]execute_script returns [19:00:17]free content buf [19:00:17]Sock 9.Close socket [19:00:17]Sock 9.Thread stoped [19:00:18]accept exits with 7 [19:00:18]New connection [19:00:18]New thread 3067510116 created [19:00:18]Thread 3067366756 joined [19:00:18]Waiting for new connection... [19:00:18] Sock 7.Parse request [19:00:18]Sock 7.Check first char [19:00:18]Sock 7.First char is OK [19:00:18]request: POST /json_proto HTTP/1.0 [19:00:18]Method: POST [19:00:18]URL: /json_proto [19:00:18]Method is POST - this is cgi request [19:00:18]url: /json_proto [19:00:18]query_string will be loaded in cgi processing [19:00:18]execute_cgi json_proto POST (null) [19:00:18]execute_cgi path=json_proto method=POST [19:00:18]POST find Content-Length [19:00:18]Host: 172.17.39.67:8080 [19:00:18]Content-Length: 683 [19:00:18]Content-Type: application/json [19:00:18] [19:00:18]POST finish read [19:00:18]Found Content-Length = 683 [19:00:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:18]execute_script... [19:00: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)1319203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:00:18]POST & json_proto [19:00:18]process_json_proto [19:00:18]json parsed OK: [19:00:18]protocol is kg_v1.0 [19:00:18]action value=close_receipt [19:00:18]process_action close_receipt [19:00:18]cmd_close_receipt [19:00:18]MH_GetDate [19:00:18]Write to MH i2c: F0 00 00 E8 21 F8 [19:00:18]Write i2c OK [19:00:18]MH_I2C_Read... [19:00:18]Read from MH i2c: F0 [19:00:18]MH_I2C_Read... [19:00:18]Read from MH i2c: F0 09 00 [19:00:18]MH_I2C_Read... [19:00:18]Read from MH i2c: F0 09 00 E8 21 00 C3 CE 92 66 86 7C 92 66 84 [19:00:18]GetLastDocTimeStamp 1720897091 [19:00:18]current date 1720897219 [19:00:18]FM_GetShiftState [19:00:18]SAM_PROTO_GetShiftState [19:00:18]wFMCommunicate request_size=4 [19:00:18]MH_SAM_APDU [19:00:18]CAPDU: 80 13 01 00 [19:00:18]Write to MH i2c: E2 08 00 E9 21 80 13 01 00 00 00 00 00 87 [19:00:18]Write i2c OK [19:00:18]MH_I2C_Read... [19:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:18]Read from MH i2c: E2 [19:00:18]MH_I2C_Read... [19:00:18]Read from MH i2c: E2 0E 00 [19:00:18]MH_I2C_Read... [19:00:18]Read from MH i2c: E2 0E 00 E9 21 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 81 [19:00:18]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:00:18]wFMCommunicate OK [19:00:18]SAM_PROTO_GetShiftState done [19:00:18]FM_GetShiftState done [19:00:18]opened in 1720828979 [19:00:18]opened+sec_in_day 1720915379 [19:00:18]quantity*price = 100046 [19:00:18]sum+1 = 100048 [19:00:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 299 13.07.2024 19:00 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162631 ФПД: 40467015955166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190019&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162631&fm=40467015955166&tin=02508201610067®Number=0000000000090858&sum=100000 [19:00:19]StoreToDocumentArchive [19:00:19]shift 462 fd 162631 [19:00:19]save to /storage/0462/doc_00162631 [19:00:19]save last doc name /storage/0462/doc_00162631 to /storage/kkm_last_doc_name [19:00:19]save OK [19:00:19]Clear old archive folders... [19:00:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:19]tlvbuf is 006C9580 [19:00:19]SAM_PROTO_ClearQueue [19:00:19]wFMCommunicate request_size=4 [19:00:19]MH_SAM_APDU [19:00:19]CAPDU: 80 09 00 00 [19:00:19]Write to MH i2c: E2 08 00 F6 21 80 09 00 00 00 00 00 00 89 [19:00:19]Write i2c OK [19:00:19]MH_I2C_Read... [19:00:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:19]Read from MH i2c: E2 [19:00:19]MH_I2C_Read... [19:00:19]Read from MH i2c: E2 03 00 [19:00:19]MH_I2C_Read... [19:00:19]Read from MH i2c: E2 03 00 F6 21 00 90 00 8B [19:00:19]RAPDU: 90 00 [19:00:19]wFMCommunicate OK [19:00:19]SAM_PROTO_ClearQueue done [19:00:19]KKMCreateOFDPacket [19:00:19]OFDProtocolAddRootSTLVToBuf [19:00:19]FM_MakeSignedData [19:00:19]FM_MakeSignedData [19:00:19]SAM_PROTO_SignData [19:00:19]wFMCommunicate request_size=4 [19:00:19]MH_SAM_APDU [19:00:19]CAPDU: 80 0D 01 02 [19:00:19]Write to MH i2c: E2 08 00 F7 21 80 0D 01 02 00 00 00 00 91 [19:00:19]Write i2c OK [19:00:19]MH_I2C_Read... [19:00:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:19]Read from MH i2c: E2 [19:00:19]MH_I2C_Read... [19:00:19]Read from MH i2c: E2 03 00 [19:00:19]MH_I2C_Read... [19:00:19]Read from MH i2c: E2 03 00 F7 21 00 90 00 8C [19:00:19]RAPDU: 90 00 [19:00:19]wFMCommunicate OK [19:00:19]wFMCommunicate request_size=255 [19:00:19]MH_SAM_APDU [19:00:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2B 01 00 00 F4 03 04 00 C3 CE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7B 02 00 35 04 06 00 24 [19:00:19]Write to MH i2c: E2 02 01 F8 21 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2B 01 00 00 F4 03 04 00 C3 CE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7B 02 00 35 04 06 00 24 00 00 09 [19:00:19]Write i2c OK [19:00:19]MH_I2C_Read... [19:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:20]Read from MH i2c: E2 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: E2 03 00 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: E2 03 00 F8 21 00 90 00 8D [19:00:20]RAPDU: 90 00 [19:00:20]wFMCommunicate OK [19:00:20]wFMCommunicate request_size=10 [19:00:20]MH_SAM_APDU [19:00:20]CAPDU: 80 0D 02 02 05 CD F6 1C 72 DE [19:00:20]Write to MH i2c: E2 0D 00 F9 21 80 0D 02 02 05 00 CD F6 1C 72 DE 00 00 CD [19:00:20]Write i2c OK [19:00:20]MH_I2C_Read... [19:00:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:20]Read from MH i2c: E2 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: E2 03 00 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: E2 03 00 F9 21 00 90 00 8E [19:00:20]RAPDU: 90 00 [19:00:20]wFMCommunicate OK [19:00:20]wFMCommunicate request_size=4 [19:00:20]MH_SAM_APDU [19:00:20]CAPDU: 80 0D 03 02 [19:00:20]Write to MH i2c: E2 08 00 FA 21 80 0D 03 02 00 00 00 00 96 [19:00:20]Write i2c OK [19:00:20]MH_I2C_Read... [19:00:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:20]Read from MH i2c: E2 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: E2 0B 00 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: E2 0B 00 FA 21 00 71 F8 EA 96 10 1E E2 6D 90 00 FD [19:00:20]RAPDU: 71 F8 EA 96 10 1E E2 6D 90 00 [19:00:20]wFMCommunicate OK [19:00:20]SAM_PROTO_SignData done [19:00:20]FM_MakeSignedData done [19:00:20]CreateOFDProtocolMessage [19:00:20]wFMCommunicate request_size=4 [19:00:20]MH_SAM_APDU [19:00:20]CAPDU: 80 11 00 00 [19:00:20]Write to MH i2c: E2 08 00 FB 21 80 11 00 00 00 00 00 00 96 [19:00:20]Write i2c OK [19:00:20]MH_I2C_Read... [19:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:20]Read from MH i2c: E2 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: E2 17 00 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: E2 17 00 FB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F6 [19:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:00:20]wFMCommunicate OK [19:00:20]CreateOFDProtocolMessage done [19:00:20]OFDSenderStorePacket 162631 [19:00:20]StoreOFDPacket docnum=162631 [19:00:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 90 F6 07 01 E5 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2B 01 00 00 F4 03 04 00 C3 CE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7B 02 00 35 04 06 00 24 CD F6 1C 72 DE 71 F8 EA 96 10 1E E2 6D [19:00:20]CheckFolder [19:00:20]dirname=/storage/ofd_packets [19:00:20]CheckFolder done [19:00:20]ProducePacketName [19:00:20]name=ofd_packets/00162631 [19:00:20]NVStorageSaveData ofd_packets/00162631 [19:00:20]File name is /storage/ofd_packets/00162631 [19:00:20]Write 301 bytes [19:00:20]NVStorageSaveData done [19:00:20]OFDSenderStorePacket done [19:00:20]KKMCreateOFDPacket done [19:00:20]NVStorageSaveData kkm_last_timestamp [19:00:20]File name is /storage/kkm_last_timestamp [19:00:20]Write 4 bytes [19:00:20]NVStorageSaveData done [19:00:20]ExternCall_PrintAddStr [19:00:20]wPrintStart [19:00:20]Write to MH i2c: 01 00 00 FC 21 1D [19:00:20]Write i2c OK [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: 01 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: 01 07 00 [19:00:20]MH_I2C_Read... [19:00:20]Read from MH i2c: 01 07 00 FC 21 00 00 00 00 00 FF 0F 32 [19:00:20]RasterBufferAndPrint [19:00:20]line Счет N : (1)1319203 [19:00:20]line ИНН: 02508201610067 [19:00:20]line Контрольно-Кассовый Чек [19:00:20]line ПРОДАЖА [19:00:20]line ТРК (МРК, ГНК) : 43 [19:00:20]line Товар: 2710124130 [19:00:20]line Аи-92-К-5 [19:00:20]line 15.090 * 66.30 [19:00:20]line = 1000.47 [19:00:20]line НДС 12% НСП 1% [19:00:20]line > о реализуемом товаре [19:00:20]line ОКРУГЛЕНИЕ: -0.47 [19:00:20]line ИТОГО: 1000.00 [19:00:20]line Внесено: 1000.00 [19:00:20]line СДАЧА: 0.00 [19:00:20]line НСП 1% : 8.85 [19:00:20]line НДС 12% : 106.24 [19:00:20]line Наличными: 1000.00 [19:00:20]line Безнал.: 0.00 [19:00:20]line Место: АЗС № 140 "Партнер Нефть" [19:00:20]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:00:20]line СНО: Общий режим [19:00:20]line Чек 299 13.07.2024 19:00 [19:00:20]line Смена: 462 ФФД: 1.0 [19:00:20]line ЗНМ: 0300000129 [19:00:20]line РНМ: 0000000000090858 [19:00:20]line Версия ККМ: 001 [19:00:20]line ФМ: 0000000000874899 [19:00:20]line ФД: 162631 [19:00:20]line ФПД: 40467015955166 [19:00:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190019&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162631&fm=40467015955166&tin=02508201610067®Number=0000000000090858&sum=100000 [19:00:20]OFD Sender: Processing packet 162631 [packets to send 106, broken 105] [19:00:20]ProducePacketName [19:00:20]name=ofd_packets/00162631 [19:00:20]OFD Sender: To server: pG, [19:00:20]CommunicateWithHost lk.salyk.kg:30040 [19:00:20]ConnectInit lk.salyk.kg [19:00:20]written 0, free lines is 4095 [19:00:20]Connected sock=10 [19:00:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 90 F6 07 01 E5 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2B 01 00 00 F4 03 04 00 C3 CE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 47 7B 02 00 35 04 06 00 24 CD F6 1C 72 DE 71 F8 EA 96 10 1E E2 6D [19:00:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 33 1D 47 00 F7 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 34 38 39 39 10 04 04 00 47 7B 02 00 F4 03 04 00 D2 7A 92 66 B6 04 01 00 00 40 17 BF A1 EB B7 FE F0 [19:00:21]CommunicateWithHost err = 0 [19:00:21]CheckOFDResponse [19:00:21]1017 (14) - 77093643461234 [19:00:21]1041 (16) - 0000000000874899 [19:00:21]1040 (4) - 162631 [19:00:21]1012 (4) - 13.07.2024 13:02 [19:00:21]1206 (1) - 0 [19:00:21]OFD Sender: Remove packet 162631 [19:00:21]ProducePacketName [19:00:21]name=ofd_packets/00162631 [19:00:21]NVStorageDeleteData [19:00:21]Write to MH i2c: 01 00 00 27 22 49 [19:00:21]Write i2c OK [19:00:21]MH_I2C_Read... [19:00:21]Read from MH i2c: 01 [19:00:21]MH_I2C_Read... [19:00:21]Read from MH i2c: 01 07 00 [19:00:21]MH_I2C_Read... [19:00:21]Read from MH i2c: 01 07 00 27 22 00 00 00 00 00 F6 0C 52 [19:00:21]RasterBufferAndPrint [19:00:21]line [19:00:21]line [19:00:21]line [19:00:21]line [19:00:21]line [19:00:21]written 0, free lines is 3324 [19:00:21]MH_Cut [19:00:21]Write to MH i2c: D1 01 00 2E 22 01 22 [19:00:21]Write i2c OK [19:00:21]MH_I2C_Read... [19:00:21]Read from MH i2c: D1 [19:00:21]MH_I2C_Read... [19:00:21]Read from MH i2c: D1 01 00 [19:00:21]MH_I2C_Read... [19:00:21]Read from MH i2c: D1 01 00 2E 22 00 21 [19:00:21]Write to MH i2c: 01 00 00 2F 22 51 [19:00:21]Write i2c OK [19:00:21]MH_I2C_Read... [19:00:21]OFD Sender: No OFD packet to send [19:00:21]*** Cut start [19:00:21]*** Purtial cut [19:00:21]*** CUTSNS_PIN = 0 [19:00:22]*** Stage 1: CUTSNS_PIN = 1 [19:00:23]Read from MH i2c: 01 [19:00:23]MH_I2C_Read... [19:00:23]*** Stop cut motor [19:00:23]*** Cut end [19:00:23]Read from MH i2c: 01 07 00 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: 01 07 00 2F 22 00 00 00 00 00 FF 0F 66 [19:00:23]process_action close_receipt done [19:00:23]requested_data is exist [19:00:23]produce_requested_data [19:00:23]requested_item fm.sn is exist - process it [19:00:23]wFMCommunicate request_size=4 [19:00:23]MH_SAM_APDU [19:00:23]CAPDU: 80 11 00 00 [19:00:23]Write to MH i2c: E2 08 00 30 22 80 11 00 00 00 00 00 00 CC [19:00:23]Write i2c OK [19:00:23]MH_I2C_Read... [19:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:23]Read from MH i2c: E2 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: E2 17 00 [19:00:23]MH_I2C_Read... [19:00:23]Read from MH i2c: E2 17 00 30 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2C [19:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:00:23]wFMCommunicate OK [19:00:23]requested_item fd.num is exist - process it [19:00:23]SAM_PROTO_GetFieldsCounters [19:00:23]wFMCommunicate request_size=4 [19:00:23]MH_SAM_APDU [19:00:23]CAPDU: 80 13 00 00 [19:00:23]Write to MH i2c: E2 08 00 31 22 80 13 00 00 00 00 00 00 CF [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 62 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 62 00 31 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 47 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [19:00:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 47 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:24]wFMCommunicate OK [19:00:24]SAM_PROTO_GetFieldsCounters done [19:00:24]requested_item shift.num is exist - process it [19:00:24]requested_item shift.opened is exist - process it [19:00:24]req_shift_opened [19:00:24]FM_GetShiftState [19:00:24]SAM_PROTO_GetShiftState [19:00:24]wFMCommunicate request_size=4 [19:00:24]MH_SAM_APDU [19:00:24]CAPDU: 80 13 01 00 [19:00:24]Write to MH i2c: E2 08 00 32 22 80 13 01 00 00 00 00 00 D1 [19:00:24]Write i2c OK [19:00:24]MH_I2C_Read... [19:00:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:24]Read from MH i2c: E2 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 0E 00 [19:00:24]MH_I2C_Read... [19:00:24]Read from MH i2c: E2 0E 00 32 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CB [19:00:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:00:24]wFMCommunicate OK [19:00:24]SAM_PROTO_GetShiftState done [19:00:24]FM_GetShiftState done [19:00:24]req_shift_opened done [19:00:24]requested_item shift.open_date is exist - process it [19:00:24]req_shift_open_date [19:00:24]req_shift_open_date done [19:00:24]produce_requested_data done [19:00:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162631,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:00:24]process_action_free close_receipt [19:00:24]json_value_free [19:00:24]json_value_free done [19:00:24]process_json_proto returns [19:00:24]Send response to host [19:00:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162631,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:00:24]free response buf [19:00:24]execute_script done [19:00:24]execute_script returns [19:00:24]free content buf [19:00:24]Sock 7.Close socket [19:00:24]Sock 7.Thread stoped [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:01]accept exits with 9 [19:01:01]New connection [19:01:01]New thread 3067366756 created [19:01:01]Thread 3067510116 joined [19:01:01]Waiting for new connection... [19:01:01] Sock 9.Parse request [19:01:01]Sock 9.Check first char [19:01:01]Sock 9.First char is OK [19:01:01]request: POST /json_proto HTTP/1.0 [19:01:01]Method: POST [19:01:01]URL: /json_proto [19:01:01]Method is POST - this is cgi request [19:01:01]url: /json_proto [19:01:01]query_string will be loaded in cgi processing [19:01:01]execute_cgi json_proto POST (null) [19:01:01]execute_cgi path=json_proto method=POST [19:01:01]POST find Content-Length [19:01:01]Host: 172.17.39.67:8080 [19:01:01]Content-Length: 1207 [19:01:01]Content-Type: application/json [19:01:01] [19:01:01]POST finish read [19:01:01]Found Content-Length = 1207 [19:01:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319204\u000A13.07.2024 18:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 726.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4023465\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:01]execute_script... [19:01:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319204\u000A13.07.2024 18:58\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 10.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 726.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A4023465\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:01]POST & json_proto [19:01:01]process_json_proto [19:01:01]json parsed OK: [19:01:01]protocol is kg_v1.0 [19:01:01]action value=print_text [19:01:01]process_action print_text [19:01:01]cmd_print_text [19:01:01]ExternCall_PrintAddStr [19:01:01]wPrintStart [19:01:01]Write to MH i2c: 01 00 00 33 22 55 [19:01:01]Write i2c OK [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: 01 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: 01 07 00 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: 01 07 00 33 22 00 00 00 00 00 FF 0F 6A [19:01:01]RasterBufferAndPrint [19:01:01]line *****ТОВАРНЫЙ ЧЕК***** [19:01:01]line АЗС 140 [19:01:01]line Партнер нефть [19:01:01]line 02508201610067 [19:01:01]line Кассир : Шамбеталиев А. [19:01:01]line Счет N : (1)1319204 [19:01:01]line 13.07.2024 18:58 [19:01:01]line ПРОДАЖА [19:01:01]line ТРК (МРК, ГНК): 21 [19:01:01]line Вид ГСМ : 2710194210 [19:01:01]line ДТ(л)-К-5 [19:01:01]line 10.000 x 72.60 [19:01:01]line ИТОГ: 726.00 [19:01:01]line Тип оплаты: Талоны: Партнер нефть [19:01:01]line 4023465 [19:01:01]line ______________________ [19:01:01]line (подпись) [19:01:01]written 0, free lines is 4095 [19:01:02]Write to MH i2c: 01 00 00 48 22 6A [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: 01 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: 01 07 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: 01 07 00 48 22 00 00 00 00 00 F4 0D 72 [19:01:02]RasterBufferAndPrint [19:01:02]line [19:01:02]line [19:01:02]line [19:01:02]line [19:01:02]line [19:01:02]written 0, free lines is 3574 [19:01:02]MH_Cut [19:01:02]Write to MH i2c: D1 01 00 4F 22 01 43 [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: D1 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: D1 01 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: D1 01 00 4F 22 00 42 [19:01:02]Write to MH i2c: 01 00 00 50 22 72 [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]*** Cut start [19:01:02]*** Purtial cut [19:01:02]*** Stage 1: CUTSNS_PIN = 1 [19:01:02]Read from MH i2c: 01 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: 01 07 00 [19:01:02]MH_I2C_Read... [19:01:02]*** Stop cut motor [19:01:02]*** Cut end [19:01:02]Read from MH i2c: 01 07 00 50 22 00 00 00 00 00 FF 0F 87 [19:01:02]process_action print_text done [19:01:02]requested_data is exist [19:01:02]produce_requested_data [19:01:02]requested_item fm.sn is exist - process it [19:01:02]wFMCommunicate request_size=4 [19:01:02]MH_SAM_APDU [19:01:02]CAPDU: 80 11 00 00 [19:01:02]Write to MH i2c: E2 08 00 51 22 80 11 00 00 00 00 00 00 ED [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:02]Read from MH i2c: E2 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 17 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: E2 17 00 51 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4D [19:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:01:02]wFMCommunicate OK [19:01:02]requested_item fd.num is exist - process it [19:01:02]SAM_PROTO_GetFieldsCounters [19:01:02]wFMCommunicate request_size=4 [19:01:02]MH_SAM_APDU [19:01:02]CAPDU: 80 13 00 00 [19:01:02]Write to MH i2c: E2 08 00 52 22 80 13 00 00 00 00 00 00 F0 [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:03]Read from MH i2c: E2 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 62 00 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 62 00 52 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 47 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 3A [19:01:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 47 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:03]wFMCommunicate OK [19:01:03]SAM_PROTO_GetFieldsCounters done [19:01:03]requested_item shift.num is exist - process it [19:01:03]requested_item shift.opened is exist - process it [19:01:03]req_shift_opened [19:01:03]FM_GetShiftState [19:01:03]SAM_PROTO_GetShiftState [19:01:03]wFMCommunicate request_size=4 [19:01:03]MH_SAM_APDU [19:01:03]CAPDU: 80 13 01 00 [19:01:03]Write to MH i2c: E2 08 00 53 22 80 13 01 00 00 00 00 00 F2 [19:01:03]Write i2c OK [19:01:03]MH_I2C_Read... [19:01:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:03]Read from MH i2c: E2 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 0E 00 [19:01:03]MH_I2C_Read... [19:01:03]Read from MH i2c: E2 0E 00 53 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EC [19:01:03]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:01:03]wFMCommunicate OK [19:01:03]SAM_PROTO_GetShiftState done [19:01:03]FM_GetShiftState done [19:01:03]req_shift_opened done [19:01:03]requested_item shift.open_date is exist - process it [19:01:03]req_shift_open_date [19:01:03]req_shift_open_date done [19:01:03]produce_requested_data done [19:01:03]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162631,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:01:03]process_action_free print_text [19:01:03]json_value_free [19:01:03]json_value_free done [19:01:03]process_json_proto returns [19:01:03]Send response to host [19:01:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162631,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:01:03]free response buf [19:01:03]execute_script done [19:01:03]execute_script returns [19:01:03]free content buf [19:01:03]Sock 9.Close socket [19:01:03]Sock 9.Thread stoped [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:30]accept exits with 7 [19:02:30]New connection [19:02:30]New thread 3067510116 created [19:02:30]Thread 3067366756 joined [19:02:30]Waiting for new connection... [19:02:30] Sock 7.Parse request [19:02:30]Sock 7.Check first char [19:02:30]Sock 7.First char is OK [19:02:30]request: POST /json_proto HTTP/1.0 [19:02:30]Method: POST [19:02:30]URL: /json_proto [19:02:30]Method is POST - this is cgi request [19:02:30]url: /json_proto [19:02:30]query_string will be loaded in cgi processing [19:02:30]execute_cgi json_proto POST (null) [19:02:30]execute_cgi path=json_proto method=POST [19:02:30]POST find Content-Length [19:02:30]Host: 172.17.39.67:8080 [19:02:30]Content-Length: 807 [19:02:30]Content-Type: application/json [19:02:30] [19:02:30]POST finish read [19:02:30]Found Content-Length = 807 [19:02:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:30]execute_script... [19:02: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)1319205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.770, "sum" : 999.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.70 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:02:30]POST & json_proto [19:02:30]process_json_proto [19:02:30]json parsed OK: [19:02:30]protocol is kg_v1.0 [19:02:30]action value=close_receipt [19:02:30]process_action close_receipt [19:02:30]cmd_close_receipt [19:02:30]MH_GetDate [19:02:30]Write to MH i2c: F0 00 00 54 22 65 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: F0 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: F0 09 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: F0 09 00 54 22 00 47 CF 92 66 86 7C 92 66 76 [19:02:30]GetLastDocTimeStamp 1720897219 [19:02:30]current date 1720897351 [19:02:30]FM_GetShiftState [19:02:30]SAM_PROTO_GetShiftState [19:02:30]wFMCommunicate request_size=4 [19:02:30]MH_SAM_APDU [19:02:30]CAPDU: 80 13 01 00 [19:02:30]Write to MH i2c: E2 08 00 55 22 80 13 01 00 00 00 00 00 F4 [19:02:30]Write i2c OK [19:02:30]MH_I2C_Read... [19:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:30]Read from MH i2c: E2 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 0E 00 [19:02:30]MH_I2C_Read... [19:02:30]Read from MH i2c: E2 0E 00 55 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EE [19:02:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:02:30]wFMCommunicate OK [19:02:30]SAM_PROTO_GetShiftState done [19:02:30]FM_GetShiftState done [19:02:30]opened in 1720828979 [19:02:30]opened+sec_in_day 1720915379 [19:02:30]quantity*price = 99970 [19:02:30]sum+1 = 99971 [19:02:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.70 НСП 1% : 8.85 НДС 12% : 106.16 Наличными: 0.00 Безнал.: 999.70 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 300 13.07.2024 19:02 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162632 ФПД: 78046558284650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190232&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162632&fm=78046558284650&tin=02508201610067®Number=0000000000090858&sum=99970 [19:02:31]StoreToDocumentArchive [19:02:31]shift 462 fd 162632 [19:02:31]save to /storage/0462/doc_00162632 [19:02:31]save last doc name /storage/0462/doc_00162632 to /storage/kkm_last_doc_name [19:02:31]save OK [19:02:31]Clear old archive folders... [19:02:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:02:31]tlvbuf is B6F309D0 [19:02:31]SAM_PROTO_ClearQueue [19:02:31]wFMCommunicate request_size=4 [19:02:31]MH_SAM_APDU [19:02:31]CAPDU: 80 09 00 00 [19:02:31]Write to MH i2c: E2 08 00 62 22 80 09 00 00 00 00 00 00 F6 [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:31]Read from MH i2c: E2 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 03 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 03 00 62 22 00 90 00 F8 [19:02:31]RAPDU: 90 00 [19:02:31]wFMCommunicate OK [19:02:31]SAM_PROTO_ClearQueue done [19:02:31]KKMCreateOFDPacket [19:02:31]OFDProtocolAddRootSTLVToBuf [19:02:31]FM_MakeSignedData [19:02:31]FM_MakeSignedData [19:02:31]SAM_PROTO_SignData [19:02:31]wFMCommunicate request_size=4 [19:02:31]MH_SAM_APDU [19:02:31]CAPDU: 80 0D 01 02 [19:02:31]Write to MH i2c: E2 08 00 63 22 80 0D 01 02 00 00 00 00 FE [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:31]Read from MH i2c: E2 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 03 00 [19:02:31]MH_I2C_Read... [19:02:31]Read from MH i2c: E2 03 00 63 22 00 90 00 F9 [19:02:31]RAPDU: 90 00 [19:02:31]wFMCommunicate OK [19:02:31]wFMCommunicate request_size=255 [19:02:31]MH_SAM_APDU [19:02:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 48 CF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7B 02 00 35 04 06 00 [19:02:31]Write to MH i2c: E2 02 01 64 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 48 CF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7B 02 00 35 04 06 00 00 00 D0 [19:02:31]Write i2c OK [19:02:31]MH_I2C_Read... [19:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:32]Read from MH i2c: E2 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: E2 03 00 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: E2 03 00 64 22 00 90 00 FA [19:02:32]RAPDU: 90 00 [19:02:32]wFMCommunicate OK [19:02:32]wFMCommunicate request_size=11 [19:02:32]MH_SAM_APDU [19:02:32]CAPDU: 80 0D 02 02 06 46 FB A1 61 EB 6A [19:02:32]Write to MH i2c: E2 0E 00 65 22 80 0D 02 02 06 00 46 FB A1 61 EB 6A 00 00 A5 [19:02:32]Write i2c OK [19:02:32]MH_I2C_Read... [19:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:32]Read from MH i2c: E2 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: E2 03 00 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: E2 03 00 65 22 00 90 00 FB [19:02:32]RAPDU: 90 00 [19:02:32]wFMCommunicate OK [19:02:32]wFMCommunicate request_size=4 [19:02:32]MH_SAM_APDU [19:02:32]CAPDU: 80 0D 03 02 [19:02:32]Write to MH i2c: E2 08 00 66 22 80 0D 03 02 00 00 00 00 03 [19:02:32]Write i2c OK [19:02:32]MH_I2C_Read... [19:02:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:32]Read from MH i2c: E2 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: E2 0B 00 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: E2 0B 00 66 22 00 EA AF 65 28 E2 E3 E0 CC 90 00 9B [19:02:32]RAPDU: EA AF 65 28 E2 E3 E0 CC 90 00 [19:02:32]wFMCommunicate OK [19:02:32]SAM_PROTO_SignData done [19:02:32]FM_MakeSignedData done [19:02:32]CreateOFDProtocolMessage [19:02:32]wFMCommunicate request_size=4 [19:02:32]MH_SAM_APDU [19:02:32]CAPDU: 80 11 00 00 [19:02:32]Write to MH i2c: E2 08 00 67 22 80 11 00 00 00 00 00 00 03 [19:02:32]Write i2c OK [19:02:32]MH_I2C_Read... [19:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:32]Read from MH i2c: E2 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: E2 17 00 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: E2 17 00 67 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 63 [19:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:02:32]wFMCommunicate OK [19:02:32]CreateOFDProtocolMessage done [19:02:32]OFDSenderStorePacket 162632 [19:02:32]StoreOFDPacket docnum=162632 [19:02:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D4 52 08 01 1D D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 48 CF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7B 02 00 35 04 06 00 46 FB A1 61 EB 6A EA AF 65 28 E2 E3 E0 CC [19:02:32]CheckFolder [19:02:32]dirname=/storage/ofd_packets [19:02:32]CheckFolder done [19:02:32]ProducePacketName [19:02:32]name=ofd_packets/00162632 [19:02:32]NVStorageSaveData ofd_packets/00162632 [19:02:32]File name is /storage/ofd_packets/00162632 [19:02:32]Write 302 bytes [19:02:32]NVStorageSaveData done [19:02:32]OFDSenderStorePacket done [19:02:32]KKMCreateOFDPacket done [19:02:32]NVStorageSaveData kkm_last_timestamp [19:02:32]File name is /storage/kkm_last_timestamp [19:02:32]Write 4 bytes [19:02:32]NVStorageSaveData done [19:02:32]ExternCall_PrintAddStr [19:02:32]wPrintStart [19:02:32]Write to MH i2c: 01 00 00 68 22 8A [19:02:32]Write i2c OK [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: 01 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: 01 07 00 [19:02:32]MH_I2C_Read... [19:02:32]Read from MH i2c: 01 07 00 68 22 00 00 00 00 00 FF 0F 9F [19:02:32]RasterBufferAndPrint [19:02:32]line Счет N : (1)1319205 [19:02:32]line ИНН: 02508201610067 [19:02:32]line Контрольно-Кассовый Чек [19:02:32]line ПРОДАЖА [19:02:32]line ТРК (МРК, ГНК) : 61 [19:02:32]line Товар: 2710194210 [19:02:32]line ДТ(л)-К-5 [19:02:32]line 13.770 * 72.60 [19:02:32]line = 999.70 [19:02:32]line НДС 12% НСП 1% [19:02:32]line > о реализуемом товаре [19:02:32]line ИТОГО: 999.70 [19:02:32]line НСП 1% : 8.85 [19:02:32]line НДС 12% : 106.16 [19:02:32]line Наличными: 0.00 [19:02:32]line Безнал.: 999.70 [19:02:32]line Место: АЗС № 140 "Партнер Нефть" [19:02:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:02:32]line СНО: Общий режим [19:02:32]line Чек 300 13.07.2024 19:02 [19:02:32]line Смена: 462 ФФД: 1.0 [19:02:32]line ЗНМ: 0300000129 [19:02:32]line РНМ: 0000000000090858 [19:02:32]line Версия ККМ: 001 [19:02:32]line Платежная система: O! деньги [19:02:32]line ФМ: 0000000000874899 [19:02:32]line ФД: 162632 [19:02:32]line ФПД: 78046558284650 [19:02:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190232&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162632&fm=78046558284650&tin=02508201610067®Number=0000000000090858&sum=99970 [19:02:32]written 0, free lines is 4095 [19:02:32]OFD Sender: Processing packet 162632 [packets to send 106, broken 105] [19:02:32]ProducePacketName [19:02:32]name=ofd_packets/00162632 [19:02:32]OFD Sender: To server: pG, [19:02:32]CommunicateWithHost lk.salyk.kg:30040 [19:02:32]ConnectInit lk.salyk.kg [19:02:32]Connected sock=10 [19:02:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D4 52 08 01 1D D6 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 82 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 82 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 82 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 48 CF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7B 02 00 35 04 06 00 46 FB A1 61 EB 6A EA AF 65 28 E2 E3 E0 CC [19:02:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 26 01 47 00 B6 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 48 7B 02 00 F4 03 04 00 56 7B 92 66 B6 04 01 00 00 B8 FA 31 12 05 10 B9 65 [19:02:33]CommunicateWithHost err = 0 [19:02:33]CheckOFDResponse [19:02:33]1017 (14) - 77093643461234 [19:02:33]1041 (16) - 0000000000874899 [19:02:33]1040 (4) - 162632 [19:02:33]1012 (4) - 13.07.2024 13:04 [19:02:33]1206 (1) - 0 [19:02:33]OFD Sender: Remove packet 162632 [19:02:33]ProducePacketName [19:02:33]name=ofd_packets/00162632 [19:02:33]NVStorageDeleteData [19:02:33]Write to MH i2c: 01 00 00 92 22 B4 [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: 01 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: 01 07 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: 01 07 00 92 22 00 00 00 00 00 EF 0C B6 [19:02:33]RasterBufferAndPrint [19:02:33]line [19:02:33]line [19:02:33]line [19:02:33]line [19:02:33]line [19:02:33]written 0, free lines is 3318 [19:02:33]MH_Cut [19:02:33]Write to MH i2c: D1 01 00 99 22 01 8D [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: D1 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: D1 01 00 [19:02:33]MH_I2C_Read... [19:02:33]Read from MH i2c: D1 01 00 99 22 00 8C [19:02:33]Write to MH i2c: 01 00 00 9A 22 BC [19:02:33]Write i2c OK [19:02:33]MH_I2C_Read... [19:02:33]OFD Sender: No OFD packet to send [19:02:33]*** Cut start [19:02:33]*** Purtial cut [19:02:33]*** CUTSNS_PIN = 0 [19:02:34]*** Stage 1: CUTSNS_PIN = 1 [19:02:35]Read from MH i2c: 01 [19:02:35]MH_I2C_Read... [19:02:35]*** Stop cut motor [19:02:35]*** Cut end [19:02:35]Read from MH i2c: 01 07 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: 01 07 00 9A 22 00 00 00 00 00 FF 0F D1 [19:02:35]process_action close_receipt done [19:02:35]requested_data is exist [19:02:35]produce_requested_data [19:02:35]requested_item fm.sn is exist - process it [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 11 00 00 [19:02:35]Write to MH i2c: E2 08 00 9B 22 80 11 00 00 00 00 00 00 37 [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:35]Read from MH i2c: E2 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 17 00 [19:02:35]MH_I2C_Read... [19:02:35]Read from MH i2c: E2 17 00 9B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 97 [19:02:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:02:35]wFMCommunicate OK [19:02:35]requested_item fd.num is exist - process it [19:02:35]SAM_PROTO_GetFieldsCounters [19:02:35]wFMCommunicate request_size=4 [19:02:35]MH_SAM_APDU [19:02:35]CAPDU: 80 13 00 00 [19:02:35]Write to MH i2c: E2 08 00 9C 22 80 13 00 00 00 00 00 00 3A [19:02:35]Write i2c OK [19:02:35]MH_I2C_Read... [19:02:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:36]Read from MH i2c: E2 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: E2 62 00 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: E2 62 00 9C 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 48 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:02:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 48 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:36]wFMCommunicate OK [19:02:36]SAM_PROTO_GetFieldsCounters done [19:02:36]requested_item shift.num is exist - process it [19:02:36]requested_item shift.opened is exist - process it [19:02:36]req_shift_opened [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 9D 22 80 13 01 00 00 00 00 00 3C [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 9D 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 36 [19:02:36]RAPDU: 09 00 01 33 C4 91 66 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]req_shift_opened done [19:02:36]requested_item shift.open_date is exist - process it [19:02:36]req_shift_open_date [19:02:36]req_shift_open_date done [19:02:36]produce_requested_data done [19:02:36]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162632,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:02:36]process_action_free close_receipt [19:02:36]json_value_free [19:02:36]json_value_free done [19:02:36]process_json_proto returns [19:02:36]Send response to host [19:02:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162632,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:02:36]free response buf [19:02:36]execute_script done [19:02:36]execute_script returns [19:02:36]free content buf [19:02:36]Sock 7.Close socket [19:02:36]Sock 7.Thread stoped [19:02:36]accept exits with 9 [19:02:36]New connection [19:02:36]New thread 3067366756 created [19:02:36]Thread 3067510116 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.39.67:8080 [19:02:36]Content-Length: 1217 [19:02:36]Content-Type: application/json [19:02:36] [19:02:36]POST finish read [19:02:36]Found Content-Length = 1217 [19:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319202\u000A13.07.2024 19:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474984/3474985\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319202\u000A13.07.2024 19:00\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 100.000 x 72.60\u000A\u0418\u0422\u041E\u0413: 7260.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A3474984/3474985\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "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=print_text [19:02:36]process_action print_text [19:02:36]cmd_print_text [19:02:36]ExternCall_PrintAddStr [19:02:36]wPrintStart [19:02:36]Write to MH i2c: 01 00 00 9E 22 C0 [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 07 00 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 FF 0F D5 [19:02:36]RasterBufferAndPrint [19:02:36]line *****ТОВАРНЫЙ ЧЕК***** [19:02:36]line АЗС 140 [19:02:36]line Партнер нефть [19:02:36]line 02508201610067 [19:02:36]line Кассир : Шамбеталиев А. [19:02:36]line Счет N : (1)1319202 [19:02:36]line 13.07.2024 19:00 [19:02:36]line ПРОДАЖА [19:02:36]line ТРК (МРК, ГНК): 11 [19:02:36]line Вид ГСМ : 2710194210 [19:02:36]line ДТ(л)-К-5 [19:02:36]line 100.000 x 72.60 [19:02:36]line ИТОГ: 7260.00 [19:02:36]line Тип оплаты: Талоны: Партнер нефть [19:02:36]line 3474984/3474985 [19:02:36]line ______________________ [19:02:36]line (подпись) [19:02:36]written 0, free lines is 4095 [19:02:36]Write to MH i2c: 01 00 00 B3 22 D5 [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 07 00 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: 01 07 00 B3 22 00 00 00 00 00 F9 0D E2 [19:02:36]RasterBufferAndPrint [19:02:36]line [19:02:36]line [19:02:36]line [19:02:36]line [19:02:36]line [19:02:36]written 0, free lines is 3581 [19:02:36]MH_Cut [19:02:36]Write to MH i2c: D1 01 00 BA 22 01 AE [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: D1 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: D1 01 00 [19:02:36]MH_I2C_Read... [19:02:36]Read from MH i2c: D1 01 00 BA 22 00 AD [19:02:36]Write to MH i2c: 01 00 00 BB 22 DD [19:02:36]Write i2c OK [19:02:36]MH_I2C_Read... [19:02:37]*** Cut start [19:02:37]*** Purtial cut [19:02:37]*** Stage 1: CUTSNS_PIN = 1 [19:02:37]Read from MH i2c: 01 [19:02:37]MH_I2C_Read... [19:02:37]*** Stop cut motor [19:02:37]*** Cut end [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 BB 22 00 00 00 00 00 FF 0F F2 [19:02:37]process_action print_text done [19:02:37]requested_data is exist [19:02:37]produce_requested_data [19:02:37]requested_item fm.sn is exist - process it [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 BC 22 80 11 00 00 00 00 00 00 58 [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 BC 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B8 [19:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:02:37]wFMCommunicate OK [19:02:37]requested_item fd.num is exist - process it [19:02:37]SAM_PROTO_GetFieldsCounters [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 13 00 00 [19:02:37]Write to MH i2c: E2 08 00 BD 22 80 13 00 00 00 00 00 00 5B [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 62 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 62 00 BD 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 48 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [19:02:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 48 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:02:37]wFMCommunicate OK [19:02:37]SAM_PROTO_GetFieldsCounters done [19:02:37]requested_item shift.num is exist - process it [19:02:37]requested_item shift.opened is exist - process it [19:02:37]req_shift_opened [19:02:37]FM_GetShiftState [19:02:37]SAM_PROTO_GetShiftState [19:02:37]wFMCommunicate request_size=4 [19:02:37]MH_SAM_APDU [19:02:37]CAPDU: 80 13 01 00 [19:02:37]Write to MH i2c: E2 08 00 BE 22 80 13 01 00 00 00 00 00 5D [19:02:37]Write i2c OK [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 [19:02:37]MH_I2C_Read... [19:02:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:37]Read from MH i2c: E2 0E 00 [19:02:37]MH_I2C_Read... [19:02:37]Read from MH i2c: E2 0E 00 BE 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 57 [19:02:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:02:37]wFMCommunicate OK [19:02:37]SAM_PROTO_GetShiftState done [19:02:37]FM_GetShiftState done [19:02:37]req_shift_opened done [19:02:37]requested_item shift.open_date is exist - process it [19:02:37]req_shift_open_date [19:02:37]req_shift_open_date done [19:02:37]produce_requested_data done [19:02:37]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162632,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:02:37]process_action_free print_text [19:02:37]json_value_free [19:02:37]json_value_free done [19:02:37]process_json_proto returns [19:02:37]Send response to host [19:02:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162632,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:02:37]free response buf [19:02:37]execute_script done [19:02:37]execute_script returns [19:02:37]free content buf [19:02:37]Sock 9.Close socket [19:02:37]Sock 9.Thread stoped [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]accept exits with 7 [19:04:38]New connection [19:04:38]New thread 3067510116 created [19:04:38]Thread 3067366756 joined [19:04:38]Waiting for new connection... [19:04:38] Sock 7.Parse request [19:04:38]Sock 7.Check first char [19:04:38]Sock 7.First char is OK [19:04:38]request: POST /json_proto HTTP/1.0 [19:04:38]Method: POST [19:04:38]URL: /json_proto [19:04:38]Method is POST - this is cgi request [19:04:38]url: /json_proto [19:04:38]query_string will be loaded in cgi processing [19:04:38]execute_cgi json_proto POST (null) [19:04:38]execute_cgi path=json_proto method=POST [19:04:38]POST find Content-Length [19:04:38]Host: 172.17.39.67:8080 [19:04:38]Content-Length: 683 [19:04:38]Content-Type: application/json [19:04:38] [19:04:38]POST finish read [19:04:38]Found Content-Length = 683 [19:04:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.740, "sum" : 489.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 489.00, "total" : 489.00, "payments": [ { "type": 0, "sum" : 489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:38]execute_script... [19:04: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)1319206", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 6.740, "sum" : 489.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 489.00, "total" : 489.00, "payments": [ { "type": 0, "sum" : 489.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:38]POST & json_proto [19:04:38]process_json_proto [19:04:38]json parsed OK: [19:04:38]protocol is kg_v1.0 [19:04:38]action value=close_receipt [19:04:38]process_action close_receipt [19:04:38]cmd_close_receipt [19:04:38]MH_GetDate [19:04:38]Write to MH i2c: F0 00 00 BF 22 D0 [19:04:38]Write i2c OK [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: F0 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: F0 09 00 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: F0 09 00 BF 22 00 C7 CF 92 66 86 7C 92 66 61 [19:04:38]GetLastDocTimeStamp 1720897352 [19:04:38]current date 1720897479 [19:04:38]FM_GetShiftState [19:04:38]SAM_PROTO_GetShiftState [19:04:38]wFMCommunicate request_size=4 [19:04:38]MH_SAM_APDU [19:04:38]CAPDU: 80 13 01 00 [19:04:38]Write to MH i2c: E2 08 00 C0 22 80 13 01 00 00 00 00 00 5F [19:04:38]Write i2c OK [19:04:38]MH_I2C_Read... [19:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:38]Read from MH i2c: E2 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 0E 00 [19:04:38]MH_I2C_Read... [19:04:38]Read from MH i2c: E2 0E 00 C0 22 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 59 [19:04:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:04:38]wFMCommunicate OK [19:04:38]SAM_PROTO_GetShiftState done [19:04:38]FM_GetShiftState done [19:04:38]opened in 1720828979 [19:04:38]opened+sec_in_day 1720915379 [19:04:38]quantity*price = 48932 [19:04:38]sum+1 = 48933 [19:04:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 489.00 Внесено: 489.00 СДАЧА: 0.00 НСП 1% : 4.33 НДС 12% : 51.96 Наличными: 489.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 301 13.07.2024 19:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162633 ФПД: 209755194213960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190439&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162633&fm=209755194213960&tin=02508201610067®Number=0000000000090858&sum=48900 [19:04:39]StoreToDocumentArchive [19:04:39]shift 462 fd 162633 [19:04:39]save to /storage/0462/doc_00162633 [19:04:39]save last doc name /storage/0462/doc_00162633 to /storage/kkm_last_doc_name [19:04:39]save OK [19:04:39]Clear old archive folders... [19:04:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:04:39]tlvbuf is 006B0D00 [19:04:39]SAM_PROTO_ClearQueue [19:04:39]wFMCommunicate request_size=4 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 09 00 00 [19:04:39]Write to MH i2c: E2 08 00 CD 22 80 09 00 00 00 00 00 00 61 [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 03 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 03 00 CD 22 00 90 00 63 [19:04:39]RAPDU: 90 00 [19:04:39]wFMCommunicate OK [19:04:39]SAM_PROTO_ClearQueue done [19:04:39]KKMCreateOFDPacket [19:04:39]OFDProtocolAddRootSTLVToBuf [19:04:39]FM_MakeSignedData [19:04:39]FM_MakeSignedData [19:04:39]SAM_PROTO_SignData [19:04:39]wFMCommunicate request_size=4 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 0D 01 02 [19:04:39]Write to MH i2c: E2 08 00 CE 22 80 0D 01 02 00 00 00 00 69 [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 03 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 03 00 CE 22 00 90 00 64 [19:04:39]RAPDU: 90 00 [19:04:39]wFMCommunicate OK [19:04:39]wFMCommunicate request_size=255 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 24 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 C7 CF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7B 02 00 35 04 06 00 [19:04:39]Write to MH i2c: E2 02 01 CF 22 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 24 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 C7 CF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7B 02 00 35 04 06 00 00 00 72 [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 03 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 03 00 CF 22 00 90 00 65 [19:04:39]RAPDU: 90 00 [19:04:39]wFMCommunicate OK [19:04:39]wFMCommunicate request_size=11 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 0D 02 02 06 BE C5 6F D7 46 48 [19:04:39]Write to MH i2c: E2 0E 00 D0 22 80 0D 02 02 06 00 BE C5 6F D7 46 48 00 00 CF [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 03 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 03 00 D0 22 00 90 00 66 [19:04:39]RAPDU: 90 00 [19:04:39]wFMCommunicate OK [19:04:39]wFMCommunicate request_size=4 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 0D 03 02 [19:04:39]Write to MH i2c: E2 08 00 D1 22 80 0D 03 02 00 00 00 00 6E [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 0B 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 0B 00 D1 22 00 66 E2 DA 19 73 81 09 7B 90 00 22 [19:04:39]RAPDU: 66 E2 DA 19 73 81 09 7B 90 00 [19:04:39]wFMCommunicate OK [19:04:39]SAM_PROTO_SignData done [19:04:39]FM_MakeSignedData done [19:04:39]CreateOFDProtocolMessage [19:04:39]wFMCommunicate request_size=4 [19:04:39]MH_SAM_APDU [19:04:39]CAPDU: 80 11 00 00 [19:04:39]Write to MH i2c: E2 08 00 D2 22 80 11 00 00 00 00 00 00 6E [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:39]Read from MH i2c: E2 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 17 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: E2 17 00 D2 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [19:04:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:04:39]wFMCommunicate OK [19:04:39]CreateOFDProtocolMessage done [19:04:39]OFDSenderStorePacket 162633 [19:04:39]StoreOFDPacket docnum=162633 [19:04:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 79 9C 08 01 15 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 24 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 C7 CF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7B 02 00 35 04 06 00 BE C5 6F D7 46 48 66 E2 DA 19 73 81 09 7B [19:04:39]CheckFolder [19:04:39]dirname=/storage/ofd_packets [19:04:39]CheckFolder done [19:04:39]ProducePacketName [19:04:39]name=ofd_packets/00162633 [19:04:39]NVStorageSaveData ofd_packets/00162633 [19:04:39]File name is /storage/ofd_packets/00162633 [19:04:39]Write 302 bytes [19:04:39]NVStorageSaveData done [19:04:39]OFDSenderStorePacket done [19:04:39]KKMCreateOFDPacket done [19:04:39]NVStorageSaveData kkm_last_timestamp [19:04:39]File name is /storage/kkm_last_timestamp [19:04:39]Write 4 bytes [19:04:39]NVStorageSaveData done [19:04:39]ExternCall_PrintAddStr [19:04:39]wPrintStart [19:04:39]Write to MH i2c: 01 00 00 D3 22 F5 [19:04:39]Write i2c OK [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: 01 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: 01 07 00 [19:04:39]MH_I2C_Read... [19:04:39]Read from MH i2c: 01 07 00 D3 22 00 00 00 00 00 FF 0F 0A [19:04:39]RasterBufferAndPrint [19:04:39]line Счет N : (1)1319206 [19:04:39]line ИНН: 02508201610067 [19:04:39]line Контрольно-Кассовый Чек [19:04:39]line ПРОДАЖА [19:04:39]line ТРК (МРК, ГНК) : 41 [19:04:39]line Товар: 2710194210 [19:04:39]line ДТ(л)-К-5 [19:04:39]line 6.740 * 72.60 [19:04:39]line = 489.32 [19:04:39]line НДС 12% НСП 1% [19:04:39]line > о реализуемом товаре [19:04:39]line ОКРУГЛЕНИЕ: -0.32 [19:04:39]line ИТОГО: 489.00 [19:04:39]line Внесено: 489.00 [19:04:39]line СДАЧА: 0.00 [19:04:39]line НСП 1% : 4.33 [19:04:39]line НДС 12% : 51.96 [19:04:39]line Наличными: 489.00 [19:04:39]line Безнал.: 0.00 [19:04:39]line Место: АЗС № 140 "Партнер Нефть" [19:04:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:04:39]line СНО: Общий режим [19:04:39]line Чек 301 13.07.2024 19:04 [19:04:39]line Смена: 462 ФФД: 1.0 [19:04:39]line ЗНМ: 0300000129 [19:04:39]line РНМ: 0000000000090858 [19:04:39]line Версия ККМ: 001 [19:04:39]line ФМ: 0000000000874899 [19:04:39]line ФД: 162633 [19:04:39]line ФПД: 209755194213960 [19:04:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190439&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162633&fm=209755194213960&tin=02508201610067®Number=0000000000090858&sum=48900 [19:04:40]OFD Sender: Processing packet 162633 [packets to send 106, broken 105] [19:04:40]ProducePacketName [19:04:40]name=ofd_packets/00162633 [19:04:40]OFD Sender: To server: pG, [19:04:40]CommunicateWithHost lk.salyk.kg:30040 [19:04:40]ConnectInit lk.salyk.kg [19:04:40]written 0, free lines is 4095 [19:04:40]Connected sock=10 [19:04:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 79 9C 08 01 15 7C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 24 BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 14 00 00 00 00 07 04 06 00 04 BF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 C7 CF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7B 02 00 35 04 06 00 BE C5 6F D7 46 48 66 E2 DA 19 73 81 09 7B [19:04:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 90 5F 47 00 A2 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 49 7B 02 00 F4 03 04 00 D5 7B 92 66 B6 04 01 00 00 01 CA 24 45 B8 86 EA BE [19:04:40]CommunicateWithHost err = 0 [19:04:40]CheckOFDResponse [19:04:40]1017 (14) - 77093643461234 [19:04:40]1041 (16) - 0000000000874899 [19:04:40]1040 (4) - 162633 [19:04:40]1012 (4) - 13.07.2024 13:06 [19:04:40]1206 (1) - 0 [19:04:40]OFD Sender: Remove packet 162633 [19:04:40]ProducePacketName [19:04:40]name=ofd_packets/00162633 [19:04:40]NVStorageDeleteData [19:04:40]Write to MH i2c: 01 00 00 FE 22 20 [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: 01 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: 01 07 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: 01 07 00 FE 22 00 00 00 00 00 DF 0C 12 [19:04:40]RasterBufferAndPrint [19:04:40]line [19:04:40]line [19:04:40]line [19:04:40]line [19:04:40]line [19:04:40]written 0, free lines is 3301 [19:04:40]MH_Cut [19:04:40]Write to MH i2c: D1 01 00 05 23 01 FA [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: D1 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: D1 01 00 [19:04:40]MH_I2C_Read... [19:04:40]Read from MH i2c: D1 01 00 05 23 00 F9 [19:04:40]Write to MH i2c: 01 00 00 06 23 29 [19:04:40]Write i2c OK [19:04:40]MH_I2C_Read... [19:04:40]OFD Sender: No OFD packet to send [19:04:41]*** Cut start [19:04:41]*** Purtial cut [19:04:41]*** CUTSNS_PIN = 0 [19:04:41]*** Stage 1: CUTSNS_PIN = 1 [19:04:43]Read from MH i2c: 01 [19:04:43]MH_I2C_Read... [19:04:43]*** Stop cut motor [19:04:43]*** Cut end [19:04:43]Read from MH i2c: 01 07 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: 01 07 00 06 23 00 00 00 00 00 FF 0F 3E [19:04:43]process_action close_receipt done [19:04:43]requested_data is exist [19:04:43]produce_requested_data [19:04:43]requested_item fm.sn is exist - process it [19:04:43]wFMCommunicate request_size=4 [19:04:43]MH_SAM_APDU [19:04:43]CAPDU: 80 11 00 00 [19:04:43]Write to MH i2c: E2 08 00 07 23 80 11 00 00 00 00 00 00 A4 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:43]Read from MH i2c: E2 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 17 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 17 00 07 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 04 [19:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:04:43]wFMCommunicate OK [19:04:43]requested_item fd.num is exist - process it [19:04:43]SAM_PROTO_GetFieldsCounters [19:04:43]wFMCommunicate request_size=4 [19:04:43]MH_SAM_APDU [19:04:43]CAPDU: 80 13 00 00 [19:04:43]Write to MH i2c: E2 08 00 08 23 80 13 00 00 00 00 00 00 A7 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:43]Read from MH i2c: E2 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 62 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 62 00 08 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 49 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [19:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 49 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:43]wFMCommunicate OK [19:04:43]SAM_PROTO_GetFieldsCounters done [19:04:43]requested_item shift.num is exist - process it [19:04:43]requested_item shift.opened is exist - process it [19:04:43]req_shift_opened [19:04:43]FM_GetShiftState [19:04:43]SAM_PROTO_GetShiftState [19:04:43]wFMCommunicate request_size=4 [19:04:43]MH_SAM_APDU [19:04:43]CAPDU: 80 13 01 00 [19:04:43]Write to MH i2c: E2 08 00 09 23 80 13 01 00 00 00 00 00 A9 [19:04:43]Write i2c OK [19:04:43]MH_I2C_Read... [19:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:43]Read from MH i2c: E2 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 0E 00 [19:04:43]MH_I2C_Read... [19:04:43]Read from MH i2c: E2 0E 00 09 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A3 [19:04:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:04:43]wFMCommunicate OK [19:04:43]SAM_PROTO_GetShiftState done [19:04:43]FM_GetShiftState done [19:04:43]req_shift_opened done [19:04:43]requested_item shift.open_date is exist - process it [19:04:43]req_shift_open_date [19:04:43]req_shift_open_date done [19:04:43]produce_requested_data done [19:04:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162633,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:04:43]process_action_free close_receipt [19:04:43]json_value_free [19:04:43]json_value_free done [19:04:43]process_json_proto returns [19:04:43]Send response to host [19:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162633,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:04:43]free response buf [19:04:43]execute_script done [19:04:43]execute_script returns [19:04:43]free content buf [19:04:43]Sock 7.Close socket [19:04:43]Sock 7.Thread stoped [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:01]OFD Sender: No OFD packet to send [19:07:06]OFD Sender: No OFD packet to send [19:07:11]OFD Sender: No OFD packet to send [19:07:16]OFD Sender: No OFD packet to send [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:50]accept exits with 9 [19:09:50]New connection [19:09:50]New thread 3067366756 created [19:09:50]Thread 3067510116 joined [19:09:50]Waiting for new connection... [19:09:50] Sock 9.Parse request [19:09:50]Sock 9.Check first char [19:09:50]Sock 9.First char is OK [19:09:50]request: POST /json_proto HTTP/1.0 [19:09:50]Method: POST [19:09:50]URL: /json_proto [19:09:50]Method is POST - this is cgi request [19:09:50]url: /json_proto [19:09:50]query_string will be loaded in cgi processing [19:09:50]execute_cgi json_proto POST (null) [19:09:50]execute_cgi path=json_proto method=POST [19:09:50]POST find Content-Length [19:09:50]Host: 172.17.39.67:8080 [19:09:50]Content-Length: 825 [19:09:50]Content-Type: application/json [19:09:50] [19:09:50]POST finish read [19:09:50]Found Content-Length = 825 [19:09:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:50]execute_script... [19:09:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:50]POST & json_proto [19:09:50]process_json_proto [19:09:50]json parsed OK: [19:09:50]protocol is kg_v1.0 [19:09:50]action value=close_receipt [19:09:50]process_action close_receipt [19:09:50]cmd_close_receipt [19:09:50]MH_GetDate [19:09:50]Write to MH i2c: F0 00 00 0A 23 1C [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: F0 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: F0 09 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: F0 09 00 0A 23 00 00 D1 92 66 86 7C 92 66 E8 [19:09:50]GetLastDocTimeStamp 1720897479 [19:09:50]current date 1720897792 [19:09:50]FM_GetShiftState [19:09:50]SAM_PROTO_GetShiftState [19:09:50]wFMCommunicate request_size=4 [19:09:50]MH_SAM_APDU [19:09:50]CAPDU: 80 13 01 00 [19:09:50]Write to MH i2c: E2 08 00 0B 23 80 13 01 00 00 00 00 00 AB [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:51]Read from MH i2c: E2 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 0E 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 0E 00 0B 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A5 [19:09:51]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:09:51]wFMCommunicate OK [19:09:51]SAM_PROTO_GetShiftState done [19:09:51]FM_GetShiftState done [19:09:51]opened in 1720828979 [19:09:51]opened+sec_in_day 1720915379 [19:09:51]quantity*price = 100042 [19:09:51]sum+1 = 100044 [19:09:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 302 13.07.2024 19:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162634 ФПД: 144800324635164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190952&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162634&fm=144800324635164&tin=02508201610067®Number=0000000000090858&sum=100043 [19:09:52]StoreToDocumentArchive [19:09:52]shift 462 fd 162634 [19:09:52]save to /storage/0462/doc_00162634 [19:09:52]save last doc name /storage/0462/doc_00162634 to /storage/kkm_last_doc_name [19:09:52]save OK [19:09:52]Clear old archive folders... [19:09:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:09:52]tlvbuf is 006DB890 [19:09:52]SAM_PROTO_ClearQueue [19:09:52]wFMCommunicate request_size=4 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 09 00 00 [19:09:52]Write to MH i2c: E2 08 00 18 23 80 09 00 00 00 00 00 00 AD [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 18 23 00 90 00 AF [19:09:52]RAPDU: 90 00 [19:09:52]wFMCommunicate OK [19:09:52]SAM_PROTO_ClearQueue done [19:09:52]KKMCreateOFDPacket [19:09:52]OFDProtocolAddRootSTLVToBuf [19:09:52]FM_MakeSignedData [19:09:52]FM_MakeSignedData [19:09:52]SAM_PROTO_SignData [19:09:52]wFMCommunicate request_size=4 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 0D 01 02 [19:09:52]Write to MH i2c: E2 08 00 19 23 80 0D 01 02 00 00 00 00 B5 [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 19 23 00 90 00 B0 [19:09:52]RAPDU: 90 00 [19:09:52]wFMCommunicate OK [19:09:52]wFMCommunicate request_size=255 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 00 D1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7B 02 00 35 04 06 00 [19:09:52]Write to MH i2c: E2 02 01 1A 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 00 D1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7B 02 00 35 04 06 00 00 00 32 [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 1A 23 00 90 00 B1 [19:09:52]RAPDU: 90 00 [19:09:52]wFMCommunicate OK [19:09:52]wFMCommunicate request_size=11 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 0D 02 02 06 83 B1 F3 E9 CA 1C [19:09:52]Write to MH i2c: E2 0E 00 1B 23 80 0D 02 02 06 00 83 B1 F3 E9 CA 1C 00 00 BA [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 03 00 1B 23 00 90 00 B2 [19:09:52]RAPDU: 90 00 [19:09:52]wFMCommunicate OK [19:09:52]wFMCommunicate request_size=4 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 0D 03 02 [19:09:52]Write to MH i2c: E2 08 00 1C 23 80 0D 03 02 00 00 00 00 BA [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 0B 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 0B 00 1C 23 00 4A BC 37 1A C4 8F 32 C4 90 00 5B [19:09:52]RAPDU: 4A BC 37 1A C4 8F 32 C4 90 00 [19:09:52]wFMCommunicate OK [19:09:52]SAM_PROTO_SignData done [19:09:52]FM_MakeSignedData done [19:09:52]CreateOFDProtocolMessage [19:09:52]wFMCommunicate request_size=4 [19:09:52]MH_SAM_APDU [19:09:52]CAPDU: 80 11 00 00 [19:09:52]Write to MH i2c: E2 08 00 1D 23 80 11 00 00 00 00 00 00 BA [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 17 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 17 00 1D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1A [19:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:09:52]wFMCommunicate OK [19:09:52]CreateOFDProtocolMessage done [19:09:52]OFDSenderStorePacket 162634 [19:09:52]StoreOFDPacket docnum=162634 [19:09:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 77 46 08 01 95 C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 00 D1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7B 02 00 35 04 06 00 83 B1 F3 E9 CA 1C 4A BC 37 1A C4 8F 32 C4 [19:09:52]CheckFolder [19:09:52]dirname=/storage/ofd_packets [19:09:52]CheckFolder done [19:09:52]ProducePacketName [19:09:52]name=ofd_packets/00162634 [19:09:52]NVStorageSaveData ofd_packets/00162634 [19:09:52]File name is /storage/ofd_packets/00162634 [19:09:52]Write 302 bytes [19:09:52]NVStorageSaveData done [19:09:52]OFDSenderStorePacket done [19:09:52]KKMCreateOFDPacket done [19:09:52]NVStorageSaveData kkm_last_timestamp [19:09:52]File name is /storage/kkm_last_timestamp [19:09:52]Write 4 bytes [19:09:52]NVStorageSaveData done [19:09:52]ExternCall_PrintAddStr [19:09:52]wPrintStart [19:09:52]Write to MH i2c: 01 00 00 1E 23 41 [19:09:52]Write i2c OK [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: 01 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: 01 07 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: 01 07 00 1E 23 00 00 00 00 00 FF 0F 56 [19:09:52]RasterBufferAndPrint [19:09:52]line Счет N : (1)1319207 [19:09:52]line ИНН: 02508201610067 [19:09:52]line Контрольно-Кассовый Чек [19:09:52]line ПРОДАЖА [19:09:52]line ТРК (МРК, ГНК) : 21 [19:09:52]line Товар: 2710194210 [19:09:52]line ДТ(л)-К-5 [19:09:52]line 13.780 * 72.60 [19:09:52]line = 1000.43 [19:09:52]line НДС 12% НСП 1% [19:09:52]line > о реализуемом товаре [19:09:52]line ИТОГО: 1000.43 [19:09:52]line НСП 1% : 8.85 [19:09:52]line НДС 12% : 106.24 [19:09:52]line Наличными: 0.00 [19:09:52]line Безнал.: 1000.43 [19:09:52]line Место: АЗС № 140 "Партнер Нефть" [19:09:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:09:52]line СНО: Общий режим [19:09:52]line Чек 302 13.07.2024 19:09 [19:09:52]line Смена: 462 ФФД: 1.0 [19:09:52]line ЗНМ: 0300000129 [19:09:52]line РНМ: 0000000000090858 [19:09:52]line Версия ККМ: 001 [19:09:52]line Платежная система: Бакай Банк [19:09:52]line ФМ: 0000000000874899 [19:09:52]line ФД: 162634 [19:09:52]line ФПД: 144800324635164 [19:09:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T190952&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162634&fm=144800324635164&tin=02508201610067®Number=0000000000090858&sum=100043 [19:09:53]OFD Sender: Processing packet 162634 [packets to send 106, broken 105] [19:09:53]ProducePacketName [19:09:53]name=ofd_packets/00162634 [19:09:53]OFD Sender: To server: pG, [19:09:53]CommunicateWithHost lk.salyk.kg:30040 [19:09:53]ConnectInit lk.salyk.kg [19:09:53]written 0, free lines is 4095 [19:09:53]Connected sock=10 [19:09:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 77 46 08 01 95 C7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 00 D1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7B 02 00 35 04 06 00 83 B1 F3 E9 CA 1C 4A BC 37 1A C4 8F 32 C4 [19:09:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5B 8F 47 00 D4 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4A 7B 02 00 F4 03 04 00 0E 7D 92 66 B6 04 01 00 00 4B 61 B8 90 30 00 C9 50 [19:09:53]CommunicateWithHost err = 0 [19:09:53]CheckOFDResponse [19:09:53]1017 (14) - 77093643461234 [19:09:53]1041 (16) - 0000000000874899 [19:09:53]1040 (4) - 162634 [19:09:53]1012 (4) - 13.07.2024 13:11 [19:09:53]1206 (1) - 0 [19:09:53]OFD Sender: Remove packet 162634 [19:09:53]ProducePacketName [19:09:53]name=ofd_packets/00162634 [19:09:53]NVStorageDeleteData [19:09:53]Write to MH i2c: 01 00 00 48 23 6B [19:09:53]Write i2c OK [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 07 00 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: 01 07 00 48 23 00 00 00 00 00 E6 0C 64 [19:09:53]RasterBufferAndPrint [19:09:53]line [19:09:53]line [19:09:53]line [19:09:53]line [19:09:53]line [19:09:53]written 0, free lines is 3309 [19:09:53]MH_Cut [19:09:53]Write to MH i2c: D1 01 00 4F 23 01 44 [19:09:53]Write i2c OK [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: D1 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: D1 01 00 [19:09:53]MH_I2C_Read... [19:09:53]Read from MH i2c: D1 01 00 4F 23 00 43 [19:09:53]Write to MH i2c: 01 00 00 50 23 73 [19:09:53]Write i2c OK [19:09:53]MH_I2C_Read... [19:09:53]OFD Sender: No OFD packet to send [19:09:54]*** Cut start [19:09:54]*** Purtial cut [19:09:54]*** Stage 1: CUTSNS_PIN = 1 [19:09:54]Read from MH i2c: 01 [19:09:54]MH_I2C_Read... [19:09:54]*** Stop cut motor [19:09:54]*** Cut end [19:09:54]Read from MH i2c: 01 07 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: 01 07 00 50 23 00 00 00 00 00 FF 0F 88 [19:09:54]process_action close_receipt done [19:09:54]requested_data is exist [19:09:54]produce_requested_data [19:09:54]requested_item fm.sn is exist - process it [19:09:54]wFMCommunicate request_size=4 [19:09:54]MH_SAM_APDU [19:09:54]CAPDU: 80 11 00 00 [19:09:54]Write to MH i2c: E2 08 00 51 23 80 11 00 00 00 00 00 00 EE [19:09:54]Write i2c OK [19:09:54]MH_I2C_Read... [19:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:54]Read from MH i2c: E2 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 17 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 17 00 51 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [19:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:09:54]wFMCommunicate OK [19:09:54]requested_item fd.num is exist - process it [19:09:54]SAM_PROTO_GetFieldsCounters [19:09:54]wFMCommunicate request_size=4 [19:09:54]MH_SAM_APDU [19:09:54]CAPDU: 80 13 00 00 [19:09:54]Write to MH i2c: E2 08 00 52 23 80 13 00 00 00 00 00 00 F1 [19:09:54]Write i2c OK [19:09:54]MH_I2C_Read... [19:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:54]Read from MH i2c: E2 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 62 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 62 00 52 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [19:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:54]wFMCommunicate OK [19:09:54]SAM_PROTO_GetFieldsCounters done [19:09:54]requested_item shift.num is exist - process it [19:09:54]requested_item shift.opened is exist - process it [19:09:54]req_shift_opened [19:09:54]FM_GetShiftState [19:09:54]SAM_PROTO_GetShiftState [19:09:54]wFMCommunicate request_size=4 [19:09:54]MH_SAM_APDU [19:09:54]CAPDU: 80 13 01 00 [19:09:54]Write to MH i2c: E2 08 00 53 23 80 13 01 00 00 00 00 00 F3 [19:09:54]Write i2c OK [19:09:54]MH_I2C_Read... [19:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:54]Read from MH i2c: E2 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 0E 00 [19:09:54]MH_I2C_Read... [19:09:54]Read from MH i2c: E2 0E 00 53 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 ED [19:09:54]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:09:54]wFMCommunicate OK [19:09:54]SAM_PROTO_GetShiftState done [19:09:54]FM_GetShiftState done [19:09:54]req_shift_opened done [19:09:54]requested_item shift.open_date is exist - process it [19:09:54]req_shift_open_date [19:09:54]req_shift_open_date done [19:09:54]produce_requested_data done [19:09:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162634,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:09:54]process_action_free close_receipt [19:09:54]json_value_free [19:09:54]json_value_free done [19:09:54]process_json_proto returns [19:09:54]Send response to host [19:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162634,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:09:54]free response buf [19:09:54]execute_script done [19:09:54]execute_script returns [19:09:54]free content buf [19:09:54]Sock 9.Close socket [19:09:54]Sock 9.Thread stoped [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11:38]OFD Sender: No OFD packet to send [19:11:43]OFD Sender: No OFD packet to send [19:11:48]OFD Sender: No OFD packet to send [19:11:53]OFD Sender: No OFD packet to send [19:11:58]OFD Sender: No OFD packet to send [19:12:03]OFD Sender: No OFD packet to send [19:12:08]OFD Sender: No OFD packet to send [19:12:13]OFD Sender: No OFD packet to send [19:12:18]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:16]accept exits with 7 [19:17:16]New connection [19:17:16]New thread 3067510116 created [19:17:16]Thread 3067366756 joined [19:17:16]Waiting for new connection... [19:17:16] Sock 7.Parse request [19:17:16]Sock 7.Check first char [19:17:16]Sock 7.First char is OK [19:17:16]request: POST /json_proto HTTP/1.0 [19:17:16]Method: POST [19:17:16]URL: /json_proto [19:17:16]Method is POST - this is cgi request [19:17:16]url: /json_proto [19:17:16]query_string will be loaded in cgi processing [19:17:16]execute_cgi json_proto POST (null) [19:17:16]execute_cgi path=json_proto method=POST [19:17:16]POST find Content-Length [19:17:16]Host: 172.17.39.67:8080 [19:17:16]Content-Length: 678 [19:17:16]Content-Type: application/json [19:17:16] [19:17:16]POST finish read [19:17:16]Found Content-Length = 678 [19:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:16]execute_script... [19:17: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)1319209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:16]POST & json_proto [19:17:16]process_json_proto [19:17:16]json parsed OK: [19:17:16]protocol is kg_v1.0 [19:17:16]action value=close_receipt [19:17:16]process_action close_receipt [19:17:16]cmd_close_receipt [19:17:16]MH_GetDate [19:17:16]Write to MH i2c: F0 00 00 54 23 66 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: F0 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: F0 09 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: F0 09 00 54 23 00 BD D2 92 66 86 7C 92 66 F0 [19:17:16]GetLastDocTimeStamp 1720897792 [19:17:16]current date 1720898237 [19:17:16]FM_GetShiftState [19:17:16]SAM_PROTO_GetShiftState [19:17:16]wFMCommunicate request_size=4 [19:17:16]MH_SAM_APDU [19:17:16]CAPDU: 80 13 01 00 [19:17:16]Write to MH i2c: E2 08 00 55 23 80 13 01 00 00 00 00 00 F5 [19:17:16]Write i2c OK [19:17:16]MH_I2C_Read... [19:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:16]Read from MH i2c: E2 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 0E 00 [19:17:16]MH_I2C_Read... [19:17:16]Read from MH i2c: E2 0E 00 55 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EF [19:17:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:17:16]wFMCommunicate OK [19:17:16]SAM_PROTO_GetShiftState done [19:17:16]FM_GetShiftState done [19:17:16]opened in 1720828979 [19:17:16]opened+sec_in_day 1720915379 [19:17:16]quantity*price = 50056 [19:17:16]sum+1 = 50058 [19:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 303 13.07.2024 19:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162635 ФПД: 140654865581968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191717&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162635&fm=140654865581968&tin=02508201610067®Number=0000000000090858&sum=50000 [19:17:17]StoreToDocumentArchive [19:17:17]shift 462 fd 162635 [19:17:17]save to /storage/0462/doc_00162635 [19:17:17]save last doc name /storage/0462/doc_00162635 to /storage/kkm_last_doc_name [19:17:17]save OK [19:17:17]Clear old archive folders... [19:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:17:17]tlvbuf is B6F30350 [19:17:17]SAM_PROTO_ClearQueue [19:17:17]wFMCommunicate request_size=4 [19:17:17]MH_SAM_APDU [19:17:17]CAPDU: 80 09 00 00 [19:17:17]Write to MH i2c: E2 08 00 62 23 80 09 00 00 00 00 00 00 F7 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:17]Read from MH i2c: E2 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 03 00 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 03 00 62 23 00 90 00 F9 [19:17:17]RAPDU: 90 00 [19:17:17]wFMCommunicate OK [19:17:17]SAM_PROTO_ClearQueue done [19:17:17]KKMCreateOFDPacket [19:17:17]OFDProtocolAddRootSTLVToBuf [19:17:17]FM_MakeSignedData [19:17:17]FM_MakeSignedData [19:17:17]SAM_PROTO_SignData [19:17:17]wFMCommunicate request_size=4 [19:17:17]MH_SAM_APDU [19:17:17]CAPDU: 80 0D 01 02 [19:17:17]Write to MH i2c: E2 08 00 63 23 80 0D 01 02 00 00 00 00 FF [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:17]Read from MH i2c: E2 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 03 00 [19:17:17]MH_I2C_Read... [19:17:17]Read from MH i2c: E2 03 00 63 23 00 90 00 FA [19:17:17]RAPDU: 90 00 [19:17:17]wFMCommunicate OK [19:17:17]wFMCommunicate request_size=255 [19:17:17]MH_SAM_APDU [19:17:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 BD D2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7B 02 00 35 04 06 00 7F [19:17:17]Write to MH i2c: E2 02 01 64 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 BD D2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7B 02 00 35 04 06 00 7F 00 00 88 [19:17:17]Write i2c OK [19:17:17]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 03 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 03 00 64 23 00 90 00 FB [19:17:18]RAPDU: 90 00 [19:17:18]wFMCommunicate OK [19:17:18]wFMCommunicate request_size=10 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 0D 02 02 05 EC C3 4C 87 90 [19:17:18]Write to MH i2c: E2 0D 00 65 23 80 0D 02 02 05 00 EC C3 4C 87 90 00 00 1E [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 03 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 03 00 65 23 00 90 00 FC [19:17:18]RAPDU: 90 00 [19:17:18]wFMCommunicate OK [19:17:18]wFMCommunicate request_size=4 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 0D 03 02 [19:17:18]Write to MH i2c: E2 08 00 66 23 80 0D 03 02 00 00 00 00 04 [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 0B 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 0B 00 66 23 00 06 5D 8E C9 93 8F E1 E4 90 00 A6 [19:17:18]RAPDU: 06 5D 8E C9 93 8F E1 E4 90 00 [19:17:18]wFMCommunicate OK [19:17:18]SAM_PROTO_SignData done [19:17:18]FM_MakeSignedData done [19:17:18]CreateOFDProtocolMessage [19:17:18]wFMCommunicate request_size=4 [19:17:18]MH_SAM_APDU [19:17:18]CAPDU: 80 11 00 00 [19:17:18]Write to MH i2c: E2 08 00 67 23 80 11 00 00 00 00 00 00 04 [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:18]Read from MH i2c: E2 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 17 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: E2 17 00 67 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 64 [19:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:17:18]wFMCommunicate OK [19:17:18]CreateOFDProtocolMessage done [19:17:18]OFDSenderStorePacket 162635 [19:17:18]StoreOFDPacket docnum=162635 [19:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 76 A8 07 01 CB 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 BD D2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7B 02 00 35 04 06 00 7F EC C3 4C 87 90 06 5D 8E C9 93 8F E1 E4 [19:17:18]CheckFolder [19:17:18]dirname=/storage/ofd_packets [19:17:18]CheckFolder done [19:17:18]ProducePacketName [19:17:18]name=ofd_packets/00162635 [19:17:18]NVStorageSaveData ofd_packets/00162635 [19:17:18]File name is /storage/ofd_packets/00162635 [19:17:18]Write 301 bytes [19:17:18]NVStorageSaveData done [19:17:18]OFDSenderStorePacket done [19:17:18]KKMCreateOFDPacket done [19:17:18]NVStorageSaveData kkm_last_timestamp [19:17:18]File name is /storage/kkm_last_timestamp [19:17:18]Write 4 bytes [19:17:18]NVStorageSaveData done [19:17:18]ExternCall_PrintAddStr [19:17:18]wPrintStart [19:17:18]Write to MH i2c: 01 00 00 68 23 8B [19:17:18]Write i2c OK [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: 01 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: 01 07 00 [19:17:18]MH_I2C_Read... [19:17:18]Read from MH i2c: 01 07 00 68 23 00 00 00 00 00 FF 0F A0 [19:17:18]RasterBufferAndPrint [19:17:18]line Счет N : (1)1319209 [19:17:18]line ИНН: 02508201610067 [19:17:18]line Контрольно-Кассовый Чек [19:17:18]line ПРОДАЖА [19:17:18]line ТРК (МРК, ГНК) : 63 [19:17:18]line Товар: 2710124130 [19:17:18]line Аи-92-К-5 [19:17:18]line 7.550 * 66.30 [19:17:18]line = 500.57 [19:17:18]line НДС 12% НСП 1% [19:17:18]line > о реализуемом товаре [19:17:18]line ОКРУГЛЕНИЕ: -0.57 [19:17:18]line ИТОГО: 500.00 [19:17:18]line Внесено: 500.00 [19:17:18]line СДАЧА: 0.00 [19:17:18]line НСП 1% : 4.43 [19:17:18]line НДС 12% : 53.16 [19:17:18]line Наличными: 500.00 [19:17:18]line Безнал.: 0.00 [19:17:18]line Место: АЗС № 140 "Партнер Нефть" [19:17:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:17:18]line СНО: Общий режим [19:17:18]line Чек 303 13.07.2024 19:17 [19:17:18]line Смена: 462 ФФД: 1.0 [19:17:18]line ЗНМ: 0300000129 [19:17:18]line РНМ: 0000000000090858 [19:17:18]line Версия ККМ: 001 [19:17:18]line ФМ: 0000000000874899 [19:17:18]line ФД: 162635 [19:17:18]line ФПД: 140654865581968 [19:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191717&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162635&fm=140654865581968&tin=02508201610067®Number=0000000000090858&sum=50000 [19:17:18]OFD Sender: Processing packet 162635 [packets to send 106, broken 105] [19:17:18]ProducePacketName [19:17:18]name=ofd_packets/00162635 [19:17:18]OFD Sender: To server: pG, [19:17:18]CommunicateWithHost lk.salyk.kg:30040 [19:17:18]ConnectInit lk.salyk.kg [19:17:18]written 0, free lines is 4095 [19:17:18]Connected sock=10 [19:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 76 A8 07 01 CB 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 BD D2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7B 02 00 35 04 06 00 7F EC C3 4C 87 90 06 5D 8E C9 93 8F E1 E4 [19:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 53 28 47 00 7C 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4B 7B 02 00 F4 03 04 00 CC 7E 92 66 B6 04 01 00 00 72 5A CF AB 5F 09 D3 8A [19:17:18]CommunicateWithHost err = 0 [19:17:18]CheckOFDResponse [19:17:18]1017 (14) - 77093643461234 [19:17:18]1041 (16) - 0000000000874899 [19:17:18]1040 (4) - 162635 [19:17:18]1012 (4) - 13.07.2024 13:19 [19:17:18]1206 (1) - 0 [19:17:18]OFD Sender: Remove packet 162635 [19:17:18]ProducePacketName [19:17:18]name=ofd_packets/00162635 [19:17:18]NVStorageDeleteData [19:17:19]Write to MH i2c: 01 00 00 93 23 B6 [19:17:19]Write i2c OK [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: 01 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: 01 07 00 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: 01 07 00 93 23 00 00 00 00 00 DF 0C A8 [19:17:19]RasterBufferAndPrint [19:17:19]line [19:17:19]line [19:17:19]line [19:17:19]line [19:17:19]line [19:17:19]written 0, free lines is 3301 [19:17:19]MH_Cut [19:17:19]Write to MH i2c: D1 01 00 9A 23 01 8F [19:17:19]Write i2c OK [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: D1 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: D1 01 00 [19:17:19]MH_I2C_Read... [19:17:19]Read from MH i2c: D1 01 00 9A 23 00 8E [19:17:19]Write to MH i2c: 01 00 00 9B 23 BE [19:17:19]Write i2c OK [19:17:19]MH_I2C_Read... [19:17:19]OFD Sender: No OFD packet to send [19:17:19]*** Cut start [19:17:19]*** Purtial cut [19:17:19]*** CUTSNS_PIN = 0 [19:17:19]*** Stage 1: CUTSNS_PIN = 1 [19:17:21]Read from MH i2c: 01 [19:17:21]MH_I2C_Read... [19:17:21]*** Stop cut motor [19:17:21]*** Cut end [19:17:21]Read from MH i2c: 01 07 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: 01 07 00 9B 23 00 00 00 00 00 FF 0F D3 [19:17:21]process_action close_receipt done [19:17:21]requested_data is exist [19:17:21]produce_requested_data [19:17:21]requested_item fm.sn is exist - process it [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 11 00 00 [19:17:21]Write to MH i2c: E2 08 00 9C 23 80 11 00 00 00 00 00 00 39 [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:21]Read from MH i2c: E2 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 [19:17:21]MH_I2C_Read... [19:17:21]Read from MH i2c: E2 17 00 9C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [19:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:17:21]wFMCommunicate OK [19:17:21]requested_item fd.num is exist - process it [19:17:21]SAM_PROTO_GetFieldsCounters [19:17:21]wFMCommunicate request_size=4 [19:17:21]MH_SAM_APDU [19:17:21]CAPDU: 80 13 00 00 [19:17:21]Write to MH i2c: E2 08 00 9D 23 80 13 00 00 00 00 00 00 3C [19:17:21]Write i2c OK [19:17:21]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 62 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 62 00 9D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [19:17:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:22]wFMCommunicate OK [19:17:22]SAM_PROTO_GetFieldsCounters done [19:17:22]requested_item shift.num is exist - process it [19:17:22]requested_item shift.opened is exist - process it [19:17:22]req_shift_opened [19:17:22]FM_GetShiftState [19:17:22]SAM_PROTO_GetShiftState [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 13 01 00 [19:17:22]Write to MH i2c: E2 08 00 9E 23 80 13 01 00 00 00 00 00 3E [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 9E 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 38 [19:17:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:17:22]wFMCommunicate OK [19:17:22]SAM_PROTO_GetShiftState done [19:17:22]FM_GetShiftState done [19:17:22]req_shift_opened done [19:17:22]requested_item shift.open_date is exist - process it [19:17:22]req_shift_open_date [19:17:22]req_shift_open_date done [19:17:22]produce_requested_data done [19:17:22]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162635,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:17:22]process_action_free close_receipt [19:17:22]json_value_free [19:17:22]json_value_free done [19:17:22]process_json_proto returns [19:17:22]Send response to host [19:17:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162635,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:17:22]free response buf [19:17:22]execute_script done [19:17:22]execute_script returns [19:17:22]free content buf [19:17:22]Sock 7.Close socket [19:17:22]Sock 7.Thread stoped [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:29]accept exits with 9 [19:17:29]New connection [19:17:29]New thread 3067366756 created [19:17:29]Thread 3067510116 joined [19:17:29]Waiting for new connection... [19:17:29] Sock 9.Parse request [19:17:29]Sock 9.Check first char [19:17:29]Sock 9.First char is OK [19:17:29]request: POST /json_proto HTTP/1.0 [19:17:29]Method: POST [19:17:29]URL: /json_proto [19:17:29]Method is POST - this is cgi request [19:17:29]url: /json_proto [19:17:29]query_string will be loaded in cgi processing [19:17:29]execute_cgi json_proto POST (null) [19:17:29]execute_cgi path=json_proto method=POST [19:17:29]POST find Content-Length [19:17:29]Host: 172.17.39.67:8080 [19:17:29]Content-Length: 688 [19:17:29]Content-Type: application/json [19:17:29] [19:17:29]POST finish read [19:17:29]Found Content-Length = 688 [19:17:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:29]execute_script... [19:17: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)1319210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:29]POST & json_proto [19:17:29]process_json_proto [19:17:29]json parsed OK: [19:17:29]protocol is kg_v1.0 [19:17:29]action value=close_receipt [19:17:29]process_action close_receipt [19:17:29]cmd_close_receipt [19:17:29]MH_GetDate [19:17:29]Write to MH i2c: F0 00 00 9F 23 B1 [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: F0 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: F0 09 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: F0 09 00 9F 23 00 CB D2 92 66 86 7C 92 66 49 [19:17:29]GetLastDocTimeStamp 1720898237 [19:17:29]current date 1720898251 [19:17:29]FM_GetShiftState [19:17:29]SAM_PROTO_GetShiftState [19:17:29]wFMCommunicate request_size=4 [19:17:29]MH_SAM_APDU [19:17:29]CAPDU: 80 13 01 00 [19:17:29]Write to MH i2c: E2 08 00 A0 23 80 13 01 00 00 00 00 00 40 [19:17:29]Write i2c OK [19:17:29]MH_I2C_Read... [19:17:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:29]Read from MH i2c: E2 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: E2 0E 00 [19:17:29]MH_I2C_Read... [19:17:29]Read from MH i2c: E2 0E 00 A0 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3A [19:17:29]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:17:29]wFMCommunicate OK [19:17:29]SAM_PROTO_GetShiftState done [19:17:29]FM_GetShiftState done [19:17:29]opened in 1720828979 [19:17:29]opened+sec_in_day 1720915379 [19:17:29]quantity*price = 100042 [19:17:29]sum+1 = 100044 [19:17: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 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 304 13.07.2024 19:17 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162636 ФПД: 72560816942600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191731&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162636&fm=72560816942600&tin=02508201610067®Number=0000000000090858&sum=100000 [19:17:30]StoreToDocumentArchive [19:17:30]shift 462 fd 162636 [19:17:30]save to /storage/0462/doc_00162636 [19:17:30]save last doc name /storage/0462/doc_00162636 to /storage/kkm_last_doc_name [19:17:30]save OK [19:17:30]Clear old archive folders... [19:17:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:17:30]tlvbuf is B6F30370 [19:17:30]SAM_PROTO_ClearQueue [19:17:30]wFMCommunicate request_size=4 [19:17:30]MH_SAM_APDU [19:17:30]CAPDU: 80 09 00 00 [19:17:30]Write to MH i2c: E2 08 00 AD 23 80 09 00 00 00 00 00 00 42 [19:17:30]Write i2c OK [19:17:30]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 AD 23 00 90 00 44 [19:17:31]RAPDU: 90 00 [19:17:31]wFMCommunicate OK [19:17:31]SAM_PROTO_ClearQueue done [19:17:31]KKMCreateOFDPacket [19:17:31]OFDProtocolAddRootSTLVToBuf [19:17:31]FM_MakeSignedData [19:17:31]FM_MakeSignedData [19:17:31]SAM_PROTO_SignData [19:17:31]wFMCommunicate request_size=4 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 0D 01 02 [19:17:31]Write to MH i2c: E2 08 00 AE 23 80 0D 01 02 00 00 00 00 4A [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 AE 23 00 90 00 45 [19:17:31]RAPDU: 90 00 [19:17:31]wFMCommunicate OK [19:17:31]wFMCommunicate request_size=255 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 30 01 00 00 F4 03 04 00 CB D2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7B 02 00 35 04 06 00 [19:17:31]Write to MH i2c: E2 02 01 AF 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 30 01 00 00 F4 03 04 00 CB D2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7B 02 00 35 04 06 00 00 00 41 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 AF 23 00 90 00 46 [19:17:31]RAPDU: 90 00 [19:17:31]wFMCommunicate OK [19:17:31]wFMCommunicate request_size=11 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 0D 02 02 06 41 FE 61 B7 EE 08 [19:17:31]Write to MH i2c: E2 0E 00 B0 23 80 0D 02 02 06 00 41 FE 61 B7 EE 08 00 00 A6 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 03 00 B0 23 00 90 00 47 [19:17:31]RAPDU: 90 00 [19:17:31]wFMCommunicate OK [19:17:31]wFMCommunicate request_size=4 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 0D 03 02 [19:17:31]Write to MH i2c: E2 08 00 B1 23 80 0D 03 02 00 00 00 00 4F [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 0B 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 0B 00 B1 23 00 AB 62 AF D7 5B 17 51 10 90 00 B6 [19:17:31]RAPDU: AB 62 AF D7 5B 17 51 10 90 00 [19:17:31]wFMCommunicate OK [19:17:31]SAM_PROTO_SignData done [19:17:31]FM_MakeSignedData done [19:17:31]CreateOFDProtocolMessage [19:17:31]wFMCommunicate request_size=4 [19:17:31]MH_SAM_APDU [19:17:31]CAPDU: 80 11 00 00 [19:17:31]Write to MH i2c: E2 08 00 B2 23 80 11 00 00 00 00 00 00 4F [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:31]Read from MH i2c: E2 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 17 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: E2 17 00 B2 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [19:17:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:17:31]wFMCommunicate OK [19:17:31]CreateOFDProtocolMessage done [19:17:31]OFDSenderStorePacket 162636 [19:17:31]StoreOFDPacket docnum=162636 [19:17:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2F 1B 08 01 B2 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 30 01 00 00 F4 03 04 00 CB D2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7B 02 00 35 04 06 00 41 FE 61 B7 EE 08 AB 62 AF D7 5B 17 51 10 [19:17:31]CheckFolder [19:17:31]dirname=/storage/ofd_packets [19:17:31]CheckFolder done [19:17:31]ProducePacketName [19:17:31]name=ofd_packets/00162636 [19:17:31]NVStorageSaveData ofd_packets/00162636 [19:17:31]File name is /storage/ofd_packets/00162636 [19:17:31]Write 302 bytes [19:17:31]NVStorageSaveData done [19:17:31]OFDSenderStorePacket done [19:17:31]KKMCreateOFDPacket done [19:17:31]NVStorageSaveData kkm_last_timestamp [19:17:31]File name is /storage/kkm_last_timestamp [19:17:31]Write 4 bytes [19:17:31]NVStorageSaveData done [19:17:31]OFD Sender: Processing packet 162636 [packets to send 106, broken 105] [19:17:31]ProducePacketName [19:17:31]name=ofd_packets/00162636 [19:17:31]OFD Sender: To server: pG, [19:17:31]CommunicateWithHost lk.salyk.kg:30040 [19:17:31]ConnectInit lk.salyk.kg [19:17:31]ExternCall_PrintAddStr [19:17:31]wPrintStart [19:17:31]Write to MH i2c: 01 00 00 B3 23 D6 [19:17:31]Write i2c OK [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 07 00 [19:17:31]MH_I2C_Read... [19:17:31]Read from MH i2c: 01 07 00 B3 23 00 00 00 00 00 FF 0F EB [19:17:31]RasterBufferAndPrint [19:17:31]line Счет N : (1)1319210 [19:17:31]line ИНН: 02508201610067 [19:17:31]line Контрольно-Кассовый Чек [19:17:31]line ПРОДАЖА [19:17:31]line ТРК (МРК, ГНК) : 41 [19:17:31]line Товар: 2710194210 [19:17:31]line ДТ(л)-К-5 [19:17:31]line 13.780 * 72.60 [19:17:31]line = 1000.43 [19:17:31]line НДС 12% НСП 1% [19:17:31]line > о реализуемом товаре [19:17:31]line ОКРУГЛЕНИЕ: -0.43 [19:17:31]line ИТОГО: 1000.00 [19:17:31]line Внесено: 1000.00 [19:17:31]line СДАЧА: 0.00 [19:17:31]line НСП 1% : 8.85 [19:17:31]line НДС 12% : 106.24 [19:17:31]line Наличными: 1000.00 [19:17:31]line Безнал.: 0.00 [19:17:31]line Место: АЗС № 140 "Партнер Нефть" [19:17:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:17:31]line СНО: Общий режим [19:17:31]line Чек 304 13.07.2024 19:17 [19:17:31]line Смена: 462 ФФД: 1.0 [19:17:31]line ЗНМ: 0300000129 [19:17:31]line РНМ: 0000000000090858 [19:17:31]line Версия ККМ: 001 [19:17:31]line ФМ: 0000000000874899 [19:17:31]line ФД: 162636 [19:17:31]line ФПД: 72560816942600 [19:17:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191731&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162636&fm=72560816942600&tin=02508201610067®Number=0000000000090858&sum=100000 [19:17:31]Connected sock=11 [19:17:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2F 1B 08 01 B2 15 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 30 01 00 00 F4 03 04 00 CB D2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7B 02 00 35 04 06 00 41 FE 61 B7 EE 08 AB 62 AF D7 5B 17 51 10 [19:17:31]written 0, free lines is 4095 [19:17:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 53 3F 47 00 86 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4C 7B 02 00 F4 03 04 00 D9 7E 92 66 B6 04 01 00 00 52 62 06 70 4A D5 80 46 [19:17:32]CommunicateWithHost err = 0 [19:17:32]CheckOFDResponse [19:17:32]1017 (14) - 77093643461234 [19:17:32]1041 (16) - 0000000000874899 [19:17:32]1040 (4) - 162636 [19:17:32]1012 (4) - 13.07.2024 13:19 [19:17:32]1206 (1) - 0 [19:17:32]OFD Sender: Remove packet 162636 [19:17:32]ProducePacketName [19:17:32]name=ofd_packets/00162636 [19:17:32]NVStorageDeleteData [19:17:32]Write to MH i2c: 01 00 00 DE 23 01 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: 01 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: 01 07 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: 01 07 00 DE 23 00 00 00 00 00 D8 0C EC [19:17:32]RasterBufferAndPrint [19:17:32]line [19:17:32]line [19:17:32]line [19:17:32]line [19:17:32]line [19:17:32]written 0, free lines is 3297 [19:17:32]MH_Cut [19:17:32]Write to MH i2c: D1 01 00 E5 23 01 DA [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: D1 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: D1 01 00 [19:17:32]MH_I2C_Read... [19:17:32]Read from MH i2c: D1 01 00 E5 23 00 D9 [19:17:32]Write to MH i2c: 01 00 00 E6 23 09 [19:17:32]Write i2c OK [19:17:32]MH_I2C_Read... [19:17:32]OFD Sender: No OFD packet to send [19:17:33]*** Cut start [19:17:33]*** Purtial cut [19:17:33]*** Stage 1: CUTSNS_PIN = 1 [19:17:33]Read from MH i2c: 01 [19:17:33]MH_I2C_Read... [19:17:33]*** Stop cut motor [19:17:33]*** Cut end [19:17:33]Read from MH i2c: 01 07 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: 01 07 00 E6 23 00 00 00 00 00 FF 0F 1E [19:17:33]process_action close_receipt done [19:17:33]requested_data is exist [19:17:33]produce_requested_data [19:17:33]requested_item fm.sn is exist - process it [19:17:33]wFMCommunicate request_size=4 [19:17:33]MH_SAM_APDU [19:17:33]CAPDU: 80 11 00 00 [19:17:33]Write to MH i2c: E2 08 00 E7 23 80 11 00 00 00 00 00 00 84 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:33]Read from MH i2c: E2 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 17 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 17 00 E7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E4 [19:17:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:17:33]wFMCommunicate OK [19:17:33]requested_item fd.num is exist - process it [19:17:33]SAM_PROTO_GetFieldsCounters [19:17:33]wFMCommunicate request_size=4 [19:17:33]MH_SAM_APDU [19:17:33]CAPDU: 80 13 00 00 [19:17:33]Write to MH i2c: E2 08 00 E8 23 80 13 00 00 00 00 00 00 87 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:33]Read from MH i2c: E2 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 62 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 62 00 E8 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [19:17:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:33]wFMCommunicate OK [19:17:33]SAM_PROTO_GetFieldsCounters done [19:17:33]requested_item shift.num is exist - process it [19:17:33]requested_item shift.opened is exist - process it [19:17:33]req_shift_opened [19:17:33]FM_GetShiftState [19:17:33]SAM_PROTO_GetShiftState [19:17:33]wFMCommunicate request_size=4 [19:17:33]MH_SAM_APDU [19:17:33]CAPDU: 80 13 01 00 [19:17:33]Write to MH i2c: E2 08 00 E9 23 80 13 01 00 00 00 00 00 89 [19:17:33]Write i2c OK [19:17:33]MH_I2C_Read... [19:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:33]Read from MH i2c: E2 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 0E 00 [19:17:33]MH_I2C_Read... [19:17:33]Read from MH i2c: E2 0E 00 E9 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 83 [19:17:33]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:17:33]wFMCommunicate OK [19:17:33]SAM_PROTO_GetShiftState done [19:17:33]FM_GetShiftState done [19:17:33]req_shift_opened done [19:17:33]requested_item shift.open_date is exist - process it [19:17:33]req_shift_open_date [19:17:33]req_shift_open_date done [19:17:33]produce_requested_data done [19:17:33]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162636,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:17:33]process_action_free close_receipt [19:17:33]json_value_free [19:17:33]json_value_free done [19:17:33]process_json_proto returns [19:17:33]Send response to host [19:17:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162636,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:17:33]free response buf [19:17:33]execute_script done [19:17:33]execute_script returns [19:17:33]free content buf [19:17:33]Sock 9.Close socket [19:17:33]Sock 9.Thread stoped [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:25]accept exits with 7 [19:18:25]New connection [19:18:25]New thread 3067510116 created [19:18:25]Thread 3067366756 joined [19:18:25]Waiting for new connection... [19:18:25] Sock 7.Parse request [19:18:25]Sock 7.Check first char [19:18:25]Sock 7.First char is OK [19:18:25]request: POST /json_proto HTTP/1.0 [19:18:25]Method: POST [19:18:25]URL: /json_proto [19:18:25]Method is POST - this is cgi request [19:18:25]url: /json_proto [19:18:25]query_string will be loaded in cgi processing [19:18:25]execute_cgi json_proto POST (null) [19:18:25]execute_cgi path=json_proto method=POST [19:18:25]POST find Content-Length [19:18:25]Host: 172.17.39.67:8080 [19:18:25]Content-Length: 810 [19:18:25]Content-Type: application/json [19:18:25] [19:18:25]POST finish read [19:18:25]Found Content-Length = 810 [19:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 100.000, "sum" : 7260.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" : 7260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:25]execute_script... [19:18:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 100.000, "sum" : 7260.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" : 7260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:25]POST & json_proto [19:18:25]process_json_proto [19:18:25]json parsed OK: [19:18:25]protocol is kg_v1.0 [19:18:25]action value=close_receipt [19:18:25]process_action close_receipt [19:18:25]cmd_close_receipt [19:18:25]MH_GetDate [19:18:25]Write to MH i2c: F0 00 00 EA 23 FC [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: F0 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: F0 09 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: F0 09 00 EA 23 00 02 D3 92 66 86 7C 92 66 CC [19:18:25]GetLastDocTimeStamp 1720898251 [19:18:25]current date 1720898306 [19:18:25]FM_GetShiftState [19:18:25]SAM_PROTO_GetShiftState [19:18:25]wFMCommunicate request_size=4 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 13 01 00 [19:18:25]Write to MH i2c: E2 08 00 EB 23 80 13 01 00 00 00 00 00 8B [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 0E 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 0E 00 EB 23 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 85 [19:18:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:18:25]wFMCommunicate OK [19:18:25]SAM_PROTO_GetShiftState done [19:18:25]FM_GetShiftState done [19:18:25]opened in 1720828979 [19:18:25]opened+sec_in_day 1720915379 [19:18:25]quantity*price = 726000 [19:18:25]sum+1 = 726001 [19:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7260.00 НСП 1% : 64.25 НДС 12% : 770.97 Наличными: 0.00 Безнал.: 7260.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 305 13.07.2024 19:18 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162637 ФПД: 184781774896362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191826&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162637&fm=184781774896362&tin=02508201610067®Number=0000000000090858&sum=726000 [19:18:26]StoreToDocumentArchive [19:18:26]shift 462 fd 162637 [19:18:26]save to /storage/0462/doc_00162637 [19:18:26]save last doc name /storage/0462/doc_00162637 to /storage/kkm_last_doc_name [19:18:26]save OK [19:18:26]Clear old archive folders... [19:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:18:26]tlvbuf is B6F30610 [19:18:26]SAM_PROTO_ClearQueue [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 09 00 00 [19:18:26]Write to MH i2c: E2 08 00 F8 23 80 09 00 00 00 00 00 00 8D [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 F8 23 00 90 00 8F [19:18:26]RAPDU: 90 00 [19:18:26]wFMCommunicate OK [19:18:26]SAM_PROTO_ClearQueue done [19:18:26]KKMCreateOFDPacket [19:18:26]OFDProtocolAddRootSTLVToBuf [19:18:26]FM_MakeSignedData [19:18:26]FM_MakeSignedData [19:18:26]SAM_PROTO_SignData [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 0D 01 02 [19:18:26]Write to MH i2c: E2 08 00 F9 23 80 0D 01 02 00 00 00 00 95 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 F9 23 00 90 00 90 [19:18:26]RAPDU: 90 00 [19:18:26]wFMCommunicate OK [19:18:26]wFMCommunicate request_size=255 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F0 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 2D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 13 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 02 D3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7B 02 00 35 04 06 00 [19:18:26]Write to MH i2c: E2 02 01 FA 23 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F0 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 2D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 13 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 02 D3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7B 02 00 35 04 06 00 00 00 D6 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 FA 23 00 90 00 91 [19:18:26]RAPDU: 90 00 [19:18:26]wFMCommunicate OK [19:18:26]wFMCommunicate request_size=11 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 0D 02 02 06 A8 0E DC 0D BC EA [19:18:26]Write to MH i2c: E2 0E 00 FB 23 80 0D 02 02 06 00 A8 0E DC 0D BC EA 00 00 E9 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 FB 23 00 90 00 92 [19:18:26]RAPDU: 90 00 [19:18:26]wFMCommunicate OK [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 0D 03 02 [19:18:26]Write to MH i2c: E2 08 00 FC 23 80 0D 03 02 00 00 00 00 9A [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 0B 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 0B 00 FC 23 00 B0 08 6D 68 79 D1 FE B8 90 00 28 [19:18:26]RAPDU: B0 08 6D 68 79 D1 FE B8 90 00 [19:18:26]wFMCommunicate OK [19:18:26]SAM_PROTO_SignData done [19:18:26]FM_MakeSignedData done [19:18:26]CreateOFDProtocolMessage [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 11 00 00 [19:18:26]Write to MH i2c: E2 08 00 FD 23 80 11 00 00 00 00 00 00 9A [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 17 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 17 00 FD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FA [19:18:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:18:26]wFMCommunicate OK [19:18:26]CreateOFDProtocolMessage done [19:18:26]OFDSenderStorePacket 162637 [19:18:26]StoreOFDPacket docnum=162637 [19:18:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D3 66 08 01 52 F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F0 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 2D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 13 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 02 D3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7B 02 00 35 04 06 00 A8 0E DC 0D BC EA B0 08 6D 68 79 D1 FE B8 [19:18:26]CheckFolder [19:18:26]dirname=/storage/ofd_packets [19:18:26]CheckFolder done [19:18:26]ProducePacketName [19:18:26]name=ofd_packets/00162637 [19:18:26]NVStorageSaveData ofd_packets/00162637 [19:18:26]File name is /storage/ofd_packets/00162637 [19:18:26]Write 302 bytes [19:18:26]NVStorageSaveData done [19:18:26]OFDSenderStorePacket done [19:18:26]KKMCreateOFDPacket done [19:18:26]NVStorageSaveData kkm_last_timestamp [19:18:26]File name is /storage/kkm_last_timestamp [19:18:26]Write 4 bytes [19:18:26]NVStorageSaveData done [19:18:26]ExternCall_PrintAddStr [19:18:26]wPrintStart [19:18:26]Write to MH i2c: 01 00 00 FE 23 21 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 07 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: 01 07 00 FE 23 00 00 00 00 00 FF 0F 36 [19:18:26]RasterBufferAndPrint [19:18:26]line Счет N : (1)1319208 [19:18:26]line ИНН: 02508201610067 [19:18:26]line Контрольно-Кассовый Чек [19:18:26]line ПРОДАЖА [19:18:26]line ТРК (МРК, ГНК) : 21 [19:18:26]line Товар: 2710194210 [19:18:26]line ДТ(л)-К-5 [19:18:26]line 100.000 * 72.60 [19:18:26]line = 7260.00 [19:18:26]line НДС 12% НСП 1% [19:18:26]line > о реализуемом товаре [19:18:26]line ИТОГО: 7260.00 [19:18:26]line НСП 1% : 64.25 [19:18:26]line НДС 12% : 770.97 [19:18:26]line Наличными: 0.00 [19:18:26]line Безнал.: 7260.00 [19:18:26]line Место: АЗС № 140 "Партнер Нефть" [19:18:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:18:26]line СНО: Общий режим [19:18:26]line Чек 305 13.07.2024 19:18 [19:18:26]line Смена: 462 ФФД: 1.0 [19:18:26]line ЗНМ: 0300000129 [19:18:26]line РНМ: 0000000000090858 [19:18:26]line Версия ККМ: 001 [19:18:26]line Платежная система: O! деньги [19:18:26]line ФМ: 0000000000874899 [19:18:26]line ФД: 162637 [19:18:26]line ФПД: 184781774896362 [19:18:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T191826&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162637&fm=184781774896362&tin=02508201610067®Number=0000000000090858&sum=726000 [19:18:27]written 0, free lines is 4095 [19:18:27]OFD Sender: Processing packet 162637 [packets to send 106, broken 105] [19:18:27]ProducePacketName [19:18:27]name=ofd_packets/00162637 [19:18:27]OFD Sender: To server: pG, [19:18:27]CommunicateWithHost lk.salyk.kg:30040 [19:18:27]ConnectInit lk.salyk.kg [19:18:27]Connected sock=10 [19:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D3 66 08 01 52 F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 F0 13 0B 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 13 0B 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 19 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 2D 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 13 0B 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 02 D3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7B 02 00 35 04 06 00 A8 0E DC 0D BC EA B0 08 6D 68 79 D1 FE B8 [19:18:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 F2 47 00 5A A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4D 7B 02 00 F4 03 04 00 10 7F 92 66 B6 04 01 00 00 E5 1F 6C AD 07 60 5B 51 [19:18:27]CommunicateWithHost err = 0 [19:18:27]CheckOFDResponse [19:18:27]1017 (14) - 77093643461234 [19:18:27]1041 (16) - 0000000000874899 [19:18:27]1040 (4) - 162637 [19:18:27]1012 (4) - 13.07.2024 13:20 [19:18:27]1206 (1) - 0 [19:18:27]OFD Sender: Remove packet 162637 [19:18:27]ProducePacketName [19:18:27]name=ofd_packets/00162637 [19:18:27]NVStorageDeleteData [19:18:27]Write to MH i2c: 01 00 00 28 24 4C [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 07 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 07 00 28 24 00 00 00 00 00 F1 0C 50 [19:18:27]RasterBufferAndPrint [19:18:27]line [19:18:27]line [19:18:27]line [19:18:27]line [19:18:27]line [19:18:27]written 0, free lines is 3319 [19:18:27]MH_Cut [19:18:27]Write to MH i2c: D1 01 00 2F 24 01 25 [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: D1 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: D1 01 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: D1 01 00 2F 24 00 24 [19:18:27]Write to MH i2c: 01 00 00 30 24 54 [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]OFD Sender: No OFD packet to send [19:18:28]*** Cut start [19:18:28]*** Purtial cut [19:18:28]*** CUTSNS_PIN = 0 [19:18:28]*** Stage 1: CUTSNS_PIN = 1 [19:18:30]Read from MH i2c: 01 [19:18:30]MH_I2C_Read... [19:18:30]*** Stop cut motor [19:18:30]*** Cut end [19:18:30]Read from MH i2c: 01 07 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: 01 07 00 30 24 00 00 00 00 00 FF 0F 69 [19:18:30]process_action close_receipt done [19:18:30]requested_data is exist [19:18:30]produce_requested_data [19:18:30]requested_item fm.sn is exist - process it [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 11 00 00 [19:18:30]Write to MH i2c: E2 08 00 31 24 80 11 00 00 00 00 00 00 CF [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 17 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 17 00 31 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2F [19:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:18:30]wFMCommunicate OK [19:18:30]requested_item fd.num is exist - process it [19:18:30]SAM_PROTO_GetFieldsCounters [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 13 00 00 [19:18:30]Write to MH i2c: E2 08 00 32 24 80 13 00 00 00 00 00 00 D2 [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 62 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 62 00 32 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [19:18:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:30]wFMCommunicate OK [19:18:30]SAM_PROTO_GetFieldsCounters done [19:18:30]requested_item shift.num is exist - process it [19:18:30]requested_item shift.opened is exist - process it [19:18:30]req_shift_opened [19:18:30]FM_GetShiftState [19:18:30]SAM_PROTO_GetShiftState [19:18:30]wFMCommunicate request_size=4 [19:18:30]MH_SAM_APDU [19:18:30]CAPDU: 80 13 01 00 [19:18:30]Write to MH i2c: E2 08 00 33 24 80 13 01 00 00 00 00 00 D4 [19:18:30]Write i2c OK [19:18:30]MH_I2C_Read... [19:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:30]Read from MH i2c: E2 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 0E 00 [19:18:30]MH_I2C_Read... [19:18:30]Read from MH i2c: E2 0E 00 33 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CE [19:18:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:18:30]wFMCommunicate OK [19:18:30]SAM_PROTO_GetShiftState done [19:18:30]FM_GetShiftState done [19:18:30]req_shift_opened done [19:18:30]requested_item shift.open_date is exist - process it [19:18:30]req_shift_open_date [19:18:30]req_shift_open_date done [19:18:30]produce_requested_data done [19:18:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162637,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:18:30]process_action_free close_receipt [19:18:30]json_value_free [19:18:30]json_value_free done [19:18:30]process_json_proto returns [19:18:30]Send response to host [19:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162637,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:18:30]free response buf [19:18:30]execute_script done [19:18:30]execute_script returns [19:18:30]free content buf [19:18:30]Sock 7.Close socket [19:18:30]Sock 7.Thread stoped [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:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:37]accept exits with 9 [19:23:37]New connection [19:23:37]New thread 3067366756 created [19:23:37]Thread 3067510116 joined [19:23:37]Waiting for new connection... [19:23:37] Sock 9.Parse request [19:23:37]Sock 9.Check first char [19:23:37]Sock 9.First char is OK [19:23:37]request: POST /json_proto HTTP/1.0 [19:23:37]Method: POST [19:23:37]URL: /json_proto [19:23:37]Method is POST - this is cgi request [19:23:37]url: /json_proto [19:23:37]query_string will be loaded in cgi processing [19:23:37]execute_cgi json_proto POST (null) [19:23:37]execute_cgi path=json_proto method=POST [19:23:37]POST find Content-Length [19:23:37]Host: 172.17.39.67:8080 [19:23:37]Content-Length: 825 [19:23:37]Content-Type: application/json [19:23:37] [19:23:37]POST finish read [19:23:37]Found Content-Length = 825 [19:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 5000.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:37]execute_script... [19:23:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 5000.69 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:23:37]POST & json_proto [19:23:37]process_json_proto [19:23:37]json parsed OK: [19:23:37]protocol is kg_v1.0 [19:23:37]action value=close_receipt [19:23:37]process_action close_receipt [19:23:37]cmd_close_receipt [19:23:37]MH_GetDate [19:23:37]Write to MH i2c: F0 00 00 34 24 47 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: F0 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: F0 09 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: F0 09 00 34 24 00 3B D4 92 66 86 7C 92 66 51 [19:23:37]GetLastDocTimeStamp 1720898306 [19:23:37]current date 1720898619 [19:23:37]FM_GetShiftState [19:23:37]SAM_PROTO_GetShiftState [19:23:37]wFMCommunicate request_size=4 [19:23:37]MH_SAM_APDU [19:23:37]CAPDU: 80 13 01 00 [19:23:37]Write to MH i2c: E2 08 00 35 24 80 13 01 00 00 00 00 00 D6 [19:23:37]Write i2c OK [19:23:37]MH_I2C_Read... [19:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:37]Read from MH i2c: E2 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 0E 00 [19:23:37]MH_I2C_Read... [19:23:37]Read from MH i2c: E2 0E 00 35 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D0 [19:23:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:23:37]wFMCommunicate OK [19:23:37]SAM_PROTO_GetShiftState done [19:23:37]FM_GetShiftState done [19:23:37]opened in 1720828979 [19:23:37]opened+sec_in_day 1720915379 [19:23:37]quantity*price = 500068 [19:23:37]sum+1 = 500070 [19:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.69 НСП 1% : 44.25 НДС 12% : 531.05 Наличными: 0.00 Безнал.: 5000.69 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 306 13.07.2024 19:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162638 ФПД: 35206784991699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192339&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162638&fm=35206784991699&tin=02508201610067®Number=0000000000090858&sum=500069 [19:23:38]StoreToDocumentArchive [19:23:38]shift 462 fd 162638 [19:23:38]save to /storage/0462/doc_00162638 [19:23:38]save last doc name /storage/0462/doc_00162638 to /storage/kkm_last_doc_name [19:23:38]save OK [19:23:38]Clear old archive folders... [19:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:23:38]tlvbuf is 00611900 [19:23:38]SAM_PROTO_ClearQueue [19:23:38]wFMCommunicate request_size=4 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 09 00 00 [19:23:38]Write to MH i2c: E2 08 00 42 24 80 09 00 00 00 00 00 00 D8 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:23:38]Read from MH i2c: E2 03 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 42 24 00 90 00 DA [19:23:38]RAPDU: 90 00 [19:23:38]wFMCommunicate OK [19:23:38]SAM_PROTO_ClearQueue done [19:23:38]KKMCreateOFDPacket [19:23:38]OFDProtocolAddRootSTLVToBuf [19:23:38]FM_MakeSignedData [19:23:38]FM_MakeSignedData [19:23:38]SAM_PROTO_SignData [19:23:38]wFMCommunicate request_size=4 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 0D 01 02 [19:23:38]Write to MH i2c: E2 08 00 43 24 80 0D 01 02 00 00 00 00 E0 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:23:38]Read from MH i2c: E2 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 [19:23:38]MH_I2C_Read... [19:23:38]Read from MH i2c: E2 03 00 43 24 00 90 00 DB [19:23:38]RAPDU: 90 00 [19:23:38]wFMCommunicate OK [19:23:38]wFMCommunicate request_size=255 [19:23:38]MH_SAM_APDU [19:23:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 32 01 00 00 F4 03 04 00 3B D4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7B 02 00 35 04 06 00 [19:23:38]Write to MH i2c: E2 02 01 44 24 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 32 01 00 00 F4 03 04 00 3B D4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7B 02 00 35 04 06 00 00 00 62 [19:23:38]Write i2c OK [19:23:38]MH_I2C_Read... [19:23:39]Read from MH i2c: E2 [19:23:39]MH_I2C_Read... [19:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:39]Read from MH i2c: E2 03 00 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: E2 03 00 44 24 00 90 00 DC [19:23:39]RAPDU: 90 00 [19:23:39]wFMCommunicate OK [19:23:39]wFMCommunicate request_size=11 [19:23:39]MH_SAM_APDU [19:23:39]CAPDU: 80 0D 02 02 06 20 05 37 E9 C1 D3 [19:23:39]Write to MH i2c: E2 0E 00 45 24 80 0D 02 02 06 00 20 05 37 E9 C1 D3 00 00 C8 [19:23:39]Write i2c OK [19:23:39]MH_I2C_Read... [19:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:23:39]Read from MH i2c: E2 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: E2 03 00 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: E2 03 00 45 24 00 90 00 DD [19:23:39]RAPDU: 90 00 [19:23:39]wFMCommunicate OK [19:23:39]wFMCommunicate request_size=4 [19:23:39]MH_SAM_APDU [19:23:39]CAPDU: 80 0D 03 02 [19:23:39]Write to MH i2c: E2 08 00 46 24 80 0D 03 02 00 00 00 00 E5 [19:23:39]Write i2c OK [19:23:39]MH_I2C_Read... [19:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:23:39]Read from MH i2c: E2 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: E2 0B 00 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: E2 0B 00 46 24 00 FF DC C0 EB 30 02 8E 23 90 00 4F [19:23:39]RAPDU: FF DC C0 EB 30 02 8E 23 90 00 [19:23:39]wFMCommunicate OK [19:23:39]SAM_PROTO_SignData done [19:23:39]FM_MakeSignedData done [19:23:39]CreateOFDProtocolMessage [19:23:39]wFMCommunicate request_size=4 [19:23:39]MH_SAM_APDU [19:23:39]CAPDU: 80 11 00 00 [19:23:39]Write to MH i2c: E2 08 00 47 24 80 11 00 00 00 00 00 00 E5 [19:23:39]Write i2c OK [19:23:39]MH_I2C_Read... [19:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:39]Read from MH i2c: E2 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: E2 17 00 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: E2 17 00 47 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 45 [19:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:23:39]wFMCommunicate OK [19:23:39]CreateOFDProtocolMessage done [19:23:39]OFDSenderStorePacket 162638 [19:23:39]StoreOFDPacket docnum=162638 [19:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 47 08 01 27 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 32 01 00 00 F4 03 04 00 3B D4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7B 02 00 35 04 06 00 20 05 37 E9 C1 D3 FF DC C0 EB 30 02 8E 23 [19:23:39]CheckFolder [19:23:39]dirname=/storage/ofd_packets [19:23:39]CheckFolder done [19:23:39]ProducePacketName [19:23:39]name=ofd_packets/00162638 [19:23:39]NVStorageSaveData ofd_packets/00162638 [19:23:39]File name is /storage/ofd_packets/00162638 [19:23:39]Write 302 bytes [19:23:39]NVStorageSaveData done [19:23:39]OFDSenderStorePacket done [19:23:39]KKMCreateOFDPacket done [19:23:39]NVStorageSaveData kkm_last_timestamp [19:23:39]File name is /storage/kkm_last_timestamp [19:23:39]Write 4 bytes [19:23:39]NVStorageSaveData done [19:23:39]ExternCall_PrintAddStr [19:23:39]wPrintStart [19:23:39]Write to MH i2c: 01 00 00 48 24 6C [19:23:39]Write i2c OK [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: 01 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: 01 07 00 [19:23:39]MH_I2C_Read... [19:23:39]Read from MH i2c: 01 07 00 48 24 00 00 00 00 00 FF 0F 81 [19:23:39]RasterBufferAndPrint [19:23:39]line Счет N : (1)1319211 [19:23:39]line ИНН: 02508201610067 [19:23:39]line Контрольно-Кассовый Чек [19:23:39]line ПРОДАЖА [19:23:39]line ТРК (МРК, ГНК) : 21 [19:23:39]line Товар: 2710194210 [19:23:39]line ДТ(л)-К-5 [19:23:39]line 68.880 * 72.60 [19:23:39]line = 5000.69 [19:23:39]line НДС 12% НСП 1% [19:23:39]line > о реализуемом товаре [19:23:39]line ИТОГО: 5000.69 [19:23:39]line НСП 1% : 44.25 [19:23:39]line НДС 12% : 531.05 [19:23:39]line Наличными: 0.00 [19:23:39]line Безнал.: 5000.69 [19:23:39]line Место: АЗС № 140 "Партнер Нефть" [19:23:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:23:39]line СНО: Общий режим [19:23:39]line Чек 306 13.07.2024 19:23 [19:23:39]line Смена: 462 ФФД: 1.0 [19:23:39]line ЗНМ: 0300000129 [19:23:39]line РНМ: 0000000000090858 [19:23:39]line Версия ККМ: 001 [19:23:39]line Платежная система: Бакай Банк [19:23:39]line ФМ: 0000000000874899 [19:23:39]line ФД: 162638 [19:23:39]line ФПД: 35206784991699 [19:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192339&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162638&fm=35206784991699&tin=02508201610067®Number=0000000000090858&sum=500069 [19:23:39]OFD Sender: Processing packet 162638 [packets to send 106, broken 105] [19:23:39]ProducePacketName [19:23:39]name=ofd_packets/00162638 [19:23:39]OFD Sender: To server: pG, [19:23:39]CommunicateWithHost lk.salyk.kg:30040 [19:23:39]ConnectInit lk.salyk.kg [19:23:39]written 0, free lines is 4095 [19:23:39]Connected sock=10 [19:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 D0 47 08 01 27 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 32 01 00 00 F4 03 04 00 3B D4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4E 7B 02 00 35 04 06 00 20 05 37 E9 C1 D3 FF DC C0 EB 30 02 8E 23 [19:23:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B1 FC 47 00 B2 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 34 38 39 39 10 04 04 00 4E 7B 02 00 F4 03 04 00 49 80 92 66 B6 04 01 00 00 3B 08 12 38 36 AE 15 6D [19:23:39]CommunicateWithHost err = 0 [19:23:39]CheckOFDResponse [19:23:39]1017 (14) - 77093643461234 [19:23:39]1041 (16) - 0000000000874899 [19:23:39]1040 (4) - 162638 [19:23:39]1012 (4) - 13.07.2024 13:25 [19:23:39]1206 (1) - 0 [19:23:39]OFD Sender: Remove packet 162638 [19:23:39]ProducePacketName [19:23:39]name=ofd_packets/00162638 [19:23:39]NVStorageDeleteData [19:23:40]Write to MH i2c: 01 00 00 72 24 96 [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: 01 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: 01 07 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: 01 07 00 72 24 00 00 00 00 00 FB 0C A4 [19:23:40]RasterBufferAndPrint [19:23:40]line [19:23:40]line [19:23:40]line [19:23:40]line [19:23:40]line [19:23:40]written 0, free lines is 3329 [19:23:40]MH_Cut [19:23:40]Write to MH i2c: D1 01 00 79 24 01 6F [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: D1 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: D1 01 00 [19:23:40]MH_I2C_Read... [19:23:40]Read from MH i2c: D1 01 00 79 24 00 6E [19:23:40]Write to MH i2c: 01 00 00 7A 24 9E [19:23:40]Write i2c OK [19:23:40]MH_I2C_Read... [19:23:40]OFD Sender: No OFD packet to send [19:23:40]*** Cut start [19:23:40]*** Purtial cut [19:23:40]*** Stage 1: CUTSNS_PIN = 1 [19:23:41]Read from MH i2c: 01 [19:23:41]MH_I2C_Read... [19:23:41]*** Stop cut motor [19:23:41]*** Cut end [19:23:41]Read from MH i2c: 01 07 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: 01 07 00 7A 24 00 00 00 00 00 FF 0F B3 [19:23:41]process_action close_receipt done [19:23:41]requested_data is exist [19:23:41]produce_requested_data [19:23:41]requested_item fm.sn is exist - process it [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 11 00 00 [19:23:41]Write to MH i2c: E2 08 00 7B 24 80 11 00 00 00 00 00 00 19 [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 17 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 17 00 7B 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 79 [19:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:23:41]wFMCommunicate OK [19:23:41]requested_item fd.num is exist - process it [19:23:41]SAM_PROTO_GetFieldsCounters [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 13 00 00 [19:23:41]Write to MH i2c: E2 08 00 7C 24 80 13 00 00 00 00 00 00 1C [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 62 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 62 00 7C 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:23:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:23:41]wFMCommunicate OK [19:23:41]SAM_PROTO_GetFieldsCounters done [19:23:41]requested_item shift.num is exist - process it [19:23:41]requested_item shift.opened is exist - process it [19:23:41]req_shift_opened [19:23:41]FM_GetShiftState [19:23:41]SAM_PROTO_GetShiftState [19:23:41]wFMCommunicate request_size=4 [19:23:41]MH_SAM_APDU [19:23:41]CAPDU: 80 13 01 00 [19:23:41]Write to MH i2c: E2 08 00 7D 24 80 13 01 00 00 00 00 00 1E [19:23:41]Write i2c OK [19:23:41]MH_I2C_Read... [19:23:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:23:41]Read from MH i2c: E2 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 0E 00 [19:23:41]MH_I2C_Read... [19:23:41]Read from MH i2c: E2 0E 00 7D 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 18 [19:23:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:23:41]wFMCommunicate OK [19:23:41]SAM_PROTO_GetShiftState done [19:23:41]FM_GetShiftState done [19:23:41]req_shift_opened done [19:23:41]requested_item shift.open_date is exist - process it [19:23:41]req_shift_open_date [19:23:41]req_shift_open_date done [19:23:41]produce_requested_data done [19:23:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162638,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:23:41]process_action_free close_receipt [19:23:41]json_value_free [19:23:41]json_value_free done [19:23:41]process_json_proto returns [19:23:41]Send response to host [19:23:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162638,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:23:41]free response buf [19:23:41]execute_script done [19:23:41]execute_script returns [19:23:41]free content buf [19:23:41]Sock 9.Close socket [19:23:41]Sock 9.Thread stoped [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:36]accept exits with 7 [19:29:36]New connection [19:29:36]New thread 3067510116 created [19:29:36]Thread 3067366756 joined [19:29:36]Waiting for new connection... [19:29:36] Sock 7.Parse request [19:29:36]Sock 7.Check first char [19:29:36]Sock 7.First char is OK [19:29:36]request: POST /json_proto HTTP/1.0 [19:29:36]Method: POST [19:29:36]URL: /json_proto [19:29:36]Method is POST - this is cgi request [19:29:36]url: /json_proto [19:29:36]query_string will be loaded in cgi processing [19:29:36]execute_cgi json_proto POST (null) [19:29:36]execute_cgi path=json_proto method=POST [19:29:36]POST find Content-Length [19:29:36]Host: 172.17.39.67:8080 [19:29:36]Content-Length: 678 [19:29:36]Content-Type: application/json [19:29:36] [19:29:36]POST finish read [19:29:36]Found Content-Length = 678 [19:29:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:36]execute_script... [19:29: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)1319213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:29:36]POST & json_proto [19:29:36]process_json_proto [19:29:36]json parsed OK: [19:29:36]protocol is kg_v1.0 [19:29:36]action value=close_receipt [19:29:36]process_action close_receipt [19:29:36]cmd_close_receipt [19:29:36]MH_GetDate [19:29:36]Write to MH i2c: F0 00 00 7E 24 91 [19:29:36]Write i2c OK [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 09 00 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: F0 09 00 7E 24 00 A2 D5 92 66 86 7C 92 66 03 [19:29:36]GetLastDocTimeStamp 1720898619 [19:29:36]current date 1720898978 [19:29:36]FM_GetShiftState [19:29:36]SAM_PROTO_GetShiftState [19:29:36]wFMCommunicate request_size=4 [19:29:36]MH_SAM_APDU [19:29:36]CAPDU: 80 13 01 00 [19:29:36]Write to MH i2c: E2 08 00 7F 24 80 13 01 00 00 00 00 00 20 [19:29:36]Write i2c OK [19:29:36]MH_I2C_Read... [19:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:36]Read from MH i2c: E2 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: E2 0E 00 [19:29:36]MH_I2C_Read... [19:29:36]Read from MH i2c: E2 0E 00 7F 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1A [19:29:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:29:36]wFMCommunicate OK [19:29:36]SAM_PROTO_GetShiftState done [19:29:36]FM_GetShiftState done [19:29:36]opened in 1720828979 [19:29:36]opened+sec_in_day 1720915379 [19:29:36]quantity*price = 50056 [19:29:36]sum+1 = 50058 [19:29:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 307 13.07.2024 19:29 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162639 ФПД: 99908138319727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192938&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162639&fm=99908138319727&tin=02508201610067®Number=0000000000090858&sum=50000 [19:29:37]StoreToDocumentArchive [19:29:37]shift 462 fd 162639 [19:29:37]save to /storage/0462/doc_00162639 [19:29:37]save last doc name /storage/0462/doc_00162639 to /storage/kkm_last_doc_name [19:29:37]save OK [19:29:37]Clear old archive folders... [19:29:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:37]tlvbuf is B6FDD970 [19:29:37]SAM_PROTO_ClearQueue [19:29:37]wFMCommunicate request_size=4 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 09 00 00 [19:29:37]Write to MH i2c: E2 08 00 8C 24 80 09 00 00 00 00 00 00 22 [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:37]Read from MH i2c: E2 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 [19:29:37]MH_I2C_Read... [19:29:37]Read from MH i2c: E2 03 00 8C 24 00 90 00 24 [19:29:37]RAPDU: 90 00 [19:29:37]wFMCommunicate OK [19:29:37]SAM_PROTO_ClearQueue done [19:29:37]KKMCreateOFDPacket [19:29:37]OFDProtocolAddRootSTLVToBuf [19:29:37]FM_MakeSignedData [19:29:37]FM_MakeSignedData [19:29:37]SAM_PROTO_SignData [19:29:37]wFMCommunicate request_size=4 [19:29:37]MH_SAM_APDU [19:29:37]CAPDU: 80 0D 01 02 [19:29:37]Write to MH i2c: E2 08 00 8D 24 80 0D 01 02 00 00 00 00 2A [19:29:37]Write i2c OK [19:29:37]MH_I2C_Read... [19:29:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 8D 24 00 90 00 25 [19:29:38]RAPDU: 90 00 [19:29:38]wFMCommunicate OK [19:29:38]wFMCommunicate request_size=255 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 A2 D5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7B 02 00 35 04 06 00 5A [19:29:38]Write to MH i2c: E2 02 01 8E 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 A2 D5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7B 02 00 35 04 06 00 5A 00 00 7E [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 8E 24 00 90 00 26 [19:29:38]RAPDU: 90 00 [19:29:38]wFMCommunicate OK [19:29:38]wFMCommunicate request_size=10 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 0D 02 02 05 DD AD 18 3F 6F [19:29:38]Write to MH i2c: E2 0D 00 8F 24 80 0D 02 02 05 00 DD AD 18 3F 6F 00 00 87 [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 03 00 8F 24 00 90 00 27 [19:29:38]RAPDU: 90 00 [19:29:38]wFMCommunicate OK [19:29:38]wFMCommunicate request_size=4 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 0D 03 02 [19:29:38]Write to MH i2c: E2 08 00 90 24 80 0D 03 02 00 00 00 00 2F [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 0B 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 0B 00 90 24 00 D7 E5 76 7B 81 9C 27 4F 90 00 70 [19:29:38]RAPDU: D7 E5 76 7B 81 9C 27 4F 90 00 [19:29:38]wFMCommunicate OK [19:29:38]SAM_PROTO_SignData done [19:29:38]FM_MakeSignedData done [19:29:38]CreateOFDProtocolMessage [19:29:38]wFMCommunicate request_size=4 [19:29:38]MH_SAM_APDU [19:29:38]CAPDU: 80 11 00 00 [19:29:38]Write to MH i2c: E2 08 00 91 24 80 11 00 00 00 00 00 00 2F [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:38]Read from MH i2c: E2 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 17 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: E2 17 00 91 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8F [19:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:29:38]wFMCommunicate OK [19:29:38]CreateOFDProtocolMessage done [19:29:38]OFDSenderStorePacket 162639 [19:29:38]StoreOFDPacket docnum=162639 [19:29:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FE A2 07 01 EC D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 A2 D5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7B 02 00 35 04 06 00 5A DD AD 18 3F 6F D7 E5 76 7B 81 9C 27 4F [19:29:38]CheckFolder [19:29:38]dirname=/storage/ofd_packets [19:29:38]CheckFolder done [19:29:38]ProducePacketName [19:29:38]name=ofd_packets/00162639 [19:29:38]NVStorageSaveData ofd_packets/00162639 [19:29:38]File name is /storage/ofd_packets/00162639 [19:29:38]Write 301 bytes [19:29:38]NVStorageSaveData done [19:29:38]OFDSenderStorePacket done [19:29:38]KKMCreateOFDPacket done [19:29:38]NVStorageSaveData kkm_last_timestamp [19:29:38]File name is /storage/kkm_last_timestamp [19:29:38]Write 4 bytes [19:29:38]NVStorageSaveData done [19:29:38]ExternCall_PrintAddStr [19:29:38]wPrintStart [19:29:38]Write to MH i2c: 01 00 00 92 24 B6 [19:29:38]Write i2c OK [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 07 00 [19:29:38]MH_I2C_Read... [19:29:38]Read from MH i2c: 01 07 00 92 24 00 00 00 00 00 FF 0F CB [19:29:38]RasterBufferAndPrint [19:29:38]line Счет N : (1)1319213 [19:29:38]line ИНН: 02508201610067 [19:29:38]line Контрольно-Кассовый Чек [19:29:38]line ПРОДАЖА [19:29:38]line ТРК (МРК, ГНК) : 53 [19:29:38]line Товар: 2710124130 [19:29:38]line Аи-92-К-5 [19:29:38]line 7.550 * 66.30 [19:29:38]line = 500.57 [19:29:38]line НДС 12% НСП 1% [19:29:38]line > о реализуемом товаре [19:29:38]line ОКРУГЛЕНИЕ: -0.57 [19:29:38]line ИТОГО: 500.00 [19:29:38]line Внесено: 500.00 [19:29:38]line СДАЧА: 0.00 [19:29:38]line НСП 1% : 4.43 [19:29:38]line НДС 12% : 53.16 [19:29:38]line Наличными: 500.00 [19:29:38]line Безнал.: 0.00 [19:29:38]line Место: АЗС № 140 "Партнер Нефть" [19:29:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:29:38]line СНО: Общий режим [19:29:38]line Чек 307 13.07.2024 19:29 [19:29:38]line Смена: 462 ФФД: 1.0 [19:29:38]line ЗНМ: 0300000129 [19:29:38]line РНМ: 0000000000090858 [19:29:38]line Версия ККМ: 001 [19:29:38]line ФМ: 0000000000874899 [19:29:38]line ФД: 162639 [19:29:38]line ФПД: 99908138319727 [19:29:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T192938&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162639&fm=99908138319727&tin=02508201610067®Number=0000000000090858&sum=50000 [19:29:38]OFD Sender: Processing packet 162639 [packets to send 106, broken 105] [19:29:38]ProducePacketName [19:29:38]name=ofd_packets/00162639 [19:29:38]OFD Sender: To server: pG, [19:29:38]CommunicateWithHost lk.salyk.kg:30040 [19:29:38]ConnectInit lk.salyk.kg [19:29:38]written 0, free lines is 4095 [19:29:38]Connected sock=10 [19:29:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FE A2 07 01 EC D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 A2 D5 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7B 02 00 35 04 06 00 5A DD AD 18 3F 6F D7 E5 76 7B 81 9C 27 4F [19:29:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 1B 60 47 00 D7 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 4F 7B 02 00 F4 03 04 00 B0 81 92 66 B6 04 01 00 00 02 EE BC FB 5E 9D 8A CC [19:29:39]CommunicateWithHost err = 0 [19:29:39]CheckOFDResponse [19:29:39]1017 (14) - 77093643461234 [19:29:39]1041 (16) - 0000000000874899 [19:29:39]1040 (4) - 162639 [19:29:39]1012 (4) - 13.07.2024 13:31 [19:29:39]1206 (1) - 0 [19:29:39]OFD Sender: Remove packet 162639 [19:29:39]ProducePacketName [19:29:39]name=ofd_packets/00162639 [19:29:39]NVStorageDeleteData [19:29:39]Write to MH i2c: 01 00 00 BD 24 E1 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: 01 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: 01 07 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: 01 07 00 BD 24 00 00 00 00 00 D7 0C CB [19:29:39]RasterBufferAndPrint [19:29:39]line [19:29:39]line [19:29:39]line [19:29:39]line [19:29:39]line [19:29:39]written 0, free lines is 3293 [19:29:39]MH_Cut [19:29:39]Write to MH i2c: D1 01 00 C4 24 01 BA [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: D1 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: D1 01 00 [19:29:39]MH_I2C_Read... [19:29:39]Read from MH i2c: D1 01 00 C4 24 00 B9 [19:29:39]Write to MH i2c: 01 00 00 C5 24 E9 [19:29:39]Write i2c OK [19:29:39]MH_I2C_Read... [19:29:39]OFD Sender: No OFD packet to send [19:29:39]*** Cut start [19:29:39]*** Purtial cut [19:29:39]*** CUTSNS_PIN = 0 [19:29:40]*** Stage 1: CUTSNS_PIN = 1 [19:29:41]Read from MH i2c: 01 [19:29:41]MH_I2C_Read... [19:29:41]*** Stop cut motor [19:29:41]*** Cut end [19:29:41]Read from MH i2c: 01 07 00 [19:29:41]MH_I2C_Read... [19:29:41]Read from MH i2c: 01 07 00 C5 24 00 00 00 00 00 FF 0F FE [19:29:41]process_action close_receipt done [19:29:41]requested_data is exist [19:29:41]produce_requested_data [19:29:41]requested_item fm.sn is exist - process it [19:29:41]wFMCommunicate request_size=4 [19:29:41]MH_SAM_APDU [19:29:41]CAPDU: 80 11 00 00 [19:29:41]Write to MH i2c: E2 08 00 C6 24 80 11 00 00 00 00 00 00 64 [19:29:41]Write i2c OK [19:29:41]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 [19:29:42]MH_I2C_Read... [19:29:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:42]Read from MH i2c: E2 17 00 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 17 00 C6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C4 [19:29:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:29:42]wFMCommunicate OK [19:29:42]requested_item fd.num is exist - process it [19:29:42]SAM_PROTO_GetFieldsCounters [19:29:42]wFMCommunicate request_size=4 [19:29:42]MH_SAM_APDU [19:29:42]CAPDU: 80 13 00 00 [19:29:42]Write to MH i2c: E2 08 00 C7 24 80 13 00 00 00 00 00 00 67 [19:29:42]Write i2c OK [19:29:42]MH_I2C_Read... [19:29:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:42]Read from MH i2c: E2 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 62 00 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 62 00 C7 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:29:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:42]wFMCommunicate OK [19:29:42]SAM_PROTO_GetFieldsCounters done [19:29:42]requested_item shift.num is exist - process it [19:29:42]requested_item shift.opened is exist - process it [19:29:42]req_shift_opened [19:29:42]FM_GetShiftState [19:29:42]SAM_PROTO_GetShiftState [19:29:42]wFMCommunicate request_size=4 [19:29:42]MH_SAM_APDU [19:29:42]CAPDU: 80 13 01 00 [19:29:42]Write to MH i2c: E2 08 00 C8 24 80 13 01 00 00 00 00 00 69 [19:29:42]Write i2c OK [19:29:42]MH_I2C_Read... [19:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:42]Read from MH i2c: E2 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 0E 00 [19:29:42]MH_I2C_Read... [19:29:42]Read from MH i2c: E2 0E 00 C8 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 63 [19:29:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:29:42]wFMCommunicate OK [19:29:42]SAM_PROTO_GetShiftState done [19:29:42]FM_GetShiftState done [19:29:42]req_shift_opened done [19:29:42]requested_item shift.open_date is exist - process it [19:29:42]req_shift_open_date [19:29:42]req_shift_open_date done [19:29:42]produce_requested_data done [19:29:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162639,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:29:42]process_action_free close_receipt [19:29:42]json_value_free [19:29:42]json_value_free done [19:29:42]process_json_proto returns [19:29:42]Send response to host [19:29:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162639,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:29:42]free response buf [19:29:42]execute_script done [19:29:42]execute_script returns [19:29:42]free content buf [19:29:42]Sock 7.Close socket [19:29:42]Sock 7.Thread stoped [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:53]accept exits with 9 [19:36:53]New connection [19:36:53]New thread 3067366756 created [19:36:53]Thread 3067510116 joined [19:36:53]Waiting for new connection... [19:36:53] Sock 9.Parse request [19:36:53]Sock 9.Check first char [19:36:53]Sock 9.First char is OK [19:36:53]request: POST /json_proto HTTP/1.0 [19:36:53]Method: POST [19:36:53]URL: /json_proto [19:36:53]Method is POST - this is cgi request [19:36:53]url: /json_proto [19:36:53]query_string will be loaded in cgi processing [19:36:53]execute_cgi json_proto POST (null) [19:36:53]execute_cgi path=json_proto method=POST [19:36:53]POST find Content-Length [19:36:53]Host: 172.17.39.67:8080 [19:36:53]Content-Length: 1218 [19:36:53]Content-Type: application/json [19:36:53] [19:36:53]POST finish read [19:36:53]Found Content-Length = 1218 [19:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319214\u000A13.07.2024 19:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 19.980 x 72.60\u000A\u0418\u0422\u041E\u0413: 1450.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:53]execute_script... [19:36:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319214\u000A13.07.2024 19:34\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422(\u043B)-\u041A-5\u000A 19.980 x 72.60\u000A\u0418\u0422\u041E\u0413: 1450.55\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A74684\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:53]POST & json_proto [19:36:53]process_json_proto [19:36:53]json parsed OK: [19:36:53]protocol is kg_v1.0 [19:36:53]action value=print_text [19:36:53]process_action print_text [19:36:53]cmd_print_text [19:36:53]ExternCall_PrintAddStr [19:36:53]wPrintStart [19:36:53]Write to MH i2c: 01 00 00 C9 24 ED [19:36:53]Write i2c OK [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: 01 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: 01 07 00 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: 01 07 00 C9 24 00 00 00 00 00 FF 0F 02 [19:36:53]RasterBufferAndPrint [19:36:53]line *****ТОВАРНЫЙ ЧЕК***** [19:36:53]line АЗС 140 [19:36:53]line Партнер нефть [19:36:53]line 02508201610067 [19:36:53]line Кассир : Шамбеталиев А. [19:36:53]line Счет N : (1)1319214 [19:36:53]line 13.07.2024 19:34 [19:36:53]line ПРОДАЖА [19:36:53]line ТРК (МРК, ГНК): 11 [19:36:53]line Вид ГСМ : 2710194210 [19:36:53]line ДТ(л)-К-5 [19:36:53]line 19.980 x 72.60 [19:36:53]line ИТОГ: 1450.55 [19:36:53]line Тип оплаты: Талоны: Топливная Карта [19:36:53]line 74684 [19:36:53]line ______________________ [19:36:53]line (подпись) [19:36:53]written 0, free lines is 4095 [19:36:53]Write to MH i2c: 01 00 00 DE 24 02 [19:36:53]Write i2c OK [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: 01 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: 01 07 00 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: 01 07 00 DE 24 00 00 00 00 00 F3 0D 09 [19:36:53]RasterBufferAndPrint [19:36:53]line [19:36:53]line [19:36:53]line [19:36:53]line [19:36:53]line [19:36:53]written 0, free lines is 3573 [19:36:53]MH_Cut [19:36:53]Write to MH i2c: D1 01 00 E5 24 01 DB [19:36:53]Write i2c OK [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: D1 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: D1 01 00 [19:36:53]MH_I2C_Read... [19:36:53]Read from MH i2c: D1 01 00 E5 24 00 DA [19:36:53]Write to MH i2c: 01 00 00 E6 24 0A [19:36:53]Write i2c OK [19:36:53]MH_I2C_Read... [19:36:54]*** Cut start [19:36:54]*** Purtial cut [19:36:54]*** Stage 1: CUTSNS_PIN = 1 [19:36:54]Read from MH i2c: 01 [19:36:54]MH_I2C_Read... [19:36:54]*** Stop cut motor [19:36:54]*** Cut end [19:36:54]Read from MH i2c: 01 07 00 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: 01 07 00 E6 24 00 00 00 00 00 FF 0F 1F [19:36:54]process_action print_text done [19:36:54]requested_data is exist [19:36:54]produce_requested_data [19:36:54]requested_item fm.sn is exist - process it [19:36:54]wFMCommunicate request_size=4 [19:36:54]MH_SAM_APDU [19:36:54]CAPDU: 80 11 00 00 [19:36:54]Write to MH i2c: E2 08 00 E7 24 80 11 00 00 00 00 00 00 85 [19:36:54]Write i2c OK [19:36:54]MH_I2C_Read... [19:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:54]Read from MH i2c: E2 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: E2 17 00 [19:36:54]MH_I2C_Read... [19:36:54]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 34 38 39 39 90 00 E5 [19:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:36:54]wFMCommunicate OK [19:36:54]requested_item fd.num is exist - process it [19:36:54]SAM_PROTO_GetFieldsCounters [19:36:54]wFMCommunicate request_size=4 [19:36:54]MH_SAM_APDU [19:36:54]CAPDU: 80 13 00 00 [19:36:54]Write to MH i2c: E2 08 00 E8 24 80 13 00 00 00 00 00 00 88 [19:36:54]Write i2c OK [19:36:54]MH_I2C_Read... [19:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:54]Read from MH i2c: E2 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: E2 62 00 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: E2 62 00 E8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [19:36:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 4F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:54]wFMCommunicate OK [19:36:54]SAM_PROTO_GetFieldsCounters done [19:36:54]requested_item shift.num is exist - process it [19:36:54]requested_item shift.opened is exist - process it [19:36:54]req_shift_opened [19:36:54]FM_GetShiftState [19:36:54]SAM_PROTO_GetShiftState [19:36:54]wFMCommunicate request_size=4 [19:36:54]MH_SAM_APDU [19:36:54]CAPDU: 80 13 01 00 [19:36:54]Write to MH i2c: E2 08 00 E9 24 80 13 01 00 00 00 00 00 8A [19:36:54]Write i2c OK [19:36:54]MH_I2C_Read... [19:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:54]Read from MH i2c: E2 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: E2 0E 00 [19:36:54]MH_I2C_Read... [19:36:54]Read from MH i2c: E2 0E 00 E9 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 84 [19:36:54]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:36:54]wFMCommunicate OK [19:36:54]SAM_PROTO_GetShiftState done [19:36:54]FM_GetShiftState done [19:36:54]req_shift_opened done [19:36:54]requested_item shift.open_date is exist - process it [19:36:54]req_shift_open_date [19:36:54]req_shift_open_date done [19:36:54]produce_requested_data done [19:36:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162639,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:36:54]process_action_free print_text [19:36:54]json_value_free [19:36:54]json_value_free done [19:36:54]process_json_proto returns [19:36:54]Send response to host [19:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162639,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:36:54]free response buf [19:36:54]execute_script done [19:36:54]execute_script returns [19:36:54]free content buf [19:36:54]Sock 9.Close socket [19:36:54]Sock 9.Thread stoped [19:36:55]OFD Sender: No OFD packet to send [19:37:00]OFD Sender: No OFD packet to send [19:37:05]OFD Sender: No OFD packet to send [19:37:10]OFD Sender: No OFD packet to send [19:37:15]OFD Sender: No OFD packet to send [19:37:20]OFD Sender: No OFD packet to send [19:37:25]OFD Sender: No OFD packet to send [19:37:30]OFD Sender: No OFD packet to send [19:37:35]OFD Sender: No OFD packet to send [19:37:40]OFD Sender: No OFD packet to send [19:37:45]OFD Sender: No OFD packet to send [19:37:50]OFD Sender: No OFD packet to send [19:37:55]OFD Sender: No OFD packet to send [19:38:00]OFD Sender: No OFD packet to send [19:38:05]OFD Sender: No OFD packet to send [19:38:10]OFD Sender: No OFD packet to send [19:38:15]OFD Sender: No OFD packet to send [19:38:20]OFD Sender: No OFD packet to send [19:38:25]OFD Sender: No OFD packet to send [19:38:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]accept exits with 7 [19:38:45]New connection [19:38:45]New thread 3067510116 created [19:38:45]Thread 3067366756 joined [19:38:45]Waiting for new connection... [19:38:45] Sock 7.Parse request [19:38:45]Sock 7.Check first char [19:38:45]Sock 7.First char is OK [19:38:45]request: POST /json_proto HTTP/1.0 [19:38:45]Method: POST [19:38:45]URL: /json_proto [19:38:45]Method is POST - this is cgi request [19:38:45]url: /json_proto [19:38:45]query_string will be loaded in cgi processing [19:38:45]execute_cgi json_proto POST (null) [19:38:45]execute_cgi path=json_proto method=POST [19:38:45]POST find Content-Length [19:38:45]Host: 172.17.39.67:8080 [19:38:45]Content-Length: 643 [19:38:45]Content-Type: application/json [19:38:45] [19:38:45]POST finish read [19:38:45]Found Content-Length = 643 [19:38:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.000, "sum" : 1326.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1326.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:45]execute_script... [19:38: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)1319215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.000, "sum" : 1326.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1326.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:45]POST & json_proto [19:38:45]process_json_proto [19:38:45]json parsed OK: [19:38:45]protocol is kg_v1.0 [19:38:45]action value=close_receipt [19:38:45]process_action close_receipt [19:38:45]cmd_close_receipt [19:38:45]MH_GetDate [19:38:45]Write to MH i2c: F0 00 00 EA 24 FD [19:38:45]Write i2c OK [19:38:45]MH_I2C_Read... [19:38:45]Read from MH i2c: F0 [19:38:45]MH_I2C_Read... [19:38:45]Read from MH i2c: F0 09 00 [19:38:45]MH_I2C_Read... [19:38:45]Read from MH i2c: F0 09 00 EA 24 00 C6 D7 92 66 86 7C 92 66 95 [19:38:45]GetLastDocTimeStamp 1720898978 [19:38:45]current date 1720899526 [19:38:45]FM_GetShiftState [19:38:45]SAM_PROTO_GetShiftState [19:38:45]wFMCommunicate request_size=4 [19:38:45]MH_SAM_APDU [19:38:45]CAPDU: 80 13 01 00 [19:38:45]Write to MH i2c: E2 08 00 EB 24 80 13 01 00 00 00 00 00 8C [19:38:45]Write i2c OK [19:38:45]MH_I2C_Read... [19:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:45]Read from MH i2c: E2 [19:38:45]MH_I2C_Read... [19:38:45]Read from MH i2c: E2 0E 00 [19:38:45]MH_I2C_Read... [19:38:45]Read from MH i2c: E2 0E 00 EB 24 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 86 [19:38:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:38:45]wFMCommunicate OK [19:38:45]SAM_PROTO_GetShiftState done [19:38:45]FM_GetShiftState done [19:38:45]opened in 1720828979 [19:38:45]opened+sec_in_day 1720915379 [19:38:45]quantity*price = 132600 [19:38:45]sum+1 = 132601 [19:38:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1326.00 НСП 1% : 11.73 НДС 12% : 140.81 Наличными: 1326.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 308 13.07.2024 19:38 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162640 ФПД: 126824522615180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193846&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162640&fm=126824522615180&tin=02508201610067®Number=0000000000090858&sum=132600 [19:38:46]StoreToDocumentArchive [19:38:46]shift 462 fd 162640 [19:38:46]save to /storage/0462/doc_00162640 [19:38:46]save last doc name /storage/0462/doc_00162640 to /storage/kkm_last_doc_name [19:38:46]save OK [19:38:46]Clear old archive folders... [19:38:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:46]tlvbuf is 005E7780 [19:38:46]SAM_PROTO_ClearQueue [19:38:46]wFMCommunicate request_size=4 [19:38:46]MH_SAM_APDU [19:38:46]CAPDU: 80 09 00 00 [19:38:46]Write to MH i2c: E2 08 00 F8 24 80 09 00 00 00 00 00 00 8E [19:38:46]Write i2c OK [19:38:46]MH_I2C_Read... [19:38:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:46]Read from MH i2c: E2 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 03 00 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 03 00 F8 24 00 90 00 90 [19:38:46]RAPDU: 90 00 [19:38:46]wFMCommunicate OK [19:38:46]SAM_PROTO_ClearQueue done [19:38:46]KKMCreateOFDPacket [19:38:46]OFDProtocolAddRootSTLVToBuf [19:38:46]FM_MakeSignedData [19:38:46]FM_MakeSignedData [19:38:46]SAM_PROTO_SignData [19:38:46]wFMCommunicate request_size=4 [19:38:46]MH_SAM_APDU [19:38:46]CAPDU: 80 0D 01 02 [19:38:46]Write to MH i2c: E2 08 00 F9 24 80 0D 01 02 00 00 00 00 96 [19:38:46]Write i2c OK [19:38:46]MH_I2C_Read... [19:38:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:46]Read from MH i2c: E2 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 03 00 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 03 00 F9 24 00 90 00 91 [19:38:46]RAPDU: 90 00 [19:38:46]wFMCommunicate OK [19:38:46]wFMCommunicate request_size=255 [19:38:46]MH_SAM_APDU [19:38:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F8 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 37 00 00 00 00 07 04 06 00 F8 05 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 C6 D7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7B 02 00 35 04 06 00 73 [19:38:46]Write to MH i2c: E2 02 01 FA 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F8 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 37 00 00 00 00 07 04 06 00 F8 05 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 C6 D7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7B 02 00 35 04 06 00 73 00 00 C6 [19:38:46]Write i2c OK [19:38:46]MH_I2C_Read... [19:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:46]Read from MH i2c: E2 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 03 00 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 03 00 FA 24 00 90 00 92 [19:38:46]RAPDU: 90 00 [19:38:46]wFMCommunicate OK [19:38:46]wFMCommunicate request_size=10 [19:38:46]MH_SAM_APDU [19:38:46]CAPDU: 80 0D 02 02 05 58 A2 9E 89 8C [19:38:46]Write to MH i2c: E2 0D 00 FB 24 80 0D 02 02 05 00 58 A2 9E 89 8C 00 00 50 [19:38:46]Write i2c OK [19:38:46]MH_I2C_Read... [19:38:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:46]Read from MH i2c: E2 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 03 00 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 03 00 FB 24 00 90 00 93 [19:38:46]RAPDU: 90 00 [19:38:46]wFMCommunicate OK [19:38:46]wFMCommunicate request_size=4 [19:38:46]MH_SAM_APDU [19:38:46]CAPDU: 80 0D 03 02 [19:38:46]Write to MH i2c: E2 08 00 FC 24 80 0D 03 02 00 00 00 00 9B [19:38:46]Write i2c OK [19:38:46]MH_I2C_Read... [19:38:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:46]Read from MH i2c: E2 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 0B 00 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 0B 00 FC 24 00 8D C0 89 D6 1B F0 D9 4F 90 00 7B [19:38:46]RAPDU: 8D C0 89 D6 1B F0 D9 4F 90 00 [19:38:46]wFMCommunicate OK [19:38:46]SAM_PROTO_SignData done [19:38:46]FM_MakeSignedData done [19:38:46]CreateOFDProtocolMessage [19:38:46]wFMCommunicate request_size=4 [19:38:46]MH_SAM_APDU [19:38:46]CAPDU: 80 11 00 00 [19:38:46]Write to MH i2c: E2 08 00 FD 24 80 11 00 00 00 00 00 00 9B [19:38:46]Write i2c OK [19:38:46]MH_I2C_Read... [19:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:46]Read from MH i2c: E2 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 17 00 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: E2 17 00 FD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FB [19:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:38:46]wFMCommunicate OK [19:38:46]CreateOFDProtocolMessage done [19:38:46]OFDSenderStorePacket 162640 [19:38:46]StoreOFDPacket docnum=162640 [19:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E1 C9 07 01 FB CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F8 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 37 00 00 00 00 07 04 06 00 F8 05 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 C6 D7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7B 02 00 35 04 06 00 73 58 A2 9E 89 8C 8D C0 89 D6 1B F0 D9 4F [19:38:46]CheckFolder [19:38:46]dirname=/storage/ofd_packets [19:38:46]CheckFolder done [19:38:46]ProducePacketName [19:38:46]name=ofd_packets/00162640 [19:38:46]NVStorageSaveData ofd_packets/00162640 [19:38:46]File name is /storage/ofd_packets/00162640 [19:38:46]Write 301 bytes [19:38:46]NVStorageSaveData done [19:38:46]OFDSenderStorePacket done [19:38:46]KKMCreateOFDPacket done [19:38:46]NVStorageSaveData kkm_last_timestamp [19:38:46]File name is /storage/kkm_last_timestamp [19:38:46]Write 4 bytes [19:38:46]NVStorageSaveData done [19:38:46]ExternCall_PrintAddStr [19:38:46]wPrintStart [19:38:46]Write to MH i2c: 01 00 00 FE 24 22 [19:38:46]Write i2c OK [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: 01 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: 01 07 00 [19:38:46]MH_I2C_Read... [19:38:46]Read from MH i2c: 01 07 00 FE 24 00 00 00 00 00 FF 0F 37 [19:38:46]RasterBufferAndPrint [19:38:46]line Счет N : (1)1319215 [19:38:46]line ИНН: 02508201610067 [19:38:46]line Контрольно-Кассовый Чек [19:38:46]line ПРОДАЖА [19:38:46]line ТРК (МРК, ГНК) : 43 [19:38:46]line Товар: 2710124130 [19:38:46]line Аи-92-К-5 [19:38:46]line 20.000 * 66.30 [19:38:46]line = 1326.00 [19:38:46]line НДС 12% НСП 1% [19:38:46]line > о реализуемом товаре [19:38:46]line ИТОГО: 1326.00 [19:38:46]line НСП 1% : 11.73 [19:38:46]line НДС 12% : 140.81 [19:38:46]line Наличными: 1326.00 [19:38:46]line Безнал.: 0.00 [19:38:46]line Место: АЗС № 140 "Партнер Нефть" [19:38:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:38:46]line СНО: Общий режим [19:38:46]line Чек 308 13.07.2024 19:38 [19:38:46]line Смена: 462 ФФД: 1.0 [19:38:46]line ЗНМ: 0300000129 [19:38:46]line РНМ: 0000000000090858 [19:38:46]line Версия ККМ: 001 [19:38:46]line ФМ: 0000000000874899 [19:38:46]line ФД: 162640 [19:38:46]line ФПД: 126824522615180 [19:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T193846&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162640&fm=126824522615180&tin=02508201610067®Number=0000000000090858&sum=132600 [19:38:47]OFD Sender: Processing packet 162640 [packets to send 106, broken 105] [19:38:47]ProducePacketName [19:38:47]name=ofd_packets/00162640 [19:38:47]OFD Sender: To server: pG, [19:38:47]CommunicateWithHost lk.salyk.kg:30040 [19:38:47]ConnectInit lk.salyk.kg [19:38:47]written 0, free lines is 4095 [19:38:47]Connected sock=10 [19:38:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 E1 C9 07 01 FB CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F8 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 37 00 00 00 00 07 04 06 00 F8 05 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 C6 D7 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7B 02 00 35 04 06 00 73 58 A2 9E 89 8C 8D C0 89 D6 1B F0 D9 4F [19:38:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E3 5B 47 00 20 B6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 50 7B 02 00 F4 03 04 00 D4 83 92 66 B6 04 01 00 00 40 CF DA 82 31 45 26 47 [19:38:47]CommunicateWithHost err = 0 [19:38:47]CheckOFDResponse [19:38:47]1017 (14) - 77093643461234 [19:38:47]1041 (16) - 0000000000874899 [19:38:47]1040 (4) - 162640 [19:38:47]1012 (4) - 13.07.2024 13:40 [19:38:47]1206 (1) - 0 [19:38:47]OFD Sender: Remove packet 162640 [19:38:47]ProducePacketName [19:38:47]name=ofd_packets/00162640 [19:38:47]NVStorageDeleteData [19:38:47]Write to MH i2c: 01 00 00 26 25 4B [19:38:47]Write i2c OK [19:38:47]MH_I2C_Read... [19:38:47]Read from MH i2c: 01 [19:38:47]MH_I2C_Read... [19:38:47]Read from MH i2c: 01 07 00 [19:38:47]MH_I2C_Read... [19:38:47]Read from MH i2c: 01 07 00 26 25 00 00 00 00 00 0C 0D 6B [19:38:47]RasterBufferAndPrint [19:38:47]line [19:38:47]line [19:38:47]line [19:38:47]line [19:38:47]line [19:38:47]written 0, free lines is 3346 [19:38:47]MH_Cut [19:38:47]Write to MH i2c: D1 01 00 2D 25 01 24 [19:38:47]Write i2c OK [19:38:47]MH_I2C_Read... [19:38:47]Read from MH i2c: D1 [19:38:47]MH_I2C_Read... [19:38:47]Read from MH i2c: D1 01 00 [19:38:47]MH_I2C_Read... [19:38:47]Read from MH i2c: D1 01 00 2D 25 00 23 [19:38:47]Write to MH i2c: 01 00 00 2E 25 53 [19:38:47]Write i2c OK [19:38:47]MH_I2C_Read... [19:38:47]OFD Sender: No OFD packet to send [19:38:48]*** Cut start [19:38:48]*** Purtial cut [19:38:48]*** CUTSNS_PIN = 0 [19:38:48]*** Stage 1: CUTSNS_PIN = 1 [19:38:50]Read from MH i2c: 01 [19:38:50]MH_I2C_Read... [19:38:50]*** Stop cut motor [19:38:50]*** Cut end [19:38:50]Read from MH i2c: 01 07 00 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 FF 0F 68 [19:38:50]process_action close_receipt done [19:38:50]requested_data is exist [19:38:50]produce_requested_data [19:38:50]requested_item fm.sn is exist - process it [19:38:50]wFMCommunicate request_size=4 [19:38:50]MH_SAM_APDU [19:38:50]CAPDU: 80 11 00 00 [19:38:50]Write to MH i2c: E2 08 00 2F 25 80 11 00 00 00 00 00 00 CE [19:38:50]Write i2c OK [19:38:50]MH_I2C_Read... [19:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:50]Read from MH i2c: E2 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 17 00 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 17 00 2F 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2E [19:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:38:50]wFMCommunicate OK [19:38:50]requested_item fd.num is exist - process it [19:38:50]SAM_PROTO_GetFieldsCounters [19:38:50]wFMCommunicate request_size=4 [19:38:50]MH_SAM_APDU [19:38:50]CAPDU: 80 13 00 00 [19:38:50]Write to MH i2c: E2 08 00 30 25 80 13 00 00 00 00 00 00 D1 [19:38:50]Write i2c OK [19:38:50]MH_I2C_Read... [19:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:50]Read from MH i2c: E2 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 62 00 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 62 00 30 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 50 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [19:38:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 50 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:50]wFMCommunicate OK [19:38:50]SAM_PROTO_GetFieldsCounters done [19:38:50]requested_item shift.num is exist - process it [19:38:50]requested_item shift.opened is exist - process it [19:38:50]req_shift_opened [19:38:50]FM_GetShiftState [19:38:50]SAM_PROTO_GetShiftState [19:38:50]wFMCommunicate request_size=4 [19:38:50]MH_SAM_APDU [19:38:50]CAPDU: 80 13 01 00 [19:38:50]Write to MH i2c: E2 08 00 31 25 80 13 01 00 00 00 00 00 D3 [19:38:50]Write i2c OK [19:38:50]MH_I2C_Read... [19:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:50]Read from MH i2c: E2 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 0E 00 [19:38:50]MH_I2C_Read... [19:38:50]Read from MH i2c: E2 0E 00 31 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CD [19:38:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:38:50]wFMCommunicate OK [19:38:50]SAM_PROTO_GetShiftState done [19:38:50]FM_GetShiftState done [19:38:50]req_shift_opened done [19:38:50]requested_item shift.open_date is exist - process it [19:38:50]req_shift_open_date [19:38:50]req_shift_open_date done [19:38:50]produce_requested_data done [19:38:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162640,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:38:50]process_action_free close_receipt [19:38:50]json_value_free [19:38:50]json_value_free done [19:38:50]process_json_proto returns [19:38:50]Send response to host [19:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162640,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:38:50]free response buf [19:38:50]execute_script done [19:38:50]execute_script returns [19:38:50]free content buf [19:38:50]Sock 7.Close socket [19:38:50]Sock 7.Thread stoped [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:18]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [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:36]accept exits with 9 [19:52:36]New connection [19:52:36]New thread 3067366756 created [19:52:36]Thread 3067510116 joined [19:52:36]Waiting for new connection... [19:52:36] Sock 9.Parse request [19:52:36]Sock 9.Check first char [19:52:36]Sock 9.First char is OK [19:52:36]request: POST /json_proto HTTP/1.0 [19:52:36]Method: POST [19:52:36]URL: /json_proto [19:52:36]Method is POST - this is cgi request [19:52:36]url: /json_proto [19:52:36]query_string will be loaded in cgi processing [19:52:36]execute_cgi json_proto POST (null) [19:52:36]execute_cgi path=json_proto method=POST [19:52:36]POST find Content-Length [19:52:36]Host: 172.17.39.67:8080 [19:52:36]Content-Length: 671 [19:52:36]Content-Type: application/json [19:52:36] [19:52:36]POST finish read [19:52:36]Found Content-Length = 671 [19:52:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:36]execute_script... [19:52: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)1319216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:36]POST & json_proto [19:52:36]process_json_proto [19:52:36]json parsed OK: [19:52:36]protocol is kg_v1.0 [19:52:36]action value=close_receipt [19:52:36]process_action close_receipt [19:52:36]cmd_close_receipt [19:52:36]MH_GetDate [19:52:36]Write to MH i2c: F0 00 00 32 25 46 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: F0 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: F0 09 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: F0 09 00 32 25 00 06 DB 92 66 86 7C 92 66 22 [19:52:36]GetLastDocTimeStamp 1720899526 [19:52:36]current date 1720900358 [19:52:36]FM_GetShiftState [19:52:36]SAM_PROTO_GetShiftState [19:52:36]wFMCommunicate request_size=4 [19:52:36]MH_SAM_APDU [19:52:36]CAPDU: 80 13 01 00 [19:52:36]Write to MH i2c: E2 08 00 33 25 80 13 01 00 00 00 00 00 D5 [19:52:36]Write i2c OK [19:52:36]MH_I2C_Read... [19:52:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:36]Read from MH i2c: E2 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 0E 00 [19:52:36]MH_I2C_Read... [19:52:36]Read from MH i2c: E2 0E 00 33 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CF [19:52:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:52:36]wFMCommunicate OK [19:52:36]SAM_PROTO_GetShiftState done [19:52:36]FM_GetShiftState done [19:52:36]opened in 1720828979 [19:52:36]opened+sec_in_day 1720915379 [19:52:36]quantity*price = 50003 [19:52:36]sum+1 = 50005 [19:52:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 309 13.07.2024 19:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162641 ФПД: 258817024389032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195238&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162641&fm=258817024389032&tin=02508201610067®Number=0000000000090858&sum=50000 [19:52:37]StoreToDocumentArchive [19:52:37]shift 462 fd 162641 [19:52:37]save to /storage/0462/doc_00162641 [19:52:37]save last doc name /storage/0462/doc_00162641 to /storage/kkm_last_doc_name [19:52:37]save OK [19:52:37]Clear old archive folders... [19:52:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:52:37]tlvbuf is 006F5B60 [19:52:37]SAM_PROTO_ClearQueue [19:52:37]wFMCommunicate request_size=4 [19:52:37]MH_SAM_APDU [19:52:37]CAPDU: 80 09 00 00 [19:52:37]Write to MH i2c: E2 08 00 40 25 80 09 00 00 00 00 00 00 D7 [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:37]Read from MH i2c: E2 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 03 00 [19:52:37]MH_I2C_Read... [19:52:37]Read from MH i2c: E2 03 00 40 25 00 90 00 D9 [19:52:37]RAPDU: 90 00 [19:52:37]wFMCommunicate OK [19:52:37]SAM_PROTO_ClearQueue done [19:52:37]KKMCreateOFDPacket [19:52:37]OFDProtocolAddRootSTLVToBuf [19:52:37]FM_MakeSignedData [19:52:37]FM_MakeSignedData [19:52:37]SAM_PROTO_SignData [19:52:37]wFMCommunicate request_size=4 [19:52:37]MH_SAM_APDU [19:52:37]CAPDU: 80 0D 01 02 [19:52:37]Write to MH i2c: E2 08 00 41 25 80 0D 01 02 00 00 00 00 DF [19:52:37]Write i2c OK [19:52:37]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 41 25 00 90 00 DA [19:52:38]RAPDU: 90 00 [19:52:38]wFMCommunicate OK [19:52:38]wFMCommunicate request_size=255 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 06 DB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7B 02 00 35 04 06 00 [19:52:38]Write to MH i2c: E2 02 01 42 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 06 DB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7B 02 00 35 04 06 00 00 00 22 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 42 25 00 90 00 DB [19:52:38]RAPDU: 90 00 [19:52:38]wFMCommunicate OK [19:52:38]wFMCommunicate request_size=11 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 0D 02 02 06 EB 64 88 CC EF A8 [19:52:38]Write to MH i2c: E2 0E 00 43 25 80 0D 02 02 06 00 EB 64 88 CC EF A8 00 00 28 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 03 00 43 25 00 90 00 DC [19:52:38]RAPDU: 90 00 [19:52:38]wFMCommunicate OK [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 0D 03 02 [19:52:38]Write to MH i2c: E2 08 00 44 25 80 0D 03 02 00 00 00 00 E4 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0B 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 0B 00 44 25 00 2A 7C 63 31 B2 A5 B1 F3 90 00 1A [19:52:38]RAPDU: 2A 7C 63 31 B2 A5 B1 F3 90 00 [19:52:38]wFMCommunicate OK [19:52:38]SAM_PROTO_SignData done [19:52:38]FM_MakeSignedData done [19:52:38]CreateOFDProtocolMessage [19:52:38]wFMCommunicate request_size=4 [19:52:38]MH_SAM_APDU [19:52:38]CAPDU: 80 11 00 00 [19:52:38]Write to MH i2c: E2 08 00 45 25 80 11 00 00 00 00 00 00 E4 [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:38]Read from MH i2c: E2 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 17 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: E2 17 00 45 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 44 [19:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:52:38]wFMCommunicate OK [19:52:38]CreateOFDProtocolMessage done [19:52:38]OFDSenderStorePacket 162641 [19:52:38]StoreOFDPacket docnum=162641 [19:52:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A8 BD 08 01 B6 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 06 DB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7B 02 00 35 04 06 00 EB 64 88 CC EF A8 2A 7C 63 31 B2 A5 B1 F3 [19:52:38]CheckFolder [19:52:38]dirname=/storage/ofd_packets [19:52:38]CheckFolder done [19:52:38]ProducePacketName [19:52:38]name=ofd_packets/00162641 [19:52:38]NVStorageSaveData ofd_packets/00162641 [19:52:38]File name is /storage/ofd_packets/00162641 [19:52:38]Write 302 bytes [19:52:38]NVStorageSaveData done [19:52:38]OFDSenderStorePacket done [19:52:38]KKMCreateOFDPacket done [19:52:38]NVStorageSaveData kkm_last_timestamp [19:52:38]File name is /storage/kkm_last_timestamp [19:52:38]Write 4 bytes [19:52:38]NVStorageSaveData done [19:52:38]ExternCall_PrintAddStr [19:52:38]wPrintStart [19:52:38]Write to MH i2c: 01 00 00 46 25 6B [19:52:38]Write i2c OK [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 07 00 [19:52:38]MH_I2C_Read... [19:52:38]Read from MH i2c: 01 07 00 46 25 00 00 00 00 00 FF 0F 80 [19:52:38]RasterBufferAndPrint [19:52:38]line Счет N : (1)1319216 [19:52:38]line ИНН: 02508201610067 [19:52:38]line Контрольно-Кассовый Чек [19:52:38]line ПРОДАЖА [19:52:38]line ТРК (МРК, ГНК) : 42 [19:52:38]line Товар: 2710124130 [19:52:38]line Super-92-К-5 [19:52:38]line 7.430 * 67.30 [19:52:38]line = 500.04 [19:52:38]line НДС 12% НСП 1% [19:52:38]line > о реализуемом товаре [19:52:38]line ОКРУГЛЕНИЕ: -0.04 [19:52:38]line ИТОГО: 500.00 [19:52:38]line Внесено: 500.00 [19:52:38]line СДАЧА: 0.00 [19:52:38]line НСП 1% : 4.42 [19:52:38]line НДС 12% : 53.10 [19:52:38]line Наличными: 500.00 [19:52:38]line Безнал.: 0.00 [19:52:38]line Место: АЗС № 140 "Партнер Нефть" [19:52:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:52:38]line СНО: Общий режим [19:52:38]line Чек 309 13.07.2024 19:52 [19:52:38]line Смена: 462 ФФД: 1.0 [19:52:38]line ЗНМ: 0300000129 [19:52:38]line РНМ: 0000000000090858 [19:52:38]line Версия ККМ: 001 [19:52:38]line ФМ: 0000000000874899 [19:52:38]line ФД: 162641 [19:52:38]line ФПД: 258817024389032 [19:52:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195238&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162641&fm=258817024389032&tin=02508201610067®Number=0000000000090858&sum=50000 [19:52:38]OFD Sender: Processing packet 162641 [packets to send 106, broken 105] [19:52:38]ProducePacketName [19:52:38]name=ofd_packets/00162641 [19:52:38]OFD Sender: To server: pG, [19:52:38]CommunicateWithHost lk.salyk.kg:30040 [19:52:38]ConnectInit lk.salyk.kg [19:52:38]written 0, free lines is 4095 [19:52:38]Connected sock=10 [19:52:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 A8 BD 08 01 B6 30 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 06 DB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7B 02 00 35 04 06 00 EB 64 88 CC EF A8 2A 7C 63 31 B2 A5 B1 F3 [19:52:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 78 09 47 00 74 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 51 7B 02 00 F4 03 04 00 14 87 92 66 B6 04 01 00 00 7C 87 6B 38 90 14 F8 5A [19:52:39]CommunicateWithHost err = 0 [19:52:39]CheckOFDResponse [19:52:39]1017 (14) - 77093643461234 [19:52:39]1041 (16) - 0000000000874899 [19:52:39]1040 (4) - 162641 [19:52:39]1012 (4) - 13.07.2024 13:54 [19:52:39]1206 (1) - 0 [19:52:39]OFD Sender: Remove packet 162641 [19:52:39]ProducePacketName [19:52:39]name=ofd_packets/00162641 [19:52:39]NVStorageDeleteData [19:52:39]Write to MH i2c: 01 00 00 71 25 96 [19:52:39]Write i2c OK [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: 01 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: 01 07 00 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: 01 07 00 71 25 00 00 00 00 00 DF 0C 88 [19:52:39]RasterBufferAndPrint [19:52:39]line [19:52:39]line [19:52:39]line [19:52:39]line [19:52:39]line [19:52:39]written 0, free lines is 3301 [19:52:39]MH_Cut [19:52:39]Write to MH i2c: D1 01 00 78 25 01 6F [19:52:39]Write i2c OK [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: D1 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: D1 01 00 [19:52:39]MH_I2C_Read... [19:52:39]Read from MH i2c: D1 01 00 78 25 00 6E [19:52:39]Write to MH i2c: 01 00 00 79 25 9E [19:52:39]Write i2c OK [19:52:39]MH_I2C_Read... [19:52:39]OFD Sender: No OFD packet to send [19:52:40]*** Cut start [19:52:40]*** Purtial cut [19:52:40]*** Stage 1: CUTSNS_PIN = 1 [19:52:40]Read from MH i2c: 01 [19:52:40]MH_I2C_Read... [19:52:40]*** Stop cut motor [19:52:40]*** Cut end [19:52:40]Read from MH i2c: 01 07 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: 01 07 00 79 25 00 00 00 00 00 FF 0F B3 [19:52:40]process_action close_receipt done [19:52:40]requested_data is exist [19:52:40]produce_requested_data [19:52:40]requested_item fm.sn is exist - process it [19:52:40]wFMCommunicate request_size=4 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 11 00 00 [19:52:40]Write to MH i2c: E2 08 00 7A 25 80 11 00 00 00 00 00 00 19 [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 17 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 17 00 7A 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 79 [19:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:52:40]wFMCommunicate OK [19:52:40]requested_item fd.num is exist - process it [19:52:40]SAM_PROTO_GetFieldsCounters [19:52:40]wFMCommunicate request_size=4 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 13 00 00 [19:52:40]Write to MH i2c: E2 08 00 7B 25 80 13 00 00 00 00 00 00 1C [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 62 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 62 00 7B 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 51 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [19:52:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 51 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:52:40]wFMCommunicate OK [19:52:40]SAM_PROTO_GetFieldsCounters done [19:52:40]requested_item shift.num is exist - process it [19:52:40]requested_item shift.opened is exist - process it [19:52:40]req_shift_opened [19:52:40]FM_GetShiftState [19:52:40]SAM_PROTO_GetShiftState [19:52:40]wFMCommunicate request_size=4 [19:52:40]MH_SAM_APDU [19:52:40]CAPDU: 80 13 01 00 [19:52:40]Write to MH i2c: E2 08 00 7C 25 80 13 01 00 00 00 00 00 1E [19:52:40]Write i2c OK [19:52:40]MH_I2C_Read... [19:52:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:40]Read from MH i2c: E2 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 0E 00 [19:52:40]MH_I2C_Read... [19:52:40]Read from MH i2c: E2 0E 00 7C 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 18 [19:52:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:52:40]wFMCommunicate OK [19:52:40]SAM_PROTO_GetShiftState done [19:52:40]FM_GetShiftState done [19:52:40]req_shift_opened done [19:52:40]requested_item shift.open_date is exist - process it [19:52:40]req_shift_open_date [19:52:40]req_shift_open_date done [19:52:40]produce_requested_data done [19:52:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162641,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:52:40]process_action_free close_receipt [19:52:40]json_value_free [19:52:40]json_value_free done [19:52:40]process_json_proto returns [19:52:40]Send response to host [19:52:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162641,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:52:40]free response buf [19:52:40]execute_script done [19:52:40]execute_script returns [19:52:40]free content buf [19:52:40]Sock 9.Close socket [19:52:40]Sock 9.Thread stoped [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:41]accept exits with 7 [19:56:41]New connection [19:56:41]New thread 3067510116 created [19:56:41]Thread 3067366756 joined [19:56:41]Waiting for new connection... [19:56:41] Sock 7.Parse request [19:56:41]Sock 7.Check first char [19:56:41]Sock 7.First char is OK [19:56:41]request: POST /json_proto HTTP/1.0 [19:56:41]Method: POST [19:56:41]URL: /json_proto [19:56:41]Method is POST - this is cgi request [19:56:41]url: /json_proto [19:56:41]query_string will be loaded in cgi processing [19:56:41]execute_cgi json_proto POST (null) [19:56:41]execute_cgi path=json_proto method=POST [19:56:41]POST find Content-Length [19:56:41]Host: 172.17.39.67:8080 [19:56:41]Content-Length: 809 [19:56:41]Content-Type: application/json [19:56:41] [19:56:41]POST finish read [19:56:41]Found Content-Length = 809 [19:56:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:41]execute_script... [19:56: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)1319217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:56:41]POST & json_proto [19:56:41]process_json_proto [19:56:41]json parsed OK: [19:56:41]protocol is kg_v1.0 [19:56:41]action value=close_receipt [19:56:41]process_action close_receipt [19:56:41]cmd_close_receipt [19:56:41]MH_GetDate [19:56:41]Write to MH i2c: F0 00 00 7D 25 91 [19:56:41]Write i2c OK [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: F0 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: F0 09 00 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: F0 09 00 7D 25 00 FB DB 92 66 86 7C 92 66 62 [19:56:41]GetLastDocTimeStamp 1720900358 [19:56:41]current date 1720900603 [19:56:41]FM_GetShiftState [19:56:41]SAM_PROTO_GetShiftState [19:56:41]wFMCommunicate request_size=4 [19:56:41]MH_SAM_APDU [19:56:41]CAPDU: 80 13 01 00 [19:56:41]Write to MH i2c: E2 08 00 7E 25 80 13 01 00 00 00 00 00 20 [19:56:41]Write i2c OK [19:56:41]MH_I2C_Read... [19:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:41]Read from MH i2c: E2 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: E2 0E 00 [19:56:41]MH_I2C_Read... [19:56:41]Read from MH i2c: E2 0E 00 7E 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1A [19:56:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:56:41]wFMCommunicate OK [19:56:41]SAM_PROTO_GetShiftState done [19:56:41]FM_GetShiftState done [19:56:41]opened in 1720828979 [19:56:41]opened+sec_in_day 1720915379 [19:56:41]quantity*price = 100042 [19:56:41]sum+1 = 100044 [19:56:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 310 13.07.2024 19:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162642 ФПД: 160351482544735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195643&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162642&fm=160351482544735&tin=02508201610067®Number=0000000000090858&sum=100043 [19:56:42]StoreToDocumentArchive [19:56:42]shift 462 fd 162642 [19:56:42]save to /storage/0462/doc_00162642 [19:56:42]save last doc name /storage/0462/doc_00162642 to /storage/kkm_last_doc_name [19:56:42]save OK [19:56:42]Clear old archive folders... [19:56:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:56:42]tlvbuf is B6FDD370 [19:56:42]SAM_PROTO_ClearQueue [19:56:42]wFMCommunicate request_size=4 [19:56:42]MH_SAM_APDU [19:56:42]CAPDU: 80 09 00 00 [19:56:42]Write to MH i2c: E2 08 00 8B 25 80 09 00 00 00 00 00 00 22 [19:56:42]Write i2c OK [19:56:42]MH_I2C_Read... [19:56:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:42]Read from MH i2c: E2 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 03 00 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 03 00 8B 25 00 90 00 24 [19:56:42]RAPDU: 90 00 [19:56:42]wFMCommunicate OK [19:56:42]SAM_PROTO_ClearQueue done [19:56:42]KKMCreateOFDPacket [19:56:42]OFDProtocolAddRootSTLVToBuf [19:56:42]FM_MakeSignedData [19:56:42]FM_MakeSignedData [19:56:42]SAM_PROTO_SignData [19:56:42]wFMCommunicate request_size=4 [19:56:42]MH_SAM_APDU [19:56:42]CAPDU: 80 0D 01 02 [19:56:42]Write to MH i2c: E2 08 00 8C 25 80 0D 01 02 00 00 00 00 2A [19:56:42]Write i2c OK [19:56:42]MH_I2C_Read... [19:56:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:42]Read from MH i2c: E2 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 03 00 [19:56:42]MH_I2C_Read... [19:56:42]Read from MH i2c: E2 03 00 8C 25 00 90 00 25 [19:56:42]RAPDU: 90 00 [19:56:42]wFMCommunicate OK [19:56:42]wFMCommunicate request_size=255 [19:56:42]MH_SAM_APDU [19:56:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FB DB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7B 02 00 35 04 06 00 [19:56:42]Write to MH i2c: E2 02 01 8D 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FB DB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7B 02 00 35 04 06 00 00 00 BC [19:56:42]Write i2c OK [19:56:42]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 8D 25 00 90 00 26 [19:56:43]RAPDU: 90 00 [19:56:43]wFMCommunicate OK [19:56:43]wFMCommunicate request_size=11 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 0D 02 02 06 91 D6 BD 28 02 5F [19:56:43]Write to MH i2c: E2 0E 00 8E 25 80 0D 02 02 06 00 91 D6 BD 28 02 5F 00 00 E6 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 03 00 8E 25 00 90 00 27 [19:56:43]RAPDU: 90 00 [19:56:43]wFMCommunicate OK [19:56:43]wFMCommunicate request_size=4 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 0D 03 02 [19:56:43]Write to MH i2c: E2 08 00 8F 25 80 0D 03 02 00 00 00 00 2F [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 0B 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 0B 00 8F 25 00 E8 58 12 50 41 65 F2 25 90 00 8F [19:56:43]RAPDU: E8 58 12 50 41 65 F2 25 90 00 [19:56:43]wFMCommunicate OK [19:56:43]SAM_PROTO_SignData done [19:56:43]FM_MakeSignedData done [19:56:43]CreateOFDProtocolMessage [19:56:43]wFMCommunicate request_size=4 [19:56:43]MH_SAM_APDU [19:56:43]CAPDU: 80 11 00 00 [19:56:43]Write to MH i2c: E2 08 00 90 25 80 11 00 00 00 00 00 00 2F [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:43]Read from MH i2c: E2 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 17 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: E2 17 00 90 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8F [19:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:56:43]wFMCommunicate OK [19:56:43]CreateOFDProtocolMessage done [19:56:43]OFDSenderStorePacket 162642 [19:56:43]StoreOFDPacket docnum=162642 [19:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 79 CA 08 01 8E 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FB DB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7B 02 00 35 04 06 00 91 D6 BD 28 02 5F E8 58 12 50 41 65 F2 25 [19:56:43]CheckFolder [19:56:43]dirname=/storage/ofd_packets [19:56:43]CheckFolder done [19:56:43]ProducePacketName [19:56:43]name=ofd_packets/00162642 [19:56:43]NVStorageSaveData ofd_packets/00162642 [19:56:43]File name is /storage/ofd_packets/00162642 [19:56:43]Write 302 bytes [19:56:43]NVStorageSaveData done [19:56:43]OFDSenderStorePacket done [19:56:43]KKMCreateOFDPacket done [19:56:43]NVStorageSaveData kkm_last_timestamp [19:56:43]File name is /storage/kkm_last_timestamp [19:56:43]Write 4 bytes [19:56:43]NVStorageSaveData done [19:56:43]ExternCall_PrintAddStr [19:56:43]wPrintStart [19:56:43]Write to MH i2c: 01 00 00 91 25 B6 [19:56:43]Write i2c OK [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 07 00 [19:56:43]MH_I2C_Read... [19:56:43]Read from MH i2c: 01 07 00 91 25 00 00 00 00 00 FF 0F CB [19:56:43]RasterBufferAndPrint [19:56:43]line Счет N : (1)1319217 [19:56:43]line ИНН: 02508201610067 [19:56:43]line Контрольно-Кассовый Чек [19:56:43]line ПРОДАЖА [19:56:43]line ТРК (МРК, ГНК) : 21 [19:56:43]line Товар: 2710194210 [19:56:43]line ДТ(л)-К-5 [19:56:43]line 13.780 * 72.60 [19:56:43]line = 1000.43 [19:56:43]line НДС 12% НСП 1% [19:56:43]line > о реализуемом товаре [19:56:43]line ИТОГО: 1000.43 [19:56:43]line НСП 1% : 8.85 [19:56:43]line НДС 12% : 106.24 [19:56:43]line Наличными: 0.00 [19:56:43]line Безнал.: 1000.43 [19:56:43]line Место: АЗС № 140 "Партнер Нефть" [19:56:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:56:43]line СНО: Общий режим [19:56:43]line Чек 310 13.07.2024 19:56 [19:56:43]line Смена: 462 ФФД: 1.0 [19:56:43]line ЗНМ: 0300000129 [19:56:43]line РНМ: 0000000000090858 [19:56:43]line Версия ККМ: 001 [19:56:43]line Платежная система: O! деньги [19:56:43]line ФМ: 0000000000874899 [19:56:43]line ФД: 162642 [19:56:43]line ФПД: 160351482544735 [19:56:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195643&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162642&fm=160351482544735&tin=02508201610067®Number=0000000000090858&sum=100043 [19:56:43]OFD Sender: Processing packet 162642 [packets to send 106, broken 105] [19:56:43]ProducePacketName [19:56:43]name=ofd_packets/00162642 [19:56:43]OFD Sender: To server: pG, [19:56:43]CommunicateWithHost lk.salyk.kg:30040 [19:56:43]ConnectInit lk.salyk.kg [19:56:43]written 0, free lines is 4095 [19:56:43]Connected sock=10 [19:56:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 79 CA 08 01 8E 2A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 FB DB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7B 02 00 35 04 06 00 91 D6 BD 28 02 5F E8 58 12 50 41 65 F2 25 [19:56:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 33 9F 47 00 70 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 52 7B 02 00 F4 03 04 00 09 88 92 66 B6 04 01 00 00 F2 2B AA DD F9 85 7D F7 [19:56:43]CommunicateWithHost err = 0 [19:56:43]CheckOFDResponse [19:56:43]1017 (14) - 77093643461234 [19:56:43]1041 (16) - 0000000000874899 [19:56:43]1040 (4) - 162642 [19:56:43]1012 (4) - 13.07.2024 13:58 [19:56:43]1206 (1) - 0 [19:56:43]OFD Sender: Remove packet 162642 [19:56:43]ProducePacketName [19:56:43]name=ofd_packets/00162642 [19:56:43]NVStorageDeleteData [19:56:44]Write to MH i2c: 01 00 00 BB 25 E0 [19:56:44]Write i2c OK [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: 01 [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: 01 07 00 [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: 01 07 00 BB 25 00 00 00 00 00 F8 0C EB [19:56:44]RasterBufferAndPrint [19:56:44]line [19:56:44]line [19:56:44]line [19:56:44]line [19:56:44]line [19:56:44]written 0, free lines is 3327 [19:56:44]MH_Cut [19:56:44]Write to MH i2c: D1 01 00 C2 25 01 B9 [19:56:44]Write i2c OK [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: D1 [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: D1 01 00 [19:56:44]MH_I2C_Read... [19:56:44]Read from MH i2c: D1 01 00 C2 25 00 B8 [19:56:44]Write to MH i2c: 01 00 00 C3 25 E8 [19:56:44]Write i2c OK [19:56:44]MH_I2C_Read... [19:56:44]OFD Sender: No OFD packet to send [19:56:44]*** Cut start [19:56:44]*** Purtial cut [19:56:44]*** CUTSNS_PIN = 0 [19:56:44]*** Stage 1: CUTSNS_PIN = 1 [19:56:46]Read from MH i2c: 01 [19:56:46]MH_I2C_Read... [19:56:46]*** Stop cut motor [19:56:46]*** Cut end [19:56:46]Read from MH i2c: 01 07 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: 01 07 00 C3 25 00 00 00 00 00 FF 0F FD [19:56:46]process_action close_receipt done [19:56:46]requested_data is exist [19:56:46]produce_requested_data [19:56:46]requested_item fm.sn is exist - process it [19:56:46]wFMCommunicate request_size=4 [19:56:46]MH_SAM_APDU [19:56:46]CAPDU: 80 11 00 00 [19:56:46]Write to MH i2c: E2 08 00 C4 25 80 11 00 00 00 00 00 00 63 [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:46]Read from MH i2c: E2 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 17 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 17 00 C4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C3 [19:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:56:46]wFMCommunicate OK [19:56:46]requested_item fd.num is exist - process it [19:56:46]SAM_PROTO_GetFieldsCounters [19:56:46]wFMCommunicate request_size=4 [19:56:46]MH_SAM_APDU [19:56:46]CAPDU: 80 13 00 00 [19:56:46]Write to MH i2c: E2 08 00 C5 25 80 13 00 00 00 00 00 00 66 [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 62 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 62 00 C5 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 52 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [19:56:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 52 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:47]wFMCommunicate OK [19:56:47]SAM_PROTO_GetFieldsCounters done [19:56:47]requested_item shift.num is exist - process it [19:56:47]requested_item shift.opened is exist - process it [19:56:47]req_shift_opened [19:56:47]FM_GetShiftState [19:56:47]SAM_PROTO_GetShiftState [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 13 01 00 [19:56:47]Write to MH i2c: E2 08 00 C6 25 80 13 01 00 00 00 00 00 68 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 0E 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 0E 00 C6 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 62 [19:56:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:56:47]wFMCommunicate OK [19:56:47]SAM_PROTO_GetShiftState done [19:56:47]FM_GetShiftState done [19:56:47]req_shift_opened done [19:56:47]requested_item shift.open_date is exist - process it [19:56:47]req_shift_open_date [19:56:47]req_shift_open_date done [19:56:47]produce_requested_data done [19:56:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162642,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:56:47]process_action_free close_receipt [19:56:47]json_value_free [19:56:47]json_value_free done [19:56:47]process_json_proto returns [19:56:47]Send response to host [19:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162642,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:56:47]free response buf [19:56:47]execute_script done [19:56:47]execute_script returns [19:56:47]free content buf [19:56:47]Sock 7.Close socket [19:56:47]Sock 7.Thread stoped [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:12]accept exits with 9 [19:57:12]New connection [19:57:12]New thread 3067366756 created [19:57:12]Thread 3067510116 joined [19:57:12]Waiting for new connection... [19:57:12] Sock 9.Parse request [19:57:12]Sock 9.Check first char [19:57:12]Sock 9.First char is OK [19:57:12]request: POST /json_proto HTTP/1.0 [19:57:12]Method: POST [19:57:12]URL: /json_proto [19:57:12]Method is POST - this is cgi request [19:57:12]url: /json_proto [19:57:12]query_string will be loaded in cgi processing [19:57:12]execute_cgi json_proto POST (null) [19:57:12]execute_cgi path=json_proto method=POST [19:57:12]POST find Content-Length [19:57:12]Host: 172.17.39.67:8080 [19:57:12]Content-Length: 683 [19:57:12]Content-Type: application/json [19:57:12] [19:57:12]POST finish read [19:57:12]Found Content-Length = 683 [19:57:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:57:12]execute_script... [19:57:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:57:12]POST & json_proto [19:57:12]process_json_proto [19:57:12]json parsed OK: [19:57:12]protocol is kg_v1.0 [19:57:12]action value=close_receipt [19:57:12]process_action close_receipt [19:57:12]cmd_close_receipt [19:57:12]MH_GetDate [19:57:12]Write to MH i2c: F0 00 00 C7 25 DB [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: F0 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: F0 09 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: F0 09 00 C7 25 00 1A DC 92 66 86 7C 92 66 CC [19:57:12]GetLastDocTimeStamp 1720900603 [19:57:12]current date 1720900634 [19:57:12]FM_GetShiftState [19:57:12]SAM_PROTO_GetShiftState [19:57:12]wFMCommunicate request_size=4 [19:57:12]MH_SAM_APDU [19:57:12]CAPDU: 80 13 01 00 [19:57:12]Write to MH i2c: E2 08 00 C8 25 80 13 01 00 00 00 00 00 6A [19:57:12]Write i2c OK [19:57:12]MH_I2C_Read... [19:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:12]Read from MH i2c: E2 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: E2 0E 00 [19:57:12]MH_I2C_Read... [19:57:12]Read from MH i2c: E2 0E 00 C8 25 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 64 [19:57:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:57:12]wFMCommunicate OK [19:57:12]SAM_PROTO_GetShiftState done [19:57:12]FM_GetShiftState done [19:57:12]opened in 1720828979 [19:57:12]opened+sec_in_day 1720915379 [19:57:12]quantity*price = 50021 [19:57:12]sum+1 = 50022 [19:57:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 311 13.07.2024 19:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162643 ФПД: 158986202307216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195714&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162643&fm=158986202307216&tin=02508201610067®Number=0000000000090858&sum=50000 [19:57:14]StoreToDocumentArchive [19:57:14]shift 462 fd 162643 [19:57:14]save to /storage/0462/doc_00162643 [19:57:14]save last doc name /storage/0462/doc_00162643 to /storage/kkm_last_doc_name [19:57:14]save OK [19:57:14]Clear old archive folders... [19:57:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:57:14]tlvbuf is 006BB870 [19:57:14]SAM_PROTO_ClearQueue [19:57:14]wFMCommunicate request_size=4 [19:57:14]MH_SAM_APDU [19:57:14]CAPDU: 80 09 00 00 [19:57:14]Write to MH i2c: E2 08 00 D5 25 80 09 00 00 00 00 00 00 6C [19:57:14]Write i2c OK [19:57:14]MH_I2C_Read... [19:57:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:14]Read from MH i2c: E2 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 03 00 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 03 00 D5 25 00 90 00 6E [19:57:14]RAPDU: 90 00 [19:57:14]wFMCommunicate OK [19:57:14]SAM_PROTO_ClearQueue done [19:57:14]KKMCreateOFDPacket [19:57:14]OFDProtocolAddRootSTLVToBuf [19:57:14]FM_MakeSignedData [19:57:14]FM_MakeSignedData [19:57:14]SAM_PROTO_SignData [19:57:14]wFMCommunicate request_size=4 [19:57:14]MH_SAM_APDU [19:57:14]CAPDU: 80 0D 01 02 [19:57:14]Write to MH i2c: E2 08 00 D6 25 80 0D 01 02 00 00 00 00 74 [19:57:14]Write i2c OK [19:57:14]MH_I2C_Read... [19:57:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:14]Read from MH i2c: E2 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 03 00 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 03 00 D6 25 00 90 00 6F [19:57:14]RAPDU: 90 00 [19:57:14]wFMCommunicate OK [19:57:14]wFMCommunicate request_size=255 [19:57:14]MH_SAM_APDU [19:57:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 37 01 00 00 F4 03 04 00 1A DC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7B 02 00 35 04 06 00 [19:57:14]Write to MH i2c: E2 02 01 D7 25 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 37 01 00 00 F4 03 04 00 1A DC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7B 02 00 35 04 06 00 00 00 EA [19:57:14]Write i2c OK [19:57:14]MH_I2C_Read... [19:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:14]Read from MH i2c: E2 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 03 00 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 03 00 D7 25 00 90 00 70 [19:57:14]RAPDU: 90 00 [19:57:14]wFMCommunicate OK [19:57:14]wFMCommunicate request_size=11 [19:57:14]MH_SAM_APDU [19:57:14]CAPDU: 80 0D 02 02 06 90 98 DC 1C DA 90 [19:57:14]Write to MH i2c: E2 0E 00 D8 25 80 0D 02 02 06 00 90 98 DC 1C DA 90 00 00 0D [19:57:14]Write i2c OK [19:57:14]MH_I2C_Read... [19:57:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:14]Read from MH i2c: E2 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 03 00 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 03 00 D8 25 00 90 00 71 [19:57:14]RAPDU: 90 00 [19:57:14]wFMCommunicate OK [19:57:14]wFMCommunicate request_size=4 [19:57:14]MH_SAM_APDU [19:57:14]CAPDU: 80 0D 03 02 [19:57:14]Write to MH i2c: E2 08 00 D9 25 80 0D 03 02 00 00 00 00 79 [19:57:14]Write i2c OK [19:57:14]MH_I2C_Read... [19:57:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:14]Read from MH i2c: E2 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 0B 00 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 0B 00 D9 25 00 DC 7D 1C 46 57 13 33 7C 90 00 4E [19:57:14]RAPDU: DC 7D 1C 46 57 13 33 7C 90 00 [19:57:14]wFMCommunicate OK [19:57:14]SAM_PROTO_SignData done [19:57:14]FM_MakeSignedData done [19:57:14]CreateOFDProtocolMessage [19:57:14]wFMCommunicate request_size=4 [19:57:14]MH_SAM_APDU [19:57:14]CAPDU: 80 11 00 00 [19:57:14]Write to MH i2c: E2 08 00 DA 25 80 11 00 00 00 00 00 00 79 [19:57:14]Write i2c OK [19:57:14]MH_I2C_Read... [19:57:14]OFD Sender: No OFD packet to send [19:57:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:14]Read from MH i2c: E2 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 17 00 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: E2 17 00 DA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D9 [19:57:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:57:14]wFMCommunicate OK [19:57:14]CreateOFDProtocolMessage done [19:57:14]OFDSenderStorePacket 162643 [19:57:14]StoreOFDPacket docnum=162643 [19:57:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FD DE 08 01 2D D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 37 01 00 00 F4 03 04 00 1A DC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7B 02 00 35 04 06 00 90 98 DC 1C DA 90 DC 7D 1C 46 57 13 33 7C [19:57:14]CheckFolder [19:57:14]dirname=/storage/ofd_packets [19:57:14]CheckFolder done [19:57:14]ProducePacketName [19:57:14]name=ofd_packets/00162643 [19:57:14]NVStorageSaveData ofd_packets/00162643 [19:57:14]File name is /storage/ofd_packets/00162643 [19:57:14]Write 302 bytes [19:57:14]NVStorageSaveData done [19:57:14]OFDSenderStorePacket done [19:57:14]KKMCreateOFDPacket done [19:57:14]NVStorageSaveData kkm_last_timestamp [19:57:14]File name is /storage/kkm_last_timestamp [19:57:14]Write 4 bytes [19:57:14]NVStorageSaveData done [19:57:14]ExternCall_PrintAddStr [19:57:14]wPrintStart [19:57:14]Write to MH i2c: 01 00 00 DB 25 00 [19:57:14]Write i2c OK [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: 01 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: 01 07 00 [19:57:14]MH_I2C_Read... [19:57:14]Read from MH i2c: 01 07 00 DB 25 00 00 00 00 00 FF 0F 15 [19:57:14]RasterBufferAndPrint [19:57:14]line Счет N : (1)1319219 [19:57:14]line ИНН: 02508201610067 [19:57:14]line Контрольно-Кассовый Чек [19:57:14]line ПРОДАЖА [19:57:14]line ТРК (МРК, ГНК) : 21 [19:57:14]line Товар: 2710194210 [19:57:14]line ДТ(л)-К-5 [19:57:14]line 6.890 * 72.60 [19:57:14]line = 500.21 [19:57:14]line НДС 12% НСП 1% [19:57:14]line > о реализуемом товаре [19:57:14]line ОКРУГЛЕНИЕ: -0.21 [19:57:14]line ИТОГО: 500.00 [19:57:14]line Внесено: 500.00 [19:57:14]line СДАЧА: 0.00 [19:57:14]line НСП 1% : 4.43 [19:57:14]line НДС 12% : 53.12 [19:57:14]line Наличными: 500.00 [19:57:14]line Безнал.: 0.00 [19:57:14]line Место: АЗС № 140 "Партнер Нефть" [19:57:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:57:14]line СНО: Общий режим [19:57:14]line Чек 311 13.07.2024 19:57 [19:57:14]line Смена: 462 ФФД: 1.0 [19:57:14]line ЗНМ: 0300000129 [19:57:14]line РНМ: 0000000000090858 [19:57:14]line Версия ККМ: 001 [19:57:14]line ФМ: 0000000000874899 [19:57:14]line ФД: 162643 [19:57:14]line ФПД: 158986202307216 [19:57:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195714&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162643&fm=158986202307216&tin=02508201610067®Number=0000000000090858&sum=50000 [19:57:14]OFD Sender: Processing packet 162643 [packets to send 106, broken 105] [19:57:14]ProducePacketName [19:57:14]name=ofd_packets/00162643 [19:57:14]OFD Sender: To server: pG, [19:57:14]CommunicateWithHost lk.salyk.kg:30040 [19:57:14]ConnectInit lk.salyk.kg [19:57:14]written 0, free lines is 4095 [19:57:14]Connected sock=10 [19:57:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 FD DE 08 01 2D D5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 37 01 00 00 F4 03 04 00 1A DC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7B 02 00 35 04 06 00 90 98 DC 1C DA 90 DC 7D 1C 46 57 13 33 7C [19:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 61 54 47 00 02 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 53 7B 02 00 F4 03 04 00 28 88 92 66 B6 04 01 00 00 F9 33 ED 83 9E 4F 7A 75 [19:57:15]CommunicateWithHost err = 0 [19:57:15]CheckOFDResponse [19:57:15]1017 (14) - 77093643461234 [19:57:15]1041 (16) - 0000000000874899 [19:57:15]1040 (4) - 162643 [19:57:15]1012 (4) - 13.07.2024 13:59 [19:57:15]1206 (1) - 0 [19:57:15]OFD Sender: Remove packet 162643 [19:57:15]ProducePacketName [19:57:15]name=ofd_packets/00162643 [19:57:15]NVStorageDeleteData [19:57:15]Write to MH i2c: 01 00 00 06 26 2C [19:57:15]Write i2c OK [19:57:15]MH_I2C_Read... [19:57:15]Read from MH i2c: 01 [19:57:15]MH_I2C_Read... [19:57:15]Read from MH i2c: 01 07 00 [19:57:15]MH_I2C_Read... [19:57:15]Read from MH i2c: 01 07 00 06 26 00 00 00 00 00 DA 0C 19 [19:57:15]RasterBufferAndPrint [19:57:15]line [19:57:15]line [19:57:15]line [19:57:15]line [19:57:15]line [19:57:15]written 0, free lines is 3296 [19:57:15]MH_Cut [19:57:15]Write to MH i2c: D1 01 00 0D 26 01 05 [19:57:15]Write i2c OK [19:57:15]MH_I2C_Read... [19:57:15]Read from MH i2c: D1 [19:57:15]MH_I2C_Read... [19:57:15]Read from MH i2c: D1 01 00 [19:57:15]MH_I2C_Read... [19:57:15]Read from MH i2c: D1 01 00 0D 26 00 04 [19:57:15]Write to MH i2c: 01 00 00 0E 26 34 [19:57:15]Write i2c OK [19:57:15]MH_I2C_Read... [19:57:15]OFD Sender: No OFD packet to send [19:57:16]*** Cut start [19:57:16]*** Purtial cut [19:57:16]*** Stage 1: CUTSNS_PIN = 1 [19:57:16]Read from MH i2c: 01 [19:57:16]MH_I2C_Read... [19:57:16]*** Stop cut motor [19:57:16]*** Cut end [19:57:16]Read from MH i2c: 01 07 00 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: 01 07 00 0E 26 00 00 00 00 00 FF 0F 49 [19:57:16]process_action close_receipt done [19:57:16]requested_data is exist [19:57:16]produce_requested_data [19:57:16]requested_item fm.sn is exist - process it [19:57:16]wFMCommunicate request_size=4 [19:57:16]MH_SAM_APDU [19:57:16]CAPDU: 80 11 00 00 [19:57:16]Write to MH i2c: E2 08 00 0F 26 80 11 00 00 00 00 00 00 AF [19:57:16]Write i2c OK [19:57:16]MH_I2C_Read... [19:57:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:16]Read from MH i2c: E2 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: E2 17 00 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: E2 17 00 0F 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0F [19:57:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:57:16]wFMCommunicate OK [19:57:16]requested_item fd.num is exist - process it [19:57:16]SAM_PROTO_GetFieldsCounters [19:57:16]wFMCommunicate request_size=4 [19:57:16]MH_SAM_APDU [19:57:16]CAPDU: 80 13 00 00 [19:57:16]Write to MH i2c: E2 08 00 10 26 80 13 00 00 00 00 00 00 B2 [19:57:16]Write i2c OK [19:57:16]MH_I2C_Read... [19:57:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:16]Read from MH i2c: E2 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: E2 62 00 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: E2 62 00 10 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 53 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [19:57:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 53 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:16]wFMCommunicate OK [19:57:16]SAM_PROTO_GetFieldsCounters done [19:57:16]requested_item shift.num is exist - process it [19:57:16]requested_item shift.opened is exist - process it [19:57:16]req_shift_opened [19:57:16]FM_GetShiftState [19:57:16]SAM_PROTO_GetShiftState [19:57:16]wFMCommunicate request_size=4 [19:57:16]MH_SAM_APDU [19:57:16]CAPDU: 80 13 01 00 [19:57:16]Write to MH i2c: E2 08 00 11 26 80 13 01 00 00 00 00 00 B4 [19:57:16]Write i2c OK [19:57:16]MH_I2C_Read... [19:57:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:16]Read from MH i2c: E2 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: E2 0E 00 [19:57:16]MH_I2C_Read... [19:57:16]Read from MH i2c: E2 0E 00 11 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AE [19:57:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:57:16]wFMCommunicate OK [19:57:16]SAM_PROTO_GetShiftState done [19:57:16]FM_GetShiftState done [19:57:16]req_shift_opened done [19:57:16]requested_item shift.open_date is exist - process it [19:57:16]req_shift_open_date [19:57:16]req_shift_open_date done [19:57:16]produce_requested_data done [19:57:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162643,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:57:16]process_action_free close_receipt [19:57:16]json_value_free [19:57:16]json_value_free done [19:57:16]process_json_proto returns [19:57:16]Send response to host [19:57:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162643,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:57:16]free response buf [19:57:16]execute_script done [19:57:16]execute_script returns [19:57:16]free content buf [19:57:16]Sock 9.Close socket [19:57:16]Sock 9.Thread stoped [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:34]accept exits with 7 [19:57:34]New connection [19:57:34]New thread 3067510116 created [19:57:34]Thread 3067366756 joined [19:57:34]Waiting for new connection... [19:57:34] Sock 7.Parse request [19:57:34]Sock 7.Check first char [19:57:34]Sock 7.First char is OK [19:57:34]request: POST /json_proto HTTP/1.0 [19:57:34]Method: POST [19:57:34]URL: /json_proto [19:57:34]Method is POST - this is cgi request [19:57:34]url: /json_proto [19:57:34]query_string will be loaded in cgi processing [19:57:34]execute_cgi json_proto POST (null) [19:57:34]execute_cgi path=json_proto method=POST [19:57:34]POST find Content-Length [19:57:34]Host: 172.17.39.67:8080 [19:57:34]Content-Length: 683 [19:57:34]Content-Type: application/json [19:57:34] [19:57:34]POST finish read [19:57:34]Found Content-Length = 683 [19:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:57:34]execute_script... [19:57: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)1319218", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:57:34]POST & json_proto [19:57:34]process_json_proto [19:57:34]json parsed OK: [19:57:34]protocol is kg_v1.0 [19:57:34]action value=close_receipt [19:57:34]process_action close_receipt [19:57:34]cmd_close_receipt [19:57:34]MH_GetDate [19:57:34]Write to MH i2c: F0 00 00 12 26 27 [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: F0 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: F0 09 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: F0 09 00 12 26 00 2F DC 92 66 86 7C 92 66 2D [19:57:34]GetLastDocTimeStamp 1720900634 [19:57:34]current date 1720900655 [19:57:34]FM_GetShiftState [19:57:34]SAM_PROTO_GetShiftState [19:57:34]wFMCommunicate request_size=4 [19:57:34]MH_SAM_APDU [19:57:34]CAPDU: 80 13 01 00 [19:57:34]Write to MH i2c: E2 08 00 13 26 80 13 01 00 00 00 00 00 B6 [19:57:34]Write i2c OK [19:57:34]MH_I2C_Read... [19:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:34]Read from MH i2c: E2 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 0E 00 [19:57:34]MH_I2C_Read... [19:57:34]Read from MH i2c: E2 0E 00 13 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B0 [19:57:34]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:57:34]wFMCommunicate OK [19:57:34]SAM_PROTO_GetShiftState done [19:57:34]FM_GetShiftState done [19:57:34]opened in 1720828979 [19:57:34]opened+sec_in_day 1720915379 [19:57:34]quantity*price = 50021 [19:57:34]sum+1 = 50022 [19:57:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 312 13.07.2024 19:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162644 ФПД: 40430578557318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195735&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162644&fm=40430578557318&tin=02508201610067®Number=0000000000090858&sum=50000 [19:57:35]StoreToDocumentArchive [19:57:35]shift 462 fd 162644 [19:57:35]save to /storage/0462/doc_00162644 [19:57:35]save last doc name /storage/0462/doc_00162644 to /storage/kkm_last_doc_name [19:57:35]save OK [19:57:35]Clear old archive folders... [19:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:57:35]tlvbuf is B6FE0BF0 [19:57:35]SAM_PROTO_ClearQueue [19:57:35]wFMCommunicate request_size=4 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 09 00 00 [19:57:35]Write to MH i2c: E2 08 00 20 26 80 09 00 00 00 00 00 00 B8 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 20 26 00 90 00 BA [19:57:35]RAPDU: 90 00 [19:57:35]wFMCommunicate OK [19:57:35]SAM_PROTO_ClearQueue done [19:57:35]KKMCreateOFDPacket [19:57:35]OFDProtocolAddRootSTLVToBuf [19:57:35]FM_MakeSignedData [19:57:35]FM_MakeSignedData [19:57:35]SAM_PROTO_SignData [19:57:35]wFMCommunicate request_size=4 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 0D 01 02 [19:57:35]Write to MH i2c: E2 08 00 21 26 80 0D 01 02 00 00 00 00 C0 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 21 26 00 90 00 BB [19:57:35]RAPDU: 90 00 [19:57:35]wFMCommunicate OK [19:57:35]wFMCommunicate request_size=255 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 38 01 00 00 F4 03 04 00 2F DC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7B 02 00 35 04 06 00 [19:57:35]Write to MH i2c: E2 02 01 22 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 38 01 00 00 F4 03 04 00 2F DC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7B 02 00 35 04 06 00 00 00 4D [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]OFD Sender: No OFD packet to send [19:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 22 26 00 90 00 BC [19:57:35]RAPDU: 90 00 [19:57:35]wFMCommunicate OK [19:57:35]wFMCommunicate request_size=11 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 0D 02 02 06 24 C5 7A 45 E1 86 [19:57:35]Write to MH i2c: E2 0E 00 23 26 80 0D 02 02 06 00 24 C5 7A 45 E1 86 00 00 DE [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 03 00 23 26 00 90 00 BD [19:57:35]RAPDU: 90 00 [19:57:35]wFMCommunicate OK [19:57:35]wFMCommunicate request_size=4 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 0D 03 02 [19:57:35]Write to MH i2c: E2 08 00 24 26 80 0D 03 02 00 00 00 00 C5 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 0B 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 0B 00 24 26 00 E0 81 44 ED 3E FF A1 65 90 00 9B [19:57:35]RAPDU: E0 81 44 ED 3E FF A1 65 90 00 [19:57:35]wFMCommunicate OK [19:57:35]SAM_PROTO_SignData done [19:57:35]FM_MakeSignedData done [19:57:35]CreateOFDProtocolMessage [19:57:35]wFMCommunicate request_size=4 [19:57:35]MH_SAM_APDU [19:57:35]CAPDU: 80 11 00 00 [19:57:35]Write to MH i2c: E2 08 00 25 26 80 11 00 00 00 00 00 00 C5 [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:35]Read from MH i2c: E2 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 17 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: E2 17 00 25 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 25 [19:57:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:57:35]wFMCommunicate OK [19:57:35]CreateOFDProtocolMessage done [19:57:35]OFDSenderStorePacket 162644 [19:57:35]StoreOFDPacket docnum=162644 [19:57:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BE FD 08 01 40 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 38 01 00 00 F4 03 04 00 2F DC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7B 02 00 35 04 06 00 24 C5 7A 45 E1 86 E0 81 44 ED 3E FF A1 65 [19:57:35]CheckFolder [19:57:35]dirname=/storage/ofd_packets [19:57:35]CheckFolder done [19:57:35]ProducePacketName [19:57:35]name=ofd_packets/00162644 [19:57:35]NVStorageSaveData ofd_packets/00162644 [19:57:35]File name is /storage/ofd_packets/00162644 [19:57:35]Write 302 bytes [19:57:35]NVStorageSaveData done [19:57:35]OFDSenderStorePacket done [19:57:35]KKMCreateOFDPacket done [19:57:35]NVStorageSaveData kkm_last_timestamp [19:57:35]File name is /storage/kkm_last_timestamp [19:57:35]Write 4 bytes [19:57:35]NVStorageSaveData done [19:57:35]ExternCall_PrintAddStr [19:57:35]wPrintStart [19:57:35]Write to MH i2c: 01 00 00 26 26 4C [19:57:35]Write i2c OK [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 07 00 [19:57:35]MH_I2C_Read... [19:57:35]Read from MH i2c: 01 07 00 26 26 00 00 00 00 00 FF 0F 61 [19:57:35]RasterBufferAndPrint [19:57:35]line Счет N : (1)1319218 [19:57:35]line ИНН: 02508201610067 [19:57:35]line Контрольно-Кассовый Чек [19:57:35]line ПРОДАЖА [19:57:35]line ТРК (МРК, ГНК) : 41 [19:57:35]line Товар: 2710194210 [19:57:35]line ДТ(л)-К-5 [19:57:35]line 6.890 * 72.60 [19:57:35]line = 500.21 [19:57:35]line НДС 12% НСП 1% [19:57:35]line > о реализуемом товаре [19:57:35]line ОКРУГЛЕНИЕ: -0.21 [19:57:35]line ИТОГО: 500.00 [19:57:35]line Внесено: 500.00 [19:57:35]line СДАЧА: 0.00 [19:57:35]line НСП 1% : 4.43 [19:57:35]line НДС 12% : 53.12 [19:57:35]line Наличными: 500.00 [19:57:35]line Безнал.: 0.00 [19:57:35]line Место: АЗС № 140 "Партнер Нефть" [19:57:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:57:35]line СНО: Общий режим [19:57:35]line Чек 312 13.07.2024 19:57 [19:57:35]line Смена: 462 ФФД: 1.0 [19:57:35]line ЗНМ: 0300000129 [19:57:35]line РНМ: 0000000000090858 [19:57:35]line Версия ККМ: 001 [19:57:35]line ФМ: 0000000000874899 [19:57:35]line ФД: 162644 [19:57:35]line ФПД: 40430578557318 [19:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T195735&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162644&fm=40430578557318&tin=02508201610067®Number=0000000000090858&sum=50000 [19:57:36]OFD Sender: Processing packet 162644 [packets to send 106, broken 105] [19:57:36]ProducePacketName [19:57:36]name=ofd_packets/00162644 [19:57:36]OFD Sender: To server: pG, [19:57:36]CommunicateWithHost lk.salyk.kg:30040 [19:57:36]ConnectInit lk.salyk.kg [19:57:36]written 0, free lines is 4095 [19:57:36]Connected sock=10 [19:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BE FD 08 01 40 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 38 01 00 00 F4 03 04 00 2F DC 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7B 02 00 35 04 06 00 24 C5 7A 45 E1 86 E0 81 44 ED 3E FF A1 65 [19:57:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 F1 7C 47 00 86 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 54 7B 02 00 F4 03 04 00 3E 88 92 66 B6 04 01 00 00 F7 B8 CB 23 83 EF 17 BC [19:57:36]CommunicateWithHost err = 0 [19:57:36]CheckOFDResponse [19:57:36]1017 (14) - 77093643461234 [19:57:36]1041 (16) - 0000000000874899 [19:57:36]1040 (4) - 162644 [19:57:36]1012 (4) - 13.07.2024 13:59 [19:57:36]1206 (1) - 0 [19:57:36]OFD Sender: Remove packet 162644 [19:57:36]ProducePacketName [19:57:36]name=ofd_packets/00162644 [19:57:36]NVStorageDeleteData [19:57:36]Write to MH i2c: 01 00 00 51 26 77 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: 01 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: 01 07 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: 01 07 00 51 26 00 00 00 00 00 D7 0C 61 [19:57:36]RasterBufferAndPrint [19:57:36]line [19:57:36]line [19:57:36]line [19:57:36]line [19:57:36]line [19:57:36]written 0, free lines is 3294 [19:57:36]MH_Cut [19:57:36]Write to MH i2c: D1 01 00 58 26 01 50 [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: D1 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: D1 01 00 [19:57:36]MH_I2C_Read... [19:57:36]Read from MH i2c: D1 01 00 58 26 00 4F [19:57:36]Write to MH i2c: 01 00 00 59 26 7F [19:57:36]Write i2c OK [19:57:36]MH_I2C_Read... [19:57:37]OFD Sender: No OFD packet to send [19:57:37]*** Cut start [19:57:37]*** Purtial cut [19:57:37]*** CUTSNS_PIN = 0 [19:57:37]*** Stage 1: CUTSNS_PIN = 1 [19:57:39]Read from MH i2c: 01 [19:57:39]MH_I2C_Read... [19:57:39]*** Stop cut motor [19:57:39]*** Cut end [19:57:39]Read from MH i2c: 01 07 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: 01 07 00 59 26 00 00 00 00 00 FF 0F 94 [19:57:39]process_action close_receipt done [19:57:39]requested_data is exist [19:57:39]produce_requested_data [19:57:39]requested_item fm.sn is exist - process it [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 11 00 00 [19:57:39]Write to MH i2c: E2 08 00 5A 26 80 11 00 00 00 00 00 00 FA [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 17 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 17 00 5A 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5A [19:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [19:57:39]wFMCommunicate OK [19:57:39]requested_item fd.num is exist - process it [19:57:39]SAM_PROTO_GetFieldsCounters [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 13 00 00 [19:57:39]Write to MH i2c: E2 08 00 5B 26 80 13 00 00 00 00 00 00 FD [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 62 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 62 00 5B 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 54 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [19:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 54 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:39]wFMCommunicate OK [19:57:39]SAM_PROTO_GetFieldsCounters done [19:57:39]requested_item shift.num is exist - process it [19:57:39]requested_item shift.opened is exist - process it [19:57:39]req_shift_opened [19:57:39]FM_GetShiftState [19:57:39]SAM_PROTO_GetShiftState [19:57:39]wFMCommunicate request_size=4 [19:57:39]MH_SAM_APDU [19:57:39]CAPDU: 80 13 01 00 [19:57:39]Write to MH i2c: E2 08 00 5C 26 80 13 01 00 00 00 00 00 FF [19:57:39]Write i2c OK [19:57:39]MH_I2C_Read... [19:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:39]Read from MH i2c: E2 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 0E 00 [19:57:39]MH_I2C_Read... [19:57:39]Read from MH i2c: E2 0E 00 5C 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F9 [19:57:39]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [19:57:39]wFMCommunicate OK [19:57:39]SAM_PROTO_GetShiftState done [19:57:39]FM_GetShiftState done [19:57:39]req_shift_opened done [19:57:39]requested_item shift.open_date is exist - process it [19:57:39]req_shift_open_date [19:57:39]req_shift_open_date done [19:57:39]produce_requested_data done [19:57:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162644,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [19:57:39]process_action_free close_receipt [19:57:39]json_value_free [19:57:39]json_value_free done [19:57:39]process_json_proto returns [19:57:39]Send response to host [19:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162644,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [19:57:39]free response buf [19:57:39]execute_script done [19:57:39]execute_script returns [19:57:39]free content buf [19:57:39]Sock 7.Close socket [19:57:39]Sock 7.Thread stoped [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:57]OFD Sender: No OFD packet to send [20:01:02]OFD Sender: No OFD packet to send [20:01:07]OFD Sender: No OFD packet to send [20:01:12]OFD Sender: No OFD packet to send [20:01:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:19]accept exits with 9 [20:02:19]New connection [20:02:19]New thread 3067366756 created [20:02:19]Thread 3067510116 joined [20:02:19]Waiting for new connection... [20:02:19] Sock 9.Parse request [20:02:19]Sock 9.Check first char [20:02:19]Sock 9.First char is OK [20:02:19]request: POST /json_proto HTTP/1.0 [20:02:19]Method: POST [20:02:19]URL: /json_proto [20:02:19]Method is POST - this is cgi request [20:02:19]url: /json_proto [20:02:19]query_string will be loaded in cgi processing [20:02:19]execute_cgi json_proto POST (null) [20:02:19]execute_cgi path=json_proto method=POST [20:02:19]POST find Content-Length [20:02:19]Host: 172.17.39.67:8080 [20:02:19]Content-Length: 1174 [20:02:19]Content-Type: application/json [20:02:19] [20:02:19]POST finish read [20:02:19]Found Content-Length = 1174 [20:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319220\u000A13.07.2024 19:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 994.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102570\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:19]execute_script... [20:02:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319220\u000A13.07.2024 19:59\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 15.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 994.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30102570\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:19]POST & json_proto [20:02:19]process_json_proto [20:02:19]json parsed OK: [20:02:19]protocol is kg_v1.0 [20:02:19]action value=print_text [20:02:19]process_action print_text [20:02:19]cmd_print_text [20:02:19]ExternCall_PrintAddStr [20:02:19]wPrintStart [20:02:19]Write to MH i2c: 01 00 00 5D 26 83 [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 5D 26 00 00 00 00 00 FF 0F 98 [20:02:19]RasterBufferAndPrint [20:02:19]line *****ТОВАРНЫЙ ЧЕК***** [20:02:19]line АЗС 140 [20:02:19]line Партнер нефть [20:02:19]line 02508201610067 [20:02:19]line Кассир : Шамбеталиев А. [20:02:19]line Счет N : (1)1319220 [20:02:19]line 13.07.2024 19:59 [20:02:19]line ПРОДАЖА [20:02:19]line ТРК (МРК, ГНК): 63 [20:02:19]line Вид ГСМ : 2710124130 [20:02:19]line Аи-92-К-5 [20:02:19]line 15.000 x 66.30 [20:02:19]line ИТОГ: 994.50 [20:02:19]line Тип оплаты: Талоны: ТК ГПНА Online [20:02:19]line 30102570 [20:02:19]line ______________________ [20:02:19]line (подпись) [20:02:19]written 0, free lines is 4095 [20:02:19]Write to MH i2c: 01 00 00 72 26 98 [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: 01 07 00 72 26 00 00 00 00 00 F5 0D A1 [20:02:19]RasterBufferAndPrint [20:02:19]line [20:02:19]line [20:02:19]line [20:02:19]line [20:02:19]line [20:02:19]written 0, free lines is 3574 [20:02:19]MH_Cut [20:02:19]Write to MH i2c: D1 01 00 79 26 01 71 [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: D1 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: D1 01 00 [20:02:19]MH_I2C_Read... [20:02:19]Read from MH i2c: D1 01 00 79 26 00 70 [20:02:19]Write to MH i2c: 01 00 00 7A 26 A0 [20:02:19]Write i2c OK [20:02:19]MH_I2C_Read... [20:02:20]*** Cut start [20:02:20]*** Purtial cut [20:02:20]*** Stage 1: CUTSNS_PIN = 1 [20:02:20]Read from MH i2c: 01 [20:02:20]MH_I2C_Read... [20:02:20]*** Stop cut motor [20:02:20]*** Cut end [20:02:20]Read from MH i2c: 01 07 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: 01 07 00 7A 26 00 00 00 00 00 FF 0F B5 [20:02:20]process_action print_text done [20:02:20]requested_data is exist [20:02:20]produce_requested_data [20:02:20]requested_item fm.sn is exist - process it [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 11 00 00 [20:02:20]Write to MH i2c: E2 08 00 7B 26 80 11 00 00 00 00 00 00 1B [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 17 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 17 00 7B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [20:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:02:20]wFMCommunicate OK [20:02:20]requested_item fd.num is exist - process it [20:02:20]SAM_PROTO_GetFieldsCounters [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 13 00 00 [20:02:20]Write to MH i2c: E2 08 00 7C 26 80 13 00 00 00 00 00 00 1E [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 62 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 62 00 7C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 54 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 9C [20:02:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 54 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:20]wFMCommunicate OK [20:02:20]SAM_PROTO_GetFieldsCounters done [20:02:20]requested_item shift.num is exist - process it [20:02:20]requested_item shift.opened is exist - process it [20:02:20]req_shift_opened [20:02:20]FM_GetShiftState [20:02:20]SAM_PROTO_GetShiftState [20:02:20]wFMCommunicate request_size=4 [20:02:20]MH_SAM_APDU [20:02:20]CAPDU: 80 13 01 00 [20:02:20]Write to MH i2c: E2 08 00 7D 26 80 13 01 00 00 00 00 00 20 [20:02:20]Write i2c OK [20:02:20]MH_I2C_Read... [20:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:20]Read from MH i2c: E2 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 0E 00 [20:02:20]MH_I2C_Read... [20:02:20]Read from MH i2c: E2 0E 00 7D 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1A [20:02:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:02:20]wFMCommunicate OK [20:02:20]SAM_PROTO_GetShiftState done [20:02:20]FM_GetShiftState done [20:02:20]req_shift_opened done [20:02:20]requested_item shift.open_date is exist - process it [20:02:20]req_shift_open_date [20:02:20]req_shift_open_date done [20:02:20]produce_requested_data done [20:02:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162644,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [20:02:20]process_action_free print_text [20:02:20]json_value_free [20:02:20]json_value_free done [20:02:20]process_json_proto returns [20:02:20]Send response to host [20:02:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162644,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [20:02:20]free response buf [20:02:20]execute_script done [20:02:20]execute_script returns [20:02:20]free content buf [20:02:20]Sock 9.Close socket [20:02:20]Sock 9.Thread stoped [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04:22]OFD Sender: No OFD packet to send [20:04:27]OFD Sender: No OFD packet to send [20:04:32]OFD Sender: No OFD packet to send [20:04:37]OFD Sender: No OFD packet to send [20:04:42]OFD Sender: No OFD packet to send [20:04:47]OFD Sender: No OFD packet to send [20:04:52]OFD Sender: No OFD packet to send [20:04:57]OFD Sender: No OFD packet to send [20:05:02]OFD Sender: No OFD packet to send [20:05:07]OFD Sender: No OFD packet to send [20:05:12]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:41]accept exits with 7 [20:06:41]New connection [20:06:41]New thread 3067510116 created [20:06:41]Thread 3067366756 joined [20:06:41]Waiting for new connection... [20:06:41] Sock 7.Parse request [20:06:41]Sock 7.Check first char [20:06:41]Sock 7.First char is OK [20:06:41]request: POST /json_proto HTTP/1.0 [20:06:41]Method: POST [20:06:41]URL: /json_proto [20:06:41]Method is POST - this is cgi request [20:06:41]url: /json_proto [20:06:41]query_string will be loaded in cgi processing [20:06:41]execute_cgi json_proto POST (null) [20:06:41]execute_cgi path=json_proto method=POST [20:06:41]POST find Content-Length [20:06:41]Host: 172.17.39.67:8080 [20:06:41]Content-Length: 688 [20:06:41]Content-Type: application/json [20:06:41] [20:06:41]POST finish read [20:06:41]Found Content-Length = 688 [20:06:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:06:41]execute_script... [20:06:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [20:06:41]POST & json_proto [20:06:41]process_json_proto [20:06:41]json parsed OK: [20:06:41]protocol is kg_v1.0 [20:06:41]action value=close_receipt [20:06:41]process_action close_receipt [20:06:41]cmd_close_receipt [20:06:41]MH_GetDate [20:06:41]Write to MH i2c: F0 00 00 7E 26 93 [20:06:41]Write i2c OK [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: F0 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: F0 09 00 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: F0 09 00 7E 26 00 53 DE 92 66 86 7C 92 66 BF [20:06:41]GetLastDocTimeStamp 1720900655 [20:06:41]current date 1720901203 [20:06:41]FM_GetShiftState [20:06:41]SAM_PROTO_GetShiftState [20:06:41]wFMCommunicate request_size=4 [20:06:41]MH_SAM_APDU [20:06:41]CAPDU: 80 13 01 00 [20:06:41]Write to MH i2c: E2 08 00 7F 26 80 13 01 00 00 00 00 00 22 [20:06:41]Write i2c OK [20:06:41]MH_I2C_Read... [20:06:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:41]Read from MH i2c: E2 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: E2 0E 00 [20:06:41]MH_I2C_Read... [20:06:41]Read from MH i2c: E2 0E 00 7F 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1C [20:06:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:06:41]wFMCommunicate OK [20:06:41]SAM_PROTO_GetShiftState done [20:06:41]FM_GetShiftState done [20:06:41]opened in 1720828979 [20:06:41]opened+sec_in_day 1720915379 [20:06:41]quantity*price = 300055 [20:06:41]sum+1 = 300057 [20:06:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 313 13.07.2024 20:06 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162645 ФПД: 116212264780134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200643&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162645&fm=116212264780134&tin=02508201610067®Number=0000000000090858&sum=300000 [20:06:42]StoreToDocumentArchive [20:06:42]shift 462 fd 162645 [20:06:42]save to /storage/0462/doc_00162645 [20:06:42]save last doc name /storage/0462/doc_00162645 to /storage/kkm_last_doc_name [20:06:42]save OK [20:06:42]Clear old archive folders... [20:06:42]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:06:42]tlvbuf is 006DB9D0 [20:06:42]SAM_PROTO_ClearQueue [20:06:42]wFMCommunicate request_size=4 [20:06:42]MH_SAM_APDU [20:06:42]CAPDU: 80 09 00 00 [20:06:42]Write to MH i2c: E2 08 00 8C 26 80 09 00 00 00 00 00 00 24 [20:06:42]Write i2c OK [20:06:42]MH_I2C_Read... [20:06:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:42]Read from MH i2c: E2 [20:06:42]MH_I2C_Read... [20:06:42]Read from MH i2c: E2 03 00 [20:06:42]MH_I2C_Read... [20:06:42]Read from MH i2c: E2 03 00 8C 26 00 90 00 26 [20:06:42]RAPDU: 90 00 [20:06:42]wFMCommunicate OK [20:06:42]SAM_PROTO_ClearQueue done [20:06:42]KKMCreateOFDPacket [20:06:42]OFDProtocolAddRootSTLVToBuf [20:06:42]FM_MakeSignedData [20:06:42]FM_MakeSignedData [20:06:42]SAM_PROTO_SignData [20:06:42]wFMCommunicate request_size=4 [20:06:42]MH_SAM_APDU [20:06:42]CAPDU: 80 0D 01 02 [20:06:42]Write to MH i2c: E2 08 00 8D 26 80 0D 01 02 00 00 00 00 2C [20:06:42]Write i2c OK [20:06:42]MH_I2C_Read... [20:06:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:42]Read from MH i2c: E2 [20:06:42]MH_I2C_Read... [20:06:42]Read from MH i2c: E2 03 00 [20:06:42]MH_I2C_Read... [20:06:42]Read from MH i2c: E2 03 00 8D 26 00 90 00 27 [20:06:42]RAPDU: 90 00 [20:06:42]wFMCommunicate OK [20:06:42]wFMCommunicate request_size=255 [20:06:42]MH_SAM_APDU [20:06:42]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 39 01 00 00 F4 03 04 00 53 DE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7B 02 00 35 04 06 00 [20:06:42]Write to MH i2c: E2 02 01 8E 26 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 39 01 00 00 F4 03 04 00 53 DE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7B 02 00 35 04 06 00 00 00 0D [20:06:43]Write i2c OK [20:06:43]MH_I2C_Read... [20:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:43]Read from MH i2c: E2 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 03 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 03 00 8E 26 00 90 00 28 [20:06:43]RAPDU: 90 00 [20:06:43]wFMCommunicate OK [20:06:43]wFMCommunicate request_size=11 [20:06:43]MH_SAM_APDU [20:06:43]CAPDU: 80 0D 02 02 06 69 B1 C6 C2 C1 66 [20:06:43]Write to MH i2c: E2 0E 00 8F 26 80 0D 02 02 06 00 69 B1 C6 C2 C1 66 00 00 04 [20:06:43]Write i2c OK [20:06:43]MH_I2C_Read... [20:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:43]Read from MH i2c: E2 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 03 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 03 00 8F 26 00 90 00 29 [20:06:43]RAPDU: 90 00 [20:06:43]wFMCommunicate OK [20:06:43]wFMCommunicate request_size=4 [20:06:43]MH_SAM_APDU [20:06:43]CAPDU: 80 0D 03 02 [20:06:43]Write to MH i2c: E2 08 00 90 26 80 0D 03 02 00 00 00 00 31 [20:06:43]Write i2c OK [20:06:43]MH_I2C_Read... [20:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:43]Read from MH i2c: E2 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 0B 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 0B 00 90 26 00 14 00 64 8C 86 57 1F AB 90 00 DD [20:06:43]RAPDU: 14 00 64 8C 86 57 1F AB 90 00 [20:06:43]wFMCommunicate OK [20:06:43]SAM_PROTO_SignData done [20:06:43]FM_MakeSignedData done [20:06:43]CreateOFDProtocolMessage [20:06:43]wFMCommunicate request_size=4 [20:06:43]MH_SAM_APDU [20:06:43]CAPDU: 80 11 00 00 [20:06:43]Write to MH i2c: E2 08 00 91 26 80 11 00 00 00 00 00 00 31 [20:06:43]Write i2c OK [20:06:43]MH_I2C_Read... [20:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:43]Read from MH i2c: E2 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 17 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: E2 17 00 91 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 91 [20:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:06:43]wFMCommunicate OK [20:06:43]CreateOFDProtocolMessage done [20:06:43]OFDSenderStorePacket 162645 [20:06:43]StoreOFDPacket docnum=162645 [20:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 9D 9C 08 01 61 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 39 01 00 00 F4 03 04 00 53 DE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7B 02 00 35 04 06 00 69 B1 C6 C2 C1 66 14 00 64 8C 86 57 1F AB [20:06:43]CheckFolder [20:06:43]dirname=/storage/ofd_packets [20:06:43]CheckFolder done [20:06:43]ProducePacketName [20:06:43]name=ofd_packets/00162645 [20:06:43]NVStorageSaveData ofd_packets/00162645 [20:06:43]File name is /storage/ofd_packets/00162645 [20:06:43]Write 302 bytes [20:06:43]NVStorageSaveData done [20:06:43]OFDSenderStorePacket done [20:06:43]KKMCreateOFDPacket done [20:06:43]NVStorageSaveData kkm_last_timestamp [20:06:43]File name is /storage/kkm_last_timestamp [20:06:43]Write 4 bytes [20:06:43]NVStorageSaveData done [20:06:43]OFD Sender: Processing packet 162645 [packets to send 106, broken 105] [20:06:43]ProducePacketName [20:06:43]name=ofd_packets/00162645 [20:06:43]OFD Sender: To server: pG, [20:06:43]CommunicateWithHost lk.salyk.kg:30040 [20:06:43]ConnectInit lk.salyk.kg [20:06:43]ExternCall_PrintAddStr [20:06:43]wPrintStart [20:06:43]Write to MH i2c: 01 00 00 92 26 B8 [20:06:43]Write i2c OK [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: 01 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: 01 07 00 [20:06:43]MH_I2C_Read... [20:06:43]Read from MH i2c: 01 07 00 92 26 00 00 00 00 00 FF 0F CD [20:06:43]RasterBufferAndPrint [20:06:43]line Счет N : (1)1319221 [20:06:43]line ИНН: 02508201610067 [20:06:43]line Контрольно-Кассовый Чек [20:06:43]line ПРОДАЖА [20:06:43]line ТРК (МРК, ГНК) : 21 [20:06:43]line Товар: 2710194210 [20:06:43]line ДТ(л)-К-5 [20:06:43]line 41.330 * 72.60 [20:06:43]line = 3000.56 [20:06:43]line НДС 12% НСП 1% [20:06:43]line > о реализуемом товаре [20:06:43]line ОКРУГЛЕНИЕ: -0.56 [20:06:43]line ИТОГО: 3000.00 [20:06:43]line Внесено: 3000.00 [20:06:43]line СДАЧА: 0.00 [20:06:43]line НСП 1% : 26.55 [20:06:43]line НДС 12% : 318.64 [20:06:43]line Наличными: 3000.00 [20:06:43]line Безнал.: 0.00 [20:06:43]line Место: АЗС № 140 "Партнер Нефть" [20:06:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:06:43]line СНО: Общий режим [20:06:43]line Чек 313 13.07.2024 20:06 [20:06:43]line Смена: 462 ФФД: 1.0 [20:06:43]line ЗНМ: 0300000129 [20:06:43]line РНМ: 0000000000090858 [20:06:43]line Версия ККМ: 001 [20:06:43]line ФМ: 0000000000874899 [20:06:43]line ФД: 162645 [20:06:43]line ФПД: 116212264780134 [20:06:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T200643&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162645&fm=116212264780134&tin=02508201610067®Number=0000000000090858&sum=300000 [20:06:43]written 0, free lines is 4095 [20:06:44]Write to MH i2c: 01 00 00 BD 26 E3 [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: 01 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: 01 07 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: 01 07 00 BD 26 00 00 00 00 00 E0 0C D6 [20:06:44]RasterBufferAndPrint [20:06:44]line [20:06:44]line [20:06:44]line [20:06:44]line [20:06:44]line [20:06:44]written 0, free lines is 3302 [20:06:44]MH_Cut [20:06:44]Write to MH i2c: D1 01 00 C4 26 01 BC [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: D1 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: D1 01 00 [20:06:44]MH_I2C_Read... [20:06:44]Read from MH i2c: D1 01 00 C4 26 00 BB [20:06:44]Write to MH i2c: 01 00 00 C5 26 EB [20:06:44]Write i2c OK [20:06:44]MH_I2C_Read... [20:06:44]*** Cut start [20:06:44]*** Purtial cut [20:06:44]*** CUTSNS_PIN = 0 [20:06:45]*** Stage 1: CUTSNS_PIN = 1 [20:06:46]Read from MH i2c: 01 [20:06:46]MH_I2C_Read... [20:06:46]*** Stop cut motor [20:06:47]*** Cut end [20:06:47]Read from MH i2c: 01 07 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: 01 07 00 C5 26 00 00 00 00 00 FF 0F 00 [20:06:47]process_action close_receipt done [20:06:47]requested_data is exist [20:06:47]produce_requested_data [20:06:47]requested_item fm.sn is exist - process it [20:06:47]wFMCommunicate request_size=4 [20:06:47]MH_SAM_APDU [20:06:47]CAPDU: 80 11 00 00 [20:06:47]Write to MH i2c: E2 08 00 C6 26 80 11 00 00 00 00 00 00 66 [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:47]Read from MH i2c: E2 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 17 00 [20:06:47]MH_I2C_Read... [20:06:47]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 34 38 39 39 90 00 C6 [20:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:06:47]wFMCommunicate OK [20:06:47]requested_item fd.num is exist - process it [20:06:47]SAM_PROTO_GetFieldsCounters [20:06:47]wFMCommunicate request_size=4 [20:06:47]MH_SAM_APDU [20:06:47]CAPDU: 80 13 00 00 [20:06:47]Write to MH i2c: E2 08 00 C7 26 80 13 00 00 00 00 00 00 69 [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:47]Read from MH i2c: E2 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 62 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 62 00 C7 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 55 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 EB [20:06:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 55 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:06:47]wFMCommunicate OK [20:06:47]SAM_PROTO_GetFieldsCounters done [20:06:47]requested_item shift.num is exist - process it [20:06:47]requested_item shift.opened is exist - process it [20:06:47]req_shift_opened [20:06:47]FM_GetShiftState [20:06:47]SAM_PROTO_GetShiftState [20:06:47]wFMCommunicate request_size=4 [20:06:47]MH_SAM_APDU [20:06:47]CAPDU: 80 13 01 00 [20:06:47]Write to MH i2c: E2 08 00 C8 26 80 13 01 00 00 00 00 00 6B [20:06:47]Write i2c OK [20:06:47]MH_I2C_Read... [20:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:47]Read from MH i2c: E2 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 0E 00 [20:06:47]MH_I2C_Read... [20:06:47]Read from MH i2c: E2 0E 00 C8 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 65 [20:06:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:06:47]wFMCommunicate OK [20:06:47]SAM_PROTO_GetShiftState done [20:06:47]FM_GetShiftState done [20:06:47]req_shift_opened done [20:06:47]requested_item shift.open_date is exist - process it [20:06:47]req_shift_open_date [20:06:47]req_shift_open_date done [20:06:47]produce_requested_data done [20:06:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162645,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [20:06:47]process_action_free close_receipt [20:06:47]json_value_free [20:06:47]json_value_free done [20:06:47]process_json_proto returns [20:06:47]Send response to host [20:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162645,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [20:06:47]free response buf [20:06:47]execute_script done [20:06:47]execute_script returns [20:06:47]free content buf [20:06:47]Sock 7.Close socket [20:06:47]Sock 7.Thread stoped [20:08:56]ConnectInit Can't connect to host [20:08:56]CommunicateWithHost connect error [20:08:56]CommunicateWithHost err = -1 [20:08:56]OFD Sender: Server communicate error [20:09:01]OFD Sender: Processing packet 162645 [packets to send 106, broken 105] [20:09:01]ProducePacketName [20:09:01]name=ofd_packets/00162645 [20:09:01]OFD Sender: To server: pG, [20:09:01]CommunicateWithHost lk.salyk.kg:30040 [20:09:01]ConnectInit lk.salyk.kg [20:09:01]Connected sock=7 [20: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 34 38 39 39 10 01 00 00 9D 9C 08 01 61 1D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 39 01 00 00 F4 03 04 00 53 DE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7B 02 00 35 04 06 00 69 B1 C6 C2 C1 66 14 00 64 8C 86 57 1F AB [20:09:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 75 F4 47 00 12 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 55 7B 02 00 F4 03 04 00 EB 8A 92 66 B6 04 01 00 00 89 B3 49 50 B7 E5 88 12 [20:09:01]CommunicateWithHost err = 0 [20:09:01]CheckOFDResponse [20:09:01]1017 (14) - 77093643461234 [20:09:01]1041 (16) - 0000000000874899 [20:09:01]1040 (4) - 162645 [20:09:01]1012 (4) - 13.07.2024 14:10 [20:09:01]1206 (1) - 0 [20:09:01]OFD Sender: Remove packet 162645 [20:09:01]ProducePacketName [20:09:01]name=ofd_packets/00162645 [20:09:01]NVStorageDeleteData [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]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]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:36]accept exits with 9 [20:28:36]New connection [20:28:36]New thread 3067366756 created [20:28:36]Thread 3067510116 joined [20:28:36]Waiting for new connection... [20:28:36] Sock 9.Parse request [20:28:36]Sock 9.Check first char [20:28:36]Sock 9.First char is OK [20:28:36]request: POST /json_proto HTTP/1.0 [20:28:36]Method: POST [20:28:36]URL: /json_proto [20:28:36]Method is POST - this is cgi request [20:28:36]url: /json_proto [20:28:36]query_string will be loaded in cgi processing [20:28:36]execute_cgi json_proto POST (null) [20:28:36]execute_cgi path=json_proto method=POST [20:28:36]POST find Content-Length [20:28:36]Host: 172.17.39.67:8080 [20:28:36]Content-Length: 643 [20:28:36]Content-Type: application/json [20:28:36] [20:28:36]POST finish read [20:28:36]Found Content-Length = 643 [20:28:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.000, "sum" : 1326.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1326.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:36]execute_script... [20:28: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)1319222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.000, "sum" : 1326.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1326.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:36]POST & json_proto [20:28:36]process_json_proto [20:28:36]json parsed OK: [20:28:36]protocol is kg_v1.0 [20:28:36]action value=close_receipt [20:28:36]process_action close_receipt [20:28:36]cmd_close_receipt [20:28:36]MH_GetDate [20:28:36]Write to MH i2c: F0 00 00 C9 26 DE [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: F0 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: F0 09 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: F0 09 00 C9 26 00 76 E3 92 66 86 7C 92 66 32 [20:28:36]GetLastDocTimeStamp 1720901203 [20:28:36]current date 1720902518 [20:28:36]FM_GetShiftState [20:28:36]SAM_PROTO_GetShiftState [20:28:36]wFMCommunicate request_size=4 [20:28:36]MH_SAM_APDU [20:28:36]CAPDU: 80 13 01 00 [20:28:36]Write to MH i2c: E2 08 00 CA 26 80 13 01 00 00 00 00 00 6D [20:28:36]Write i2c OK [20:28:36]MH_I2C_Read... [20:28:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:36]Read from MH i2c: E2 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 0E 00 [20:28:36]MH_I2C_Read... [20:28:36]Read from MH i2c: E2 0E 00 CA 26 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 67 [20:28:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:28:36]wFMCommunicate OK [20:28:36]SAM_PROTO_GetShiftState done [20:28:36]FM_GetShiftState done [20:28:36]opened in 1720828979 [20:28:36]opened+sec_in_day 1720915379 [20:28:36]quantity*price = 132600 [20:28:36]sum+1 = 132601 [20:28:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1326.00 НСП 1% : 11.73 НДС 12% : 140.81 Наличными: 1326.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 314 13.07.2024 20:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162646 ФПД: 188726112131512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202838&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162646&fm=188726112131512&tin=02508201610067®Number=0000000000090858&sum=132600 [20:28:37]StoreToDocumentArchive [20:28:37]shift 462 fd 162646 [20:28:37]save to /storage/0462/doc_00162646 [20:28:37]save last doc name /storage/0462/doc_00162646 to /storage/kkm_last_doc_name [20:28:37]save OK [20:28:37]Clear old archive folders... [20:28:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:37]tlvbuf is 006F5F40 [20:28:37]SAM_PROTO_ClearQueue [20:28:37]wFMCommunicate request_size=4 [20:28:37]MH_SAM_APDU [20:28:37]CAPDU: 80 09 00 00 [20:28:37]Write to MH i2c: E2 08 00 D7 26 80 09 00 00 00 00 00 00 6F [20:28:37]Write i2c OK [20:28:37]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 D7 26 00 90 00 71 [20:28:38]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]SAM_PROTO_ClearQueue done [20:28:38]KKMCreateOFDPacket [20:28:38]OFDProtocolAddRootSTLVToBuf [20:28:38]FM_MakeSignedData [20:28:38]FM_MakeSignedData [20:28:38]SAM_PROTO_SignData [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 01 02 [20:28:38]Write to MH i2c: E2 08 00 D8 26 80 0D 01 02 00 00 00 00 77 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 D8 26 00 90 00 72 [20:28:38]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]wFMCommunicate request_size=255 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F8 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 37 00 00 00 00 07 04 06 00 F8 05 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 76 E3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7B 02 00 35 04 06 00 AB [20:28:38]Write to MH i2c: E2 02 01 D9 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F8 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 37 00 00 00 00 07 04 06 00 F8 05 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 76 E3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7B 02 00 35 04 06 00 AB 00 00 A7 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]OFD Sender: No OFD packet to send [20:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 D9 26 00 90 00 73 [20:28:38]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]wFMCommunicate request_size=10 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 02 02 05 A5 38 DF 99 B8 [20:28:38]Write to MH i2c: E2 0D 00 DA 26 80 0D 02 02 05 00 A5 38 DF 99 B8 00 00 91 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 03 00 DA 26 00 90 00 74 [20:28:38]RAPDU: 90 00 [20:28:38]wFMCommunicate OK [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 0D 03 02 [20:28:38]Write to MH i2c: E2 08 00 DB 26 80 0D 03 02 00 00 00 00 7C [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 0B 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 0B 00 DB 26 00 B3 B5 70 BF 72 B6 84 20 90 00 E0 [20:28:38]RAPDU: B3 B5 70 BF 72 B6 84 20 90 00 [20:28:38]wFMCommunicate OK [20:28:38]SAM_PROTO_SignData done [20:28:38]FM_MakeSignedData done [20:28:38]CreateOFDProtocolMessage [20:28:38]wFMCommunicate request_size=4 [20:28:38]MH_SAM_APDU [20:28:38]CAPDU: 80 11 00 00 [20:28:38]Write to MH i2c: E2 08 00 DC 26 80 11 00 00 00 00 00 00 7C [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:38]Read from MH i2c: E2 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 17 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: E2 17 00 DC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DC [20:28:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:28:38]wFMCommunicate OK [20:28:38]CreateOFDProtocolMessage done [20:28:38]OFDSenderStorePacket 162646 [20:28:38]StoreOFDPacket docnum=162646 [20:28:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 76 2C 07 01 B8 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F8 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 37 00 00 00 00 07 04 06 00 F8 05 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 76 E3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7B 02 00 35 04 06 00 AB A5 38 DF 99 B8 B3 B5 70 BF 72 B6 84 20 [20:28:38]CheckFolder [20:28:38]dirname=/storage/ofd_packets [20:28:38]CheckFolder done [20:28:38]ProducePacketName [20:28:38]name=ofd_packets/00162646 [20:28:38]NVStorageSaveData ofd_packets/00162646 [20:28:38]File name is /storage/ofd_packets/00162646 [20:28:38]Write 301 bytes [20:28:38]NVStorageSaveData done [20:28:38]OFDSenderStorePacket done [20:28:38]KKMCreateOFDPacket done [20:28:38]NVStorageSaveData kkm_last_timestamp [20:28:38]File name is /storage/kkm_last_timestamp [20:28:38]Write 4 bytes [20:28:38]NVStorageSaveData done [20:28:38]ExternCall_PrintAddStr [20:28:38]wPrintStart [20:28:38]Write to MH i2c: 01 00 00 DD 26 03 [20:28:38]Write i2c OK [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 [20:28:38]MH_I2C_Read... [20:28:38]Read from MH i2c: 01 07 00 DD 26 00 00 00 00 00 FF 0F 18 [20:28:38]RasterBufferAndPrint [20:28:38]line Счет N : (1)1319222 [20:28:38]line ИНН: 02508201610067 [20:28:38]line Контрольно-Кассовый Чек [20:28:38]line ПРОДАЖА [20:28:38]line ТРК (МРК, ГНК) : 43 [20:28:38]line Товар: 2710124130 [20:28:38]line Аи-92-К-5 [20:28:38]line 20.000 * 66.30 [20:28:38]line = 1326.00 [20:28:38]line НДС 12% НСП 1% [20:28:38]line > о реализуемом товаре [20:28:38]line ИТОГО: 1326.00 [20:28:38]line НСП 1% : 11.73 [20:28:38]line НДС 12% : 140.81 [20:28:38]line Наличными: 1326.00 [20:28:38]line Безнал.: 0.00 [20:28:38]line Место: АЗС № 140 "Партнер Нефть" [20:28:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:28:38]line СНО: Общий режим [20:28:38]line Чек 314 13.07.2024 20:28 [20:28:38]line Смена: 462 ФФД: 1.0 [20:28:38]line ЗНМ: 0300000129 [20:28:38]line РНМ: 0000000000090858 [20:28:38]line Версия ККМ: 001 [20:28:38]line ФМ: 0000000000874899 [20:28:38]line ФД: 162646 [20:28:38]line ФПД: 188726112131512 [20:28:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T202838&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162646&fm=188726112131512&tin=02508201610067®Number=0000000000090858&sum=132600 [20:28:38]OFD Sender: Processing packet 162646 [packets to send 106, broken 105] [20:28:38]ProducePacketName [20:28:38]name=ofd_packets/00162646 [20:28:38]OFD Sender: To server: pG, [20:28:38]CommunicateWithHost lk.salyk.kg:30040 [20:28:38]ConnectInit lk.salyk.kg [20:28:38]written 0, free lines is 4095 [20:28:38]Connected sock=10 [20:28:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 76 2C 07 01 B8 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 F8 05 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 05 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 95 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 37 00 00 00 00 07 04 06 00 F8 05 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 76 E3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7B 02 00 35 04 06 00 AB A5 38 DF 99 B8 B3 B5 70 BF 72 B6 84 20 [20:28:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 64 5D 47 00 8C 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 56 7B 02 00 F4 03 04 00 84 8F 92 66 B6 04 01 00 00 15 1A 2D 62 09 38 25 42 [20:28:39]CommunicateWithHost err = 0 [20:28:39]CheckOFDResponse [20:28:39]1017 (14) - 77093643461234 [20:28:39]1041 (16) - 0000000000874899 [20:28:39]1040 (4) - 162646 [20:28:39]1012 (4) - 13.07.2024 14:30 [20:28:39]1206 (1) - 0 [20:28:39]OFD Sender: Remove packet 162646 [20:28:39]ProducePacketName [20:28:39]name=ofd_packets/00162646 [20:28:39]NVStorageDeleteData [20:28:39]Write to MH i2c: 01 00 00 05 27 2C [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 07 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: 01 07 00 05 27 00 00 00 00 00 04 0D 44 [20:28:39]RasterBufferAndPrint [20:28:39]line [20:28:39]line [20:28:39]line [20:28:39]line [20:28:39]line [20:28:39]written 0, free lines is 3338 [20:28:39]MH_Cut [20:28:39]Write to MH i2c: D1 01 00 0C 27 01 05 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: D1 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: D1 01 00 [20:28:39]MH_I2C_Read... [20:28:39]Read from MH i2c: D1 01 00 0C 27 00 04 [20:28:39]Write to MH i2c: 01 00 00 0D 27 34 [20:28:39]Write i2c OK [20:28:39]MH_I2C_Read... [20:28:39]OFD Sender: No OFD packet to send [20:28:40]*** Cut start [20:28:40]*** Purtial cut [20:28:40]*** Stage 1: CUTSNS_PIN = 1 [20:28:40]Read from MH i2c: 01 [20:28:40]MH_I2C_Read... [20:28:40]*** Stop cut motor [20:28:40]*** Cut end [20:28:40]Read from MH i2c: 01 07 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: 01 07 00 0D 27 00 00 00 00 00 FF 0F 49 [20:28:40]process_action close_receipt done [20:28:40]requested_data is exist [20:28:40]produce_requested_data [20:28:40]requested_item fm.sn is exist - process it [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 11 00 00 [20:28:40]Write to MH i2c: E2 08 00 0E 27 80 11 00 00 00 00 00 00 AF [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 17 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 17 00 0E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0F [20:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:28:40]wFMCommunicate OK [20:28:40]requested_item fd.num is exist - process it [20:28:40]SAM_PROTO_GetFieldsCounters [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 13 00 00 [20:28:40]Write to MH i2c: E2 08 00 0F 27 80 13 00 00 00 00 00 00 B2 [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 62 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 62 00 0F 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 38 [20:28:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:40]wFMCommunicate OK [20:28:40]SAM_PROTO_GetFieldsCounters done [20:28:40]requested_item shift.num is exist - process it [20:28:40]requested_item shift.opened is exist - process it [20:28:40]req_shift_opened [20:28:40]FM_GetShiftState [20:28:40]SAM_PROTO_GetShiftState [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 13 01 00 [20:28:40]Write to MH i2c: E2 08 00 10 27 80 13 01 00 00 00 00 00 B4 [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 0E 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 0E 00 10 27 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 AE [20:28:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:28:40]wFMCommunicate OK [20:28:40]SAM_PROTO_GetShiftState done [20:28:40]FM_GetShiftState done [20:28:40]req_shift_opened done [20:28:40]requested_item shift.open_date is exist - process it [20:28:40]req_shift_open_date [20:28:40]req_shift_open_date done [20:28:40]produce_requested_data done [20:28:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162646,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [20:28:40]process_action_free close_receipt [20:28:40]json_value_free [20:28:40]json_value_free done [20:28:40]process_json_proto returns [20:28:40]Send response to host [20:28:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162646,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [20:28:40]free response buf [20:28:40]execute_script done [20:28:40]execute_script returns [20:28:40]free content buf [20:28:40]Sock 9.Close socket [20:28:40]Sock 9.Thread stoped [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]accept exits with 7 [20:32:59]New connection [20:32:59]New thread 3067510116 created [20:32:59]Thread 3067366756 joined [20:32:59]Waiting for new connection... [20:32:59] Sock 7.Parse request [20:32:59]Sock 7.Check first char [20:32:59]Sock 7.First char is OK [20:32:59]request: POST /json_proto HTTP/1.0 [20:32:59]Method: POST [20:32:59]URL: /json_proto [20:32:59]Method is POST - this is cgi request [20:32:59]url: /json_proto [20:32:59]query_string will be loaded in cgi processing [20:32:59]execute_cgi json_proto POST (null) [20:32:59]execute_cgi path=json_proto method=POST [20:32:59]POST find Content-Length [20:32:59]Host: 172.17.39.67:8080 [20:32:59]Content-Length: 1213 [20:32:59]Content-Type: application/json [20:32:59] [20:32:59]POST finish read [20:32:59]Found Content-Length = 1213 [20:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319223\u000A13.07.2024 20:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:59]execute_script... [20:32:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319223\u000A13.07.2024 20:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1326.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A32788\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:59]POST & json_proto [20:32:59]process_json_proto [20:32:59]json parsed OK: [20:32:59]protocol is kg_v1.0 [20:32:59]action value=print_text [20:32:59]process_action print_text [20:32:59]cmd_print_text [20:32:59]ExternCall_PrintAddStr [20:32:59]wPrintStart [20:32:59]Write to MH i2c: 01 00 00 11 27 38 [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: 01 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: 01 07 00 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: 01 07 00 11 27 00 00 00 00 00 FF 0F 4D [20:32:59]RasterBufferAndPrint [20:32:59]line *****ТОВАРНЫЙ ЧЕК***** [20:32:59]line АЗС 140 [20:32:59]line Партнер нефть [20:32:59]line 02508201610067 [20:32:59]line Кассир : Шамбеталиев А. [20:32:59]line Счет N : (1)1319223 [20:32:59]line 13.07.2024 20:30 [20:32:59]line ПРОДАЖА [20:32:59]line ТРК (МРК, ГНК): 33 [20:32:59]line Вид ГСМ : 2710124130 [20:32:59]line Аи-92-К-5 [20:32:59]line 20.000 x 66.30 [20:32:59]line ИТОГ: 1326.00 [20:32:59]line Тип оплаты: Талоны: Топливная Карта [20:32:59]line 32788 [20:32:59]line ______________________ [20:32:59]line (подпись) [20:32:59]written 0, free lines is 4095 [20:32:59]Write to MH i2c: 01 00 00 26 27 4D [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: 01 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: 01 07 00 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: 01 07 00 26 27 00 00 00 00 00 F5 0D 56 [20:32:59]RasterBufferAndPrint [20:32:59]line [20:32:59]line [20:32:59]line [20:32:59]line [20:32:59]line [20:32:59]written 0, free lines is 3575 [20:32:59]MH_Cut [20:32:59]Write to MH i2c: D1 01 00 2D 27 01 26 [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: D1 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: D1 01 00 [20:32:59]MH_I2C_Read... [20:32:59]Read from MH i2c: D1 01 00 2D 27 00 25 [20:32:59]Write to MH i2c: 01 00 00 2E 27 55 [20:32:59]Write i2c OK [20:32:59]MH_I2C_Read... [20:32:59]OFD Sender: No OFD packet to send [20:33:00]*** Cut start [20:33:00]*** Purtial cut [20:33:00]*** CUTSNS_PIN = 0 [20:33:00]*** Stage 1: CUTSNS_PIN = 1 [20:33:02]Read from MH i2c: 01 [20:33:02]MH_I2C_Read... [20:33:02]Read from MH i2c: 01 07 00 [20:33:02]MH_I2C_Read... [20:33:02]*** Stop cut motor [20:33:02]*** Cut end [20:33:02]Read from MH i2c: 01 07 00 2E 27 00 00 00 00 00 FF 0F 6A [20:33:02]process_action print_text done [20:33:02]requested_data is exist [20:33:02]produce_requested_data [20:33:02]requested_item fm.sn is exist - process it [20:33:02]wFMCommunicate request_size=4 [20:33:02]MH_SAM_APDU [20:33:02]CAPDU: 80 11 00 00 [20:33:02]Write to MH i2c: E2 08 00 2F 27 80 11 00 00 00 00 00 00 D0 [20:33:02]Write i2c OK [20:33:02]MH_I2C_Read... [20:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:02]Read from MH i2c: E2 [20:33:02]MH_I2C_Read... [20:33:02]Read from MH i2c: E2 17 00 [20:33:02]MH_I2C_Read... [20:33:02]Read from MH i2c: E2 17 00 2F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [20:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:33:02]wFMCommunicate OK [20:33:02]requested_item fd.num is exist - process it [20:33:02]SAM_PROTO_GetFieldsCounters [20:33:02]wFMCommunicate request_size=4 [20:33:02]MH_SAM_APDU [20:33:02]CAPDU: 80 13 00 00 [20:33:02]Write to MH i2c: E2 08 00 30 27 80 13 00 00 00 00 00 00 D3 [20:33:02]Write i2c OK [20:33:02]MH_I2C_Read... [20:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:02]Read from MH i2c: E2 [20:33:02]MH_I2C_Read... [20:33:02]Read from MH i2c: E2 62 00 [20:33:02]MH_I2C_Read... [20:33:02]Read from MH i2c: E2 62 00 30 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [20:33:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:02]wFMCommunicate OK [20:33:02]SAM_PROTO_GetFieldsCounters done [20:33:02]requested_item shift.num is exist - process it [20:33:02]requested_item shift.opened is exist - process it [20:33:02]req_shift_opened [20:33:02]FM_GetShiftState [20:33:02]SAM_PROTO_GetShiftState [20:33:02]wFMCommunicate request_size=4 [20:33:02]MH_SAM_APDU [20:33:02]CAPDU: 80 13 01 00 [20:33:02]Write to MH i2c: E2 08 00 31 27 80 13 01 00 00 00 00 00 D5 [20:33:02]Write i2c OK [20:33:02]MH_I2C_Read... [20:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:02]Read from MH i2c: E2 [20:33:02]MH_I2C_Read... [20:33:02]Read from MH i2c: E2 0E 00 [20:33:02]MH_I2C_Read... [20:33:02]Read from MH i2c: E2 0E 00 31 27 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CF [20:33:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:33:02]wFMCommunicate OK [20:33:02]SAM_PROTO_GetShiftState done [20:33:02]FM_GetShiftState done [20:33:02]req_shift_opened done [20:33:02]requested_item shift.open_date is exist - process it [20:33:02]req_shift_open_date [20:33:02]req_shift_open_date done [20:33:02]produce_requested_data done [20:33:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162646,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [20:33:02]process_action_free print_text [20:33:02]json_value_free [20:33:02]json_value_free done [20:33:02]process_json_proto returns [20:33:02]Send response to host [20:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162646,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [20:33:02]free response buf [20:33:02]execute_script done [20:33:02]execute_script returns [20:33:02]free content buf [20:33:02]Sock 7.Close socket [20:33:02]Sock 7.Thread stoped [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:50]OFD Sender: No OFD packet to send [20:33:55]OFD Sender: No OFD packet to send [20:34:00]OFD Sender: No OFD packet to send [20:34:05]OFD Sender: No OFD packet to send [20:34:10]OFD Sender: No OFD packet to send [20:34:15]OFD Sender: No OFD packet to send [20:34:20]OFD Sender: No OFD packet to send [20:34:25]OFD Sender: No OFD packet to send [20:34:30]OFD Sender: No OFD packet to send [20:34:35]OFD Sender: No OFD packet to send [20:34:40]OFD Sender: No OFD packet to send [20:34:45]OFD Sender: No OFD packet to send [20:34:50]OFD Sender: No OFD packet to send [20:34:55]OFD Sender: No OFD packet to send [20:35:00]OFD Sender: No OFD packet to send [20:35:05]OFD Sender: No OFD packet to send [20:35:10]OFD Sender: No OFD packet to send [20:35:15]OFD Sender: No OFD packet to send [20:35:20]OFD Sender: No OFD packet to send [20:35:25]OFD Sender: No OFD packet to send [20:35:30]OFD Sender: No OFD packet to send [20:35:35]OFD Sender: No OFD packet to send [20:35:40]OFD Sender: No OFD packet to send [20:35:45]OFD Sender: No OFD packet to send [20:35:50]OFD Sender: No OFD packet to send [20:35:55]OFD Sender: No OFD packet to send [20:36:00]OFD Sender: No OFD packet to send [20:36:05]OFD Sender: No OFD packet to send [20:36:10]OFD Sender: No OFD packet to send [20:36:15]OFD Sender: No OFD packet to send [20:36:20]OFD Sender: No OFD packet to send [20:36:25]OFD Sender: No OFD packet to send [20:36:30]OFD Sender: No OFD packet to send [20:36:35]OFD Sender: No OFD packet to send [20:36:40]OFD Sender: No OFD packet to send [20:36:45]OFD Sender: No OFD packet to send [20:36:50]OFD Sender: No OFD packet to send [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:50]OFD Sender: No OFD packet to send [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]accept exits with 9 [20:38:30]New connection [20:38:30]New thread 3067366756 created [20:38:30]Thread 3067510116 joined [20:38:30]Waiting for new connection... [20:38:30] Sock 9.Parse request [20:38:30]Sock 9.Check first char [20:38:30]Sock 9.First char is OK [20:38:30]request: POST /json_proto HTTP/1.0 [20:38:30]Method: POST [20:38:30]URL: /json_proto [20:38:30]Method is POST - this is cgi request [20:38:30]url: /json_proto [20:38:30]query_string will be loaded in cgi processing [20:38:30]execute_cgi json_proto POST (null) [20:38:30]execute_cgi path=json_proto method=POST [20:38:30]POST find Content-Length [20:38:30]Host: 172.17.39.67:8080 [20:38:30]Content-Length: 1213 [20:38:30]Content-Type: application/json [20:38:30] [20:38:30]POST finish read [20:38:30]Found Content-Length = 1213 [20:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319224\u000A13.07.2024 20:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1657.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:30]execute_script... [20:38:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 140\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410.\u000A\u0421\u0447\u0435\u0442 N : (1)1319224\u000A13.07.2024 20:35\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 43\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 25.000 x 66.30\u000A\u0418\u0422\u041E\u0413: 1657.50\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A01860\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:30]POST & json_proto [20:38:30]process_json_proto [20:38:30]json parsed OK: [20:38:30]protocol is kg_v1.0 [20:38:30]action value=print_text [20:38:30]process_action print_text [20:38:30]cmd_print_text [20:38:30]ExternCall_PrintAddStr [20:38:30]wPrintStart [20:38:30]Write to MH i2c: 01 00 00 32 27 59 [20:38:30]Write i2c OK [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: 01 [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: 01 07 00 [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: 01 07 00 32 27 00 00 00 00 00 FF 0F 6E [20:38:30]RasterBufferAndPrint [20:38:30]line *****ТОВАРНЫЙ ЧЕК***** [20:38:30]line АЗС 140 [20:38:30]line Партнер нефть [20:38:30]line 02508201610067 [20:38:30]line Кассир : Шамбеталиев А. [20:38:30]line Счет N : (1)1319224 [20:38:30]line 13.07.2024 20:35 [20:38:30]line ПРОДАЖА [20:38:30]line ТРК (МРК, ГНК): 43 [20:38:30]line Вид ГСМ : 2710124130 [20:38:30]line Аи-92-К-5 [20:38:30]line 25.000 x 66.30 [20:38:30]line ИТОГ: 1657.50 [20:38:30]line Тип оплаты: Талоны: Топливная Карта [20:38:30]line 01860 [20:38:30]line ______________________ [20:38:30]line (подпись) [20:38:30]written 0, free lines is 4095 [20:38:30]Write to MH i2c: 01 00 00 47 27 6E [20:38:30]Write i2c OK [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: 01 [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: 01 07 00 [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: 01 07 00 47 27 00 00 00 00 00 F4 0D 76 [20:38:30]RasterBufferAndPrint [20:38:30]line [20:38:30]line [20:38:30]line [20:38:30]line [20:38:30]line [20:38:30]written 0, free lines is 3574 [20:38:30]MH_Cut [20:38:30]Write to MH i2c: D1 01 00 4E 27 01 47 [20:38:30]Write i2c OK [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: D1 [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: D1 01 00 [20:38:30]MH_I2C_Read... [20:38:30]Read from MH i2c: D1 01 00 4E 27 00 46 [20:38:30]Write to MH i2c: 01 00 00 4F 27 76 [20:38:30]Write i2c OK [20:38:30]MH_I2C_Read... [20:38:30]OFD Sender: No OFD packet to send [20:38:30]*** Cut start [20:38:30]*** Purtial cut [20:38:30]*** Stage 1: CUTSNS_PIN = 1 [20:38:31]Read from MH i2c: 01 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: 01 07 00 [20:38:31]MH_I2C_Read... [20:38:31]*** Stop cut motor [20:38:31]*** Cut end [20:38:31]Read from MH i2c: 01 07 00 4F 27 00 00 00 00 00 FF 0F 8B [20:38:31]process_action print_text done [20:38:31]requested_data is exist [20:38:31]produce_requested_data [20:38:31]requested_item fm.sn is exist - process it [20:38:31]wFMCommunicate request_size=4 [20:38:31]MH_SAM_APDU [20:38:31]CAPDU: 80 11 00 00 [20:38:31]Write to MH i2c: E2 08 00 50 27 80 11 00 00 00 00 00 00 F1 [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:31]Read from MH i2c: E2 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 17 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 17 00 50 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 51 [20:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:38:31]wFMCommunicate OK [20:38:31]requested_item fd.num is exist - process it [20:38:31]SAM_PROTO_GetFieldsCounters [20:38:31]wFMCommunicate request_size=4 [20:38:31]MH_SAM_APDU [20:38:31]CAPDU: 80 13 00 00 [20:38:31]Write to MH i2c: E2 08 00 51 27 80 13 00 00 00 00 00 00 F4 [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:31]Read from MH i2c: E2 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 62 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 62 00 51 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [20:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 56 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:31]wFMCommunicate OK [20:38:31]SAM_PROTO_GetFieldsCounters done [20:38:31]requested_item shift.num is exist - process it [20:38:31]requested_item shift.opened is exist - process it [20:38:31]req_shift_opened [20:38:31]FM_GetShiftState [20:38:31]SAM_PROTO_GetShiftState [20:38:31]wFMCommunicate request_size=4 [20:38:31]MH_SAM_APDU [20:38:31]CAPDU: 80 13 01 00 [20:38:31]Write to MH i2c: E2 08 00 52 27 80 13 01 00 00 00 00 00 F6 [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:31]Read from MH i2c: E2 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 0E 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 0E 00 52 27 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F0 [20:38:31]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:38:31]wFMCommunicate OK [20:38:31]SAM_PROTO_GetShiftState done [20:38:31]FM_GetShiftState done [20:38:31]req_shift_opened done [20:38:31]requested_item shift.open_date is exist - process it [20:38:31]req_shift_open_date [20:38:31]req_shift_open_date done [20:38:31]produce_requested_data done [20:38:31]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162646,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [20:38:31]process_action_free print_text [20:38:31]json_value_free [20:38:31]json_value_free done [20:38:31]process_json_proto returns [20:38:31]Send response to host [20:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162646,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [20:38:31]free response buf [20:38:31]execute_script done [20:38:31]execute_script returns [20:38:31]free content buf [20:38:31]Sock 9.Close socket [20:38:31]Sock 9.Thread stoped [20:38:35]OFD Sender: No OFD packet to send [20:38:40]OFD Sender: No OFD packet to send [20:38:45]OFD Sender: No OFD packet to send [20:38:50]OFD Sender: No OFD packet to send [20:38:55]OFD Sender: No OFD packet to send [20:39:00]OFD Sender: No OFD packet to send [20:39:05]OFD Sender: No OFD packet to send [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:42]accept exits with 7 [20:39:42]New connection [20:39:42]New thread 3067510116 created [20:39:42]Thread 3067366756 joined [20:39:42]Waiting for new connection... [20:39:42] Sock 7.Parse request [20:39:42]Sock 7.Check first char [20:39:42]Sock 7.First char is OK [20:39:42]request: POST /json_proto HTTP/1.0 [20:39:42]Method: POST [20:39:42]URL: /json_proto [20:39:42]Method is POST - this is cgi request [20:39:42]url: /json_proto [20:39:42]query_string will be loaded in cgi processing [20:39:42]execute_cgi json_proto POST (null) [20:39:42]execute_cgi path=json_proto method=POST [20:39:42]POST find Content-Length [20:39:42]Host: 172.17.39.67:8080 [20:39:42]Content-Length: 678 [20:39:42]Content-Type: application/json [20:39:42] [20:39:42]POST finish read [20:39:42]Found Content-Length = 678 [20:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.900, "sum" : 590.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:42]execute_script... [20:39: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)1319225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 8.900, "sum" : 590.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 590.00, "payments": [ { "type": 0, "sum" : 590.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:42]POST & json_proto [20:39:42]process_json_proto [20:39:42]json parsed OK: [20:39:42]protocol is kg_v1.0 [20:39:42]action value=close_receipt [20:39:42]process_action close_receipt [20:39:42]cmd_close_receipt [20:39:42]MH_GetDate [20:39:42]Write to MH i2c: F0 00 00 53 27 69 [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: F0 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: F0 09 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: F0 09 00 53 27 00 10 E6 92 66 86 7C 92 66 5A [20:39:42]GetLastDocTimeStamp 1720902518 [20:39:42]current date 1720903184 [20:39:42]FM_GetShiftState [20:39:42]SAM_PROTO_GetShiftState [20:39:42]wFMCommunicate request_size=4 [20:39:42]MH_SAM_APDU [20:39:42]CAPDU: 80 13 01 00 [20:39:42]Write to MH i2c: E2 08 00 54 27 80 13 01 00 00 00 00 00 F8 [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:42]Read from MH i2c: E2 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 0E 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 0E 00 54 27 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 F2 [20:39:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:39:42]wFMCommunicate OK [20:39:42]SAM_PROTO_GetShiftState done [20:39:42]FM_GetShiftState done [20:39:42]opened in 1720828979 [20:39:42]opened+sec_in_day 1720915379 [20:39:42]quantity*price = 59007 [20:39:42]sum+1 = 59008 [20:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 590.00 Внесено: 600.00 СДАЧА: 10.00 НСП 1% : 5.22 НДС 12% : 62.66 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 315 13.07.2024 20:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162647 ФПД: 213382710718403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T203944&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162647&fm=213382710718403&tin=02508201610067®Number=0000000000090858&sum=59000 [20:39:43]StoreToDocumentArchive [20:39:43]shift 462 fd 162647 [20:39:43]save to /storage/0462/doc_00162647 [20:39:43]save last doc name /storage/0462/doc_00162647 to /storage/kkm_last_doc_name [20:39:43]save OK [20:39:43]Clear old archive folders... [20:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:39:43]tlvbuf is B6F495E0 [20:39:43]SAM_PROTO_ClearQueue [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 09 00 00 [20:39:43]Write to MH i2c: E2 08 00 61 27 80 09 00 00 00 00 00 00 FA [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 61 27 00 90 00 FC [20:39:43]RAPDU: 90 00 [20:39:43]wFMCommunicate OK [20:39:43]SAM_PROTO_ClearQueue done [20:39:43]KKMCreateOFDPacket [20:39:43]OFDProtocolAddRootSTLVToBuf [20:39:43]FM_MakeSignedData [20:39:43]FM_MakeSignedData [20:39:43]SAM_PROTO_SignData [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 0D 01 02 [20:39:43]Write to MH i2c: E2 08 00 62 27 80 0D 01 02 00 00 00 00 02 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:43]Read from MH i2c: E2 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: E2 03 00 62 27 00 90 00 FD [20:39:43]RAPDU: 90 00 [20:39:43]wFMCommunicate OK [20:39:43]wFMCommunicate request_size=255 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 22 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 10 E6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7B 02 00 35 04 06 00 C2 [20:39:43]Write to MH i2c: E2 02 01 63 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 22 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 10 E6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7B 02 00 35 04 06 00 C2 00 00 51 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 63 27 00 90 00 FE [20:39:44]RAPDU: 90 00 [20:39:44]wFMCommunicate OK [20:39:44]wFMCommunicate request_size=10 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 0D 02 02 05 12 08 AC 6F C3 [20:39:44]Write to MH i2c: E2 0D 00 64 27 80 0D 02 02 05 00 12 08 AC 6F C3 00 00 07 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 03 00 64 27 00 90 00 FF [20:39:44]RAPDU: 90 00 [20:39:44]wFMCommunicate OK [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 0D 03 02 [20:39:44]Write to MH i2c: E2 08 00 65 27 80 0D 03 02 00 00 00 00 07 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0B 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0B 00 65 27 00 3D E0 54 97 16 EF ED 05 90 00 07 [20:39:44]RAPDU: 3D E0 54 97 16 EF ED 05 90 00 [20:39:44]wFMCommunicate OK [20:39:44]SAM_PROTO_SignData done [20:39:44]FM_MakeSignedData done [20:39:44]CreateOFDProtocolMessage [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 11 00 00 [20:39:44]Write to MH i2c: E2 08 00 66 27 80 11 00 00 00 00 00 00 07 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 17 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 17 00 66 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 67 [20:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:39:44]wFMCommunicate OK [20:39:44]CreateOFDProtocolMessage done [20:39:44]OFDSenderStorePacket 162647 [20:39:44]StoreOFDPacket docnum=162647 [20:39:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DB 2E 07 01 9E D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 22 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 10 E6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7B 02 00 35 04 06 00 C2 12 08 AC 6F C3 3D E0 54 97 16 EF ED 05 [20:39:44]CheckFolder [20:39:44]dirname=/storage/ofd_packets [20:39:44]CheckFolder done [20:39:44]ProducePacketName [20:39:44]name=ofd_packets/00162647 [20:39:44]NVStorageSaveData ofd_packets/00162647 [20:39:44]File name is /storage/ofd_packets/00162647 [20:39:44]Write 301 bytes [20:39:44]NVStorageSaveData done [20:39:44]OFDSenderStorePacket done [20:39:44]KKMCreateOFDPacket done [20:39:44]NVStorageSaveData kkm_last_timestamp [20:39:44]File name is /storage/kkm_last_timestamp [20:39:44]Write 4 bytes [20:39:44]NVStorageSaveData done [20:39:44]ExternCall_PrintAddStr [20:39:44]wPrintStart [20:39:44]Write to MH i2c: 01 00 00 67 27 8E [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: 01 07 00 67 27 00 00 00 00 00 FF 0F A3 [20:39:44]RasterBufferAndPrint [20:39:44]line Счет N : (1)1319225 [20:39:44]line ИНН: 02508201610067 [20:39:44]line Контрольно-Кассовый Чек [20:39:44]line ПРОДАЖА [20:39:44]line ТРК (МРК, ГНК) : 63 [20:39:44]line Товар: 2710124130 [20:39:44]line Аи-92-К-5 [20:39:44]line 8.900 * 66.30 [20:39:44]line = 590.07 [20:39:44]line НДС 12% НСП 1% [20:39:44]line > о реализуемом товаре [20:39:44]line ОКРУГЛЕНИЕ: -0.07 [20:39:44]line ИТОГО: 590.00 [20:39:44]line Внесено: 600.00 [20:39:44]line СДАЧА: 10.00 [20:39:44]line НСП 1% : 5.22 [20:39:44]line НДС 12% : 62.66 [20:39:44]line Наличными: 590.00 [20:39:44]line Безнал.: 0.00 [20:39:44]line Место: АЗС № 140 "Партнер Нефть" [20:39:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:39:44]line СНО: Общий режим [20:39:44]line Чек 315 13.07.2024 20:39 [20:39:44]line Смена: 462 ФФД: 1.0 [20:39:44]line ЗНМ: 0300000129 [20:39:44]line РНМ: 0000000000090858 [20:39:44]line Версия ККМ: 001 [20:39:44]line ФМ: 0000000000874899 [20:39:44]line ФД: 162647 [20:39:44]line ФПД: 213382710718403 [20:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T203944&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162647&fm=213382710718403&tin=02508201610067®Number=0000000000090858&sum=59000 [20:39:44]OFD Sender: Processing packet 162647 [packets to send 106, broken 105] [20:39:44]ProducePacketName [20:39:44]name=ofd_packets/00162647 [20:39:44]OFD Sender: To server: pG, [20:39:44]CommunicateWithHost lk.salyk.kg:30040 [20:39:44]ConnectInit lk.salyk.kg [20:39:44]written 0, free lines is 4095 [20:39:44]Connected sock=10 [20:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DB 2E 07 01 9E D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 22 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7F E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 10 E6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7B 02 00 35 04 06 00 C2 12 08 AC 6F C3 3D E0 54 97 16 EF ED 05 [20:39:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A5 2B 47 00 E5 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 57 7B 02 00 F4 03 04 00 1E 92 92 66 B6 04 01 00 00 10 7B 12 9B C7 9B 9D 2B [20:39:45]CommunicateWithHost err = 0 [20:39:45]CheckOFDResponse [20:39:45]1017 (14) - 77093643461234 [20:39:45]1041 (16) - 0000000000874899 [20:39:45]1040 (4) - 162647 [20:39:45]1012 (4) - 13.07.2024 14:41 [20:39:45]1206 (1) - 0 [20:39:45]OFD Sender: Remove packet 162647 [20:39:45]ProducePacketName [20:39:45]name=ofd_packets/00162647 [20:39:45]NVStorageDeleteData [20:39:45]Write to MH i2c: 01 00 00 92 27 B9 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 07 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 07 00 92 27 00 00 00 00 00 D7 0C A3 [20:39:45]RasterBufferAndPrint [20:39:45]line [20:39:45]line [20:39:45]line [20:39:45]line [20:39:45]line [20:39:45]written 0, free lines is 3296 [20:39:45]MH_Cut [20:39:45]Write to MH i2c: D1 01 00 99 27 01 92 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: D1 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: D1 01 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: D1 01 00 99 27 00 91 [20:39:45]Write to MH i2c: 01 00 00 9A 27 C1 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]OFD Sender: No OFD packet to send [20:39:45]*** Cut start [20:39:45]*** Purtial cut [20:39:45]*** CUTSNS_PIN = 0 [20:39:46]*** Stage 1: CUTSNS_PIN = 1 [20:39:47]Read from MH i2c: 01 [20:39:47]MH_I2C_Read... [20:39:47]*** Stop cut motor [20:39:47]*** Cut end [20:39:47]Read from MH i2c: 01 07 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: 01 07 00 9A 27 00 00 00 00 00 FF 0F D6 [20:39:47]process_action close_receipt done [20:39:47]requested_data is exist [20:39:47]produce_requested_data [20:39:47]requested_item fm.sn is exist - process it [20:39:47]wFMCommunicate request_size=4 [20:39:47]MH_SAM_APDU [20:39:47]CAPDU: 80 11 00 00 [20:39:47]Write to MH i2c: E2 08 00 9B 27 80 11 00 00 00 00 00 00 3C [20:39:47]Write i2c OK [20:39:47]MH_I2C_Read... [20:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:47]Read from MH i2c: E2 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: E2 17 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: E2 17 00 9B 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9C [20:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:39:47]wFMCommunicate OK [20:39:47]requested_item fd.num is exist - process it [20:39:47]SAM_PROTO_GetFieldsCounters [20:39:47]wFMCommunicate request_size=4 [20:39:47]MH_SAM_APDU [20:39:47]CAPDU: 80 13 00 00 [20:39:47]Write to MH i2c: E2 08 00 9C 27 80 13 00 00 00 00 00 00 3F [20:39:47]Write i2c OK [20:39:47]MH_I2C_Read... [20:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:48]Read from MH i2c: E2 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 62 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 62 00 9C 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 57 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 C9 [20: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 57 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:48]wFMCommunicate OK [20:39:48]SAM_PROTO_GetFieldsCounters done [20:39:48]requested_item shift.num is exist - process it [20:39:48]requested_item shift.opened is exist - process it [20:39:48]req_shift_opened [20:39:48]FM_GetShiftState [20:39:48]SAM_PROTO_GetShiftState [20:39:48]wFMCommunicate request_size=4 [20:39:48]MH_SAM_APDU [20:39:48]CAPDU: 80 13 01 00 [20:39:48]Write to MH i2c: E2 08 00 9D 27 80 13 01 00 00 00 00 00 41 [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:48]Read from MH i2c: E2 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 0E 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 0E 00 9D 27 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3B [20:39:48]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:39:48]wFMCommunicate OK [20:39:48]SAM_PROTO_GetShiftState done [20:39:48]FM_GetShiftState done [20:39:48]req_shift_opened done [20:39:48]requested_item shift.open_date is exist - process it [20:39:48]req_shift_open_date [20:39:48]req_shift_open_date done [20:39:48]produce_requested_data done [20:39:48]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162647,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [20:39:48]process_action_free close_receipt [20:39:48]json_value_free [20:39:48]json_value_free done [20:39:48]process_json_proto returns [20:39:48]Send response to host [20:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162647,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [20:39:48]free response buf [20:39:48]execute_script done [20:39:48]execute_script returns [20:39:48]free content buf [20:39:48]Sock 7.Close socket [20:39:48]Sock 7.Thread stoped [20:39:50]OFD Sender: No OFD packet to send [20:39:55]OFD Sender: No OFD packet to send [20:40:00]OFD Sender: No OFD packet to send [20:40:05]OFD Sender: No OFD packet to send [20:40:10]OFD Sender: No OFD packet to send [20:40:15]OFD Sender: No OFD packet to send [20:40:20]OFD Sender: No OFD packet to send [20:40:25]OFD Sender: No OFD packet to send [20:40:30]OFD Sender: No OFD packet to send [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:47]accept exits with 9 [20:57:47]New connection [20:57:47]New thread 3067366756 created [20:57:47]Thread 3067510116 joined [20:57:47]Waiting for new connection... [20:57:47] Sock 9.Parse request [20:57:47]Sock 9.Check first char [20:57:47]Sock 9.First char is OK [20:57:47]request: POST /json_proto HTTP/1.0 [20:57:47]Method: POST [20:57:47]URL: /json_proto [20:57:47]Method is POST - this is cgi request [20:57:47]url: /json_proto [20:57:47]query_string will be loaded in cgi processing [20:57:47]execute_cgi json_proto POST (null) [20:57:47]execute_cgi path=json_proto method=POST [20:57:47]POST find Content-Length [20:57:47]Host: 172.17.39.67:8080 [20:57:47]Content-Length: 688 [20:57:47]Content-Type: application/json [20:57:47] [20:57:47]POST finish read [20:57:47]Found Content-Length = 688 [20:57:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 80.030, "sum" : 5810.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5810.00, "total" : 5810.00, "payments": [ { "type": 0, "sum" : 5810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:47]execute_script... [20:57: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)1319226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 80.030, "sum" : 5810.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5810.00, "total" : 5810.00, "payments": [ { "type": 0, "sum" : 5810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:57:47]POST & json_proto [20:57:47]process_json_proto [20:57:47]json parsed OK: [20:57:47]protocol is kg_v1.0 [20:57:47]action value=close_receipt [20:57:47]process_action close_receipt [20:57:47]cmd_close_receipt [20:57:47]MH_GetDate [20:57:47]Write to MH i2c: F0 00 00 9E 27 B4 [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: F0 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: F0 09 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: F0 09 00 9E 27 00 4C EA 92 66 86 7C 92 66 E5 [20:57:47]GetLastDocTimeStamp 1720903184 [20:57:47]current date 1720904268 [20:57:47]FM_GetShiftState [20:57:47]SAM_PROTO_GetShiftState [20:57:47]wFMCommunicate request_size=4 [20:57:47]MH_SAM_APDU [20:57:47]CAPDU: 80 13 01 00 [20:57:47]Write to MH i2c: E2 08 00 9F 27 80 13 01 00 00 00 00 00 43 [20:57:47]Write i2c OK [20:57:47]MH_I2C_Read... [20:57:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:47]Read from MH i2c: E2 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 0E 00 [20:57:47]MH_I2C_Read... [20:57:47]Read from MH i2c: E2 0E 00 9F 27 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3D [20:57:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:57:47]wFMCommunicate OK [20:57:47]SAM_PROTO_GetShiftState done [20:57:47]FM_GetShiftState done [20:57:47]opened in 1720828979 [20:57:47]opened+sec_in_day 1720915379 [20:57:47]quantity*price = 581017 [20:57:47]sum+1 = 581019 [20:57:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 5810.00 Внесено: 5810.00 СДАЧА: 0.00 НСП 1% : 51.42 НДС 12% : 617.01 Наличными: 5810.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 316 13.07.2024 20:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162648 ФПД: 81267827422338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205748&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162648&fm=81267827422338&tin=02508201610067®Number=0000000000090858&sum=581000 [20:57:48]StoreToDocumentArchive [20:57:48]shift 462 fd 162648 [20:57:48]save to /storage/0462/doc_00162648 [20:57:48]save last doc name /storage/0462/doc_00162648 to /storage/kkm_last_doc_name [20:57:48]save OK [20:57:48]Clear old archive folders... [20:57:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:57:48]tlvbuf is B6F30AE0 [20:57:48]SAM_PROTO_ClearQueue [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 09 00 00 [20:57:48]Write to MH i2c: E2 08 00 AC 27 80 09 00 00 00 00 00 00 45 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 AC 27 00 90 00 47 [20:57:48]RAPDU: 90 00 [20:57:48]wFMCommunicate OK [20:57:48]SAM_PROTO_ClearQueue done [20:57:48]KKMCreateOFDPacket [20:57:48]OFDProtocolAddRootSTLVToBuf [20:57:48]FM_MakeSignedData [20:57:48]FM_MakeSignedData [20:57:48]SAM_PROTO_SignData [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 0D 01 02 [20:57:48]Write to MH i2c: E2 08 00 AD 27 80 0D 01 02 00 00 00 00 4D [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 AD 27 00 90 00 48 [20:57:48]RAPDU: 90 00 [20:57:48]wFMCommunicate OK [20:57:48]wFMCommunicate request_size=255 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 38 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A DD 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 DD 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 F1 00 00 00 00 07 04 06 00 88 DD 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 4C EA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7B 02 00 35 04 06 00 [20:57:48]Write to MH i2c: E2 02 01 AE 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 38 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A DD 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 DD 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 F1 00 00 00 00 07 04 06 00 88 DD 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 4C EA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7B 02 00 35 04 06 00 00 00 7B [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 AE 27 00 90 00 49 [20:57:48]RAPDU: 90 00 [20:57:48]wFMCommunicate OK [20:57:48]wFMCommunicate request_size=11 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 0D 02 02 06 49 E9 A3 FC 34 82 [20:57:48]Write to MH i2c: E2 0E 00 AF 27 80 0D 02 02 06 00 49 E9 A3 FC 34 82 00 00 E3 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 03 00 AF 27 00 90 00 4A [20:57:48]RAPDU: 90 00 [20:57:48]wFMCommunicate OK [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 0D 03 02 [20:57:48]Write to MH i2c: E2 08 00 B0 27 80 0D 03 02 00 00 00 00 52 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 0B 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 0B 00 B0 27 00 DC EF 0D C3 2A 6F F1 B8 90 00 30 [20:57:48]RAPDU: DC EF 0D C3 2A 6F F1 B8 90 00 [20:57:48]wFMCommunicate OK [20:57:48]SAM_PROTO_SignData done [20:57:48]FM_MakeSignedData done [20:57:48]CreateOFDProtocolMessage [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 11 00 00 [20:57:48]Write to MH i2c: E2 08 00 B1 27 80 11 00 00 00 00 00 00 52 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 17 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 17 00 B1 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B2 [20:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:57:48]wFMCommunicate OK [20:57:48]CreateOFDProtocolMessage done [20:57:48]OFDSenderStorePacket 162648 [20:57:48]StoreOFDPacket docnum=162648 [20:57:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E3 4E 08 01 A5 9A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 38 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A DD 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 DD 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 F1 00 00 00 00 07 04 06 00 88 DD 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 4C EA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7B 02 00 35 04 06 00 49 E9 A3 FC 34 82 DC EF 0D C3 2A 6F F1 B8 [20:57:48]CheckFolder [20:57:48]dirname=/storage/ofd_packets [20:57:48]CheckFolder done [20:57:48]ProducePacketName [20:57:48]name=ofd_packets/00162648 [20:57:48]NVStorageSaveData ofd_packets/00162648 [20:57:48]File name is /storage/ofd_packets/00162648 [20:57:48]Write 302 bytes [20:57:48]NVStorageSaveData done [20:57:48]OFDSenderStorePacket done [20:57:48]KKMCreateOFDPacket done [20:57:48]NVStorageSaveData kkm_last_timestamp [20:57:48]File name is /storage/kkm_last_timestamp [20:57:48]Write 4 bytes [20:57:48]NVStorageSaveData done [20:57:48]OFD Sender: Processing packet 162648 [packets to send 106, broken 105] [20:57:48]ProducePacketName [20:57:48]name=ofd_packets/00162648 [20:57:48]OFD Sender: To server: pG, [20:57:48]CommunicateWithHost lk.salyk.kg:30040 [20:57:48]ConnectInit lk.salyk.kg [20:57:48]ExternCall_PrintAddStr [20:57:48]wPrintStart [20:57:48]Write to MH i2c: 01 00 00 B2 27 D9 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 07 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: 01 07 00 B2 27 00 00 00 00 00 FF 0F EE [20:57:48]RasterBufferAndPrint [20:57:48]line Счет N : (1)1319226 [20:57:48]line ИНН: 02508201610067 [20:57:48]line Контрольно-Кассовый Чек [20:57:48]line ПРОДАЖА [20:57:48]line ТРК (МРК, ГНК) : 11 [20:57:48]line Товар: 2710194210 [20:57:48]line ДТ(л)-К-5 [20:57:48]line 80.030 * 72.60 [20:57:48]line = 5810.18 [20:57:48]line НДС 12% НСП 1% [20:57:48]line > о реализуемом товаре [20:57:48]line ОКРУГЛЕНИЕ: -0.18 [20:57:48]line ИТОГО: 5810.00 [20:57:48]line Внесено: 5810.00 [20:57:48]line СДАЧА: 0.00 [20:57:48]line НСП 1% : 51.42 [20:57:48]line НДС 12% : 617.01 [20:57:48]line Наличными: 5810.00 [20:57:48]line Безнал.: 0.00 [20:57:48]line Место: АЗС № 140 "Партнер Нефть" [20:57:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:57:48]line СНО: Общий режим [20:57:48]line Чек 316 13.07.2024 20:57 [20:57:48]line Смена: 462 ФФД: 1.0 [20:57:48]line ЗНМ: 0300000129 [20:57:48]line РНМ: 0000000000090858 [20:57:48]line Версия ККМ: 001 [20:57:48]line ФМ: 0000000000874899 [20:57:48]line ФД: 162648 [20:57:49]line ФПД: 81267827422338 [20:57:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T205748&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162648&fm=81267827422338&tin=02508201610067®Number=0000000000090858&sum=581000 [20:57:49]Connected sock=11 [20:57:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 E3 4E 08 01 A5 9A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 9E 38 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 9A DD 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 DD 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 F1 00 00 00 00 07 04 06 00 88 DD 08 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 4C EA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7B 02 00 35 04 06 00 49 E9 A3 FC 34 82 DC EF 0D C3 2A 6F F1 B8 [20:57:49]written 0, free lines is 4095 [20:57:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 38 FD 47 00 D0 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 58 7B 02 00 F4 03 04 00 5A 96 92 66 B6 04 01 00 00 40 FD 86 AA 61 53 E2 54 [20:57:49]CommunicateWithHost err = 0 [20:57:49]CheckOFDResponse [20:57:49]1017 (14) - 77093643461234 [20:57:49]1041 (16) - 0000000000874899 [20:57:49]1040 (4) - 162648 [20:57:49]1012 (4) - 13.07.2024 14:59 [20:57:49]1206 (1) - 0 [20:57:49]OFD Sender: Remove packet 162648 [20:57:49]ProducePacketName [20:57:49]name=ofd_packets/00162648 [20:57:49]NVStorageDeleteData [20:57:49]Write to MH i2c: 01 00 00 DD 27 04 [20:57:49]Write i2c OK [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: 01 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: 01 07 00 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: 01 07 00 DD 27 00 00 00 00 00 D4 0C EB [20:57:49]RasterBufferAndPrint [20:57:49]line [20:57:49]line [20:57:49]line [20:57:49]line [20:57:49]line [20:57:49]written 0, free lines is 3290 [20:57:49]MH_Cut [20:57:49]Write to MH i2c: D1 01 00 E4 27 01 DD [20:57:49]Write i2c OK [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: D1 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: D1 01 00 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: D1 01 00 E4 27 00 DC [20:57:49]Write to MH i2c: 01 00 00 E5 27 0C [20:57:49]Write i2c OK [20:57:49]MH_I2C_Read... [20:57:49]OFD Sender: No OFD packet to send [20:57:50]*** Cut start [20:57:50]*** Purtial cut [20:57:50]*** Stage 1: CUTSNS_PIN = 1 [20:57:50]Read from MH i2c: 01 [20:57:50]MH_I2C_Read... [20:57:50]*** Stop cut motor [20:57:50]*** Cut end [20:57:50]Read from MH i2c: 01 07 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: 01 07 00 E5 27 00 00 00 00 00 FF 0F 21 [20:57:50]process_action close_receipt done [20:57:50]requested_data is exist [20:57:50]produce_requested_data [20:57:50]requested_item fm.sn is exist - process it [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 11 00 00 [20:57:50]Write to MH i2c: E2 08 00 E6 27 80 11 00 00 00 00 00 00 87 [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 17 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 17 00 E6 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E7 [20:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [20:57:50]wFMCommunicate OK [20:57:50]requested_item fd.num is exist - process it [20:57:50]SAM_PROTO_GetFieldsCounters [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 13 00 00 [20:57:50]Write to MH i2c: E2 08 00 E7 27 80 13 00 00 00 00 00 00 8A [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 62 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 62 00 E7 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 58 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [20:57:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 58 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:57:50]wFMCommunicate OK [20:57:50]SAM_PROTO_GetFieldsCounters done [20:57:50]requested_item shift.num is exist - process it [20:57:50]requested_item shift.opened is exist - process it [20:57:50]req_shift_opened [20:57:50]FM_GetShiftState [20:57:50]SAM_PROTO_GetShiftState [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 13 01 00 [20:57:50]Write to MH i2c: E2 08 00 E8 27 80 13 01 00 00 00 00 00 8C [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 0E 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 0E 00 E8 27 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 86 [20:57:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [20:57:50]wFMCommunicate OK [20:57:50]SAM_PROTO_GetShiftState done [20:57:50]FM_GetShiftState done [20:57:50]req_shift_opened done [20:57:50]requested_item shift.open_date is exist - process it [20:57:50]req_shift_open_date [20:57:50]req_shift_open_date done [20:57:50]produce_requested_data done [20:57:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162648,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [20:57:50]process_action_free close_receipt [20:57:50]json_value_free [20:57:50]json_value_free done [20:57:50]process_json_proto returns [20:57:50]Send response to host [20:57:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162648,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [20:57:50]free response buf [20:57:50]execute_script done [20:57:50]execute_script returns [20:57:50]free content buf [20:57:50]Sock 9.Close socket [20:57:50]Sock 9.Thread stoped [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [21:01:35]OFD Sender: No OFD packet to send [21:01:40]OFD Sender: No OFD packet to send [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:03:00]OFD Sender: No OFD packet to send [21:03:05]OFD Sender: No OFD packet to send [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:11]accept exits with 7 [21:04:11]New connection [21:04:11]New thread 3067510116 created [21:04:11]Thread 3067366756 joined [21:04:11]Waiting for new connection... [21:04:11] Sock 7.Parse request [21:04:11]Sock 7.Check first char [21:04:11]Sock 7.First char is OK [21:04:11]request: POST /json_proto HTTP/1.0 [21:04:11]Method: POST [21:04:11]URL: /json_proto [21:04:11]Method is POST - this is cgi request [21:04:11]url: /json_proto [21:04:11]query_string will be loaded in cgi processing [21:04:11]execute_cgi json_proto POST (null) [21:04:11]execute_cgi path=json_proto method=POST [21:04:11]POST find Content-Length [21:04:11]Host: 172.17.39.67:8080 [21:04:11]Content-Length: 807 [21:04:11]Content-Type: application/json [21:04:11] [21:04:11]POST finish read [21:04:11]Found Content-Length = 807 [21:04:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.000, "sum" : 726.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" : 726.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:11]execute_script... [21:04: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)1319227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.000, "sum" : 726.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" : 726.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:11]POST & json_proto [21:04:11]process_json_proto [21:04:11]json parsed OK: [21:04:11]protocol is kg_v1.0 [21:04:11]action value=close_receipt [21:04:11]process_action close_receipt [21:04:11]cmd_close_receipt [21:04:11]MH_GetDate [21:04:11]Write to MH i2c: F0 00 00 E9 27 FF [21:04:11]Write i2c OK [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: F0 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: F0 09 00 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: F0 09 00 E9 27 00 CD EB 92 66 86 7C 92 66 B2 [21:04:11]GetLastDocTimeStamp 1720904268 [21:04:11]current date 1720904653 [21:04:11]FM_GetShiftState [21:04:11]SAM_PROTO_GetShiftState [21:04:11]wFMCommunicate request_size=4 [21:04:11]MH_SAM_APDU [21:04:11]CAPDU: 80 13 01 00 [21:04:11]Write to MH i2c: E2 08 00 EA 27 80 13 01 00 00 00 00 00 8E [21:04:11]Write i2c OK [21:04:11]MH_I2C_Read... [21:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:11]Read from MH i2c: E2 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: E2 0E 00 [21:04:11]MH_I2C_Read... [21:04:11]Read from MH i2c: E2 0E 00 EA 27 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 88 [21:04:11]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:04:11]wFMCommunicate OK [21:04:11]SAM_PROTO_GetShiftState done [21:04:11]FM_GetShiftState done [21:04:11]opened in 1720828979 [21:04:11]opened+sec_in_day 1720915379 [21:04:11]quantity*price = 72600 [21:04:11]sum+1 = 72601 [21:04:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 726.00 НСП 1% : 6.42 НДС 12% : 77.10 Наличными: 0.00 Безнал.: 726.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 317 13.07.2024 21:04 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162649 ФПД: 260552297812978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210413&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162649&fm=260552297812978&tin=02508201610067®Number=0000000000090858&sum=72600 [21:04:13]StoreToDocumentArchive [21:04:13]shift 462 fd 162649 [21:04:13]save to /storage/0462/doc_00162649 [21:04:13]save last doc name /storage/0462/doc_00162649 to /storage/kkm_last_doc_name [21:04:13]save OK [21:04:13]Clear old archive folders... [21:04:13]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:04:13]tlvbuf is B6F307C0 [21:04:13]SAM_PROTO_ClearQueue [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 09 00 00 [21:04:13]Write to MH i2c: E2 08 00 F7 27 80 09 00 00 00 00 00 00 90 [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 F7 27 00 90 00 92 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]SAM_PROTO_ClearQueue done [21:04:13]KKMCreateOFDPacket [21:04:13]OFDProtocolAddRootSTLVToBuf [21:04:13]FM_MakeSignedData [21:04:13]FM_MakeSignedData [21:04:13]SAM_PROTO_SignData [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 01 02 [21:04:13]Write to MH i2c: E2 08 00 F8 27 80 0D 01 02 00 00 00 00 98 [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 F8 27 00 90 00 93 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]wFMCommunicate request_size=255 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 CD EB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7B 02 00 35 04 06 00 [21:04:13]Write to MH i2c: E2 02 01 F9 27 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 CD EB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7B 02 00 35 04 06 00 00 00 0D [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 F9 27 00 90 00 94 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]wFMCommunicate request_size=11 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 02 02 06 EC F8 8F 28 13 F2 [21:04:13]Write to MH i2c: E2 0E 00 FA 27 80 0D 02 02 06 00 EC F8 8F 28 13 F2 00 00 47 [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 03 00 FA 27 00 90 00 95 [21:04:13]RAPDU: 90 00 [21:04:13]wFMCommunicate OK [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 0D 03 02 [21:04:13]Write to MH i2c: E2 08 00 FB 27 80 0D 03 02 00 00 00 00 9D [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 0B 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 0B 00 FB 27 00 0F 6B D9 8F 1E 46 28 45 90 00 51 [21:04:13]RAPDU: 0F 6B D9 8F 1E 46 28 45 90 00 [21:04:13]wFMCommunicate OK [21:04:13]SAM_PROTO_SignData done [21:04:13]FM_MakeSignedData done [21:04:13]CreateOFDProtocolMessage [21:04:13]wFMCommunicate request_size=4 [21:04:13]MH_SAM_APDU [21:04:13]CAPDU: 80 11 00 00 [21:04:13]Write to MH i2c: E2 08 00 FC 27 80 11 00 00 00 00 00 00 9D [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:13]Read from MH i2c: E2 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 17 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: E2 17 00 FC 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FD [21:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:04:13]wFMCommunicate OK [21:04:13]CreateOFDProtocolMessage done [21:04:13]OFDSenderStorePacket 162649 [21:04:13]StoreOFDPacket docnum=162649 [21:04:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F3 83 08 01 DB 02 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 CD EB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7B 02 00 35 04 06 00 EC F8 8F 28 13 F2 0F 6B D9 8F 1E 46 28 45 [21:04:13]CheckFolder [21:04:13]dirname=/storage/ofd_packets [21:04:13]CheckFolder done [21:04:13]ProducePacketName [21:04:13]name=ofd_packets/00162649 [21:04:13]NVStorageSaveData ofd_packets/00162649 [21:04:13]File name is /storage/ofd_packets/00162649 [21:04:13]Write 302 bytes [21:04:13]NVStorageSaveData done [21:04:13]OFDSenderStorePacket done [21:04:13]KKMCreateOFDPacket done [21:04:13]NVStorageSaveData kkm_last_timestamp [21:04:13]File name is /storage/kkm_last_timestamp [21:04:13]Write 4 bytes [21:04:13]NVStorageSaveData done [21:04:13]ExternCall_PrintAddStr [21:04:13]wPrintStart [21:04:13]Write to MH i2c: 01 00 00 FD 27 24 [21:04:13]Write i2c OK [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 07 00 [21:04:13]MH_I2C_Read... [21:04:13]Read from MH i2c: 01 07 00 FD 27 00 00 00 00 00 FF 0F 39 [21:04:13]RasterBufferAndPrint [21:04:13]line Счет N : (1)1319227 [21:04:13]line ИНН: 02508201610067 [21:04:13]line Контрольно-Кассовый Чек [21:04:13]line ПРОДАЖА [21:04:13]line ТРК (МРК, ГНК) : 51 [21:04:13]line Товар: 2710194210 [21:04:13]line ДТ(л)-К-5 [21:04:13]line 10.000 * 72.60 [21:04:13]line = 726.00 [21:04:13]line НДС 12% НСП 1% [21:04:13]line > о реализуемом товаре [21:04:13]line ИТОГО: 726.00 [21:04:13]line НСП 1% : 6.42 [21:04:13]line НДС 12% : 77.10 [21:04:13]line Наличными: 0.00 [21:04:13]line Безнал.: 726.00 [21:04:13]line Место: АЗС № 140 "Партнер Нефть" [21:04:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:04:13]line СНО: Общий режим [21:04:13]line Чек 317 13.07.2024 21:04 [21:04:13]line Смена: 462 ФФД: 1.0 [21:04:13]line ЗНМ: 0300000129 [21:04:13]line РНМ: 0000000000090858 [21:04:13]line Версия ККМ: 001 [21:04:13]line Платежная система: O! деньги [21:04:13]line ФМ: 0000000000874899 [21:04:13]line ФД: 162649 [21:04:13]line ФПД: 260552297812978 [21:04:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210413&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162649&fm=260552297812978&tin=02508201610067®Number=0000000000090858&sum=72600 [21:04:13]OFD Sender: Processing packet 162649 [packets to send 106, broken 105] [21:04:13]ProducePacketName [21:04:13]name=ofd_packets/00162649 [21:04:13]OFD Sender: To server: pG, [21:04:13]CommunicateWithHost lk.salyk.kg:30040 [21:04:13]ConnectInit lk.salyk.kg [21:04:13]written 0, free lines is 4095 [21:04:14]Connected sock=10 [21:04:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F3 83 08 01 DB 02 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 98 1B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 1B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 1B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 CD EB 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7B 02 00 35 04 06 00 EC F8 8F 28 13 F2 0F 6B D9 8F 1E 46 28 45 [21:04:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C9 99 47 00 64 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 59 7B 02 00 F4 03 04 00 DB 97 92 66 B6 04 01 00 00 7E C9 E2 80 1B CE E7 F6 [21:04:14]CommunicateWithHost err = 0 [21:04:14]CheckOFDResponse [21:04:14]1017 (14) - 77093643461234 [21:04:14]1041 (16) - 0000000000874899 [21:04:14]1040 (4) - 162649 [21:04:14]1012 (4) - 13.07.2024 15:06 [21:04:14]1206 (1) - 0 [21:04:14]OFD Sender: Remove packet 162649 [21:04:14]ProducePacketName [21:04:14]name=ofd_packets/00162649 [21:04:14]NVStorageDeleteData [21:04:14]Write to MH i2c: 01 00 00 27 28 4F [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 07 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: 01 07 00 27 28 00 00 00 00 00 F0 0C 52 [21:04:14]RasterBufferAndPrint [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]line [21:04:14]written 0, free lines is 3318 [21:04:14]MH_Cut [21:04:14]Write to MH i2c: D1 01 00 2E 28 01 28 [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 01 00 [21:04:14]MH_I2C_Read... [21:04:14]Read from MH i2c: D1 01 00 2E 28 00 27 [21:04:14]Write to MH i2c: 01 00 00 2F 28 57 [21:04:14]Write i2c OK [21:04:14]MH_I2C_Read... [21:04:14]OFD Sender: No OFD packet to send [21:04:15]*** Cut start [21:04:15]*** Purtial cut [21:04:15]*** CUTSNS_PIN = 0 [21:04:15]*** Stage 1: CUTSNS_PIN = 1 [21:04:17]Read from MH i2c: 01 [21:04:17]MH_I2C_Read... [21:04:17]*** Stop cut motor [21:04:17]*** Cut end [21:04:17]Read from MH i2c: 01 07 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: 01 07 00 2F 28 00 00 00 00 00 FF 0F 6C [21:04:17]process_action close_receipt done [21:04:17]requested_data is exist [21:04:17]produce_requested_data [21:04:17]requested_item fm.sn is exist - process it [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 11 00 00 [21:04:17]Write to MH i2c: E2 08 00 30 28 80 11 00 00 00 00 00 00 D2 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 17 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 17 00 30 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 32 [21:04:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:04:17]wFMCommunicate OK [21:04:17]requested_item fd.num is exist - process it [21:04:17]SAM_PROTO_GetFieldsCounters [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 13 00 00 [21:04:17]Write to MH i2c: E2 08 00 31 28 80 13 00 00 00 00 00 00 D5 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 62 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 62 00 31 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 59 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [21:04:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 59 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:17]wFMCommunicate OK [21:04:17]SAM_PROTO_GetFieldsCounters done [21:04:17]requested_item shift.num is exist - process it [21:04:17]requested_item shift.opened is exist - process it [21:04:17]req_shift_opened [21:04:17]FM_GetShiftState [21:04:17]SAM_PROTO_GetShiftState [21:04:17]wFMCommunicate request_size=4 [21:04:17]MH_SAM_APDU [21:04:17]CAPDU: 80 13 01 00 [21:04:17]Write to MH i2c: E2 08 00 32 28 80 13 01 00 00 00 00 00 D7 [21:04:17]Write i2c OK [21:04:17]MH_I2C_Read... [21:04:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:17]Read from MH i2c: E2 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 0E 00 [21:04:17]MH_I2C_Read... [21:04:17]Read from MH i2c: E2 0E 00 32 28 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D1 [21:04:17]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:04:17]wFMCommunicate OK [21:04:17]SAM_PROTO_GetShiftState done [21:04:17]FM_GetShiftState done [21:04:17]req_shift_opened done [21:04:17]requested_item shift.open_date is exist - process it [21:04:17]req_shift_open_date [21:04:17]req_shift_open_date done [21:04:17]produce_requested_data done [21:04:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162649,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:04:17]process_action_free close_receipt [21:04:17]json_value_free [21:04:17]json_value_free done [21:04:17]process_json_proto returns [21:04:17]Send response to host [21:04:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162649,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:04:17]free response buf [21:04:17]execute_script done [21:04:17]execute_script returns [21:04:17]free content buf [21:04:17]Sock 7.Close socket [21:04:17]Sock 7.Thread stoped [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]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:43]accept exits with 9 [21:09:43]New connection [21:09:43]New thread 3067366756 created [21:09:43]Thread 3067510116 joined [21:09:43]Waiting for new connection... [21:09:43] Sock 9.Parse request [21:09:43]Sock 9.Check first char [21:09:43]Sock 9.First char is OK [21:09:43]request: POST /json_proto HTTP/1.0 [21:09:43]Method: POST [21:09:43]URL: /json_proto [21:09:43]Method is POST - this is cgi request [21:09:43]url: /json_proto [21:09:43]query_string will be loaded in cgi processing [21:09:43]execute_cgi json_proto POST (null) [21:09:43]execute_cgi path=json_proto method=POST [21:09:43]POST find Content-Length [21:09:43]Host: 172.17.39.67:8080 [21:09:43]Content-Length: 683 [21:09:43]Content-Type: application/json [21:09:43] [21:09:43]POST finish read [21:09:43]Found Content-Length = 683 [21:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:43]execute_script... [21:09: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)1319228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:09:43]POST & json_proto [21:09:43]process_json_proto [21:09:43]json parsed OK: [21:09:43]protocol is kg_v1.0 [21:09:43]action value=close_receipt [21:09:43]process_action close_receipt [21:09:43]cmd_close_receipt [21:09:43]MH_GetDate [21:09:43]Write to MH i2c: F0 00 00 33 28 4A [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: F0 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: F0 09 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: F0 09 00 33 28 00 19 ED 92 66 86 7C 92 66 4B [21:09:43]GetLastDocTimeStamp 1720904653 [21:09:43]current date 1720904985 [21:09:43]FM_GetShiftState [21:09:43]SAM_PROTO_GetShiftState [21:09:43]wFMCommunicate request_size=4 [21:09:43]MH_SAM_APDU [21:09:43]CAPDU: 80 13 01 00 [21:09:43]Write to MH i2c: E2 08 00 34 28 80 13 01 00 00 00 00 00 D9 [21:09:43]Write i2c OK [21:09:43]MH_I2C_Read... [21:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:43]Read from MH i2c: E2 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 0E 00 [21:09:43]MH_I2C_Read... [21:09:43]Read from MH i2c: E2 0E 00 34 28 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D3 [21:09:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:09:43]wFMCommunicate OK [21:09:43]SAM_PROTO_GetShiftState done [21:09:43]FM_GetShiftState done [21:09:43]opened in 1720828979 [21:09:43]opened+sec_in_day 1720915379 [21:09:43]quantity*price = 100046 [21:09:43]sum+1 = 100048 [21:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 318 13.07.2024 21:09 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162650 ФПД: 262401855407645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210945&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162650&fm=262401855407645&tin=02508201610067®Number=0000000000090858&sum=100000 [21:09:45]StoreToDocumentArchive [21:09:45]shift 462 fd 162650 [21:09:45]save to /storage/0462/doc_00162650 [21:09:45]save last doc name /storage/0462/doc_00162650 to /storage/kkm_last_doc_name [21:09:45]save OK [21:09:45]Clear old archive folders... [21:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:09:45]tlvbuf is B6F62540 [21:09:45]SAM_PROTO_ClearQueue [21:09:45]wFMCommunicate request_size=4 [21:09:45]MH_SAM_APDU [21:09:45]CAPDU: 80 09 00 00 [21:09:45]Write to MH i2c: E2 08 00 41 28 80 09 00 00 00 00 00 00 DB [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:09:45]Read from MH i2c: E2 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 03 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 03 00 41 28 00 90 00 DD [21:09:45]RAPDU: 90 00 [21:09:45]wFMCommunicate OK [21:09:45]SAM_PROTO_ClearQueue done [21:09:45]KKMCreateOFDPacket [21:09:45]OFDProtocolAddRootSTLVToBuf [21:09:45]FM_MakeSignedData [21:09:45]FM_MakeSignedData [21:09:45]SAM_PROTO_SignData [21:09:45]wFMCommunicate request_size=4 [21:09:45]MH_SAM_APDU [21:09:45]CAPDU: 80 0D 01 02 [21:09:45]Write to MH i2c: E2 08 00 42 28 80 0D 01 02 00 00 00 00 E3 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]OFD Sender: No OFD packet to send [21:09:45]Read from MH i2c: E2 [21:09:45]MH_I2C_Read... [21:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:09:45]Read from MH i2c: E2 03 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 03 00 42 28 00 90 00 DE [21:09:45]RAPDU: 90 00 [21:09:45]wFMCommunicate OK [21:09:45]wFMCommunicate request_size=255 [21:09:45]MH_SAM_APDU [21:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3E 01 00 00 F4 03 04 00 19 ED 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7B 02 00 35 04 06 00 EE [21:09:45]Write to MH i2c: E2 02 01 43 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3E 01 00 00 F4 03 04 00 19 ED 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7B 02 00 35 04 06 00 EE 00 00 C0 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:45]Read from MH i2c: E2 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 03 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 03 00 43 28 00 90 00 DF [21:09:45]RAPDU: 90 00 [21:09:45]wFMCommunicate OK [21:09:45]wFMCommunicate request_size=10 [21:09:45]MH_SAM_APDU [21:09:45]CAPDU: 80 0D 02 02 05 A7 31 61 46 1D [21:09:45]Write to MH i2c: E2 0D 00 44 28 80 0D 02 02 05 00 A7 31 61 46 1D 00 00 8C [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:09:45]Read from MH i2c: E2 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 03 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 03 00 44 28 00 90 00 E0 [21:09:45]RAPDU: 90 00 [21:09:45]wFMCommunicate OK [21:09:45]wFMCommunicate request_size=4 [21:09:45]MH_SAM_APDU [21:09:45]CAPDU: 80 0D 03 02 [21:09:45]Write to MH i2c: E2 08 00 45 28 80 0D 03 02 00 00 00 00 E8 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:09:45]Read from MH i2c: E2 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 0B 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 0B 00 45 28 00 A2 0E BF 4D 0B 1F D7 A6 90 00 4C [21:09:45]RAPDU: A2 0E BF 4D 0B 1F D7 A6 90 00 [21:09:45]wFMCommunicate OK [21:09:45]SAM_PROTO_SignData done [21:09:45]FM_MakeSignedData done [21:09:45]CreateOFDProtocolMessage [21:09:45]wFMCommunicate request_size=4 [21:09:45]MH_SAM_APDU [21:09:45]CAPDU: 80 11 00 00 [21:09:45]Write to MH i2c: E2 08 00 46 28 80 11 00 00 00 00 00 00 E8 [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:45]Read from MH i2c: E2 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 17 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: E2 17 00 46 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 48 [21:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:09:45]wFMCommunicate OK [21:09:45]CreateOFDProtocolMessage done [21:09:45]OFDSenderStorePacket 162650 [21:09:45]StoreOFDPacket docnum=162650 [21:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 36 A0 07 01 E0 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3E 01 00 00 F4 03 04 00 19 ED 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7B 02 00 35 04 06 00 EE A7 31 61 46 1D A2 0E BF 4D 0B 1F D7 A6 [21:09:45]CheckFolder [21:09:45]dirname=/storage/ofd_packets [21:09:45]CheckFolder done [21:09:45]ProducePacketName [21:09:45]name=ofd_packets/00162650 [21:09:45]NVStorageSaveData ofd_packets/00162650 [21:09:45]File name is /storage/ofd_packets/00162650 [21:09:45]Write 301 bytes [21:09:45]NVStorageSaveData done [21:09:45]OFDSenderStorePacket done [21:09:45]KKMCreateOFDPacket done [21:09:45]NVStorageSaveData kkm_last_timestamp [21:09:45]File name is /storage/kkm_last_timestamp [21:09:45]Write 4 bytes [21:09:45]NVStorageSaveData done [21:09:45]ExternCall_PrintAddStr [21:09:45]wPrintStart [21:09:45]Write to MH i2c: 01 00 00 47 28 6F [21:09:45]Write i2c OK [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 07 00 [21:09:45]MH_I2C_Read... [21:09:45]Read from MH i2c: 01 07 00 47 28 00 00 00 00 00 FF 0F 84 [21:09:45]RasterBufferAndPrint [21:09:45]line Счет N : (1)1319228 [21:09:45]line ИНН: 02508201610067 [21:09:45]line Контрольно-Кассовый Чек [21:09:45]line ПРОДАЖА [21:09:45]line ТРК (МРК, ГНК) : 53 [21:09:45]line Товар: 2710124130 [21:09:45]line Аи-92-К-5 [21:09:45]line 15.090 * 66.30 [21:09:45]line = 1000.47 [21:09:45]line НДС 12% НСП 1% [21:09:45]line > о реализуемом товаре [21:09:45]line ОКРУГЛЕНИЕ: -0.47 [21:09:45]line ИТОГО: 1000.00 [21:09:45]line Внесено: 1000.00 [21:09:45]line СДАЧА: 0.00 [21:09:45]line НСП 1% : 8.85 [21:09:45]line НДС 12% : 106.24 [21:09:45]line Наличными: 1000.00 [21:09:45]line Безнал.: 0.00 [21:09:45]line Место: АЗС № 140 "Партнер Нефть" [21:09:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:09:45]line СНО: Общий режим [21:09:45]line Чек 318 13.07.2024 21:09 [21:09:45]line Смена: 462 ФФД: 1.0 [21:09:45]line ЗНМ: 0300000129 [21:09:45]line РНМ: 0000000000090858 [21:09:45]line Версия ККМ: 001 [21:09:45]line ФМ: 0000000000874899 [21:09:45]line ФД: 162650 [21:09:45]line ФПД: 262401855407645 [21:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T210945&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162650&fm=262401855407645&tin=02508201610067®Number=0000000000090858&sum=100000 [21:09:45]OFD Sender: Processing packet 162650 [packets to send 106, broken 105] [21:09:45]ProducePacketName [21:09:45]name=ofd_packets/00162650 [21:09:45]OFD Sender: To server: pG, [21:09:45]CommunicateWithHost lk.salyk.kg:30040 [21:09:45]ConnectInit lk.salyk.kg [21:09:45]written 0, free lines is 4095 [21:09:45]Connected sock=10 [21:09:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 36 A0 07 01 E0 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3E 01 00 00 F4 03 04 00 19 ED 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7B 02 00 35 04 06 00 EE A7 31 61 46 1D A2 0E BF 4D 0B 1F D7 A6 [21:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 40 45 47 00 9C 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5A 7B 02 00 F4 03 04 00 27 99 92 66 B6 04 01 00 00 8A DC 0F DB 4A 2B 50 4E [21:09:46]CommunicateWithHost err = 0 [21:09:46]CheckOFDResponse [21:09:46]1017 (14) - 77093643461234 [21:09:46]1041 (16) - 0000000000874899 [21:09:46]1040 (4) - 162650 [21:09:46]1012 (4) - 13.07.2024 15:11 [21:09:46]1206 (1) - 0 [21:09:46]OFD Sender: Remove packet 162650 [21:09:46]ProducePacketName [21:09:46]name=ofd_packets/00162650 [21:09:46]NVStorageDeleteData [21:09:46]Write to MH i2c: 01 00 00 72 28 9A [21:09:46]Write i2c OK [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: 01 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: 01 07 00 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: 01 07 00 72 28 00 00 00 00 00 E0 0C 8D [21:09:46]RasterBufferAndPrint [21:09:46]line [21:09:46]line [21:09:46]line [21:09:46]line [21:09:46]line [21:09:46]written 0, free lines is 3302 [21:09:46]MH_Cut [21:09:46]Write to MH i2c: D1 01 00 79 28 01 73 [21:09:46]Write i2c OK [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: D1 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: D1 01 00 [21:09:46]MH_I2C_Read... [21:09:46]Read from MH i2c: D1 01 00 79 28 00 72 [21:09:46]Write to MH i2c: 01 00 00 7A 28 A2 [21:09:46]Write i2c OK [21:09:46]MH_I2C_Read... [21:09:46]OFD Sender: No OFD packet to send [21:09:47]*** Cut start [21:09:47]*** Purtial cut [21:09:47]*** Stage 1: CUTSNS_PIN = 1 [21:09:47]Read from MH i2c: 01 [21:09:47]MH_I2C_Read... [21:09:47]*** Stop cut motor [21:09:47]*** Cut end [21:09:47]Read from MH i2c: 01 07 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: 01 07 00 7A 28 00 00 00 00 00 FF 0F B7 [21:09:47]process_action close_receipt done [21:09:47]requested_data is exist [21:09:47]produce_requested_data [21:09:47]requested_item fm.sn is exist - process it [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 11 00 00 [21:09:47]Write to MH i2c: E2 08 00 7B 28 80 11 00 00 00 00 00 00 1D [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:09:47]Read from MH i2c: E2 17 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 17 00 7B 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7D [21:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:09:47]wFMCommunicate OK [21:09:47]requested_item fd.num is exist - process it [21:09:47]SAM_PROTO_GetFieldsCounters [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 13 00 00 [21:09:47]Write to MH i2c: E2 08 00 7C 28 80 13 00 00 00 00 00 00 20 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 62 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 62 00 7C 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [21:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_GetFieldsCounters done [21:09:47]requested_item shift.num is exist - process it [21:09:47]requested_item shift.opened is exist - process it [21:09:47]req_shift_opened [21:09:47]FM_GetShiftState [21:09:47]SAM_PROTO_GetShiftState [21:09:47]wFMCommunicate request_size=4 [21:09:47]MH_SAM_APDU [21:09:47]CAPDU: 80 13 01 00 [21:09:47]Write to MH i2c: E2 08 00 7D 28 80 13 01 00 00 00 00 00 22 [21:09:47]Write i2c OK [21:09:47]MH_I2C_Read... [21:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:09:47]Read from MH i2c: E2 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0E 00 [21:09:47]MH_I2C_Read... [21:09:47]Read from MH i2c: E2 0E 00 7D 28 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1C [21:09:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:09:47]wFMCommunicate OK [21:09:47]SAM_PROTO_GetShiftState done [21:09:47]FM_GetShiftState done [21:09:47]req_shift_opened done [21:09:47]requested_item shift.open_date is exist - process it [21:09:47]req_shift_open_date [21:09:47]req_shift_open_date done [21:09:47]produce_requested_data done [21:09:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162650,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:09:47]process_action_free close_receipt [21:09:47]json_value_free [21:09:47]json_value_free done [21:09:47]process_json_proto returns [21:09:47]Send response to host [21:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162650,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:09:47]free response buf [21:09:47]execute_script done [21:09:47]execute_script returns [21:09:47]free content buf [21:09:47]Sock 9.Close socket [21:09:47]Sock 9.Thread stoped [21:09:51]OFD Sender: No OFD packet to send [21:09:56]OFD Sender: No OFD packet to send [21:10:01]OFD Sender: No OFD packet to send [21:10:06]OFD Sender: No OFD packet to send [21:10:11]OFD Sender: No OFD packet to send [21:10:16]OFD Sender: No OFD packet to send [21:10:21]OFD Sender: No OFD packet to send [21:10:26]OFD Sender: No OFD packet to send [21:10:31]OFD Sender: No OFD packet to send [21:10:36]OFD Sender: No OFD packet to send [21:10:41]OFD Sender: No OFD packet to send [21:10:46]OFD Sender: No OFD packet to send [21:10:51]OFD Sender: No OFD packet to send [21:10:56]OFD Sender: No OFD packet to send [21:11:01]OFD Sender: No OFD packet to send [21:11:06]OFD Sender: No OFD packet to send [21:11:11]OFD Sender: No OFD packet to send [21:11:16]OFD Sender: No OFD packet to send [21:11:21]OFD Sender: No OFD packet to send [21:11:26]OFD Sender: No OFD packet to send [21:11:31]OFD Sender: No OFD packet to send [21:11:36]OFD Sender: No OFD packet to send [21:11:41]OFD Sender: No OFD packet to send [21:11:46]OFD Sender: No OFD packet to send [21:11:51]OFD Sender: No OFD packet to send [21:11:56]OFD Sender: No OFD packet to send [21:12:01]OFD Sender: No OFD packet to send [21:12:06]OFD Sender: No OFD packet to send [21:12:11]OFD Sender: No OFD packet to send [21:12:16]OFD Sender: No OFD packet to send [21:12:21]OFD Sender: No OFD packet to send [21:12:26]OFD Sender: No OFD packet to send [21:12:31]OFD Sender: No OFD packet to send [21:12:36]OFD Sender: No OFD packet to send [21:12:41]OFD Sender: No OFD packet to send [21:12:46]OFD Sender: No OFD packet to send [21:12:51]OFD Sender: No OFD packet to send [21:12:56]OFD Sender: No OFD packet to send [21:13:01]OFD Sender: No OFD packet to send [21:13:06]OFD Sender: No OFD packet to send [21:13:11]OFD Sender: No OFD packet to send [21:13:16]OFD Sender: No OFD packet to send [21:13:21]OFD Sender: No OFD packet to send [21:13:26]OFD Sender: No OFD packet to send [21:13:31]OFD Sender: No OFD packet to send [21:13:36]OFD Sender: No OFD packet to send [21:13:41]OFD Sender: No OFD packet to send [21:13:46]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:20]accept exits with 7 [21:14:20]New connection [21:14:20]New thread 3067510116 created [21:14:20]Thread 3067366756 joined [21:14:20]Waiting for new connection... [21:14:20] Sock 7.Parse request [21:14:20]Sock 7.Check first char [21:14:20]Sock 7.First char is OK [21:14:20]request: POST /json_proto HTTP/1.0 [21:14:20]Method: POST [21:14:20]URL: /json_proto [21:14:20]Method is POST - this is cgi request [21:14:20]url: /json_proto [21:14:20]query_string will be loaded in cgi processing [21:14:20]execute_cgi json_proto POST (null) [21:14:20]execute_cgi path=json_proto method=POST [21:14:20]POST find Content-Length [21:14:20]Host: 172.17.39.67:8080 [21:14:20]Content-Length: 820 [21:14:20]Content-Type: application/json [21:14:20] [21:14:20]POST finish read [21:14:20]Found Content-Length = 820 [21:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:20]execute_script... [21:14: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)1319229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:20]POST & json_proto [21:14:20]process_json_proto [21:14:20]json parsed OK: [21:14:20]protocol is kg_v1.0 [21:14:20]action value=close_receipt [21:14:20]process_action close_receipt [21:14:20]cmd_close_receipt [21:14:20]MH_GetDate [21:14:20]Write to MH i2c: F0 00 00 7E 28 95 [21:14:20]Write i2c OK [21:14:20]MH_I2C_Read... [21:14:20]Read from MH i2c: F0 [21:14:20]MH_I2C_Read... [21:14:20]Read from MH i2c: F0 09 00 [21:14:20]MH_I2C_Read... [21:14:20]Read from MH i2c: F0 09 00 7E 28 00 2E EE 92 66 86 7C 92 66 AC [21:14:20]GetLastDocTimeStamp 1720904985 [21:14:20]current date 1720905262 [21:14:20]FM_GetShiftState [21:14:20]SAM_PROTO_GetShiftState [21:14:20]wFMCommunicate request_size=4 [21:14:20]MH_SAM_APDU [21:14:20]CAPDU: 80 13 01 00 [21:14:20]Write to MH i2c: E2 08 00 7F 28 80 13 01 00 00 00 00 00 24 [21:14:20]Write i2c OK [21:14:20]MH_I2C_Read... [21:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:20]Read from MH i2c: E2 [21:14:20]MH_I2C_Read... [21:14:20]Read from MH i2c: E2 0E 00 [21:14:20]MH_I2C_Read... [21:14:20]Read from MH i2c: E2 0E 00 7F 28 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1E [21:14:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:14:20]wFMCommunicate OK [21:14:20]SAM_PROTO_GetShiftState done [21:14:20]FM_GetShiftState done [21:14:20]opened in 1720828979 [21:14:20]opened+sec_in_day 1720915379 [21:14:20]quantity*price = 100046 [21:14:20]sum+1 = 100048 [21:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 319 13.07.2024 21:14 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162651 ФПД: 221195988859055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211422&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162651&fm=221195988859055&tin=02508201610067®Number=0000000000090858&sum=100047 [21:14:21]StoreToDocumentArchive [21:14:21]shift 462 fd 162651 [21:14:21]save to /storage/0462/doc_00162651 [21:14:21]save last doc name /storage/0462/doc_00162651 to /storage/kkm_last_doc_name [21:14:21]save OK [21:14:21]Clear old archive folders... [21:14:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:14:21]tlvbuf is 006F5EB0 [21:14:21]SAM_PROTO_ClearQueue [21:14:21]wFMCommunicate request_size=4 [21:14:21]MH_SAM_APDU [21:14:21]CAPDU: 80 09 00 00 [21:14:21]Write to MH i2c: E2 08 00 8C 28 80 09 00 00 00 00 00 00 26 [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:21]Read from MH i2c: E2 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 03 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 03 00 8C 28 00 90 00 28 [21:14:21]RAPDU: 90 00 [21:14:21]wFMCommunicate OK [21:14:21]SAM_PROTO_ClearQueue done [21:14:21]KKMCreateOFDPacket [21:14:21]OFDProtocolAddRootSTLVToBuf [21:14:21]FM_MakeSignedData [21:14:21]FM_MakeSignedData [21:14:21]SAM_PROTO_SignData [21:14:21]wFMCommunicate request_size=4 [21:14:21]MH_SAM_APDU [21:14:21]CAPDU: 80 0D 01 02 [21:14:21]Write to MH i2c: E2 08 00 8D 28 80 0D 01 02 00 00 00 00 2E [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:21]Read from MH i2c: E2 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 03 00 [21:14:21]MH_I2C_Read... [21:14:21]Read from MH i2c: E2 03 00 8D 28 00 90 00 29 [21:14:21]RAPDU: 90 00 [21:14:21]wFMCommunicate OK [21:14:21]wFMCommunicate request_size=255 [21:14:21]MH_SAM_APDU [21:14:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 2E EE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7B 02 00 35 04 06 00 C9 [21:14:21]Write to MH i2c: E2 02 01 8E 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 2E EE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7B 02 00 35 04 06 00 C9 00 00 5C [21:14:21]Write i2c OK [21:14:21]MH_I2C_Read... [21:14:22]OFD Sender: No OFD packet to send [21:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:22]Read from MH i2c: E2 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 03 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 03 00 8E 28 00 90 00 2A [21:14:22]RAPDU: 90 00 [21:14:22]wFMCommunicate OK [21:14:22]wFMCommunicate request_size=10 [21:14:22]MH_SAM_APDU [21:14:22]CAPDU: 80 0D 02 02 05 2D 34 57 78 AF [21:14:22]Write to MH i2c: E2 0D 00 8F 28 80 0D 02 02 05 00 2D 34 57 78 AF 00 00 1A [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:22]Read from MH i2c: E2 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 03 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 03 00 8F 28 00 90 00 2B [21:14:22]RAPDU: 90 00 [21:14:22]wFMCommunicate OK [21:14:22]wFMCommunicate request_size=4 [21:14:22]MH_SAM_APDU [21:14:22]CAPDU: 80 0D 03 02 [21:14:22]Write to MH i2c: E2 08 00 90 28 80 0D 03 02 00 00 00 00 33 [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:22]Read from MH i2c: E2 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 0B 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 0B 00 90 28 00 ED 5E 90 9B C3 D8 B1 38 90 00 2E [21:14:22]RAPDU: ED 5E 90 9B C3 D8 B1 38 90 00 [21:14:22]wFMCommunicate OK [21:14:22]SAM_PROTO_SignData done [21:14:22]FM_MakeSignedData done [21:14:22]CreateOFDProtocolMessage [21:14:22]wFMCommunicate request_size=4 [21:14:22]MH_SAM_APDU [21:14:22]CAPDU: 80 11 00 00 [21:14:22]Write to MH i2c: E2 08 00 91 28 80 11 00 00 00 00 00 00 33 [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:22]Read from MH i2c: E2 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 17 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: E2 17 00 91 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 93 [21:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:14:22]wFMCommunicate OK [21:14:22]CreateOFDProtocolMessage done [21:14:22]OFDSenderStorePacket 162651 [21:14:22]StoreOFDPacket docnum=162651 [21:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DD CF 07 01 FF 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 2E EE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7B 02 00 35 04 06 00 C9 2D 34 57 78 AF ED 5E 90 9B C3 D8 B1 38 [21:14:22]CheckFolder [21:14:22]dirname=/storage/ofd_packets [21:14:22]CheckFolder done [21:14:22]ProducePacketName [21:14:22]name=ofd_packets/00162651 [21:14:22]NVStorageSaveData ofd_packets/00162651 [21:14:22]File name is /storage/ofd_packets/00162651 [21:14:22]Write 301 bytes [21:14:22]NVStorageSaveData done [21:14:22]OFDSenderStorePacket done [21:14:22]KKMCreateOFDPacket done [21:14:22]NVStorageSaveData kkm_last_timestamp [21:14:22]File name is /storage/kkm_last_timestamp [21:14:22]Write 4 bytes [21:14:22]NVStorageSaveData done [21:14:22]ExternCall_PrintAddStr [21:14:22]wPrintStart [21:14:22]Write to MH i2c: 01 00 00 92 28 BA [21:14:22]Write i2c OK [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: 01 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: 01 07 00 [21:14:22]MH_I2C_Read... [21:14:22]Read from MH i2c: 01 07 00 92 28 00 00 00 00 00 FF 0F CF [21:14:22]RasterBufferAndPrint [21:14:22]line Счет N : (1)1319229 [21:14:22]line ИНН: 02508201610067 [21:14:22]line Контрольно-Кассовый Чек [21:14:22]line ПРОДАЖА [21:14:22]line ТРК (МРК, ГНК) : 43 [21:14:22]line Товар: 2710124130 [21:14:22]line Аи-92-К-5 [21:14:22]line 15.090 * 66.30 [21:14:22]line = 1000.47 [21:14:22]line НДС 12% НСП 1% [21:14:22]line > о реализуемом товаре [21:14:22]line ИТОГО: 1000.47 [21:14:22]line НСП 1% : 8.85 [21:14:22]line НДС 12% : 106.24 [21:14:22]line Наличными: 0.00 [21:14:22]line Безнал.: 1000.47 [21:14:22]line Место: АЗС № 140 "Партнер Нефть" [21:14:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:14:22]line СНО: Общий режим [21:14:22]line Чек 319 13.07.2024 21:14 [21:14:22]line Смена: 462 ФФД: 1.0 [21:14:22]line ЗНМ: 0300000129 [21:14:22]line РНМ: 0000000000090858 [21:14:22]line Версия ККМ: 001 [21:14:22]line Платежная система: Бакай Банк [21:14:22]line ФМ: 0000000000874899 [21:14:22]line ФД: 162651 [21:14:22]line ФПД: 221195988859055 [21:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211422&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162651&fm=221195988859055&tin=02508201610067®Number=0000000000090858&sum=100047 [21:14:22]OFD Sender: Processing packet 162651 [packets to send 106, broken 105] [21:14:22]ProducePacketName [21:14:22]name=ofd_packets/00162651 [21:14:22]OFD Sender: To server: pG, [21:14:22]CommunicateWithHost lk.salyk.kg:30040 [21:14:22]ConnectInit lk.salyk.kg [21:14:22]written 0, free lines is 4095 [21:14:22]Connected sock=10 [21:14:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DD CF 07 01 FF 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 2E EE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7B 02 00 35 04 06 00 C9 2D 34 57 78 AF ED 5E 90 9B C3 D8 B1 38 [21:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C7 73 47 00 1A 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5B 7B 02 00 F4 03 04 00 3C 9A 92 66 B6 04 01 00 00 ED 7C 97 9B 7E 8D 60 9B [21:14:22]CommunicateWithHost err = 0 [21:14:22]CheckOFDResponse [21:14:22]1017 (14) - 77093643461234 [21:14:22]1041 (16) - 0000000000874899 [21:14:22]1040 (4) - 162651 [21:14:22]1012 (4) - 13.07.2024 15:16 [21:14:22]1206 (1) - 0 [21:14:22]OFD Sender: Remove packet 162651 [21:14:22]ProducePacketName [21:14:22]name=ofd_packets/00162651 [21:14:22]NVStorageDeleteData [21:14:23]Write to MH i2c: 01 00 00 BC 28 E4 [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 07 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: 01 07 00 BC 28 00 00 00 00 00 E6 0C DD [21:14:23]RasterBufferAndPrint [21:14:23]line [21:14:23]line [21:14:23]line [21:14:23]line [21:14:23]line [21:14:23]written 0, free lines is 3309 [21:14:23]MH_Cut [21:14:23]Write to MH i2c: D1 01 00 C3 28 01 BD [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: D1 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: D1 01 00 [21:14:23]MH_I2C_Read... [21:14:23]Read from MH i2c: D1 01 00 C3 28 00 BC [21:14:23]Write to MH i2c: 01 00 00 C4 28 EC [21:14:23]Write i2c OK [21:14:23]MH_I2C_Read... [21:14:23]OFD Sender: No OFD packet to send [21:14:23]*** Cut start [21:14:23]*** Purtial cut [21:14:23]*** CUTSNS_PIN = 0 [21:14:24]*** Stage 1: CUTSNS_PIN = 1 [21:14:25]Read from MH i2c: 01 [21:14:25]MH_I2C_Read... [21:14:25]*** Stop cut motor [21:14:25]*** Cut end [21:14:25]Read from MH i2c: 01 07 00 [21:14:25]MH_I2C_Read... [21:14:25]Read from MH i2c: 01 07 00 C4 28 00 00 00 00 00 FF 0F 01 [21:14:25]process_action close_receipt done [21:14:25]requested_data is exist [21:14:25]produce_requested_data [21:14:25]requested_item fm.sn is exist - process it [21:14:25]wFMCommunicate request_size=4 [21:14:25]MH_SAM_APDU [21:14:25]CAPDU: 80 11 00 00 [21:14:25]Write to MH i2c: E2 08 00 C5 28 80 11 00 00 00 00 00 00 67 [21:14:25]Write i2c OK [21:14:25]MH_I2C_Read... [21:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:25]Read from MH i2c: E2 [21:14:25]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 17 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 17 00 C5 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C7 [21:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:14:26]wFMCommunicate OK [21:14:26]requested_item fd.num is exist - process it [21:14:26]SAM_PROTO_GetFieldsCounters [21:14:26]wFMCommunicate request_size=4 [21:14:26]MH_SAM_APDU [21:14:26]CAPDU: 80 13 00 00 [21:14:26]Write to MH i2c: E2 08 00 C6 28 80 13 00 00 00 00 00 00 6A [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:26]Read from MH i2c: E2 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 62 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 62 00 C6 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [21:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:26]wFMCommunicate OK [21:14:26]SAM_PROTO_GetFieldsCounters done [21:14:26]requested_item shift.num is exist - process it [21:14:26]requested_item shift.opened is exist - process it [21:14:26]req_shift_opened [21:14:26]FM_GetShiftState [21:14:26]SAM_PROTO_GetShiftState [21:14:26]wFMCommunicate request_size=4 [21:14:26]MH_SAM_APDU [21:14:26]CAPDU: 80 13 01 00 [21:14:26]Write to MH i2c: E2 08 00 C7 28 80 13 01 00 00 00 00 00 6C [21:14:26]Write i2c OK [21:14:26]MH_I2C_Read... [21:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:26]Read from MH i2c: E2 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 0E 00 [21:14:26]MH_I2C_Read... [21:14:26]Read from MH i2c: E2 0E 00 C7 28 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 66 [21:14:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:14:26]wFMCommunicate OK [21:14:26]SAM_PROTO_GetShiftState done [21:14:26]FM_GetShiftState done [21:14:26]req_shift_opened done [21:14:26]requested_item shift.open_date is exist - process it [21:14:26]req_shift_open_date [21:14:26]req_shift_open_date done [21:14:26]produce_requested_data done [21:14:26]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162651,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:14:26]process_action_free close_receipt [21:14:26]json_value_free [21:14:26]json_value_free done [21:14:26]process_json_proto returns [21:14:26]Send response to host [21:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162651,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:14:26]free response buf [21:14:26]execute_script done [21:14:26]execute_script returns [21:14:26]free content buf [21:14:26]Sock 7.Close socket [21:14:26]Sock 7.Thread stoped [21:14:28]OFD Sender: No OFD packet to send [21:14:33]OFD Sender: No OFD packet to send [21:14:38]OFD Sender: No OFD packet to send [21:14:43]OFD Sender: No OFD packet to send [21:14:48]OFD Sender: No OFD packet to send [21:14:53]OFD Sender: No OFD packet to send [21:14:58]OFD Sender: No OFD packet to send [21:15:03]OFD Sender: No OFD packet to send [21:15:08]OFD Sender: No OFD packet to send [21:15:13]OFD Sender: No OFD packet to send [21:15:18]OFD Sender: No OFD packet to send [21:15:23]OFD Sender: No OFD packet to send [21:15:28]OFD Sender: No OFD packet to send [21:15:33]OFD Sender: No OFD packet to send [21:15:38]OFD Sender: No OFD packet to send [21:15:43]OFD Sender: No OFD packet to send [21:15:48]OFD Sender: No OFD packet to send [21:15:53]OFD Sender: No OFD packet to send [21:15:58]OFD Sender: No OFD packet to send [21:16:03]OFD Sender: No OFD packet to send [21:16:08]OFD Sender: No OFD packet to send [21:16:13]OFD Sender: No OFD packet to send [21:16:18]OFD Sender: No OFD packet to send [21:16:23]OFD Sender: No OFD packet to send [21:16:28]OFD Sender: No OFD packet to send [21:16:33]OFD Sender: No OFD packet to send [21:16:38]OFD Sender: No OFD packet to send [21:16:43]OFD Sender: No OFD packet to send [21:16:48]OFD Sender: No OFD packet to send [21:16:53]OFD Sender: No OFD packet to send [21:16:56]accept exits with 9 [21:16:56]New connection [21:16:56]New thread 3067366756 created [21:16:56]Thread 3067510116 joined [21:16:56]Waiting for new connection... [21:16:56] Sock 9.Parse request [21:16:56]Sock 9.Check first char [21:16:56]Sock 9.First char is OK [21:16:56]request: POST /json_proto HTTP/1.0 [21:16:56]Method: POST [21:16:56]URL: /json_proto [21:16:56]Method is POST - this is cgi request [21:16:56]url: /json_proto [21:16:56]query_string will be loaded in cgi processing [21:16:56]execute_cgi json_proto POST (null) [21:16:56]execute_cgi path=json_proto method=POST [21:16:56]POST find Content-Length [21:16:56]Host: 172.17.39.67:8080 [21:16:56]Content-Length: 688 [21:16:56]Content-Type: application/json [21:16:56] [21:16:56]POST finish read [21:16:56]Found Content-Length = 688 [21:16:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 68.880, "sum" : 5000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:56]execute_script... [21:16: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)1319230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 68.880, "sum" : 5000.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:56]POST & json_proto [21:16:56]process_json_proto [21:16:56]json parsed OK: [21:16:56]protocol is kg_v1.0 [21:16:56]action value=close_receipt [21:16:56]process_action close_receipt [21:16:56]cmd_close_receipt [21:16:56]MH_GetDate [21:16:56]Write to MH i2c: F0 00 00 C8 28 DF [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: F0 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: F0 09 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: F0 09 00 C8 28 00 C9 EE 92 66 86 7C 92 66 91 [21:16:56]GetLastDocTimeStamp 1720905262 [21:16:56]current date 1720905417 [21:16:56]FM_GetShiftState [21:16:56]SAM_PROTO_GetShiftState [21:16:56]wFMCommunicate request_size=4 [21:16:56]MH_SAM_APDU [21:16:56]CAPDU: 80 13 01 00 [21:16:56]Write to MH i2c: E2 08 00 C9 28 80 13 01 00 00 00 00 00 6E [21:16:56]Write i2c OK [21:16:56]MH_I2C_Read... [21:16:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:56]Read from MH i2c: E2 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 0E 00 [21:16:56]MH_I2C_Read... [21:16:56]Read from MH i2c: E2 0E 00 C9 28 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 68 [21:16:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:16:56]wFMCommunicate OK [21:16:56]SAM_PROTO_GetShiftState done [21:16:56]FM_GetShiftState done [21:16:56]opened in 1720828979 [21:16:56]opened+sec_in_day 1720915379 [21:16:56]quantity*price = 500068 [21:16:56]sum+1 = 500070 [21:16:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.05 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 320 13.07.2024 21:16 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162652 ФПД: 68727336193167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211657&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162652&fm=68727336193167&tin=02508201610067®Number=0000000000090858&sum=500000 [21:16:57]StoreToDocumentArchive [21:16:57]shift 462 fd 162652 [21:16:57]save to /storage/0462/doc_00162652 [21:16:57]save last doc name /storage/0462/doc_00162652 to /storage/kkm_last_doc_name [21:16:57]save OK [21:16:57]Clear old archive folders... [21:16:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:16:57]tlvbuf is 005F7D10 [21:16:57]SAM_PROTO_ClearQueue [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 09 00 00 [21:16:57]Write to MH i2c: E2 08 00 D6 28 80 09 00 00 00 00 00 00 70 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 D6 28 00 90 00 72 [21:16:57]RAPDU: 90 00 [21:16:57]wFMCommunicate OK [21:16:57]SAM_PROTO_ClearQueue done [21:16:57]KKMCreateOFDPacket [21:16:57]OFDProtocolAddRootSTLVToBuf [21:16:57]FM_MakeSignedData [21:16:57]FM_MakeSignedData [21:16:57]SAM_PROTO_SignData [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 0D 01 02 [21:16:57]Write to MH i2c: E2 08 00 D7 28 80 0D 01 02 00 00 00 00 78 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 D7 28 00 90 00 73 [21:16:57]RAPDU: 90 00 [21:16:57]wFMCommunicate OK [21:16:57]wFMCommunicate request_size=255 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 C9 EE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7B 02 00 35 04 06 00 [21:16:57]Write to MH i2c: E2 02 01 D8 28 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 C9 EE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7B 02 00 35 04 06 00 00 00 34 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 D8 28 00 90 00 74 [21:16:57]RAPDU: 90 00 [21:16:57]wFMCommunicate OK [21:16:57]wFMCommunicate request_size=11 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 0D 02 02 06 3E 81 D4 75 CC 8F [21:16:57]Write to MH i2c: E2 0E 00 D9 28 80 0D 02 02 06 00 3E 81 D4 75 CC 8F 00 00 EA [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 03 00 D9 28 00 90 00 75 [21:16:57]RAPDU: 90 00 [21:16:57]wFMCommunicate OK [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 0D 03 02 [21:16:57]Write to MH i2c: E2 08 00 DA 28 80 0D 03 02 00 00 00 00 7D [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 0B 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 0B 00 DA 28 00 EB B4 DB 9A 70 9E 11 9A 90 00 4B [21:16:57]RAPDU: EB B4 DB 9A 70 9E 11 9A 90 00 [21:16:57]wFMCommunicate OK [21:16:57]SAM_PROTO_SignData done [21:16:57]FM_MakeSignedData done [21:16:57]CreateOFDProtocolMessage [21:16:57]wFMCommunicate request_size=4 [21:16:57]MH_SAM_APDU [21:16:57]CAPDU: 80 11 00 00 [21:16:57]Write to MH i2c: E2 08 00 DB 28 80 11 00 00 00 00 00 00 7D [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:57]Read from MH i2c: E2 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 17 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: E2 17 00 DB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DD [21:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:16:57]wFMCommunicate OK [21:16:57]CreateOFDProtocolMessage done [21:16:57]OFDSenderStorePacket 162652 [21:16:57]StoreOFDPacket docnum=162652 [21:16:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 67 93 08 01 58 D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 C9 EE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7B 02 00 35 04 06 00 3E 81 D4 75 CC 8F EB B4 DB 9A 70 9E 11 9A [21:16:57]CheckFolder [21:16:57]dirname=/storage/ofd_packets [21:16:57]CheckFolder done [21:16:57]ProducePacketName [21:16:57]name=ofd_packets/00162652 [21:16:57]NVStorageSaveData ofd_packets/00162652 [21:16:57]File name is /storage/ofd_packets/00162652 [21:16:57]Write 302 bytes [21:16:57]NVStorageSaveData done [21:16:57]OFDSenderStorePacket done [21:16:57]KKMCreateOFDPacket done [21:16:57]NVStorageSaveData kkm_last_timestamp [21:16:57]File name is /storage/kkm_last_timestamp [21:16:57]Write 4 bytes [21:16:57]NVStorageSaveData done [21:16:57]ExternCall_PrintAddStr [21:16:57]wPrintStart [21:16:57]Write to MH i2c: 01 00 00 DC 28 04 [21:16:57]Write i2c OK [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 07 00 [21:16:57]MH_I2C_Read... [21:16:57]Read from MH i2c: 01 07 00 DC 28 00 00 00 00 00 FF 0F 19 [21:16:57]RasterBufferAndPrint [21:16:57]line Счет N : (1)1319230 [21:16:57]line ИНН: 02508201610067 [21:16:57]line Контрольно-Кассовый Чек [21:16:57]line ПРОДАЖА [21:16:57]line ТРК (МРК, ГНК) : 21 [21:16:57]line Товар: 2710194210 [21:16:57]line ДТ(л)-К-5 [21:16:57]line 68.880 * 72.60 [21:16:57]line = 5000.69 [21:16:57]line НДС 12% НСП 1% [21:16:57]line > о реализуемом товаре [21:16:57]line ОКРУГЛЕНИЕ: -0.69 [21:16:57]line ИТОГО: 5000.00 [21:16:57]line Внесено: 5000.00 [21:16:57]line СДАЧА: 0.00 [21:16:57]line НСП 1% : 44.25 [21:16:57]line НДС 12% : 531.05 [21:16:57]line Наличными: 5000.00 [21:16:57]line Безнал.: 0.00 [21:16:57]line Место: АЗС № 140 "Партнер Нефть" [21:16:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:16:57]line СНО: Общий режим [21:16:57]line Чек 320 13.07.2024 21:16 [21:16:57]line Смена: 462 ФФД: 1.0 [21:16:57]line ЗНМ: 0300000129 [21:16:57]line РНМ: 0000000000090858 [21:16:57]line Версия ККМ: 001 [21:16:57]line ФМ: 0000000000874899 [21:16:57]line ФД: 162652 [21:16:57]line ФПД: 68727336193167 [21:16:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T211657&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162652&fm=68727336193167&tin=02508201610067®Number=0000000000090858&sum=500000 [21:16:58]OFD Sender: Processing packet 162652 [packets to send 106, broken 105] [21:16:58]ProducePacketName [21:16:58]name=ofd_packets/00162652 [21:16:58]OFD Sender: To server: pG, [21:16:58]CommunicateWithHost lk.salyk.kg:30040 [21:16:58]ConnectInit lk.salyk.kg [21:16:58]written 0, free lines is 4095 [21:16:58]Connected sock=10 [21:16:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 67 93 08 01 58 D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 71 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 C9 EE 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5C 7B 02 00 35 04 06 00 3E 81 D4 75 CC 8F EB B4 DB 9A 70 9E 11 9A [21:16:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 15 2C 47 00 0A 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 34 38 39 39 10 04 04 00 5C 7B 02 00 F4 03 04 00 D8 9A 92 66 B6 04 01 00 00 A8 09 8F A3 EF 1D A3 FE [21:16:58]CommunicateWithHost err = 0 [21:16:58]CheckOFDResponse [21:16:58]1017 (14) - 77093643461234 [21:16:58]1041 (16) - 0000000000874899 [21:16:58]1040 (4) - 162652 [21:16:58]1012 (4) - 13.07.2024 15:18 [21:16:58]1206 (1) - 0 [21:16:58]OFD Sender: Remove packet 162652 [21:16:58]ProducePacketName [21:16:58]name=ofd_packets/00162652 [21:16:58]NVStorageDeleteData [21:16:58]Write to MH i2c: 01 00 00 07 29 30 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: 01 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: 01 07 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: 01 07 00 07 29 00 00 00 00 00 DF 0C 22 [21:16:58]RasterBufferAndPrint [21:16:58]line [21:16:58]line [21:16:58]line [21:16:58]line [21:16:58]line [21:16:58]written 0, free lines is 3301 [21:16:58]MH_Cut [21:16:58]Write to MH i2c: D1 01 00 0E 29 01 09 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: D1 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: D1 01 00 [21:16:58]MH_I2C_Read... [21:16:58]Read from MH i2c: D1 01 00 0E 29 00 08 [21:16:58]Write to MH i2c: 01 00 00 0F 29 38 [21:16:58]Write i2c OK [21:16:58]MH_I2C_Read... [21:16:58]OFD Sender: No OFD packet to send [21:16:59]*** Cut start [21:16:59]*** Purtial cut [21:16:59]*** Stage 1: CUTSNS_PIN = 1 [21:16:59]Read from MH i2c: 01 [21:16:59]MH_I2C_Read... [21:16:59]*** Stop cut motor [21:16:59]*** Cut end [21:16:59]Read from MH i2c: 01 07 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: 01 07 00 0F 29 00 00 00 00 00 FF 0F 4D [21:16:59]process_action close_receipt done [21:16:59]requested_data is exist [21:16:59]produce_requested_data [21:16:59]requested_item fm.sn is exist - process it [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 11 00 00 [21:16:59]Write to MH i2c: E2 08 00 10 29 80 11 00 00 00 00 00 00 B3 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 17 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 17 00 10 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 13 [21:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:16:59]wFMCommunicate OK [21:16:59]requested_item fd.num is exist - process it [21:16:59]SAM_PROTO_GetFieldsCounters [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 13 00 00 [21:16:59]Write to MH i2c: E2 08 00 11 29 80 13 00 00 00 00 00 00 B6 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 62 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 62 00 11 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [21:16:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:59]wFMCommunicate OK [21:16:59]SAM_PROTO_GetFieldsCounters done [21:16:59]requested_item shift.num is exist - process it [21:16:59]requested_item shift.opened is exist - process it [21:16:59]req_shift_opened [21:16:59]FM_GetShiftState [21:16:59]SAM_PROTO_GetShiftState [21:16:59]wFMCommunicate request_size=4 [21:16:59]MH_SAM_APDU [21:16:59]CAPDU: 80 13 01 00 [21:16:59]Write to MH i2c: E2 08 00 12 29 80 13 01 00 00 00 00 00 B8 [21:16:59]Write i2c OK [21:16:59]MH_I2C_Read... [21:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:59]Read from MH i2c: E2 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 0E 00 [21:16:59]MH_I2C_Read... [21:16:59]Read from MH i2c: E2 0E 00 12 29 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B2 [21:16:59]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:16:59]wFMCommunicate OK [21:16:59]SAM_PROTO_GetShiftState done [21:16:59]FM_GetShiftState done [21:16:59]req_shift_opened done [21:16:59]requested_item shift.open_date is exist - process it [21:16:59]req_shift_open_date [21:16:59]req_shift_open_date done [21:16:59]produce_requested_data done [21:16:59]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162652,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:16:59]process_action_free close_receipt [21:16:59]json_value_free [21:16:59]json_value_free done [21:16:59]process_json_proto returns [21:16:59]Send response to host [21:16:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162652,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:16:59]free response buf [21:16:59]execute_script done [21:16:59]execute_script returns [21:16:59]free content buf [21:16:59]Sock 9.Close socket [21:16:59]Sock 9.Thread stoped [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:37]accept exits with 7 [21:20:37]New connection [21:20:37]New thread 3067510116 created [21:20:37]Thread 3067366756 joined [21:20:37]Waiting for new connection... [21:20:37] Sock 7.Parse request [21:20:37]Sock 7.Check first char [21:20:37]Sock 7.First char is OK [21:20:37]request: POST /json_proto HTTP/1.0 [21:20:37]Method: POST [21:20:37]URL: /json_proto [21:20:37]Method is POST - this is cgi request [21:20:37]url: /json_proto [21:20:37]query_string will be loaded in cgi processing [21:20:37]execute_cgi json_proto POST (null) [21:20:37]execute_cgi path=json_proto method=POST [21:20:37]POST find Content-Length [21:20:37]Host: 172.17.39.67:8080 [21:20:37]Content-Length: 688 [21:20:37]Content-Type: application/json [21:20:37] [21:20:37]POST finish read [21:20:37]Found Content-Length = 688 [21:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:20:37]execute_script... [21:20: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)1319231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:20:37]POST & json_proto [21:20:37]process_json_proto [21:20:37]json parsed OK: [21:20:37]protocol is kg_v1.0 [21:20:37]action value=close_receipt [21:20:37]process_action close_receipt [21:20:37]cmd_close_receipt [21:20:37]MH_GetDate [21:20:37]Write to MH i2c: F0 00 00 13 29 2B [21:20:37]Write i2c OK [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: F0 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: F0 09 00 [21:20:37]MH_I2C_Read... [21:20:37]Read from MH i2c: F0 09 00 13 29 00 A7 EF 92 66 86 7C 92 66 BC [21:20:37]GetLastDocTimeStamp 1720905417 [21:20:37]current date 1720905639 [21:20:37]FM_GetShiftState [21:20:37]SAM_PROTO_GetShiftState [21:20:37]wFMCommunicate request_size=4 [21:20:37]MH_SAM_APDU [21:20:37]CAPDU: 80 13 01 00 [21:20:37]Write to MH i2c: E2 08 00 14 29 80 13 01 00 00 00 00 00 BA [21:20:37]Write i2c OK [21:20:37]MH_I2C_Read... [21:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:38]Read from MH i2c: E2 [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: E2 0E 00 [21:20:38]MH_I2C_Read... [21:20:38]Read from MH i2c: E2 0E 00 14 29 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B4 [21:20:38]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:20:38]wFMCommunicate OK [21:20:38]SAM_PROTO_GetShiftState done [21:20:38]FM_GetShiftState done [21:20:38]opened in 1720828979 [21:20:38]opened+sec_in_day 1720915379 [21:20:38]quantity*price = 100042 [21:20:38]sum+1 = 100044 [21:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 321 13.07.2024 21:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162653 ФПД: 147374217997500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212039&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162653&fm=147374217997500&tin=02508201610067®Number=0000000000090858&sum=100000 [21:20:39]StoreToDocumentArchive [21:20:39]shift 462 fd 162653 [21:20:39]save to /storage/0462/doc_00162653 [21:20:39]save last doc name /storage/0462/doc_00162653 to /storage/kkm_last_doc_name [21:20:39]save OK [21:20:39]Clear old archive folders... [21:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:20:39]tlvbuf is 006422F0 [21:20:39]SAM_PROTO_ClearQueue [21:20:39]wFMCommunicate request_size=4 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 09 00 00 [21:20:39]Write to MH i2c: E2 08 00 21 29 80 09 00 00 00 00 00 00 BC [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:20:39]Read from MH i2c: E2 03 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 03 00 21 29 00 90 00 BE [21:20:39]RAPDU: 90 00 [21:20:39]wFMCommunicate OK [21:20:39]SAM_PROTO_ClearQueue done [21:20:39]KKMCreateOFDPacket [21:20:39]OFDProtocolAddRootSTLVToBuf [21:20:39]FM_MakeSignedData [21:20:39]FM_MakeSignedData [21:20:39]SAM_PROTO_SignData [21:20:39]wFMCommunicate request_size=4 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 0D 01 02 [21:20:39]Write to MH i2c: E2 08 00 22 29 80 0D 01 02 00 00 00 00 C4 [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:20:39]OFD Sender: No OFD packet to send [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 03 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 03 00 22 29 00 90 00 BF [21:20:39]RAPDU: 90 00 [21:20:39]wFMCommunicate OK [21:20:39]wFMCommunicate request_size=255 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 41 01 00 00 F4 03 04 00 A7 EF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7B 02 00 35 04 06 00 [21:20:39]Write to MH i2c: E2 02 01 23 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 41 01 00 00 F4 03 04 00 A7 EF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7B 02 00 35 04 06 00 00 00 D6 [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 03 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 03 00 23 29 00 90 00 C0 [21:20:39]RAPDU: 90 00 [21:20:39]wFMCommunicate OK [21:20:39]wFMCommunicate request_size=11 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 0D 02 02 06 86 09 3B E9 AC BC [21:20:39]Write to MH i2c: E2 0E 00 24 29 80 0D 02 02 06 00 86 09 3B E9 AC BC 00 00 EE [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 03 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 03 00 24 29 00 90 00 C1 [21:20:39]RAPDU: 90 00 [21:20:39]wFMCommunicate OK [21:20:39]wFMCommunicate request_size=4 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 0D 03 02 [21:20:39]Write to MH i2c: E2 08 00 25 29 80 0D 03 02 00 00 00 00 C9 [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 0B 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 0B 00 25 29 00 BD 23 75 BF 4F A5 C0 93 90 00 25 [21:20:39]RAPDU: BD 23 75 BF 4F A5 C0 93 90 00 [21:20:39]wFMCommunicate OK [21:20:39]SAM_PROTO_SignData done [21:20:39]FM_MakeSignedData done [21:20:39]CreateOFDProtocolMessage [21:20:39]wFMCommunicate request_size=4 [21:20:39]MH_SAM_APDU [21:20:39]CAPDU: 80 11 00 00 [21:20:39]Write to MH i2c: E2 08 00 26 29 80 11 00 00 00 00 00 00 C9 [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:39]Read from MH i2c: E2 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 17 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: E2 17 00 26 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 29 [21:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:20:39]wFMCommunicate OK [21:20:39]CreateOFDProtocolMessage done [21:20:39]OFDSenderStorePacket 162653 [21:20:39]StoreOFDPacket docnum=162653 [21:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4B CB 08 01 B2 EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 41 01 00 00 F4 03 04 00 A7 EF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7B 02 00 35 04 06 00 86 09 3B E9 AC BC BD 23 75 BF 4F A5 C0 93 [21:20:39]CheckFolder [21:20:39]dirname=/storage/ofd_packets [21:20:39]CheckFolder done [21:20:39]ProducePacketName [21:20:39]name=ofd_packets/00162653 [21:20:39]NVStorageSaveData ofd_packets/00162653 [21:20:39]File name is /storage/ofd_packets/00162653 [21:20:39]Write 302 bytes [21:20:39]NVStorageSaveData done [21:20:39]OFDSenderStorePacket done [21:20:39]KKMCreateOFDPacket done [21:20:39]NVStorageSaveData kkm_last_timestamp [21:20:39]File name is /storage/kkm_last_timestamp [21:20:39]Write 4 bytes [21:20:39]NVStorageSaveData done [21:20:39]ExternCall_PrintAddStr [21:20:39]wPrintStart [21:20:39]Write to MH i2c: 01 00 00 27 29 50 [21:20:39]Write i2c OK [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: 01 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: 01 07 00 [21:20:39]MH_I2C_Read... [21:20:39]Read from MH i2c: 01 07 00 27 29 00 00 00 00 00 FF 0F 65 [21:20:39]RasterBufferAndPrint [21:20:39]line Счет N : (1)1319231 [21:20:39]line ИНН: 02508201610067 [21:20:39]line Контрольно-Кассовый Чек [21:20:39]line ПРОДАЖА [21:20:39]line ТРК (МРК, ГНК) : 41 [21:20:39]line Товар: 2710194210 [21:20:39]line ДТ(л)-К-5 [21:20:39]line 13.780 * 72.60 [21:20:39]line = 1000.43 [21:20:39]line НДС 12% НСП 1% [21:20:39]line > о реализуемом товаре [21:20:39]line ОКРУГЛЕНИЕ: -0.43 [21:20:39]line ИТОГО: 1000.00 [21:20:39]line Внесено: 1000.00 [21:20:39]line СДАЧА: 0.00 [21:20:39]line НСП 1% : 8.85 [21:20:39]line НДС 12% : 106.24 [21:20:39]line Наличными: 1000.00 [21:20:39]line Безнал.: 0.00 [21:20:39]line Место: АЗС № 140 "Партнер Нефть" [21:20:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:20:39]line СНО: Общий режим [21:20:39]line Чек 321 13.07.2024 21:20 [21:20:39]line Смена: 462 ФФД: 1.0 [21:20:39]line ЗНМ: 0300000129 [21:20:39]line РНМ: 0000000000090858 [21:20:39]line Версия ККМ: 001 [21:20:39]line ФМ: 0000000000874899 [21:20:39]line ФД: 162653 [21:20:39]line ФПД: 147374217997500 [21:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212039&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162653&fm=147374217997500&tin=02508201610067®Number=0000000000090858&sum=100000 [21:20:39]OFD Sender: Processing packet 162653 [packets to send 106, broken 105] [21:20:39]ProducePacketName [21:20:39]name=ofd_packets/00162653 [21:20:39]OFD Sender: To server: pG, [21:20:39]CommunicateWithHost lk.salyk.kg:30040 [21:20:39]ConnectInit lk.salyk.kg [21:20:39]written 0, free lines is 4095 [21:20:40]Connected sock=10 [21:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 4B CB 08 01 B2 EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 41 01 00 00 F4 03 04 00 A7 EF 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7B 02 00 35 04 06 00 86 09 3B E9 AC BC BD 23 75 BF 4F A5 C0 93 [21:20:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 28 3A 47 00 6A E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5D 7B 02 00 F4 03 04 00 B6 9B 92 66 B6 04 01 00 00 58 98 81 DD D8 DC F1 8E [21:20:40]CommunicateWithHost err = 0 [21:20:40]CheckOFDResponse [21:20:40]1017 (14) - 77093643461234 [21:20:40]1041 (16) - 0000000000874899 [21:20:40]1040 (4) - 162653 [21:20:40]1012 (4) - 13.07.2024 15:22 [21:20:40]1206 (1) - 0 [21:20:40]OFD Sender: Remove packet 162653 [21:20:40]ProducePacketName [21:20:40]name=ofd_packets/00162653 [21:20:40]NVStorageDeleteData [21:20:40]Write to MH i2c: 01 00 00 52 29 7B [21:20:40]Write i2c OK [21:20:40]MH_I2C_Read... [21:20:40]Read from MH i2c: 01 [21:20:40]MH_I2C_Read... [21:20:40]Read from MH i2c: 01 07 00 [21:20:40]MH_I2C_Read... [21:20:40]Read from MH i2c: 01 07 00 52 29 00 00 00 00 00 D2 0C 60 [21:20:40]RasterBufferAndPrint [21:20:40]line [21:20:40]line [21:20:40]line [21:20:40]line [21:20:40]line [21:20:40]written 0, free lines is 3288 [21:20:40]MH_Cut [21:20:40]Write to MH i2c: D1 01 00 59 29 01 54 [21:20:40]Write i2c OK [21:20:40]MH_I2C_Read... [21:20:40]Read from MH i2c: D1 [21:20:40]MH_I2C_Read... [21:20:40]Read from MH i2c: D1 01 00 [21:20:40]MH_I2C_Read... [21:20:40]Read from MH i2c: D1 01 00 59 29 00 53 [21:20:40]Write to MH i2c: 01 00 00 5A 29 83 [21:20:40]Write i2c OK [21:20:40]MH_I2C_Read... [21:20:40]OFD Sender: No OFD packet to send [21:20:41]*** Cut start [21:20:41]*** Purtial cut [21:20:41]*** CUTSNS_PIN = 0 [21:20:41]*** Stage 1: CUTSNS_PIN = 1 [21:20:43]Read from MH i2c: 01 [21:20:43]MH_I2C_Read... [21:20:43]*** Stop cut motor [21:20:43]*** Cut end [21:20:43]Read from MH i2c: 01 07 00 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: 01 07 00 5A 29 00 00 00 00 00 FF 0F 98 [21:20:43]process_action close_receipt done [21:20:43]requested_data is exist [21:20:43]produce_requested_data [21:20:43]requested_item fm.sn is exist - process it [21:20:43]wFMCommunicate request_size=4 [21:20:43]MH_SAM_APDU [21:20:43]CAPDU: 80 11 00 00 [21:20:43]Write to MH i2c: E2 08 00 5B 29 80 11 00 00 00 00 00 00 FE [21:20:43]Write i2c OK [21:20:43]MH_I2C_Read... [21:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:20:43]Read from MH i2c: E2 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: E2 17 00 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: E2 17 00 5B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5E [21:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:20:43]wFMCommunicate OK [21:20:43]requested_item fd.num is exist - process it [21:20:43]SAM_PROTO_GetFieldsCounters [21:20:43]wFMCommunicate request_size=4 [21:20:43]MH_SAM_APDU [21:20:43]CAPDU: 80 13 00 00 [21:20:43]Write to MH i2c: E2 08 00 5C 29 80 13 00 00 00 00 00 00 01 [21:20:43]Write i2c OK [21:20:43]MH_I2C_Read... [21:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:20:43]Read from MH i2c: E2 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: E2 62 00 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: E2 62 00 5C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [21:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:20:43]wFMCommunicate OK [21:20:43]SAM_PROTO_GetFieldsCounters done [21:20:43]requested_item shift.num is exist - process it [21:20:43]requested_item shift.opened is exist - process it [21:20:43]req_shift_opened [21:20:43]FM_GetShiftState [21:20:43]SAM_PROTO_GetShiftState [21:20:43]wFMCommunicate request_size=4 [21:20:43]MH_SAM_APDU [21:20:43]CAPDU: 80 13 01 00 [21:20:43]Write to MH i2c: E2 08 00 5D 29 80 13 01 00 00 00 00 00 03 [21:20:43]Write i2c OK [21:20:43]MH_I2C_Read... [21:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:20:43]Read from MH i2c: E2 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: E2 0E 00 [21:20:43]MH_I2C_Read... [21:20:43]Read from MH i2c: E2 0E 00 5D 29 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FD [21:20:43]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:20:43]wFMCommunicate OK [21:20:43]SAM_PROTO_GetShiftState done [21:20:43]FM_GetShiftState done [21:20:43]req_shift_opened done [21:20:43]requested_item shift.open_date is exist - process it [21:20:43]req_shift_open_date [21:20:43]req_shift_open_date done [21:20:43]produce_requested_data done [21:20:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162653,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:20:43]process_action_free close_receipt [21:20:43]json_value_free [21:20:43]json_value_free done [21:20:43]process_json_proto returns [21:20:43]Send response to host [21:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162653,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:20:43]free response buf [21:20:43]execute_script done [21:20:43]execute_script returns [21:20:43]free content buf [21:20:43]Sock 7.Close socket [21:20:43]Sock 7.Thread stoped [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]accept exits with 9 [21:22:10]New connection [21:22:10]New thread 3067366756 created [21:22:10]Thread 3067510116 joined [21:22:10]Waiting for new connection... [21:22:10] Sock 9.Parse request [21:22:10]Sock 9.Check first char [21:22:10]Sock 9.First char is OK [21:22:10]request: POST /json_proto HTTP/1.0 [21:22:10]Method: POST [21:22:10]URL: /json_proto [21:22:10]Method is POST - this is cgi request [21:22:10]url: /json_proto [21:22:10]query_string will be loaded in cgi processing [21:22:10]execute_cgi json_proto POST (null) [21:22:10]execute_cgi path=json_proto method=POST [21:22:10]POST find Content-Length [21:22:10]Host: 172.17.39.67:8080 [21:22:10]Content-Length: 684 [21:22:10]Content-Type: application/json [21:22:10] [21:22:10]POST finish read [21:22:10]Found Content-Length = 684 [21:22:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.340, "sum" : 750.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:10]execute_script... [21:22: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)1319232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.340, "sum" : 750.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:10]POST & json_proto [21:22:10]process_json_proto [21:22:10]json parsed OK: [21:22:10]protocol is kg_v1.0 [21:22:10]action value=close_receipt [21:22:10]process_action close_receipt [21:22:10]cmd_close_receipt [21:22:10]MH_GetDate [21:22:10]Write to MH i2c: F0 00 00 5E 29 76 [21:22:10]Write i2c OK [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: F0 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: F0 09 00 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: F0 09 00 5E 29 00 03 F0 92 66 86 7C 92 66 64 [21:22:10]GetLastDocTimeStamp 1720905639 [21:22:10]current date 1720905731 [21:22:10]FM_GetShiftState [21:22:10]SAM_PROTO_GetShiftState [21:22:10]wFMCommunicate request_size=4 [21:22:10]MH_SAM_APDU [21:22:10]CAPDU: 80 13 01 00 [21:22:10]Write to MH i2c: E2 08 00 5F 29 80 13 01 00 00 00 00 00 05 [21:22:10]Write i2c OK [21:22:10]MH_I2C_Read... [21:22:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:10]Read from MH i2c: E2 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: E2 0E 00 [21:22:10]MH_I2C_Read... [21:22:10]Read from MH i2c: E2 0E 00 5F 29 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FF [21:22:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:22:10]wFMCommunicate OK [21:22:10]SAM_PROTO_GetShiftState done [21:22:10]FM_GetShiftState done [21:22:10]opened in 1720828979 [21:22:10]opened+sec_in_day 1720915379 [21:22:10]quantity*price = 75068 [21:22:10]sum+1 = 75069 [21:22:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.72 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 322 13.07.2024 21:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162654 ФПД: 93123030638625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212212&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162654&fm=93123030638625&tin=02508201610067®Number=0000000000090858&sum=75000 [21:22:11]StoreToDocumentArchive [21:22:11]shift 462 fd 162654 [21:22:11]save to /storage/0462/doc_00162654 [21:22:11]save last doc name /storage/0462/doc_00162654 to /storage/kkm_last_doc_name [21:22:11]save OK [21:22:11]Clear old archive folders... [21:22:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:22:11]tlvbuf is B6F499E0 [21:22:11]SAM_PROTO_ClearQueue [21:22:11]wFMCommunicate request_size=4 [21:22:11]MH_SAM_APDU [21:22:11]CAPDU: 80 09 00 00 [21:22:11]Write to MH i2c: E2 08 00 6C 29 80 09 00 00 00 00 00 00 07 [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:11]Read from MH i2c: E2 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 03 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 03 00 6C 29 00 90 00 09 [21:22:11]RAPDU: 90 00 [21:22:11]wFMCommunicate OK [21:22:11]SAM_PROTO_ClearQueue done [21:22:11]KKMCreateOFDPacket [21:22:11]OFDProtocolAddRootSTLVToBuf [21:22:11]FM_MakeSignedData [21:22:11]FM_MakeSignedData [21:22:11]SAM_PROTO_SignData [21:22:11]wFMCommunicate request_size=4 [21:22:11]MH_SAM_APDU [21:22:11]CAPDU: 80 0D 01 02 [21:22:11]Write to MH i2c: E2 08 00 6D 29 80 0D 01 02 00 00 00 00 0F [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:11]Read from MH i2c: E2 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 03 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 03 00 6D 29 00 90 00 0A [21:22:11]RAPDU: 90 00 [21:22:11]wFMCommunicate OK [21:22:11]wFMCommunicate request_size=255 [21:22:11]MH_SAM_APDU [21:22:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 04 F0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7B 02 00 35 04 06 00 [21:22:11]Write to MH i2c: E2 02 01 6E 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 04 F0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7B 02 00 35 04 06 00 00 00 BC [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:11]Read from MH i2c: E2 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 03 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 03 00 6E 29 00 90 00 0B [21:22:11]RAPDU: 90 00 [21:22:11]wFMCommunicate OK [21:22:11]wFMCommunicate request_size=11 [21:22:11]MH_SAM_APDU [21:22:11]CAPDU: 80 0D 02 02 06 54 B1 E5 29 60 21 [21:22:11]Write to MH i2c: E2 0E 00 6F 29 80 0D 02 02 06 00 54 B1 E5 29 60 21 00 00 B2 [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:11]Read from MH i2c: E2 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 03 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 03 00 6F 29 00 90 00 0C [21:22:11]RAPDU: 90 00 [21:22:11]wFMCommunicate OK [21:22:11]wFMCommunicate request_size=4 [21:22:11]MH_SAM_APDU [21:22:11]CAPDU: 80 0D 03 02 [21:22:11]Write to MH i2c: E2 08 00 70 29 80 0D 03 02 00 00 00 00 14 [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:11]Read from MH i2c: E2 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 0B 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 0B 00 70 29 00 09 A8 F1 00 28 06 D1 7A 90 00 30 [21:22:11]RAPDU: 09 A8 F1 00 28 06 D1 7A 90 00 [21:22:11]wFMCommunicate OK [21:22:11]SAM_PROTO_SignData done [21:22:11]FM_MakeSignedData done [21:22:11]CreateOFDProtocolMessage [21:22:11]wFMCommunicate request_size=4 [21:22:11]MH_SAM_APDU [21:22:11]CAPDU: 80 11 00 00 [21:22:11]Write to MH i2c: E2 08 00 71 29 80 11 00 00 00 00 00 00 14 [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:11]Read from MH i2c: E2 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 17 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: E2 17 00 71 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 74 [21:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:22:11]wFMCommunicate OK [21:22:11]CreateOFDProtocolMessage done [21:22:11]OFDSenderStorePacket 162654 [21:22:11]StoreOFDPacket docnum=162654 [21:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CC B9 08 01 9D B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 04 F0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7B 02 00 35 04 06 00 54 B1 E5 29 60 21 09 A8 F1 00 28 06 D1 7A [21:22:11]CheckFolder [21:22:11]dirname=/storage/ofd_packets [21:22:11]CheckFolder done [21:22:11]ProducePacketName [21:22:11]name=ofd_packets/00162654 [21:22:11]NVStorageSaveData ofd_packets/00162654 [21:22:11]File name is /storage/ofd_packets/00162654 [21:22:11]Write 302 bytes [21:22:11]NVStorageSaveData done [21:22:11]OFDSenderStorePacket done [21:22:11]KKMCreateOFDPacket done [21:22:11]NVStorageSaveData kkm_last_timestamp [21:22:11]File name is /storage/kkm_last_timestamp [21:22:11]Write 4 bytes [21:22:11]NVStorageSaveData done [21:22:11]ExternCall_PrintAddStr [21:22:11]wPrintStart [21:22:11]Write to MH i2c: 01 00 00 72 29 9B [21:22:11]Write i2c OK [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 07 00 [21:22:11]MH_I2C_Read... [21:22:11]Read from MH i2c: 01 07 00 72 29 00 00 00 00 00 FF 0F B0 [21:22:11]RasterBufferAndPrint [21:22:11]line Счет N : (1)1319232 [21:22:11]line ИНН: 02508201610067 [21:22:11]line Контрольно-Кассовый Чек [21:22:11]line ПРОДАЖА [21:22:11]line ТРК (МРК, ГНК) : 11 [21:22:11]line Товар: 2710194210 [21:22:11]line ДТ(л)-К-5 [21:22:11]line 10.340 * 72.60 [21:22:11]line = 750.68 [21:22:11]line НДС 12% НСП 1% [21:22:11]line > о реализуемом товаре [21:22:11]line ОКРУГЛЕНИЕ: -0.68 [21:22:11]line ИТОГО: 750.00 [21:22:11]line Внесено: 750.00 [21:22:11]line СДАЧА: 0.00 [21:22:11]line НСП 1% : 6.64 [21:22:11]line НДС 12% : 79.72 [21:22:11]line Наличными: 750.00 [21:22:11]line Безнал.: 0.00 [21:22:11]line Место: АЗС № 140 "Партнер Нефть" [21:22:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:22:11]line СНО: Общий режим [21:22:11]line Чек 322 13.07.2024 21:22 [21:22:11]line Смена: 462 ФФД: 1.0 [21:22:11]line ЗНМ: 0300000129 [21:22:11]line РНМ: 0000000000090858 [21:22:11]line Версия ККМ: 001 [21:22:11]line ФМ: 0000000000874899 [21:22:11]line ФД: 162654 [21:22:11]line ФПД: 93123030638625 [21:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212212&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162654&fm=93123030638625&tin=02508201610067®Number=0000000000090858&sum=75000 [21:22:11]written 0, free lines is 4095 [21:22:12]OFD Sender: Processing packet 162654 [packets to send 106, broken 105] [21:22:12]ProducePacketName [21:22:12]name=ofd_packets/00162654 [21:22:12]OFD Sender: To server: pG, [21:22:12]CommunicateWithHost lk.salyk.kg:30040 [21:22:12]ConnectInit lk.salyk.kg [21:22:12]Connected sock=10 [21:22:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 CC B9 08 01 9D B7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 04 F0 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7B 02 00 35 04 06 00 54 B1 E5 29 60 21 09 A8 F1 00 28 06 D1 7A [21:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 3C 24 47 00 EF F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5E 7B 02 00 F4 03 04 00 12 9C 92 66 B6 04 01 00 00 F6 5B 3A 8B DF A9 D1 07 [21:22:12]CommunicateWithHost err = 0 [21:22:12]CheckOFDResponse [21:22:12]1017 (14) - 77093643461234 [21:22:12]1041 (16) - 0000000000874899 [21:22:12]1040 (4) - 162654 [21:22:12]1012 (4) - 13.07.2024 15:24 [21:22:12]1206 (1) - 0 [21:22:12]OFD Sender: Remove packet 162654 [21:22:12]ProducePacketName [21:22:12]name=ofd_packets/00162654 [21:22:12]NVStorageDeleteData [21:22:12]Write to MH i2c: 01 00 00 9D 29 C6 [21:22:12]Write i2c OK [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: 01 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: 01 07 00 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: 01 07 00 9D 29 00 00 00 00 00 E5 0C BE [21:22:12]RasterBufferAndPrint [21:22:12]line [21:22:12]line [21:22:12]line [21:22:12]line [21:22:12]line [21:22:12]written 0, free lines is 3307 [21:22:12]MH_Cut [21:22:12]Write to MH i2c: D1 01 00 A4 29 01 9F [21:22:12]Write i2c OK [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: D1 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: D1 01 00 [21:22:12]MH_I2C_Read... [21:22:12]Read from MH i2c: D1 01 00 A4 29 00 9E [21:22:12]Write to MH i2c: 01 00 00 A5 29 CE [21:22:12]Write i2c OK [21:22:12]MH_I2C_Read... [21:22:12]OFD Sender: No OFD packet to send [21:22:13]*** Cut start [21:22:13]*** Purtial cut [21:22:13]*** Stage 1: CUTSNS_PIN = 1 [21:22:13]Read from MH i2c: 01 [21:22:13]MH_I2C_Read... [21:22:13]*** Stop cut motor [21:22:13]*** Cut end [21:22:13]Read from MH i2c: 01 07 00 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: 01 07 00 A5 29 00 00 00 00 00 FF 0F E3 [21:22:13]process_action close_receipt done [21:22:13]requested_data is exist [21:22:13]produce_requested_data [21:22:13]requested_item fm.sn is exist - process it [21:22:13]wFMCommunicate request_size=4 [21:22:13]MH_SAM_APDU [21:22:13]CAPDU: 80 11 00 00 [21:22:13]Write to MH i2c: E2 08 00 A6 29 80 11 00 00 00 00 00 00 49 [21:22:13]Write i2c OK [21:22:13]MH_I2C_Read... [21:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:13]Read from MH i2c: E2 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: E2 17 00 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: E2 17 00 A6 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A9 [21:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:22:13]wFMCommunicate OK [21:22:13]requested_item fd.num is exist - process it [21:22:13]SAM_PROTO_GetFieldsCounters [21:22:13]wFMCommunicate request_size=4 [21:22:13]MH_SAM_APDU [21:22:13]CAPDU: 80 13 00 00 [21:22:13]Write to MH i2c: E2 08 00 A7 29 80 13 00 00 00 00 00 00 4C [21:22:13]Write i2c OK [21:22:13]MH_I2C_Read... [21:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:13]Read from MH i2c: E2 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: E2 62 00 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: E2 62 00 A7 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [21:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:13]wFMCommunicate OK [21:22:13]SAM_PROTO_GetFieldsCounters done [21:22:13]requested_item shift.num is exist - process it [21:22:13]requested_item shift.opened is exist - process it [21:22:13]req_shift_opened [21:22:13]FM_GetShiftState [21:22:13]SAM_PROTO_GetShiftState [21:22:13]wFMCommunicate request_size=4 [21:22:13]MH_SAM_APDU [21:22:13]CAPDU: 80 13 01 00 [21:22:13]Write to MH i2c: E2 08 00 A8 29 80 13 01 00 00 00 00 00 4E [21:22:13]Write i2c OK [21:22:13]MH_I2C_Read... [21:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:13]Read from MH i2c: E2 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: E2 0E 00 [21:22:13]MH_I2C_Read... [21:22:13]Read from MH i2c: E2 0E 00 A8 29 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 48 [21:22:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:22:13]wFMCommunicate OK [21:22:13]SAM_PROTO_GetShiftState done [21:22:13]FM_GetShiftState done [21:22:13]req_shift_opened done [21:22:13]requested_item shift.open_date is exist - process it [21:22:13]req_shift_open_date [21:22:13]req_shift_open_date done [21:22:13]produce_requested_data done [21:22:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162654,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:22:13]process_action_free close_receipt [21:22:13]json_value_free [21:22:13]json_value_free done [21:22:13]process_json_proto returns [21:22:13]Send response to host [21:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162654,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:22:13]free response buf [21:22:13]execute_script done [21:22:13]execute_script returns [21:22:13]free content buf [21:22:13]Sock 9.Close socket [21:22:13]Sock 9.Thread stoped [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:52]OFD Sender: No OFD packet to send [21:22:57]OFD Sender: No OFD packet to send [21:23:02]OFD Sender: No OFD packet to send [21:23:07]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:48]OFD Sender: No OFD packet to send [21:24:53]OFD Sender: No OFD packet to send [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:22]accept exits with 7 [21:27:22]New connection [21:27:22]New thread 3067510116 created [21:27:22]Thread 3067366756 joined [21:27:22]Waiting for new connection... [21:27:22] Sock 7.Parse request [21:27:22]Sock 7.Check first char [21:27:22]Sock 7.First char is OK [21:27:22]request: POST /json_proto HTTP/1.0 [21:27:22]Method: POST [21:27:22]URL: /json_proto [21:27:22]Method is POST - this is cgi request [21:27:22]url: /json_proto [21:27:22]query_string will be loaded in cgi processing [21:27:22]execute_cgi json_proto POST (null) [21:27:22]execute_cgi path=json_proto method=POST [21:27:22]POST find Content-Length [21:27:22]Host: 172.17.39.67:8080 [21:27:22]Content-Length: 683 [21:27:22]Content-Type: application/json [21:27:22] [21:27:22]POST finish read [21:27:22]Found Content-Length = 683 [21:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [21:27:22]execute_script... [21:27: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)1319233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [21:27:22]POST & json_proto [21:27:22]process_json_proto [21:27:22]json parsed OK: [21:27:22]protocol is kg_v1.0 [21:27:22]action value=close_receipt [21:27:22]process_action close_receipt [21:27:22]cmd_close_receipt [21:27:22]MH_GetDate [21:27:22]Write to MH i2c: F0 00 00 A9 29 C1 [21:27:22]Write i2c OK [21:27:22]MH_I2C_Read... [21:27:22]Read from MH i2c: F0 [21:27:22]MH_I2C_Read... [21:27:22]Read from MH i2c: F0 09 00 [21:27:22]MH_I2C_Read... [21:27:22]Read from MH i2c: F0 09 00 A9 29 00 3C F1 92 66 86 7C 92 66 E9 [21:27:22]GetLastDocTimeStamp 1720905732 [21:27:22]current date 1720906044 [21:27:22]FM_GetShiftState [21:27:22]SAM_PROTO_GetShiftState [21:27:22]wFMCommunicate request_size=4 [21:27:22]MH_SAM_APDU [21:27:22]CAPDU: 80 13 01 00 [21:27:22]Write to MH i2c: E2 08 00 AA 29 80 13 01 00 00 00 00 00 50 [21:27:22]Write i2c OK [21:27:22]MH_I2C_Read... [21:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:22]Read from MH i2c: E2 [21:27:22]MH_I2C_Read... [21:27:22]Read from MH i2c: E2 0E 00 [21:27:22]MH_I2C_Read... [21:27:22]Read from MH i2c: E2 0E 00 AA 29 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 4A [21:27:22]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:27:22]wFMCommunicate OK [21:27:22]SAM_PROTO_GetShiftState done [21:27:22]FM_GetShiftState done [21:27:22]opened in 1720828979 [21:27:22]opened+sec_in_day 1720915379 [21:27:22]quantity*price = 20037 [21:27:22]sum+1 = 20039 [21:27:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.28 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 323 13.07.2024 21:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162655 ФПД: 273581308345845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212724&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162655&fm=273581308345845&tin=02508201610067®Number=0000000000090858&sum=20000 [21:27:23]StoreToDocumentArchive [21:27:23]shift 462 fd 162655 [21:27:23]save to /storage/0462/doc_00162655 [21:27:23]save last doc name /storage/0462/doc_00162655 to /storage/kkm_last_doc_name [21:27:23]save OK [21:27:23]Clear old archive folders... [21:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:27:23]tlvbuf is 006F6110 [21:27:23]SAM_PROTO_ClearQueue [21:27:23]wFMCommunicate request_size=4 [21:27:23]MH_SAM_APDU [21:27:23]CAPDU: 80 09 00 00 [21:27:23]Write to MH i2c: E2 08 00 B7 29 80 09 00 00 00 00 00 00 52 [21:27:23]Write i2c OK [21:27:23]MH_I2C_Read... [21:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:23]Read from MH i2c: E2 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: E2 03 00 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: E2 03 00 B7 29 00 90 00 54 [21:27:23]RAPDU: 90 00 [21:27:23]wFMCommunicate OK [21:27:23]SAM_PROTO_ClearQueue done [21:27:23]KKMCreateOFDPacket [21:27:23]OFDProtocolAddRootSTLVToBuf [21:27:23]FM_MakeSignedData [21:27:23]FM_MakeSignedData [21:27:23]SAM_PROTO_SignData [21:27:23]wFMCommunicate request_size=4 [21:27:23]MH_SAM_APDU [21:27:23]CAPDU: 80 0D 01 02 [21:27:23]Write to MH i2c: E2 08 00 B8 29 80 0D 01 02 00 00 00 00 5A [21:27:23]Write i2c OK [21:27:23]MH_I2C_Read... [21:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:23]Read from MH i2c: E2 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: E2 03 00 [21:27:23]MH_I2C_Read... [21:27:23]Read from MH i2c: E2 03 00 B8 29 00 90 00 55 [21:27:23]RAPDU: 90 00 [21:27:23]wFMCommunicate OK [21:27:23]wFMCommunicate request_size=255 [21:27:23]MH_SAM_APDU [21:27:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 43 01 00 00 F4 03 04 00 3C F1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7B 02 00 35 04 06 00 [21:27:23]Write to MH i2c: E2 02 01 B9 29 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 43 01 00 00 F4 03 04 00 3C F1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7B 02 00 35 04 06 00 00 00 88 [21:27:23]Write i2c OK [21:27:23]MH_I2C_Read... [21:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:24]Read from MH i2c: E2 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 03 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 03 00 B9 29 00 90 00 56 [21:27:24]RAPDU: 90 00 [21:27:24]wFMCommunicate OK [21:27:24]wFMCommunicate request_size=11 [21:27:24]MH_SAM_APDU [21:27:24]CAPDU: 80 0D 02 02 06 F8 D2 1C B3 7D F5 [21:27:24]Write to MH i2c: E2 0E 00 BA 29 80 0D 02 02 06 00 F8 D2 1C B3 7D F5 00 00 74 [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:24]Read from MH i2c: E2 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 03 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 03 00 BA 29 00 90 00 57 [21:27:24]RAPDU: 90 00 [21:27:24]wFMCommunicate OK [21:27:24]wFMCommunicate request_size=4 [21:27:24]MH_SAM_APDU [21:27:24]CAPDU: 80 0D 03 02 [21:27:24]Write to MH i2c: E2 08 00 BB 29 80 0D 03 02 00 00 00 00 5F [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:24]Read from MH i2c: E2 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 0B 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 0B 00 BB 29 00 F7 DB 41 73 49 7E BE AD 90 00 18 [21:27:24]RAPDU: F7 DB 41 73 49 7E BE AD 90 00 [21:27:24]wFMCommunicate OK [21:27:24]SAM_PROTO_SignData done [21:27:24]FM_MakeSignedData done [21:27:24]CreateOFDProtocolMessage [21:27:24]wFMCommunicate request_size=4 [21:27:24]MH_SAM_APDU [21:27:24]CAPDU: 80 11 00 00 [21:27:24]Write to MH i2c: E2 08 00 BC 29 80 11 00 00 00 00 00 00 5F [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:24]Read from MH i2c: E2 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 17 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: E2 17 00 BC 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BF [21:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:27:24]wFMCommunicate OK [21:27:24]CreateOFDProtocolMessage done [21:27:24]OFDSenderStorePacket 162655 [21:27:24]StoreOFDPacket docnum=162655 [21:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 B8 08 01 07 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 43 01 00 00 F4 03 04 00 3C F1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7B 02 00 35 04 06 00 F8 D2 1C B3 7D F5 F7 DB 41 73 49 7E BE AD [21:27:24]CheckFolder [21:27:24]dirname=/storage/ofd_packets [21:27:24]CheckFolder done [21:27:24]ProducePacketName [21:27:24]name=ofd_packets/00162655 [21:27:24]NVStorageSaveData ofd_packets/00162655 [21:27:24]File name is /storage/ofd_packets/00162655 [21:27:24]Write 302 bytes [21:27:24]NVStorageSaveData done [21:27:24]OFDSenderStorePacket done [21:27:24]KKMCreateOFDPacket done [21:27:24]NVStorageSaveData kkm_last_timestamp [21:27:24]File name is /storage/kkm_last_timestamp [21:27:24]Write 4 bytes [21:27:24]NVStorageSaveData done [21:27:24]ExternCall_PrintAddStr [21:27:24]wPrintStart [21:27:24]Write to MH i2c: 01 00 00 BD 29 E6 [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: 01 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: 01 07 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: 01 07 00 BD 29 00 00 00 00 00 FF 0F FB [21:27:24]RasterBufferAndPrint [21:27:24]line Счет N : (1)1319233 [21:27:24]line ИНН: 02508201610067 [21:27:24]line Контрольно-Кассовый Чек [21:27:24]line ПРОДАЖА [21:27:24]line ТРК (МРК, ГНК) : 11 [21:27:24]line Товар: 2710194210 [21:27:24]line ДТ(л)-К-5 [21:27:24]line 2.760 * 72.60 [21:27:24]line = 200.38 [21:27:24]line НДС 12% НСП 1% [21:27:24]line > о реализуемом товаре [21:27:24]line ОКРУГЛЕНИЕ: -0.38 [21:27:24]line ИТОГО: 200.00 [21:27:24]line Внесено: 200.00 [21:27:24]line СДАЧА: 0.00 [21:27:24]line НСП 1% : 1.77 [21:27:24]line НДС 12% : 21.28 [21:27:24]line Наличными: 200.00 [21:27:24]line Безнал.: 0.00 [21:27:24]line Место: АЗС № 140 "Партнер Нефть" [21:27:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:27:24]line СНО: Общий режим [21:27:24]line Чек 323 13.07.2024 21:27 [21:27:24]line Смена: 462 ФФД: 1.0 [21:27:24]line ЗНМ: 0300000129 [21:27:24]line РНМ: 0000000000090858 [21:27:24]line Версия ККМ: 001 [21:27:24]line ФМ: 0000000000874899 [21:27:24]line ФД: 162655 [21:27:24]line ФПД: 273581308345845 [21:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T212724&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162655&fm=273581308345845&tin=02508201610067®Number=0000000000090858&sum=20000 [21:27:24]OFD Sender: Processing packet 162655 [packets to send 106, broken 105] [21:27:24]ProducePacketName [21:27:24]name=ofd_packets/00162655 [21:27:24]OFD Sender: To server: pG, [21:27:24]CommunicateWithHost lk.salyk.kg:30040 [21:27:24]ConnectInit lk.salyk.kg [21:27:24]written 0, free lines is 4095 [21:27:24]Connected sock=10 [21:27:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 98 B8 08 01 07 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 43 01 00 00 F4 03 04 00 3C F1 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 5F 7B 02 00 35 04 06 00 F8 D2 1C B3 7D F5 F7 DB 41 73 49 7E BE AD [21:27:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 25 15 47 00 3F 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 34 38 39 39 10 04 04 00 5F 7B 02 00 F4 03 04 00 4A 9D 92 66 B6 04 01 00 00 0B 40 38 5E 18 21 ED 77 [21:27:24]CommunicateWithHost err = 0 [21:27:24]CheckOFDResponse [21:27:24]1017 (14) - 77093643461234 [21:27:24]1041 (16) - 0000000000874899 [21:27:24]1040 (4) - 162655 [21:27:24]1012 (4) - 13.07.2024 15:29 [21:27:24]1206 (1) - 0 [21:27:24]OFD Sender: Remove packet 162655 [21:27:24]ProducePacketName [21:27:24]name=ofd_packets/00162655 [21:27:24]NVStorageDeleteData [21:27:24]Write to MH i2c: 01 00 00 E8 29 11 [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: 01 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: 01 07 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: 01 07 00 E8 29 00 00 00 00 00 D7 0C FB [21:27:24]RasterBufferAndPrint [21:27:24]line [21:27:24]line [21:27:24]line [21:27:24]line [21:27:24]line [21:27:24]written 0, free lines is 3294 [21:27:24]MH_Cut [21:27:24]Write to MH i2c: D1 01 00 EF 29 01 EA [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: D1 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: D1 01 00 [21:27:24]MH_I2C_Read... [21:27:24]Read from MH i2c: D1 01 00 EF 29 00 E9 [21:27:24]Write to MH i2c: 01 00 00 F0 29 19 [21:27:24]Write i2c OK [21:27:24]MH_I2C_Read... [21:27:25]OFD Sender: No OFD packet to send [21:27:25]*** Cut start [21:27:25]*** Purtial cut [21:27:25]*** CUTSNS_PIN = 0 [21:27:25]*** Stage 1: CUTSNS_PIN = 1 [21:27:27]Read from MH i2c: 01 [21:27:27]MH_I2C_Read... [21:27:27]*** Stop cut motor [21:27:27]*** Cut end [21:27:27]Read from MH i2c: 01 07 00 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: 01 07 00 F0 29 00 00 00 00 00 FF 0F 2E [21:27:27]process_action close_receipt done [21:27:27]requested_data is exist [21:27:27]produce_requested_data [21:27:27]requested_item fm.sn is exist - process it [21:27:27]wFMCommunicate request_size=4 [21:27:27]MH_SAM_APDU [21:27:27]CAPDU: 80 11 00 00 [21:27:27]Write to MH i2c: E2 08 00 F1 29 80 11 00 00 00 00 00 00 94 [21:27:27]Write i2c OK [21:27:27]MH_I2C_Read... [21:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:27]Read from MH i2c: E2 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 17 00 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 17 00 F1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F4 [21:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:27:27]wFMCommunicate OK [21:27:27]requested_item fd.num is exist - process it [21:27:27]SAM_PROTO_GetFieldsCounters [21:27:27]wFMCommunicate request_size=4 [21:27:27]MH_SAM_APDU [21:27:27]CAPDU: 80 13 00 00 [21:27:27]Write to MH i2c: E2 08 00 F2 29 80 13 00 00 00 00 00 00 97 [21:27:27]Write i2c OK [21:27:27]MH_I2C_Read... [21:27:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:27]Read from MH i2c: E2 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 62 00 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 62 00 F2 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [21:27:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 5F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:27]wFMCommunicate OK [21:27:27]SAM_PROTO_GetFieldsCounters done [21:27:27]requested_item shift.num is exist - process it [21:27:27]requested_item shift.opened is exist - process it [21:27:27]req_shift_opened [21:27:27]FM_GetShiftState [21:27:27]SAM_PROTO_GetShiftState [21:27:27]wFMCommunicate request_size=4 [21:27:27]MH_SAM_APDU [21:27:27]CAPDU: 80 13 01 00 [21:27:27]Write to MH i2c: E2 08 00 F3 29 80 13 01 00 00 00 00 00 99 [21:27:27]Write i2c OK [21:27:27]MH_I2C_Read... [21:27:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:27]Read from MH i2c: E2 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 0E 00 [21:27:27]MH_I2C_Read... [21:27:27]Read from MH i2c: E2 0E 00 F3 29 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 93 [21:27:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:27:27]wFMCommunicate OK [21:27:27]SAM_PROTO_GetShiftState done [21:27:27]FM_GetShiftState done [21:27:27]req_shift_opened done [21:27:27]requested_item shift.open_date is exist - process it [21:27:27]req_shift_open_date [21:27:27]req_shift_open_date done [21:27:27]produce_requested_data done [21:27:27]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162655,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:27:27]process_action_free close_receipt [21:27:27]json_value_free [21:27:27]json_value_free done [21:27:27]process_json_proto returns [21:27:27]Send response to host [21:27:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162655,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:27:27]free response buf [21:27:27]execute_script done [21:27:27]execute_script returns [21:27:27]free content buf [21:27:27]Sock 7.Close socket [21:27:27]Sock 7.Thread stoped [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:02]accept exits with 9 [21:31:02]New connection [21:31:02]New thread 3067366756 created [21:31:02]Thread 3067510116 joined [21:31:02]Waiting for new connection... [21:31:02] Sock 9.Parse request [21:31:02]Sock 9.Check first char [21:31:02]Sock 9.First char is OK [21:31:02]request: POST /json_proto HTTP/1.0 [21:31:02]Method: POST [21:31:02]URL: /json_proto [21:31:02]Method is POST - this is cgi request [21:31:02]url: /json_proto [21:31:02]query_string will be loaded in cgi processing [21:31:02]execute_cgi json_proto POST (null) [21:31:02]execute_cgi path=json_proto method=POST [21:31:02]POST find Content-Length [21:31:02]Host: 172.17.39.67:8080 [21:31:02]Content-Length: 825 [21:31:02]Content-Type: application/json [21:31:02] [21:31:02]POST finish read [21:31:02]Found Content-Length = 825 [21:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:02]execute_script... [21:31:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 20.000, "sum" : 1452.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1452.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:02]POST & json_proto [21:31:02]process_json_proto [21:31:02]json parsed OK: [21:31:02]protocol is kg_v1.0 [21:31:02]action value=close_receipt [21:31:02]process_action close_receipt [21:31:02]cmd_close_receipt [21:31:02]MH_GetDate [21:31:02]Write to MH i2c: F0 00 00 F4 29 0C [21:31:02]Write i2c OK [21:31:02]MH_I2C_Read... [21:31:02]Read from MH i2c: F0 [21:31:02]MH_I2C_Read... [21:31:02]Read from MH i2c: F0 09 00 [21:31:02]MH_I2C_Read... [21:31:02]Read from MH i2c: F0 09 00 F4 29 00 18 F2 92 66 86 7C 92 66 11 [21:31:02]GetLastDocTimeStamp 1720906044 [21:31:02]current date 1720906264 [21:31:02]FM_GetShiftState [21:31:02]SAM_PROTO_GetShiftState [21:31:02]wFMCommunicate request_size=4 [21:31:02]MH_SAM_APDU [21:31:02]CAPDU: 80 13 01 00 [21:31:02]Write to MH i2c: E2 08 00 F5 29 80 13 01 00 00 00 00 00 9B [21:31:02]Write i2c OK [21:31:02]MH_I2C_Read... [21:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:02]Read from MH i2c: E2 [21:31:02]MH_I2C_Read... [21:31:02]Read from MH i2c: E2 0E 00 [21:31:02]MH_I2C_Read... [21:31:02]Read from MH i2c: E2 0E 00 F5 29 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 95 [21:31:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:31:02]wFMCommunicate OK [21:31:02]SAM_PROTO_GetShiftState done [21:31:02]FM_GetShiftState done [21:31:02]opened in 1720828979 [21:31:02]opened+sec_in_day 1720915379 [21:31:02]quantity*price = 145200 [21:31:02]sum+1 = 145201 [21:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1452.00 НСП 1% : 12.85 НДС 12% : 154.19 Наличными: 0.00 Безнал.: 1452.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 324 13.07.2024 21:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162656 ФПД: 14087143955983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213104&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162656&fm=14087143955983&tin=02508201610067®Number=0000000000090858&sum=145200 [21:31:03]StoreToDocumentArchive [21:31:03]shift 462 fd 162656 [21:31:03]save to /storage/0462/doc_00162656 [21:31:03]save last doc name /storage/0462/doc_00162656 to /storage/kkm_last_doc_name [21:31:03]save OK [21:31:03]Clear old archive folders... [21:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:31:03]tlvbuf is 006F5D70 [21:31:03]SAM_PROTO_ClearQueue [21:31:03]wFMCommunicate request_size=4 [21:31:03]MH_SAM_APDU [21:31:03]CAPDU: 80 09 00 00 [21:31:03]Write to MH i2c: E2 08 00 02 2A 80 09 00 00 00 00 00 00 9E [21:31:03]Write i2c OK [21:31:03]MH_I2C_Read... [21:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:03]Read from MH i2c: E2 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 03 00 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 03 00 02 2A 00 90 00 A0 [21:31:03]RAPDU: 90 00 [21:31:03]wFMCommunicate OK [21:31:03]SAM_PROTO_ClearQueue done [21:31:03]KKMCreateOFDPacket [21:31:03]OFDProtocolAddRootSTLVToBuf [21:31:03]FM_MakeSignedData [21:31:03]FM_MakeSignedData [21:31:03]SAM_PROTO_SignData [21:31:03]wFMCommunicate request_size=4 [21:31:03]MH_SAM_APDU [21:31:03]CAPDU: 80 0D 01 02 [21:31:03]Write to MH i2c: E2 08 00 03 2A 80 0D 01 02 00 00 00 00 A6 [21:31:03]Write i2c OK [21:31:03]MH_I2C_Read... [21:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:03]Read from MH i2c: E2 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 03 00 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 03 00 03 2A 00 90 00 A1 [21:31:03]RAPDU: 90 00 [21:31:03]wFMCommunicate OK [21:31:03]wFMCommunicate request_size=255 [21:31:03]MH_SAM_APDU [21:31:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 18 F2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7B 02 00 35 04 06 00 [21:31:03]Write to MH i2c: E2 02 01 04 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 18 F2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7B 02 00 35 04 06 00 00 00 92 [21:31:03]Write i2c OK [21:31:03]MH_I2C_Read... [21:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:03]Read from MH i2c: E2 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 03 00 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 03 00 04 2A 00 90 00 A2 [21:31:03]RAPDU: 90 00 [21:31:03]wFMCommunicate OK [21:31:03]wFMCommunicate request_size=11 [21:31:03]MH_SAM_APDU [21:31:03]CAPDU: 80 0D 02 02 06 0C CF EB 36 1E 0F [21:31:03]Write to MH i2c: E2 0E 00 05 2A 80 0D 02 02 06 00 0C CF EB 36 1E 0F 00 00 DE [21:31:03]Write i2c OK [21:31:03]MH_I2C_Read... [21:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:03]Read from MH i2c: E2 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 03 00 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 03 00 05 2A 00 90 00 A3 [21:31:03]RAPDU: 90 00 [21:31:03]wFMCommunicate OK [21:31:03]wFMCommunicate request_size=4 [21:31:03]MH_SAM_APDU [21:31:03]CAPDU: 80 0D 03 02 [21:31:03]Write to MH i2c: E2 08 00 06 2A 80 0D 03 02 00 00 00 00 AB [21:31:03]Write i2c OK [21:31:03]MH_I2C_Read... [21:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:03]Read from MH i2c: E2 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 0B 00 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 0B 00 06 2A 00 B6 A7 58 D0 FC 97 47 22 90 00 2D [21:31:03]RAPDU: B6 A7 58 D0 FC 97 47 22 90 00 [21:31:03]wFMCommunicate OK [21:31:03]SAM_PROTO_SignData done [21:31:03]FM_MakeSignedData done [21:31:03]CreateOFDProtocolMessage [21:31:03]wFMCommunicate request_size=4 [21:31:03]MH_SAM_APDU [21:31:03]CAPDU: 80 11 00 00 [21:31:03]Write to MH i2c: E2 08 00 07 2A 80 11 00 00 00 00 00 00 AB [21:31:03]Write i2c OK [21:31:03]MH_I2C_Read... [21:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:03]Read from MH i2c: E2 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 17 00 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: E2 17 00 07 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 0B [21:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:31:03]wFMCommunicate OK [21:31:03]CreateOFDProtocolMessage done [21:31:03]OFDSenderStorePacket 162656 [21:31:03]StoreOFDPacket docnum=162656 [21:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 48 75 08 01 9F 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 18 F2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7B 02 00 35 04 06 00 0C CF EB 36 1E 0F B6 A7 58 D0 FC 97 47 22 [21:31:03]CheckFolder [21:31:03]dirname=/storage/ofd_packets [21:31:03]CheckFolder done [21:31:03]ProducePacketName [21:31:03]name=ofd_packets/00162656 [21:31:03]NVStorageSaveData ofd_packets/00162656 [21:31:03]File name is /storage/ofd_packets/00162656 [21:31:03]Write 302 bytes [21:31:03]NVStorageSaveData done [21:31:03]OFDSenderStorePacket done [21:31:03]KKMCreateOFDPacket done [21:31:03]NVStorageSaveData kkm_last_timestamp [21:31:03]File name is /storage/kkm_last_timestamp [21:31:03]Write 4 bytes [21:31:03]NVStorageSaveData done [21:31:03]ExternCall_PrintAddStr [21:31:03]wPrintStart [21:31:03]Write to MH i2c: 01 00 00 08 2A 32 [21:31:03]Write i2c OK [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: 01 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: 01 07 00 [21:31:03]MH_I2C_Read... [21:31:03]Read from MH i2c: 01 07 00 08 2A 00 00 00 00 00 FF 0F 47 [21:31:03]RasterBufferAndPrint [21:31:03]line Счет N : (1)1319234 [21:31:03]line ИНН: 02508201610067 [21:31:03]line Контрольно-Кассовый Чек [21:31:03]line ПРОДАЖА [21:31:03]line ТРК (МРК, ГНК) : 51 [21:31:03]line Товар: 2710194210 [21:31:03]line ДТ(л)-К-5 [21:31:03]line 20.000 * 72.60 [21:31:03]line = 1452.00 [21:31:03]line НДС 12% НСП 1% [21:31:03]line > о реализуемом товаре [21:31:03]line ИТОГО: 1452.00 [21:31:03]line НСП 1% : 12.85 [21:31:03]line НДС 12% : 154.19 [21:31:03]line Наличными: 0.00 [21:31:03]line Безнал.: 1452.00 [21:31:03]line Место: АЗС № 140 "Партнер Нефть" [21:31:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:31:03]line СНО: Общий режим [21:31:03]line Чек 324 13.07.2024 21:31 [21:31:03]line Смена: 462 ФФД: 1.0 [21:31:03]line ЗНМ: 0300000129 [21:31:03]line РНМ: 0000000000090858 [21:31:03]line Версия ККМ: 001 [21:31:03]line Платежная система: Бакай Банк [21:31:03]line ФМ: 0000000000874899 [21:31:03]line ФД: 162656 [21:31:03]line ФПД: 14087143955983 [21:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213104&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162656&fm=14087143955983&tin=02508201610067®Number=0000000000090858&sum=145200 [21:31:04]written 0, free lines is 4095 [21:31:04]OFD Sender: Processing packet 162656 [packets to send 106, broken 105] [21:31:04]ProducePacketName [21:31:04]name=ofd_packets/00162656 [21:31:04]OFD Sender: To server: pG, [21:31:04]CommunicateWithHost lk.salyk.kg:30040 [21:31:04]ConnectInit lk.salyk.kg [21:31:04]Connected sock=10 [21:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 48 75 08 01 9F 73 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 30 37 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 37 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3B 3C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 37 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 18 F2 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 60 7B 02 00 35 04 06 00 0C CF EB 36 1E 0F B6 A7 58 D0 FC 97 47 22 [21:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5E EA 47 00 99 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 34 38 39 39 10 04 04 00 60 7B 02 00 F4 03 04 00 26 9E 92 66 B6 04 01 00 00 F6 9A 5E FC B1 00 A9 68 [21:31:04]CommunicateWithHost err = 0 [21:31:04]CheckOFDResponse [21:31:04]1017 (14) - 77093643461234 [21:31:04]1041 (16) - 0000000000874899 [21:31:04]1040 (4) - 162656 [21:31:04]1012 (4) - 13.07.2024 15:32 [21:31:04]1206 (1) - 0 [21:31:04]OFD Sender: Remove packet 162656 [21:31:04]ProducePacketName [21:31:04]name=ofd_packets/00162656 [21:31:04]NVStorageDeleteData [21:31:04]Write to MH i2c: 01 00 00 32 2A 5C [21:31:04]Write i2c OK [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: 01 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: 01 07 00 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: 01 07 00 32 2A 00 00 00 00 00 E7 0C 56 [21:31:04]RasterBufferAndPrint [21:31:04]line [21:31:04]line [21:31:04]line [21:31:04]line [21:31:04]line [21:31:04]written 0, free lines is 3310 [21:31:04]MH_Cut [21:31:04]Write to MH i2c: D1 01 00 39 2A 01 35 [21:31:04]Write i2c OK [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: D1 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: D1 01 00 [21:31:04]MH_I2C_Read... [21:31:04]Read from MH i2c: D1 01 00 39 2A 00 34 [21:31:04]Write to MH i2c: 01 00 00 3A 2A 64 [21:31:04]Write i2c OK [21:31:04]MH_I2C_Read... [21:31:05]OFD Sender: No OFD packet to send [21:31:05]*** Cut start [21:31:05]*** Purtial cut [21:31:05]*** Stage 1: CUTSNS_PIN = 1 [21:31:05]Read from MH i2c: 01 [21:31:05]MH_I2C_Read... [21:31:05]*** Stop cut motor [21:31:05]*** Cut end [21:31:05]Read from MH i2c: 01 07 00 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: 01 07 00 3A 2A 00 00 00 00 00 FF 0F 79 [21:31:05]process_action close_receipt done [21:31:05]requested_data is exist [21:31:05]produce_requested_data [21:31:05]requested_item fm.sn is exist - process it [21:31:05]wFMCommunicate request_size=4 [21:31:05]MH_SAM_APDU [21:31:05]CAPDU: 80 11 00 00 [21:31:05]Write to MH i2c: E2 08 00 3B 2A 80 11 00 00 00 00 00 00 DF [21:31:05]Write i2c OK [21:31:05]MH_I2C_Read... [21:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:05]Read from MH i2c: E2 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: E2 17 00 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: E2 17 00 3B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3F [21:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:31:05]wFMCommunicate OK [21:31:05]requested_item fd.num is exist - process it [21:31:05]SAM_PROTO_GetFieldsCounters [21:31:05]wFMCommunicate request_size=4 [21:31:05]MH_SAM_APDU [21:31:05]CAPDU: 80 13 00 00 [21:31:05]Write to MH i2c: E2 08 00 3C 2A 80 13 00 00 00 00 00 00 E2 [21:31:05]Write i2c OK [21:31:05]MH_I2C_Read... [21:31:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:05]Read from MH i2c: E2 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: E2 62 00 [21:31:05]MH_I2C_Read... [21:31:05]Read from MH i2c: E2 62 00 3C 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 60 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [21:31:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 60 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:05]wFMCommunicate OK [21:31:05]SAM_PROTO_GetFieldsCounters done [21:31:05]requested_item shift.num is exist - process it [21:31:05]requested_item shift.opened is exist - process it [21:31:05]req_shift_opened [21:31:05]FM_GetShiftState [21:31:05]SAM_PROTO_GetShiftState [21:31:05]wFMCommunicate request_size=4 [21:31:05]MH_SAM_APDU [21:31:05]CAPDU: 80 13 01 00 [21:31:05]Write to MH i2c: E2 08 00 3D 2A 80 13 01 00 00 00 00 00 E4 [21:31:05]Write i2c OK [21:31:05]MH_I2C_Read... [21:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:06]Read from MH i2c: E2 [21:31:06]MH_I2C_Read... [21:31:06]Read from MH i2c: E2 0E 00 [21:31:06]MH_I2C_Read... [21:31:06]Read from MH i2c: E2 0E 00 3D 2A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DE [21:31:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:31:06]wFMCommunicate OK [21:31:06]SAM_PROTO_GetShiftState done [21:31:06]FM_GetShiftState done [21:31:06]req_shift_opened done [21:31:06]requested_item shift.open_date is exist - process it [21:31:06]req_shift_open_date [21:31:06]req_shift_open_date done [21:31:06]produce_requested_data done [21:31:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162656,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:31:06]process_action_free close_receipt [21:31:06]json_value_free [21:31:06]json_value_free done [21:31:06]process_json_proto returns [21:31:06]Send response to host [21:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162656,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:31:06]free response buf [21:31:06]execute_script done [21:31:06]execute_script returns [21:31:06]free content buf [21:31:06]Sock 9.Close socket [21:31:06]Sock 9.Thread stoped [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:37]accept exits with 7 [21:36:37]New connection [21:36:37]New thread 3067510116 created [21:36:37]Thread 3067366756 joined [21:36:37]Waiting for new connection... [21:36:37] Sock 7.Parse request [21:36:37]Sock 7.Check first char [21:36:37]Sock 7.First char is OK [21:36:37]request: POST /json_proto HTTP/1.0 [21:36:37]Method: POST [21:36:37]URL: /json_proto [21:36:37]Method is POST - this is cgi request [21:36:37]url: /json_proto [21:36:37]query_string will be loaded in cgi processing [21:36:37]execute_cgi json_proto POST (null) [21:36:37]execute_cgi path=json_proto method=POST [21:36:37]POST find Content-Length [21:36:37]Host: 172.17.39.67:8080 [21:36:37]Content-Length: 688 [21:36:37]Content-Type: application/json [21:36:37] [21:36:37]POST finish read [21:36:37]Found Content-Length = 688 [21:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:36:37]execute_script... [21:36:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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:36:37]POST & json_proto [21:36:37]process_json_proto [21:36:37]json parsed OK: [21:36:37]protocol is kg_v1.0 [21:36:37]action value=close_receipt [21:36:37]process_action close_receipt [21:36:37]cmd_close_receipt [21:36:37]MH_GetDate [21:36:37]Write to MH i2c: F0 00 00 3E 2A 57 [21:36:37]Write i2c OK [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: F0 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: F0 09 00 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: F0 09 00 3E 2A 00 67 F3 92 66 86 7C 92 66 AC [21:36:37]GetLastDocTimeStamp 1720906264 [21:36:37]current date 1720906599 [21:36:37]FM_GetShiftState [21:36:37]SAM_PROTO_GetShiftState [21:36:37]wFMCommunicate request_size=4 [21:36:37]MH_SAM_APDU [21:36:37]CAPDU: 80 13 01 00 [21:36:37]Write to MH i2c: E2 08 00 3F 2A 80 13 01 00 00 00 00 00 E6 [21:36:37]Write i2c OK [21:36:37]MH_I2C_Read... [21:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:37]Read from MH i2c: E2 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: E2 0E 00 [21:36:37]MH_I2C_Read... [21:36:37]Read from MH i2c: E2 0E 00 3F 2A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 E0 [21:36:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:36:37]wFMCommunicate OK [21:36:37]SAM_PROTO_GetShiftState done [21:36:37]FM_GetShiftState done [21:36:37]opened in 1720828979 [21:36:37]opened+sec_in_day 1720915379 [21:36:37]quantity*price = 100042 [21:36:37]sum+1 = 100044 [21:36:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 325 13.07.2024 21:36 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162657 ФПД: 170283071170835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213639&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162657&fm=170283071170835&tin=02508201610067®Number=0000000000090858&sum=100000 [21:36:38]StoreToDocumentArchive [21:36:38]shift 462 fd 162657 [21:36:38]save to /storage/0462/doc_00162657 [21:36:38]save last doc name /storage/0462/doc_00162657 to /storage/kkm_last_doc_name [21:36:38]save OK [21:36:38]Clear old archive folders... [21:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:36:38]tlvbuf is 006F57B0 [21:36:38]SAM_PROTO_ClearQueue [21:36:38]wFMCommunicate request_size=4 [21:36:38]MH_SAM_APDU [21:36:38]CAPDU: 80 09 00 00 [21:36:38]Write to MH i2c: E2 08 00 4C 2A 80 09 00 00 00 00 00 00 E8 [21:36:38]Write i2c OK [21:36:38]MH_I2C_Read... [21:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:36:38]Read from MH i2c: E2 [21:36:38]MH_I2C_Read... [21:36:38]Read from MH i2c: E2 03 00 [21:36:38]MH_I2C_Read... [21:36:38]Read from MH i2c: E2 03 00 4C 2A 00 90 00 EA [21:36:38]RAPDU: 90 00 [21:36:38]wFMCommunicate OK [21:36:38]SAM_PROTO_ClearQueue done [21:36:38]KKMCreateOFDPacket [21:36:38]OFDProtocolAddRootSTLVToBuf [21:36:38]FM_MakeSignedData [21:36:38]FM_MakeSignedData [21:36:38]SAM_PROTO_SignData [21:36:38]wFMCommunicate request_size=4 [21:36:38]MH_SAM_APDU [21:36:38]CAPDU: 80 0D 01 02 [21:36:38]Write to MH i2c: E2 08 00 4D 2A 80 0D 01 02 00 00 00 00 F0 [21:36:38]Write i2c OK [21:36:38]MH_I2C_Read... [21:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:36:38]Read from MH i2c: E2 [21:36:38]MH_I2C_Read... [21:36:38]Read from MH i2c: E2 03 00 [21:36:38]MH_I2C_Read... [21:36:38]Read from MH i2c: E2 03 00 4D 2A 00 90 00 EB [21:36:38]RAPDU: 90 00 [21:36:38]wFMCommunicate OK [21:36:38]wFMCommunicate request_size=255 [21:36:38]MH_SAM_APDU [21:36:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 45 01 00 00 F4 03 04 00 67 F3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7B 02 00 35 04 06 00 [21:36:38]Write to MH i2c: E2 02 01 4E 2A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 45 01 00 00 F4 03 04 00 67 F3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7B 02 00 35 04 06 00 00 00 CE [21:36:38]Write i2c OK [21:36:38]MH_I2C_Read... [21:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:38]Read from MH i2c: E2 [21:36:38]MH_I2C_Read... [21:36:38]Read from MH i2c: E2 03 00 [21:36:38]MH_I2C_Read... [21:36:38]Read from MH i2c: E2 03 00 4E 2A 00 90 00 EC [21:36:38]RAPDU: 90 00 [21:36:38]wFMCommunicate OK [21:36:38]wFMCommunicate request_size=11 [21:36:38]MH_SAM_APDU [21:36:38]CAPDU: 80 0D 02 02 06 9A DF 1D F7 E9 13 [21:36:38]Write to MH i2c: E2 0E 00 4F 2A 80 0D 02 02 06 00 9A DF 1D F7 E9 13 00 00 88 [21:36:38]Write i2c OK [21:36:38]MH_I2C_Read... [21:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:36:38]Read from MH i2c: E2 [21:36:38]MH_I2C_Read... [21:36:38]Read from MH i2c: E2 03 00 [21:36:38]MH_I2C_Read... [21:36:38]Read from MH i2c: E2 03 00 4F 2A 00 90 00 ED [21:36:38]RAPDU: 90 00 [21:36:38]wFMCommunicate OK [21:36:38]wFMCommunicate request_size=4 [21:36:38]MH_SAM_APDU [21:36:38]CAPDU: 80 0D 03 02 [21:36:38]Write to MH i2c: E2 08 00 50 2A 80 0D 03 02 00 00 00 00 F5 [21:36:38]Write i2c OK [21:36:38]MH_I2C_Read... [21:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:36:39]Read from MH i2c: E2 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 0B 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 0B 00 50 2A 00 7E 60 26 8D 4D 76 3B C1 90 00 46 [21:36:39]RAPDU: 7E 60 26 8D 4D 76 3B C1 90 00 [21:36:39]wFMCommunicate OK [21:36:39]SAM_PROTO_SignData done [21:36:39]FM_MakeSignedData done [21:36:39]CreateOFDProtocolMessage [21:36:39]wFMCommunicate request_size=4 [21:36:39]MH_SAM_APDU [21:36:39]CAPDU: 80 11 00 00 [21:36:39]Write to MH i2c: E2 08 00 51 2A 80 11 00 00 00 00 00 00 F5 [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:39]Read from MH i2c: E2 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 17 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: E2 17 00 51 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 55 [21:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:36:39]wFMCommunicate OK [21:36:39]CreateOFDProtocolMessage done [21:36:39]OFDSenderStorePacket 162657 [21:36:39]StoreOFDPacket docnum=162657 [21:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7D 32 08 01 7D C5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 45 01 00 00 F4 03 04 00 67 F3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7B 02 00 35 04 06 00 9A DF 1D F7 E9 13 7E 60 26 8D 4D 76 3B C1 [21:36:39]CheckFolder [21:36:39]dirname=/storage/ofd_packets [21:36:39]CheckFolder done [21:36:39]ProducePacketName [21:36:39]name=ofd_packets/00162657 [21:36:39]NVStorageSaveData ofd_packets/00162657 [21:36:39]File name is /storage/ofd_packets/00162657 [21:36:39]Write 302 bytes [21:36:39]NVStorageSaveData done [21:36:39]OFDSenderStorePacket done [21:36:39]KKMCreateOFDPacket done [21:36:39]NVStorageSaveData kkm_last_timestamp [21:36:39]File name is /storage/kkm_last_timestamp [21:36:39]Write 4 bytes [21:36:39]NVStorageSaveData done [21:36:39]ExternCall_PrintAddStr [21:36:39]wPrintStart [21:36:39]Write to MH i2c: 01 00 00 52 2A 7C [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 07 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 07 00 52 2A 00 00 00 00 00 FF 0F 91 [21:36:39]RasterBufferAndPrint [21:36:39]line Счет N : (1)1319236 [21:36:39]line ИНН: 02508201610067 [21:36:39]line Контрольно-Кассовый Чек [21:36:39]line ПРОДАЖА [21:36:39]line ТРК (МРК, ГНК) : 11 [21:36:39]line Товар: 2710194210 [21:36:39]line ДТ(л)-К-5 [21:36:39]line 13.780 * 72.60 [21:36:39]line = 1000.43 [21:36:39]line НДС 12% НСП 1% [21:36:39]line > о реализуемом товаре [21:36:39]line ОКРУГЛЕНИЕ: -0.43 [21:36:39]line ИТОГО: 1000.00 [21:36:39]line Внесено: 1000.00 [21:36:39]line СДАЧА: 0.00 [21:36:39]line НСП 1% : 8.85 [21:36:39]line НДС 12% : 106.24 [21:36:39]line Наличными: 1000.00 [21:36:39]line Безнал.: 0.00 [21:36:39]line Место: АЗС № 140 "Партнер Нефть" [21:36:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:36:39]line СНО: Общий режим [21:36:39]line Чек 325 13.07.2024 21:36 [21:36:39]line Смена: 462 ФФД: 1.0 [21:36:39]line ЗНМ: 0300000129 [21:36:39]line РНМ: 0000000000090858 [21:36:39]line Версия ККМ: 001 [21:36:39]line ФМ: 0000000000874899 [21:36:39]line ФД: 162657 [21:36:39]line ФПД: 170283071170835 [21:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T213639&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162657&fm=170283071170835&tin=02508201610067®Number=0000000000090858&sum=100000 [21:36:39]OFD Sender: Processing packet 162657 [packets to send 106, broken 105] [21:36:39]ProducePacketName [21:36:39]name=ofd_packets/00162657 [21:36:39]OFD Sender: To server: pG, [21:36:39]CommunicateWithHost lk.salyk.kg:30040 [21:36:39]ConnectInit lk.salyk.kg [21:36:39]written 0, free lines is 4095 [21:36:39]Connected sock=10 [21:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 7D 32 08 01 7D C5 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 45 01 00 00 F4 03 04 00 67 F3 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7B 02 00 35 04 06 00 9A DF 1D F7 E9 13 7E 60 26 8D 4D 76 3B C1 [21:36:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 10 61 47 00 3E D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 61 7B 02 00 F4 03 04 00 75 9F 92 66 B6 04 01 00 00 3F AF 50 E8 3E 07 F7 EF [21:36:39]CommunicateWithHost err = 0 [21:36:39]CheckOFDResponse [21:36:39]1017 (14) - 77093643461234 [21:36:39]1041 (16) - 0000000000874899 [21:36:39]1040 (4) - 162657 [21:36:39]1012 (4) - 13.07.2024 15:38 [21:36:39]1206 (1) - 0 [21:36:39]OFD Sender: Remove packet 162657 [21:36:39]ProducePacketName [21:36:39]name=ofd_packets/00162657 [21:36:39]NVStorageDeleteData [21:36:39]Write to MH i2c: 01 00 00 7D 2A A7 [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 07 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: 01 07 00 7D 2A 00 00 00 00 00 D3 0C 8D [21:36:39]RasterBufferAndPrint [21:36:39]line [21:36:39]line [21:36:39]line [21:36:39]line [21:36:39]line [21:36:39]written 0, free lines is 3289 [21:36:39]MH_Cut [21:36:39]Write to MH i2c: D1 01 00 84 2A 01 80 [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: D1 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: D1 01 00 [21:36:39]MH_I2C_Read... [21:36:39]Read from MH i2c: D1 01 00 84 2A 00 7F [21:36:39]Write to MH i2c: 01 00 00 85 2A AF [21:36:39]Write i2c OK [21:36:39]MH_I2C_Read... [21:36:40]OFD Sender: No OFD packet to send [21:36:40]*** Cut start [21:36:40]*** Purtial cut [21:36:40]*** CUTSNS_PIN = 0 [21:36:40]*** Stage 1: CUTSNS_PIN = 1 [21:36:42]Read from MH i2c: 01 [21:36:42]MH_I2C_Read... [21:36:42]*** Stop cut motor [21:36:42]*** Cut end [21:36:42]Read from MH i2c: 01 07 00 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: 01 07 00 85 2A 00 00 00 00 00 FF 0F C4 [21:36:42]process_action close_receipt done [21:36:42]requested_data is exist [21:36:42]produce_requested_data [21:36:42]requested_item fm.sn is exist - process it [21:36:42]wFMCommunicate request_size=4 [21:36:42]MH_SAM_APDU [21:36:42]CAPDU: 80 11 00 00 [21:36:42]Write to MH i2c: E2 08 00 86 2A 80 11 00 00 00 00 00 00 2A [21:36:42]Write i2c OK [21:36:42]MH_I2C_Read... [21:36:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:36:42]Read from MH i2c: E2 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: E2 17 00 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: E2 17 00 86 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8A [21:36:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:36:42]wFMCommunicate OK [21:36:42]requested_item fd.num is exist - process it [21:36:42]SAM_PROTO_GetFieldsCounters [21:36:42]wFMCommunicate request_size=4 [21:36:42]MH_SAM_APDU [21:36:42]CAPDU: 80 13 00 00 [21:36:42]Write to MH i2c: E2 08 00 87 2A 80 13 00 00 00 00 00 00 2D [21:36:42]Write i2c OK [21:36:42]MH_I2C_Read... [21:36:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:36:42]Read from MH i2c: E2 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: E2 62 00 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: E2 62 00 87 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 61 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 DF [21:36:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 61 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:36:42]wFMCommunicate OK [21:36:42]SAM_PROTO_GetFieldsCounters done [21:36:42]requested_item shift.num is exist - process it [21:36:42]requested_item shift.opened is exist - process it [21:36:42]req_shift_opened [21:36:42]FM_GetShiftState [21:36:42]SAM_PROTO_GetShiftState [21:36:42]wFMCommunicate request_size=4 [21:36:42]MH_SAM_APDU [21:36:42]CAPDU: 80 13 01 00 [21:36:42]Write to MH i2c: E2 08 00 88 2A 80 13 01 00 00 00 00 00 2F [21:36:42]Write i2c OK [21:36:42]MH_I2C_Read... [21:36:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:36:42]Read from MH i2c: E2 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: E2 0E 00 [21:36:42]MH_I2C_Read... [21:36:42]Read from MH i2c: E2 0E 00 88 2A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 29 [21:36:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:36:42]wFMCommunicate OK [21:36:42]SAM_PROTO_GetShiftState done [21:36:42]FM_GetShiftState done [21:36:42]req_shift_opened done [21:36:42]requested_item shift.open_date is exist - process it [21:36:42]req_shift_open_date [21:36:42]req_shift_open_date done [21:36:42]produce_requested_data done [21:36:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162657,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:36:42]process_action_free close_receipt [21:36:42]json_value_free [21:36:42]json_value_free done [21:36:42]process_json_proto returns [21:36:42]Send response to host [21:36:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162657,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:36:42]free response buf [21:36:42]execute_script done [21:36:42]execute_script returns [21:36:42]free content buf [21:36:42]Sock 7.Close socket [21:36:42]Sock 7.Thread stoped [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38: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:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:11]accept exits with 9 [21:43:11]New connection [21:43:11]New thread 3067366756 created [21:43:11]Thread 3067510116 joined [21:43:11]Waiting for new connection... [21:43:11] Sock 9.Parse request [21:43:11]Sock 9.Check first char [21:43:11]Sock 9.First char is OK [21:43:11]request: POST /json_proto HTTP/1.0 [21:43:11]Method: POST [21:43:11]URL: /json_proto [21:43:11]Method is POST - this is cgi request [21:43:11]url: /json_proto [21:43:11]query_string will be loaded in cgi processing [21:43:11]execute_cgi json_proto POST (null) [21:43:11]execute_cgi path=json_proto method=POST [21:43:11]POST find Content-Length [21:43:11]Host: 172.17.39.67:8080 [21:43:11]Content-Length: 679 [21:43:11]Content-Type: application/json [21:43:11] [21:43:11]POST finish read [21:43:11]Found Content-Length = 679 [21:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.410, "sum" : 690.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:11]execute_script... [21:43: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)1319237", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.410, "sum" : 690.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 690.00, "total" : 690.00, "payments": [ { "type": 0, "sum" : 690.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:43:11]POST & json_proto [21:43:11]process_json_proto [21:43:11]json parsed OK: [21:43:11]protocol is kg_v1.0 [21:43:11]action value=close_receipt [21:43:11]process_action close_receipt [21:43:11]cmd_close_receipt [21:43:11]MH_GetDate [21:43:11]Write to MH i2c: F0 00 00 89 2A A2 [21:43:11]Write i2c OK [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: F0 [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: F0 09 00 [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: F0 09 00 89 2A 00 F0 F4 92 66 86 7C 92 66 81 [21:43:11]GetLastDocTimeStamp 1720906599 [21:43:11]current date 1720906992 [21:43:11]FM_GetShiftState [21:43:11]SAM_PROTO_GetShiftState [21:43:11]wFMCommunicate request_size=4 [21:43:11]MH_SAM_APDU [21:43:11]CAPDU: 80 13 01 00 [21:43:11]Write to MH i2c: E2 08 00 8A 2A 80 13 01 00 00 00 00 00 31 [21:43:11]Write i2c OK [21:43:11]MH_I2C_Read... [21:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:11]Read from MH i2c: E2 [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: E2 0E 00 [21:43:11]MH_I2C_Read... [21:43:11]Read from MH i2c: E2 0E 00 8A 2A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2B [21:43:11]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:43:11]wFMCommunicate OK [21:43:11]SAM_PROTO_GetShiftState done [21:43:11]FM_GetShiftState done [21:43:11]opened in 1720828979 [21:43:11]opened+sec_in_day 1720915379 [21:43:11]quantity*price = 69018 [21:43:11]sum+1 = 69019 [21:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 690.00 Внесено: 690.00 СДАЧА: 0.00 НСП 1% : 6.11 НДС 12% : 73.29 Наличными: 690.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 326 13.07.2024 21:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162658 ФПД: 66071422340619 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214313&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162658&fm=66071422340619&tin=02508201610067®Number=0000000000090858&sum=69000 [21:43:12]StoreToDocumentArchive [21:43:12]shift 462 fd 162658 [21:43:12]save to /storage/0462/doc_00162658 [21:43:12]save last doc name /storage/0462/doc_00162658 to /storage/kkm_last_doc_name [21:43:12]save OK [21:43:12]Clear old archive folders... [21:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:43:12]tlvbuf is 006F58A0 [21:43:12]SAM_PROTO_ClearQueue [21:43:12]wFMCommunicate request_size=4 [21:43:12]MH_SAM_APDU [21:43:12]CAPDU: 80 09 00 00 [21:43:12]Write to MH i2c: E2 08 00 97 2A 80 09 00 00 00 00 00 00 33 [21:43:12]Write i2c OK [21:43:12]MH_I2C_Read... [21:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:43:12]Read from MH i2c: E2 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 03 00 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 03 00 97 2A 00 90 00 35 [21:43:12]RAPDU: 90 00 [21:43:12]wFMCommunicate OK [21:43:12]SAM_PROTO_ClearQueue done [21:43:12]KKMCreateOFDPacket [21:43:12]OFDProtocolAddRootSTLVToBuf [21:43:12]FM_MakeSignedData [21:43:12]FM_MakeSignedData [21:43:12]SAM_PROTO_SignData [21:43:12]wFMCommunicate request_size=4 [21:43:12]MH_SAM_APDU [21:43:12]CAPDU: 80 0D 01 02 [21:43:12]Write to MH i2c: E2 08 00 98 2A 80 0D 01 02 00 00 00 00 3B [21:43:12]Write i2c OK [21:43:12]MH_I2C_Read... [21:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:43:12]Read from MH i2c: E2 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 03 00 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 03 00 98 2A 00 90 00 36 [21:43:12]RAPDU: 90 00 [21:43:12]wFMCommunicate OK [21:43:12]wFMCommunicate request_size=255 [21:43:12]MH_SAM_APDU [21:43:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9A 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 F1 F4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7B 02 00 35 04 06 00 3C [21:43:12]Write to MH i2c: E2 02 01 99 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9A 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 F1 F4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7B 02 00 35 04 06 00 3C 00 00 2C [21:43:12]Write i2c OK [21:43:12]MH_I2C_Read... [21:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:12]Read from MH i2c: E2 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 03 00 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 03 00 99 2A 00 90 00 37 [21:43:12]RAPDU: 90 00 [21:43:12]wFMCommunicate OK [21:43:12]wFMCommunicate request_size=10 [21:43:12]MH_SAM_APDU [21:43:12]CAPDU: 80 0D 02 02 05 17 73 A8 8E 0B [21:43:12]Write to MH i2c: E2 0D 00 9A 2A 80 0D 02 02 05 00 17 73 A8 8E 0B 00 00 13 [21:43:12]Write i2c OK [21:43:12]MH_I2C_Read... [21:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:43:12]Read from MH i2c: E2 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 03 00 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 03 00 9A 2A 00 90 00 38 [21:43:12]RAPDU: 90 00 [21:43:12]wFMCommunicate OK [21:43:12]wFMCommunicate request_size=4 [21:43:12]MH_SAM_APDU [21:43:12]CAPDU: 80 0D 03 02 [21:43:12]Write to MH i2c: E2 08 00 9B 2A 80 0D 03 02 00 00 00 00 40 [21:43:12]Write i2c OK [21:43:12]MH_I2C_Read... [21:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:43:12]Read from MH i2c: E2 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 0B 00 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 0B 00 9B 2A 00 65 0E 3A ED 57 EC 77 80 90 00 15 [21:43:12]RAPDU: 65 0E 3A ED 57 EC 77 80 90 00 [21:43:12]wFMCommunicate OK [21:43:12]SAM_PROTO_SignData done [21:43:12]FM_MakeSignedData done [21:43:12]CreateOFDProtocolMessage [21:43:12]wFMCommunicate request_size=4 [21:43:12]MH_SAM_APDU [21:43:12]CAPDU: 80 11 00 00 [21:43:12]Write to MH i2c: E2 08 00 9C 2A 80 11 00 00 00 00 00 00 40 [21:43:12]Write i2c OK [21:43:12]MH_I2C_Read... [21:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:12]Read from MH i2c: E2 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 17 00 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: E2 17 00 9C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A0 [21:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:43:12]wFMCommunicate OK [21:43:12]CreateOFDProtocolMessage done [21:43:12]OFDSenderStorePacket 162658 [21:43:12]StoreOFDPacket docnum=162658 [21:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6C E8 07 01 9C 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 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9A 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 F1 F4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7B 02 00 35 04 06 00 3C 17 73 A8 8E 0B 65 0E 3A ED 57 EC 77 80 [21:43:12]CheckFolder [21:43:12]dirname=/storage/ofd_packets [21:43:12]CheckFolder done [21:43:12]ProducePacketName [21:43:12]name=ofd_packets/00162658 [21:43:12]NVStorageSaveData ofd_packets/00162658 [21:43:12]File name is /storage/ofd_packets/00162658 [21:43:12]Write 301 bytes [21:43:12]NVStorageSaveData done [21:43:12]OFDSenderStorePacket done [21:43:12]KKMCreateOFDPacket done [21:43:12]NVStorageSaveData kkm_last_timestamp [21:43:12]File name is /storage/kkm_last_timestamp [21:43:12]Write 4 bytes [21:43:12]NVStorageSaveData done [21:43:12]ExternCall_PrintAddStr [21:43:12]wPrintStart [21:43:12]Write to MH i2c: 01 00 00 9D 2A C7 [21:43:12]Write i2c OK [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: 01 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: 01 07 00 [21:43:12]MH_I2C_Read... [21:43:12]Read from MH i2c: 01 07 00 9D 2A 00 00 00 00 00 FF 0F DC [21:43:12]RasterBufferAndPrint [21:43:12]line Счет N : (1)1319237 [21:43:12]line ИНН: 02508201610067 [21:43:12]line Контрольно-Кассовый Чек [21:43:12]line ПРОДАЖА [21:43:12]line ТРК (МРК, ГНК) : 53 [21:43:12]line Товар: 2710124130 [21:43:12]line Аи-92-К-5 [21:43:12]line 10.410 * 66.30 [21:43:12]line = 690.18 [21:43:12]line НДС 12% НСП 1% [21:43:12]line > о реализуемом товаре [21:43:12]line ОКРУГЛЕНИЕ: -0.18 [21:43:12]line ИТОГО: 690.00 [21:43:12]line Внесено: 690.00 [21:43:12]line СДАЧА: 0.00 [21:43:12]line НСП 1% : 6.11 [21:43:12]line НДС 12% : 73.29 [21:43:12]line Наличными: 690.00 [21:43:12]line Безнал.: 0.00 [21:43:12]line Место: АЗС № 140 "Партнер Нефть" [21:43:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:43:12]line СНО: Общий режим [21:43:12]line Чек 326 13.07.2024 21:43 [21:43:12]line Смена: 462 ФФД: 1.0 [21:43:12]line ЗНМ: 0300000129 [21:43:12]line РНМ: 0000000000090858 [21:43:12]line Версия ККМ: 001 [21:43:12]line ФМ: 0000000000874899 [21:43:12]line ФД: 162658 [21:43:12]line ФПД: 66071422340619 [21:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214313&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162658&fm=66071422340619&tin=02508201610067®Number=0000000000090858&sum=69000 [21:43:13]OFD Sender: Processing packet 162658 [packets to send 106, broken 105] [21:43:13]ProducePacketName [21:43:13]name=ofd_packets/00162658 [21:43:13]OFD Sender: To server: pG, [21:43:13]CommunicateWithHost lk.salyk.kg:30040 [21:43:13]ConnectInit lk.salyk.kg [21:43:13]written 0, free lines is 4095 [21:43:13]Connected sock=10 [21:43:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6C E8 07 01 9C 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 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 9A 0D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 0D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 1C 00 00 00 00 07 04 06 00 88 0D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 F1 F4 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 62 7B 02 00 35 04 06 00 3C 17 73 A8 8E 0B 65 0E 3A ED 57 EC 77 80 [21:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 00 F5 47 00 C4 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 34 38 39 39 10 04 04 00 62 7B 02 00 F4 03 04 00 FF A0 92 66 B6 04 01 00 00 2B 99 08 EB 8F 9B F6 8E [21:43:13]CommunicateWithHost err = 0 [21:43:13]CheckOFDResponse [21:43:13]1017 (14) - 77093643461234 [21:43:13]1041 (16) - 0000000000874899 [21:43:13]1040 (4) - 162658 [21:43:13]1012 (4) - 13.07.2024 15:45 [21:43:13]1206 (1) - 0 [21:43:13]OFD Sender: Remove packet 162658 [21:43:13]ProducePacketName [21:43:13]name=ofd_packets/00162658 [21:43:13]NVStorageDeleteData [21:43:13]Write to MH i2c: 01 00 00 C8 2A F2 [21:43:13]Write i2c OK [21:43:13]MH_I2C_Read... [21:43:13]Read from MH i2c: 01 [21:43:13]MH_I2C_Read... [21:43:13]Read from MH i2c: 01 07 00 [21:43:13]MH_I2C_Read... [21:43:13]Read from MH i2c: 01 07 00 C8 2A 00 00 00 00 00 D3 0C D8 [21:43:13]RasterBufferAndPrint [21:43:13]line [21:43:13]line [21:43:13]line [21:43:13]line [21:43:13]line [21:43:13]written 0, free lines is 3289 [21:43:13]MH_Cut [21:43:13]Write to MH i2c: D1 01 00 CF 2A 01 CB [21:43:13]Write i2c OK [21:43:13]MH_I2C_Read... [21:43:13]Read from MH i2c: D1 [21:43:13]MH_I2C_Read... [21:43:13]Read from MH i2c: D1 01 00 [21:43:13]MH_I2C_Read... [21:43:13]Read from MH i2c: D1 01 00 CF 2A 00 CA [21:43:13]Write to MH i2c: 01 00 00 D0 2A FA [21:43:13]Write i2c OK [21:43:13]MH_I2C_Read... [21:43:13]OFD Sender: No OFD packet to send [21:43:14]*** Cut start [21:43:14]*** Purtial cut [21:43:14]*** Stage 1: CUTSNS_PIN = 1 [21:43:14]Read from MH i2c: 01 [21:43:14]MH_I2C_Read... [21:43:14]*** Stop cut motor [21:43:14]*** Cut end [21:43:14]Read from MH i2c: 01 07 00 [21:43:14]MH_I2C_Read... [21:43:14]Read from MH i2c: 01 07 00 D0 2A 00 00 00 00 00 FF 0F 0F [21:43:14]process_action close_receipt done [21:43:14]requested_data is exist [21:43:14]produce_requested_data [21:43:14]requested_item fm.sn is exist - process it [21:43:14]wFMCommunicate request_size=4 [21:43:14]MH_SAM_APDU [21:43:14]CAPDU: 80 11 00 00 [21:43:14]Write to MH i2c: E2 08 00 D1 2A 80 11 00 00 00 00 00 00 75 [21:43:14]Write i2c OK [21:43:14]MH_I2C_Read... [21:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:43:14]Read from MH i2c: E2 [21:43:14]MH_I2C_Read... [21:43:14]Read from MH i2c: E2 17 00 [21:43:14]MH_I2C_Read... [21:43:14]Read from MH i2c: E2 17 00 D1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D5 [21:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:43:14]wFMCommunicate OK [21:43:14]requested_item fd.num is exist - process it [21:43:14]SAM_PROTO_GetFieldsCounters [21:43:14]wFMCommunicate request_size=4 [21:43:14]MH_SAM_APDU [21:43:14]CAPDU: 80 13 00 00 [21:43:14]Write to MH i2c: E2 08 00 D2 2A 80 13 00 00 00 00 00 00 78 [21:43:14]Write i2c OK [21:43:14]MH_I2C_Read... [21:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:43:14]Read from MH i2c: E2 [21:43:14]MH_I2C_Read... [21:43:14]Read from MH i2c: E2 62 00 [21:43:14]MH_I2C_Read... [21:43:14]Read from MH i2c: E2 62 00 D2 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 62 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 2E [21:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 62 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:43:14]wFMCommunicate OK [21:43:14]SAM_PROTO_GetFieldsCounters done [21:43:14]requested_item shift.num is exist - process it [21:43:14]requested_item shift.opened is exist - process it [21:43:14]req_shift_opened [21:43:14]FM_GetShiftState [21:43:14]SAM_PROTO_GetShiftState [21:43:14]wFMCommunicate request_size=4 [21:43:14]MH_SAM_APDU [21:43:14]CAPDU: 80 13 01 00 [21:43:14]Write to MH i2c: E2 08 00 D3 2A 80 13 01 00 00 00 00 00 7A [21:43:14]Write i2c OK [21:43:14]MH_I2C_Read... [21:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:43:14]Read from MH i2c: E2 [21:43:14]MH_I2C_Read... [21:43:14]Read from MH i2c: E2 0E 00 [21:43:14]MH_I2C_Read... [21:43:14]Read from MH i2c: E2 0E 00 D3 2A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 74 [21:43:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:43:14]wFMCommunicate OK [21:43:14]SAM_PROTO_GetShiftState done [21:43:14]FM_GetShiftState done [21:43:14]req_shift_opened done [21:43:14]requested_item shift.open_date is exist - process it [21:43:14]req_shift_open_date [21:43:14]req_shift_open_date done [21:43:14]produce_requested_data done [21:43:14]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162658,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:43:14]process_action_free close_receipt [21:43:14]json_value_free [21:43:14]json_value_free done [21:43:14]process_json_proto returns [21:43:14]Send response to host [21:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162658,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:43:14]free response buf [21:43:14]execute_script done [21:43:14]execute_script returns [21:43:14]free content buf [21:43:14]Sock 9.Close socket [21:43:14]Sock 9.Thread stoped [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43: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:30]accept exits with 7 [21:49:30]New connection [21:49:30]New thread 3067510116 created [21:49:30]Thread 3067366756 joined [21:49:30]Waiting for new connection... [21:49:30] Sock 7.Parse request [21:49:30]Sock 7.Check first char [21:49:30]Sock 7.First char is OK [21:49:30]request: POST /json_proto HTTP/1.0 [21:49:30]Method: POST [21:49:30]URL: /json_proto [21:49:30]Method is POST - this is cgi request [21:49:30]url: /json_proto [21:49:30]query_string will be loaded in cgi processing [21:49:30]execute_cgi json_proto POST (null) [21:49:30]execute_cgi path=json_proto method=POST [21:49:30]POST find Content-Length [21:49:30]Host: 172.17.39.67:8080 [21:49:30]Content-Length: 678 [21:49:30]Content-Type: application/json [21:49:30] [21:49:30]POST finish read [21:49:30]Found Content-Length = 678 [21:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:30]execute_script... [21:49: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)1319238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:30]POST & json_proto [21:49:30]process_json_proto [21:49:30]json parsed OK: [21:49:30]protocol is kg_v1.0 [21:49:30]action value=close_receipt [21:49:30]process_action close_receipt [21:49:30]cmd_close_receipt [21:49:30]MH_GetDate [21:49:30]Write to MH i2c: F0 00 00 D4 2A ED [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: F0 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: F0 09 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: F0 09 00 D4 2A 00 6C F6 92 66 86 7C 92 66 4A [21:49:30]GetLastDocTimeStamp 1720906993 [21:49:30]current date 1720907372 [21:49:30]FM_GetShiftState [21:49:30]SAM_PROTO_GetShiftState [21:49:30]wFMCommunicate request_size=4 [21:49:30]MH_SAM_APDU [21:49:30]CAPDU: 80 13 01 00 [21:49:30]Write to MH i2c: E2 08 00 D5 2A 80 13 01 00 00 00 00 00 7C [21:49:30]Write i2c OK [21:49:30]MH_I2C_Read... [21:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:30]Read from MH i2c: E2 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 0E 00 [21:49:30]MH_I2C_Read... [21:49:30]Read from MH i2c: E2 0E 00 D5 2A 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 76 [21:49:30]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:49:30]wFMCommunicate OK [21:49:30]SAM_PROTO_GetShiftState done [21:49:30]FM_GetShiftState done [21:49:30]opened in 1720828979 [21:49:30]opened+sec_in_day 1720915379 [21:49:30]quantity*price = 60001 [21:49:30]sum+1 = 60003 [21:49:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 327 13.07.2024 21:49 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162659 ФПД: 145183114777678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214932&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162659&fm=145183114777678&tin=02508201610067®Number=0000000000090858&sum=60000 [21:49:31]StoreToDocumentArchive [21:49:31]shift 462 fd 162659 [21:49:31]save to /storage/0462/doc_00162659 [21:49:31]save last doc name /storage/0462/doc_00162659 to /storage/kkm_last_doc_name [21:49:31]save OK [21:49:31]Clear old archive folders... [21:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:49:31]tlvbuf is 0060C150 [21:49:31]SAM_PROTO_ClearQueue [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 09 00 00 [21:49:31]Write to MH i2c: E2 08 00 E2 2A 80 09 00 00 00 00 00 00 7E [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 03 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 03 00 E2 2A 00 90 00 80 [21:49:31]RAPDU: 90 00 [21:49:31]wFMCommunicate OK [21:49:31]SAM_PROTO_ClearQueue done [21:49:31]KKMCreateOFDPacket [21:49:31]OFDProtocolAddRootSTLVToBuf [21:49:31]FM_MakeSignedData [21:49:31]FM_MakeSignedData [21:49:31]SAM_PROTO_SignData [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 0D 01 02 [21:49:31]Write to MH i2c: E2 08 00 E3 2A 80 0D 01 02 00 00 00 00 86 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 03 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 03 00 E3 2A 00 90 00 81 [21:49:31]RAPDU: 90 00 [21:49:31]wFMCommunicate OK [21:49:31]wFMCommunicate request_size=255 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 47 01 00 00 F4 03 04 00 6C F6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7B 02 00 35 04 06 00 84 [21:49:31]Write to MH i2c: E2 02 01 E4 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 47 01 00 00 F4 03 04 00 6C F6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7B 02 00 35 04 06 00 84 00 00 E4 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 03 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 03 00 E4 2A 00 90 00 82 [21:49:31]RAPDU: 90 00 [21:49:31]wFMCommunicate OK [21:49:31]wFMCommunicate request_size=10 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 0D 02 02 05 0B 13 FB D4 4E [21:49:31]Write to MH i2c: E2 0D 00 E5 2A 80 0D 02 02 05 00 0B 13 FB D4 4E 00 00 CE [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 03 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 03 00 E5 2A 00 90 00 83 [21:49:31]RAPDU: 90 00 [21:49:31]wFMCommunicate OK [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 0D 03 02 [21:49:31]Write to MH i2c: E2 08 00 E6 2A 80 0D 03 02 00 00 00 00 8B [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 0B 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 0B 00 E6 2A 00 A1 C2 16 FF 65 A3 9C 65 90 00 0D [21:49:31]RAPDU: A1 C2 16 FF 65 A3 9C 65 90 00 [21:49:31]wFMCommunicate OK [21:49:31]SAM_PROTO_SignData done [21:49:31]FM_MakeSignedData done [21:49:31]CreateOFDProtocolMessage [21:49:31]wFMCommunicate request_size=4 [21:49:31]MH_SAM_APDU [21:49:31]CAPDU: 80 11 00 00 [21:49:31]Write to MH i2c: E2 08 00 E7 2A 80 11 00 00 00 00 00 00 8B [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:31]Read from MH i2c: E2 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 17 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: E2 17 00 E7 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EB [21:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:49:31]wFMCommunicate OK [21:49:31]CreateOFDProtocolMessage done [21:49:31]OFDSenderStorePacket 162659 [21:49:31]StoreOFDPacket docnum=162659 [21:49:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 97 31 07 01 2E 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 47 01 00 00 F4 03 04 00 6C F6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7B 02 00 35 04 06 00 84 0B 13 FB D4 4E A1 C2 16 FF 65 A3 9C 65 [21:49:31]CheckFolder [21:49:31]dirname=/storage/ofd_packets [21:49:31]CheckFolder done [21:49:31]ProducePacketName [21:49:31]name=ofd_packets/00162659 [21:49:31]NVStorageSaveData ofd_packets/00162659 [21:49:31]File name is /storage/ofd_packets/00162659 [21:49:31]Write 301 bytes [21:49:31]NVStorageSaveData done [21:49:31]OFDSenderStorePacket done [21:49:31]KKMCreateOFDPacket done [21:49:31]NVStorageSaveData kkm_last_timestamp [21:49:31]File name is /storage/kkm_last_timestamp [21:49:31]Write 4 bytes [21:49:31]NVStorageSaveData done [21:49:31]ExternCall_PrintAddStr [21:49:31]wPrintStart [21:49:31]Write to MH i2c: 01 00 00 E8 2A 12 [21:49:31]Write i2c OK [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 07 00 [21:49:31]MH_I2C_Read... [21:49:31]Read from MH i2c: 01 07 00 E8 2A 00 00 00 00 00 FF 0F 27 [21:49:31]RasterBufferAndPrint [21:49:31]line Счет N : (1)1319238 [21:49:31]line ИНН: 02508201610067 [21:49:31]line Контрольно-Кассовый Чек [21:49:31]line ПРОДАЖА [21:49:31]line ТРК (МРК, ГНК) : 43 [21:49:31]line Товар: 2710124130 [21:49:31]line Аи-92-К-5 [21:49:31]line 9.050 * 66.30 [21:49:31]line = 600.02 [21:49:31]line НДС 12% НСП 1% [21:49:31]line > о реализуемом товаре [21:49:31]line ОКРУГЛЕНИЕ: -0.02 [21:49:31]line ИТОГО: 600.00 [21:49:31]line Внесено: 600.00 [21:49:31]line СДАЧА: 0.00 [21:49:31]line НСП 1% : 5.31 [21:49:31]line НДС 12% : 63.72 [21:49:31]line Наличными: 600.00 [21:49:31]line Безнал.: 0.00 [21:49:31]line Место: АЗС № 140 "Партнер Нефть" [21:49:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:49:31]line СНО: Общий режим [21:49:31]line Чек 327 13.07.2024 21:49 [21:49:31]line Смена: 462 ФФД: 1.0 [21:49:31]line ЗНМ: 0300000129 [21:49:31]line РНМ: 0000000000090858 [21:49:31]line Версия ККМ: 001 [21:49:31]line ФМ: 0000000000874899 [21:49:31]line ФД: 162659 [21:49:31]line ФПД: 145183114777678 [21:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T214932&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162659&fm=145183114777678&tin=02508201610067®Number=0000000000090858&sum=60000 [21:49:32]OFD Sender: Processing packet 162659 [packets to send 106, broken 105] [21:49:32]ProducePacketName [21:49:32]name=ofd_packets/00162659 [21:49:32]OFD Sender: To server: pG, [21:49:32]CommunicateWithHost lk.salyk.kg:30040 [21:49:32]ConnectInit lk.salyk.kg [21:49:32]written 0, free lines is 4095 [21:49:32]Connected sock=10 [21:49:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 97 31 07 01 2E 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 47 01 00 00 F4 03 04 00 6C F6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7B 02 00 35 04 06 00 84 0B 13 FB D4 4E A1 C2 16 FF 65 A3 9C 65 [21:49:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B2 FF 47 00 E2 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 63 7B 02 00 F4 03 04 00 7A A2 92 66 B6 04 01 00 00 78 D8 39 32 30 BF 30 7D [21:49:32]CommunicateWithHost err = 0 [21:49:32]CheckOFDResponse [21:49:32]1017 (14) - 77093643461234 [21:49:32]1041 (16) - 0000000000874899 [21:49:32]1040 (4) - 162659 [21:49:32]1012 (4) - 13.07.2024 15:51 [21:49:32]1206 (1) - 0 [21:49:32]OFD Sender: Remove packet 162659 [21:49:32]ProducePacketName [21:49:32]name=ofd_packets/00162659 [21:49:32]NVStorageDeleteData [21:49:32]Write to MH i2c: 01 00 00 13 2B 3E [21:49:32]Write i2c OK [21:49:32]MH_I2C_Read... [21:49:32]Read from MH i2c: 01 [21:49:32]MH_I2C_Read... [21:49:32]Read from MH i2c: 01 07 00 [21:49:32]MH_I2C_Read... [21:49:32]Read from MH i2c: 01 07 00 13 2B 00 00 00 00 00 D1 0C 22 [21:49:32]RasterBufferAndPrint [21:49:32]line [21:49:32]line [21:49:32]line [21:49:32]line [21:49:32]line [21:49:32]written 0, free lines is 3287 [21:49:32]MH_Cut [21:49:32]Write to MH i2c: D1 01 00 1A 2B 01 17 [21:49:32]Write i2c OK [21:49:32]MH_I2C_Read... [21:49:32]Read from MH i2c: D1 [21:49:32]MH_I2C_Read... [21:49:32]Read from MH i2c: D1 01 00 [21:49:32]MH_I2C_Read... [21:49:32]Read from MH i2c: D1 01 00 1A 2B 00 16 [21:49:32]Write to MH i2c: 01 00 00 1B 2B 46 [21:49:32]Write i2c OK [21:49:32]MH_I2C_Read... [21:49:32]OFD Sender: No OFD packet to send [21:49:33]*** Cut start [21:49:33]*** Purtial cut [21:49:33]*** CUTSNS_PIN = 0 [21:49:33]*** Stage 1: CUTSNS_PIN = 1 [21:49:35]Read from MH i2c: 01 [21:49:35]MH_I2C_Read... [21:49:35]*** Stop cut motor [21:49:35]*** Cut end [21:49:35]Read from MH i2c: 01 07 00 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: 01 07 00 1B 2B 00 00 00 00 00 FF 0F 5B [21:49:35]process_action close_receipt done [21:49:35]requested_data is exist [21:49:35]produce_requested_data [21:49:35]requested_item fm.sn is exist - process it [21:49:35]wFMCommunicate request_size=4 [21:49:35]MH_SAM_APDU [21:49:35]CAPDU: 80 11 00 00 [21:49:35]Write to MH i2c: E2 08 00 1C 2B 80 11 00 00 00 00 00 00 C1 [21:49:35]Write i2c OK [21:49:35]MH_I2C_Read... [21:49:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:35]Read from MH i2c: E2 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: E2 17 00 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: E2 17 00 1C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [21:49:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:49:35]wFMCommunicate OK [21:49:35]requested_item fd.num is exist - process it [21:49:35]SAM_PROTO_GetFieldsCounters [21:49:35]wFMCommunicate request_size=4 [21:49:35]MH_SAM_APDU [21:49:35]CAPDU: 80 13 00 00 [21:49:35]Write to MH i2c: E2 08 00 1D 2B 80 13 00 00 00 00 00 00 C4 [21:49:35]Write i2c OK [21:49:35]MH_I2C_Read... [21:49:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:35]Read from MH i2c: E2 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: E2 62 00 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: E2 62 00 1D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 63 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 7E [21:49:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 63 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:35]wFMCommunicate OK [21:49:35]SAM_PROTO_GetFieldsCounters done [21:49:35]requested_item shift.num is exist - process it [21:49:35]requested_item shift.opened is exist - process it [21:49:35]req_shift_opened [21:49:35]FM_GetShiftState [21:49:35]SAM_PROTO_GetShiftState [21:49:35]wFMCommunicate request_size=4 [21:49:35]MH_SAM_APDU [21:49:35]CAPDU: 80 13 01 00 [21:49:35]Write to MH i2c: E2 08 00 1E 2B 80 13 01 00 00 00 00 00 C6 [21:49:35]Write i2c OK [21:49:35]MH_I2C_Read... [21:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:35]Read from MH i2c: E2 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: E2 0E 00 [21:49:35]MH_I2C_Read... [21:49:35]Read from MH i2c: E2 0E 00 1E 2B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C0 [21:49:35]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:49:35]wFMCommunicate OK [21:49:35]SAM_PROTO_GetShiftState done [21:49:35]FM_GetShiftState done [21:49:35]req_shift_opened done [21:49:35]requested_item shift.open_date is exist - process it [21:49:35]req_shift_open_date [21:49:35]req_shift_open_date done [21:49:35]produce_requested_data done [21:49:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162659,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:49:35]process_action_free close_receipt [21:49:35]json_value_free [21:49:35]json_value_free done [21:49:35]process_json_proto returns [21:49:35]Send response to host [21:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162659,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:49:35]free response buf [21:49:35]execute_script done [21:49:35]execute_script returns [21:49:35]free content buf [21:49:35]Sock 7.Close socket [21:49:35]Sock 7.Thread stoped [21:49:37]OFD Sender: No OFD packet to send [21:49:42]OFD Sender: No OFD packet to send [21:49:47]OFD Sender: No OFD packet to send [21:49:52]OFD Sender: No OFD packet to send [21:49:57]OFD Sender: No OFD packet to send [21:50:02]OFD Sender: No OFD packet to send [21:50:07]OFD Sender: No OFD packet to send [21:50:13]OFD Sender: No OFD packet to send [21:50:16]accept exits with 9 [21:50:16]New connection [21:50:16]New thread 3067366756 created [21:50:16]Thread 3067510116 joined [21:50:16]Waiting for new connection... [21:50:16] Sock 9.Parse request [21:50:16]Sock 9.Check first char [21:50:16]Sock 9.First char is OK [21:50:16]request: POST /json_proto HTTP/1.0 [21:50:16]Method: POST [21:50:16]URL: /json_proto [21:50:16]Method is POST - this is cgi request [21:50:16]url: /json_proto [21:50:16]query_string will be loaded in cgi processing [21:50:16]execute_cgi json_proto POST (null) [21:50:16]execute_cgi path=json_proto method=POST [21:50:16]POST find Content-Length [21:50:16]Host: 172.17.39.67:8080 [21:50:16]Content-Length: 672 [21:50:16]Content-Type: application/json [21:50:16] [21:50:16]POST finish read [21:50:16]Found Content-Length = 672 [21:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 13.230, "sum" : 890.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:16]execute_script... [21:50: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)1319239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 13.230, "sum" : 890.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:50:16]POST & json_proto [21:50:16]process_json_proto [21:50:16]json parsed OK: [21:50:16]protocol is kg_v1.0 [21:50:16]action value=close_receipt [21:50:16]process_action close_receipt [21:50:16]cmd_close_receipt [21:50:16]MH_GetDate [21:50:16]Write to MH i2c: F0 00 00 1F 2B 39 [21:50:16]Write i2c OK [21:50:16]MH_I2C_Read... [21:50:16]Read from MH i2c: F0 [21:50:16]MH_I2C_Read... [21:50:16]Read from MH i2c: F0 09 00 [21:50:16]MH_I2C_Read... [21:50:16]Read from MH i2c: F0 09 00 1F 2B 00 9A F6 92 66 86 7C 92 66 C4 [21:50:16]GetLastDocTimeStamp 1720907372 [21:50:16]current date 1720907418 [21:50:16]FM_GetShiftState [21:50:16]SAM_PROTO_GetShiftState [21:50:16]wFMCommunicate request_size=4 [21:50:16]MH_SAM_APDU [21:50:16]CAPDU: 80 13 01 00 [21:50:16]Write to MH i2c: E2 08 00 20 2B 80 13 01 00 00 00 00 00 C8 [21:50:16]Write i2c OK [21:50:16]MH_I2C_Read... [21:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:16]Read from MH i2c: E2 [21:50:16]MH_I2C_Read... [21:50:16]Read from MH i2c: E2 0E 00 [21:50:16]MH_I2C_Read... [21:50:16]Read from MH i2c: E2 0E 00 20 2B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C2 [21:50:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:50:16]wFMCommunicate OK [21:50:16]SAM_PROTO_GetShiftState done [21:50:16]FM_GetShiftState done [21:50:16]opened in 1720828979 [21:50:16]opened+sec_in_day 1720915379 [21:50:16]quantity*price = 89037 [21:50:16]sum+1 = 89039 [21:50:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 890.00 Внесено: 890.00 СДАЧА: 0.00 НСП 1% : 7.88 НДС 12% : 94.55 Наличными: 890.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 328 13.07.2024 21:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162660 ФПД: 23445811640675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215018&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162660&fm=23445811640675&tin=02508201610067®Number=0000000000090858&sum=89000 [21:50:17]StoreToDocumentArchive [21:50:17]shift 462 fd 162660 [21:50:17]save to /storage/0462/doc_00162660 [21:50:17]save last doc name /storage/0462/doc_00162660 to /storage/kkm_last_doc_name [21:50:17]save OK [21:50:17]Clear old archive folders... [21:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:50:17]tlvbuf is 006B0AE0 [21:50:17]SAM_PROTO_ClearQueue [21:50:17]wFMCommunicate request_size=4 [21:50:17]MH_SAM_APDU [21:50:17]CAPDU: 80 09 00 00 [21:50:17]Write to MH i2c: E2 08 00 2D 2B 80 09 00 00 00 00 00 00 CA [21:50:17]Write i2c OK [21:50:17]MH_I2C_Read... [21:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:17]Read from MH i2c: E2 [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: E2 03 00 [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: E2 03 00 2D 2B 00 90 00 CC [21:50:17]RAPDU: 90 00 [21:50:17]wFMCommunicate OK [21:50:17]SAM_PROTO_ClearQueue done [21:50:17]KKMCreateOFDPacket [21:50:17]OFDProtocolAddRootSTLVToBuf [21:50:17]FM_MakeSignedData [21:50:17]FM_MakeSignedData [21:50:17]SAM_PROTO_SignData [21:50:17]wFMCommunicate request_size=4 [21:50:17]MH_SAM_APDU [21:50:17]CAPDU: 80 0D 01 02 [21:50:17]Write to MH i2c: E2 08 00 2E 2B 80 0D 01 02 00 00 00 00 D2 [21:50:17]Write i2c OK [21:50:17]MH_I2C_Read... [21:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:17]Read from MH i2c: E2 [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: E2 03 00 [21:50:17]MH_I2C_Read... [21:50:17]Read from MH i2c: E2 03 00 2E 2B 00 90 00 CD [21:50:17]RAPDU: 90 00 [21:50:17]wFMCommunicate OK [21:50:17]wFMCommunicate request_size=255 [21:50:17]MH_SAM_APDU [21:50:17]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 CE 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 9A F6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7B 02 00 35 04 06 00 [21:50:17]Write to MH i2c: E2 02 01 2F 2B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 CE 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 9A F6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7B 02 00 35 04 06 00 00 00 3A [21:50:17]Write i2c OK [21:50:17]MH_I2C_Read... [21:50:18]OFD Sender: No OFD packet to send [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:18]Read from MH i2c: E2 03 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 2F 2B 00 90 00 CE [21:50:18]RAPDU: 90 00 [21:50:18]wFMCommunicate OK [21:50:18]wFMCommunicate request_size=11 [21:50:18]MH_SAM_APDU [21:50:18]CAPDU: 80 0D 02 02 06 15 52 E7 46 39 63 [21:50:18]Write to MH i2c: E2 0E 00 30 2B 80 0D 02 02 06 00 15 52 E7 46 39 63 00 00 11 [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 03 00 30 2B 00 90 00 CF [21:50:18]RAPDU: 90 00 [21:50:18]wFMCommunicate OK [21:50:18]wFMCommunicate request_size=4 [21:50:18]MH_SAM_APDU [21:50:18]CAPDU: 80 0D 03 02 [21:50:18]Write to MH i2c: E2 08 00 31 2B 80 0D 03 02 00 00 00 00 D7 [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 0B 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 0B 00 31 2B 00 5C 0B C9 9A D5 6C B7 12 90 00 AC [21:50:18]RAPDU: 5C 0B C9 9A D5 6C B7 12 90 00 [21:50:18]wFMCommunicate OK [21:50:18]SAM_PROTO_SignData done [21:50:18]FM_MakeSignedData done [21:50:18]CreateOFDProtocolMessage [21:50:18]wFMCommunicate request_size=4 [21:50:18]MH_SAM_APDU [21:50:18]CAPDU: 80 11 00 00 [21:50:18]Write to MH i2c: E2 08 00 32 2B 80 11 00 00 00 00 00 00 D7 [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:18]Read from MH i2c: E2 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 17 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: E2 17 00 32 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 37 [21:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:50:18]wFMCommunicate OK [21:50:18]CreateOFDProtocolMessage done [21:50:18]OFDSenderStorePacket 162660 [21:50:18]StoreOFDPacket docnum=162660 [21:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2F 60 08 01 6F 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 CE 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 9A F6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7B 02 00 35 04 06 00 15 52 E7 46 39 63 5C 0B C9 9A D5 6C B7 12 [21:50:18]CheckFolder [21:50:18]dirname=/storage/ofd_packets [21:50:18]CheckFolder done [21:50:18]ProducePacketName [21:50:18]name=ofd_packets/00162660 [21:50:18]NVStorageSaveData ofd_packets/00162660 [21:50:18]File name is /storage/ofd_packets/00162660 [21:50:18]Write 302 bytes [21:50:18]NVStorageSaveData done [21:50:18]OFDSenderStorePacket done [21:50:18]KKMCreateOFDPacket done [21:50:18]NVStorageSaveData kkm_last_timestamp [21:50:18]File name is /storage/kkm_last_timestamp [21:50:18]Write 4 bytes [21:50:18]NVStorageSaveData done [21:50:18]ExternCall_PrintAddStr [21:50:18]wPrintStart [21:50:18]Write to MH i2c: 01 00 00 33 2B 5E [21:50:18]Write i2c OK [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: 01 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: 01 07 00 [21:50:18]MH_I2C_Read... [21:50:18]Read from MH i2c: 01 07 00 33 2B 00 00 00 00 00 FF 0F 73 [21:50:18]RasterBufferAndPrint [21:50:18]line Счет N : (1)1319239 [21:50:18]line ИНН: 02508201610067 [21:50:18]line Контрольно-Кассовый Чек [21:50:18]line ПРОДАЖА [21:50:18]line ТРК (МРК, ГНК) : 32 [21:50:18]line Товар: 2710124130 [21:50:18]line Super-92-К-5 [21:50:18]line 13.230 * 67.30 [21:50:18]line = 890.38 [21:50:18]line НДС 12% НСП 1% [21:50:18]line > о реализуемом товаре [21:50:18]line ОКРУГЛЕНИЕ: -0.38 [21:50:18]line ИТОГО: 890.00 [21:50:18]line Внесено: 890.00 [21:50:18]line СДАЧА: 0.00 [21:50:18]line НСП 1% : 7.88 [21:50:18]line НДС 12% : 94.55 [21:50:18]line Наличными: 890.00 [21:50:18]line Безнал.: 0.00 [21:50:18]line Место: АЗС № 140 "Партнер Нефть" [21:50:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:50:18]line СНО: Общий режим [21:50:18]line Чек 328 13.07.2024 21:50 [21:50:18]line Смена: 462 ФФД: 1.0 [21:50:18]line ЗНМ: 0300000129 [21:50:18]line РНМ: 0000000000090858 [21:50:18]line Версия ККМ: 001 [21:50:18]line ФМ: 0000000000874899 [21:50:18]line ФД: 162660 [21:50:18]line ФПД: 23445811640675 [21:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T215018&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162660&fm=23445811640675&tin=02508201610067®Number=0000000000090858&sum=89000 [21:50:18]OFD Sender: Processing packet 162660 [packets to send 106, broken 105] [21:50:18]ProducePacketName [21:50:18]name=ofd_packets/00162660 [21:50:18]OFD Sender: To server: pG, [21:50:18]CommunicateWithHost lk.salyk.kg:30040 [21:50:18]ConnectInit lk.salyk.kg [21:50:18]written 0, free lines is 4095 [21:50:18]Connected sock=10 [21:50:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 2F 60 08 01 6F 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 33 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 CE 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 9A F6 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7B 02 00 35 04 06 00 15 52 E7 46 39 63 5C 0B C9 9A D5 6C B7 12 [21:50:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 59 53 47 00 F9 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 64 7B 02 00 F4 03 04 00 A8 A2 92 66 B6 04 01 00 00 69 CA C6 77 48 F6 7C BA [21:50:18]CommunicateWithHost err = 0 [21:50:18]CheckOFDResponse [21:50:18]1017 (14) - 77093643461234 [21:50:18]1041 (16) - 0000000000874899 [21:50:18]1040 (4) - 162660 [21:50:18]1012 (4) - 13.07.2024 15:52 [21:50:18]1206 (1) - 0 [21:50:18]OFD Sender: Remove packet 162660 [21:50:18]ProducePacketName [21:50:18]name=ofd_packets/00162660 [21:50:18]NVStorageDeleteData [21:50:19]Write to MH i2c: 01 00 00 5E 2B 89 [21:50:19]Write i2c OK [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: 01 [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: 01 07 00 [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: 01 07 00 5E 2B 00 00 00 00 00 D8 0C 74 [21:50:19]RasterBufferAndPrint [21:50:19]line [21:50:19]line [21:50:19]line [21:50:19]line [21:50:19]line [21:50:19]written 0, free lines is 3295 [21:50:19]MH_Cut [21:50:19]Write to MH i2c: D1 01 00 65 2B 01 62 [21:50:19]Write i2c OK [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: D1 [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: D1 01 00 [21:50:19]MH_I2C_Read... [21:50:19]Read from MH i2c: D1 01 00 65 2B 00 61 [21:50:19]Write to MH i2c: 01 00 00 66 2B 91 [21:50:19]Write i2c OK [21:50:19]MH_I2C_Read... [21:50:19]OFD Sender: No OFD packet to send [21:50:19]*** Cut start [21:50:19]*** Purtial cut [21:50:19]*** Stage 1: CUTSNS_PIN = 1 [21:50:19]Read from MH i2c: 01 [21:50:20]MH_I2C_Read... [21:50:20]*** Stop cut motor [21:50:20]*** Cut end [21:50:20]Read from MH i2c: 01 07 00 [21:50:20]MH_I2C_Read... [21:50:20]Read from MH i2c: 01 07 00 66 2B 00 00 00 00 00 FF 0F A6 [21:50:20]process_action close_receipt done [21:50:20]requested_data is exist [21:50:20]produce_requested_data [21:50:20]requested_item fm.sn is exist - process it [21:50:20]wFMCommunicate request_size=4 [21:50:20]MH_SAM_APDU [21:50:20]CAPDU: 80 11 00 00 [21:50:20]Write to MH i2c: E2 08 00 67 2B 80 11 00 00 00 00 00 00 0C [21:50:20]Write i2c OK [21:50:20]MH_I2C_Read... [21:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:20]Read from MH i2c: E2 [21:50:20]MH_I2C_Read... [21:50:20]Read from MH i2c: E2 17 00 [21:50:20]MH_I2C_Read... [21:50:20]Read from MH i2c: E2 17 00 67 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6C [21:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [21:50:20]wFMCommunicate OK [21:50:20]requested_item fd.num is exist - process it [21:50:20]SAM_PROTO_GetFieldsCounters [21:50:20]wFMCommunicate request_size=4 [21:50:20]MH_SAM_APDU [21:50:20]CAPDU: 80 13 00 00 [21:50:20]Write to MH i2c: E2 08 00 68 2B 80 13 00 00 00 00 00 00 0F [21:50:20]Write i2c OK [21:50:20]MH_I2C_Read... [21:50:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:20]Read from MH i2c: E2 [21:50:20]MH_I2C_Read... [21:50:20]Read from MH i2c: E2 62 00 [21:50:20]MH_I2C_Read... [21:50:20]Read from MH i2c: E2 62 00 68 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 64 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [21:50:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 64 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:20]wFMCommunicate OK [21:50:20]SAM_PROTO_GetFieldsCounters done [21:50:20]requested_item shift.num is exist - process it [21:50:20]requested_item shift.opened is exist - process it [21:50:20]req_shift_opened [21:50:20]FM_GetShiftState [21:50:20]SAM_PROTO_GetShiftState [21:50:20]wFMCommunicate request_size=4 [21:50:20]MH_SAM_APDU [21:50:20]CAPDU: 80 13 01 00 [21:50:20]Write to MH i2c: E2 08 00 69 2B 80 13 01 00 00 00 00 00 11 [21:50:20]Write i2c OK [21:50:20]MH_I2C_Read... [21:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:20]Read from MH i2c: E2 [21:50:20]MH_I2C_Read... [21:50:20]Read from MH i2c: E2 0E 00 [21:50:20]MH_I2C_Read... [21:50:20]Read from MH i2c: E2 0E 00 69 2B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 0B [21:50:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [21:50:20]wFMCommunicate OK [21:50:20]SAM_PROTO_GetShiftState done [21:50:20]FM_GetShiftState done [21:50:20]req_shift_opened done [21:50:20]requested_item shift.open_date is exist - process it [21:50:20]req_shift_open_date [21:50:20]req_shift_open_date done [21:50:20]produce_requested_data done [21:50:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162660,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [21:50:20]process_action_free close_receipt [21:50:20]json_value_free [21:50:20]json_value_free done [21:50:20]process_json_proto returns [21:50:20]Send response to host [21:50:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162660,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [21:50:20]free response buf [21:50:20]execute_script done [21:50:20]execute_script returns [21:50:20]free content buf [21:50:20]Sock 9.Close socket [21:50:20]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:30]OFD Sender: No OFD packet to send [22:01:35]OFD Sender: No OFD packet to send [22:01:40]OFD Sender: No OFD packet to send [22:01:45]OFD Sender: No OFD packet to send [22:01:50]OFD Sender: No OFD packet to send [22:01:55]OFD Sender: No OFD packet to send [22:02:00]OFD Sender: No OFD packet to send [22:02:05]OFD Sender: No OFD packet to send [22:02:10]OFD Sender: No OFD packet to send [22:02:15]OFD Sender: No OFD packet to send [22:02:20]OFD Sender: No OFD packet to send [22:02:25]OFD Sender: No OFD packet to send [22:02:30]OFD Sender: No OFD packet to send [22:02:35]OFD Sender: No OFD packet to send [22:02:40]OFD Sender: No OFD packet to send [22:02:45]OFD Sender: No OFD packet to send [22:02:50]OFD Sender: No OFD packet to send [22:02:55]OFD Sender: No OFD packet to send [22:03:00]OFD Sender: No OFD packet to send [22:03:05]OFD Sender: No OFD packet to send [22:03:10]OFD Sender: No OFD packet to send [22:03:15]OFD Sender: No OFD packet to send [22:03:20]OFD Sender: No OFD packet to send [22:03:25]OFD Sender: No OFD packet to send [22:03:30]OFD Sender: No OFD packet to send [22:03:35]OFD Sender: No OFD packet to send [22:03:40]OFD Sender: No OFD packet to send [22:03:45]OFD Sender: No OFD packet to send [22:03:50]OFD Sender: No OFD packet to send [22:03:55]OFD Sender: No OFD packet to send [22:04:00]OFD Sender: No OFD packet to send [22:04:05]OFD Sender: No OFD packet to send [22:04:10]OFD Sender: No OFD packet to send [22:04:15]OFD Sender: No OFD packet to send [22:04:20]OFD Sender: No OFD packet to send [22:04:25]OFD Sender: No OFD packet to send [22:04:30]OFD Sender: No OFD packet to send [22:04:35]OFD Sender: No OFD packet to send [22:04:40]OFD Sender: No OFD packet to send [22:04:45]OFD Sender: No OFD packet to send [22:04:50]OFD Sender: No OFD packet to send [22:04:55]OFD Sender: No OFD packet to send [22:05:00]OFD Sender: No OFD packet to send [22:05:05]OFD Sender: No OFD packet to send [22:05:10]OFD Sender: No OFD packet to send [22:05:15]OFD Sender: No OFD packet to send [22:05:19]accept exits with 7 [22:05:19]New connection [22:05:19]New thread 3067510116 created [22:05:19]Thread 3067366756 joined [22:05:19]Waiting for new connection... [22:05:19] Sock 7.Parse request [22:05:19]Sock 7.Check first char [22:05:19]Sock 7.First char is OK [22:05:19]request: POST /json_proto HTTP/1.0 [22:05:19]Method: POST [22:05:19]URL: /json_proto [22:05:19]Method is POST - this is cgi request [22:05:19]url: /json_proto [22:05:19]query_string will be loaded in cgi processing [22:05:19]execute_cgi json_proto POST (null) [22:05:19]execute_cgi path=json_proto method=POST [22:05:19]POST find Content-Length [22:05:19]Host: 172.17.39.67:8080 [22:05:19]Content-Length: 678 [22:05:19]Content-Type: application/json [22:05:19] [22:05:19]POST finish read [22:05:19]Found Content-Length = 678 [22:05:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:19]execute_script... [22:05: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)1319240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:19]POST & json_proto [22:05:19]process_json_proto [22:05:19]json parsed OK: [22:05:19]protocol is kg_v1.0 [22:05:19]action value=close_receipt [22:05:19]process_action close_receipt [22:05:19]cmd_close_receipt [22:05:19]MH_GetDate [22:05:19]Write to MH i2c: F0 00 00 6A 2B 84 [22:05:19]Write i2c OK [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: F0 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: F0 09 00 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: F0 09 00 6A 2B 00 21 FA 92 66 86 7C 92 66 9A [22:05:19]GetLastDocTimeStamp 1720907418 [22:05:19]current date 1720908321 [22:05:19]FM_GetShiftState [22:05:19]SAM_PROTO_GetShiftState [22:05:19]wFMCommunicate request_size=4 [22:05:19]MH_SAM_APDU [22:05:19]CAPDU: 80 13 01 00 [22:05:19]Write to MH i2c: E2 08 00 6B 2B 80 13 01 00 00 00 00 00 13 [22:05:19]Write i2c OK [22:05:19]MH_I2C_Read... [22:05:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:19]Read from MH i2c: E2 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: E2 0E 00 [22:05:19]MH_I2C_Read... [22:05:19]Read from MH i2c: E2 0E 00 6B 2B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 0D [22:05:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:05:19]wFMCommunicate OK [22:05:19]SAM_PROTO_GetShiftState done [22:05:19]FM_GetShiftState done [22:05:19]opened in 1720828979 [22:05:19]opened+sec_in_day 1720915379 [22:05:19]quantity*price = 50056 [22:05:19]sum+1 = 50058 [22:05:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 329 13.07.2024 22:05 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162661 ФПД: 121769032136888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220521&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162661&fm=121769032136888&tin=02508201610067®Number=0000000000090858&sum=50000 [22:05:21]StoreToDocumentArchive [22:05:21]shift 462 fd 162661 [22:05:21]save to /storage/0462/doc_00162661 [22:05:21]save last doc name /storage/0462/doc_00162661 to /storage/kkm_last_doc_name [22:05:21]save OK [22:05:21]Clear old archive folders... [22:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:05:21]tlvbuf is B6F629C0 [22:05:21]SAM_PROTO_ClearQueue [22:05:21]wFMCommunicate request_size=4 [22:05:21]MH_SAM_APDU [22:05:21]CAPDU: 80 09 00 00 [22:05:21]Write to MH i2c: E2 08 00 78 2B 80 09 00 00 00 00 00 00 15 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:21]Read from MH i2c: E2 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 03 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 03 00 78 2B 00 90 00 17 [22:05:21]RAPDU: 90 00 [22:05:21]wFMCommunicate OK [22:05:21]SAM_PROTO_ClearQueue done [22:05:21]KKMCreateOFDPacket [22:05:21]OFDProtocolAddRootSTLVToBuf [22:05:21]FM_MakeSignedData [22:05:21]FM_MakeSignedData [22:05:21]SAM_PROTO_SignData [22:05:21]wFMCommunicate request_size=4 [22:05:21]MH_SAM_APDU [22:05:21]CAPDU: 80 0D 01 02 [22:05:21]Write to MH i2c: E2 08 00 79 2B 80 0D 01 02 00 00 00 00 1D [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:21]Read from MH i2c: E2 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 03 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 03 00 79 2B 00 90 00 18 [22:05:21]RAPDU: 90 00 [22:05:21]wFMCommunicate OK [22:05:21]wFMCommunicate request_size=255 [22:05:21]MH_SAM_APDU [22:05:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 21 FA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7B 02 00 35 04 06 00 6E [22:05:21]Write to MH i2c: E2 02 01 7A 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 21 FA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7B 02 00 35 04 06 00 6E 00 00 55 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:21]Read from MH i2c: E2 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 03 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 03 00 7A 2B 00 90 00 19 [22:05:21]RAPDU: 90 00 [22:05:21]wFMCommunicate OK [22:05:21]wFMCommunicate request_size=10 [22:05:21]MH_SAM_APDU [22:05:21]CAPDU: 80 0D 02 02 05 BF 8F E7 B8 B8 [22:05:21]Write to MH i2c: E2 0D 00 7B 2B 80 0D 02 02 05 00 BF 8F E7 B8 B8 00 00 CF [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:21]Read from MH i2c: E2 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 03 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 03 00 7B 2B 00 90 00 1A [22:05:21]RAPDU: 90 00 [22:05:21]wFMCommunicate OK [22:05:21]wFMCommunicate request_size=4 [22:05:21]MH_SAM_APDU [22:05:21]CAPDU: 80 0D 03 02 [22:05:21]Write to MH i2c: E2 08 00 7C 2B 80 0D 03 02 00 00 00 00 22 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:21]Read from MH i2c: E2 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 0B 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 0B 00 7C 2B 00 D8 DB C5 FB 65 FC 80 DA 90 00 51 [22:05:21]RAPDU: D8 DB C5 FB 65 FC 80 DA 90 00 [22:05:21]wFMCommunicate OK [22:05:21]SAM_PROTO_SignData done [22:05:21]FM_MakeSignedData done [22:05:21]CreateOFDProtocolMessage [22:05:21]wFMCommunicate request_size=4 [22:05:21]MH_SAM_APDU [22:05:21]CAPDU: 80 11 00 00 [22:05:21]Write to MH i2c: E2 08 00 7D 2B 80 11 00 00 00 00 00 00 22 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:21]Read from MH i2c: E2 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 17 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 17 00 7D 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 82 [22:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:05:21]wFMCommunicate OK [22:05:21]CreateOFDProtocolMessage done [22:05:21]OFDSenderStorePacket 162661 [22:05:21]StoreOFDPacket docnum=162661 [22:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 20 6D 07 01 CB 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 21 FA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7B 02 00 35 04 06 00 6E BF 8F E7 B8 B8 D8 DB C5 FB 65 FC 80 DA [22:05:21]CheckFolder [22:05:21]dirname=/storage/ofd_packets [22:05:21]CheckFolder done [22:05:21]ProducePacketName [22:05:21]name=ofd_packets/00162661 [22:05:21]NVStorageSaveData ofd_packets/00162661 [22:05:21]File name is /storage/ofd_packets/00162661 [22:05:21]Write 301 bytes [22:05:21]NVStorageSaveData done [22:05:21]OFDSenderStorePacket done [22:05:21]KKMCreateOFDPacket done [22:05:21]NVStorageSaveData kkm_last_timestamp [22:05:21]File name is /storage/kkm_last_timestamp [22:05:21]Write 4 bytes [22:05:21]NVStorageSaveData done [22:05:21]ExternCall_PrintAddStr [22:05:21]wPrintStart [22:05:21]Write to MH i2c: 01 00 00 7E 2B A9 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: 01 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: 01 07 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: 01 07 00 7E 2B 00 00 00 00 00 FF 0F BE [22:05:21]RasterBufferAndPrint [22:05:21]line Счет N : (1)1319240 [22:05:21]line ИНН: 02508201610067 [22:05:21]line Контрольно-Кассовый Чек [22:05:21]line ПРОДАЖА [22:05:21]line ТРК (МРК, ГНК) : 33 [22:05:21]line Товар: 2710124130 [22:05:21]line Аи-92-К-5 [22:05:21]line 7.550 * 66.30 [22:05:21]line = 500.57 [22:05:21]line НДС 12% НСП 1% [22:05:21]line > о реализуемом товаре [22:05:21]line ОКРУГЛЕНИЕ: -0.57 [22:05:21]line ИТОГО: 500.00 [22:05:21]line Внесено: 500.00 [22:05:21]line СДАЧА: 0.00 [22:05:21]line НСП 1% : 4.43 [22:05:21]line НДС 12% : 53.16 [22:05:21]line Наличными: 500.00 [22:05:21]line Безнал.: 0.00 [22:05:21]line Место: АЗС № 140 "Партнер Нефть" [22:05:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:05:21]line СНО: Общий режим [22:05:21]line Чек 329 13.07.2024 22:05 [22:05:21]line Смена: 462 ФФД: 1.0 [22:05:21]line ЗНМ: 0300000129 [22:05:21]line РНМ: 0000000000090858 [22:05:21]line Версия ККМ: 001 [22:05:21]line ФМ: 0000000000874899 [22:05:21]line ФД: 162661 [22:05:21]line ФПД: 121769032136888 [22:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T220521&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162661&fm=121769032136888&tin=02508201610067®Number=0000000000090858&sum=50000 [22:05:21]OFD Sender: Processing packet 162661 [packets to send 106, broken 105] [22:05:21]ProducePacketName [22:05:21]name=ofd_packets/00162661 [22:05:21]OFD Sender: To server: pG, [22:05:21]CommunicateWithHost lk.salyk.kg:30040 [22:05:21]ConnectInit lk.salyk.kg [22:05:21]written 0, free lines is 4095 [22:05:21]Connected sock=10 [22:05:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 20 6D 07 01 CB 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 21 FA 92 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 65 7B 02 00 35 04 06 00 6E BF 8F E7 B8 B8 D8 DB C5 FB 65 FC 80 DA [22:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 63 21 47 00 06 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 34 38 39 39 10 04 04 00 65 7B 02 00 F4 03 04 00 30 A6 92 66 B6 04 01 00 00 8E 6B 26 84 37 66 A2 6E [22:05:22]CommunicateWithHost err = 0 [22:05:22]CheckOFDResponse [22:05:22]1017 (14) - 77093643461234 [22:05:22]1041 (16) - 0000000000874899 [22:05:22]1040 (4) - 162661 [22:05:22]1012 (4) - 13.07.2024 16:07 [22:05:22]1206 (1) - 0 [22:05:22]OFD Sender: Remove packet 162661 [22:05:22]ProducePacketName [22:05:22]name=ofd_packets/00162661 [22:05:22]NVStorageDeleteData [22:05:22]Write to MH i2c: 01 00 00 A9 2B D4 [22:05:22]Write i2c OK [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: 01 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: 01 07 00 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: 01 07 00 A9 2B 00 00 00 00 00 D7 0C BE [22:05:22]RasterBufferAndPrint [22:05:22]line [22:05:22]line [22:05:22]line [22:05:22]line [22:05:22]line [22:05:22]written 0, free lines is 3296 [22:05:22]MH_Cut [22:05:22]Write to MH i2c: D1 01 00 B0 2B 01 AD [22:05:22]Write i2c OK [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: D1 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: D1 01 00 [22:05:22]MH_I2C_Read... [22:05:22]Read from MH i2c: D1 01 00 B0 2B 00 AC [22:05:22]Write to MH i2c: 01 00 00 B1 2B DC [22:05:22]Write i2c OK [22:05:22]MH_I2C_Read... [22:05:22]OFD Sender: No OFD packet to send [22:05:23]*** Cut start [22:05:23]*** Purtial cut [22:05:23]*** CUTSNS_PIN = 0 [22:05:23]*** Stage 1: CUTSNS_PIN = 1 [22:05:25]Read from MH i2c: 01 [22:05:25]MH_I2C_Read... [22:05:25]*** Stop cut motor [22:05:25]*** Cut end [22:05:25]Read from MH i2c: 01 07 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: 01 07 00 B1 2B 00 00 00 00 00 FF 0F F1 [22:05:25]process_action close_receipt done [22:05:25]requested_data is exist [22:05:25]produce_requested_data [22:05:25]requested_item fm.sn is exist - process it [22:05:25]wFMCommunicate request_size=4 [22:05:25]MH_SAM_APDU [22:05:25]CAPDU: 80 11 00 00 [22:05:25]Write to MH i2c: E2 08 00 B2 2B 80 11 00 00 00 00 00 00 57 [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:25]Read from MH i2c: E2 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 17 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 17 00 B2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B7 [22:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:05:25]wFMCommunicate OK [22:05:25]requested_item fd.num is exist - process it [22:05:25]SAM_PROTO_GetFieldsCounters [22:05:25]wFMCommunicate request_size=4 [22:05:25]MH_SAM_APDU [22:05:25]CAPDU: 80 13 00 00 [22:05:25]Write to MH i2c: E2 08 00 B3 2B 80 13 00 00 00 00 00 00 5A [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:25]Read from MH i2c: E2 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 62 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 62 00 B3 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 65 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [22:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 65 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:25]wFMCommunicate OK [22:05:25]SAM_PROTO_GetFieldsCounters done [22:05:25]requested_item shift.num is exist - process it [22:05:25]requested_item shift.opened is exist - process it [22:05:25]req_shift_opened [22:05:25]FM_GetShiftState [22:05:25]SAM_PROTO_GetShiftState [22:05:25]wFMCommunicate request_size=4 [22:05:25]MH_SAM_APDU [22:05:25]CAPDU: 80 13 01 00 [22:05:25]Write to MH i2c: E2 08 00 B4 2B 80 13 01 00 00 00 00 00 5C [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:25]Read from MH i2c: E2 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 0E 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: E2 0E 00 B4 2B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 56 [22:05:25]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:05:25]wFMCommunicate OK [22:05:25]SAM_PROTO_GetShiftState done [22:05:25]FM_GetShiftState done [22:05:25]req_shift_opened done [22:05:25]requested_item shift.open_date is exist - process it [22:05:25]req_shift_open_date [22:05:25]req_shift_open_date done [22:05:25]produce_requested_data done [22:05:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162661,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:05:25]process_action_free close_receipt [22:05:25]json_value_free [22:05:25]json_value_free done [22:05:25]process_json_proto returns [22:05:25]Send response to host [22:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162661,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:05:25]free response buf [22:05:25]execute_script done [22:05:25]execute_script returns [22:05:25]free content buf [22:05:25]Sock 7.Close socket [22:05:25]Sock 7.Thread stoped [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:18]OFD Sender: No OFD packet to send [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:44]OFD Sender: No OFD packet to send [22:24:49]OFD Sender: No OFD packet to send [22:24:54]OFD Sender: No OFD packet to send [22:24:59]OFD Sender: No OFD packet to send [22:25:04]OFD Sender: No OFD packet to send [22:25:09]OFD Sender: No OFD packet to send [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:06]accept exits with 9 [22:33:06]New connection [22:33:06]New thread 3067366756 created [22:33:06]Thread 3067510116 joined [22:33:06]Waiting for new connection... [22:33:06] Sock 9.Parse request [22:33:06]Sock 9.Check first char [22:33:06]Sock 9.First char is OK [22:33:06]request: POST /json_proto HTTP/1.0 [22:33:06]Method: POST [22:33:06]URL: /json_proto [22:33:06]Method is POST - this is cgi request [22:33:06]url: /json_proto [22:33:06]query_string will be loaded in cgi processing [22:33:06]execute_cgi json_proto POST (null) [22:33:06]execute_cgi path=json_proto method=POST [22:33:06]POST find Content-Length [22:33:06]Host: 172.17.39.67:8080 [22:33:06]Content-Length: 683 [22:33:06]Content-Type: application/json [22:33:06] [22:33:06]POST finish read [22:33:06]Found Content-Length = 683 [22:33:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 44.860, "sum" : 3337.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3337.00, "payments": [ { "type": 0, "sum" : 3337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:06]execute_script... [22:33: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)1319242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 44.860, "sum" : 3337.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3337.00, "payments": [ { "type": 0, "sum" : 3337.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:06]POST & json_proto [22:33:06]process_json_proto [22:33:06]json parsed OK: [22:33:06]protocol is kg_v1.0 [22:33:06]action value=close_receipt [22:33:06]process_action close_receipt [22:33:06]cmd_close_receipt [22:33:06]MH_GetDate [22:33:06]Write to MH i2c: F0 00 00 B5 2B CF [22:33:06]Write i2c OK [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: F0 [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: F0 09 00 [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: F0 09 00 B5 2B 00 A4 00 93 66 86 7C 92 66 6F [22:33:06]GetLastDocTimeStamp 1720908321 [22:33:06]current date 1720909988 [22:33:06]FM_GetShiftState [22:33:06]SAM_PROTO_GetShiftState [22:33:06]wFMCommunicate request_size=4 [22:33:06]MH_SAM_APDU [22:33:06]CAPDU: 80 13 01 00 [22:33:06]Write to MH i2c: E2 08 00 B6 2B 80 13 01 00 00 00 00 00 5E [22:33:06]Write i2c OK [22:33:06]MH_I2C_Read... [22:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:06]Read from MH i2c: E2 [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: E2 0E 00 [22:33:06]MH_I2C_Read... [22:33:06]Read from MH i2c: E2 0E 00 B6 2B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 58 [22:33:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:33:06]wFMCommunicate OK [22:33:06]SAM_PROTO_GetShiftState done [22:33:06]FM_GetShiftState done [22:33:06]opened in 1720828979 [22:33:06]opened+sec_in_day 1720915379 [22:33:06]quantity*price = 333758 [22:33:06]sum+1 = 333759 [22:33:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 3337.00 Внесено: 4000.00 СДАЧА: 663.00 НСП 1% : 29.54 НДС 12% : 354.43 Наличными: 3337.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 330 13.07.2024 22:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162662 ФПД: 183452462533752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223308&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162662&fm=183452462533752&tin=02508201610067®Number=0000000000090858&sum=333700 [22:33:07]StoreToDocumentArchive [22:33:07]shift 462 fd 162662 [22:33:07]save to /storage/0462/doc_00162662 [22:33:07]save last doc name /storage/0462/doc_00162662 to /storage/kkm_last_doc_name [22:33:07]save OK [22:33:07]Clear old archive folders... [22:33:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:07]tlvbuf is B6F30640 [22:33:07]SAM_PROTO_ClearQueue [22:33:07]wFMCommunicate request_size=4 [22:33:07]MH_SAM_APDU [22:33:07]CAPDU: 80 09 00 00 [22:33:07]Write to MH i2c: E2 08 00 C3 2B 80 09 00 00 00 00 00 00 60 [22:33:07]Write i2c OK [22:33:07]MH_I2C_Read... [22:33:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:07]Read from MH i2c: E2 [22:33:07]MH_I2C_Read... [22:33:07]Read from MH i2c: E2 03 00 [22:33:07]MH_I2C_Read... [22:33:07]Read from MH i2c: E2 03 00 C3 2B 00 90 00 62 [22:33:07]RAPDU: 90 00 [22:33:07]wFMCommunicate OK [22:33:07]SAM_PROTO_ClearQueue done [22:33:07]KKMCreateOFDPacket [22:33:07]OFDProtocolAddRootSTLVToBuf [22:33:07]FM_MakeSignedData [22:33:07]FM_MakeSignedData [22:33:07]SAM_PROTO_SignData [22:33:07]wFMCommunicate request_size=4 [22:33:07]MH_SAM_APDU [22:33:07]CAPDU: 80 0D 01 02 [22:33:07]Write to MH i2c: E2 08 00 C4 2B 80 0D 01 02 00 00 00 00 68 [22:33:07]Write i2c OK [22:33:07]MH_I2C_Read... [22:33:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:07]Read from MH i2c: E2 [22:33:07]MH_I2C_Read... [22:33:07]Read from MH i2c: E2 03 00 [22:33:07]MH_I2C_Read... [22:33:07]Read from MH i2c: E2 03 00 C4 2B 00 90 00 63 [22:33:07]RAPDU: 90 00 [22:33:07]wFMCommunicate OK [22:33:07]wFMCommunicate request_size=255 [22:33:07]MH_SAM_APDU [22:33: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 3C AF 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 BE 17 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 17 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 8A 00 00 00 00 07 04 06 00 84 17 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 A4 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7B 02 00 35 04 06 00 A6 [22:33:07]Write to MH i2c: E2 02 01 C5 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C AF 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 BE 17 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 17 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 8A 00 00 00 00 07 04 06 00 84 17 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 A4 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7B 02 00 35 04 06 00 A6 00 00 8C [22:33:07]Write i2c OK [22:33:07]MH_I2C_Read... [22:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:08]Read from MH i2c: E2 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: E2 03 00 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: E2 03 00 C5 2B 00 90 00 64 [22:33:08]RAPDU: 90 00 [22:33:08]wFMCommunicate OK [22:33:08]wFMCommunicate request_size=10 [22:33:08]MH_SAM_APDU [22:33:08]CAPDU: 80 0D 02 02 05 D9 5A DC CC 78 [22:33:08]Write to MH i2c: E2 0D 00 C6 2B 80 0D 02 02 05 00 D9 5A DC CC 78 00 00 C8 [22:33:08]Write i2c OK [22:33:08]MH_I2C_Read... [22:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:08]Read from MH i2c: E2 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: E2 03 00 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: E2 03 00 C6 2B 00 90 00 65 [22:33:08]RAPDU: 90 00 [22:33:08]wFMCommunicate OK [22:33:08]wFMCommunicate request_size=4 [22:33:08]MH_SAM_APDU [22:33:08]CAPDU: 80 0D 03 02 [22:33:08]Write to MH i2c: E2 08 00 C7 2B 80 0D 03 02 00 00 00 00 6D [22:33:08]Write i2c OK [22:33:08]MH_I2C_Read... [22:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:08]Read from MH i2c: E2 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: E2 0B 00 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: E2 0B 00 C7 2B 00 85 E2 C1 DE 20 C5 F8 17 90 00 68 [22:33:08]RAPDU: 85 E2 C1 DE 20 C5 F8 17 90 00 [22:33:08]wFMCommunicate OK [22:33:08]SAM_PROTO_SignData done [22:33:08]FM_MakeSignedData done [22:33:08]CreateOFDProtocolMessage [22:33:08]wFMCommunicate request_size=4 [22:33:08]MH_SAM_APDU [22:33:08]CAPDU: 80 11 00 00 [22:33:08]Write to MH i2c: E2 08 00 C8 2B 80 11 00 00 00 00 00 00 6D [22:33:08]Write i2c OK [22:33:08]MH_I2C_Read... [22:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:08]Read from MH i2c: E2 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: E2 17 00 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: E2 17 00 C8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CD [22:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:33:08]wFMCommunicate OK [22:33:08]CreateOFDProtocolMessage done [22:33:08]OFDSenderStorePacket 162662 [22:33:08]StoreOFDPacket docnum=162662 [22:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8C 15 07 01 A9 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C AF 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 BE 17 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 17 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 8A 00 00 00 00 07 04 06 00 84 17 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 A4 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7B 02 00 35 04 06 00 A6 D9 5A DC CC 78 85 E2 C1 DE 20 C5 F8 17 [22:33:08]CheckFolder [22:33:08]dirname=/storage/ofd_packets [22:33:08]CheckFolder done [22:33:08]ProducePacketName [22:33:08]name=ofd_packets/00162662 [22:33:08]NVStorageSaveData ofd_packets/00162662 [22:33:08]File name is /storage/ofd_packets/00162662 [22:33:08]Write 301 bytes [22:33:08]NVStorageSaveData done [22:33:08]OFDSenderStorePacket done [22:33:08]KKMCreateOFDPacket done [22:33:08]NVStorageSaveData kkm_last_timestamp [22:33:08]File name is /storage/kkm_last_timestamp [22:33:08]Write 4 bytes [22:33:08]NVStorageSaveData done [22:33:08]ExternCall_PrintAddStr [22:33:08]wPrintStart [22:33:08]Write to MH i2c: 01 00 00 C9 2B F4 [22:33:08]Write i2c OK [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: 01 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: 01 07 00 [22:33:08]MH_I2C_Read... [22:33:08]Read from MH i2c: 01 07 00 C9 2B 00 00 00 00 00 FF 0F 09 [22:33:08]RasterBufferAndPrint [22:33:08]line Счет N : (1)1319242 [22:33:08]line ИНН: 02508201610067 [22:33:08]line Контрольно-Кассовый Чек [22:33:08]line ПРОДАЖА [22:33:08]line ТРК (МРК, ГНК) : 34 [22:33:08]line Товар: 2710124500 [22:33:08]line Аи-95-К-5 [22:33:08]line 44.860 * 74.40 [22:33:08]line = 3337.58 [22:33:08]line НДС 12% НСП 1% [22:33:08]line > о реализуемом товаре [22:33:08]line ОКРУГЛЕНИЕ: -0.58 [22:33:08]line ИТОГО: 3337.00 [22:33:08]line Внесено: 4000.00 [22:33:08]line СДАЧА: 663.00 [22:33:08]line НСП 1% : 29.54 [22:33:08]line НДС 12% : 354.43 [22:33:08]line Наличными: 3337.00 [22:33:08]line Безнал.: 0.00 [22:33:08]line Место: АЗС № 140 "Партнер Нефть" [22:33:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:33:08]line СНО: Общий режим [22:33:08]line Чек 330 13.07.2024 22:33 [22:33:08]line Смена: 462 ФФД: 1.0 [22:33:08]line ЗНМ: 0300000129 [22:33:08]line РНМ: 0000000000090858 [22:33:08]line Версия ККМ: 001 [22:33:08]line ФМ: 0000000000874899 [22:33:08]line ФД: 162662 [22:33:08]line ФПД: 183452462533752 [22:33:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223308&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162662&fm=183452462533752&tin=02508201610067®Number=0000000000090858&sum=333700 [22:33:08]OFD Sender: Processing packet 162662 [packets to send 106, broken 105] [22:33:08]ProducePacketName [22:33:08]name=ofd_packets/00162662 [22:33:08]OFD Sender: To server: pG, [22:33:08]CommunicateWithHost lk.salyk.kg:30040 [22:33:08]ConnectInit lk.salyk.kg [22:33:08]written 0, free lines is 4095 [22:33:08]Connected sock=7 [22:33:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8C 15 07 01 A9 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 3C AF 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 BE 17 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 17 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 8A 00 00 00 00 07 04 06 00 84 17 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 01 00 00 F4 03 04 00 A4 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7B 02 00 35 04 06 00 A6 D9 5A DC CC 78 85 E2 C1 DE 20 C5 F8 17 [22:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9D 07 47 00 93 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 66 7B 02 00 F4 03 04 00 B2 AC 92 66 B6 04 01 00 00 DB 39 52 52 3A 8B EE FD [22:33:09]CommunicateWithHost err = 0 [22:33:09]CheckOFDResponse [22:33:09]1017 (14) - 77093643461234 [22:33:09]1041 (16) - 0000000000874899 [22:33:09]1040 (4) - 162662 [22:33:09]1012 (4) - 13.07.2024 16:34 [22:33:09]1206 (1) - 0 [22:33:09]OFD Sender: Remove packet 162662 [22:33:09]ProducePacketName [22:33:09]name=ofd_packets/00162662 [22:33:09]NVStorageDeleteData [22:33:09]Write to MH i2c: 01 00 00 F4 2B 1F [22:33:09]Write i2c OK [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: 01 [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: 01 07 00 [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: 01 07 00 F4 2B 00 00 00 00 00 F1 0C 23 [22:33:09]RasterBufferAndPrint [22:33:09]line [22:33:09]line [22:33:09]line [22:33:09]line [22:33:09]line [22:33:09]written 0, free lines is 3319 [22:33:09]MH_Cut [22:33:09]Write to MH i2c: D1 01 00 FB 2B 01 F8 [22:33:09]Write i2c OK [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: D1 [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: D1 01 00 [22:33:09]MH_I2C_Read... [22:33:09]Read from MH i2c: D1 01 00 FB 2B 00 F7 [22:33:09]Write to MH i2c: 01 00 00 FC 2B 27 [22:33:09]Write i2c OK [22:33:09]MH_I2C_Read... [22:33:09]OFD Sender: No OFD packet to send [22:33:09]*** Cut start [22:33:09]*** Purtial cut [22:33:09]*** Stage 1: CUTSNS_PIN = 1 [22:33:10]Read from MH i2c: 01 [22:33:10]MH_I2C_Read... [22:33:10]*** Stop cut motor [22:33:10]*** Cut end [22:33:10]Read from MH i2c: 01 07 00 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: 01 07 00 FC 2B 00 00 00 00 00 FF 0F 3C [22:33:10]process_action close_receipt done [22:33:10]requested_data is exist [22:33:10]produce_requested_data [22:33:10]requested_item fm.sn is exist - process it [22:33:10]wFMCommunicate request_size=4 [22:33:10]MH_SAM_APDU [22:33:10]CAPDU: 80 11 00 00 [22:33:10]Write to MH i2c: E2 08 00 FD 2B 80 11 00 00 00 00 00 00 A2 [22:33:10]Write i2c OK [22:33:10]MH_I2C_Read... [22:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:10]Read from MH i2c: E2 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 17 00 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 17 00 FD 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 02 [22:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:33:10]wFMCommunicate OK [22:33:10]requested_item fd.num is exist - process it [22:33:10]SAM_PROTO_GetFieldsCounters [22:33:10]wFMCommunicate request_size=4 [22:33:10]MH_SAM_APDU [22:33:10]CAPDU: 80 13 00 00 [22:33:10]Write to MH i2c: E2 08 00 FE 2B 80 13 00 00 00 00 00 00 A5 [22:33:10]Write i2c OK [22:33:10]MH_I2C_Read... [22:33:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:10]Read from MH i2c: E2 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 62 00 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 62 00 FE 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 66 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [22:33:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 66 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:10]wFMCommunicate OK [22:33:10]SAM_PROTO_GetFieldsCounters done [22:33:10]requested_item shift.num is exist - process it [22:33:10]requested_item shift.opened is exist - process it [22:33:10]req_shift_opened [22:33:10]FM_GetShiftState [22:33:10]SAM_PROTO_GetShiftState [22:33:10]wFMCommunicate request_size=4 [22:33:10]MH_SAM_APDU [22:33:10]CAPDU: 80 13 01 00 [22:33:10]Write to MH i2c: E2 08 00 FF 2B 80 13 01 00 00 00 00 00 A7 [22:33:10]Write i2c OK [22:33:10]MH_I2C_Read... [22:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:10]Read from MH i2c: E2 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 0E 00 [22:33:10]MH_I2C_Read... [22:33:10]Read from MH i2c: E2 0E 00 FF 2B 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A1 [22:33:10]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:33:10]wFMCommunicate OK [22:33:10]SAM_PROTO_GetShiftState done [22:33:10]FM_GetShiftState done [22:33:10]req_shift_opened done [22:33:10]requested_item shift.open_date is exist - process it [22:33:10]req_shift_open_date [22:33:10]req_shift_open_date done [22:33:10]produce_requested_data done [22:33:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162662,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:33:10]process_action_free close_receipt [22:33:10]json_value_free [22:33:10]json_value_free done [22:33:10]process_json_proto returns [22:33:10]Send response to host [22:33:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162662,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:33:10]free response buf [22:33:10]execute_script done [22:33:10]execute_script returns [22:33:10]free content buf [22:33:10]Sock 9.Close socket [22:33:10]Sock 9.Thread stoped [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:50]accept exits with 10 [22:33:50]New connection [22:33:50]New thread 3067510116 created [22:33:50]Thread 3067366756 joined [22:33:50]Waiting for new connection... [22:33:50] Sock 10.Parse request [22:33:50]Sock 10.Check first char [22:33:50]Sock 10.First char is OK [22:33:50]request: POST /json_proto HTTP/1.0 [22:33:50]Method: POST [22:33:50]URL: /json_proto [22:33:50]Method is POST - this is cgi request [22:33:50]url: /json_proto [22:33:50]query_string will be loaded in cgi processing [22:33:50]execute_cgi json_proto POST (null) [22:33:50]execute_cgi path=json_proto method=POST [22:33:50]POST find Content-Length [22:33:50]Host: 172.17.39.67:8080 [22:33:50]Content-Length: 678 [22:33:50]Content-Type: application/json [22:33:50] [22:33:50]POST finish read [22:33:50]Found Content-Length = 678 [22:33:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 2.960, "sum" : 220.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:50]execute_script... [22:33: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)1319243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 2.960, "sum" : 220.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:50]POST & json_proto [22:33:50]process_json_proto [22:33:50]json parsed OK: [22:33:50]protocol is kg_v1.0 [22:33:50]action value=close_receipt [22:33:50]process_action close_receipt [22:33:50]cmd_close_receipt [22:33:50]MH_GetDate [22:33:50]Write to MH i2c: F0 00 00 00 2C 1B [22:33:50]Write i2c OK [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: F0 [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: F0 09 00 [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: F0 09 00 00 2C 00 D0 00 93 66 86 7C 92 66 E7 [22:33:50]GetLastDocTimeStamp 1720909988 [22:33:50]current date 1720910032 [22:33:50]FM_GetShiftState [22:33:50]SAM_PROTO_GetShiftState [22:33:50]wFMCommunicate request_size=4 [22:33:50]MH_SAM_APDU [22:33:50]CAPDU: 80 13 01 00 [22:33:50]Write to MH i2c: E2 08 00 01 2C 80 13 01 00 00 00 00 00 AA [22:33:50]Write i2c OK [22:33:50]MH_I2C_Read... [22:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:50]Read from MH i2c: E2 [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: E2 0E 00 [22:33:50]MH_I2C_Read... [22:33:50]Read from MH i2c: E2 0E 00 01 2C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A4 [22:33:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:33:50]wFMCommunicate OK [22:33:50]SAM_PROTO_GetShiftState done [22:33:50]FM_GetShiftState done [22:33:50]opened in 1720828979 [22:33:50]opened+sec_in_day 1720915379 [22:33:50]quantity*price = 22022 [22:33:50]sum+1 = 22023 [22:33:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.39 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 331 13.07.2024 22:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162663 ФПД: 93826010741490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223352&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162663&fm=93826010741490&tin=02508201610067®Number=0000000000090858&sum=22000 [22:33:51]StoreToDocumentArchive [22:33:51]shift 462 fd 162663 [22:33:51]save to /storage/0462/doc_00162663 [22:33:51]save last doc name /storage/0462/doc_00162663 to /storage/kkm_last_doc_name [22:33:51]save OK [22:33:51]Clear old archive folders... [22:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:51]tlvbuf is 0060C400 [22:33:51]SAM_PROTO_ClearQueue [22:33:51]wFMCommunicate request_size=4 [22:33:51]MH_SAM_APDU [22:33:51]CAPDU: 80 09 00 00 [22:33:51]Write to MH i2c: E2 08 00 0E 2C 80 09 00 00 00 00 00 00 AC [22:33:51]Write i2c OK [22:33:51]MH_I2C_Read... [22:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:51]Read from MH i2c: E2 [22:33:51]MH_I2C_Read... [22:33:51]Read from MH i2c: E2 03 00 [22:33:51]MH_I2C_Read... [22:33:51]Read from MH i2c: E2 03 00 0E 2C 00 90 00 AE [22:33:51]RAPDU: 90 00 [22:33:51]wFMCommunicate OK [22:33:51]SAM_PROTO_ClearQueue done [22:33:51]KKMCreateOFDPacket [22:33:51]OFDProtocolAddRootSTLVToBuf [22:33:51]FM_MakeSignedData [22:33:51]FM_MakeSignedData [22:33:51]SAM_PROTO_SignData [22:33:52]wFMCommunicate request_size=4 [22:33:52]MH_SAM_APDU [22:33:52]CAPDU: 80 0D 01 02 [22:33:52]Write to MH i2c: E2 08 00 0F 2C 80 0D 01 02 00 00 00 00 B4 [22:33:52]Write i2c OK [22:33:52]MH_I2C_Read... [22:33:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:52]Read from MH i2c: E2 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 03 00 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 03 00 0F 2C 00 90 00 AF [22:33:52]RAPDU: 90 00 [22:33:52]wFMCommunicate OK [22:33:52]wFMCommunicate request_size=255 [22:33:52]MH_SAM_APDU [22:33: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D0 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7B 02 00 35 04 06 00 55 [22:33:52]Write to MH i2c: E2 02 01 10 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 90 0B 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D0 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7B 02 00 35 04 06 00 55 00 00 8E [22:33:52]Write i2c OK [22:33:52]MH_I2C_Read... [22:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:52]Read from MH i2c: E2 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 03 00 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 03 00 10 2C 00 90 00 B0 [22:33:52]RAPDU: 90 00 [22:33:52]wFMCommunicate OK [22:33:52]wFMCommunicate request_size=10 [22:33:52]MH_SAM_APDU [22:33:52]CAPDU: 80 0D 02 02 05 55 92 0A 7A F2 [22:33:52]Write to MH i2c: E2 0D 00 11 2C 80 0D 02 02 05 00 55 92 0A 7A F2 00 00 1E [22:33:52]Write i2c OK [22:33:52]MH_I2C_Read... [22:33:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:52]Read from MH i2c: E2 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 03 00 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 03 00 11 2C 00 90 00 B1 [22:33:52]RAPDU: 90 00 [22:33:52]wFMCommunicate OK [22:33:52]wFMCommunicate request_size=4 [22:33:52]MH_SAM_APDU [22:33:52]CAPDU: 80 0D 03 02 [22:33:52]Write to MH i2c: E2 08 00 12 2C 80 0D 03 02 00 00 00 00 B9 [22:33:52]Write i2c OK [22:33:52]MH_I2C_Read... [22:33:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:52]Read from MH i2c: E2 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 0B 00 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 0B 00 12 2C 00 E4 0C 11 85 C8 37 AD C1 90 00 AD [22:33:52]RAPDU: E4 0C 11 85 C8 37 AD C1 90 00 [22:33:52]wFMCommunicate OK [22:33:52]SAM_PROTO_SignData done [22:33:52]FM_MakeSignedData done [22:33:52]CreateOFDProtocolMessage [22:33:52]wFMCommunicate request_size=4 [22:33:52]MH_SAM_APDU [22:33:52]CAPDU: 80 11 00 00 [22:33:52]Write to MH i2c: E2 08 00 13 2C 80 11 00 00 00 00 00 00 B9 [22:33:52]Write i2c OK [22:33:52]MH_I2C_Read... [22:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:52]Read from MH i2c: E2 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 17 00 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: E2 17 00 13 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 19 [22:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:33:52]wFMCommunicate OK [22:33:52]CreateOFDProtocolMessage done [22:33:52]OFDSenderStorePacket 162663 [22:33:52]StoreOFDPacket docnum=162663 [22:33:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6A 18 07 01 A4 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D0 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7B 02 00 35 04 06 00 55 55 92 0A 7A F2 E4 0C 11 85 C8 37 AD C1 [22:33:52]CheckFolder [22:33:52]dirname=/storage/ofd_packets [22:33:52]CheckFolder done [22:33:52]ProducePacketName [22:33:52]name=ofd_packets/00162663 [22:33:52]NVStorageSaveData ofd_packets/00162663 [22:33:52]File name is /storage/ofd_packets/00162663 [22:33:52]Write 301 bytes [22:33:52]NVStorageSaveData done [22:33:52]OFDSenderStorePacket done [22:33:52]KKMCreateOFDPacket done [22:33:52]NVStorageSaveData kkm_last_timestamp [22:33:52]File name is /storage/kkm_last_timestamp [22:33:52]Write 4 bytes [22:33:52]NVStorageSaveData done [22:33:52]ExternCall_PrintAddStr [22:33:52]wPrintStart [22:33:52]Write to MH i2c: 01 00 00 14 2C 40 [22:33:52]Write i2c OK [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: 01 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: 01 07 00 [22:33:52]MH_I2C_Read... [22:33:52]Read from MH i2c: 01 07 00 14 2C 00 00 00 00 00 FF 0F 55 [22:33:52]RasterBufferAndPrint [22:33:52]line Счет N : (1)1319243 [22:33:52]line ИНН: 02508201610067 [22:33:52]line Контрольно-Кассовый Чек [22:33:52]line ПРОДАЖА [22:33:52]line ТРК (МРК, ГНК) : 44 [22:33:52]line Товар: 2710124500 [22:33:52]line Аи-95-К-5 [22:33:52]line 2.960 * 74.40 [22:33:52]line = 220.22 [22:33:52]line НДС 12% НСП 1% [22:33:52]line > о реализуемом товаре [22:33:52]line ОКРУГЛЕНИЕ: -0.22 [22:33:52]line ИТОГО: 220.00 [22:33:52]line Внесено: 220.00 [22:33:52]line СДАЧА: 0.00 [22:33:52]line НСП 1% : 1.95 [22:33:52]line НДС 12% : 23.39 [22:33:52]line Наличными: 220.00 [22:33:52]line Безнал.: 0.00 [22:33:52]line Место: АЗС № 140 "Партнер Нефть" [22:33:52]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:33:52]line СНО: Общий режим [22:33:52]line Чек 331 13.07.2024 22:33 [22:33:52]line Смена: 462 ФФД: 1.0 [22:33:52]line ЗНМ: 0300000129 [22:33:52]line РНМ: 0000000000090858 [22:33:52]line Версия ККМ: 001 [22:33:52]line ФМ: 0000000000874899 [22:33:52]line ФД: 162663 [22:33:52]line ФПД: 93826010741490 [22:33:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223352&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162663&fm=93826010741490&tin=02508201610067®Number=0000000000090858&sum=22000 [22:33:52]OFD Sender: Processing packet 162663 [packets to send 106, broken 105] [22:33:52]ProducePacketName [22:33:52]name=ofd_packets/00162663 [22:33:52]OFD Sender: To server: pG, [22:33:52]CommunicateWithHost lk.salyk.kg:30040 [22:33:52]ConnectInit lk.salyk.kg [22:33:52]written 0, free lines is 4095 [22:33:52]Connected sock=9 [22:33:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 6A 18 07 01 A4 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 D0 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7B 02 00 35 04 06 00 55 55 92 0A 7A F2 E4 0C 11 85 C8 37 AD C1 [22:33:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5F 35 47 00 E4 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 67 7B 02 00 F4 03 04 00 DE AC 92 66 B6 04 01 00 00 97 53 6C EE 8B 18 8D FC [22:33:53]CommunicateWithHost err = 0 [22:33:53]CheckOFDResponse [22:33:53]1017 (14) - 77093643461234 [22:33:53]1041 (16) - 0000000000874899 [22:33:53]1040 (4) - 162663 [22:33:53]1012 (4) - 13.07.2024 16:35 [22:33:53]1206 (1) - 0 [22:33:53]OFD Sender: Remove packet 162663 [22:33:53]ProducePacketName [22:33:53]name=ofd_packets/00162663 [22:33:53]NVStorageDeleteData [22:33:53]Write to MH i2c: 01 00 00 3F 2C 6B [22:33:53]Write i2c OK [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: 01 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: 01 07 00 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: 01 07 00 3F 2C 00 00 00 00 00 E0 0C 5E [22:33:53]RasterBufferAndPrint [22:33:53]line [22:33:53]line [22:33:53]line [22:33:53]line [22:33:53]line [22:33:53]written 0, free lines is 3302 [22:33:53]MH_Cut [22:33:53]Write to MH i2c: D1 01 00 46 2C 01 44 [22:33:53]Write i2c OK [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: D1 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: D1 01 00 [22:33:53]MH_I2C_Read... [22:33:53]Read from MH i2c: D1 01 00 46 2C 00 43 [22:33:53]Write to MH i2c: 01 00 00 47 2C 73 [22:33:53]Write i2c OK [22:33:53]MH_I2C_Read... [22:33:53]OFD Sender: No OFD packet to send [22:33:54]*** Cut start [22:33:54]*** Purtial cut [22:33:54]*** CUTSNS_PIN = 0 [22:33:54]*** Stage 1: CUTSNS_PIN = 1 [22:33:56]Read from MH i2c: 01 [22:33:56]MH_I2C_Read... [22:33:56]*** Stop cut motor [22:33:56]*** Cut end [22:33:56]Read from MH i2c: 01 07 00 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: 01 07 00 47 2C 00 00 00 00 00 FF 0F 88 [22:33:56]process_action close_receipt done [22:33:56]requested_data is exist [22:33:56]produce_requested_data [22:33:56]requested_item fm.sn is exist - process it [22:33:56]wFMCommunicate request_size=4 [22:33:56]MH_SAM_APDU [22:33:56]CAPDU: 80 11 00 00 [22:33:56]Write to MH i2c: E2 08 00 48 2C 80 11 00 00 00 00 00 00 EE [22:33:56]Write i2c OK [22:33:56]MH_I2C_Read... [22:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:56]Read from MH i2c: E2 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 17 00 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 17 00 48 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [22:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:33:56]wFMCommunicate OK [22:33:56]requested_item fd.num is exist - process it [22:33:56]SAM_PROTO_GetFieldsCounters [22:33:56]wFMCommunicate request_size=4 [22:33:56]MH_SAM_APDU [22:33:56]CAPDU: 80 13 00 00 [22:33:56]Write to MH i2c: E2 08 00 49 2C 80 13 00 00 00 00 00 00 F1 [22:33:56]Write i2c OK [22:33:56]MH_I2C_Read... [22:33:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:56]Read from MH i2c: E2 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 62 00 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 62 00 49 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 67 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [22:33:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 67 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:56]wFMCommunicate OK [22:33:56]SAM_PROTO_GetFieldsCounters done [22:33:56]requested_item shift.num is exist - process it [22:33:56]requested_item shift.opened is exist - process it [22:33:56]req_shift_opened [22:33:56]FM_GetShiftState [22:33:56]SAM_PROTO_GetShiftState [22:33:56]wFMCommunicate request_size=4 [22:33:56]MH_SAM_APDU [22:33:56]CAPDU: 80 13 01 00 [22:33:56]Write to MH i2c: E2 08 00 4A 2C 80 13 01 00 00 00 00 00 F3 [22:33:56]Write i2c OK [22:33:56]MH_I2C_Read... [22:33:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:56]Read from MH i2c: E2 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 0E 00 [22:33:56]MH_I2C_Read... [22:33:56]Read from MH i2c: E2 0E 00 4A 2C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 ED [22:33:56]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:33:56]wFMCommunicate OK [22:33:56]SAM_PROTO_GetShiftState done [22:33:56]FM_GetShiftState done [22:33:56]req_shift_opened done [22:33:56]requested_item shift.open_date is exist - process it [22:33:56]req_shift_open_date [22:33:56]req_shift_open_date done [22:33:56]produce_requested_data done [22:33:56]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162663,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:33:56]process_action_free close_receipt [22:33:56]json_value_free [22:33:56]json_value_free done [22:33:56]process_json_proto returns [22:33:56]Send response to host [22:33:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162663,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:33:56]free response buf [22:33:56]execute_script done [22:33:56]execute_script returns [22:33:56]free content buf [22:33:56]Sock 10.Close socket [22:33:56]Sock 10.Thread stoped [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:37]accept exits with 7 [22:34:37]New connection [22:34:37]New thread 3067366756 created [22:34:37]Thread 3067510116 joined [22:34:37]Waiting for new connection... [22:34:37] Sock 7.Parse request [22:34:37]Sock 7.Check first char [22:34:37]Sock 7.First char is OK [22:34:37]request: POST /json_proto HTTP/1.0 [22:34:37]Method: POST [22:34:37]URL: /json_proto [22:34:37]Method is POST - this is cgi request [22:34:37]url: /json_proto [22:34:37]query_string will be loaded in cgi processing [22:34:37]execute_cgi json_proto POST (null) [22:34:37]execute_cgi path=json_proto method=POST [22:34:37]POST find Content-Length [22:34:37]Host: 172.17.39.67:8080 [22:34:37]Content-Length: 826 [22:34:37]Content-Type: application/json [22:34:37] [22:34:37]POST finish read [22:34:37]Found Content-Length = 826 [22:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 130.000, "sum" : 9438.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:37]execute_script... [22:34:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 130.000, "sum" : 9438.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 9438.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:37]POST & json_proto [22:34:37]process_json_proto [22:34:37]json parsed OK: [22:34:37]protocol is kg_v1.0 [22:34:37]action value=close_receipt [22:34:37]process_action close_receipt [22:34:37]cmd_close_receipt [22:34:37]MH_GetDate [22:34:37]Write to MH i2c: F0 00 00 4B 2C 66 [22:34:37]Write i2c OK [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: F0 [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: F0 09 00 [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: F0 09 00 4B 2C 00 FF 00 93 66 86 7C 92 66 61 [22:34:37]GetLastDocTimeStamp 1720910032 [22:34:37]current date 1720910079 [22:34:37]FM_GetShiftState [22:34:37]SAM_PROTO_GetShiftState [22:34:37]wFMCommunicate request_size=4 [22:34:37]MH_SAM_APDU [22:34:37]CAPDU: 80 13 01 00 [22:34:37]Write to MH i2c: E2 08 00 4C 2C 80 13 01 00 00 00 00 00 F5 [22:34:37]Write i2c OK [22:34:37]MH_I2C_Read... [22:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:37]Read from MH i2c: E2 [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: E2 0E 00 [22:34:37]MH_I2C_Read... [22:34:37]Read from MH i2c: E2 0E 00 4C 2C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EF [22:34:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:34:37]wFMCommunicate OK [22:34:37]SAM_PROTO_GetShiftState done [22:34:37]FM_GetShiftState done [22:34:37]opened in 1720828979 [22:34:37]opened+sec_in_day 1720915379 [22:34:37]quantity*price = 943800 [22:34:37]sum+1 = 943801 [22:34:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9438.00 НСП 1% : 83.52 НДС 12% : 1002.26 Наличными: 0.00 Безнал.: 9438.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 332 13.07.2024 22:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162664 ФПД: 219097176091178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223439&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162664&fm=219097176091178&tin=02508201610067®Number=0000000000090858&sum=943800 [22:34:38]StoreToDocumentArchive [22:34:38]shift 462 fd 162664 [22:34:38]save to /storage/0462/doc_00162664 [22:34:38]save last doc name /storage/0462/doc_00162664 to /storage/kkm_last_doc_name [22:34:38]save OK [22:34:38]Clear old archive folders... [22:34:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:34:38]tlvbuf is 006E3440 [22:34:38]SAM_PROTO_ClearQueue [22:34:38]wFMCommunicate request_size=4 [22:34:38]MH_SAM_APDU [22:34:38]CAPDU: 80 09 00 00 [22:34:38]Write to MH i2c: E2 08 00 59 2C 80 09 00 00 00 00 00 00 F7 [22:34:38]Write i2c OK [22:34:38]MH_I2C_Read... [22:34:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:38]Read from MH i2c: E2 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: E2 03 00 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: E2 03 00 59 2C 00 90 00 F9 [22:34:38]RAPDU: 90 00 [22:34:38]wFMCommunicate OK [22:34:38]SAM_PROTO_ClearQueue done [22:34:38]KKMCreateOFDPacket [22:34:38]OFDProtocolAddRootSTLVToBuf [22:34:38]FM_MakeSignedData [22:34:38]FM_MakeSignedData [22:34:38]SAM_PROTO_SignData [22:34:38]wFMCommunicate request_size=4 [22:34:38]MH_SAM_APDU [22:34:38]CAPDU: 80 0D 01 02 [22:34:38]Write to MH i2c: E2 08 00 5A 2C 80 0D 01 02 00 00 00 00 FF [22:34:38]Write i2c OK [22:34:38]MH_I2C_Read... [22:34:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:38]Read from MH i2c: E2 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: E2 03 00 [22:34:38]MH_I2C_Read... [22:34:38]Read from MH i2c: E2 03 00 5A 2C 00 90 00 FA [22:34:38]RAPDU: 90 00 [22:34:38]wFMCommunicate OK [22:34:38]wFMCommunicate request_size=255 [22:34:38]MH_SAM_APDU [22:34:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B8 66 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 66 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 87 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 66 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FF 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7B 02 00 35 04 06 00 [22:34:38]Write to MH i2c: E2 02 01 5B 2C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B8 66 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 66 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 87 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 66 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FF 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7B 02 00 35 04 06 00 00 00 E1 [22:34:38]Write i2c OK [22:34:38]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 5B 2C 00 90 00 FB [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]wFMCommunicate request_size=11 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 02 02 06 C7 44 89 5A 2A 2A [22:34:39]Write to MH i2c: E2 0E 00 5C 2C 80 0D 02 02 06 00 C7 44 89 5A 2A 2A 00 00 50 [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 03 00 5C 2C 00 90 00 FC [22:34:39]RAPDU: 90 00 [22:34:39]wFMCommunicate OK [22:34:39]wFMCommunicate request_size=4 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 0D 03 02 [22:34:39]Write to MH i2c: E2 08 00 5D 2C 80 0D 03 02 00 00 00 00 04 [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 0B 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 0B 00 5D 2C 00 42 A6 81 53 31 CC 89 CB 90 00 12 [22:34:39]RAPDU: 42 A6 81 53 31 CC 89 CB 90 00 [22:34:39]wFMCommunicate OK [22:34:39]SAM_PROTO_SignData done [22:34:39]FM_MakeSignedData done [22:34:39]CreateOFDProtocolMessage [22:34:39]wFMCommunicate request_size=4 [22:34:39]MH_SAM_APDU [22:34:39]CAPDU: 80 11 00 00 [22:34:39]Write to MH i2c: E2 08 00 5E 2C 80 11 00 00 00 00 00 00 04 [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:39]Read from MH i2c: E2 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 17 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: E2 17 00 5E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 64 [22:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:34:39]wFMCommunicate OK [22:34:39]CreateOFDProtocolMessage done [22:34:39]OFDSenderStorePacket 162664 [22:34:39]StoreOFDPacket docnum=162664 [22:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6A 9B 08 01 76 E7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B8 66 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 66 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 87 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 66 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FF 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7B 02 00 35 04 06 00 C7 44 89 5A 2A 2A 42 A6 81 53 31 CC 89 CB [22:34:39]CheckFolder [22:34:39]dirname=/storage/ofd_packets [22:34:39]CheckFolder done [22:34:39]ProducePacketName [22:34:39]name=ofd_packets/00162664 [22:34:39]NVStorageSaveData ofd_packets/00162664 [22:34:39]File name is /storage/ofd_packets/00162664 [22:34:39]Write 302 bytes [22:34:39]NVStorageSaveData done [22:34:39]OFDSenderStorePacket done [22:34:39]KKMCreateOFDPacket done [22:34:39]NVStorageSaveData kkm_last_timestamp [22:34:39]File name is /storage/kkm_last_timestamp [22:34:39]Write 4 bytes [22:34:39]NVStorageSaveData done [22:34:39]ExternCall_PrintAddStr [22:34:39]wPrintStart [22:34:39]Write to MH i2c: 01 00 00 5F 2C 8B [22:34:39]Write i2c OK [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: 01 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: 01 07 00 [22:34:39]MH_I2C_Read... [22:34:39]Read from MH i2c: 01 07 00 5F 2C 00 00 00 00 00 FF 0F A0 [22:34:39]RasterBufferAndPrint [22:34:39]line Счет N : (1)1319241 [22:34:39]line ИНН: 02508201610067 [22:34:39]line Контрольно-Кассовый Чек [22:34:39]line ПРОДАЖА [22:34:39]line ТРК (МРК, ГНК) : 61 [22:34:39]line Товар: 2710194210 [22:34:39]line ДТ(л)-К-5 [22:34:39]line 130.000 * 72.60 [22:34:39]line = 9438.00 [22:34:39]line НДС 12% НСП 1% [22:34:39]line > о реализуемом товаре [22:34:39]line ИТОГО: 9438.00 [22:34:39]line НСП 1% : 83.52 [22:34:39]line НДС 12% : 1002.26 [22:34:39]line Наличными: 0.00 [22:34:39]line Безнал.: 9438.00 [22:34:39]line Место: АЗС № 140 "Партнер Нефть" [22:34:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:34:39]line СНО: Общий режим [22:34:39]line Чек 332 13.07.2024 22:34 [22:34:39]line Смена: 462 ФФД: 1.0 [22:34:39]line ЗНМ: 0300000129 [22:34:39]line РНМ: 0000000000090858 [22:34:39]line Версия ККМ: 001 [22:34:39]line Платежная система: Бакай Банк [22:34:39]line ФМ: 0000000000874899 [22:34:39]line ФД: 162664 [22:34:39]line ФПД: 219097176091178 [22:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223439&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162664&fm=219097176091178&tin=02508201610067®Number=0000000000090858&sum=943800 [22:34:39]OFD Sender: Processing packet 162664 [packets to send 106, broken 105] [22:34:39]ProducePacketName [22:34:39]name=ofd_packets/00162664 [22:34:39]OFD Sender: To server: pG, [22:34:39]CommunicateWithHost lk.salyk.kg:30040 [22:34:39]ConnectInit lk.salyk.kg [22:34:39]written 0, free lines is 4095 [22:34:39]Connected sock=10 [22:34:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6A 9B 08 01 76 E7 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D0 FB 01 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B8 66 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 66 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 87 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 66 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FF 00 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7B 02 00 35 04 06 00 C7 44 89 5A 2A 2A 42 A6 81 53 31 CC 89 CB [22:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 02 98 47 00 D5 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 68 7B 02 00 F4 03 04 00 0D AD 92 66 B6 04 01 00 00 56 3F 24 B0 75 7D FC 1C [22:34:39]CommunicateWithHost err = 0 [22:34:39]CheckOFDResponse [22:34:39]1017 (14) - 77093643461234 [22:34:39]1041 (16) - 0000000000874899 [22:34:39]1040 (4) - 162664 [22:34:39]1012 (4) - 13.07.2024 16:36 [22:34:39]1206 (1) - 0 [22:34:39]OFD Sender: Remove packet 162664 [22:34:39]ProducePacketName [22:34:39]name=ofd_packets/00162664 [22:34:39]NVStorageDeleteData [22:34:40]Write to MH i2c: 01 00 00 89 2C B5 [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 07 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: 01 07 00 89 2C 00 00 00 00 00 F9 0C C1 [22:34:40]RasterBufferAndPrint [22:34:40]line [22:34:40]line [22:34:40]line [22:34:40]line [22:34:40]line [22:34:40]written 0, free lines is 3326 [22:34:40]MH_Cut [22:34:40]Write to MH i2c: D1 01 00 90 2C 01 8E [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: D1 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: D1 01 00 [22:34:40]MH_I2C_Read... [22:34:40]Read from MH i2c: D1 01 00 90 2C 00 8D [22:34:40]Write to MH i2c: 01 00 00 91 2C BD [22:34:40]Write i2c OK [22:34:40]MH_I2C_Read... [22:34:40]OFD Sender: No OFD packet to send [22:34:40]*** Cut start [22:34:40]*** Purtial cut [22:34:40]*** Stage 1: CUTSNS_PIN = 1 [22:34:41]Read from MH i2c: 01 [22:34:41]MH_I2C_Read... [22:34:41]*** Stop cut motor [22:34:41]*** Cut end [22:34:41]Read from MH i2c: 01 07 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: 01 07 00 91 2C 00 00 00 00 00 FF 0F D2 [22:34:41]process_action close_receipt done [22:34:41]requested_data is exist [22:34:41]produce_requested_data [22:34:41]requested_item fm.sn is exist - process it [22:34:41]wFMCommunicate request_size=4 [22:34:41]MH_SAM_APDU [22:34:41]CAPDU: 80 11 00 00 [22:34:41]Write to MH i2c: E2 08 00 92 2C 80 11 00 00 00 00 00 00 38 [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 17 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 17 00 92 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 98 [22:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:34:41]wFMCommunicate OK [22:34:41]requested_item fd.num is exist - process it [22:34:41]SAM_PROTO_GetFieldsCounters [22:34:41]wFMCommunicate request_size=4 [22:34:41]MH_SAM_APDU [22:34:41]CAPDU: 80 13 00 00 [22:34:41]Write to MH i2c: E2 08 00 93 2C 80 13 00 00 00 00 00 00 3B [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 62 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 62 00 93 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 68 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [22:34:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 68 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:41]wFMCommunicate OK [22:34:41]SAM_PROTO_GetFieldsCounters done [22:34:41]requested_item shift.num is exist - process it [22:34:41]requested_item shift.opened is exist - process it [22:34:41]req_shift_opened [22:34:41]FM_GetShiftState [22:34:41]SAM_PROTO_GetShiftState [22:34:41]wFMCommunicate request_size=4 [22:34:41]MH_SAM_APDU [22:34:41]CAPDU: 80 13 01 00 [22:34:41]Write to MH i2c: E2 08 00 94 2C 80 13 01 00 00 00 00 00 3D [22:34:41]Write i2c OK [22:34:41]MH_I2C_Read... [22:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:41]Read from MH i2c: E2 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 0E 00 [22:34:41]MH_I2C_Read... [22:34:41]Read from MH i2c: E2 0E 00 94 2C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 37 [22:34:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:34:41]wFMCommunicate OK [22:34:41]SAM_PROTO_GetShiftState done [22:34:41]FM_GetShiftState done [22:34:41]req_shift_opened done [22:34:41]requested_item shift.open_date is exist - process it [22:34:41]req_shift_open_date [22:34:41]req_shift_open_date done [22:34:41]produce_requested_data done [22:34:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162664,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:34:41]process_action_free close_receipt [22:34:41]json_value_free [22:34:41]json_value_free done [22:34:41]process_json_proto returns [22:34:41]Send response to host [22:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162664,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:34:41]free response buf [22:34:41]execute_script done [22:34:41]execute_script returns [22:34:41]free content buf [22:34:41]Sock 7.Close socket [22:34:41]Sock 7.Thread stoped [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:00]accept exits with 9 [22:35:00]New connection [22:35:00]New thread 3067510116 created [22:35:00]Thread 3067366756 joined [22:35:00]Waiting for new connection... [22:35:00] Sock 9.Parse request [22:35:00]Sock 9.Check first char [22:35:00]Sock 9.First char is OK [22:35:00]request: POST /json_proto HTTP/1.0 [22:35:00]Method: POST [22:35:00]URL: /json_proto [22:35:00]Method is POST - this is cgi request [22:35:00]url: /json_proto [22:35:00]query_string will be loaded in cgi processing [22:35:00]execute_cgi json_proto POST (null) [22:35:00]execute_cgi path=json_proto method=POST [22:35:00]POST find Content-Length [22:35:00]Host: 172.17.39.67:8080 [22:35:00]Content-Length: 678 [22:35:00]Content-Type: application/json [22:35:00] [22:35:00]POST finish read [22:35:00]Found Content-Length = 678 [22:35:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 2.960, "sum" : 220.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:00]execute_script... [22:35: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)1319244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 2.960, "sum" : 220.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:00]POST & json_proto [22:35:00]process_json_proto [22:35:00]json parsed OK: [22:35:00]protocol is kg_v1.0 [22:35:00]action value=close_receipt [22:35:00]process_action close_receipt [22:35:00]cmd_close_receipt [22:35:00]MH_GetDate [22:35:00]Write to MH i2c: F0 00 00 95 2C B0 [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: F0 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: F0 09 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: F0 09 00 95 2C 00 16 01 93 66 86 7C 92 66 C3 [22:35:00]GetLastDocTimeStamp 1720910079 [22:35:00]current date 1720910102 [22:35:00]FM_GetShiftState [22:35:00]SAM_PROTO_GetShiftState [22:35:00]wFMCommunicate request_size=4 [22:35:00]MH_SAM_APDU [22:35:00]CAPDU: 80 13 01 00 [22:35:00]Write to MH i2c: E2 08 00 96 2C 80 13 01 00 00 00 00 00 3F [22:35:00]Write i2c OK [22:35:00]MH_I2C_Read... [22:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:00]Read from MH i2c: E2 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: E2 0E 00 [22:35:00]MH_I2C_Read... [22:35:00]Read from MH i2c: E2 0E 00 96 2C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 39 [22:35:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:35:00]wFMCommunicate OK [22:35:00]SAM_PROTO_GetShiftState done [22:35:00]FM_GetShiftState done [22:35:00]opened in 1720828979 [22:35:00]opened+sec_in_day 1720915379 [22:35:00]quantity*price = 22022 [22:35:00]sum+1 = 22023 [22:35:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.39 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 333 13.07.2024 22:35 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162665 ФПД: 122413368787524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223502&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162665&fm=122413368787524&tin=02508201610067®Number=0000000000090858&sum=22000 [22:35:01]StoreToDocumentArchive [22:35:01]shift 462 fd 162665 [22:35:01]save to /storage/0462/doc_00162665 [22:35:01]save last doc name /storage/0462/doc_00162665 to /storage/kkm_last_doc_name [22:35:01]save OK [22:35:01]Clear old archive folders... [22:35:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:35:01]tlvbuf is 006B93A0 [22:35:01]SAM_PROTO_ClearQueue [22:35:01]wFMCommunicate request_size=4 [22:35:01]MH_SAM_APDU [22:35:01]CAPDU: 80 09 00 00 [22:35:01]Write to MH i2c: E2 08 00 A3 2C 80 09 00 00 00 00 00 00 41 [22:35:01]Write i2c OK [22:35:01]MH_I2C_Read... [22:35:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:01]Read from MH i2c: E2 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 03 00 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 03 00 A3 2C 00 90 00 43 [22:35:01]RAPDU: 90 00 [22:35:01]wFMCommunicate OK [22:35:01]SAM_PROTO_ClearQueue done [22:35:01]KKMCreateOFDPacket [22:35:01]OFDProtocolAddRootSTLVToBuf [22:35:01]FM_MakeSignedData [22:35:01]FM_MakeSignedData [22:35:01]SAM_PROTO_SignData [22:35:01]wFMCommunicate request_size=4 [22:35:01]MH_SAM_APDU [22:35:01]CAPDU: 80 0D 01 02 [22:35:01]Write to MH i2c: E2 08 00 A4 2C 80 0D 01 02 00 00 00 00 49 [22:35:01]Write i2c OK [22:35:01]MH_I2C_Read... [22:35:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:01]Read from MH i2c: E2 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 03 00 [22:35:01]MH_I2C_Read... [22:35:01]Read from MH i2c: E2 03 00 A4 2C 00 90 00 44 [22:35:01]RAPDU: 90 00 [22:35:01]wFMCommunicate OK [22:35:01]wFMCommunicate request_size=255 [22:35:01]MH_SAM_APDU [22:35:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 16 01 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7B 02 00 35 04 06 00 6F [22:35:01]Write to MH i2c: E2 02 01 A5 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 90 0B 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 16 01 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7B 02 00 35 04 06 00 6F 00 00 88 [22:35:01]Write i2c OK [22:35:01]MH_I2C_Read... [22:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:02]Read from MH i2c: E2 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 A5 2C 00 90 00 45 [22:35:02]RAPDU: 90 00 [22:35:02]wFMCommunicate OK [22:35:02]wFMCommunicate request_size=10 [22:35:02]MH_SAM_APDU [22:35:02]CAPDU: 80 0D 02 02 05 55 95 5C C2 44 [22:35:02]Write to MH i2c: E2 0D 00 A6 2C 80 0D 02 02 05 00 55 95 5C C2 44 00 00 A2 [22:35:02]Write i2c OK [22:35:02]MH_I2C_Read... [22:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:02]Read from MH i2c: E2 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 03 00 A6 2C 00 90 00 46 [22:35:02]RAPDU: 90 00 [22:35:02]wFMCommunicate OK [22:35:02]wFMCommunicate request_size=4 [22:35:02]MH_SAM_APDU [22:35:02]CAPDU: 80 0D 03 02 [22:35:02]Write to MH i2c: E2 08 00 A7 2C 80 0D 03 02 00 00 00 00 4E [22:35:02]Write i2c OK [22:35:02]MH_I2C_Read... [22:35:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:02]Read from MH i2c: E2 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 0B 00 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 0B 00 A7 2C 00 7A 69 21 6E EE 14 75 CE 90 00 06 [22:35:02]RAPDU: 7A 69 21 6E EE 14 75 CE 90 00 [22:35:02]wFMCommunicate OK [22:35:02]SAM_PROTO_SignData done [22:35:02]FM_MakeSignedData done [22:35:02]CreateOFDProtocolMessage [22:35:02]wFMCommunicate request_size=4 [22:35:02]MH_SAM_APDU [22:35:02]CAPDU: 80 11 00 00 [22:35:02]Write to MH i2c: E2 08 00 A8 2C 80 11 00 00 00 00 00 00 4E [22:35:02]Write i2c OK [22:35:02]MH_I2C_Read... [22:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:02]Read from MH i2c: E2 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 17 00 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: E2 17 00 A8 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AE [22:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:35:02]wFMCommunicate OK [22:35:02]CreateOFDProtocolMessage done [22:35:02]OFDSenderStorePacket 162665 [22:35:02]StoreOFDPacket docnum=162665 [22:35:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 AB B0 07 01 47 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 16 01 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7B 02 00 35 04 06 00 6F 55 95 5C C2 44 7A 69 21 6E EE 14 75 CE [22:35:02]CheckFolder [22:35:02]dirname=/storage/ofd_packets [22:35:02]CheckFolder done [22:35:02]ProducePacketName [22:35:02]name=ofd_packets/00162665 [22:35:02]NVStorageSaveData ofd_packets/00162665 [22:35:02]File name is /storage/ofd_packets/00162665 [22:35:02]Write 301 bytes [22:35:02]NVStorageSaveData done [22:35:02]OFDSenderStorePacket done [22:35:02]KKMCreateOFDPacket done [22:35:02]NVStorageSaveData kkm_last_timestamp [22:35:02]File name is /storage/kkm_last_timestamp [22:35:02]Write 4 bytes [22:35:02]NVStorageSaveData done [22:35:02]ExternCall_PrintAddStr [22:35:02]wPrintStart [22:35:02]Write to MH i2c: 01 00 00 A9 2C D5 [22:35:02]Write i2c OK [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: 01 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: 01 07 00 [22:35:02]MH_I2C_Read... [22:35:02]Read from MH i2c: 01 07 00 A9 2C 00 00 00 00 00 FF 0F EA [22:35:02]RasterBufferAndPrint [22:35:02]line Счет N : (1)1319244 [22:35:02]line ИНН: 02508201610067 [22:35:02]line Контрольно-Кассовый Чек [22:35:02]line ПРОДАЖА [22:35:02]line ТРК (МРК, ГНК) : 44 [22:35:02]line Товар: 2710124500 [22:35:02]line Аи-95-К-5 [22:35:02]line 2.960 * 74.40 [22:35:02]line = 220.22 [22:35:02]line НДС 12% НСП 1% [22:35:02]line > о реализуемом товаре [22:35:02]line ОКРУГЛЕНИЕ: -0.22 [22:35:02]line ИТОГО: 220.00 [22:35:02]line Внесено: 220.00 [22:35:02]line СДАЧА: 0.00 [22:35:02]line НСП 1% : 1.95 [22:35:02]line НДС 12% : 23.39 [22:35:02]line Наличными: 220.00 [22:35:02]line Безнал.: 0.00 [22:35:02]line Место: АЗС № 140 "Партнер Нефть" [22:35:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:35:02]line СНО: Общий режим [22:35:02]line Чек 333 13.07.2024 22:35 [22:35:02]line Смена: 462 ФФД: 1.0 [22:35:02]line ЗНМ: 0300000129 [22:35:02]line РНМ: 0000000000090858 [22:35:02]line Версия ККМ: 001 [22:35:02]line ФМ: 0000000000874899 [22:35:02]line ФД: 162665 [22:35:02]line ФПД: 122413368787524 [22:35:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223502&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162665&fm=122413368787524&tin=02508201610067®Number=0000000000090858&sum=22000 [22:35:02]OFD Sender: Processing packet 162665 [packets to send 106, broken 105] [22:35:02]ProducePacketName [22:35:02]name=ofd_packets/00162665 [22:35:02]OFD Sender: To server: pG, [22:35:02]CommunicateWithHost lk.salyk.kg:30040 [22:35:02]ConnectInit lk.salyk.kg [22:35:02]written 0, free lines is 4095 [22:35:02]Connected sock=10 [22:35:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 AB B0 07 01 47 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 90 0B 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 06 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 16 01 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7B 02 00 35 04 06 00 6F 55 95 5C C2 44 7A 69 21 6E EE 14 75 CE [22:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2E 96 47 00 34 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 69 7B 02 00 F4 03 04 00 24 AD 92 66 B6 04 01 00 00 3E F4 A4 AC 88 75 F3 EB [22:35:03]CommunicateWithHost err = 0 [22:35:03]CheckOFDResponse [22:35:03]1017 (14) - 77093643461234 [22:35:03]1041 (16) - 0000000000874899 [22:35:03]1040 (4) - 162665 [22:35:03]1012 (4) - 13.07.2024 16:36 [22:35:03]1206 (1) - 0 [22:35:03]OFD Sender: Remove packet 162665 [22:35:03]ProducePacketName [22:35:03]name=ofd_packets/00162665 [22:35:03]NVStorageDeleteData [22:35:03]Write to MH i2c: 01 00 00 D4 2C 00 [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 07 00 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: 01 07 00 D4 2C 00 00 00 00 00 EE 0C 01 [22:35:03]RasterBufferAndPrint [22:35:03]line [22:35:03]line [22:35:03]line [22:35:03]line [22:35:03]line [22:35:03]written 0, free lines is 3319 [22:35:03]MH_Cut [22:35:03]Write to MH i2c: D1 01 00 DB 2C 01 D9 [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: D1 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: D1 01 00 [22:35:03]MH_I2C_Read... [22:35:03]Read from MH i2c: D1 01 00 DB 2C 00 D8 [22:35:03]Write to MH i2c: 01 00 00 DC 2C 08 [22:35:03]Write i2c OK [22:35:03]MH_I2C_Read... [22:35:03]OFD Sender: No OFD packet to send [22:35:03]*** Cut start [22:35:03]*** Purtial cut [22:35:03]*** CUTSNS_PIN = 0 [22:35:04]*** Stage 1: CUTSNS_PIN = 1 [22:35:05]Read from MH i2c: 01 [22:35:05]MH_I2C_Read... [22:35:05]*** Stop cut motor [22:35:05]*** Cut end [22:35:05]Read from MH i2c: 01 07 00 [22:35:05]MH_I2C_Read... [22:35:05]Read from MH i2c: 01 07 00 DC 2C 00 00 00 00 00 FF 0F 1D [22:35:05]process_action close_receipt done [22:35:05]requested_data is exist [22:35:05]produce_requested_data [22:35:05]requested_item fm.sn is exist - process it [22:35:05]wFMCommunicate request_size=4 [22:35:05]MH_SAM_APDU [22:35:05]CAPDU: 80 11 00 00 [22:35:05]Write to MH i2c: E2 08 00 DD 2C 80 11 00 00 00 00 00 00 83 [22:35:05]Write i2c OK [22:35:05]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 17 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 17 00 DD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E3 [22:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:35:06]wFMCommunicate OK [22:35:06]requested_item fd.num is exist - process it [22:35:06]SAM_PROTO_GetFieldsCounters [22:35:06]wFMCommunicate request_size=4 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 13 00 00 [22:35:06]Write to MH i2c: E2 08 00 DE 2C 80 13 00 00 00 00 00 00 86 [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 62 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 62 00 DE 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 69 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [22:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 69 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:35:06]wFMCommunicate OK [22:35:06]SAM_PROTO_GetFieldsCounters done [22:35:06]requested_item shift.num is exist - process it [22:35:06]requested_item shift.opened is exist - process it [22:35:06]req_shift_opened [22:35:06]FM_GetShiftState [22:35:06]SAM_PROTO_GetShiftState [22:35:06]wFMCommunicate request_size=4 [22:35:06]MH_SAM_APDU [22:35:06]CAPDU: 80 13 01 00 [22:35:06]Write to MH i2c: E2 08 00 DF 2C 80 13 01 00 00 00 00 00 88 [22:35:06]Write i2c OK [22:35:06]MH_I2C_Read... [22:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:06]Read from MH i2c: E2 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 0E 00 [22:35:06]MH_I2C_Read... [22:35:06]Read from MH i2c: E2 0E 00 DF 2C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 82 [22:35:06]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:35:06]wFMCommunicate OK [22:35:06]SAM_PROTO_GetShiftState done [22:35:06]FM_GetShiftState done [22:35:06]req_shift_opened done [22:35:06]requested_item shift.open_date is exist - process it [22:35:06]req_shift_open_date [22:35:06]req_shift_open_date done [22:35:06]produce_requested_data done [22:35:06]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162665,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:35:06]process_action_free close_receipt [22:35:06]json_value_free [22:35:06]json_value_free done [22:35:06]process_json_proto returns [22:35:06]Send response to host [22:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162665,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:35:06]free response buf [22:35:06]execute_script done [22:35:06]execute_script returns [22:35:06]free content buf [22:35:06]Sock 9.Close socket [22:35:06]Sock 9.Thread stoped [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:46]accept exits with 7 [22:39:46]New connection [22:39:46]New thread 3067366756 created [22:39:46]Thread 3067510116 joined [22:39:46]Waiting for new connection... [22:39:46] Sock 7.Parse request [22:39:46]Sock 7.Check first char [22:39:46]Sock 7.First char is OK [22:39:46]request: POST /json_proto HTTP/1.0 [22:39:46]Method: POST [22:39:46]URL: /json_proto [22:39:46]Method is POST - this is cgi request [22:39:46]url: /json_proto [22:39:46]query_string will be loaded in cgi processing [22:39:46]execute_cgi json_proto POST (null) [22:39:46]execute_cgi path=json_proto method=POST [22:39:46]POST find Content-Length [22:39:46]Host: 172.17.39.67:8080 [22:39:46]Content-Length: 678 [22:39:46]Content-Type: application/json [22:39:46] [22:39:46]POST finish read [22:39:46]Found Content-Length = 678 [22:39:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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:39:46]execute_script... [22:39: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)1319247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.050, "sum" : 600.02, "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:39:46]POST & json_proto [22:39:46]process_json_proto [22:39:46]json parsed OK: [22:39:46]protocol is kg_v1.0 [22:39:46]action value=close_receipt [22:39:46]process_action close_receipt [22:39:46]cmd_close_receipt [22:39:46]MH_GetDate [22:39:46]Write to MH i2c: F0 00 00 E0 2C FB [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: F0 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: F0 09 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: F0 09 00 E0 2C 00 34 02 93 66 86 7C 92 66 2D [22:39:46]GetLastDocTimeStamp 1720910102 [22:39:46]current date 1720910388 [22:39:46]FM_GetShiftState [22:39:46]SAM_PROTO_GetShiftState [22:39:46]wFMCommunicate request_size=4 [22:39:46]MH_SAM_APDU [22:39:46]CAPDU: 80 13 01 00 [22:39:46]Write to MH i2c: E2 08 00 E1 2C 80 13 01 00 00 00 00 00 8A [22:39:46]Write i2c OK [22:39:46]MH_I2C_Read... [22:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:46]Read from MH i2c: E2 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 0E 00 [22:39:46]MH_I2C_Read... [22:39:46]Read from MH i2c: E2 0E 00 E1 2C 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 84 [22:39:46]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:39:46]wFMCommunicate OK [22:39:46]SAM_PROTO_GetShiftState done [22:39:46]FM_GetShiftState done [22:39:46]opened in 1720828979 [22:39:46]opened+sec_in_day 1720915379 [22:39:46]quantity*price = 60001 [22:39:46]sum+1 = 60003 [22:39:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 334 13.07.2024 22:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162666 ФПД: 185723311206870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223948&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162666&fm=185723311206870&tin=02508201610067®Number=0000000000090858&sum=60000 [22:39:47]StoreToDocumentArchive [22:39:47]shift 462 fd 162666 [22:39:47]save to /storage/0462/doc_00162666 [22:39:47]save last doc name /storage/0462/doc_00162666 to /storage/kkm_last_doc_name [22:39:47]save OK [22:39:47]Clear old archive folders... [22:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:39:47]tlvbuf is 006F5F50 [22:39:47]SAM_PROTO_ClearQueue [22:39:47]wFMCommunicate request_size=4 [22:39:47]MH_SAM_APDU [22:39:47]CAPDU: 80 09 00 00 [22:39:47]Write to MH i2c: E2 08 00 EE 2C 80 09 00 00 00 00 00 00 8C [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:39:47]Read from MH i2c: E2 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 03 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 03 00 EE 2C 00 90 00 8E [22:39:47]RAPDU: 90 00 [22:39:47]wFMCommunicate OK [22:39:47]SAM_PROTO_ClearQueue done [22:39:47]KKMCreateOFDPacket [22:39:47]OFDProtocolAddRootSTLVToBuf [22:39:47]FM_MakeSignedData [22:39:47]FM_MakeSignedData [22:39:47]SAM_PROTO_SignData [22:39:47]wFMCommunicate request_size=4 [22:39:47]MH_SAM_APDU [22:39:47]CAPDU: 80 0D 01 02 [22:39:47]Write to MH i2c: E2 08 00 EF 2C 80 0D 01 02 00 00 00 00 94 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:39:47]Read from MH i2c: E2 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 03 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 03 00 EF 2C 00 90 00 8F [22:39:47]RAPDU: 90 00 [22:39:47]wFMCommunicate OK [22:39:47]wFMCommunicate request_size=255 [22:39:47]MH_SAM_APDU [22:39:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 4E 01 00 00 F4 03 04 00 34 02 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7B 02 00 35 04 06 00 A8 [22:39:47]Write to MH i2c: E2 02 01 F0 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 4E 01 00 00 F4 03 04 00 34 02 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7B 02 00 35 04 06 00 A8 00 00 F9 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:47]Read from MH i2c: E2 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 03 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 03 00 F0 2C 00 90 00 90 [22:39:47]RAPDU: 90 00 [22:39:47]wFMCommunicate OK [22:39:47]wFMCommunicate request_size=10 [22:39:47]MH_SAM_APDU [22:39:47]CAPDU: 80 0D 02 02 05 EA 13 FD B1 D6 [22:39:47]Write to MH i2c: E2 0D 00 F1 2C 80 0D 02 02 05 00 EA 13 FD B1 D6 00 00 22 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:39:47]Read from MH i2c: E2 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 03 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 03 00 F1 2C 00 90 00 91 [22:39:47]RAPDU: 90 00 [22:39:47]wFMCommunicate OK [22:39:47]wFMCommunicate request_size=4 [22:39:47]MH_SAM_APDU [22:39:47]CAPDU: 80 0D 03 02 [22:39:47]Write to MH i2c: E2 08 00 F2 2C 80 0D 03 02 00 00 00 00 99 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:39:47]Read from MH i2c: E2 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 0B 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 0B 00 F2 2C 00 CF 89 90 21 66 CB BD E3 90 00 74 [22:39:47]RAPDU: CF 89 90 21 66 CB BD E3 90 00 [22:39:47]wFMCommunicate OK [22:39:47]SAM_PROTO_SignData done [22:39:47]FM_MakeSignedData done [22:39:47]CreateOFDProtocolMessage [22:39:47]wFMCommunicate request_size=4 [22:39:47]MH_SAM_APDU [22:39:47]CAPDU: 80 11 00 00 [22:39:47]Write to MH i2c: E2 08 00 F3 2C 80 11 00 00 00 00 00 00 99 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:47]Read from MH i2c: E2 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 17 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: E2 17 00 F3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F9 [22:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:39:47]wFMCommunicate OK [22:39:47]CreateOFDProtocolMessage done [22:39:47]OFDSenderStorePacket 162666 [22:39:47]StoreOFDPacket docnum=162666 [22:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 16 04 07 01 4B E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 4E 01 00 00 F4 03 04 00 34 02 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7B 02 00 35 04 06 00 A8 EA 13 FD B1 D6 CF 89 90 21 66 CB BD E3 [22:39:47]CheckFolder [22:39:47]dirname=/storage/ofd_packets [22:39:47]CheckFolder done [22:39:47]ProducePacketName [22:39:47]name=ofd_packets/00162666 [22:39:47]NVStorageSaveData ofd_packets/00162666 [22:39:47]File name is /storage/ofd_packets/00162666 [22:39:47]Write 301 bytes [22:39:47]NVStorageSaveData done [22:39:47]OFDSenderStorePacket done [22:39:47]KKMCreateOFDPacket done [22:39:47]NVStorageSaveData kkm_last_timestamp [22:39:47]File name is /storage/kkm_last_timestamp [22:39:47]Write 4 bytes [22:39:47]NVStorageSaveData done [22:39:47]ExternCall_PrintAddStr [22:39:47]wPrintStart [22:39:47]Write to MH i2c: 01 00 00 F4 2C 20 [22:39:47]Write i2c OK [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: 01 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: 01 07 00 [22:39:47]MH_I2C_Read... [22:39:47]Read from MH i2c: 01 07 00 F4 2C 00 00 00 00 00 FF 0F 35 [22:39:47]RasterBufferAndPrint [22:39:47]line Счет N : (1)1319247 [22:39:47]line ИНН: 02508201610067 [22:39:47]line Контрольно-Кассовый Чек [22:39:47]line ПРОДАЖА [22:39:47]line ТРК (МРК, ГНК) : 53 [22:39:47]line Товар: 2710124130 [22:39:47]line Аи-92-К-5 [22:39:47]line 9.050 * 66.30 [22:39:47]line = 600.02 [22:39:47]line НДС 12% НСП 1% [22:39:47]line > о реализуемом товаре [22:39:47]line ОКРУГЛЕНИЕ: -0.02 [22:39:47]line ИТОГО: 600.00 [22:39:47]line Внесено: 600.00 [22:39:47]line СДАЧА: 0.00 [22:39:47]line НСП 1% : 5.31 [22:39:47]line НДС 12% : 63.72 [22:39:47]line Наличными: 600.00 [22:39:47]line Безнал.: 0.00 [22:39:47]line Место: АЗС № 140 "Партнер Нефть" [22:39:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:39:47]line СНО: Общий режим [22:39:47]line Чек 334 13.07.2024 22:39 [22:39:47]line Смена: 462 ФФД: 1.0 [22:39:47]line ЗНМ: 0300000129 [22:39:47]line РНМ: 0000000000090858 [22:39:47]line Версия ККМ: 001 [22:39:47]line ФМ: 0000000000874899 [22:39:47]line ФД: 162666 [22:39:47]line ФПД: 185723311206870 [22:39:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T223948&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162666&fm=185723311206870&tin=02508201610067®Number=0000000000090858&sum=60000 [22:39:48]OFD Sender: Processing packet 162666 [packets to send 106, broken 105] [22:39:48]ProducePacketName [22:39:48]name=ofd_packets/00162666 [22:39:48]OFD Sender: To server: pG, [22:39:48]CommunicateWithHost lk.salyk.kg:30040 [22:39:48]ConnectInit lk.salyk.kg [22:39:48]written 0, free lines is 4095 [22:39:48]Connected sock=10 [22:39:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 16 04 07 01 4B E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 23 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 62 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 E4 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 4E 01 00 00 F4 03 04 00 34 02 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7B 02 00 35 04 06 00 A8 EA 13 FD B1 D6 CF 89 90 21 66 CB BD E3 [22:39:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 04 40 47 00 38 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6A 7B 02 00 F4 03 04 00 42 AE 92 66 B6 04 01 00 00 54 B4 C5 6E 11 D0 1D 00 [22:39:48]CommunicateWithHost err = 0 [22:39:48]CheckOFDResponse [22:39:48]1017 (14) - 77093643461234 [22:39:48]1041 (16) - 0000000000874899 [22:39:48]1040 (4) - 162666 [22:39:48]1012 (4) - 13.07.2024 16:41 [22:39:48]1206 (1) - 0 [22:39:48]OFD Sender: Remove packet 162666 [22:39:48]ProducePacketName [22:39:48]name=ofd_packets/00162666 [22:39:48]NVStorageDeleteData [22:39:48]Write to MH i2c: 01 00 00 1F 2D 4C [22:39:48]Write i2c OK [22:39:48]MH_I2C_Read... [22:39:48]Read from MH i2c: 01 [22:39:48]MH_I2C_Read... [22:39:48]Read from MH i2c: 01 07 00 [22:39:48]MH_I2C_Read... [22:39:48]Read from MH i2c: 01 07 00 1F 2D 00 00 00 00 00 F1 0C 50 [22:39:48]RasterBufferAndPrint [22:39:48]line [22:39:48]line [22:39:48]line [22:39:48]line [22:39:48]line [22:39:48]written 0, free lines is 3322 [22:39:48]MH_Cut [22:39:48]Write to MH i2c: D1 01 00 26 2D 01 25 [22:39:48]Write i2c OK [22:39:48]MH_I2C_Read... [22:39:48]Read from MH i2c: D1 [22:39:48]MH_I2C_Read... [22:39:48]Read from MH i2c: D1 01 00 [22:39:48]MH_I2C_Read... [22:39:48]Read from MH i2c: D1 01 00 26 2D 00 24 [22:39:48]Write to MH i2c: 01 00 00 27 2D 54 [22:39:48]Write i2c OK [22:39:48]MH_I2C_Read... [22:39:49]OFD Sender: No OFD packet to send [22:39:49]*** Cut start [22:39:49]*** Purtial cut [22:39:49]*** Stage 1: CUTSNS_PIN = 1 [22:39:49]Read from MH i2c: 01 [22:39:49]MH_I2C_Read... [22:39:49]*** Stop cut motor [22:39:49]*** Cut end [22:39:49]Read from MH i2c: 01 07 00 [22:39:49]MH_I2C_Read... [22:39:49]Read from MH i2c: 01 07 00 27 2D 00 00 00 00 00 FF 0F 69 [22:39:49]process_action close_receipt done [22:39:49]requested_data is exist [22:39:49]produce_requested_data [22:39:49]requested_item fm.sn is exist - process it [22:39:49]wFMCommunicate request_size=4 [22:39:49]MH_SAM_APDU [22:39:49]CAPDU: 80 11 00 00 [22:39:49]Write to MH i2c: E2 08 00 28 2D 80 11 00 00 00 00 00 00 CF [22:39:49]Write i2c OK [22:39:49]MH_I2C_Read... [22:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:39:49]Read from MH i2c: E2 [22:39:49]MH_I2C_Read... [22:39:49]Read from MH i2c: E2 17 00 [22:39:49]MH_I2C_Read... [22:39:49]Read from MH i2c: E2 17 00 28 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2F [22:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:39:49]wFMCommunicate OK [22:39:49]requested_item fd.num is exist - process it [22:39:49]SAM_PROTO_GetFieldsCounters [22:39:49]wFMCommunicate request_size=4 [22:39:49]MH_SAM_APDU [22:39:49]CAPDU: 80 13 00 00 [22:39:49]Write to MH i2c: E2 08 00 29 2D 80 13 00 00 00 00 00 00 D2 [22:39:49]Write i2c OK [22:39:49]MH_I2C_Read... [22:39:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:39:49]Read from MH i2c: E2 [22:39:49]MH_I2C_Read... [22:39:49]Read from MH i2c: E2 62 00 [22:39:49]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 62 00 29 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [22:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:39:50]wFMCommunicate OK [22:39:50]SAM_PROTO_GetFieldsCounters done [22:39:50]requested_item shift.num is exist - process it [22:39:50]requested_item shift.opened is exist - process it [22:39:50]req_shift_opened [22:39:50]FM_GetShiftState [22:39:50]SAM_PROTO_GetShiftState [22:39:50]wFMCommunicate request_size=4 [22:39:50]MH_SAM_APDU [22:39:50]CAPDU: 80 13 01 00 [22:39:50]Write to MH i2c: E2 08 00 2A 2D 80 13 01 00 00 00 00 00 D4 [22:39:50]Write i2c OK [22:39:50]MH_I2C_Read... [22:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:39:50]Read from MH i2c: E2 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 0E 00 [22:39:50]MH_I2C_Read... [22:39:50]Read from MH i2c: E2 0E 00 2A 2D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CE [22:39:50]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:39:50]wFMCommunicate OK [22:39:50]SAM_PROTO_GetShiftState done [22:39:50]FM_GetShiftState done [22:39:50]req_shift_opened done [22:39:50]requested_item shift.open_date is exist - process it [22:39:50]req_shift_open_date [22:39:50]req_shift_open_date done [22:39:50]produce_requested_data done [22:39:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162666,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:39:50]process_action_free close_receipt [22:39:50]json_value_free [22:39:50]json_value_free done [22:39:50]process_json_proto returns [22:39:50]Send response to host [22:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162666,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:39:50]free response buf [22:39:50]execute_script done [22:39:50]execute_script returns [22:39:50]free content buf [22:39:50]Sock 7.Close socket [22:39:50]Sock 7.Thread stoped [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:09]int [22:40:09]Write to MH i2c: 01 00 00 2B 2D 58 [22:40:09]*** FLAG_PRN_PAP1 set [22:40:09]Write i2c OK [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 2B 2D 00 01 00 00 00 FF 0F 6E [22:40:09]state=0 [22:40:09]No paper [22:40:09]int [22:40:09]Write to MH i2c: 01 00 00 2C 2D 59 [22:40:09]*** FLAG_PRN_PAP2 set [22:40:09]Write i2c OK [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 2C 2D 00 03 00 00 00 FF 0F 71 [22:40:09]state=0 [22:40:09]No paper [22:40:09]Cover opened [22:40:09]int [22:40:09]Write to MH i2c: 01 00 00 2D 2D 5A [22:40:09]*** FLAG_PRN_PAP2 reset [22:40:09]Write i2c OK [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 2D 2D 00 01 00 00 00 FF 0F 70 [22:40:09]state=3 [22:40:09]No paper [22:40:09]Cover closed [22:40:09]int [22:40:09]Write to MH i2c: 01 00 00 2E 2D 5B [22:40:09]*** FLAG_PRN_PAP2 set [22:40:09]Write i2c OK [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 2E 2D 00 03 00 00 00 FF 0F 73 [22:40:09]state=0 [22:40:09]No paper [22:40:09]Cover opened [22:40:09]int [22:40:09]Write to MH i2c: 01 00 00 2F 2D 5C [22:40:09]*** FLAG_PRN_PAP2 reset [22:40:09]Write i2c OK [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 [22:40:09]MH_I2C_Read... [22:40:09]Read from MH i2c: 01 07 00 2F 2D 00 01 00 00 00 FF 0F 72 [22:40:09]state=3 [22:40:09]No paper [22:40:09]Cover closed [22:40:10]int [22:40:10]Write to MH i2c: 01 00 00 30 2D 5D [22:40:10]*** FLAG_PRN_PAP2 set [22:40:10]Write i2c OK [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: 01 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: 01 07 00 [22:40:10]MH_I2C_Read... [22:40:10]Read from MH i2c: 01 07 00 30 2D 00 03 00 00 00 FF 0F 75 [22:40:10]state=0 [22:40:10]No paper [22:40:10]Cover opened [22:40:11]int [22:40:11]Write to MH i2c: 01 00 00 31 2D 5E [22:40:11]*** FLAG_PRN_PAP2 reset [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 07 00 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 07 00 31 2D 00 01 00 00 00 FF 0F 74 [22:40:11]state=3 [22:40:11]No paper [22:40:11]Cover closed [22:40:11]int [22:40:11]Write to MH i2c: 01 00 00 32 2D 5F [22:40:11]*** FLAG_PRN_PAP2 set [22:40:11]Write i2c OK [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 07 00 [22:40:11]MH_I2C_Read... [22:40:11]Read from MH i2c: 01 07 00 32 2D 00 03 00 00 00 FF 0F 77 [22:40:11]state=0 [22:40:11]No paper [22:40:11]Cover opened [22:40:14]OFD Sender: No OFD packet to send [22:40:16]Write to MH i2c: 01 00 00 33 2D 60 [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: 01 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: 01 07 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: 01 07 00 33 2D 00 03 00 00 00 FF 0F 78 [22:40:16]state=3 [22:40:16]No paper [22:40:16]Cover opened [22:40:19]OFD Sender: No OFD packet to send [22:40:21]Write to MH i2c: 01 00 00 34 2D 61 [22:40:21]Write i2c OK [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 07 00 [22:40:21]MH_I2C_Read... [22:40:21]Read from MH i2c: 01 07 00 34 2D 00 03 00 00 00 FF 0F 79 [22:40:21]state=3 [22:40:21]No paper [22:40:21]Cover opened [22:40:24]OFD Sender: No OFD packet to send [22:40:25]int [22:40:25]Write to MH i2c: 01 00 00 35 2D 62 [22:40:25]*** FLAG_PRN_PAP2 reset [22:40:25]Write i2c OK [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 07 00 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 07 00 35 2D 00 01 00 00 00 FF 0F 78 [22:40:25]state=3 [22:40:25]No paper [22:40:25]Cover closed [22:40:25]int [22:40:25]Write to MH i2c: 01 00 00 36 2D 63 [22:40:25]*** FLAG_PRN_PAP1 reset [22:40:25]Write i2c OK [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 07 00 [22:40:25]MH_I2C_Read... [22:40:25]Read from MH i2c: 01 07 00 36 2D 00 00 00 00 00 FF 0F 78 [22:40:25]state=0 [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:26]accept exits with 9 [22:41:26]New connection [22:41:26]New thread 3067510116 created [22:41:26]Thread 3067366756 joined [22:41:26]Waiting for new connection... [22:41:26] Sock 9.Parse request [22:41:26]Sock 9.Check first char [22:41:26]Sock 9.First char is OK [22:41:26]request: POST /json_proto HTTP/1.0 [22:41:26]Method: POST [22:41:26]URL: /json_proto [22:41:26]Method is POST - this is cgi request [22:41:26]url: /json_proto [22:41:26]query_string will be loaded in cgi processing [22:41:26]execute_cgi json_proto POST (null) [22:41:26]execute_cgi path=json_proto method=POST [22:41:26]POST find Content-Length [22:41:26]Host: 172.17.39.67:8080 [22:41:26]Content-Length: 987 [22:41:26]Content-Type: application/json [22:41:26] [22:41:26]POST finish read [22:41:26]Found Content-Length = 987 [22:41:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 72.240, "sum" : 5172.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 72.24 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 5172.00, "payments": [ { "type": 0, "sum" : 5172.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:26]execute_script... [22:41: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)1319246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 71.60, "quantity" : 72.240, "sum" : 5172.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 140\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 72.24 \u0441\u043E\u043C", "deposit" : 6000.00, "total" : 5172.00, "payments": [ { "type": 0, "sum" : 5172.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:26]POST & json_proto [22:41:26]process_json_proto [22:41:26]json parsed OK: [22:41:26]protocol is kg_v1.0 [22:41:26]action value=close_receipt [22:41:26]process_action close_receipt [22:41:26]cmd_close_receipt [22:41:26]MH_GetDate [22:41:26]Write to MH i2c: F0 00 00 37 2D 53 [22:41:26]Write i2c OK [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: F0 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: F0 09 00 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: F0 09 00 37 2D 00 98 02 93 66 86 7C 92 66 E9 [22:41:26]GetLastDocTimeStamp 1720910388 [22:41:26]current date 1720910488 [22:41:26]FM_GetShiftState [22:41:26]SAM_PROTO_GetShiftState [22:41:26]wFMCommunicate request_size=4 [22:41:26]MH_SAM_APDU [22:41:26]CAPDU: 80 13 01 00 [22:41:26]Write to MH i2c: E2 08 00 38 2D 80 13 01 00 00 00 00 00 E2 [22:41:26]Write i2c OK [22:41:26]MH_I2C_Read... [22:41:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:26]Read from MH i2c: E2 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: E2 0E 00 [22:41:26]MH_I2C_Read... [22:41:26]Read from MH i2c: E2 0E 00 38 2D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DC [22:41:26]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:41:26]wFMCommunicate OK [22:41:26]SAM_PROTO_GetShiftState done [22:41:26]FM_GetShiftState done [22:41:26]opened in 1720828979 [22:41:26]opened+sec_in_day 1720915379 [22:41:26]quantity*price = 517238 [22:41:26]sum+1 = 517239 [22:41:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 5172.00 Внесено: 6000.00 СДАЧА: 828.00 НСП 1% : 45.77 НДС 12% : 549.28 Наличными: 5172.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 335 13.07.2024 22:41 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Дисконтная программа ДТ номер 140 сэкономлено 72.24 сом ФМ: 0000000000874899 ФД: 162667 ФПД: 137322597929138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224128&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162667&fm=137322597929138&tin=02508201610067®Number=0000000000090858&sum=517200 [22:41:27]StoreToDocumentArchive [22:41:27]shift 462 fd 162667 [22:41:27]save to /storage/0462/doc_00162667 [22:41:27]save last doc name /storage/0462/doc_00162667 to /storage/kkm_last_doc_name [22:41:27]save OK [22:41:27]Clear old archive folders... [22:41:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:41:27]tlvbuf is B6F305F0 [22:41:27]SAM_PROTO_ClearQueue [22:41:27]wFMCommunicate request_size=4 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 09 00 00 [22:41:27]Write to MH i2c: E2 08 00 45 2D 80 09 00 00 00 00 00 00 E4 [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 45 2D 00 90 00 E6 [22:41:27]RAPDU: 90 00 [22:41:27]wFMCommunicate OK [22:41:27]SAM_PROTO_ClearQueue done [22:41:27]KKMCreateOFDPacket [22:41:27]OFDProtocolAddRootSTLVToBuf [22:41:27]FM_MakeSignedData [22:41:27]FM_MakeSignedData [22:41:27]SAM_PROTO_SignData [22:41:27]wFMCommunicate request_size=4 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 0D 01 02 [22:41:27]Write to MH i2c: E2 08 00 46 2D 80 0D 01 02 00 00 00 00 EC [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:27]Read from MH i2c: E2 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 [22:41:27]MH_I2C_Read... [22:41:27]Read from MH i2c: E2 03 00 46 2D 00 90 00 E7 [22:41:27]RAPDU: 90 00 [22:41:27]wFMCommunicate OK [22:41:27]wFMCommunicate request_size=255 [22:41:27]MH_SAM_APDU [22:41:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 1A 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 76 E4 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 E4 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 D6 00 00 00 00 07 04 06 00 50 E4 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 98 02 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7B 02 00 35 04 06 00 [22:41:27]Write to MH i2c: E2 02 01 47 2D 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 1A 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 76 E4 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 E4 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 D6 00 00 00 00 07 04 06 00 50 E4 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 98 02 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7B 02 00 35 04 06 00 00 00 6A [22:41:27]Write i2c OK [22:41:27]MH_I2C_Read... [22:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:28]Read from MH i2c: E2 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 47 2D 00 90 00 E8 [22:41:28]RAPDU: 90 00 [22:41:28]wFMCommunicate OK [22:41:28]wFMCommunicate request_size=11 [22:41:28]MH_SAM_APDU [22:41:28]CAPDU: 80 0D 02 02 06 7C E4 E8 AB 50 B2 [22:41:28]Write to MH i2c: E2 0E 00 48 2D 80 0D 02 02 06 00 7C E4 E8 AB 50 B2 00 00 F0 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:28]Read from MH i2c: E2 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 03 00 48 2D 00 90 00 E9 [22:41:28]RAPDU: 90 00 [22:41:28]wFMCommunicate OK [22:41:28]wFMCommunicate request_size=4 [22:41:28]MH_SAM_APDU [22:41:28]CAPDU: 80 0D 03 02 [22:41:28]Write to MH i2c: E2 08 00 49 2D 80 0D 03 02 00 00 00 00 F1 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:28]Read from MH i2c: E2 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 0B 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 0B 00 49 2D 00 35 07 0B 7D F6 94 CF D7 90 00 E6 [22:41:28]RAPDU: 35 07 0B 7D F6 94 CF D7 90 00 [22:41:28]wFMCommunicate OK [22:41:28]SAM_PROTO_SignData done [22:41:28]FM_MakeSignedData done [22:41:28]CreateOFDProtocolMessage [22:41:28]wFMCommunicate request_size=4 [22:41:28]MH_SAM_APDU [22:41:28]CAPDU: 80 11 00 00 [22:41:28]Write to MH i2c: E2 08 00 4A 2D 80 11 00 00 00 00 00 00 F1 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:28]Read from MH i2c: E2 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 17 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: E2 17 00 4A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 51 [22:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:41:28]wFMCommunicate OK [22:41:28]CreateOFDProtocolMessage done [22:41:28]OFDSenderStorePacket 162667 [22:41:28]StoreOFDPacket docnum=162667 [22:41:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5A 7A 08 01 DF 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 1A 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 76 E4 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 E4 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 D6 00 00 00 00 07 04 06 00 50 E4 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 98 02 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7B 02 00 35 04 06 00 7C E4 E8 AB 50 B2 35 07 0B 7D F6 94 CF D7 [22:41:28]CheckFolder [22:41:28]dirname=/storage/ofd_packets [22:41:28]CheckFolder done [22:41:28]ProducePacketName [22:41:28]name=ofd_packets/00162667 [22:41:28]NVStorageSaveData ofd_packets/00162667 [22:41:28]File name is /storage/ofd_packets/00162667 [22:41:28]Write 302 bytes [22:41:28]NVStorageSaveData done [22:41:28]OFDSenderStorePacket done [22:41:28]KKMCreateOFDPacket done [22:41:28]NVStorageSaveData kkm_last_timestamp [22:41:28]File name is /storage/kkm_last_timestamp [22:41:28]Write 4 bytes [22:41:28]NVStorageSaveData done [22:41:28]ExternCall_PrintAddStr [22:41:28]wPrintStart [22:41:28]Write to MH i2c: 01 00 00 4B 2D 78 [22:41:28]Write i2c OK [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: 01 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: 01 07 00 [22:41:28]MH_I2C_Read... [22:41:28]Read from MH i2c: 01 07 00 4B 2D 00 00 00 00 00 FF 0F 8D [22:41:28]RasterBufferAndPrint [22:41:28]line Счет N : (1)1319246 [22:41:28]line ИНН: 02508201610067 [22:41:28]line Контрольно-Кассовый Чек [22:41:28]line ПРОДАЖА [22:41:28]line ТРК (МРК, ГНК) : 11 [22:41:28]line Товар: 2710194210 [22:41:28]line ДТ(л)-К-5 [22:41:28]line 72.240 * 71.60 [22:41:28]line = 5172.38 [22:41:28]line НДС 12% НСП 1% [22:41:28]line > о реализуемом товаре [22:41:28]line ОКРУГЛЕНИЕ: -0.38 [22:41:28]line ИТОГО: 5172.00 [22:41:28]line Внесено: 6000.00 [22:41:28]line СДАЧА: 828.00 [22:41:28]line НСП 1% : 45.77 [22:41:28]line НДС 12% : 549.28 [22:41:28]line Наличными: 5172.00 [22:41:28]line Безнал.: 0.00 [22:41:28]line Место: АЗС № 140 "Партнер Нефть" [22:41:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:41:28]line СНО: Общий режим [22:41:28]line Чек 335 13.07.2024 22:41 [22:41:28]line Смена: 462 ФФД: 1.0 [22:41:28]line ЗНМ: 0300000129 [22:41:28]line РНМ: 0000000000090858 [22:41:28]line Версия ККМ: 001 [22:41:28]line [22:41:28]line Дисконтная программа [22:41:28]line ДТ [22:41:28]line номер 140 [22:41:28]line сэкономлено 72.24 сом [22:41:28]line ФМ: 0000000000874899 [22:41:28]line ФД: 162667 [22:41:28]line ФПД: 137322597929138 [22:41:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224128&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162667&fm=137322597929138&tin=02508201610067®Number=0000000000090858&sum=517200 [22:41:28]OFD Sender: Processing packet 162667 [packets to send 106, broken 105] [22:41:28]ProducePacketName [22:41:28]name=ofd_packets/00162667 [22:41:28]OFD Sender: To server: pG, [22:41:28]CommunicateWithHost lk.salyk.kg:30040 [22:41:28]ConnectInit lk.salyk.kg [22:41:28]written 0, free lines is 4095 [22:41:28]Connected sock=10 [22:41:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 5A 7A 08 01 DF 38 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 30 1A 01 00 00 00 00 37 04 06 00 F8 1B 00 00 00 00 13 04 06 00 76 E4 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 E4 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 D6 00 00 00 00 07 04 06 00 50 E4 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 98 02 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7B 02 00 35 04 06 00 7C E4 E8 AB 50 B2 35 07 0B 7D F6 94 CF D7 [22:41:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 13 6E 47 00 33 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6B 7B 02 00 F4 03 04 00 A6 AE 92 66 B6 04 01 00 00 6C 01 34 18 E1 A4 C2 87 [22:41:28]CommunicateWithHost err = 0 [22:41:28]CheckOFDResponse [22:41:28]1017 (14) - 77093643461234 [22:41:28]1041 (16) - 0000000000874899 [22:41:28]1040 (4) - 162667 [22:41:28]1012 (4) - 13.07.2024 16:43 [22:41:28]1206 (1) - 0 [22:41:28]OFD Sender: Remove packet 162667 [22:41:28]ProducePacketName [22:41:28]name=ofd_packets/00162667 [22:41:28]NVStorageDeleteData [22:41:29]Write to MH i2c: 01 00 00 7B 2D A8 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 07 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: 01 07 00 7B 2D 00 00 00 00 00 8B 0C 46 [22:41:29]RasterBufferAndPrint [22:41:29]line [22:41:29]line [22:41:29]line [22:41:29]line [22:41:29]line [22:41:29]written 0, free lines is 3217 [22:41:29]MH_Cut [22:41:29]Write to MH i2c: D1 01 00 82 2D 01 81 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: D1 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: D1 01 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: D1 01 00 82 2D 00 80 [22:41:29]Write to MH i2c: 01 00 00 83 2D B0 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]OFD Sender: No OFD packet to send [22:41:30]*** Cut start [22:41:30]*** Purtial cut [22:41:30]*** CUTSNS_PIN = 0 [22:41:30]*** Stage 1: CUTSNS_PIN = 1 [22:41:32]Read from MH i2c: 01 [22:41:32]MH_I2C_Read... [22:41:32]*** Stop cut motor [22:41:32]*** Cut end [22:41:32]Read from MH i2c: 01 07 00 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: 01 07 00 83 2D 00 00 00 00 00 FF 0F C5 [22:41:32]process_action close_receipt done [22:41:32]requested_data is exist [22:41:32]produce_requested_data [22:41:32]requested_item fm.sn is exist - process it [22:41:32]wFMCommunicate request_size=4 [22:41:32]MH_SAM_APDU [22:41:32]CAPDU: 80 11 00 00 [22:41:32]Write to MH i2c: E2 08 00 84 2D 80 11 00 00 00 00 00 00 2B [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:32]Read from MH i2c: E2 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: E2 17 00 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: E2 17 00 84 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8B [22:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:41:32]wFMCommunicate OK [22:41:32]requested_item fd.num is exist - process it [22:41:32]SAM_PROTO_GetFieldsCounters [22:41:32]wFMCommunicate request_size=4 [22:41:32]MH_SAM_APDU [22:41:32]CAPDU: 80 13 00 00 [22:41:32]Write to MH i2c: E2 08 00 85 2D 80 13 00 00 00 00 00 00 2E [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:32]Read from MH i2c: E2 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: E2 62 00 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: E2 62 00 85 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 08 [22:41:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:32]wFMCommunicate OK [22:41:32]SAM_PROTO_GetFieldsCounters done [22:41:32]requested_item shift.num is exist - process it [22:41:32]requested_item shift.opened is exist - process it [22:41:32]req_shift_opened [22:41:32]FM_GetShiftState [22:41:32]SAM_PROTO_GetShiftState [22:41:32]wFMCommunicate request_size=4 [22:41:32]MH_SAM_APDU [22:41:32]CAPDU: 80 13 01 00 [22:41:32]Write to MH i2c: E2 08 00 86 2D 80 13 01 00 00 00 00 00 30 [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:32]Read from MH i2c: E2 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: E2 0E 00 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: E2 0E 00 86 2D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2A [22:41:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:41:32]wFMCommunicate OK [22:41:32]SAM_PROTO_GetShiftState done [22:41:32]FM_GetShiftState done [22:41:32]req_shift_opened done [22:41:32]requested_item shift.open_date is exist - process it [22:41:32]req_shift_open_date [22:41:32]req_shift_open_date done [22:41:32]produce_requested_data done [22:41:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162667,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:41:32]process_action_free close_receipt [22:41:32]json_value_free [22:41:32]json_value_free done [22:41:32]process_json_proto returns [22:41:32]Send response to host [22:41:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162667,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:41:32]free response buf [22:41:32]execute_script done [22:41:32]execute_script returns [22:41:32]free content buf [22:41:32]Sock 9.Close socket [22:41:32]Sock 9.Thread stoped [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [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:36]accept exits with 7 [22:46:36]New connection [22:46:36]New thread 3067366756 created [22:46:36]Thread 3067510116 joined [22:46:36]Waiting for new connection... [22:46:36] Sock 7.Parse request [22:46:36]Sock 7.Check first char [22:46:36]Sock 7.First char is OK [22:46:36]request: POST /json_proto HTTP/1.0 [22:46:36]Method: POST [22:46:36]URL: /json_proto [22:46:36]Method is POST - this is cgi request [22:46:36]url: /json_proto [22:46:36]query_string will be loaded in cgi processing [22:46:36]execute_cgi json_proto POST (null) [22:46:36]execute_cgi path=json_proto method=POST [22:46:36]POST find Content-Length [22:46:36]Host: 172.17.39.67:8080 [22:46:36]Content-Length: 678 [22:46:36]Content-Type: application/json [22:46:36] [22:46:36]POST finish read [22:46:36]Found Content-Length = 678 [22:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.890, "sum" : 390.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:36]execute_script... [22:46: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)1319249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.890, "sum" : 390.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:36]POST & json_proto [22:46:36]process_json_proto [22:46:36]json parsed OK: [22:46:36]protocol is kg_v1.0 [22:46:36]action value=close_receipt [22:46:36]process_action close_receipt [22:46:36]cmd_close_receipt [22:46:36]MH_GetDate [22:46:36]Write to MH i2c: F0 00 00 87 2D A3 [22:46:36]Write i2c OK [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: F0 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: F0 09 00 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: F0 09 00 87 2D 00 CE 03 93 66 86 7C 92 66 70 [22:46:36]GetLastDocTimeStamp 1720910488 [22:46:36]current date 1720910798 [22:46:36]FM_GetShiftState [22:46:36]SAM_PROTO_GetShiftState [22:46:36]wFMCommunicate request_size=4 [22:46:36]MH_SAM_APDU [22:46:36]CAPDU: 80 13 01 00 [22:46:36]Write to MH i2c: E2 08 00 88 2D 80 13 01 00 00 00 00 00 32 [22:46:36]Write i2c OK [22:46:36]MH_I2C_Read... [22:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:36]Read from MH i2c: E2 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: E2 0E 00 [22:46:36]MH_I2C_Read... [22:46:36]Read from MH i2c: E2 0E 00 88 2D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2C [22:46:36]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:46:36]wFMCommunicate OK [22:46:36]SAM_PROTO_GetShiftState done [22:46:36]FM_GetShiftState done [22:46:36]opened in 1720828979 [22:46:36]opened+sec_in_day 1720915379 [22:46:36]quantity*price = 39050 [22:46:36]sum+1 = 39052 [22:46:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.46 НДС 12% : 41.47 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 336 13.07.2024 22:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162668 ФПД: 252326208012775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224638&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162668&fm=252326208012775&tin=02508201610067®Number=0000000000090858&sum=39000 [22:46:37]StoreToDocumentArchive [22:46:37]shift 462 fd 162668 [22:46:37]save to /storage/0462/doc_00162668 [22:46:37]save last doc name /storage/0462/doc_00162668 to /storage/kkm_last_doc_name [22:46:37]save OK [22:46:37]Clear old archive folders... [22:46:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:37]tlvbuf is 0060BC90 [22:46:37]SAM_PROTO_ClearQueue [22:46:37]wFMCommunicate request_size=4 [22:46:37]MH_SAM_APDU [22:46:37]CAPDU: 80 09 00 00 [22:46:37]Write to MH i2c: E2 08 00 95 2D 80 09 00 00 00 00 00 00 34 [22:46:37]Write i2c OK [22:46:37]MH_I2C_Read... [22:46:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:38]Read from MH i2c: E2 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 03 00 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 03 00 95 2D 00 90 00 36 [22:46:38]RAPDU: 90 00 [22:46:38]wFMCommunicate OK [22:46:38]SAM_PROTO_ClearQueue done [22:46:38]KKMCreateOFDPacket [22:46:38]OFDProtocolAddRootSTLVToBuf [22:46:38]FM_MakeSignedData [22:46:38]FM_MakeSignedData [22:46:38]SAM_PROTO_SignData [22:46:38]wFMCommunicate request_size=4 [22:46:38]MH_SAM_APDU [22:46:38]CAPDU: 80 0D 01 02 [22:46:38]Write to MH i2c: E2 08 00 96 2D 80 0D 01 02 00 00 00 00 3C [22:46:38]Write i2c OK [22:46:38]MH_I2C_Read... [22:46:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:38]Read from MH i2c: E2 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 03 00 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 03 00 96 2D 00 90 00 37 [22:46:38]RAPDU: 90 00 [22:46:38]wFMCommunicate OK [22:46:38]wFMCommunicate request_size=255 [22:46:38]MH_SAM_APDU [22:46:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 CE 03 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7B 02 00 35 04 06 00 E5 [22:46:38]Write to MH i2c: E2 02 01 97 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 CE 03 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7B 02 00 35 04 06 00 E5 00 00 C9 [22:46:38]Write i2c OK [22:46:38]MH_I2C_Read... [22:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:38]Read from MH i2c: E2 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 03 00 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 03 00 97 2D 00 90 00 38 [22:46:38]RAPDU: 90 00 [22:46:38]wFMCommunicate OK [22:46:38]wFMCommunicate request_size=10 [22:46:38]MH_SAM_APDU [22:46:38]CAPDU: 80 0D 02 02 05 7D 45 FF 01 E7 [22:46:38]Write to MH i2c: E2 0D 00 98 2D 80 0D 02 02 05 00 7D 45 FF 01 E7 00 00 F2 [22:46:38]Write i2c OK [22:46:38]MH_I2C_Read... [22:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:38]Read from MH i2c: E2 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 03 00 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 03 00 98 2D 00 90 00 39 [22:46:38]RAPDU: 90 00 [22:46:38]wFMCommunicate OK [22:46:38]wFMCommunicate request_size=4 [22:46:38]MH_SAM_APDU [22:46:38]CAPDU: 80 0D 03 02 [22:46:38]Write to MH i2c: E2 08 00 99 2D 80 0D 03 02 00 00 00 00 41 [22:46:38]Write i2c OK [22:46:38]MH_I2C_Read... [22:46:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:38]Read from MH i2c: E2 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 0B 00 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 0B 00 99 2D 00 1F F9 FB 60 44 47 26 0D 90 00 73 [22:46:38]RAPDU: 1F F9 FB 60 44 47 26 0D 90 00 [22:46:38]wFMCommunicate OK [22:46:38]SAM_PROTO_SignData done [22:46:38]FM_MakeSignedData done [22:46:38]CreateOFDProtocolMessage [22:46:38]wFMCommunicate request_size=4 [22:46:38]MH_SAM_APDU [22:46:38]CAPDU: 80 11 00 00 [22:46:38]Write to MH i2c: E2 08 00 9A 2D 80 11 00 00 00 00 00 00 41 [22:46:38]Write i2c OK [22:46:38]MH_I2C_Read... [22:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:38]Read from MH i2c: E2 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 17 00 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: E2 17 00 9A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A1 [22:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:46:38]wFMCommunicate OK [22:46:38]CreateOFDProtocolMessage done [22:46:38]OFDSenderStorePacket 162668 [22:46:38]StoreOFDPacket docnum=162668 [22:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 42 42 07 01 42 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 CE 03 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7B 02 00 35 04 06 00 E5 7D 45 FF 01 E7 1F F9 FB 60 44 47 26 0D [22:46:38]CheckFolder [22:46:38]dirname=/storage/ofd_packets [22:46:38]CheckFolder done [22:46:38]ProducePacketName [22:46:38]name=ofd_packets/00162668 [22:46:38]NVStorageSaveData ofd_packets/00162668 [22:46:38]File name is /storage/ofd_packets/00162668 [22:46:38]Write 301 bytes [22:46:38]NVStorageSaveData done [22:46:38]OFDSenderStorePacket done [22:46:38]KKMCreateOFDPacket done [22:46:38]NVStorageSaveData kkm_last_timestamp [22:46:38]File name is /storage/kkm_last_timestamp [22:46:38]Write 4 bytes [22:46:38]NVStorageSaveData done [22:46:38]ExternCall_PrintAddStr [22:46:38]wPrintStart [22:46:38]Write to MH i2c: 01 00 00 9B 2D C8 [22:46:38]Write i2c OK [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: 01 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: 01 07 00 [22:46:38]MH_I2C_Read... [22:46:38]Read from MH i2c: 01 07 00 9B 2D 00 00 00 00 00 FF 0F DD [22:46:38]RasterBufferAndPrint [22:46:38]line Счет N : (1)1319249 [22:46:38]line ИНН: 02508201610067 [22:46:38]line Контрольно-Кассовый Чек [22:46:38]line ПРОДАЖА [22:46:38]line ТРК (МРК, ГНК) : 33 [22:46:38]line Товар: 2710124130 [22:46:38]line Аи-92-К-5 [22:46:38]line 5.890 * 66.30 [22:46:38]line = 390.51 [22:46:38]line НДС 12% НСП 1% [22:46:38]line > о реализуемом товаре [22:46:38]line ОКРУГЛЕНИЕ: -0.51 [22:46:38]line ИТОГО: 390.00 [22:46:38]line Внесено: 390.00 [22:46:38]line СДАЧА: 0.00 [22:46:38]line НСП 1% : 3.46 [22:46:38]line НДС 12% : 41.47 [22:46:38]line Наличными: 390.00 [22:46:38]line Безнал.: 0.00 [22:46:38]line Место: АЗС № 140 "Партнер Нефть" [22:46:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:46:38]line СНО: Общий режим [22:46:38]line Чек 336 13.07.2024 22:46 [22:46:38]line Смена: 462 ФФД: 1.0 [22:46:38]line ЗНМ: 0300000129 [22:46:38]line РНМ: 0000000000090858 [22:46:38]line Версия ККМ: 001 [22:46:38]line ФМ: 0000000000874899 [22:46:38]line ФД: 162668 [22:46:38]line ФПД: 252326208012775 [22:46:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224638&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162668&fm=252326208012775&tin=02508201610067®Number=0000000000090858&sum=39000 [22:46:38]OFD Sender: Processing packet 162668 [packets to send 106, broken 105] [22:46:38]ProducePacketName [22:46:38]name=ofd_packets/00162668 [22:46:38]OFD Sender: To server: pG, [22:46:38]CommunicateWithHost lk.salyk.kg:30040 [22:46:38]ConnectInit lk.salyk.kg [22:46:38]written 0, free lines is 4095 [22:46:38]Connected sock=10 [22:46:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 42 42 07 01 42 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 02 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 8B 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 CE 03 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7B 02 00 35 04 06 00 E5 7D 45 FF 01 E7 1F F9 FB 60 44 47 26 0D [22:46:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 78 8B 47 00 F3 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6C 7B 02 00 F4 03 04 00 DD AF 92 66 B6 04 01 00 00 CE 23 1D 7E EA 40 CD 68 [22:46:39]CommunicateWithHost err = 0 [22:46:39]CheckOFDResponse [22:46:39]1017 (14) - 77093643461234 [22:46:39]1041 (16) - 0000000000874899 [22:46:39]1040 (4) - 162668 [22:46:39]1012 (4) - 13.07.2024 16:48 [22:46:39]1206 (1) - 0 [22:46:39]OFD Sender: Remove packet 162668 [22:46:39]ProducePacketName [22:46:39]name=ofd_packets/00162668 [22:46:39]NVStorageDeleteData [22:46:39]Write to MH i2c: 01 00 00 C6 2D F3 [22:46:39]Write i2c OK [22:46:39]MH_I2C_Read... [22:46:39]Read from MH i2c: 01 [22:46:39]MH_I2C_Read... [22:46:39]Read from MH i2c: 01 07 00 [22:46:39]MH_I2C_Read... [22:46:39]Read from MH i2c: 01 07 00 C6 2D 00 00 00 00 00 EB 0C F1 [22:46:39]RasterBufferAndPrint [22:46:39]line [22:46:39]line [22:46:39]line [22:46:39]line [22:46:39]line [22:46:39]written 0, free lines is 3313 [22:46:39]MH_Cut [22:46:39]Write to MH i2c: D1 01 00 CD 2D 01 CC [22:46:39]Write i2c OK [22:46:39]MH_I2C_Read... [22:46:39]Read from MH i2c: D1 [22:46:39]MH_I2C_Read... [22:46:39]Read from MH i2c: D1 01 00 [22:46:39]MH_I2C_Read... [22:46:39]Read from MH i2c: D1 01 00 CD 2D 00 CB [22:46:39]Write to MH i2c: 01 00 00 CE 2D FB [22:46:39]Write i2c OK [22:46:39]MH_I2C_Read... [22:46:39]OFD Sender: No OFD packet to send [22:46:40]*** Cut start [22:46:40]*** Purtial cut [22:46:40]*** Stage 1: CUTSNS_PIN = 1 [22:46:40]Read from MH i2c: 01 [22:46:40]MH_I2C_Read... [22:46:40]*** Stop cut motor [22:46:40]*** Cut end [22:46:40]Read from MH i2c: 01 07 00 [22:46:40]MH_I2C_Read... [22:46:40]Read from MH i2c: 01 07 00 CE 2D 00 00 00 00 00 FF 0F 10 [22:46:40]process_action close_receipt done [22:46:40]requested_data is exist [22:46:40]produce_requested_data [22:46:40]requested_item fm.sn is exist - process it [22:46:40]wFMCommunicate request_size=4 [22:46:40]MH_SAM_APDU [22:46:40]CAPDU: 80 11 00 00 [22:46:40]Write to MH i2c: E2 08 00 CF 2D 80 11 00 00 00 00 00 00 76 [22:46:40]Write i2c OK [22:46:40]MH_I2C_Read... [22:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:40]Read from MH i2c: E2 [22:46:40]MH_I2C_Read... [22:46:40]Read from MH i2c: E2 17 00 [22:46:40]MH_I2C_Read... [22:46:40]Read from MH i2c: E2 17 00 CF 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D6 [22:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:46:40]wFMCommunicate OK [22:46:40]requested_item fd.num is exist - process it [22:46:40]SAM_PROTO_GetFieldsCounters [22:46:40]wFMCommunicate request_size=4 [22:46:40]MH_SAM_APDU [22:46:40]CAPDU: 80 13 00 00 [22:46:40]Write to MH i2c: E2 08 00 D0 2D 80 13 00 00 00 00 00 00 79 [22:46:40]Write i2c OK [22:46:40]MH_I2C_Read... [22:46:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:40]Read from MH i2c: E2 [22:46:40]MH_I2C_Read... [22:46:40]Read from MH i2c: E2 62 00 [22:46:40]MH_I2C_Read... [22:46:40]Read from MH i2c: E2 62 00 D0 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [22:46:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:40]wFMCommunicate OK [22:46:40]SAM_PROTO_GetFieldsCounters done [22:46:40]requested_item shift.num is exist - process it [22:46:40]requested_item shift.opened is exist - process it [22:46:40]req_shift_opened [22:46:40]FM_GetShiftState [22:46:40]SAM_PROTO_GetShiftState [22:46:40]wFMCommunicate request_size=4 [22:46:40]MH_SAM_APDU [22:46:40]CAPDU: 80 13 01 00 [22:46:40]Write to MH i2c: E2 08 00 D1 2D 80 13 01 00 00 00 00 00 7B [22:46:40]Write i2c OK [22:46:40]MH_I2C_Read... [22:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:40]Read from MH i2c: E2 [22:46:40]MH_I2C_Read... [22:46:40]Read from MH i2c: E2 0E 00 [22:46:40]MH_I2C_Read... [22:46:40]Read from MH i2c: E2 0E 00 D1 2D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 75 [22:46:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:46:40]wFMCommunicate OK [22:46:40]SAM_PROTO_GetShiftState done [22:46:40]FM_GetShiftState done [22:46:40]req_shift_opened done [22:46:40]requested_item shift.open_date is exist - process it [22:46:40]req_shift_open_date [22:46:40]req_shift_open_date done [22:46:40]produce_requested_data done [22:46:40]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162668,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:46:40]process_action_free close_receipt [22:46:40]json_value_free [22:46:40]json_value_free done [22:46:40]process_json_proto returns [22:46:40]Send response to host [22:46:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162668,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:46:40]free response buf [22:46:40]execute_script done [22:46:40]execute_script returns [22:46:40]free content buf [22:46:40]Sock 7.Close socket [22:46:40]Sock 7.Thread stoped [22:46:42]accept exits with 9 [22:46:42]New connection [22:46:42]New thread 3067510116 created [22:46:42]Thread 3067366756 joined [22:46:42]Waiting for new connection... [22:46:42] Sock 9.Parse request [22:46:42]Sock 9.Check first char [22:46:42]Sock 9.First char is OK [22:46:42]request: POST /json_proto HTTP/1.0 [22:46:42]Method: POST [22:46:42]URL: /json_proto [22:46:42]Method is POST - this is cgi request [22:46:42]url: /json_proto [22:46:42]query_string will be loaded in cgi processing [22:46:42]execute_cgi json_proto POST (null) [22:46:42]execute_cgi path=json_proto method=POST [22:46:42]POST find Content-Length [22:46:42]Host: 172.17.39.67:8080 [22:46:42]Content-Length: 678 [22:46:42]Content-Type: application/json [22:46:42] [22:46:42]POST finish read [22:46:42]Found Content-Length = 678 [22:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [22:46:42]execute_script... [22:46:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "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" ] } } [22:46:42]POST & json_proto [22:46:42]process_json_proto [22:46:42]json parsed OK: [22:46:42]protocol is kg_v1.0 [22:46:42]action value=close_receipt [22:46:42]process_action close_receipt [22:46:42]cmd_close_receipt [22:46:42]MH_GetDate [22:46:42]Write to MH i2c: F0 00 00 D2 2D EE [22:46:42]Write i2c OK [22:46:42]MH_I2C_Read... [22:46:42]Read from MH i2c: F0 [22:46:42]MH_I2C_Read... [22:46:42]Read from MH i2c: F0 09 00 [22:46:42]MH_I2C_Read... [22:46:42]Read from MH i2c: F0 09 00 D2 2D 00 D4 03 93 66 86 7C 92 66 C1 [22:46:42]GetLastDocTimeStamp 1720910798 [22:46:42]current date 1720910804 [22:46:42]FM_GetShiftState [22:46:42]SAM_PROTO_GetShiftState [22:46:42]wFMCommunicate request_size=4 [22:46:42]MH_SAM_APDU [22:46:42]CAPDU: 80 13 01 00 [22:46:42]Write to MH i2c: E2 08 00 D3 2D 80 13 01 00 00 00 00 00 7D [22:46:42]Write i2c OK [22:46:42]MH_I2C_Read... [22:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:42]Read from MH i2c: E2 [22:46:42]MH_I2C_Read... [22:46:42]Read from MH i2c: E2 0E 00 [22:46:42]MH_I2C_Read... [22:46:42]Read from MH i2c: E2 0E 00 D3 2D 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 77 [22:46:42]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:46:42]wFMCommunicate OK [22:46:42]SAM_PROTO_GetShiftState done [22:46:42]FM_GetShiftState done [22:46:42]opened in 1720828979 [22:46:42]opened+sec_in_day 1720915379 [22:46:42]quantity*price = 30033 [22:46:42]sum+1 = 30035 [22:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 337 13.07.2024 22:46 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162669 ФПД: 273707926285185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224644&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162669&fm=273707926285185&tin=02508201610067®Number=0000000000090858&sum=30000 [22:46:43]StoreToDocumentArchive [22:46:43]shift 462 fd 162669 [22:46:43]save to /storage/0462/doc_00162669 [22:46:43]save last doc name /storage/0462/doc_00162669 to /storage/kkm_last_doc_name [22:46:43]save OK [22:46:43]Clear old archive folders... [22:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:46:43]tlvbuf is 0060C1C0 [22:46:43]SAM_PROTO_ClearQueue [22:46:43]wFMCommunicate request_size=4 [22:46:43]MH_SAM_APDU [22:46:43]CAPDU: 80 09 00 00 [22:46:43]Write to MH i2c: E2 08 00 E0 2D 80 09 00 00 00 00 00 00 7F [22:46:43]Write i2c OK [22:46:43]MH_I2C_Read... [22:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:43]Read from MH i2c: E2 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 03 00 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 03 00 E0 2D 00 90 00 81 [22:46:43]RAPDU: 90 00 [22:46:43]wFMCommunicate OK [22:46:43]SAM_PROTO_ClearQueue done [22:46:43]KKMCreateOFDPacket [22:46:43]OFDProtocolAddRootSTLVToBuf [22:46:43]FM_MakeSignedData [22:46:43]FM_MakeSignedData [22:46:43]SAM_PROTO_SignData [22:46:43]wFMCommunicate request_size=4 [22:46:43]MH_SAM_APDU [22:46:43]CAPDU: 80 0D 01 02 [22:46:43]Write to MH i2c: E2 08 00 E1 2D 80 0D 01 02 00 00 00 00 87 [22:46:43]Write i2c OK [22:46:43]MH_I2C_Read... [22:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:43]Read from MH i2c: E2 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 03 00 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 03 00 E1 2D 00 90 00 82 [22:46:43]RAPDU: 90 00 [22:46:43]wFMCommunicate OK [22:46:43]wFMCommunicate request_size=255 [22:46:43]MH_SAM_APDU [22:46:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 51 01 00 00 F4 03 04 00 D4 03 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7B 02 00 35 04 06 00 F8 [22:46:43]Write to MH i2c: E2 02 01 E2 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 51 01 00 00 F4 03 04 00 D4 03 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7B 02 00 35 04 06 00 F8 00 00 D5 [22:46:43]Write i2c OK [22:46:43]MH_I2C_Read... [22:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:43]Read from MH i2c: E2 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 03 00 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 03 00 E2 2D 00 90 00 83 [22:46:43]RAPDU: 90 00 [22:46:43]wFMCommunicate OK [22:46:43]wFMCommunicate request_size=10 [22:46:43]MH_SAM_APDU [22:46:43]CAPDU: 80 0D 02 02 05 EF 97 B7 EB 81 [22:46:43]Write to MH i2c: E2 0D 00 E3 2D 80 0D 02 02 05 00 EF 97 B7 EB 81 00 00 3D [22:46:43]Write i2c OK [22:46:43]MH_I2C_Read... [22:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:43]Read from MH i2c: E2 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 03 00 [22:46:43]MH_I2C_Read... [22:46:43]Read from MH i2c: E2 03 00 E3 2D 00 90 00 84 [22:46:43]RAPDU: 90 00 [22:46:43]wFMCommunicate OK [22:46:43]wFMCommunicate request_size=4 [22:46:43]MH_SAM_APDU [22:46:43]CAPDU: 80 0D 03 02 [22:46:44]Write to MH i2c: E2 08 00 E4 2D 80 0D 03 02 00 00 00 00 8C [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:44]Read from MH i2c: E2 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 0B 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 0B 00 E4 2D 00 72 E7 5B 7D C1 46 F6 B6 90 00 71 [22:46:44]RAPDU: 72 E7 5B 7D C1 46 F6 B6 90 00 [22:46:44]wFMCommunicate OK [22:46:44]SAM_PROTO_SignData done [22:46:44]FM_MakeSignedData done [22:46:44]CreateOFDProtocolMessage [22:46:44]wFMCommunicate request_size=4 [22:46:44]MH_SAM_APDU [22:46:44]CAPDU: 80 11 00 00 [22:46:44]Write to MH i2c: E2 08 00 E5 2D 80 11 00 00 00 00 00 00 8C [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:44]Read from MH i2c: E2 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 17 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: E2 17 00 E5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 EC [22:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:46:44]wFMCommunicate OK [22:46:44]CreateOFDProtocolMessage done [22:46:44]OFDSenderStorePacket 162669 [22:46:44]StoreOFDPacket docnum=162669 [22:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 87 28 07 01 B3 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 51 01 00 00 F4 03 04 00 D4 03 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7B 02 00 35 04 06 00 F8 EF 97 B7 EB 81 72 E7 5B 7D C1 46 F6 B6 [22:46:44]CheckFolder [22:46:44]dirname=/storage/ofd_packets [22:46:44]CheckFolder done [22:46:44]ProducePacketName [22:46:44]name=ofd_packets/00162669 [22:46:44]NVStorageSaveData ofd_packets/00162669 [22:46:44]File name is /storage/ofd_packets/00162669 [22:46:44]Write 301 bytes [22:46:44]NVStorageSaveData done [22:46:44]OFDSenderStorePacket done [22:46:44]KKMCreateOFDPacket done [22:46:44]NVStorageSaveData kkm_last_timestamp [22:46:44]File name is /storage/kkm_last_timestamp [22:46:44]Write 4 bytes [22:46:44]NVStorageSaveData done [22:46:44]ExternCall_PrintAddStr [22:46:44]wPrintStart [22:46:44]Write to MH i2c: 01 00 00 E6 2D 13 [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: 01 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: 01 07 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: 01 07 00 E6 2D 00 00 00 00 00 FF 0F 28 [22:46:44]RasterBufferAndPrint [22:46:44]line Счет N : (1)1319248 [22:46:44]line ИНН: 02508201610067 [22:46:44]line Контрольно-Кассовый Чек [22:46:44]line ПРОДАЖА [22:46:44]line ТРК (МРК, ГНК) : 53 [22:46:44]line Товар: 2710124130 [22:46:44]line Аи-92-К-5 [22:46:44]line 4.530 * 66.30 [22:46:44]line = 300.34 [22:46:44]line НДС 12% НСП 1% [22:46:44]line > о реализуемом товаре [22:46:44]line ОКРУГЛЕНИЕ: -0.34 [22:46:44]line ИТОГО: 300.00 [22:46:44]line Внесено: 300.00 [22:46:44]line СДАЧА: 0.00 [22:46:44]line НСП 1% : 2.66 [22:46:44]line НДС 12% : 31.89 [22:46:44]line Наличными: 300.00 [22:46:44]line Безнал.: 0.00 [22:46:44]line Место: АЗС № 140 "Партнер Нефть" [22:46:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:46:44]line СНО: Общий режим [22:46:44]line Чек 337 13.07.2024 22:46 [22:46:44]line Смена: 462 ФФД: 1.0 [22:46:44]line ЗНМ: 0300000129 [22:46:44]line РНМ: 0000000000090858 [22:46:44]line Версия ККМ: 001 [22:46:44]line ФМ: 0000000000874899 [22:46:44]line ФД: 162669 [22:46:44]line ФПД: 273707926285185 [22:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T224644&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162669&fm=273707926285185&tin=02508201610067®Number=0000000000090858&sum=30000 [22:46:44]written 0, free lines is 4095 [22:46:44]OFD Sender: Processing packet 162669 [packets to send 106, broken 105] [22:46:44]ProducePacketName [22:46:44]name=ofd_packets/00162669 [22:46:44]OFD Sender: To server: pG, [22:46:44]CommunicateWithHost lk.salyk.kg:30040 [22:46:44]ConnectInit lk.salyk.kg [22:46:44]Connected sock=10 [22:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 87 28 07 01 B3 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 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 75 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 51 01 00 00 F4 03 04 00 D4 03 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7B 02 00 35 04 06 00 F8 EF 97 B7 EB 81 72 E7 5B 7D C1 46 F6 B6 [22:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CB 5D 47 00 5C E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6D 7B 02 00 F4 03 04 00 E2 AF 92 66 B6 04 01 00 00 E6 CD 01 DF 71 E2 8D 56 [22:46:44]CommunicateWithHost err = 0 [22:46:44]CheckOFDResponse [22:46:44]1017 (14) - 77093643461234 [22:46:44]1041 (16) - 0000000000874899 [22:46:44]1040 (4) - 162669 [22:46:44]1012 (4) - 13.07.2024 16:48 [22:46:44]1206 (1) - 0 [22:46:44]OFD Sender: Remove packet 162669 [22:46:44]ProducePacketName [22:46:44]name=ofd_packets/00162669 [22:46:44]NVStorageDeleteData [22:46:44]Write to MH i2c: 01 00 00 11 2E 3F [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: 01 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: 01 07 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: 01 07 00 11 2E 00 00 00 00 00 F3 0C 45 [22:46:44]RasterBufferAndPrint [22:46:44]line [22:46:44]line [22:46:44]line [22:46:44]line [22:46:44]line [22:46:44]written 0, free lines is 3324 [22:46:44]MH_Cut [22:46:44]Write to MH i2c: D1 01 00 18 2E 01 18 [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: D1 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: D1 01 00 [22:46:44]MH_I2C_Read... [22:46:44]Read from MH i2c: D1 01 00 18 2E 00 17 [22:46:44]Write to MH i2c: 01 00 00 19 2E 47 [22:46:44]Write i2c OK [22:46:44]MH_I2C_Read... [22:46:44]OFD Sender: No OFD packet to send [22:46:45]*** Cut start [22:46:45]*** Purtial cut [22:46:45]*** CUTSNS_PIN = 0 [22:46:45]*** Stage 1: CUTSNS_PIN = 1 [22:46:47]Read from MH i2c: 01 [22:46:47]MH_I2C_Read... [22:46:47]*** Stop cut motor [22:46:47]*** Cut end [22:46:47]Read from MH i2c: 01 07 00 [22:46:47]MH_I2C_Read... [22:46:47]Read from MH i2c: 01 07 00 19 2E 00 00 00 00 00 FF 0F 5C [22:46:47]process_action close_receipt done [22:46:47]requested_data is exist [22:46:47]produce_requested_data [22:46:47]requested_item fm.sn is exist - process it [22:46:47]wFMCommunicate request_size=4 [22:46:47]MH_SAM_APDU [22:46:47]CAPDU: 80 11 00 00 [22:46:47]Write to MH i2c: E2 08 00 1A 2E 80 11 00 00 00 00 00 00 C2 [22:46:47]Write i2c OK [22:46:47]MH_I2C_Read... [22:46:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:47]Read from MH i2c: E2 [22:46:47]MH_I2C_Read... [22:46:47]Read from MH i2c: E2 17 00 [22:46:47]MH_I2C_Read... [22:46:47]Read from MH i2c: E2 17 00 1A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 22 [22:46:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:46:47]wFMCommunicate OK [22:46:47]requested_item fd.num is exist - process it [22:46:47]SAM_PROTO_GetFieldsCounters [22:46:47]wFMCommunicate request_size=4 [22:46:47]MH_SAM_APDU [22:46:47]CAPDU: 80 13 00 00 [22:46:47]Write to MH i2c: E2 08 00 1B 2E 80 13 00 00 00 00 00 00 C5 [22:46:47]Write i2c OK [22:46:47]MH_I2C_Read... [22:46:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:47]Read from MH i2c: E2 [22:46:47]MH_I2C_Read... [22:46:47]Read from MH i2c: E2 62 00 [22:46:47]MH_I2C_Read... [22:46:47]Read from MH i2c: E2 62 00 1B 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [22:46:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:47]wFMCommunicate OK [22:46:47]SAM_PROTO_GetFieldsCounters done [22:46:47]requested_item shift.num is exist - process it [22:46:47]requested_item shift.opened is exist - process it [22:46:47]req_shift_opened [22:46:47]FM_GetShiftState [22:46:47]SAM_PROTO_GetShiftState [22:46:47]wFMCommunicate request_size=4 [22:46:47]MH_SAM_APDU [22:46:47]CAPDU: 80 13 01 00 [22:46:47]Write to MH i2c: E2 08 00 1C 2E 80 13 01 00 00 00 00 00 C7 [22:46:47]Write i2c OK [22:46:47]MH_I2C_Read... [22:46:47]Read from MH i2c: E2 [22:46:47]MH_I2C_Read... [22:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:47]Read from MH i2c: E2 0E 00 [22:46:47]MH_I2C_Read... [22:46:47]Read from MH i2c: E2 0E 00 1C 2E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C1 [22:46:47]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:46:47]wFMCommunicate OK [22:46:47]SAM_PROTO_GetShiftState done [22:46:47]FM_GetShiftState done [22:46:47]req_shift_opened done [22:46:47]requested_item shift.open_date is exist - process it [22:46:47]req_shift_open_date [22:46:47]req_shift_open_date done [22:46:47]produce_requested_data done [22:46:47]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162669,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:46:47]process_action_free close_receipt [22:46:47]json_value_free [22:46:47]json_value_free done [22:46:47]process_json_proto returns [22:46:47]Send response to host [22:46:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162669,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:46:47]free response buf [22:46:47]execute_script done [22:46:47]execute_script returns [22:46:47]free content buf [22:46:47]Sock 9.Close socket [22:46:47]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:55]OFD Sender: No OFD packet to send [22:51:00]OFD Sender: No OFD packet to send [22:51:05]OFD Sender: No OFD packet to send [22:51:10]OFD Sender: No OFD packet to send [22:51:15]OFD Sender: No OFD packet to send [22:51:20]OFD Sender: No OFD packet to send [22:51:24]accept exits with 7 [22:51:24]New connection [22:51:24]New thread 3067366756 created [22:51:24]Thread 3067510116 joined [22:51:24]Waiting for new connection... [22:51:24] Sock 7.Parse request [22:51:24]Sock 7.Check first char [22:51:24]Sock 7.First char is OK [22:51:24]request: POST /json_proto HTTP/1.0 [22:51:24]Method: POST [22:51:24]URL: /json_proto [22:51:24]Method is POST - this is cgi request [22:51:24]url: /json_proto [22:51:24]query_string will be loaded in cgi processing [22:51:24]execute_cgi json_proto POST (null) [22:51:24]execute_cgi path=json_proto method=POST [22:51:24]POST find Content-Length [22:51:24]Host: 172.17.39.67:8080 [22:51:24]Content-Length: 683 [22:51:24]Content-Type: application/json [22:51:24] [22:51:24]POST finish read [22:51:24]Found Content-Length = 683 [22:51:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 19.610, "sum" : 1300.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:24]execute_script... [22:51: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)1319250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 19.610, "sum" : 1300.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:51:24]POST & json_proto [22:51:24]process_json_proto [22:51:24]json parsed OK: [22:51:24]protocol is kg_v1.0 [22:51:24]action value=close_receipt [22:51:24]process_action close_receipt [22:51:24]cmd_close_receipt [22:51:24]MH_GetDate [22:51:24]Write to MH i2c: F0 00 00 1D 2E 3A [22:51:24]Write i2c OK [22:51:24]MH_I2C_Read... [22:51:24]Read from MH i2c: F0 [22:51:24]MH_I2C_Read... [22:51:24]Read from MH i2c: F0 09 00 [22:51:24]MH_I2C_Read... [22:51:24]Read from MH i2c: F0 09 00 1D 2E 00 EF 04 93 66 86 7C 92 66 29 [22:51:24]GetLastDocTimeStamp 1720910804 [22:51:24]current date 1720911087 [22:51:24]FM_GetShiftState [22:51:24]SAM_PROTO_GetShiftState [22:51:24]wFMCommunicate request_size=4 [22:51:24]MH_SAM_APDU [22:51:24]CAPDU: 80 13 01 00 [22:51:24]Write to MH i2c: E2 08 00 1E 2E 80 13 01 00 00 00 00 00 C9 [22:51:24]Write i2c OK [22:51:24]MH_I2C_Read... [22:51:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:24]Read from MH i2c: E2 [22:51:24]MH_I2C_Read... [22:51:24]Read from MH i2c: E2 0E 00 [22:51:24]MH_I2C_Read... [22:51:24]Read from MH i2c: E2 0E 00 1E 2E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C3 [22:51:24]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:51:24]wFMCommunicate OK [22:51:24]SAM_PROTO_GetShiftState done [22:51:24]FM_GetShiftState done [22:51:24]opened in 1720828979 [22:51:24]opened+sec_in_day 1720915379 [22:51:24]quantity*price = 130014 [22:51:24]sum+1 = 130015 [22:51:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.07 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 338 13.07.2024 22:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162670 ФПД: 166657244574591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225127&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162670&fm=166657244574591&tin=02508201610067®Number=0000000000090858&sum=130000 [22:51:26]StoreToDocumentArchive [22:51:26]shift 462 fd 162670 [22:51:26]save to /storage/0462/doc_00162670 [22:51:26]save last doc name /storage/0462/doc_00162670 to /storage/kkm_last_doc_name [22:51:26]save OK [22:51:26]Clear old archive folders... [22:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:51:26]tlvbuf is 00642190 [22:51:26]SAM_PROTO_ClearQueue [22:51:26]wFMCommunicate request_size=4 [22:51:26]MH_SAM_APDU [22:51:26]CAPDU: 80 09 00 00 [22:51:26]Write to MH i2c: E2 08 00 2B 2E 80 09 00 00 00 00 00 00 CB [22:51:26]Write i2c OK [22:51:26]MH_I2C_Read... [22:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:51:26]Read from MH i2c: E2 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 03 00 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 03 00 2B 2E 00 90 00 CD [22:51:26]RAPDU: 90 00 [22:51:26]wFMCommunicate OK [22:51:26]SAM_PROTO_ClearQueue done [22:51:26]KKMCreateOFDPacket [22:51:26]OFDProtocolAddRootSTLVToBuf [22:51:26]FM_MakeSignedData [22:51:26]FM_MakeSignedData [22:51:26]SAM_PROTO_SignData [22:51:26]wFMCommunicate request_size=4 [22:51:26]MH_SAM_APDU [22:51:26]CAPDU: 80 0D 01 02 [22:51:26]Write to MH i2c: E2 08 00 2C 2E 80 0D 01 02 00 00 00 00 D3 [22:51:26]Write i2c OK [22:51:26]MH_I2C_Read... [22:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:51:26]Read from MH i2c: E2 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 03 00 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 03 00 2C 2E 00 90 00 CE [22:51:26]RAPDU: 90 00 [22:51:26]wFMCommunicate OK [22:51:26]wFMCommunicate request_size=255 [22:51:26]MH_SAM_APDU [22:51:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 4C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 EF 04 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7B 02 00 35 04 06 00 97 [22:51:26]Write to MH i2c: E2 02 01 2D 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9A 4C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 EF 04 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7B 02 00 35 04 06 00 97 00 00 7D [22:51:26]Write i2c OK [22:51:26]MH_I2C_Read... [22:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:26]Read from MH i2c: E2 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 03 00 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 03 00 2D 2E 00 90 00 CF [22:51:26]RAPDU: 90 00 [22:51:26]wFMCommunicate OK [22:51:26]wFMCommunicate request_size=10 [22:51:26]MH_SAM_APDU [22:51:26]CAPDU: 80 0D 02 02 05 92 E9 DC B3 7F [22:51:26]Write to MH i2c: E2 0D 00 2E 2E 80 0D 02 02 05 00 92 E9 DC B3 7F 00 00 69 [22:51:26]Write i2c OK [22:51:26]MH_I2C_Read... [22:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:51:26]Read from MH i2c: E2 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 03 00 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 03 00 2E 2E 00 90 00 D0 [22:51:26]RAPDU: 90 00 [22:51:26]wFMCommunicate OK [22:51:26]wFMCommunicate request_size=4 [22:51:26]MH_SAM_APDU [22:51:26]CAPDU: 80 0D 03 02 [22:51:26]Write to MH i2c: E2 08 00 2F 2E 80 0D 03 02 00 00 00 00 D8 [22:51:26]Write i2c OK [22:51:26]MH_I2C_Read... [22:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:51:26]Read from MH i2c: E2 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 0B 00 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 0B 00 2F 2E 00 39 4A 34 0D 98 DE F7 DE 90 00 E8 [22:51:26]RAPDU: 39 4A 34 0D 98 DE F7 DE 90 00 [22:51:26]wFMCommunicate OK [22:51:26]SAM_PROTO_SignData done [22:51:26]FM_MakeSignedData done [22:51:26]CreateOFDProtocolMessage [22:51:26]wFMCommunicate request_size=4 [22:51:26]MH_SAM_APDU [22:51:26]CAPDU: 80 11 00 00 [22:51:26]Write to MH i2c: E2 08 00 30 2E 80 11 00 00 00 00 00 00 D8 [22:51:26]Write i2c OK [22:51:26]MH_I2C_Read... [22:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:26]Read from MH i2c: E2 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 17 00 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: E2 17 00 30 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 38 [22:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:51:26]wFMCommunicate OK [22:51:26]CreateOFDProtocolMessage done [22:51:26]OFDSenderStorePacket 162670 [22:51:26]StoreOFDPacket docnum=162670 [22:51:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CA 2D 07 01 8F 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 35 FF 03 08 00 03 9A 4C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 EF 04 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7B 02 00 35 04 06 00 97 92 E9 DC B3 7F 39 4A 34 0D 98 DE F7 DE [22:51:26]CheckFolder [22:51:26]dirname=/storage/ofd_packets [22:51:26]CheckFolder done [22:51:26]ProducePacketName [22:51:26]name=ofd_packets/00162670 [22:51:26]NVStorageSaveData ofd_packets/00162670 [22:51:26]File name is /storage/ofd_packets/00162670 [22:51:26]Write 301 bytes [22:51:26]NVStorageSaveData done [22:51:26]OFDSenderStorePacket done [22:51:26]KKMCreateOFDPacket done [22:51:26]NVStorageSaveData kkm_last_timestamp [22:51:26]File name is /storage/kkm_last_timestamp [22:51:26]Write 4 bytes [22:51:26]NVStorageSaveData done [22:51:26]ExternCall_PrintAddStr [22:51:26]wPrintStart [22:51:26]Write to MH i2c: 01 00 00 31 2E 5F [22:51:26]Write i2c OK [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: 01 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: 01 07 00 [22:51:26]MH_I2C_Read... [22:51:26]Read from MH i2c: 01 07 00 31 2E 00 00 00 00 00 FF 0F 74 [22:51:26]RasterBufferAndPrint [22:51:26]line Счет N : (1)1319250 [22:51:26]line ИНН: 02508201610067 [22:51:26]line Контрольно-Кассовый Чек [22:51:26]line ПРОДАЖА [22:51:26]line ТРК (МРК, ГНК) : 43 [22:51:26]line Товар: 2710124130 [22:51:26]line Аи-92-К-5 [22:51:26]line 19.610 * 66.30 [22:51:26]line = 1300.14 [22:51:26]line НДС 12% НСП 1% [22:51:26]line > о реализуемом товаре [22:51:26]line ОКРУГЛЕНИЕ: -0.14 [22:51:26]line ИТОГО: 1300.00 [22:51:26]line Внесено: 1300.00 [22:51:26]line СДАЧА: 0.00 [22:51:26]line НСП 1% : 11.51 [22:51:26]line НДС 12% : 138.07 [22:51:26]line Наличными: 1300.00 [22:51:26]line Безнал.: 0.00 [22:51:26]line Место: АЗС № 140 "Партнер Нефть" [22:51:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:51:26]line СНО: Общий режим [22:51:26]line Чек 338 13.07.2024 22:51 [22:51:26]line Смена: 462 ФФД: 1.0 [22:51:26]line ЗНМ: 0300000129 [22:51:26]line РНМ: 0000000000090858 [22:51:26]line Версия ККМ: 001 [22:51:26]line ФМ: 0000000000874899 [22:51:26]line ФД: 162670 [22:51:26]line ФПД: 166657244574591 [22:51:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225127&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162670&fm=166657244574591&tin=02508201610067®Number=0000000000090858&sum=130000 [22:51:26]OFD Sender: Processing packet 162670 [packets to send 106, broken 105] [22:51:26]ProducePacketName [22:51:26]name=ofd_packets/00162670 [22:51:26]OFD Sender: To server: pG, [22:51:26]CommunicateWithHost lk.salyk.kg:30040 [22:51:26]ConnectInit lk.salyk.kg [22:51:26]written 0, free lines is 4095 [22:51:27]Connected sock=10 [22:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 CA 2D 07 01 8F 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 35 FF 03 08 00 03 9A 4C 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 DE FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 EF 04 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7B 02 00 35 04 06 00 97 92 E9 DC B3 7F 39 4A 34 0D 98 DE F7 DE [22:51:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 90 A9 47 00 B5 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6E 7B 02 00 F4 03 04 00 FD B0 92 66 B6 04 01 00 00 FD 90 13 B7 DB 96 00 A1 [22:51:27]CommunicateWithHost err = 0 [22:51:27]CheckOFDResponse [22:51:27]1017 (14) - 77093643461234 [22:51:27]1041 (16) - 0000000000874899 [22:51:27]1040 (4) - 162670 [22:51:27]1012 (4) - 13.07.2024 16:53 [22:51:27]1206 (1) - 0 [22:51:27]OFD Sender: Remove packet 162670 [22:51:27]ProducePacketName [22:51:27]name=ofd_packets/00162670 [22:51:27]NVStorageDeleteData [22:51:27]Write to MH i2c: 01 00 00 5C 2E 8A [22:51:27]Write i2c OK [22:51:27]MH_I2C_Read... [22:51:27]Read from MH i2c: 01 [22:51:27]MH_I2C_Read... [22:51:27]Read from MH i2c: 01 07 00 [22:51:27]MH_I2C_Read... [22:51:27]Read from MH i2c: 01 07 00 5C 2E 00 00 00 00 00 F6 0C 93 [22:51:27]RasterBufferAndPrint [22:51:27]line [22:51:27]line [22:51:27]line [22:51:27]line [22:51:27]line [22:51:27]written 0, free lines is 3324 [22:51:27]MH_Cut [22:51:27]Write to MH i2c: D1 01 00 63 2E 01 63 [22:51:27]Write i2c OK [22:51:27]MH_I2C_Read... [22:51:27]Read from MH i2c: D1 [22:51:27]MH_I2C_Read... [22:51:27]Read from MH i2c: D1 01 00 [22:51:27]MH_I2C_Read... [22:51:27]Read from MH i2c: D1 01 00 63 2E 00 62 [22:51:27]Write to MH i2c: 01 00 00 64 2E 92 [22:51:27]Write i2c OK [22:51:27]MH_I2C_Read... [22:51:27]OFD Sender: No OFD packet to send [22:51:28]*** Cut start [22:51:28]*** Purtial cut [22:51:28]*** Stage 1: CUTSNS_PIN = 1 [22:51:28]Read from MH i2c: 01 [22:51:28]MH_I2C_Read... [22:51:28]*** Stop cut motor [22:51:28]*** Cut end [22:51:28]Read from MH i2c: 01 07 00 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: 01 07 00 64 2E 00 00 00 00 00 FF 0F A7 [22:51:28]process_action close_receipt done [22:51:28]requested_data is exist [22:51:28]produce_requested_data [22:51:28]requested_item fm.sn is exist - process it [22:51:28]wFMCommunicate request_size=4 [22:51:28]MH_SAM_APDU [22:51:28]CAPDU: 80 11 00 00 [22:51:28]Write to MH i2c: E2 08 00 65 2E 80 11 00 00 00 00 00 00 0D [22:51:28]Write i2c OK [22:51:28]MH_I2C_Read... [22:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:51:28]Read from MH i2c: E2 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: E2 17 00 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: E2 17 00 65 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6D [22:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:51:28]wFMCommunicate OK [22:51:28]requested_item fd.num is exist - process it [22:51:28]SAM_PROTO_GetFieldsCounters [22:51:28]wFMCommunicate request_size=4 [22:51:28]MH_SAM_APDU [22:51:28]CAPDU: 80 13 00 00 [22:51:28]Write to MH i2c: E2 08 00 66 2E 80 13 00 00 00 00 00 00 10 [22:51:28]Write i2c OK [22:51:28]MH_I2C_Read... [22:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:51:28]Read from MH i2c: E2 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: E2 62 00 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: E2 62 00 66 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [22:51:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:51:28]wFMCommunicate OK [22:51:28]SAM_PROTO_GetFieldsCounters done [22:51:28]requested_item shift.num is exist - process it [22:51:28]requested_item shift.opened is exist - process it [22:51:28]req_shift_opened [22:51:28]FM_GetShiftState [22:51:28]SAM_PROTO_GetShiftState [22:51:28]wFMCommunicate request_size=4 [22:51:28]MH_SAM_APDU [22:51:28]CAPDU: 80 13 01 00 [22:51:28]Write to MH i2c: E2 08 00 67 2E 80 13 01 00 00 00 00 00 12 [22:51:28]Write i2c OK [22:51:28]MH_I2C_Read... [22:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:51:28]Read from MH i2c: E2 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: E2 0E 00 [22:51:28]MH_I2C_Read... [22:51:28]Read from MH i2c: E2 0E 00 67 2E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 0C [22:51:28]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:51:28]wFMCommunicate OK [22:51:28]SAM_PROTO_GetShiftState done [22:51:28]FM_GetShiftState done [22:51:28]req_shift_opened done [22:51:28]requested_item shift.open_date is exist - process it [22:51:28]req_shift_open_date [22:51:28]req_shift_open_date done [22:51:28]produce_requested_data done [22:51:28]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162670,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:51:28]process_action_free close_receipt [22:51:28]json_value_free [22:51:28]json_value_free done [22:51:28]process_json_proto returns [22:51:28]Send response to host [22:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162670,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:51:28]free response buf [22:51:28]execute_script done [22:51:28]execute_script returns [22:51:28]free content buf [22:51:28]Sock 7.Close socket [22:51:28]Sock 7.Thread stoped [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]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:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:27]accept exits with 9 [22:54:27]New connection [22:54:27]New thread 3067510116 created [22:54:27]Thread 3067366756 joined [22:54:27]Waiting for new connection... [22:54:27] Sock 9.Parse request [22:54:27]Sock 9.Check first char [22:54:27]Sock 9.First char is OK [22:54:27]request: POST /json_proto HTTP/1.0 [22:54:27]Method: POST [22:54:27]URL: /json_proto [22:54:27]Method is POST - this is cgi request [22:54:27]url: /json_proto [22:54:27]query_string will be loaded in cgi processing [22:54:27]execute_cgi json_proto POST (null) [22:54:27]execute_cgi path=json_proto method=POST [22:54:27]POST find Content-Length [22:54:27]Host: 172.17.39.67:8080 [22:54:27]Content-Length: 688 [22:54:27]Content-Type: application/json [22:54:27] [22:54:27]POST finish read [22:54:27]Found Content-Length = 688 [22:54:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:54:27]execute_script... [22:54:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:54:27]POST & json_proto [22:54:27]process_json_proto [22:54:27]json parsed OK: [22:54:27]protocol is kg_v1.0 [22:54:27]action value=close_receipt [22:54:27]process_action close_receipt [22:54:27]cmd_close_receipt [22:54:27]MH_GetDate [22:54:27]Write to MH i2c: F0 00 00 68 2E 85 [22:54:27]Write i2c OK [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: F0 [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: F0 09 00 [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: F0 09 00 68 2E 00 A5 05 93 66 86 7C 92 66 2B [22:54:27]GetLastDocTimeStamp 1720911087 [22:54:27]current date 1720911269 [22:54:27]FM_GetShiftState [22:54:27]SAM_PROTO_GetShiftState [22:54:27]wFMCommunicate request_size=4 [22:54:27]MH_SAM_APDU [22:54:27]CAPDU: 80 13 01 00 [22:54:27]Write to MH i2c: E2 08 00 69 2E 80 13 01 00 00 00 00 00 14 [22:54:27]Write i2c OK [22:54:27]MH_I2C_Read... [22:54:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:27]Read from MH i2c: E2 [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: E2 0E 00 [22:54:27]MH_I2C_Read... [22:54:27]Read from MH i2c: E2 0E 00 69 2E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 0E [22:54:27]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:54:27]wFMCommunicate OK [22:54:27]SAM_PROTO_GetShiftState done [22:54:27]FM_GetShiftState done [22:54:27]opened in 1720828979 [22:54:27]opened+sec_in_day 1720915379 [22:54:27]quantity*price = 300055 [22:54:27]sum+1 = 300057 [22:54:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.64 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 339 13.07.2024 22:54 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162671 ФПД: 70932675529836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225429&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162671&fm=70932675529836&tin=02508201610067®Number=0000000000090858&sum=300000 [22:54:28]StoreToDocumentArchive [22:54:28]shift 462 fd 162671 [22:54:28]save to /storage/0462/doc_00162671 [22:54:28]save last doc name /storage/0462/doc_00162671 to /storage/kkm_last_doc_name [22:54:28]save OK [22:54:28]Clear old archive folders... [22:54:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:54:28]tlvbuf is 0060C5A0 [22:54:28]SAM_PROTO_ClearQueue [22:54:28]wFMCommunicate request_size=4 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 09 00 00 [22:54:28]Write to MH i2c: E2 08 00 76 2E 80 09 00 00 00 00 00 00 16 [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 76 2E 00 90 00 18 [22:54:28]RAPDU: 90 00 [22:54:28]wFMCommunicate OK [22:54:28]SAM_PROTO_ClearQueue done [22:54:28]KKMCreateOFDPacket [22:54:28]OFDProtocolAddRootSTLVToBuf [22:54:28]FM_MakeSignedData [22:54:28]FM_MakeSignedData [22:54:28]SAM_PROTO_SignData [22:54:28]wFMCommunicate request_size=4 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 0D 01 02 [22:54:28]Write to MH i2c: E2 08 00 77 2E 80 0D 01 02 00 00 00 00 1E [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 77 2E 00 90 00 19 [22:54:28]RAPDU: 90 00 [22:54:28]wFMCommunicate OK [22:54:28]wFMCommunicate request_size=255 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 53 01 00 00 F4 03 04 00 A5 05 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7B 02 00 35 04 06 00 [22:54:28]Write to MH i2c: E2 02 01 78 2E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 53 01 00 00 F4 03 04 00 A5 05 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7B 02 00 35 04 06 00 00 00 AD [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 78 2E 00 90 00 1A [22:54:28]RAPDU: 90 00 [22:54:28]wFMCommunicate OK [22:54:28]wFMCommunicate request_size=11 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 0D 02 02 06 40 83 4C ED 8C 6C [22:54:28]Write to MH i2c: E2 0E 00 79 2E 80 0D 02 02 06 00 40 83 4C ED 8C 6C 00 00 21 [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 03 00 79 2E 00 90 00 1B [22:54:28]RAPDU: 90 00 [22:54:28]wFMCommunicate OK [22:54:28]wFMCommunicate request_size=4 [22:54:28]MH_SAM_APDU [22:54:28]CAPDU: 80 0D 03 02 [22:54:28]Write to MH i2c: E2 08 00 7A 2E 80 0D 03 02 00 00 00 00 23 [22:54:28]Write i2c OK [22:54:28]MH_I2C_Read... [22:54:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:28]Read from MH i2c: E2 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 0B 00 [22:54:28]MH_I2C_Read... [22:54:28]Read from MH i2c: E2 0B 00 7A 2E 00 DC F4 46 DC 3F 59 CE 1D 90 00 99 [22:54:28]RAPDU: DC F4 46 DC 3F 59 CE 1D 90 00 [22:54:28]wFMCommunicate OK [22:54:28]SAM_PROTO_SignData done [22:54:29]FM_MakeSignedData done [22:54:29]CreateOFDProtocolMessage [22:54:29]wFMCommunicate request_size=4 [22:54:29]MH_SAM_APDU [22:54:29]CAPDU: 80 11 00 00 [22:54:29]Write to MH i2c: E2 08 00 7B 2E 80 11 00 00 00 00 00 00 23 [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:29]Read from MH i2c: E2 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: E2 17 00 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: E2 17 00 7B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 83 [22:54:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:54:29]wFMCommunicate OK [22:54:29]CreateOFDProtocolMessage done [22:54:29]OFDSenderStorePacket 162671 [22:54:29]StoreOFDPacket docnum=162671 [22:54:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AD 82 08 01 99 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 53 01 00 00 F4 03 04 00 A5 05 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7B 02 00 35 04 06 00 40 83 4C ED 8C 6C DC F4 46 DC 3F 59 CE 1D [22:54:29]CheckFolder [22:54:29]dirname=/storage/ofd_packets [22:54:29]CheckFolder done [22:54:29]ProducePacketName [22:54:29]name=ofd_packets/00162671 [22:54:29]NVStorageSaveData ofd_packets/00162671 [22:54:29]File name is /storage/ofd_packets/00162671 [22:54:29]Write 302 bytes [22:54:29]NVStorageSaveData done [22:54:29]OFDSenderStorePacket done [22:54:29]KKMCreateOFDPacket done [22:54:29]NVStorageSaveData kkm_last_timestamp [22:54:29]File name is /storage/kkm_last_timestamp [22:54:29]Write 4 bytes [22:54:29]NVStorageSaveData done [22:54:29]ExternCall_PrintAddStr [22:54:29]wPrintStart [22:54:29]Write to MH i2c: 01 00 00 7C 2E AA [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 07 00 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 07 00 7C 2E 00 00 00 00 00 FF 0F BF [22:54:29]RasterBufferAndPrint [22:54:29]line Счет N : (1)1319251 [22:54:29]line ИНН: 02508201610067 [22:54:29]line Контрольно-Кассовый Чек [22:54:29]line ПРОДАЖА [22:54:29]line ТРК (МРК, ГНК) : 51 [22:54:29]line Товар: 2710194210 [22:54:29]line ДТ(л)-К-5 [22:54:29]line 41.330 * 72.60 [22:54:29]line = 3000.56 [22:54:29]line НДС 12% НСП 1% [22:54:29]line > о реализуемом товаре [22:54:29]line ОКРУГЛЕНИЕ: -0.56 [22:54:29]line ИТОГО: 3000.00 [22:54:29]line Внесено: 3000.00 [22:54:29]line СДАЧА: 0.00 [22:54:29]line НСП 1% : 26.55 [22:54:29]line НДС 12% : 318.64 [22:54:29]line Наличными: 3000.00 [22:54:29]line Безнал.: 0.00 [22:54:29]line Место: АЗС № 140 "Партнер Нефть" [22:54:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:54:29]line СНО: Общий режим [22:54:29]line Чек 339 13.07.2024 22:54 [22:54:29]line Смена: 462 ФФД: 1.0 [22:54:29]line ЗНМ: 0300000129 [22:54:29]line РНМ: 0000000000090858 [22:54:29]line Версия ККМ: 001 [22:54:29]line ФМ: 0000000000874899 [22:54:29]line ФД: 162671 [22:54:29]line ФПД: 70932675529836 [22:54:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225429&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162671&fm=70932675529836&tin=02508201610067®Number=0000000000090858&sum=300000 [22:54:29]OFD Sender: Processing packet 162671 [packets to send 106, broken 105] [22:54:29]ProducePacketName [22:54:29]name=ofd_packets/00162671 [22:54:29]OFD Sender: To server: pG, [22:54:29]CommunicateWithHost lk.salyk.kg:30040 [22:54:29]ConnectInit lk.salyk.kg [22:54:29]written 0, free lines is 4095 [22:54:29]Connected sock=10 [22:54:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AD 82 08 01 99 70 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 53 01 00 00 F4 03 04 00 A5 05 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7B 02 00 35 04 06 00 40 83 4C ED 8C 6C DC F4 46 DC 3F 59 CE 1D [22:54:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DE F3 47 00 93 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 6F 7B 02 00 F4 03 04 00 B3 B1 92 66 B6 04 01 00 00 82 31 B2 14 E0 AC FA 47 [22:54:29]CommunicateWithHost err = 0 [22:54:29]CheckOFDResponse [22:54:29]1017 (14) - 77093643461234 [22:54:29]1041 (16) - 0000000000874899 [22:54:29]1040 (4) - 162671 [22:54:29]1012 (4) - 13.07.2024 16:56 [22:54:29]1206 (1) - 0 [22:54:29]OFD Sender: Remove packet 162671 [22:54:29]ProducePacketName [22:54:29]name=ofd_packets/00162671 [22:54:29]NVStorageDeleteData [22:54:29]Write to MH i2c: 01 00 00 A7 2E D5 [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 07 00 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: 01 07 00 A7 2E 00 00 00 00 00 EA 0C D2 [22:54:29]RasterBufferAndPrint [22:54:29]line [22:54:29]line [22:54:29]line [22:54:29]line [22:54:29]line [22:54:29]written 0, free lines is 3315 [22:54:29]MH_Cut [22:54:29]Write to MH i2c: D1 01 00 AE 2E 01 AE [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: D1 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: D1 01 00 [22:54:29]MH_I2C_Read... [22:54:29]Read from MH i2c: D1 01 00 AE 2E 00 AD [22:54:29]Write to MH i2c: 01 00 00 AF 2E DD [22:54:29]Write i2c OK [22:54:29]MH_I2C_Read... [22:54:30]OFD Sender: No OFD packet to send [22:54:30]*** Cut start [22:54:30]*** Purtial cut [22:54:30]*** CUTSNS_PIN = 0 [22:54:30]*** Stage 1: CUTSNS_PIN = 1 [22:54:32]Read from MH i2c: 01 [22:54:32]MH_I2C_Read... [22:54:32]*** Stop cut motor [22:54:32]*** Cut end [22:54:32]Read from MH i2c: 01 07 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: 01 07 00 AF 2E 00 00 00 00 00 FF 0F F2 [22:54:32]process_action close_receipt done [22:54:32]requested_data is exist [22:54:32]produce_requested_data [22:54:32]requested_item fm.sn is exist - process it [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 11 00 00 [22:54:32]Write to MH i2c: E2 08 00 B0 2E 80 11 00 00 00 00 00 00 58 [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 17 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 17 00 B0 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B8 [22:54:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:54:32]wFMCommunicate OK [22:54:32]requested_item fd.num is exist - process it [22:54:32]SAM_PROTO_GetFieldsCounters [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 13 00 00 [22:54:32]Write to MH i2c: E2 08 00 B1 2E 80 13 00 00 00 00 00 00 5B [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 62 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 62 00 B1 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [22:54:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 6F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:32]wFMCommunicate OK [22:54:32]SAM_PROTO_GetFieldsCounters done [22:54:32]requested_item shift.num is exist - process it [22:54:32]requested_item shift.opened is exist - process it [22:54:32]req_shift_opened [22:54:32]FM_GetShiftState [22:54:32]SAM_PROTO_GetShiftState [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 13 01 00 [22:54:32]Write to MH i2c: E2 08 00 B2 2E 80 13 01 00 00 00 00 00 5D [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 0E 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 0E 00 B2 2E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 57 [22:54:32]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:54:32]wFMCommunicate OK [22:54:32]SAM_PROTO_GetShiftState done [22:54:32]FM_GetShiftState done [22:54:32]req_shift_opened done [22:54:32]requested_item shift.open_date is exist - process it [22:54:32]req_shift_open_date [22:54:32]req_shift_open_date done [22:54:32]produce_requested_data done [22:54:32]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162671,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:54:32]process_action_free close_receipt [22:54:32]json_value_free [22:54:32]json_value_free done [22:54:32]process_json_proto returns [22:54:32]Send response to host [22:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162671,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:54:32]free response buf [22:54:32]execute_script done [22:54:32]execute_script returns [22:54:32]free content buf [22:54:32]Sock 9.Close socket [22:54:32]Sock 9.Thread stoped [22:54:35]OFD Sender: No OFD packet to send [22:54:40]OFD Sender: No OFD packet to send [22:54:45]OFD Sender: No OFD packet to send [22:54:50]OFD Sender: No OFD packet to send [22:54:55]OFD Sender: No OFD packet to send [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:07]accept exits with 7 [22:57:07]New connection [22:57:07]New thread 3067366756 created [22:57:07]Thread 3067510116 joined [22:57:07]Waiting for new connection... [22:57:07] Sock 7.Parse request [22:57:07]Sock 7.Check first char [22:57:07]Sock 7.First char is OK [22:57:07]request: POST /json_proto HTTP/1.0 [22:57:07]Method: POST [22:57:07]URL: /json_proto [22:57:07]Method is POST - this is cgi request [22:57:07]url: /json_proto [22:57:07]query_string will be loaded in cgi processing [22:57:07]execute_cgi json_proto POST (null) [22:57:07]execute_cgi path=json_proto method=POST [22:57:07]POST find Content-Length [22:57:07]Host: 172.17.39.67:8080 [22:57:07]Content-Length: 809 [22:57:07]Content-Type: application/json [22:57:07] [22:57:07]POST finish read [22:57:07]Found Content-Length = 809 [22:57:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.000, "sum" : 1960.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1960.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:07]execute_script... [22:57: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)1319252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 27.000, "sum" : 1960.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1960.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:07]POST & json_proto [22:57:07]process_json_proto [22:57:07]json parsed OK: [22:57:07]protocol is kg_v1.0 [22:57:07]action value=close_receipt [22:57:07]process_action close_receipt [22:57:07]cmd_close_receipt [22:57:07]MH_GetDate [22:57:07]Write to MH i2c: F0 00 00 B3 2E D0 [22:57:07]Write i2c OK [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: F0 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: F0 09 00 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: F0 09 00 B3 2E 00 45 06 93 66 86 7C 92 66 17 [22:57:07]GetLastDocTimeStamp 1720911269 [22:57:07]current date 1720911429 [22:57:07]FM_GetShiftState [22:57:07]SAM_PROTO_GetShiftState [22:57:07]wFMCommunicate request_size=4 [22:57:07]MH_SAM_APDU [22:57:07]CAPDU: 80 13 01 00 [22:57:07]Write to MH i2c: E2 08 00 B4 2E 80 13 01 00 00 00 00 00 5F [22:57:07]Write i2c OK [22:57:07]MH_I2C_Read... [22:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:07]Read from MH i2c: E2 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: E2 0E 00 [22:57:07]MH_I2C_Read... [22:57:07]Read from MH i2c: E2 0E 00 B4 2E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 59 [22:57:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:57:07]wFMCommunicate OK [22:57:07]SAM_PROTO_GetShiftState done [22:57:07]FM_GetShiftState done [22:57:07]opened in 1720828979 [22:57:07]opened+sec_in_day 1720915379 [22:57:07]quantity*price = 196020 [22:57:07]sum+1 = 196021 [22:57:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1960.20 НСП 1% : 17.35 НДС 12% : 208.16 Наличными: 0.00 Безнал.: 1960.20 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 340 13.07.2024 22:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162672 ФПД: 101912233528887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225709&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162672&fm=101912233528887&tin=02508201610067®Number=0000000000090858&sum=196020 [22:57:08]StoreToDocumentArchive [22:57:08]shift 462 fd 162672 [22:57:08]save to /storage/0462/doc_00162672 [22:57:08]save last doc name /storage/0462/doc_00162672 to /storage/kkm_last_doc_name [22:57:08]save OK [22:57:08]Clear old archive folders... [22:57:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:57:08]tlvbuf is B6F30750 [22:57:08]SAM_PROTO_ClearQueue [22:57:08]wFMCommunicate request_size=4 [22:57:08]MH_SAM_APDU [22:57:08]CAPDU: 80 09 00 00 [22:57:08]Write to MH i2c: E2 08 00 C1 2E 80 09 00 00 00 00 00 00 61 [22:57:08]Write i2c OK [22:57:08]MH_I2C_Read... [22:57:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 C1 2E 00 90 00 63 [22:57:09]RAPDU: 90 00 [22:57:09]wFMCommunicate OK [22:57:09]SAM_PROTO_ClearQueue done [22:57:09]KKMCreateOFDPacket [22:57:09]OFDProtocolAddRootSTLVToBuf [22:57:09]FM_MakeSignedData [22:57:09]FM_MakeSignedData [22:57:09]SAM_PROTO_SignData [22:57:09]wFMCommunicate request_size=4 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 0D 01 02 [22:57:09]Write to MH i2c: E2 08 00 C2 2E 80 0D 01 02 00 00 00 00 69 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 C2 2E 00 90 00 64 [22:57:09]RAPDU: 90 00 [22:57:09]wFMCommunicate OK [22:57:09]wFMCommunicate request_size=255 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B4 FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 FD 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 45 06 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7B 02 00 35 04 06 00 [22:57:09]Write to MH i2c: E2 02 01 C3 2E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B4 FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 FD 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 45 06 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7B 02 00 35 04 06 00 00 00 F5 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 C3 2E 00 90 00 65 [22:57:09]RAPDU: 90 00 [22:57:09]wFMCommunicate OK [22:57:09]wFMCommunicate request_size=11 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 0D 02 02 06 5C B0 4A 7A 4E 37 [22:57:09]Write to MH i2c: E2 0E 00 C4 2E 80 0D 02 02 06 00 5C B0 4A 7A 4E 37 00 00 CD [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 03 00 C4 2E 00 90 00 66 [22:57:09]RAPDU: 90 00 [22:57:09]wFMCommunicate OK [22:57:09]wFMCommunicate request_size=4 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 0D 03 02 [22:57:09]Write to MH i2c: E2 08 00 C5 2E 80 0D 03 02 00 00 00 00 6E [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 0B 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 0B 00 C5 2E 00 AD 18 CE A6 F9 C6 B1 E8 90 00 00 [22:57:09]RAPDU: AD 18 CE A6 F9 C6 B1 E8 90 00 [22:57:09]wFMCommunicate OK [22:57:09]SAM_PROTO_SignData done [22:57:09]FM_MakeSignedData done [22:57:09]CreateOFDProtocolMessage [22:57:09]wFMCommunicate request_size=4 [22:57:09]MH_SAM_APDU [22:57:09]CAPDU: 80 11 00 00 [22:57:09]Write to MH i2c: E2 08 00 C6 2E 80 11 00 00 00 00 00 00 6E [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:09]Read from MH i2c: E2 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 17 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: E2 17 00 C6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 CE [22:57:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:57:09]wFMCommunicate OK [22:57:09]CreateOFDProtocolMessage done [22:57:09]OFDSenderStorePacket 162672 [22:57:09]StoreOFDPacket docnum=162672 [22:57:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 64 D2 08 01 B9 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B4 FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 FD 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 45 06 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7B 02 00 35 04 06 00 5C B0 4A 7A 4E 37 AD 18 CE A6 F9 C6 B1 E8 [22:57:09]CheckFolder [22:57:09]dirname=/storage/ofd_packets [22:57:09]CheckFolder done [22:57:09]ProducePacketName [22:57:09]name=ofd_packets/00162672 [22:57:09]NVStorageSaveData ofd_packets/00162672 [22:57:09]File name is /storage/ofd_packets/00162672 [22:57:09]Write 302 bytes [22:57:09]NVStorageSaveData done [22:57:09]OFDSenderStorePacket done [22:57:09]KKMCreateOFDPacket done [22:57:09]NVStorageSaveData kkm_last_timestamp [22:57:09]File name is /storage/kkm_last_timestamp [22:57:09]Write 4 bytes [22:57:09]NVStorageSaveData done [22:57:09]ExternCall_PrintAddStr [22:57:09]wPrintStart [22:57:09]Write to MH i2c: 01 00 00 C7 2E F5 [22:57:09]Write i2c OK [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: 01 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: 01 07 00 [22:57:09]MH_I2C_Read... [22:57:09]Read from MH i2c: 01 07 00 C7 2E 00 00 00 00 00 FF 0F 0A [22:57:09]RasterBufferAndPrint [22:57:09]line Счет N : (1)1319252 [22:57:09]line ИНН: 02508201610067 [22:57:09]line Контрольно-Кассовый Чек [22:57:09]line ПРОДАЖА [22:57:09]line ТРК (МРК, ГНК) : 21 [22:57:09]line Товар: 2710194210 [22:57:09]line ДТ(л)-К-5 [22:57:09]line 27.000 * 72.60 [22:57:09]line = 1960.20 [22:57:09]line НДС 12% НСП 1% [22:57:09]line > о реализуемом товаре [22:57:09]line ИТОГО: 1960.20 [22:57:09]line НСП 1% : 17.35 [22:57:09]line НДС 12% : 208.16 [22:57:09]line Наличными: 0.00 [22:57:09]line Безнал.: 1960.20 [22:57:09]line Место: АЗС № 140 "Партнер Нефть" [22:57:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:57:09]line СНО: Общий режим [22:57:09]line Чек 340 13.07.2024 22:57 [22:57:09]line Смена: 462 ФФД: 1.0 [22:57:09]line ЗНМ: 0300000129 [22:57:09]line РНМ: 0000000000090858 [22:57:09]line Версия ККМ: 001 [22:57:09]line Платежная система: O! деньги [22:57:09]line ФМ: 0000000000874899 [22:57:09]line ФД: 162672 [22:57:09]line ФПД: 101912233528887 [22:57:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225709&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162672&fm=101912233528887&tin=02508201610067®Number=0000000000090858&sum=196020 [22:57:09]written 0, free lines is 4095 [22:57:09]OFD Sender: Processing packet 162672 [packets to send 106, broken 105] [22:57:09]ProducePacketName [22:57:09]name=ofd_packets/00162672 [22:57:09]OFD Sender: To server: pG, [22:57:09]CommunicateWithHost lk.salyk.kg:30040 [22:57:09]ConnectInit lk.salyk.kg [22:57:09]Connected sock=10 [22:57:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 64 D2 08 01 B9 F0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 78 69 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 B4 FD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 FD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 51 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B4 FD 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 45 06 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7B 02 00 35 04 06 00 5C B0 4A 7A 4E 37 AD 18 CE A6 F9 C6 B1 E8 [22:57:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 28 4D 47 00 0E 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 70 7B 02 00 F4 03 04 00 54 B2 92 66 B6 04 01 00 00 50 00 14 8B BF 8B 6D FD [22:57:10]CommunicateWithHost err = 0 [22:57:10]CheckOFDResponse [22:57:10]1017 (14) - 77093643461234 [22:57:10]1041 (16) - 0000000000874899 [22:57:10]1040 (4) - 162672 [22:57:10]1012 (4) - 13.07.2024 16:59 [22:57:10]1206 (1) - 0 [22:57:10]OFD Sender: Remove packet 162672 [22:57:10]ProducePacketName [22:57:10]name=ofd_packets/00162672 [22:57:10]NVStorageDeleteData [22:57:10]Write to MH i2c: 01 00 00 F1 2E 1F [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 07 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: 01 07 00 F1 2E 00 00 00 00 00 FF 0C 31 [22:57:10]RasterBufferAndPrint [22:57:10]line [22:57:10]line [22:57:10]line [22:57:10]line [22:57:10]line [22:57:10]written 0, free lines is 3333 [22:57:10]MH_Cut [22:57:10]Write to MH i2c: D1 01 00 F8 2E 01 F8 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: D1 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: D1 01 00 [22:57:10]MH_I2C_Read... [22:57:10]Read from MH i2c: D1 01 00 F8 2E 00 F7 [22:57:10]Write to MH i2c: 01 00 00 F9 2E 27 [22:57:10]Write i2c OK [22:57:10]MH_I2C_Read... [22:57:10]OFD Sender: No OFD packet to send [22:57:11]*** Cut start [22:57:11]*** Purtial cut [22:57:11]*** Stage 1: CUTSNS_PIN = 1 [22:57:11]Read from MH i2c: 01 [22:57:11]MH_I2C_Read... [22:57:11]*** Stop cut motor [22:57:11]*** Cut end [22:57:11]Read from MH i2c: 01 07 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: 01 07 00 F9 2E 00 00 00 00 00 FF 0F 3C [22:57:11]process_action close_receipt done [22:57:11]requested_data is exist [22:57:11]produce_requested_data [22:57:11]requested_item fm.sn is exist - process it [22:57:11]wFMCommunicate request_size=4 [22:57:11]MH_SAM_APDU [22:57:11]CAPDU: 80 11 00 00 [22:57:11]Write to MH i2c: E2 08 00 FA 2E 80 11 00 00 00 00 00 00 A2 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:11]Read from MH i2c: E2 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 17 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 17 00 FA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 02 [22:57:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:57:11]wFMCommunicate OK [22:57:11]requested_item fd.num is exist - process it [22:57:11]SAM_PROTO_GetFieldsCounters [22:57:11]wFMCommunicate request_size=4 [22:57:11]MH_SAM_APDU [22:57:11]CAPDU: 80 13 00 00 [22:57:11]Write to MH i2c: E2 08 00 FB 2E 80 13 00 00 00 00 00 00 A5 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:11]Read from MH i2c: E2 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 62 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 62 00 FB 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 70 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 93 [22:57:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 70 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:57:11]wFMCommunicate OK [22:57:11]SAM_PROTO_GetFieldsCounters done [22:57:11]requested_item shift.num is exist - process it [22:57:11]requested_item shift.opened is exist - process it [22:57:11]req_shift_opened [22:57:11]FM_GetShiftState [22:57:11]SAM_PROTO_GetShiftState [22:57:11]wFMCommunicate request_size=4 [22:57:11]MH_SAM_APDU [22:57:11]CAPDU: 80 13 01 00 [22:57:11]Write to MH i2c: E2 08 00 FC 2E 80 13 01 00 00 00 00 00 A7 [22:57:11]Write i2c OK [22:57:11]MH_I2C_Read... [22:57:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:11]Read from MH i2c: E2 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 0E 00 [22:57:11]MH_I2C_Read... [22:57:11]Read from MH i2c: E2 0E 00 FC 2E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A1 [22:57:11]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:57:11]wFMCommunicate OK [22:57:11]SAM_PROTO_GetShiftState done [22:57:11]FM_GetShiftState done [22:57:11]req_shift_opened done [22:57:11]requested_item shift.open_date is exist - process it [22:57:11]req_shift_open_date [22:57:11]req_shift_open_date done [22:57:11]produce_requested_data done [22:57:11]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162672,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:57:11]process_action_free close_receipt [22:57:11]json_value_free [22:57:11]json_value_free done [22:57:11]process_json_proto returns [22:57:11]Send response to host [22:57:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162672,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:57:11]free response buf [22:57:11]execute_script done [22:57:11]execute_script returns [22:57:11]free content buf [22:57:11]Sock 7.Close socket [22:57:11]Sock 7.Thread stoped [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]accept exits with 9 [22:57:55]New connection [22:57:55]New thread 3067510116 created [22:57:55]Thread 3067366756 joined [22:57:55]Waiting for new connection... [22:57:55] Sock 9.Parse request [22:57:55]Sock 9.Check first char [22:57:55]Sock 9.First char is OK [22:57:55]request: POST /json_proto HTTP/1.0 [22:57:55]Method: POST [22:57:55]URL: /json_proto [22:57:55]Method is POST - this is cgi request [22:57:55]url: /json_proto [22:57:55]query_string will be loaded in cgi processing [22:57:55]execute_cgi json_proto POST (null) [22:57:55]execute_cgi path=json_proto method=POST [22:57:55]POST find Content-Length [22:57:55]Host: 172.17.39.67:8080 [22:57:55]Content-Length: 688 [22:57:55]Content-Type: application/json [22:57:55] [22:57:55]POST finish read [22:57:55]Found Content-Length = 688 [22:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:57:55]execute_script... [22:57:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [22:57:55]POST & json_proto [22:57:55]process_json_proto [22:57:55]json parsed OK: [22:57:55]protocol is kg_v1.0 [22:57:55]action value=close_receipt [22:57:55]process_action close_receipt [22:57:55]cmd_close_receipt [22:57:55]MH_GetDate [22:57:55]Write to MH i2c: F0 00 00 FD 2E 1A [22:57:55]Write i2c OK [22:57:55]MH_I2C_Read... [22:57:55]Read from MH i2c: F0 [22:57:55]MH_I2C_Read... [22:57:55]Read from MH i2c: F0 09 00 [22:57:55]MH_I2C_Read... [22:57:55]Read from MH i2c: F0 09 00 FD 2E 00 75 06 93 66 86 7C 92 66 91 [22:57:55]GetLastDocTimeStamp 1720911429 [22:57:55]current date 1720911477 [22:57:55]FM_GetShiftState [22:57:55]SAM_PROTO_GetShiftState [22:57:55]wFMCommunicate request_size=4 [22:57:55]MH_SAM_APDU [22:57:55]CAPDU: 80 13 01 00 [22:57:55]Write to MH i2c: E2 08 00 FE 2E 80 13 01 00 00 00 00 00 A9 [22:57:55]Write i2c OK [22:57:55]MH_I2C_Read... [22:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:55]Read from MH i2c: E2 [22:57:55]MH_I2C_Read... [22:57:55]Read from MH i2c: E2 0E 00 [22:57:55]MH_I2C_Read... [22:57:55]Read from MH i2c: E2 0E 00 FE 2E 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 A3 [22:57:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:57:55]wFMCommunicate OK [22:57:55]SAM_PROTO_GetShiftState done [22:57:55]FM_GetShiftState done [22:57:55]opened in 1720828979 [22:57:55]opened+sec_in_day 1720915379 [22:57:55]quantity*price = 200013 [22:57:55]sum+1 = 200014 [22:57:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 341 13.07.2024 22:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162673 ФПД: 77575584170916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225757&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162673&fm=77575584170916&tin=02508201610067®Number=0000000000090858&sum=200000 [22:57:56]StoreToDocumentArchive [22:57:56]shift 462 fd 162673 [22:57:56]save to /storage/0462/doc_00162673 [22:57:56]save last doc name /storage/0462/doc_00162673 to /storage/kkm_last_doc_name [22:57:56]save OK [22:57:56]Clear old archive folders... [22:57:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:57:56]tlvbuf is B6F497F0 [22:57:56]SAM_PROTO_ClearQueue [22:57:56]wFMCommunicate request_size=4 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 09 00 00 [22:57:56]Write to MH i2c: E2 08 00 0B 2F 80 09 00 00 00 00 00 00 AC [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 0B 2F 00 90 00 AE [22:57:56]RAPDU: 90 00 [22:57:56]wFMCommunicate OK [22:57:56]SAM_PROTO_ClearQueue done [22:57:56]KKMCreateOFDPacket [22:57:56]OFDProtocolAddRootSTLVToBuf [22:57:56]FM_MakeSignedData [22:57:56]FM_MakeSignedData [22:57:56]SAM_PROTO_SignData [22:57:56]wFMCommunicate request_size=4 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 0D 01 02 [22:57:56]Write to MH i2c: E2 08 00 0C 2F 80 0D 01 02 00 00 00 00 B4 [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 0C 2F 00 90 00 AF [22:57:56]RAPDU: 90 00 [22:57:56]wFMCommunicate OK [22:57:56]wFMCommunicate request_size=255 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 55 01 00 00 F4 03 04 00 75 06 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7B 02 00 35 04 06 00 [22:57:56]Write to MH i2c: E2 02 01 0D 2F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 55 01 00 00 F4 03 04 00 75 06 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7B 02 00 35 04 06 00 00 00 4A [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 0D 2F 00 90 00 B0 [22:57:56]RAPDU: 90 00 [22:57:56]wFMCommunicate OK [22:57:56]wFMCommunicate request_size=11 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 0D 02 02 06 46 8D F9 23 43 A4 [22:57:56]Write to MH i2c: E2 0E 00 0E 2F 80 0D 02 02 06 00 46 8D F9 23 43 A4 00 00 99 [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 03 00 0E 2F 00 90 00 B1 [22:57:56]RAPDU: 90 00 [22:57:56]wFMCommunicate OK [22:57:56]wFMCommunicate request_size=4 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 0D 03 02 [22:57:56]Write to MH i2c: E2 08 00 0F 2F 80 0D 03 02 00 00 00 00 B9 [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 0B 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 0B 00 0F 2F 00 93 67 2D 5C 71 AC 4F EC 90 00 95 [22:57:56]RAPDU: 93 67 2D 5C 71 AC 4F EC 90 00 [22:57:56]wFMCommunicate OK [22:57:56]SAM_PROTO_SignData done [22:57:56]FM_MakeSignedData done [22:57:56]CreateOFDProtocolMessage [22:57:56]wFMCommunicate request_size=4 [22:57:56]MH_SAM_APDU [22:57:56]CAPDU: 80 11 00 00 [22:57:56]Write to MH i2c: E2 08 00 10 2F 80 11 00 00 00 00 00 00 B9 [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:56]Read from MH i2c: E2 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 17 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: E2 17 00 10 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 19 [22:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:57:56]wFMCommunicate OK [22:57:56]CreateOFDProtocolMessage done [22:57:56]OFDSenderStorePacket 162673 [22:57:56]StoreOFDPacket docnum=162673 [22:57:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 02 6F 08 01 71 F9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 55 01 00 00 F4 03 04 00 75 06 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7B 02 00 35 04 06 00 46 8D F9 23 43 A4 93 67 2D 5C 71 AC 4F EC [22:57:56]CheckFolder [22:57:56]dirname=/storage/ofd_packets [22:57:56]CheckFolder done [22:57:56]ProducePacketName [22:57:56]name=ofd_packets/00162673 [22:57:56]NVStorageSaveData ofd_packets/00162673 [22:57:56]File name is /storage/ofd_packets/00162673 [22:57:56]Write 302 bytes [22:57:56]NVStorageSaveData done [22:57:56]OFDSenderStorePacket done [22:57:56]KKMCreateOFDPacket done [22:57:56]NVStorageSaveData kkm_last_timestamp [22:57:56]File name is /storage/kkm_last_timestamp [22:57:56]Write 4 bytes [22:57:56]NVStorageSaveData done [22:57:56]ExternCall_PrintAddStr [22:57:56]wPrintStart [22:57:56]Write to MH i2c: 01 00 00 11 2F 40 [22:57:56]Write i2c OK [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: 01 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: 01 07 00 [22:57:56]MH_I2C_Read... [22:57:56]Read from MH i2c: 01 07 00 11 2F 00 00 00 00 00 FF 0F 55 [22:57:56]RasterBufferAndPrint [22:57:56]line Счет N : (1)1319253 [22:57:56]line ИНН: 02508201610067 [22:57:56]line Контрольно-Кассовый Чек [22:57:56]line ПРОДАЖА [22:57:56]line ТРК (МРК, ГНК) : 31 [22:57:56]line Товар: 2710194210 [22:57:56]line ДТ(л)-К-5 [22:57:56]line 27.550 * 72.60 [22:57:56]line = 2000.13 [22:57:56]line НДС 12% НСП 1% [22:57:56]line > о реализуемом товаре [22:57:56]line ОКРУГЛЕНИЕ: -0.13 [22:57:56]line ИТОГО: 2000.00 [22:57:56]line Внесено: 2000.00 [22:57:56]line СДАЧА: 0.00 [22:57:56]line НСП 1% : 17.70 [22:57:56]line НДС 12% : 212.40 [22:57:56]line Наличными: 2000.00 [22:57:56]line Безнал.: 0.00 [22:57:56]line Место: АЗС № 140 "Партнер Нефть" [22:57:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:57:56]line СНО: Общий режим [22:57:56]line Чек 341 13.07.2024 22:57 [22:57:56]line Смена: 462 ФФД: 1.0 [22:57:56]line ЗНМ: 0300000129 [22:57:56]line РНМ: 0000000000090858 [22:57:56]line Версия ККМ: 001 [22:57:56]line ФМ: 0000000000874899 [22:57:56]line ФД: 162673 [22:57:56]line ФПД: 77575584170916 [22:57:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T225757&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162673&fm=77575584170916&tin=02508201610067®Number=0000000000090858&sum=200000 [22:57:57]OFD Sender: Processing packet 162673 [packets to send 106, broken 105] [22:57:57]ProducePacketName [22:57:57]name=ofd_packets/00162673 [22:57:57]OFD Sender: To server: pG, [22:57:57]CommunicateWithHost lk.salyk.kg:30040 [22:57:57]ConnectInit lk.salyk.kg [22:57:57]written 0, free lines is 4095 [22:57:57]Connected sock=10 [22:57:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 02 6F 08 01 71 F9 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 55 01 00 00 F4 03 04 00 75 06 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7B 02 00 35 04 06 00 46 8D F9 23 43 A4 93 67 2D 5C 71 AC 4F EC [22:57:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 DC 7F 47 00 0A 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 71 7B 02 00 F4 03 04 00 83 B2 92 66 B6 04 01 00 00 09 68 84 87 5C A2 B4 6C [22:57:57]CommunicateWithHost err = 0 [22:57:57]CheckOFDResponse [22:57:57]1017 (14) - 77093643461234 [22:57:57]1041 (16) - 0000000000874899 [22:57:57]1040 (4) - 162673 [22:57:57]1012 (4) - 13.07.2024 16:59 [22:57:57]1206 (1) - 0 [22:57:57]OFD Sender: Remove packet 162673 [22:57:57]ProducePacketName [22:57:57]name=ofd_packets/00162673 [22:57:57]NVStorageDeleteData [22:57:57]Write to MH i2c: 01 00 00 3C 2F 6B [22:57:57]Write i2c OK [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: 01 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: 01 07 00 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: 01 07 00 3C 2F 00 00 00 00 00 E8 0C 66 [22:57:57]RasterBufferAndPrint [22:57:57]line [22:57:57]line [22:57:57]line [22:57:57]line [22:57:57]line [22:57:57]written 0, free lines is 3310 [22:57:57]MH_Cut [22:57:57]Write to MH i2c: D1 01 00 43 2F 01 44 [22:57:57]Write i2c OK [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: D1 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: D1 01 00 [22:57:57]MH_I2C_Read... [22:57:57]Read from MH i2c: D1 01 00 43 2F 00 43 [22:57:57]Write to MH i2c: 01 00 00 44 2F 73 [22:57:57]Write i2c OK [22:57:57]MH_I2C_Read... [22:57:58]OFD Sender: No OFD packet to send [22:57:58]*** Cut start [22:57:58]*** Purtial cut [22:57:58]*** CUTSNS_PIN = 0 [22:57:58]*** Stage 1: CUTSNS_PIN = 1 [22:58:00]Read from MH i2c: 01 [22:58:00]MH_I2C_Read... [22:58:00]*** Stop cut motor [22:58:00]*** Cut end [22:58:00]Read from MH i2c: 01 07 00 [22:58:00]MH_I2C_Read... [22:58:00]Read from MH i2c: 01 07 00 44 2F 00 00 00 00 00 FF 0F 88 [22:58:00]process_action close_receipt done [22:58:00]requested_data is exist [22:58:00]produce_requested_data [22:58:00]requested_item fm.sn is exist - process it [22:58:00]wFMCommunicate request_size=4 [22:58:00]MH_SAM_APDU [22:58:00]CAPDU: 80 11 00 00 [22:58:00]Write to MH i2c: E2 08 00 45 2F 80 11 00 00 00 00 00 00 EE [22:58:00]Write i2c OK [22:58:00]MH_I2C_Read... [22:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:00]Read from MH i2c: E2 [22:58:00]MH_I2C_Read... [22:58:00]Read from MH i2c: E2 17 00 [22:58:00]MH_I2C_Read... [22:58:00]Read from MH i2c: E2 17 00 45 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [22:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [22:58:00]wFMCommunicate OK [22:58:00]requested_item fd.num is exist - process it [22:58:00]SAM_PROTO_GetFieldsCounters [22:58:00]wFMCommunicate request_size=4 [22:58:00]MH_SAM_APDU [22:58:00]CAPDU: 80 13 00 00 [22:58:00]Write to MH i2c: E2 08 00 46 2F 80 13 00 00 00 00 00 00 F1 [22:58:00]Write i2c OK [22:58:00]MH_I2C_Read... [22:58:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:00]Read from MH i2c: E2 [22:58:00]MH_I2C_Read... [22:58:00]Read from MH i2c: E2 62 00 [22:58:00]MH_I2C_Read... [22:58:00]Read from MH i2c: E2 62 00 46 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 71 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:58:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 71 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:58:00]wFMCommunicate OK [22:58:00]SAM_PROTO_GetFieldsCounters done [22:58:00]requested_item shift.num is exist - process it [22:58:00]requested_item shift.opened is exist - process it [22:58:00]req_shift_opened [22:58:00]FM_GetShiftState [22:58:00]SAM_PROTO_GetShiftState [22:58:00]wFMCommunicate request_size=4 [22:58:00]MH_SAM_APDU [22:58:00]CAPDU: 80 13 01 00 [22:58:00]Write to MH i2c: E2 08 00 47 2F 80 13 01 00 00 00 00 00 F3 [22:58:00]Write i2c OK [22:58:00]MH_I2C_Read... [22:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:00]Read from MH i2c: E2 [22:58:00]MH_I2C_Read... [22:58:00]Read from MH i2c: E2 0E 00 [22:58:00]MH_I2C_Read... [22:58:00]Read from MH i2c: E2 0E 00 47 2F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 ED [22:58:00]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [22:58:00]wFMCommunicate OK [22:58:00]SAM_PROTO_GetShiftState done [22:58:00]FM_GetShiftState done [22:58:00]req_shift_opened done [22:58:00]requested_item shift.open_date is exist - process it [22:58:00]req_shift_open_date [22:58:00]req_shift_open_date done [22:58:00]produce_requested_data done [22:58:00]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162673,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [22:58:00]process_action_free close_receipt [22:58:00]json_value_free [22:58:00]json_value_free done [22:58:00]process_json_proto returns [22:58:00]Send response to host [22:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162673,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [22:58:00]free response buf [22:58:00]execute_script done [22:58:00]execute_script returns [22:58:00]free content buf [22:58:00]Sock 9.Close socket [22:58:00]Sock 9.Thread stoped [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:19]accept exits with 7 [23:07:19]New connection [23:07:19]New thread 3067366756 created [23:07:19]Thread 3067510116 joined [23:07:19]Waiting for new connection... [23:07:19] Sock 7.Parse request [23:07:19]Sock 7.Check first char [23:07:19]Sock 7.First char is OK [23:07:19]request: POST /json_proto HTTP/1.0 [23:07:19]Method: POST [23:07:19]URL: /json_proto [23:07:19]Method is POST - this is cgi request [23:07:19]url: /json_proto [23:07:19]query_string will be loaded in cgi processing [23:07:19]execute_cgi json_proto POST (null) [23:07:19]execute_cgi path=json_proto method=POST [23:07:19]POST find Content-Length [23:07:19]Host: 172.17.39.67:8080 [23:07:19]Content-Length: 672 [23:07:19]Content-Type: application/json [23:07:19] [23:07:19]POST finish read [23:07:19]Found Content-Length = 672 [23:07:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "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" ] } } [23:07:19]execute_script... [23:07: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)1319254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 10.410, "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" ] } } [23:07:19]POST & json_proto [23:07:19]process_json_proto [23:07:19]json parsed OK: [23:07:19]protocol is kg_v1.0 [23:07:19]action value=close_receipt [23:07:19]process_action close_receipt [23:07:19]cmd_close_receipt [23:07:19]MH_GetDate [23:07:19]Write to MH i2c: F0 00 00 48 2F 66 [23:07:19]Write i2c OK [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: F0 [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: F0 09 00 [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: F0 09 00 48 2F 00 A9 08 93 66 86 7C 92 66 13 [23:07:19]GetLastDocTimeStamp 1720911477 [23:07:19]current date 1720912041 [23:07:19]FM_GetShiftState [23:07:19]SAM_PROTO_GetShiftState [23:07:19]wFMCommunicate request_size=4 [23:07:19]MH_SAM_APDU [23:07:19]CAPDU: 80 13 01 00 [23:07:19]Write to MH i2c: E2 08 00 49 2F 80 13 01 00 00 00 00 00 F5 [23:07:19]Write i2c OK [23:07:19]MH_I2C_Read... [23:07:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:19]Read from MH i2c: E2 [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: E2 0E 00 [23:07:19]MH_I2C_Read... [23:07:19]Read from MH i2c: E2 0E 00 49 2F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 EF [23:07:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:07:19]wFMCommunicate OK [23:07:19]SAM_PROTO_GetShiftState done [23:07:19]FM_GetShiftState done [23:07:19]opened in 1720828979 [23:07:19]opened+sec_in_day 1720915379 [23:07:19]quantity*price = 70059 [23:07:19]sum+1 = 70060 [23:07:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 342 13.07.2024 23:07 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162674 ФПД: 255076125012941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T230721&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162674&fm=255076125012941&tin=02508201610067®Number=0000000000090858&sum=70000 [23:07:20]StoreToDocumentArchive [23:07:20]shift 462 fd 162674 [23:07:20]save to /storage/0462/doc_00162674 [23:07:20]save last doc name /storage/0462/doc_00162674 to /storage/kkm_last_doc_name [23:07:20]save OK [23:07:20]Clear old archive folders... [23:07:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:07:20]tlvbuf is 006B30D0 [23:07:20]SAM_PROTO_ClearQueue [23:07:20]wFMCommunicate request_size=4 [23:07:20]MH_SAM_APDU [23:07:20]CAPDU: 80 09 00 00 [23:07:20]Write to MH i2c: E2 08 00 56 2F 80 09 00 00 00 00 00 00 F7 [23:07:20]Write i2c OK [23:07:20]MH_I2C_Read... [23:07:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:07:20]Read from MH i2c: E2 [23:07:20]MH_I2C_Read... [23:07:20]Read from MH i2c: E2 03 00 [23:07:20]MH_I2C_Read... [23:07:20]Read from MH i2c: E2 03 00 56 2F 00 90 00 F9 [23:07:20]RAPDU: 90 00 [23:07:20]wFMCommunicate OK [23:07:20]SAM_PROTO_ClearQueue done [23:07:20]KKMCreateOFDPacket [23:07:20]OFDProtocolAddRootSTLVToBuf [23:07:20]FM_MakeSignedData [23:07:20]FM_MakeSignedData [23:07:20]SAM_PROTO_SignData [23:07:20]wFMCommunicate request_size=4 [23:07:20]MH_SAM_APDU [23:07:20]CAPDU: 80 0D 01 02 [23:07:20]Write to MH i2c: E2 08 00 57 2F 80 0D 01 02 00 00 00 00 FF [23:07:20]Write i2c OK [23:07:20]MH_I2C_Read... [23:07:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:07:20]Read from MH i2c: E2 [23:07:20]MH_I2C_Read... [23:07:20]Read from MH i2c: E2 03 00 [23:07:20]MH_I2C_Read... [23:07:20]Read from MH i2c: E2 03 00 57 2F 00 90 00 FA [23:07:20]RAPDU: 90 00 [23:07:20]wFMCommunicate OK [23:07:20]wFMCommunicate request_size=255 [23:07:20]MH_SAM_APDU [23:07:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 56 01 00 00 F4 03 04 00 A9 08 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7B 02 00 35 04 06 00 [23:07:20]Write to MH i2c: E2 02 01 58 2F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 56 01 00 00 F4 03 04 00 A9 08 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7B 02 00 35 04 06 00 00 00 96 [23:07:20]Write i2c OK [23:07:20]MH_I2C_Read... [23:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:21]Read from MH i2c: E2 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 03 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 03 00 58 2F 00 90 00 FB [23:07:21]RAPDU: 90 00 [23:07:21]wFMCommunicate OK [23:07:21]wFMCommunicate request_size=11 [23:07:21]MH_SAM_APDU [23:07:21]CAPDU: 80 0D 02 02 06 E7 FD 89 D2 73 CD [23:07:21]Write to MH i2c: E2 0E 00 59 2F 80 0D 02 02 06 00 E7 FD 89 D2 73 CD 00 00 8D [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:07:21]Read from MH i2c: E2 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 03 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 03 00 59 2F 00 90 00 FC [23:07:21]RAPDU: 90 00 [23:07:21]wFMCommunicate OK [23:07:21]wFMCommunicate request_size=4 [23:07:21]MH_SAM_APDU [23:07:21]CAPDU: 80 0D 03 02 [23:07:21]Write to MH i2c: E2 08 00 5A 2F 80 0D 03 02 00 00 00 00 04 [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:07:21]Read from MH i2c: E2 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 0B 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 0B 00 5A 2F 00 E9 05 57 43 DF 59 59 75 90 00 93 [23:07:21]RAPDU: E9 05 57 43 DF 59 59 75 90 00 [23:07:21]wFMCommunicate OK [23:07:21]SAM_PROTO_SignData done [23:07:21]FM_MakeSignedData done [23:07:21]CreateOFDProtocolMessage [23:07:21]wFMCommunicate request_size=4 [23:07:21]MH_SAM_APDU [23:07:21]CAPDU: 80 11 00 00 [23:07:21]Write to MH i2c: E2 08 00 5B 2F 80 11 00 00 00 00 00 00 04 [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:21]Read from MH i2c: E2 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 17 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: E2 17 00 5B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 64 [23:07:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:07:21]wFMCommunicate OK [23:07:21]CreateOFDProtocolMessage done [23:07:21]OFDSenderStorePacket 162674 [23:07:21]StoreOFDPacket docnum=162674 [23:07:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AA 9B 08 01 0D 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 56 01 00 00 F4 03 04 00 A9 08 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7B 02 00 35 04 06 00 E7 FD 89 D2 73 CD E9 05 57 43 DF 59 59 75 [23:07:21]CheckFolder [23:07:21]dirname=/storage/ofd_packets [23:07:21]CheckFolder done [23:07:21]ProducePacketName [23:07:21]name=ofd_packets/00162674 [23:07:21]NVStorageSaveData ofd_packets/00162674 [23:07:21]File name is /storage/ofd_packets/00162674 [23:07:21]Write 302 bytes [23:07:21]NVStorageSaveData done [23:07:21]OFDSenderStorePacket done [23:07:21]KKMCreateOFDPacket done [23:07:21]NVStorageSaveData kkm_last_timestamp [23:07:21]File name is /storage/kkm_last_timestamp [23:07:21]Write 4 bytes [23:07:21]NVStorageSaveData done [23:07:21]ExternCall_PrintAddStr [23:07:21]wPrintStart [23:07:21]Write to MH i2c: 01 00 00 5C 2F 8B [23:07:21]Write i2c OK [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: 01 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: 01 07 00 [23:07:21]MH_I2C_Read... [23:07:21]Read from MH i2c: 01 07 00 5C 2F 00 00 00 00 00 FF 0F A0 [23:07:21]RasterBufferAndPrint [23:07:21]line Счет N : (1)1319254 [23:07:21]line ИНН: 02508201610067 [23:07:21]line Контрольно-Кассовый Чек [23:07:21]line ПРОДАЖА [23:07:21]line ТРК (МРК, ГНК) : 42 [23:07:21]line Товар: 2710124130 [23:07:21]line Super-92-К-5 [23:07:21]line 10.410 * 67.30 [23:07:21]line = 700.59 [23:07:21]line НДС 12% НСП 1% [23:07:21]line > о реализуемом товаре [23:07:21]line ОКРУГЛЕНИЕ: -0.59 [23:07:21]line ИТОГО: 700.00 [23:07:21]line Внесено: 700.00 [23:07:21]line СДАЧА: 0.00 [23:07:21]line НСП 1% : 6.20 [23:07:21]line НДС 12% : 74.40 [23:07:21]line Наличными: 700.00 [23:07:21]line Безнал.: 0.00 [23:07:21]line Место: АЗС № 140 "Партнер Нефть" [23:07:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:07:21]line СНО: Общий режим [23:07:21]line Чек 342 13.07.2024 23:07 [23:07:21]line Смена: 462 ФФД: 1.0 [23:07:21]line ЗНМ: 0300000129 [23:07:21]line РНМ: 0000000000090858 [23:07:21]line Версия ККМ: 001 [23:07:21]line ФМ: 0000000000874899 [23:07:21]line ФД: 162674 [23:07:21]line ФПД: 255076125012941 [23:07:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T230721&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162674&fm=255076125012941&tin=02508201610067®Number=0000000000090858&sum=70000 [23:07:21]OFD Sender: Processing packet 162674 [packets to send 106, broken 105] [23:07:21]ProducePacketName [23:07:21]name=ofd_packets/00162674 [23:07:21]OFD Sender: To server: pG, [23:07:21]CommunicateWithHost lk.salyk.kg:30040 [23:07:21]ConnectInit lk.salyk.kg [23:07:21]written 0, free lines is 4095 [23:07:21]Connected sock=10 [23:07:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 AA 9B 08 01 0D 52 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AA 28 00 00 00 00 00 37 04 06 00 4A 1A 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 56 01 00 00 F4 03 04 00 A9 08 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7B 02 00 35 04 06 00 E7 FD 89 D2 73 CD E9 05 57 43 DF 59 59 75 [23:07:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6D 62 47 00 51 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 72 7B 02 00 F4 03 04 00 B7 B4 92 66 B6 04 01 00 00 AA 23 B6 7E 19 19 C6 C4 [23:07:21]CommunicateWithHost err = 0 [23:07:21]CheckOFDResponse [23:07:21]1017 (14) - 77093643461234 [23:07:21]1041 (16) - 0000000000874899 [23:07:21]1040 (4) - 162674 [23:07:21]1012 (4) - 13.07.2024 17:09 [23:07:21]1206 (1) - 0 [23:07:21]OFD Sender: Remove packet 162674 [23:07:21]ProducePacketName [23:07:21]name=ofd_packets/00162674 [23:07:21]NVStorageDeleteData [23:07:22]Write to MH i2c: 01 00 00 87 2F B6 [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: 01 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: 01 07 00 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: 01 07 00 87 2F 00 00 00 00 00 DF 0C A8 [23:07:22]RasterBufferAndPrint [23:07:22]line [23:07:22]line [23:07:22]line [23:07:22]line [23:07:22]line [23:07:22]written 0, free lines is 3301 [23:07:22]MH_Cut [23:07:22]Write to MH i2c: D1 01 00 8E 2F 01 8F [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: D1 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: D1 01 00 [23:07:22]MH_I2C_Read... [23:07:22]Read from MH i2c: D1 01 00 8E 2F 00 8E [23:07:22]Write to MH i2c: 01 00 00 8F 2F BE [23:07:22]Write i2c OK [23:07:22]MH_I2C_Read... [23:07:22]OFD Sender: No OFD packet to send [23:07:22]*** Cut start [23:07:22]*** Purtial cut [23:07:22]*** Stage 1: CUTSNS_PIN = 1 [23:07:23]Read from MH i2c: 01 [23:07:23]MH_I2C_Read... [23:07:23]*** Stop cut motor [23:07:23]*** Cut end [23:07:23]Read from MH i2c: 01 07 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: 01 07 00 8F 2F 00 00 00 00 00 FF 0F D3 [23:07:23]process_action close_receipt done [23:07:23]requested_data is exist [23:07:23]produce_requested_data [23:07:23]requested_item fm.sn is exist - process it [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 11 00 00 [23:07:23]Write to MH i2c: E2 08 00 90 2F 80 11 00 00 00 00 00 00 39 [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 17 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 17 00 90 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [23:07:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:07:23]wFMCommunicate OK [23:07:23]requested_item fd.num is exist - process it [23:07:23]SAM_PROTO_GetFieldsCounters [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 13 00 00 [23:07:23]Write to MH i2c: E2 08 00 91 2F 80 13 00 00 00 00 00 00 3C [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 62 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 62 00 91 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 72 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [23:07:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 72 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:07:23]wFMCommunicate OK [23:07:23]SAM_PROTO_GetFieldsCounters done [23:07:23]requested_item shift.num is exist - process it [23:07:23]requested_item shift.opened is exist - process it [23:07:23]req_shift_opened [23:07:23]FM_GetShiftState [23:07:23]SAM_PROTO_GetShiftState [23:07:23]wFMCommunicate request_size=4 [23:07:23]MH_SAM_APDU [23:07:23]CAPDU: 80 13 01 00 [23:07:23]Write to MH i2c: E2 08 00 92 2F 80 13 01 00 00 00 00 00 3E [23:07:23]Write i2c OK [23:07:23]MH_I2C_Read... [23:07:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:07:23]Read from MH i2c: E2 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 0E 00 [23:07:23]MH_I2C_Read... [23:07:23]Read from MH i2c: E2 0E 00 92 2F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 38 [23:07:23]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:07:23]wFMCommunicate OK [23:07:23]SAM_PROTO_GetShiftState done [23:07:23]FM_GetShiftState done [23:07:23]req_shift_opened done [23:07:23]requested_item shift.open_date is exist - process it [23:07:23]req_shift_open_date [23:07:23]req_shift_open_date done [23:07:23]produce_requested_data done [23:07:23]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162674,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:07:23]process_action_free close_receipt [23:07:23]json_value_free [23:07:23]json_value_free done [23:07:23]process_json_proto returns [23:07:23]Send response to host [23:07:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162674,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:07:23]free response buf [23:07:23]execute_script done [23:07:23]execute_script returns [23:07:23]free content buf [23:07:23]Sock 7.Close socket [23:07:23]Sock 7.Thread stoped [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]OFD Sender: No OFD packet to send [23:10:12]OFD Sender: No OFD packet to send [23:10:17]OFD Sender: No OFD packet to send [23:10:22]OFD Sender: No OFD packet to send [23:10:27]OFD Sender: No OFD packet to send [23:10:32]OFD Sender: No OFD packet to send [23:10:37]OFD Sender: No OFD packet to send [23:10:42]OFD Sender: No OFD packet to send [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:14]accept exits with 9 [23:14:14]New connection [23:14:14]New thread 3067510116 created [23:14:14]Thread 3067366756 joined [23:14:14]Waiting for new connection... [23:14:14] Sock 9.Parse request [23:14:14]Sock 9.Check first char [23:14:14]Sock 9.First char is OK [23:14:14]request: POST /json_proto HTTP/1.0 [23:14:14]Method: POST [23:14:14]URL: /json_proto [23:14:14]Method is POST - this is cgi request [23:14:14]url: /json_proto [23:14:14]query_string will be loaded in cgi processing [23:14:14]execute_cgi json_proto POST (null) [23:14:14]execute_cgi path=json_proto method=POST [23:14:14]POST find Content-Length [23:14:14]Host: 172.17.39.67:8080 [23:14:14]Content-Length: 678 [23:14:14]Content-Type: application/json [23:14:14] [23:14:14]POST finish read [23:14:14]Found Content-Length = 678 [23:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:14]execute_script... [23:14: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)1319255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:14:14]POST & json_proto [23:14:14]process_json_proto [23:14:14]json parsed OK: [23:14:14]protocol is kg_v1.0 [23:14:14]action value=close_receipt [23:14:14]process_action close_receipt [23:14:14]cmd_close_receipt [23:14:14]MH_GetDate [23:14:14]Write to MH i2c: F0 00 00 93 2F B1 [23:14:14]Write i2c OK [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: F0 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: F0 09 00 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: F0 09 00 93 2F 00 48 0A 93 66 86 7C 92 66 FF [23:14:14]GetLastDocTimeStamp 1720912041 [23:14:14]current date 1720912456 [23:14:14]FM_GetShiftState [23:14:14]SAM_PROTO_GetShiftState [23:14:14]wFMCommunicate request_size=4 [23:14:14]MH_SAM_APDU [23:14:14]CAPDU: 80 13 01 00 [23:14:14]Write to MH i2c: E2 08 00 94 2F 80 13 01 00 00 00 00 00 40 [23:14:14]Write i2c OK [23:14:14]MH_I2C_Read... [23:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:14]Read from MH i2c: E2 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: E2 0E 00 [23:14:14]MH_I2C_Read... [23:14:14]Read from MH i2c: E2 0E 00 94 2F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3A [23:14:14]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:14:14]wFMCommunicate OK [23:14:14]SAM_PROTO_GetShiftState done [23:14:14]FM_GetShiftState done [23:14:14]opened in 1720828979 [23:14:14]opened+sec_in_day 1720915379 [23:14:14]quantity*price = 50056 [23:14:14]sum+1 = 50058 [23:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 343 13.07.2024 23:14 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162675 ФПД: 58508308820021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T231416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162675&fm=58508308820021&tin=02508201610067®Number=0000000000090858&sum=50000 [23:14:15]StoreToDocumentArchive [23:14:15]shift 462 fd 162675 [23:14:15]save to /storage/0462/doc_00162675 [23:14:15]save last doc name /storage/0462/doc_00162675 to /storage/kkm_last_doc_name [23:14:15]save OK [23:14:15]Clear old archive folders... [23:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:15]tlvbuf is B6F497D0 [23:14:15]SAM_PROTO_ClearQueue [23:14:15]wFMCommunicate request_size=4 [23:14:15]MH_SAM_APDU [23:14:15]CAPDU: 80 09 00 00 [23:14:15]Write to MH i2c: E2 08 00 A1 2F 80 09 00 00 00 00 00 00 42 [23:14:15]Write i2c OK [23:14:15]MH_I2C_Read... [23:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:15]Read from MH i2c: E2 [23:14:15]MH_I2C_Read... [23:14:15]Read from MH i2c: E2 03 00 [23:14:15]MH_I2C_Read... [23:14:15]Read from MH i2c: E2 03 00 A1 2F 00 90 00 44 [23:14:15]RAPDU: 90 00 [23:14:15]wFMCommunicate OK [23:14:15]SAM_PROTO_ClearQueue done [23:14:15]KKMCreateOFDPacket [23:14:15]OFDProtocolAddRootSTLVToBuf [23:14:15]FM_MakeSignedData [23:14:15]FM_MakeSignedData [23:14:15]SAM_PROTO_SignData [23:14:15]wFMCommunicate request_size=4 [23:14:15]MH_SAM_APDU [23:14:15]CAPDU: 80 0D 01 02 [23:14:15]Write to MH i2c: E2 08 00 A2 2F 80 0D 01 02 00 00 00 00 4A [23:14:15]Write i2c OK [23:14:15]MH_I2C_Read... [23:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:15]Read from MH i2c: E2 [23:14:15]MH_I2C_Read... [23:14:15]Read from MH i2c: E2 03 00 [23:14:15]MH_I2C_Read... [23:14:15]Read from MH i2c: E2 03 00 A2 2F 00 90 00 45 [23:14:15]RAPDU: 90 00 [23:14:15]wFMCommunicate OK [23:14:15]wFMCommunicate request_size=255 [23:14:15]MH_SAM_APDU [23:14:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 48 0A 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7B 02 00 35 04 06 00 35 [23:14:15]Write to MH i2c: E2 02 01 A3 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 48 0A 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7B 02 00 35 04 06 00 35 00 00 9D [23:14:15]Write i2c OK [23:14:15]MH_I2C_Read... [23:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:15]Read from MH i2c: E2 [23:14:15]MH_I2C_Read... [23:14:15]Read from MH i2c: E2 03 00 [23:14:15]MH_I2C_Read... [23:14:15]Read from MH i2c: E2 03 00 A3 2F 00 90 00 46 [23:14:15]RAPDU: 90 00 [23:14:15]wFMCommunicate OK [23:14:15]wFMCommunicate request_size=10 [23:14:15]MH_SAM_APDU [23:14:15]CAPDU: 80 0D 02 02 05 36 86 F6 B0 35 [23:14:15]Write to MH i2c: E2 0D 00 A4 2F 80 0D 02 02 05 00 36 86 F6 B0 35 00 00 EE [23:14:15]Write i2c OK [23:14:15]MH_I2C_Read... [23:14:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:15]Read from MH i2c: E2 [23:14:15]MH_I2C_Read... [23:14:15]Read from MH i2c: E2 03 00 [23:14:15]MH_I2C_Read... [23:14:15]Read from MH i2c: E2 03 00 A4 2F 00 90 00 47 [23:14:15]RAPDU: 90 00 [23:14:15]wFMCommunicate OK [23:14:15]wFMCommunicate request_size=4 [23:14:15]MH_SAM_APDU [23:14:15]CAPDU: 80 0D 03 02 [23:14:15]Write to MH i2c: E2 08 00 A5 2F 80 0D 03 02 00 00 00 00 4F [23:14:15]Write i2c OK [23:14:15]MH_I2C_Read... [23:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:16]Read from MH i2c: E2 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 0B 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 0B 00 A5 2F 00 E9 0A B4 86 83 10 BD CA 90 00 97 [23:14:16]RAPDU: E9 0A B4 86 83 10 BD CA 90 00 [23:14:16]wFMCommunicate OK [23:14:16]SAM_PROTO_SignData done [23:14:16]FM_MakeSignedData done [23:14:16]CreateOFDProtocolMessage [23:14:16]wFMCommunicate request_size=4 [23:14:16]MH_SAM_APDU [23:14:16]CAPDU: 80 11 00 00 [23:14:16]Write to MH i2c: E2 08 00 A6 2F 80 11 00 00 00 00 00 00 4F [23:14:16]Write i2c OK [23:14:16]MH_I2C_Read... [23:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:16]Read from MH i2c: E2 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 17 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: E2 17 00 A6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AF [23:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:14:16]wFMCommunicate OK [23:14:16]CreateOFDProtocolMessage done [23:14:16]OFDSenderStorePacket 162675 [23:14:16]StoreOFDPacket docnum=162675 [23:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 22 60 07 01 D9 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 48 0A 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7B 02 00 35 04 06 00 35 36 86 F6 B0 35 E9 0A B4 86 83 10 BD CA [23:14:16]CheckFolder [23:14:16]dirname=/storage/ofd_packets [23:14:16]CheckFolder done [23:14:16]ProducePacketName [23:14:16]name=ofd_packets/00162675 [23:14:16]NVStorageSaveData ofd_packets/00162675 [23:14:16]File name is /storage/ofd_packets/00162675 [23:14:16]Write 301 bytes [23:14:16]NVStorageSaveData done [23:14:16]OFDSenderStorePacket done [23:14:16]KKMCreateOFDPacket done [23:14:16]NVStorageSaveData kkm_last_timestamp [23:14:16]File name is /storage/kkm_last_timestamp [23:14:16]Write 4 bytes [23:14:16]NVStorageSaveData done [23:14:16]ExternCall_PrintAddStr [23:14:16]wPrintStart [23:14:16]Write to MH i2c: 01 00 00 A7 2F D6 [23:14:16]Write i2c OK [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: 01 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: 01 07 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: 01 07 00 A7 2F 00 00 00 00 00 FF 0F EB [23:14:16]RasterBufferAndPrint [23:14:16]line Счет N : (1)1319255 [23:14:16]line ИНН: 02508201610067 [23:14:16]line Контрольно-Кассовый Чек [23:14:16]line ПРОДАЖА [23:14:16]line ТРК (МРК, ГНК) : 33 [23:14:16]line Товар: 2710124130 [23:14:16]line Аи-92-К-5 [23:14:16]line 7.550 * 66.30 [23:14:16]line = 500.57 [23:14:16]line НДС 12% НСП 1% [23:14:16]line > о реализуемом товаре [23:14:16]line ОКРУГЛЕНИЕ: -0.57 [23:14:16]line ИТОГО: 500.00 [23:14:16]line Внесено: 500.00 [23:14:16]line СДАЧА: 0.00 [23:14:16]line НСП 1% : 4.43 [23:14:16]line НДС 12% : 53.16 [23:14:16]line Наличными: 500.00 [23:14:16]line Безнал.: 0.00 [23:14:16]line Место: АЗС № 140 "Партнер Нефть" [23:14:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:14:16]line СНО: Общий режим [23:14:16]line Чек 343 13.07.2024 23:14 [23:14:16]line Смена: 462 ФФД: 1.0 [23:14:16]line ЗНМ: 0300000129 [23:14:16]line РНМ: 0000000000090858 [23:14:16]line Версия ККМ: 001 [23:14:16]line ФМ: 0000000000874899 [23:14:16]line ФД: 162675 [23:14:16]line ФПД: 58508308820021 [23:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T231416&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162675&fm=58508308820021&tin=02508201610067®Number=0000000000090858&sum=50000 [23:14:16]OFD Sender: Processing packet 162675 [packets to send 106, broken 105] [23:14:16]ProducePacketName [23:14:16]name=ofd_packets/00162675 [23:14:16]OFD Sender: To server: pG, [23:14:16]CommunicateWithHost lk.salyk.kg:30040 [23:14:16]ConnectInit lk.salyk.kg [23:14:16]written 0, free lines is 4095 [23:14:16]Connected sock=10 [23:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 22 60 07 01 D9 D2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 48 0A 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7B 02 00 35 04 06 00 35 36 86 F6 B0 35 E9 0A B4 86 83 10 BD CA [23:14:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D2 8E 47 00 D3 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 73 7B 02 00 F4 03 04 00 56 B6 92 66 B6 04 01 00 00 A2 0F CD 5F 93 3A 6E 9C [23:14:16]CommunicateWithHost err = 0 [23:14:16]CheckOFDResponse [23:14:16]1017 (14) - 77093643461234 [23:14:16]1041 (16) - 0000000000874899 [23:14:16]1040 (4) - 162675 [23:14:16]1012 (4) - 13.07.2024 17:16 [23:14:16]1206 (1) - 0 [23:14:16]OFD Sender: Remove packet 162675 [23:14:16]ProducePacketName [23:14:16]name=ofd_packets/00162675 [23:14:16]NVStorageDeleteData [23:14:16]Write to MH i2c: 01 00 00 D2 2F 01 [23:14:16]Write i2c OK [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: 01 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: 01 07 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: 01 07 00 D2 2F 00 00 00 00 00 D9 0C ED [23:14:16]RasterBufferAndPrint [23:14:16]line [23:14:16]line [23:14:16]line [23:14:16]line [23:14:16]line [23:14:16]written 0, free lines is 3299 [23:14:16]MH_Cut [23:14:16]Write to MH i2c: D1 01 00 D9 2F 01 DA [23:14:16]Write i2c OK [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: D1 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: D1 01 00 [23:14:16]MH_I2C_Read... [23:14:16]Read from MH i2c: D1 01 00 D9 2F 00 D9 [23:14:16]Write to MH i2c: 01 00 00 DA 2F 09 [23:14:16]Write i2c OK [23:14:16]MH_I2C_Read... [23:14:17]OFD Sender: No OFD packet to send [23:14:17]*** Cut start [23:14:17]*** Purtial cut [23:14:17]*** CUTSNS_PIN = 0 [23:14:17]*** Stage 1: CUTSNS_PIN = 1 [23:14:19]Read from MH i2c: 01 [23:14:19]MH_I2C_Read... [23:14:19]*** Stop cut motor [23:14:19]*** Cut end [23:14:19]Read from MH i2c: 01 07 00 [23:14:19]MH_I2C_Read... [23:14:19]Read from MH i2c: 01 07 00 DA 2F 00 00 00 00 00 FF 0F 1E [23:14:19]process_action close_receipt done [23:14:19]requested_data is exist [23:14:19]produce_requested_data [23:14:19]requested_item fm.sn is exist - process it [23:14:19]wFMCommunicate request_size=4 [23:14:19]MH_SAM_APDU [23:14:19]CAPDU: 80 11 00 00 [23:14:19]Write to MH i2c: E2 08 00 DB 2F 80 11 00 00 00 00 00 00 84 [23:14:19]Write i2c OK [23:14:19]MH_I2C_Read... [23:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:19]Read from MH i2c: E2 [23:14:19]MH_I2C_Read... [23:14:19]Read from MH i2c: E2 17 00 [23:14:19]MH_I2C_Read... [23:14:19]Read from MH i2c: E2 17 00 DB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E4 [23:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:14:19]wFMCommunicate OK [23:14:19]requested_item fd.num is exist - process it [23:14:19]SAM_PROTO_GetFieldsCounters [23:14:19]wFMCommunicate request_size=4 [23:14:19]MH_SAM_APDU [23:14:19]CAPDU: 80 13 00 00 [23:14:19]Write to MH i2c: E2 08 00 DC 2F 80 13 00 00 00 00 00 00 87 [23:14:19]Write i2c OK [23:14:19]MH_I2C_Read... [23:14:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:19]Read from MH i2c: E2 [23:14:19]MH_I2C_Read... [23:14:19]Read from MH i2c: E2 62 00 [23:14:19]MH_I2C_Read... [23:14:19]Read from MH i2c: E2 62 00 DC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 73 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [23:14:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 73 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:14:19]wFMCommunicate OK [23:14:19]SAM_PROTO_GetFieldsCounters done [23:14:19]requested_item shift.num is exist - process it [23:14:19]requested_item shift.opened is exist - process it [23:14:19]req_shift_opened [23:14:19]FM_GetShiftState [23:14:19]SAM_PROTO_GetShiftState [23:14:19]wFMCommunicate request_size=4 [23:14:19]MH_SAM_APDU [23:14:19]CAPDU: 80 13 01 00 [23:14:19]Write to MH i2c: E2 08 00 DD 2F 80 13 01 00 00 00 00 00 89 [23:14:19]Write i2c OK [23:14:19]MH_I2C_Read... [23:14:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:19]Read from MH i2c: E2 [23:14:19]MH_I2C_Read... [23:14:19]Read from MH i2c: E2 0E 00 [23:14:19]MH_I2C_Read... [23:14:19]Read from MH i2c: E2 0E 00 DD 2F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 83 [23:14:19]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:14:19]wFMCommunicate OK [23:14:19]SAM_PROTO_GetShiftState done [23:14:19]FM_GetShiftState done [23:14:19]req_shift_opened done [23:14:19]requested_item shift.open_date is exist - process it [23:14:19]req_shift_open_date [23:14:19]req_shift_open_date done [23:14:19]produce_requested_data done [23:14:19]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162675,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:14:19]process_action_free close_receipt [23:14:19]json_value_free [23:14:19]json_value_free done [23:14:19]process_json_proto returns [23:14:19]Send response to host [23:14:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162675,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:14:19]free response buf [23:14:19]execute_script done [23:14:19]execute_script returns [23:14:19]free content buf [23:14:19]Sock 9.Close socket [23:14:19]Sock 9.Thread stoped [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:45]accept exits with 7 [23:15:45]New connection [23:15:45]New thread 3067366756 created [23:15:45]Thread 3067510116 joined [23:15:45]Waiting for new connection... [23:15:45] Sock 7.Parse request [23:15:45]Sock 7.Check first char [23:15:45]Sock 7.First char is OK [23:15:45]request: POST /json_proto HTTP/1.0 [23:15:45]Method: POST [23:15:45]URL: /json_proto [23:15:45]Method is POST - this is cgi request [23:15:45]url: /json_proto [23:15:45]query_string will be loaded in cgi processing [23:15:45]execute_cgi json_proto POST (null) [23:15:45]execute_cgi path=json_proto method=POST [23:15:45]POST find Content-Length [23:15:45]Host: 172.17.39.67:8080 [23:15:45]Content-Length: 683 [23:15:45]Content-Type: application/json [23:15:45] [23:15:45]POST finish read [23:15:45]Found Content-Length = 683 [23:15:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 16.900, "sum" : 1120.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:45]execute_script... [23:15:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 16.900, "sum" : 1120.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1120.00, "total" : 1120.00, "payments": [ { "type": 0, "sum" : 1120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:15:45]POST & json_proto [23:15:45]process_json_proto [23:15:45]json parsed OK: [23:15:45]protocol is kg_v1.0 [23:15:45]action value=close_receipt [23:15:45]process_action close_receipt [23:15:45]cmd_close_receipt [23:15:45]MH_GetDate [23:15:45]Write to MH i2c: F0 00 00 DE 2F FC [23:15:45]Write i2c OK [23:15:45]MH_I2C_Read... [23:15:45]Read from MH i2c: F0 [23:15:45]MH_I2C_Read... [23:15:45]Read from MH i2c: F0 09 00 [23:15:45]MH_I2C_Read... [23:15:45]Read from MH i2c: F0 09 00 DE 2F 00 A4 0A 93 66 86 7C 92 66 A6 [23:15:45]GetLastDocTimeStamp 1720912456 [23:15:45]current date 1720912548 [23:15:45]FM_GetShiftState [23:15:45]SAM_PROTO_GetShiftState [23:15:45]wFMCommunicate request_size=4 [23:15:45]MH_SAM_APDU [23:15:45]CAPDU: 80 13 01 00 [23:15:45]Write to MH i2c: E2 08 00 DF 2F 80 13 01 00 00 00 00 00 8B [23:15:45]Write i2c OK [23:15:45]MH_I2C_Read... [23:15:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:45]Read from MH i2c: E2 [23:15:45]MH_I2C_Read... [23:15:45]Read from MH i2c: E2 0E 00 [23:15:45]MH_I2C_Read... [23:15:45]Read from MH i2c: E2 0E 00 DF 2F 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 85 [23:15:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:15:45]wFMCommunicate OK [23:15:45]SAM_PROTO_GetShiftState done [23:15:45]FM_GetShiftState done [23:15:45]opened in 1720828979 [23:15:45]opened+sec_in_day 1720915379 [23:15:45]quantity*price = 112047 [23:15:45]sum+1 = 112048 [23:15:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1120.00 Внесено: 1120.00 СДАЧА: 0.00 НСП 1% : 9.92 НДС 12% : 118.99 Наличными: 1120.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 344 13.07.2024 23:15 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162676 ФПД: 143207026521382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T231548&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162676&fm=143207026521382&tin=02508201610067®Number=0000000000090858&sum=112000 [23:15:47]StoreToDocumentArchive [23:15:47]shift 462 fd 162676 [23:15:47]save to /storage/0462/doc_00162676 [23:15:47]save last doc name /storage/0462/doc_00162676 to /storage/kkm_last_doc_name [23:15:47]save OK [23:15:47]Clear old archive folders... [23:15:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:15:47]tlvbuf is B6FE0B80 [23:15:47]SAM_PROTO_ClearQueue [23:15:47]wFMCommunicate request_size=4 [23:15:47]MH_SAM_APDU [23:15:47]CAPDU: 80 09 00 00 [23:15:47]Write to MH i2c: E2 08 00 EC 2F 80 09 00 00 00 00 00 00 8D [23:15:47]Write i2c OK [23:15:47]MH_I2C_Read... [23:15:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:15:47]Read from MH i2c: E2 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 03 00 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 03 00 EC 2F 00 90 00 8F [23:15:47]RAPDU: 90 00 [23:15:47]wFMCommunicate OK [23:15:47]SAM_PROTO_ClearQueue done [23:15:47]KKMCreateOFDPacket [23:15:47]OFDProtocolAddRootSTLVToBuf [23:15:47]FM_MakeSignedData [23:15:47]FM_MakeSignedData [23:15:47]SAM_PROTO_SignData [23:15:47]wFMCommunicate request_size=4 [23:15:47]MH_SAM_APDU [23:15:47]CAPDU: 80 0D 01 02 [23:15:47]Write to MH i2c: E2 08 00 ED 2F 80 0D 01 02 00 00 00 00 95 [23:15:47]Write i2c OK [23:15:47]MH_I2C_Read... [23:15:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:15:47]Read from MH i2c: E2 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 03 00 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 03 00 ED 2F 00 90 00 90 [23:15:47]RAPDU: 90 00 [23:15:47]wFMCommunicate OK [23:15:47]wFMCommunicate request_size=255 [23:15:47]MH_SAM_APDU [23:15:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 42 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AF B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 A4 0A 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7B 02 00 35 04 06 00 82 [23:15:47]Write to MH i2c: E2 02 01 EE 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 42 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AF B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 A4 0A 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7B 02 00 35 04 06 00 82 00 00 95 [23:15:47]Write i2c OK [23:15:47]MH_I2C_Read... [23:15:47]OFD Sender: No OFD packet to send [23:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:47]Read from MH i2c: E2 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 03 00 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 03 00 EE 2F 00 90 00 91 [23:15:47]RAPDU: 90 00 [23:15:47]wFMCommunicate OK [23:15:47]wFMCommunicate request_size=10 [23:15:47]MH_SAM_APDU [23:15:47]CAPDU: 80 0D 02 02 05 3E FB F1 F5 26 [23:15:47]Write to MH i2c: E2 0D 00 EF 2F 80 0D 02 02 05 00 3E FB F1 F5 26 00 00 E7 [23:15:47]Write i2c OK [23:15:47]MH_I2C_Read... [23:15:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:15:47]Read from MH i2c: E2 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 03 00 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 03 00 EF 2F 00 90 00 92 [23:15:47]RAPDU: 90 00 [23:15:47]wFMCommunicate OK [23:15:47]wFMCommunicate request_size=4 [23:15:47]MH_SAM_APDU [23:15:47]CAPDU: 80 0D 03 02 [23:15:47]Write to MH i2c: E2 08 00 F0 2F 80 0D 03 02 00 00 00 00 9A [23:15:47]Write i2c OK [23:15:47]MH_I2C_Read... [23:15:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:15:47]Read from MH i2c: E2 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 0B 00 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 0B 00 F0 2F 00 14 50 04 FC 4F E1 22 12 90 00 63 [23:15:47]RAPDU: 14 50 04 FC 4F E1 22 12 90 00 [23:15:47]wFMCommunicate OK [23:15:47]SAM_PROTO_SignData done [23:15:47]FM_MakeSignedData done [23:15:47]CreateOFDProtocolMessage [23:15:47]wFMCommunicate request_size=4 [23:15:47]MH_SAM_APDU [23:15:47]CAPDU: 80 11 00 00 [23:15:47]Write to MH i2c: E2 08 00 F1 2F 80 11 00 00 00 00 00 00 9A [23:15:47]Write i2c OK [23:15:47]MH_I2C_Read... [23:15:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:47]Read from MH i2c: E2 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 17 00 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: E2 17 00 F1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FA [23:15:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:15:47]wFMCommunicate OK [23:15:47]CreateOFDProtocolMessage done [23:15:47]OFDSenderStorePacket 162676 [23:15:47]StoreOFDPacket docnum=162676 [23:15:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DE A3 07 01 98 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 42 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AF B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 A4 0A 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7B 02 00 35 04 06 00 82 3E FB F1 F5 26 14 50 04 FC 4F E1 22 12 [23:15:47]CheckFolder [23:15:47]dirname=/storage/ofd_packets [23:15:47]CheckFolder done [23:15:47]ProducePacketName [23:15:47]name=ofd_packets/00162676 [23:15:47]NVStorageSaveData ofd_packets/00162676 [23:15:47]File name is /storage/ofd_packets/00162676 [23:15:47]Write 301 bytes [23:15:47]NVStorageSaveData done [23:15:47]OFDSenderStorePacket done [23:15:47]KKMCreateOFDPacket done [23:15:47]NVStorageSaveData kkm_last_timestamp [23:15:47]File name is /storage/kkm_last_timestamp [23:15:47]Write 4 bytes [23:15:47]NVStorageSaveData done [23:15:47]ExternCall_PrintAddStr [23:15:47]wPrintStart [23:15:47]Write to MH i2c: 01 00 00 F2 2F 21 [23:15:47]Write i2c OK [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: 01 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: 01 07 00 [23:15:47]MH_I2C_Read... [23:15:47]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 FF 0F 36 [23:15:47]RasterBufferAndPrint [23:15:47]line Счет N : (1)1319256 [23:15:47]line ИНН: 02508201610067 [23:15:47]line Контрольно-Кассовый Чек [23:15:47]line ПРОДАЖА [23:15:47]line ТРК (МРК, ГНК) : 43 [23:15:47]line Товар: 2710124130 [23:15:47]line Аи-92-К-5 [23:15:47]line 16.900 * 66.30 [23:15:47]line = 1120.47 [23:15:47]line НДС 12% НСП 1% [23:15:47]line > о реализуемом товаре [23:15:47]line ОКРУГЛЕНИЕ: -0.47 [23:15:47]line ИТОГО: 1120.00 [23:15:47]line Внесено: 1120.00 [23:15:47]line СДАЧА: 0.00 [23:15:47]line НСП 1% : 9.92 [23:15:47]line НДС 12% : 118.99 [23:15:47]line Наличными: 1120.00 [23:15:47]line Безнал.: 0.00 [23:15:47]line Место: АЗС № 140 "Партнер Нефть" [23:15:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:15:47]line СНО: Общий режим [23:15:47]line Чек 344 13.07.2024 23:15 [23:15:47]line Смена: 462 ФФД: 1.0 [23:15:47]line ЗНМ: 0300000129 [23:15:47]line РНМ: 0000000000090858 [23:15:47]line Версия ККМ: 001 [23:15:47]line ФМ: 0000000000874899 [23:15:47]line ФД: 162676 [23:15:47]line ФПД: 143207026521382 [23:15:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T231548&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162676&fm=143207026521382&tin=02508201610067®Number=0000000000090858&sum=112000 [23:15:48]OFD Sender: Processing packet 162676 [packets to send 106, broken 105] [23:15:48]ProducePacketName [23:15:48]name=ofd_packets/00162676 [23:15:48]OFD Sender: To server: pG, [23:15:48]CommunicateWithHost lk.salyk.kg:30040 [23:15:48]ConnectInit lk.salyk.kg [23:15:48]written 0, free lines is 4095 [23:15:48]Connected sock=10 [23:15:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 DE A3 07 01 98 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 04 42 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 AF B5 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 B5 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 2E 00 00 00 00 07 04 06 00 80 B5 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 01 00 00 F4 03 04 00 A4 0A 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7B 02 00 35 04 06 00 82 3E FB F1 F5 26 14 50 04 FC 4F E1 22 12 [23:15:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0B 52 47 00 8E 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 74 7B 02 00 F4 03 04 00 B2 B6 92 66 B6 04 01 00 00 D4 C5 02 6F E6 9C CB AF [23:15:48]CommunicateWithHost err = 0 [23:15:48]CheckOFDResponse [23:15:48]1017 (14) - 77093643461234 [23:15:48]1041 (16) - 0000000000874899 [23:15:48]1040 (4) - 162676 [23:15:48]1012 (4) - 13.07.2024 17:17 [23:15:48]1206 (1) - 0 [23:15:48]OFD Sender: Remove packet 162676 [23:15:48]ProducePacketName [23:15:48]name=ofd_packets/00162676 [23:15:48]NVStorageDeleteData [23:15:48]Write to MH i2c: 01 00 00 1D 30 4D [23:15:48]Write i2c OK [23:15:48]MH_I2C_Read... [23:15:48]Read from MH i2c: 01 [23:15:48]MH_I2C_Read... [23:15:48]Read from MH i2c: 01 07 00 [23:15:48]MH_I2C_Read... [23:15:48]Read from MH i2c: 01 07 00 1D 30 00 00 00 00 00 EF 0C 4F [23:15:48]RasterBufferAndPrint [23:15:48]line [23:15:48]line [23:15:48]line [23:15:48]line [23:15:48]line [23:15:48]written 0, free lines is 3319 [23:15:48]MH_Cut [23:15:48]Write to MH i2c: D1 01 00 24 30 01 26 [23:15:48]Write i2c OK [23:15:48]MH_I2C_Read... [23:15:48]Read from MH i2c: D1 [23:15:48]MH_I2C_Read... [23:15:48]Read from MH i2c: D1 01 00 [23:15:48]MH_I2C_Read... [23:15:48]Read from MH i2c: D1 01 00 24 30 00 25 [23:15:48]Write to MH i2c: 01 00 00 25 30 55 [23:15:48]Write i2c OK [23:15:48]MH_I2C_Read... [23:15:48]OFD Sender: No OFD packet to send [23:15:49]*** Cut start [23:15:49]*** Purtial cut [23:15:49]*** Stage 1: CUTSNS_PIN = 1 [23:15:49]Read from MH i2c: 01 [23:15:49]MH_I2C_Read... [23:15:49]*** Stop cut motor [23:15:49]*** Cut end [23:15:49]Read from MH i2c: 01 07 00 [23:15:49]MH_I2C_Read... [23:15:49]Read from MH i2c: 01 07 00 25 30 00 00 00 00 00 FF 0F 6A [23:15:49]process_action close_receipt done [23:15:49]requested_data is exist [23:15:49]produce_requested_data [23:15:49]requested_item fm.sn is exist - process it [23:15:49]wFMCommunicate request_size=4 [23:15:49]MH_SAM_APDU [23:15:49]CAPDU: 80 11 00 00 [23:15:49]Write to MH i2c: E2 08 00 26 30 80 11 00 00 00 00 00 00 D0 [23:15:49]Write i2c OK [23:15:49]MH_I2C_Read... [23:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:15:49]Read from MH i2c: E2 [23:15:49]MH_I2C_Read... [23:15:49]Read from MH i2c: E2 17 00 [23:15:49]MH_I2C_Read... [23:15:49]Read from MH i2c: E2 17 00 26 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [23:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:15:49]wFMCommunicate OK [23:15:49]requested_item fd.num is exist - process it [23:15:49]SAM_PROTO_GetFieldsCounters [23:15:49]wFMCommunicate request_size=4 [23:15:49]MH_SAM_APDU [23:15:49]CAPDU: 80 13 00 00 [23:15:49]Write to MH i2c: E2 08 00 27 30 80 13 00 00 00 00 00 00 D3 [23:15:49]Write i2c OK [23:15:49]MH_I2C_Read... [23:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:15:49]Read from MH i2c: E2 [23:15:49]MH_I2C_Read... [23:15:49]Read from MH i2c: E2 62 00 [23:15:49]MH_I2C_Read... [23:15:49]Read from MH i2c: E2 62 00 27 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 74 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 74 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:15:49]wFMCommunicate OK [23:15:49]SAM_PROTO_GetFieldsCounters done [23:15:49]requested_item shift.num is exist - process it [23:15:49]requested_item shift.opened is exist - process it [23:15:49]req_shift_opened [23:15:49]FM_GetShiftState [23:15:49]SAM_PROTO_GetShiftState [23:15:49]wFMCommunicate request_size=4 [23:15:49]MH_SAM_APDU [23:15:49]CAPDU: 80 13 01 00 [23:15:49]Write to MH i2c: E2 08 00 28 30 80 13 01 00 00 00 00 00 D5 [23:15:49]Write i2c OK [23:15:49]MH_I2C_Read... [23:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:15:49]Read from MH i2c: E2 [23:15:49]MH_I2C_Read... [23:15:49]Read from MH i2c: E2 0E 00 [23:15:49]MH_I2C_Read... [23:15:49]Read from MH i2c: E2 0E 00 28 30 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 CF [23:15:49]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:15:49]wFMCommunicate OK [23:15:49]SAM_PROTO_GetShiftState done [23:15:49]FM_GetShiftState done [23:15:49]req_shift_opened done [23:15:49]requested_item shift.open_date is exist - process it [23:15:49]req_shift_open_date [23:15:49]req_shift_open_date done [23:15:49]produce_requested_data done [23:15:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162676,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:15:49]process_action_free close_receipt [23:15:49]json_value_free [23:15:49]json_value_free done [23:15:49]process_json_proto returns [23:15:49]Send response to host [23:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162676,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:15:49]free response buf [23:15:49]execute_script done [23:15:49]execute_script returns [23:15:49]free content buf [23:15:49]Sock 7.Close socket [23:15:49]Sock 7.Thread stoped [23:15:53]OFD Sender: No OFD packet to send [23:15:58]OFD Sender: No OFD packet to send [23:16:03]OFD Sender: No OFD packet to send [23:16:08]OFD Sender: No OFD packet to send [23:16:13]OFD Sender: No OFD packet to send [23:16:18]OFD Sender: No OFD packet to send [23:16:23]OFD Sender: No OFD packet to send [23:16:28]OFD Sender: No OFD packet to send [23:16:33]OFD Sender: No OFD packet to send [23:16:38]OFD Sender: No OFD packet to send [23:16:43]OFD Sender: No OFD packet to send [23:16:48]OFD Sender: No OFD packet to send [23:16:53]OFD Sender: No OFD packet to send [23:16:58]OFD Sender: No OFD packet to send [23:17:03]OFD Sender: No OFD packet to send [23:17:08]OFD Sender: No OFD packet to send [23:17:13]OFD Sender: No OFD packet to send [23:17:18]OFD Sender: No OFD packet to send [23:17:23]OFD Sender: No OFD packet to send [23:17:28]OFD Sender: No OFD packet to send [23:17:33]OFD Sender: No OFD packet to send [23:17:38]OFD Sender: No OFD packet to send [23:17:43]OFD Sender: No OFD packet to send [23:17:48]OFD Sender: No OFD packet to send [23:17:53]OFD Sender: No OFD packet to send [23:17:58]OFD Sender: No OFD packet to send [23:18:03]OFD Sender: No OFD packet to send [23:18:08]OFD Sender: No OFD packet to send [23:18:13]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:09]OFD Sender: No OFD packet to send [23:19:14]OFD Sender: No OFD packet to send [23:19:19]OFD Sender: No OFD packet to send [23:19:24]OFD Sender: No OFD packet to send [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:49]OFD Sender: No OFD packet to send [23:20:54]OFD Sender: No OFD packet to send [23:20:59]OFD Sender: No OFD packet to send [23:21:04]OFD Sender: No OFD packet to send [23:21:09]OFD Sender: No OFD packet to send [23:21:14]OFD Sender: No OFD packet to send [23:21:19]OFD Sender: No OFD packet to send [23:21:24]OFD Sender: No OFD packet to send [23:21:29]OFD Sender: No OFD packet to send [23:21:34]OFD Sender: No OFD packet to send [23:21:39]OFD Sender: No OFD packet to send [23:21:44]OFD Sender: No OFD packet to send [23:21:49]OFD Sender: No OFD packet to send [23:21:54]OFD Sender: No OFD packet to send [23:21:59]OFD Sender: No OFD packet to send [23:22:04]OFD Sender: No OFD packet to send [23:22:09]OFD Sender: No OFD packet to send [23:22:09]accept exits with 9 [23:22:09]New connection [23:22:09]New thread 3067510116 created [23:22:09]Thread 3067366756 joined [23:22:09]Waiting for new connection... [23:22:09] Sock 9.Parse request [23:22:09]Sock 9.Check first char [23:22:09]Sock 9.First char is OK [23:22:09]request: POST /json_proto HTTP/1.0 [23:22:09]Method: POST [23:22:09]URL: /json_proto [23:22:09]Method is POST - this is cgi request [23:22:09]url: /json_proto [23:22:09]query_string will be loaded in cgi processing [23:22:09]execute_cgi json_proto POST (null) [23:22:09]execute_cgi path=json_proto method=POST [23:22:09]POST find Content-Length [23:22:09]Host: 172.17.39.67:8080 [23:22:09]Content-Length: 683 [23:22:09]Content-Type: application/json [23:22:09] [23:22:09]POST finish read [23:22:09]Found Content-Length = 683 [23:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [23:22:09]execute_script... [23:22: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)1319257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [23:22:09]POST & json_proto [23:22:09]process_json_proto [23:22:09]json parsed OK: [23:22:09]protocol is kg_v1.0 [23:22:09]action value=close_receipt [23:22:09]process_action close_receipt [23:22:09]cmd_close_receipt [23:22:09]MH_GetDate [23:22:09]Write to MH i2c: F0 00 00 29 30 48 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: F0 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: F0 09 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: F0 09 00 29 30 00 24 0C 93 66 86 7C 92 66 74 [23:22:09]GetLastDocTimeStamp 1720912548 [23:22:09]current date 1720912932 [23:22:09]FM_GetShiftState [23:22:09]SAM_PROTO_GetShiftState [23:22:09]wFMCommunicate request_size=4 [23:22:09]MH_SAM_APDU [23:22:09]CAPDU: 80 13 01 00 [23:22:09]Write to MH i2c: E2 08 00 2A 30 80 13 01 00 00 00 00 00 D7 [23:22:09]Write i2c OK [23:22:09]MH_I2C_Read... [23:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:09]Read from MH i2c: E2 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 0E 00 [23:22:09]MH_I2C_Read... [23:22:09]Read from MH i2c: E2 0E 00 2A 30 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D1 [23:22:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:22:09]wFMCommunicate OK [23:22:09]SAM_PROTO_GetShiftState done [23:22:09]FM_GetShiftState done [23:22:09]opened in 1720828979 [23:22:09]opened+sec_in_day 1720915379 [23:22:09]quantity*price = 70059 [23:22:09]sum+1 = 70060 [23:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.40 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 345 13.07.2024 23:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162677 ФПД: 148280049428640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232212&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162677&fm=148280049428640&tin=02508201610067®Number=0000000000090858&sum=70000 [23:22:10]StoreToDocumentArchive [23:22:10]shift 462 fd 162677 [23:22:10]save to /storage/0462/doc_00162677 [23:22:10]save last doc name /storage/0462/doc_00162677 to /storage/kkm_last_doc_name [23:22:10]save OK [23:22:10]Clear old archive folders... [23:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:22:10]tlvbuf is 006FA790 [23:22:10]SAM_PROTO_ClearQueue [23:22:10]wFMCommunicate request_size=4 [23:22:10]MH_SAM_APDU [23:22:10]CAPDU: 80 09 00 00 [23:22:10]Write to MH i2c: E2 08 00 37 30 80 09 00 00 00 00 00 00 D9 [23:22:10]Write i2c OK [23:22:10]MH_I2C_Read... [23:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 03 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 03 00 37 30 00 90 00 DB [23:22:11]RAPDU: 90 00 [23:22:11]wFMCommunicate OK [23:22:11]SAM_PROTO_ClearQueue done [23:22:11]KKMCreateOFDPacket [23:22:11]OFDProtocolAddRootSTLVToBuf [23:22:11]FM_MakeSignedData [23:22:11]FM_MakeSignedData [23:22:11]SAM_PROTO_SignData [23:22:11]wFMCommunicate request_size=4 [23:22:11]MH_SAM_APDU [23:22:11]CAPDU: 80 0D 01 02 [23:22:11]Write to MH i2c: E2 08 00 38 30 80 0D 01 02 00 00 00 00 E1 [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 03 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 03 00 38 30 00 90 00 DC [23:22:11]RAPDU: 90 00 [23:22:11]wFMCommunicate OK [23:22:11]wFMCommunicate request_size=255 [23:22:11]MH_SAM_APDU [23:22:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 59 01 00 00 F4 03 04 00 24 0C 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7B 02 00 35 04 06 00 [23:22:11]Write to MH i2c: E2 02 01 39 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 59 01 00 00 F4 03 04 00 24 0C 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7B 02 00 35 04 06 00 00 00 27 [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 03 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 03 00 39 30 00 90 00 DD [23:22:11]RAPDU: 90 00 [23:22:11]wFMCommunicate OK [23:22:11]wFMCommunicate request_size=11 [23:22:11]MH_SAM_APDU [23:22:11]CAPDU: 80 0D 02 02 06 86 DC 23 AC 68 A0 [23:22:11]Write to MH i2c: E2 0E 00 3A 30 80 0D 02 02 06 00 86 DC 23 AC 68 A0 00 00 29 [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 03 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [23:22:11]RAPDU: 90 00 [23:22:11]wFMCommunicate OK [23:22:11]wFMCommunicate request_size=4 [23:22:11]MH_SAM_APDU [23:22:11]CAPDU: 80 0D 03 02 [23:22:11]Write to MH i2c: E2 08 00 3B 30 80 0D 03 02 00 00 00 00 E6 [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 0B 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 0B 00 3B 30 00 4B 9A D7 35 BF 9A 4A B1 90 00 2C [23:22:11]RAPDU: 4B 9A D7 35 BF 9A 4A B1 90 00 [23:22:11]wFMCommunicate OK [23:22:11]SAM_PROTO_SignData done [23:22:11]FM_MakeSignedData done [23:22:11]CreateOFDProtocolMessage [23:22:11]wFMCommunicate request_size=4 [23:22:11]MH_SAM_APDU [23:22:11]CAPDU: 80 11 00 00 [23:22:11]Write to MH i2c: E2 08 00 3C 30 80 11 00 00 00 00 00 00 E6 [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:11]Read from MH i2c: E2 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 17 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: E2 17 00 3C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 46 [23:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:22:11]wFMCommunicate OK [23:22:11]CreateOFDProtocolMessage done [23:22:11]OFDSenderStorePacket 162677 [23:22:11]StoreOFDPacket docnum=162677 [23:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 85 DD 08 01 D1 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 59 01 00 00 F4 03 04 00 24 0C 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7B 02 00 35 04 06 00 86 DC 23 AC 68 A0 4B 9A D7 35 BF 9A 4A B1 [23:22:11]CheckFolder [23:22:11]dirname=/storage/ofd_packets [23:22:11]CheckFolder done [23:22:11]ProducePacketName [23:22:11]name=ofd_packets/00162677 [23:22:11]NVStorageSaveData ofd_packets/00162677 [23:22:11]File name is /storage/ofd_packets/00162677 [23:22:11]Write 302 bytes [23:22:11]NVStorageSaveData done [23:22:11]OFDSenderStorePacket done [23:22:11]KKMCreateOFDPacket done [23:22:11]NVStorageSaveData kkm_last_timestamp [23:22:11]File name is /storage/kkm_last_timestamp [23:22:11]Write 4 bytes [23:22:11]NVStorageSaveData done [23:22:11]ExternCall_PrintAddStr [23:22:11]wPrintStart [23:22:11]Write to MH i2c: 01 00 00 3D 30 6D [23:22:11]Write i2c OK [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: 01 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: 01 07 00 [23:22:11]MH_I2C_Read... [23:22:11]Read from MH i2c: 01 07 00 3D 30 00 00 00 00 00 FF 0F 82 [23:22:11]RasterBufferAndPrint [23:22:11]line Счет N : (1)1319257 [23:22:11]line ИНН: 02508201610067 [23:22:11]line Контрольно-Кассовый Чек [23:22:11]line ПРОДАЖА [23:22:11]line ТРК (МРК, ГНК) : 41 [23:22:11]line Товар: 2710194210 [23:22:11]line ДТ(л)-К-5 [23:22:11]line 9.650 * 72.60 [23:22:11]line = 700.59 [23:22:11]line НДС 12% НСП 1% [23:22:11]line > о реализуемом товаре [23:22:11]line ОКРУГЛЕНИЕ: -0.59 [23:22:11]line ИТОГО: 700.00 [23:22:11]line Внесено: 700.00 [23:22:11]line СДАЧА: 0.00 [23:22:11]line НСП 1% : 6.20 [23:22:11]line НДС 12% : 74.40 [23:22:11]line Наличными: 700.00 [23:22:11]line Безнал.: 0.00 [23:22:11]line Место: АЗС № 140 "Партнер Нефть" [23:22:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:22:11]line СНО: Общий режим [23:22:11]line Чек 345 13.07.2024 23:22 [23:22:11]line Смена: 462 ФФД: 1.0 [23:22:11]line ЗНМ: 0300000129 [23:22:11]line РНМ: 0000000000090858 [23:22:11]line Версия ККМ: 001 [23:22:11]line ФМ: 0000000000874899 [23:22:11]line ФД: 162677 [23:22:11]line ФПД: 148280049428640 [23:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232212&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162677&fm=148280049428640&tin=02508201610067®Number=0000000000090858&sum=70000 [23:22:11]OFD Sender: Processing packet 162677 [packets to send 106, broken 105] [23:22:11]ProducePacketName [23:22:11]name=ofd_packets/00162677 [23:22:11]OFD Sender: To server: pG, [23:22:11]CommunicateWithHost lk.salyk.kg:30040 [23:22:11]ConnectInit lk.salyk.kg [23:22:11]written 0, free lines is 4095 [23:22:11]Connected sock=10 [23:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 85 DD 08 01 D1 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 59 01 00 00 F4 03 04 00 24 0C 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7B 02 00 35 04 06 00 86 DC 23 AC 68 A0 4B 9A D7 35 BF 9A 4A B1 [23:22:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 B9 FD 47 00 B9 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 75 7B 02 00 F4 03 04 00 32 B8 92 66 B6 04 01 00 00 E1 B4 EE 70 17 76 3F 60 [23:22:12]CommunicateWithHost err = 0 [23:22:12]CheckOFDResponse [23:22:12]1017 (14) - 77093643461234 [23:22:12]1041 (16) - 0000000000874899 [23:22:12]1040 (4) - 162677 [23:22:12]1012 (4) - 13.07.2024 17:24 [23:22:12]1206 (1) - 0 [23:22:12]OFD Sender: Remove packet 162677 [23:22:12]ProducePacketName [23:22:12]name=ofd_packets/00162677 [23:22:12]NVStorageDeleteData [23:22:12]Write to MH i2c: 01 00 00 68 30 98 [23:22:12]Write i2c OK [23:22:12]MH_I2C_Read... [23:22:12]Read from MH i2c: 01 [23:22:12]MH_I2C_Read... [23:22:12]Read from MH i2c: 01 07 00 [23:22:12]MH_I2C_Read... [23:22:12]Read from MH i2c: 01 07 00 68 30 00 00 00 00 00 DA 0C 85 [23:22:12]RasterBufferAndPrint [23:22:12]line [23:22:12]line [23:22:12]line [23:22:12]line [23:22:12]line [23:22:12]written 0, free lines is 3299 [23:22:12]MH_Cut [23:22:12]Write to MH i2c: D1 01 00 6F 30 01 71 [23:22:12]Write i2c OK [23:22:12]MH_I2C_Read... [23:22:12]Read from MH i2c: D1 [23:22:12]MH_I2C_Read... [23:22:12]Read from MH i2c: D1 01 00 [23:22:12]MH_I2C_Read... [23:22:12]Read from MH i2c: D1 01 00 6F 30 00 70 [23:22:12]Write to MH i2c: 01 00 00 70 30 A0 [23:22:12]Write i2c OK [23:22:12]MH_I2C_Read... [23:22:12]OFD Sender: No OFD packet to send [23:22:13]*** Cut start [23:22:13]*** Purtial cut [23:22:13]*** CUTSNS_PIN = 0 [23:22:13]*** Stage 1: CUTSNS_PIN = 1 [23:22:15]Read from MH i2c: 01 [23:22:15]MH_I2C_Read... [23:22:15]*** Stop cut motor [23:22:15]*** Cut end [23:22:15]Read from MH i2c: 01 07 00 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: 01 07 00 70 30 00 00 00 00 00 FF 0F B5 [23:22:15]process_action close_receipt done [23:22:15]requested_data is exist [23:22:15]produce_requested_data [23:22:15]requested_item fm.sn is exist - process it [23:22:15]wFMCommunicate request_size=4 [23:22:15]MH_SAM_APDU [23:22:15]CAPDU: 80 11 00 00 [23:22:15]Write to MH i2c: E2 08 00 71 30 80 11 00 00 00 00 00 00 1B [23:22:15]Write i2c OK [23:22:15]MH_I2C_Read... [23:22:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:22:15]Read from MH i2c: E2 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: E2 17 00 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: E2 17 00 71 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 7B [23:22:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:22:15]wFMCommunicate OK [23:22:15]requested_item fd.num is exist - process it [23:22:15]SAM_PROTO_GetFieldsCounters [23:22:15]wFMCommunicate request_size=4 [23:22:15]MH_SAM_APDU [23:22:15]CAPDU: 80 13 00 00 [23:22:15]Write to MH i2c: E2 08 00 72 30 80 13 00 00 00 00 00 00 1E [23:22:15]Write i2c OK [23:22:15]MH_I2C_Read... [23:22:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:22:15]Read from MH i2c: E2 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: E2 62 00 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: E2 62 00 72 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 75 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [23:22:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 75 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:22:15]wFMCommunicate OK [23:22:15]SAM_PROTO_GetFieldsCounters done [23:22:15]requested_item shift.num is exist - process it [23:22:15]requested_item shift.opened is exist - process it [23:22:15]req_shift_opened [23:22:15]FM_GetShiftState [23:22:15]SAM_PROTO_GetShiftState [23:22:15]wFMCommunicate request_size=4 [23:22:15]MH_SAM_APDU [23:22:15]CAPDU: 80 13 01 00 [23:22:15]Write to MH i2c: E2 08 00 73 30 80 13 01 00 00 00 00 00 20 [23:22:15]Write i2c OK [23:22:15]MH_I2C_Read... [23:22:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:22:15]Read from MH i2c: E2 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: E2 0E 00 [23:22:15]MH_I2C_Read... [23:22:15]Read from MH i2c: E2 0E 00 73 30 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1A [23:22:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:22:15]wFMCommunicate OK [23:22:15]SAM_PROTO_GetShiftState done [23:22:15]FM_GetShiftState done [23:22:15]req_shift_opened done [23:22:15]requested_item shift.open_date is exist - process it [23:22:15]req_shift_open_date [23:22:15]req_shift_open_date done [23:22:15]produce_requested_data done [23:22:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162677,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:22:15]process_action_free close_receipt [23:22:15]json_value_free [23:22:15]json_value_free done [23:22:15]process_json_proto returns [23:22:15]Send response to host [23:22:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162677,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:22:15]free response buf [23:22:15]execute_script done [23:22:15]execute_script returns [23:22:15]free content buf [23:22:15]Sock 9.Close socket [23:22:15]Sock 9.Thread stoped [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:13]accept exits with 7 [23:23:13]New connection [23:23:13]New thread 3067366756 created [23:23:13]Thread 3067510116 joined [23:23:13]Waiting for new connection... [23:23:13] Sock 7.Parse request [23:23:13]Sock 7.Check first char [23:23:13]Sock 7.First char is OK [23:23:13]request: POST /json_proto HTTP/1.0 [23:23:13]Method: POST [23:23:13]URL: /json_proto [23:23:13]Method is POST - this is cgi request [23:23:13]url: /json_proto [23:23:13]query_string will be loaded in cgi processing [23:23:13]execute_cgi json_proto POST (null) [23:23:13]execute_cgi path=json_proto method=POST [23:23:13]POST find Content-Length [23:23:13]Host: 172.17.39.67:8080 [23:23:13]Content-Length: 684 [23:23:13]Content-Type: application/json [23:23:13] [23:23:13]POST finish read [23:23:13]Found Content-Length = 684 [23:23:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.060, "sum" : 730.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:13]execute_script... [23:23: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)1319258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 10.060, "sum" : 730.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:13]POST & json_proto [23:23:13]process_json_proto [23:23:13]json parsed OK: [23:23:13]protocol is kg_v1.0 [23:23:13]action value=close_receipt [23:23:13]process_action close_receipt [23:23:13]cmd_close_receipt [23:23:13]MH_GetDate [23:23:13]Write to MH i2c: F0 00 00 74 30 93 [23:23:13]Write i2c OK [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: F0 [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: F0 09 00 [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: F0 09 00 74 30 00 63 0C 93 66 86 7C 92 66 FE [23:23:13]GetLastDocTimeStamp 1720912932 [23:23:13]current date 1720912995 [23:23:13]FM_GetShiftState [23:23:13]SAM_PROTO_GetShiftState [23:23:13]wFMCommunicate request_size=4 [23:23:13]MH_SAM_APDU [23:23:13]CAPDU: 80 13 01 00 [23:23:13]Write to MH i2c: E2 08 00 75 30 80 13 01 00 00 00 00 00 22 [23:23:13]Write i2c OK [23:23:13]MH_I2C_Read... [23:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:13]Read from MH i2c: E2 [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: E2 0E 00 [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: E2 0E 00 75 30 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 1C [23:23:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:23:13]wFMCommunicate OK [23:23:13]SAM_PROTO_GetShiftState done [23:23:13]FM_GetShiftState done [23:23:13]opened in 1720828979 [23:23:13]opened+sec_in_day 1720915379 [23:23:13]quantity*price = 73035 [23:23:13]sum+1 = 73037 [23:23:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.56 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 346 13.07.2024 23:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162678 ФПД: 19875854764988 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232315&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162678&fm=19875854764988&tin=02508201610067®Number=0000000000090858&sum=73000 [23:23:14]StoreToDocumentArchive [23:23:14]shift 462 fd 162678 [23:23:14]save to /storage/0462/doc_00162678 [23:23:14]save last doc name /storage/0462/doc_00162678 to /storage/kkm_last_doc_name [23:23:14]save OK [23:23:14]Clear old archive folders... [23:23:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:23:14]tlvbuf is B6FE0900 [23:23:14]SAM_PROTO_ClearQueue [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 09 00 00 [23:23:14]Write to MH i2c: E2 08 00 82 30 80 09 00 00 00 00 00 00 24 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 82 30 00 90 00 26 [23:23:14]RAPDU: 90 00 [23:23:14]wFMCommunicate OK [23:23:14]SAM_PROTO_ClearQueue done [23:23:14]KKMCreateOFDPacket [23:23:14]OFDProtocolAddRootSTLVToBuf [23:23:14]FM_MakeSignedData [23:23:14]FM_MakeSignedData [23:23:14]SAM_PROTO_SignData [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 0D 01 02 [23:23:14]Write to MH i2c: E2 08 00 83 30 80 0D 01 02 00 00 00 00 2C [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 83 30 00 90 00 27 [23:23:14]RAPDU: 90 00 [23:23:14]wFMCommunicate OK [23:23:14]wFMCommunicate request_size=255 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 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 01 00 00 F4 03 04 00 63 0C 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7B 02 00 35 04 06 00 [23:23:14]Write to MH i2c: E2 02 01 84 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 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 01 00 00 F4 03 04 00 63 0C 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7B 02 00 35 04 06 00 00 00 DB [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 84 30 00 90 00 28 [23:23:14]RAPDU: 90 00 [23:23:14]wFMCommunicate OK [23:23:14]wFMCommunicate request_size=11 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 0D 02 02 06 12 13 B5 43 4B BC [23:23:14]Write to MH i2c: E2 0E 00 85 30 80 0D 02 02 06 00 12 13 B5 43 4B BC 00 00 5F [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [23:23:14]RAPDU: 90 00 [23:23:14]wFMCommunicate OK [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 0D 03 02 [23:23:14]Write to MH i2c: E2 08 00 86 30 80 0D 03 02 00 00 00 00 31 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 0B 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 0B 00 86 30 00 3B 5A 8E 9E 5C 79 C0 3D 90 00 C5 [23:23:14]RAPDU: 3B 5A 8E 9E 5C 79 C0 3D 90 00 [23:23:14]wFMCommunicate OK [23:23:14]SAM_PROTO_SignData done [23:23:14]FM_MakeSignedData done [23:23:14]CreateOFDProtocolMessage [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 11 00 00 [23:23:14]Write to MH i2c: E2 08 00 87 30 80 11 00 00 00 00 00 00 31 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 17 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 17 00 87 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 91 [23:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:23:14]wFMCommunicate OK [23:23:14]CreateOFDProtocolMessage done [23:23:14]OFDSenderStorePacket 162678 [23:23:14]StoreOFDPacket docnum=162678 [23:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 71 1A 08 01 6D 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 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 01 00 00 F4 03 04 00 63 0C 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7B 02 00 35 04 06 00 12 13 B5 43 4B BC 3B 5A 8E 9E 5C 79 C0 3D [23:23:14]CheckFolder [23:23:14]dirname=/storage/ofd_packets [23:23:14]CheckFolder done [23:23:14]ProducePacketName [23:23:14]name=ofd_packets/00162678 [23:23:14]NVStorageSaveData ofd_packets/00162678 [23:23:14]File name is /storage/ofd_packets/00162678 [23:23:14]Write 302 bytes [23:23:14]NVStorageSaveData done [23:23:14]OFDSenderStorePacket done [23:23:14]KKMCreateOFDPacket done [23:23:14]NVStorageSaveData kkm_last_timestamp [23:23:14]File name is /storage/kkm_last_timestamp [23:23:14]Write 4 bytes [23:23:14]NVStorageSaveData done [23:23:14]ExternCall_PrintAddStr [23:23:14]wPrintStart [23:23:14]Write to MH i2c: 01 00 00 88 30 B8 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: 01 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: 01 07 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: 01 07 00 88 30 00 00 00 00 00 FF 0F CD [23:23:14]RasterBufferAndPrint [23:23:14]line Счет N : (1)1319258 [23:23:14]line ИНН: 02508201610067 [23:23:14]line Контрольно-Кассовый Чек [23:23:14]line ПРОДАЖА [23:23:14]line ТРК (МРК, ГНК) : 11 [23:23:14]line Товар: 2710194210 [23:23:14]line ДТ(л)-К-5 [23:23:14]line 10.060 * 72.60 [23:23:14]line = 730.36 [23:23:14]line НДС 12% НСП 1% [23:23:14]line > о реализуемом товаре [23:23:14]line ОКРУГЛЕНИЕ: -0.36 [23:23:14]line ИТОГО: 730.00 [23:23:14]line Внесено: 730.00 [23:23:14]line СДАЧА: 0.00 [23:23:14]line НСП 1% : 6.46 [23:23:14]line НДС 12% : 77.56 [23:23:14]line Наличными: 730.00 [23:23:14]line Безнал.: 0.00 [23:23:14]line Место: АЗС № 140 "Партнер Нефть" [23:23:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:23:14]line СНО: Общий режим [23:23:14]line Чек 346 13.07.2024 23:23 [23:23:14]line Смена: 462 ФФД: 1.0 [23:23:14]line ЗНМ: 0300000129 [23:23:14]line РНМ: 0000000000090858 [23:23:14]line Версия ККМ: 001 [23:23:14]line ФМ: 0000000000874899 [23:23:14]line ФД: 162678 [23:23:14]line ФПД: 19875854764988 [23:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232315&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162678&fm=19875854764988&tin=02508201610067®Number=0000000000090858&sum=73000 [23:23:15]OFD Sender: Processing packet 162678 [packets to send 106, broken 105] [23:23:15]ProducePacketName [23:23:15]name=ofd_packets/00162678 [23:23:15]OFD Sender: To server: pG, [23:23:15]CommunicateWithHost lk.salyk.kg:30040 [23:23:15]ConnectInit lk.salyk.kg [23:23:15]written 0, free lines is 4095 [23:23:15]Connected sock=10 [23:23:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 71 1A 08 01 6D 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4C 27 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 4C 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 1E 00 00 00 00 07 04 06 00 28 1D 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 01 00 00 F4 03 04 00 63 0C 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7B 02 00 35 04 06 00 12 13 B5 43 4B BC 3B 5A 8E 9E 5C 79 C0 3D [23:23:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AB 0B 47 00 FB 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 76 7B 02 00 F4 03 04 00 71 B8 92 66 B6 04 01 00 00 29 7F E7 84 97 E1 F5 F8 [23:23:15]CommunicateWithHost err = 0 [23:23:15]CheckOFDResponse [23:23:15]1017 (14) - 77093643461234 [23:23:15]1041 (16) - 0000000000874899 [23:23:15]1040 (4) - 162678 [23:23:15]1012 (4) - 13.07.2024 17:25 [23:23:15]1206 (1) - 0 [23:23:15]OFD Sender: Remove packet 162678 [23:23:15]ProducePacketName [23:23:15]name=ofd_packets/00162678 [23:23:15]NVStorageDeleteData [23:23:15]Write to MH i2c: 01 00 00 B3 30 E3 [23:23:15]Write i2c OK [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: 01 [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: 01 07 00 [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: 01 07 00 B3 30 00 00 00 00 00 EB 0C E1 [23:23:15]RasterBufferAndPrint [23:23:15]line [23:23:15]line [23:23:15]line [23:23:15]line [23:23:15]line [23:23:15]written 0, free lines is 3316 [23:23:15]MH_Cut [23:23:15]Write to MH i2c: D1 01 00 BA 30 01 BC [23:23:15]Write i2c OK [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: D1 [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: D1 01 00 [23:23:15]MH_I2C_Read... [23:23:15]Read from MH i2c: D1 01 00 BA 30 00 BB [23:23:15]Write to MH i2c: 01 00 00 BB 30 EB [23:23:15]Write i2c OK [23:23:15]MH_I2C_Read... [23:23:16]OFD Sender: No OFD packet to send [23:23:16]*** Cut start [23:23:16]*** Purtial cut [23:23:16]*** Stage 1: CUTSNS_PIN = 1 [23:23:16]Read from MH i2c: 01 [23:23:16]MH_I2C_Read... [23:23:16]*** Stop cut motor [23:23:16]*** Cut end [23:23:16]Read from MH i2c: 01 07 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: 01 07 00 BB 30 00 00 00 00 00 FF 0F 00 [23:23:16]process_action close_receipt done [23:23:16]requested_data is exist [23:23:16]produce_requested_data [23:23:16]requested_item fm.sn is exist - process it [23:23:16]wFMCommunicate request_size=4 [23:23:16]MH_SAM_APDU [23:23:16]CAPDU: 80 11 00 00 [23:23:16]Write to MH i2c: E2 08 00 BC 30 80 11 00 00 00 00 00 00 66 [23:23:16]Write i2c OK [23:23:16]MH_I2C_Read... [23:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:16]Read from MH i2c: E2 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 17 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 17 00 BC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C6 [23:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:23:16]wFMCommunicate OK [23:23:16]requested_item fd.num is exist - process it [23:23:16]SAM_PROTO_GetFieldsCounters [23:23:16]wFMCommunicate request_size=4 [23:23:16]MH_SAM_APDU [23:23:16]CAPDU: 80 13 00 00 [23:23:16]Write to MH i2c: E2 08 00 BD 30 80 13 00 00 00 00 00 00 69 [23:23:16]Write i2c OK [23:23:16]MH_I2C_Read... [23:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:16]Read from MH i2c: E2 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 62 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 62 00 BD 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 76 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [23:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 76 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:16]wFMCommunicate OK [23:23:16]SAM_PROTO_GetFieldsCounters done [23:23:16]requested_item shift.num is exist - process it [23:23:16]requested_item shift.opened is exist - process it [23:23:16]req_shift_opened [23:23:16]FM_GetShiftState [23:23:16]SAM_PROTO_GetShiftState [23:23:16]wFMCommunicate request_size=4 [23:23:16]MH_SAM_APDU [23:23:16]CAPDU: 80 13 01 00 [23:23:16]Write to MH i2c: E2 08 00 BE 30 80 13 01 00 00 00 00 00 6B [23:23:16]Write i2c OK [23:23:16]MH_I2C_Read... [23:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:16]Read from MH i2c: E2 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 0E 00 [23:23:16]MH_I2C_Read... [23:23:16]Read from MH i2c: E2 0E 00 BE 30 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 65 [23:23:16]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:23:16]wFMCommunicate OK [23:23:16]SAM_PROTO_GetShiftState done [23:23:16]FM_GetShiftState done [23:23:16]req_shift_opened done [23:23:16]requested_item shift.open_date is exist - process it [23:23:16]req_shift_open_date [23:23:16]req_shift_open_date done [23:23:16]produce_requested_data done [23:23:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162678,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:23:16]process_action_free close_receipt [23:23:16]json_value_free [23:23:16]json_value_free done [23:23:16]process_json_proto returns [23:23:16]Send response to host [23:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162678,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:23:16]free response buf [23:23:16]execute_script done [23:23:16]execute_script returns [23:23:16]free content buf [23:23:16]Sock 7.Close socket [23:23:16]Sock 7.Thread stoped [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:15]accept exits with 9 [23:28:15]New connection [23:28:15]New thread 3067510116 created [23:28:15]Thread 3067366756 joined [23:28:15]Waiting for new connection... [23:28:15] Sock 9.Parse request [23:28:15]Sock 9.Check first char [23:28:15]Sock 9.First char is OK [23:28:15]request: POST /json_proto HTTP/1.0 [23:28:15]Method: POST [23:28:15]URL: /json_proto [23:28:15]Method is POST - this is cgi request [23:28:15]url: /json_proto [23:28:15]query_string will be loaded in cgi processing [23:28:15]execute_cgi json_proto POST (null) [23:28:15]execute_cgi path=json_proto method=POST [23:28:15]POST find Content-Length [23:28:15]Host: 172.17.39.67:8080 [23:28:15]Content-Length: 676 [23:28:15]Content-Type: application/json [23:28:15] [23:28:15]POST finish read [23:28:15]Found Content-Length = 676 [23:28:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:15]execute_script... [23:28: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)1319259", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:28:15]POST & json_proto [23:28:15]process_json_proto [23:28:15]json parsed OK: [23:28:15]protocol is kg_v1.0 [23:28:15]action value=close_receipt [23:28:15]process_action close_receipt [23:28:15]cmd_close_receipt [23:28:15]MH_GetDate [23:28:15]Write to MH i2c: F0 00 00 BF 30 DE [23:28:15]Write i2c OK [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: F0 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: F0 09 00 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: F0 09 00 BF 30 00 91 0D 93 66 86 7C 92 66 78 [23:28:15]GetLastDocTimeStamp 1720912995 [23:28:15]current date 1720913297 [23:28:15]FM_GetShiftState [23:28:15]SAM_PROTO_GetShiftState [23:28:15]wFMCommunicate request_size=4 [23:28:15]MH_SAM_APDU [23:28:15]CAPDU: 80 13 01 00 [23:28:15]Write to MH i2c: E2 08 00 C0 30 80 13 01 00 00 00 00 00 6D [23:28:15]Write i2c OK [23:28:15]MH_I2C_Read... [23:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:15]Read from MH i2c: E2 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: E2 0E 00 [23:28:15]MH_I2C_Read... [23:28:15]Read from MH i2c: E2 0E 00 C0 30 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 67 [23:28:15]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:28:15]wFMCommunicate OK [23:28:15]SAM_PROTO_GetShiftState done [23:28:15]FM_GetShiftState done [23:28:15]opened in 1720828979 [23:28:15]opened+sec_in_day 1720915379 [23:28:15]quantity*price = 100007 [23:28:15]sum+1 = 100009 [23:28:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 347 13.07.2024 23:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162679 ФПД: 208440708065681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232817&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162679&fm=208440708065681&tin=02508201610067®Number=0000000000090858&sum=100000 [23:28:16]StoreToDocumentArchive [23:28:16]shift 462 fd 162679 [23:28:16]save to /storage/0462/doc_00162679 [23:28:16]save last doc name /storage/0462/doc_00162679 to /storage/kkm_last_doc_name [23:28:16]save OK [23:28:16]Clear old archive folders... [23:28:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:28:16]tlvbuf is B6F497D0 [23:28:16]SAM_PROTO_ClearQueue [23:28:16]wFMCommunicate request_size=4 [23:28:16]MH_SAM_APDU [23:28:16]CAPDU: 80 09 00 00 [23:28:16]Write to MH i2c: E2 08 00 CD 30 80 09 00 00 00 00 00 00 6F [23:28:16]Write i2c OK [23:28:16]MH_I2C_Read... [23:28:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:28:16]Read from MH i2c: E2 [23:28:16]MH_I2C_Read... [23:28:16]Read from MH i2c: E2 03 00 [23:28:16]MH_I2C_Read... [23:28:16]Read from MH i2c: E2 03 00 CD 30 00 90 00 71 [23:28:16]RAPDU: 90 00 [23:28:16]wFMCommunicate OK [23:28:16]SAM_PROTO_ClearQueue done [23:28:16]KKMCreateOFDPacket [23:28:16]OFDProtocolAddRootSTLVToBuf [23:28:16]FM_MakeSignedData [23:28:16]FM_MakeSignedData [23:28:16]SAM_PROTO_SignData [23:28:16]wFMCommunicate request_size=4 [23:28:16]MH_SAM_APDU [23:28:16]CAPDU: 80 0D 01 02 [23:28:16]Write to MH i2c: E2 08 00 CE 30 80 0D 01 02 00 00 00 00 77 [23:28:16]Write i2c OK [23:28:16]MH_I2C_Read... [23:28:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:28:16]Read from MH i2c: E2 [23:28:16]MH_I2C_Read... [23:28:16]Read from MH i2c: E2 03 00 [23:28:16]MH_I2C_Read... [23:28:16]Read from MH i2c: E2 03 00 CE 30 00 90 00 72 [23:28:16]RAPDU: 90 00 [23:28:16]wFMCommunicate OK [23:28:16]wFMCommunicate request_size=255 [23:28:16]MH_SAM_APDU [23:28:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 91 0D 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7B 02 00 35 04 06 00 [23:28:16]Write to MH i2c: E2 02 01 CF 30 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 91 0D 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7B 02 00 35 04 06 00 00 00 B7 [23:28:16]Write i2c OK [23:28:16]MH_I2C_Read... [23:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:16]Read from MH i2c: E2 [23:28:16]MH_I2C_Read... [23:28:16]Read from MH i2c: E2 03 00 [23:28:16]MH_I2C_Read... [23:28:16]Read from MH i2c: E2 03 00 CF 30 00 90 00 73 [23:28:16]RAPDU: 90 00 [23:28:16]wFMCommunicate OK [23:28:16]wFMCommunicate request_size=11 [23:28:16]MH_SAM_APDU [23:28:16]CAPDU: 80 0D 02 02 06 BD 93 62 5C 69 91 [23:28:16]Write to MH i2c: E2 0E 00 D0 30 80 0D 02 02 06 00 BD 93 62 5C 69 91 00 00 8E [23:28:16]Write i2c OK [23:28:16]MH_I2C_Read... [23:28:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:28:16]Read from MH i2c: E2 [23:28:16]MH_I2C_Read... [23:28:16]Read from MH i2c: E2 03 00 [23:28:16]MH_I2C_Read... [23:28:16]Read from MH i2c: E2 03 00 D0 30 00 90 00 74 [23:28:16]RAPDU: 90 00 [23:28:16]wFMCommunicate OK [23:28:16]wFMCommunicate request_size=4 [23:28:16]MH_SAM_APDU [23:28:16]CAPDU: 80 0D 03 02 [23:28:16]Write to MH i2c: E2 08 00 D1 30 80 0D 03 02 00 00 00 00 7C [23:28:16]Write i2c OK [23:28:16]MH_I2C_Read... [23:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:28:17]Read from MH i2c: E2 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: E2 0B 00 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: E2 0B 00 D1 30 00 DF 6C D7 F6 0C 6A 96 2A 90 00 CB [23:28:17]RAPDU: DF 6C D7 F6 0C 6A 96 2A 90 00 [23:28:17]wFMCommunicate OK [23:28:17]SAM_PROTO_SignData done [23:28:17]FM_MakeSignedData done [23:28:17]CreateOFDProtocolMessage [23:28:17]wFMCommunicate request_size=4 [23:28:17]MH_SAM_APDU [23:28:17]CAPDU: 80 11 00 00 [23:28:17]Write to MH i2c: E2 08 00 D2 30 80 11 00 00 00 00 00 00 7C [23:28:17]Write i2c OK [23:28:17]MH_I2C_Read... [23:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:17]Read from MH i2c: E2 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: E2 17 00 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: E2 17 00 D2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 DC [23:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:28:17]wFMCommunicate OK [23:28:17]CreateOFDProtocolMessage done [23:28:17]OFDSenderStorePacket 162679 [23:28:17]StoreOFDPacket docnum=162679 [23:28:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 37 B7 08 01 CB A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 91 0D 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7B 02 00 35 04 06 00 BD 93 62 5C 69 91 DF 6C D7 F6 0C 6A 96 2A [23:28:17]CheckFolder [23:28:17]dirname=/storage/ofd_packets [23:28:17]CheckFolder done [23:28:17]ProducePacketName [23:28:17]name=ofd_packets/00162679 [23:28:17]NVStorageSaveData ofd_packets/00162679 [23:28:17]File name is /storage/ofd_packets/00162679 [23:28:17]Write 302 bytes [23:28:17]NVStorageSaveData done [23:28:17]OFDSenderStorePacket done [23:28:17]KKMCreateOFDPacket done [23:28:17]NVStorageSaveData kkm_last_timestamp [23:28:17]File name is /storage/kkm_last_timestamp [23:28:17]Write 4 bytes [23:28:17]NVStorageSaveData done [23:28:17]ExternCall_PrintAddStr [23:28:17]wPrintStart [23:28:17]Write to MH i2c: 01 00 00 D3 30 03 [23:28:17]Write i2c OK [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: 01 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: 01 07 00 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: 01 07 00 D3 30 00 00 00 00 00 FF 0F 18 [23:28:17]RasterBufferAndPrint [23:28:17]line Счет N : (1)1319259 [23:28:17]line ИНН: 02508201610067 [23:28:17]line Контрольно-Кассовый Чек [23:28:17]line ПРОДАЖА [23:28:17]line ТРК (МРК, ГНК) : 42 [23:28:17]line Товар: 2710124130 [23:28:17]line Super-92-К-5 [23:28:17]line 14.860 * 67.30 [23:28:17]line = 1000.08 [23:28:17]line НДС 12% НСП 1% [23:28:17]line > о реализуемом товаре [23:28:17]line ОКРУГЛЕНИЕ: -0.08 [23:28:17]line ИТОГО: 1000.00 [23:28:17]line Внесено: 1000.00 [23:28:17]line СДАЧА: 0.00 [23:28:17]line НСП 1% : 8.85 [23:28:17]line НДС 12% : 106.20 [23:28:17]line Наличными: 1000.00 [23:28:17]line Безнал.: 0.00 [23:28:17]line Место: АЗС № 140 "Партнер Нефть" [23:28:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:28:17]line СНО: Общий режим [23:28:17]line Чек 347 13.07.2024 23:28 [23:28:17]line Смена: 462 ФФД: 1.0 [23:28:17]line ЗНМ: 0300000129 [23:28:17]line РНМ: 0000000000090858 [23:28:17]line Версия ККМ: 001 [23:28:17]line ФМ: 0000000000874899 [23:28:17]line ФД: 162679 [23:28:17]line ФПД: 208440708065681 [23:28:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T232817&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162679&fm=208440708065681&tin=02508201610067®Number=0000000000090858&sum=100000 [23:28:17]OFD Sender: Processing packet 162679 [packets to send 106, broken 105] [23:28:17]ProducePacketName [23:28:17]name=ofd_packets/00162679 [23:28:17]OFD Sender: To server: pG, [23:28:17]CommunicateWithHost lk.salyk.kg:30040 [23:28:17]ConnectInit lk.salyk.kg [23:28:17]written 0, free lines is 4095 [23:28:17]Connected sock=10 [23:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 37 B7 08 01 CB A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 01 00 00 F4 03 04 00 91 0D 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7B 02 00 35 04 06 00 BD 93 62 5C 69 91 DF 6C D7 F6 0C 6A 96 2A [23:28:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 41 78 47 00 9D BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 77 7B 02 00 F4 03 04 00 9F B9 92 66 B6 04 01 00 00 A0 1C 29 56 59 D7 37 1D [23:28:17]CommunicateWithHost err = 0 [23:28:17]CheckOFDResponse [23:28:17]1017 (14) - 77093643461234 [23:28:17]1041 (16) - 0000000000874899 [23:28:17]1040 (4) - 162679 [23:28:17]1012 (4) - 13.07.2024 17:30 [23:28:17]1206 (1) - 0 [23:28:17]OFD Sender: Remove packet 162679 [23:28:17]ProducePacketName [23:28:17]name=ofd_packets/00162679 [23:28:17]NVStorageDeleteData [23:28:17]Write to MH i2c: 01 00 00 FE 30 2E [23:28:17]Write i2c OK [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: 01 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: 01 07 00 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: 01 07 00 FE 30 00 00 00 00 00 F3 0C 34 [23:28:17]RasterBufferAndPrint [23:28:17]line [23:28:17]line [23:28:17]line [23:28:17]line [23:28:17]line [23:28:17]written 0, free lines is 3321 [23:28:17]MH_Cut [23:28:17]Write to MH i2c: D1 01 00 05 31 01 08 [23:28:17]Write i2c OK [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: D1 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: D1 01 00 [23:28:17]MH_I2C_Read... [23:28:17]Read from MH i2c: D1 01 00 05 31 00 07 [23:28:17]Write to MH i2c: 01 00 00 06 31 37 [23:28:17]Write i2c OK [23:28:17]MH_I2C_Read... [23:28:18]OFD Sender: No OFD packet to send [23:28:18]*** Cut start [23:28:18]*** Purtial cut [23:28:18]*** CUTSNS_PIN = 0 [23:28:18]*** Stage 1: CUTSNS_PIN = 1 [23:28:20]Read from MH i2c: 01 [23:28:20]MH_I2C_Read... [23:28:20]*** Stop cut motor [23:28:20]*** Cut end [23:28:20]Read from MH i2c: 01 07 00 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: 01 07 00 06 31 00 00 00 00 00 FF 0F 4C [23:28:20]process_action close_receipt done [23:28:20]requested_data is exist [23:28:20]produce_requested_data [23:28:20]requested_item fm.sn is exist - process it [23:28:20]wFMCommunicate request_size=4 [23:28:20]MH_SAM_APDU [23:28:20]CAPDU: 80 11 00 00 [23:28:20]Write to MH i2c: E2 08 00 07 31 80 11 00 00 00 00 00 00 B2 [23:28:20]Write i2c OK [23:28:20]MH_I2C_Read... [23:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:28:20]Read from MH i2c: E2 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: E2 17 00 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: E2 17 00 07 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 12 [23:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:28:20]wFMCommunicate OK [23:28:20]requested_item fd.num is exist - process it [23:28:20]SAM_PROTO_GetFieldsCounters [23:28:20]wFMCommunicate request_size=4 [23:28:20]MH_SAM_APDU [23:28:20]CAPDU: 80 13 00 00 [23:28:20]Write to MH i2c: E2 08 00 08 31 80 13 00 00 00 00 00 00 B5 [23:28:20]Write i2c OK [23:28:20]MH_I2C_Read... [23:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:28:20]Read from MH i2c: E2 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: E2 62 00 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: E2 62 00 08 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 77 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [23:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 77 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:28:20]wFMCommunicate OK [23:28:20]SAM_PROTO_GetFieldsCounters done [23:28:20]requested_item shift.num is exist - process it [23:28:20]requested_item shift.opened is exist - process it [23:28:20]req_shift_opened [23:28:20]FM_GetShiftState [23:28:20]SAM_PROTO_GetShiftState [23:28:20]wFMCommunicate request_size=4 [23:28:20]MH_SAM_APDU [23:28:20]CAPDU: 80 13 01 00 [23:28:20]Write to MH i2c: E2 08 00 09 31 80 13 01 00 00 00 00 00 B7 [23:28:20]Write i2c OK [23:28:20]MH_I2C_Read... [23:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:28:20]Read from MH i2c: E2 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: E2 0E 00 [23:28:20]MH_I2C_Read... [23:28:20]Read from MH i2c: E2 0E 00 09 31 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B1 [23:28:20]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:28:20]wFMCommunicate OK [23:28:20]SAM_PROTO_GetShiftState done [23:28:20]FM_GetShiftState done [23:28:20]req_shift_opened done [23:28:20]requested_item shift.open_date is exist - process it [23:28:20]req_shift_open_date [23:28:20]req_shift_open_date done [23:28:20]produce_requested_data done [23:28:20]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162679,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:28:20]process_action_free close_receipt [23:28:20]json_value_free [23:28:20]json_value_free done [23:28:20]process_json_proto returns [23:28:20]Send response to host [23:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162679,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:28:20]free response buf [23:28:20]execute_script done [23:28:20]execute_script returns [23:28:20]free content buf [23:28:20]Sock 9.Close socket [23:28:20]Sock 9.Thread stoped [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:09]accept exits with 7 [23:31:09]New connection [23:31:09]New thread 3067366756 created [23:31:09]Thread 3067510116 joined [23:31:09]Waiting for new connection... [23:31:09] Sock 7.Parse request [23:31:09]Sock 7.Check first char [23:31:09]Sock 7.First char is OK [23:31:09]request: POST /json_proto HTTP/1.0 [23:31:09]Method: POST [23:31:09]URL: /json_proto [23:31:09]Method is POST - this is cgi request [23:31:09]url: /json_proto [23:31:09]query_string will be loaded in cgi processing [23:31:09]execute_cgi json_proto POST (null) [23:31:09]execute_cgi path=json_proto method=POST [23:31:09]POST find Content-Length [23:31:09]Host: 172.17.39.67:8080 [23:31:09]Content-Length: 688 [23:31:09]Content-Type: application/json [23:31:09] [23:31:09]POST finish read [23:31:09]Found Content-Length = 688 [23:31:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 17.910, "sum" : 1300.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:09]execute_script... [23:31: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)1319260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 17.910, "sum" : 1300.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:09]POST & json_proto [23:31:09]process_json_proto [23:31:09]json parsed OK: [23:31:09]protocol is kg_v1.0 [23:31:09]action value=close_receipt [23:31:09]process_action close_receipt [23:31:09]cmd_close_receipt [23:31:09]MH_GetDate [23:31:09]Write to MH i2c: F0 00 00 0A 31 2A [23:31:09]Write i2c OK [23:31:09]MH_I2C_Read... [23:31:09]Read from MH i2c: F0 [23:31:09]MH_I2C_Read... [23:31:09]Read from MH i2c: F0 09 00 [23:31:09]MH_I2C_Read... [23:31:09]Read from MH i2c: F0 09 00 0A 31 00 3F 0E 93 66 86 7C 92 66 73 [23:31:09]GetLastDocTimeStamp 1720913297 [23:31:09]current date 1720913471 [23:31:09]FM_GetShiftState [23:31:09]SAM_PROTO_GetShiftState [23:31:09]wFMCommunicate request_size=4 [23:31:09]MH_SAM_APDU [23:31:09]CAPDU: 80 13 01 00 [23:31:09]Write to MH i2c: E2 08 00 0B 31 80 13 01 00 00 00 00 00 B9 [23:31:09]Write i2c OK [23:31:09]MH_I2C_Read... [23:31:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:09]Read from MH i2c: E2 [23:31:09]MH_I2C_Read... [23:31:09]Read from MH i2c: E2 0E 00 [23:31:09]MH_I2C_Read... [23:31:09]Read from MH i2c: E2 0E 00 0B 31 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 B3 [23:31:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:31:09]wFMCommunicate OK [23:31:09]SAM_PROTO_GetShiftState done [23:31:09]FM_GetShiftState done [23:31:09]opened in 1720828979 [23:31:09]opened+sec_in_day 1720915379 [23:31:09]quantity*price = 130026 [23:31:09]sum+1 = 130028 [23:31:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.08 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 348 13.07.2024 23:31 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162680 ФПД: 39765501423161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233111&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162680&fm=39765501423161&tin=02508201610067®Number=0000000000090858&sum=130000 [23:31:10]StoreToDocumentArchive [23:31:10]shift 462 fd 162680 [23:31:10]save to /storage/0462/doc_00162680 [23:31:10]save last doc name /storage/0462/doc_00162680 to /storage/kkm_last_doc_name [23:31:10]save OK [23:31:10]Clear old archive folders... [23:31:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:31:10]tlvbuf is B6FDD750 [23:31:10]SAM_PROTO_ClearQueue [23:31:10]wFMCommunicate request_size=4 [23:31:10]MH_SAM_APDU [23:31:10]CAPDU: 80 09 00 00 [23:31:10]Write to MH i2c: E2 08 00 18 31 80 09 00 00 00 00 00 00 BB [23:31:10]Write i2c OK [23:31:10]MH_I2C_Read... [23:31:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:10]Read from MH i2c: E2 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 03 00 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 03 00 18 31 00 90 00 BD [23:31:10]RAPDU: 90 00 [23:31:10]wFMCommunicate OK [23:31:10]SAM_PROTO_ClearQueue done [23:31:10]KKMCreateOFDPacket [23:31:10]OFDProtocolAddRootSTLVToBuf [23:31:10]FM_MakeSignedData [23:31:10]FM_MakeSignedData [23:31:10]SAM_PROTO_SignData [23:31:10]wFMCommunicate request_size=4 [23:31:10]MH_SAM_APDU [23:31:10]CAPDU: 80 0D 01 02 [23:31:10]Write to MH i2c: E2 08 00 19 31 80 0D 01 02 00 00 00 00 C3 [23:31:10]Write i2c OK [23:31:10]MH_I2C_Read... [23:31:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:10]Read from MH i2c: E2 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 03 00 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 03 00 19 31 00 90 00 BE [23:31:10]RAPDU: 90 00 [23:31:10]wFMCommunicate OK [23:31:10]wFMCommunicate request_size=255 [23:31:10]MH_SAM_APDU [23:31:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 3F 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7B 02 00 35 04 06 00 [23:31:10]Write to MH i2c: E2 02 01 1A 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 3F 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7B 02 00 35 04 06 00 00 00 5B [23:31:10]Write i2c OK [23:31:10]MH_I2C_Read... [23:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:10]Read from MH i2c: E2 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 03 00 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 03 00 1A 31 00 90 00 BF [23:31:10]RAPDU: 90 00 [23:31:10]wFMCommunicate OK [23:31:10]wFMCommunicate request_size=11 [23:31:10]MH_SAM_APDU [23:31:10]CAPDU: 80 0D 02 02 06 24 2A A0 96 2E 39 [23:31:10]Write to MH i2c: E2 0E 00 1B 31 80 0D 02 02 06 00 24 2A A0 96 2E 39 00 00 BD [23:31:10]Write i2c OK [23:31:10]MH_I2C_Read... [23:31:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:10]Read from MH i2c: E2 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 03 00 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 03 00 1B 31 00 90 00 C0 [23:31:10]RAPDU: 90 00 [23:31:10]wFMCommunicate OK [23:31:10]wFMCommunicate request_size=4 [23:31:10]MH_SAM_APDU [23:31:10]CAPDU: 80 0D 03 02 [23:31:10]Write to MH i2c: E2 08 00 1C 31 80 0D 03 02 00 00 00 00 C8 [23:31:10]Write i2c OK [23:31:10]MH_I2C_Read... [23:31:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:10]Read from MH i2c: E2 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 0B 00 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 0B 00 1C 31 00 14 E3 57 F2 5A 25 9B 0D 90 00 30 [23:31:10]RAPDU: 14 E3 57 F2 5A 25 9B 0D 90 00 [23:31:10]wFMCommunicate OK [23:31:10]SAM_PROTO_SignData done [23:31:10]FM_MakeSignedData done [23:31:10]CreateOFDProtocolMessage [23:31:10]wFMCommunicate request_size=4 [23:31:10]MH_SAM_APDU [23:31:10]CAPDU: 80 11 00 00 [23:31:10]Write to MH i2c: E2 08 00 1D 31 80 11 00 00 00 00 00 00 C8 [23:31:10]Write i2c OK [23:31:10]MH_I2C_Read... [23:31:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:10]Read from MH i2c: E2 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 17 00 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: E2 17 00 1D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 28 [23:31:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:31:10]wFMCommunicate OK [23:31:10]CreateOFDProtocolMessage done [23:31:10]OFDSenderStorePacket 162680 [23:31:10]StoreOFDPacket docnum=162680 [23:31:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B7 CE 08 01 75 DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 3F 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7B 02 00 35 04 06 00 24 2A A0 96 2E 39 14 E3 57 F2 5A 25 9B 0D [23:31:10]CheckFolder [23:31:10]dirname=/storage/ofd_packets [23:31:10]CheckFolder done [23:31:10]ProducePacketName [23:31:10]name=ofd_packets/00162680 [23:31:10]NVStorageSaveData ofd_packets/00162680 [23:31:10]File name is /storage/ofd_packets/00162680 [23:31:10]Write 302 bytes [23:31:10]NVStorageSaveData done [23:31:10]OFDSenderStorePacket done [23:31:10]KKMCreateOFDPacket done [23:31:10]NVStorageSaveData kkm_last_timestamp [23:31:10]File name is /storage/kkm_last_timestamp [23:31:10]Write 4 bytes [23:31:10]NVStorageSaveData done [23:31:10]ExternCall_PrintAddStr [23:31:10]wPrintStart [23:31:10]Write to MH i2c: 01 00 00 1E 31 4F [23:31:10]Write i2c OK [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: 01 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: 01 07 00 [23:31:10]MH_I2C_Read... [23:31:10]Read from MH i2c: 01 07 00 1E 31 00 00 00 00 00 FF 0F 64 [23:31:10]RasterBufferAndPrint [23:31:10]line Счет N : (1)1319260 [23:31:10]line ИНН: 02508201610067 [23:31:10]line Контрольно-Кассовый Чек [23:31:10]line ПРОДАЖА [23:31:10]line ТРК (МРК, ГНК) : 21 [23:31:10]line Товар: 2710194210 [23:31:10]line ДТ(л)-К-5 [23:31:10]line 17.910 * 72.60 [23:31:10]line = 1300.27 [23:31:10]line НДС 12% НСП 1% [23:31:10]line > о реализуемом товаре [23:31:10]line ОКРУГЛЕНИЕ: -0.27 [23:31:10]line ИТОГО: 1300.00 [23:31:10]line Внесено: 1300.00 [23:31:10]line СДАЧА: 0.00 [23:31:10]line НСП 1% : 11.51 [23:31:10]line НДС 12% : 138.08 [23:31:10]line Наличными: 1300.00 [23:31:10]line Безнал.: 0.00 [23:31:10]line Место: АЗС № 140 "Партнер Нефть" [23:31:10]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:31:10]line СНО: Общий режим [23:31:10]line Чек 348 13.07.2024 23:31 [23:31:10]line Смена: 462 ФФД: 1.0 [23:31:10]line ЗНМ: 0300000129 [23:31:10]line РНМ: 0000000000090858 [23:31:10]line Версия ККМ: 001 [23:31:10]line ФМ: 0000000000874899 [23:31:10]line ФД: 162680 [23:31:10]line ФПД: 39765501423161 [23:31:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233111&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162680&fm=39765501423161&tin=02508201610067®Number=0000000000090858&sum=130000 [23:31:11]OFD Sender: Processing packet 162680 [packets to send 106, broken 105] [23:31:11]ProducePacketName [23:31:11]name=ofd_packets/00162680 [23:31:11]OFD Sender: To server: pG, [23:31:11]CommunicateWithHost lk.salyk.kg:30040 [23:31:11]ConnectInit lk.salyk.kg [23:31:11]written 0, free lines is 4095 [23:31:11]Connected sock=10 [23:31:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 B7 CE 08 01 75 DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 F6 45 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 EB FB 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 3F 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7B 02 00 35 04 06 00 24 2A A0 96 2E 39 14 E3 57 F2 5A 25 9B 0D [23:31:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 12 28 47 00 4D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 78 7B 02 00 F4 03 04 00 4D BA 92 66 B6 04 01 00 00 5D 01 03 67 43 FE 9A 30 [23:31:11]CommunicateWithHost err = 0 [23:31:11]CheckOFDResponse [23:31:11]1017 (14) - 77093643461234 [23:31:11]1041 (16) - 0000000000874899 [23:31:11]1040 (4) - 162680 [23:31:11]1012 (4) - 13.07.2024 17:33 [23:31:11]1206 (1) - 0 [23:31:11]OFD Sender: Remove packet 162680 [23:31:11]ProducePacketName [23:31:11]name=ofd_packets/00162680 [23:31:11]NVStorageDeleteData [23:31:11]Write to MH i2c: 01 00 00 49 31 7A [23:31:11]Write i2c OK [23:31:11]MH_I2C_Read... [23:31:11]Read from MH i2c: 01 [23:31:11]MH_I2C_Read... [23:31:11]Read from MH i2c: 01 07 00 [23:31:11]MH_I2C_Read... [23:31:11]Read from MH i2c: 01 07 00 49 31 00 00 00 00 00 DA 0C 67 [23:31:11]RasterBufferAndPrint [23:31:11]line [23:31:11]line [23:31:11]line [23:31:11]line [23:31:11]line [23:31:11]written 0, free lines is 3296 [23:31:11]MH_Cut [23:31:11]Write to MH i2c: D1 01 00 50 31 01 53 [23:31:11]Write i2c OK [23:31:11]MH_I2C_Read... [23:31:11]Read from MH i2c: D1 [23:31:11]MH_I2C_Read... [23:31:11]Read from MH i2c: D1 01 00 [23:31:11]MH_I2C_Read... [23:31:11]Read from MH i2c: D1 01 00 50 31 00 52 [23:31:11]Write to MH i2c: 01 00 00 51 31 82 [23:31:11]Write i2c OK [23:31:11]MH_I2C_Read... [23:31:11]OFD Sender: No OFD packet to send [23:31:12]*** Cut start [23:31:12]*** Purtial cut [23:31:12]*** Stage 1: CUTSNS_PIN = 1 [23:31:12]Read from MH i2c: 01 [23:31:12]MH_I2C_Read... [23:31:12]*** Stop cut motor [23:31:12]*** Cut end [23:31:12]Read from MH i2c: 01 07 00 [23:31:12]MH_I2C_Read... [23:31:12]Read from MH i2c: 01 07 00 51 31 00 00 00 00 00 FF 0F 97 [23:31:12]process_action close_receipt done [23:31:12]requested_data is exist [23:31:12]produce_requested_data [23:31:12]requested_item fm.sn is exist - process it [23:31:12]wFMCommunicate request_size=4 [23:31:12]MH_SAM_APDU [23:31:12]CAPDU: 80 11 00 00 [23:31:12]Write to MH i2c: E2 08 00 52 31 80 11 00 00 00 00 00 00 FD [23:31:12]Write i2c OK [23:31:12]MH_I2C_Read... [23:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:12]Read from MH i2c: E2 [23:31:12]MH_I2C_Read... [23:31:12]Read from MH i2c: E2 17 00 [23:31:12]MH_I2C_Read... [23:31:12]Read from MH i2c: E2 17 00 52 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 5D [23:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:31:12]wFMCommunicate OK [23:31:12]requested_item fd.num is exist - process it [23:31:12]SAM_PROTO_GetFieldsCounters [23:31:12]wFMCommunicate request_size=4 [23:31:12]MH_SAM_APDU [23:31:12]CAPDU: 80 13 00 00 [23:31:12]Write to MH i2c: E2 08 00 53 31 80 13 00 00 00 00 00 00 00 [23:31:12]Write i2c OK [23:31:12]MH_I2C_Read... [23:31:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:12]Read from MH i2c: E2 [23:31:12]MH_I2C_Read... [23:31:12]Read from MH i2c: E2 62 00 [23:31:12]MH_I2C_Read... [23:31:12]Read from MH i2c: E2 62 00 53 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 78 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [23:31:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 78 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:12]wFMCommunicate OK [23:31:12]SAM_PROTO_GetFieldsCounters done [23:31:12]requested_item shift.num is exist - process it [23:31:12]requested_item shift.opened is exist - process it [23:31:12]req_shift_opened [23:31:12]FM_GetShiftState [23:31:12]SAM_PROTO_GetShiftState [23:31:12]wFMCommunicate request_size=4 [23:31:12]MH_SAM_APDU [23:31:12]CAPDU: 80 13 01 00 [23:31:12]Write to MH i2c: E2 08 00 54 31 80 13 01 00 00 00 00 00 02 [23:31:12]Write i2c OK [23:31:12]MH_I2C_Read... [23:31:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:12]Read from MH i2c: E2 [23:31:12]MH_I2C_Read... [23:31:12]Read from MH i2c: E2 0E 00 [23:31:12]MH_I2C_Read... [23:31:12]Read from MH i2c: E2 0E 00 54 31 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FC [23:31:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:31:12]wFMCommunicate OK [23:31:12]SAM_PROTO_GetShiftState done [23:31:12]FM_GetShiftState done [23:31:12]req_shift_opened done [23:31:12]requested_item shift.open_date is exist - process it [23:31:12]req_shift_open_date [23:31:12]req_shift_open_date done [23:31:12]produce_requested_data done [23:31:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162680,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:31:12]process_action_free close_receipt [23:31:12]json_value_free [23:31:12]json_value_free done [23:31:12]process_json_proto returns [23:31:12]Send response to host [23:31:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162680,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:31:12]free response buf [23:31:12]execute_script done [23:31:12]execute_script returns [23:31:12]free content buf [23:31:12]Sock 7.Close socket [23:31:12]Sock 7.Thread stoped [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:40]accept exits with 9 [23:33:40]New connection [23:33:40]New thread 3067510116 created [23:33:40]Thread 3067366756 joined [23:33:40]Waiting for new connection... [23:33:40] Sock 9.Parse request [23:33:40]Sock 9.Check first char [23:33:40]Sock 9.First char is OK [23:33:40]request: POST /json_proto HTTP/1.0 [23:33:40]Method: POST [23:33:40]URL: /json_proto [23:33:40]Method is POST - this is cgi request [23:33:40]url: /json_proto [23:33:40]query_string will be loaded in cgi processing [23:33:40]execute_cgi json_proto POST (null) [23:33:40]execute_cgi path=json_proto method=POST [23:33:40]POST find Content-Length [23:33:40]Host: 172.17.39.67:8080 [23:33:40]Content-Length: 671 [23:33:40]Content-Type: application/json [23:33:40] [23:33:40]POST finish read [23:33:40]Found Content-Length = 671 [23:33:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:40]execute_script... [23:33: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)1319261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 7.430, "sum" : 500.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:40]POST & json_proto [23:33:40]process_json_proto [23:33:40]json parsed OK: [23:33:40]protocol is kg_v1.0 [23:33:40]action value=close_receipt [23:33:40]process_action close_receipt [23:33:40]cmd_close_receipt [23:33:40]MH_GetDate [23:33:40]Write to MH i2c: F0 00 00 55 31 75 [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: F0 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: F0 09 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: F0 09 00 55 31 00 D6 0E 93 66 86 7C 92 66 55 [23:33:40]GetLastDocTimeStamp 1720913471 [23:33:40]current date 1720913622 [23:33:40]FM_GetShiftState [23:33:40]SAM_PROTO_GetShiftState [23:33:40]wFMCommunicate request_size=4 [23:33:40]MH_SAM_APDU [23:33:40]CAPDU: 80 13 01 00 [23:33:40]Write to MH i2c: E2 08 00 56 31 80 13 01 00 00 00 00 00 04 [23:33:40]Write i2c OK [23:33:40]MH_I2C_Read... [23:33:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:40]Read from MH i2c: E2 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 0E 00 [23:33:40]MH_I2C_Read... [23:33:40]Read from MH i2c: E2 0E 00 56 31 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 FE [23:33:40]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:33:40]wFMCommunicate OK [23:33:40]SAM_PROTO_GetShiftState done [23:33:40]FM_GetShiftState done [23:33:40]opened in 1720828979 [23:33:40]opened+sec_in_day 1720915379 [23:33:40]quantity*price = 50003 [23:33:40]sum+1 = 50005 [23:33:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 349 13.07.2024 23:33 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162681 ФПД: 52069638017351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233342&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162681&fm=52069638017351&tin=02508201610067®Number=0000000000090858&sum=50000 [23:33:41]StoreToDocumentArchive [23:33:41]shift 462 fd 162681 [23:33:41]save to /storage/0462/doc_00162681 [23:33:41]save last doc name /storage/0462/doc_00162681 to /storage/kkm_last_doc_name [23:33:41]save OK [23:33:41]Clear old archive folders... [23:33:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:33:41]tlvbuf is B6F49860 [23:33:41]SAM_PROTO_ClearQueue [23:33:41]wFMCommunicate request_size=4 [23:33:41]MH_SAM_APDU [23:33:41]CAPDU: 80 09 00 00 [23:33:41]Write to MH i2c: E2 08 00 63 31 80 09 00 00 00 00 00 00 06 [23:33:41]Write i2c OK [23:33:41]MH_I2C_Read... [23:33:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:33:41]Read from MH i2c: E2 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 03 00 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 03 00 63 31 00 90 00 08 [23:33:41]RAPDU: 90 00 [23:33:41]wFMCommunicate OK [23:33:41]SAM_PROTO_ClearQueue done [23:33:41]KKMCreateOFDPacket [23:33:41]OFDProtocolAddRootSTLVToBuf [23:33:41]FM_MakeSignedData [23:33:41]FM_MakeSignedData [23:33:41]SAM_PROTO_SignData [23:33:41]wFMCommunicate request_size=4 [23:33:41]MH_SAM_APDU [23:33:41]CAPDU: 80 0D 01 02 [23:33:41]Write to MH i2c: E2 08 00 64 31 80 0D 01 02 00 00 00 00 0E [23:33:41]Write i2c OK [23:33:41]MH_I2C_Read... [23:33:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:33:41]Read from MH i2c: E2 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 03 00 [23:33:41]MH_I2C_Read... [23:33:41]Read from MH i2c: E2 03 00 64 31 00 90 00 09 [23:33:41]RAPDU: 90 00 [23:33:41]wFMCommunicate OK [23:33:41]wFMCommunicate request_size=255 [23:33:41]MH_SAM_APDU [23:33:41]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 D6 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7B 02 00 35 04 06 00 [23:33:41]Write to MH i2c: E2 02 01 65 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 D6 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7B 02 00 35 04 06 00 00 00 A5 [23:33:41]Write i2c OK [23:33:41]MH_I2C_Read... [23:33:42]OFD Sender: No OFD packet to send [23:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:42]Read from MH i2c: E2 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 03 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 03 00 65 31 00 90 00 0A [23:33:42]RAPDU: 90 00 [23:33:42]wFMCommunicate OK [23:33:42]wFMCommunicate request_size=11 [23:33:42]MH_SAM_APDU [23:33:42]CAPDU: 80 0D 02 02 06 2F 5B 68 47 11 47 [23:33:42]Write to MH i2c: E2 0E 00 66 31 80 0D 02 02 06 00 2F 5B 68 47 11 47 00 00 AE [23:33:42]Write i2c OK [23:33:42]MH_I2C_Read... [23:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:33:42]Read from MH i2c: E2 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 03 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 03 00 66 31 00 90 00 0B [23:33:42]RAPDU: 90 00 [23:33:42]wFMCommunicate OK [23:33:42]wFMCommunicate request_size=4 [23:33:42]MH_SAM_APDU [23:33:42]CAPDU: 80 0D 03 02 [23:33:42]Write to MH i2c: E2 08 00 67 31 80 0D 03 02 00 00 00 00 13 [23:33:42]Write i2c OK [23:33:42]MH_I2C_Read... [23:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:33:42]Read from MH i2c: E2 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 0B 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 0B 00 67 31 00 B8 8E BA 05 F5 12 BE 1D 90 00 FB [23:33:42]RAPDU: B8 8E BA 05 F5 12 BE 1D 90 00 [23:33:42]wFMCommunicate OK [23:33:42]SAM_PROTO_SignData done [23:33:42]FM_MakeSignedData done [23:33:42]CreateOFDProtocolMessage [23:33:42]wFMCommunicate request_size=4 [23:33:42]MH_SAM_APDU [23:33:42]CAPDU: 80 11 00 00 [23:33:42]Write to MH i2c: E2 08 00 68 31 80 11 00 00 00 00 00 00 13 [23:33:42]Write i2c OK [23:33:42]MH_I2C_Read... [23:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:42]Read from MH i2c: E2 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 17 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: E2 17 00 68 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 73 [23:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:33:42]wFMCommunicate OK [23:33:42]CreateOFDProtocolMessage done [23:33:42]OFDSenderStorePacket 162681 [23:33:42]StoreOFDPacket docnum=162681 [23:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 11 F8 08 01 A7 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 D6 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7B 02 00 35 04 06 00 2F 5B 68 47 11 47 B8 8E BA 05 F5 12 BE 1D [23:33:42]CheckFolder [23:33:42]dirname=/storage/ofd_packets [23:33:42]CheckFolder done [23:33:42]ProducePacketName [23:33:42]name=ofd_packets/00162681 [23:33:42]NVStorageSaveData ofd_packets/00162681 [23:33:42]File name is /storage/ofd_packets/00162681 [23:33:42]Write 302 bytes [23:33:42]NVStorageSaveData done [23:33:42]OFDSenderStorePacket done [23:33:42]KKMCreateOFDPacket done [23:33:42]NVStorageSaveData kkm_last_timestamp [23:33:42]File name is /storage/kkm_last_timestamp [23:33:42]Write 4 bytes [23:33:42]NVStorageSaveData done [23:33:42]ExternCall_PrintAddStr [23:33:42]wPrintStart [23:33:42]Write to MH i2c: 01 00 00 69 31 9A [23:33:42]Write i2c OK [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: 01 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: 01 07 00 [23:33:42]MH_I2C_Read... [23:33:42]Read from MH i2c: 01 07 00 69 31 00 00 00 00 00 FF 0F AF [23:33:42]RasterBufferAndPrint [23:33:42]line Счет N : (1)1319261 [23:33:42]line ИНН: 02508201610067 [23:33:42]line Контрольно-Кассовый Чек [23:33:42]line ПРОДАЖА [23:33:42]line ТРК (МРК, ГНК) : 42 [23:33:42]line Товар: 2710124130 [23:33:42]line Super-92-К-5 [23:33:42]line 7.430 * 67.30 [23:33:42]line = 500.04 [23:33:42]line НДС 12% НСП 1% [23:33:42]line > о реализуемом товаре [23:33:42]line ОКРУГЛЕНИЕ: -0.04 [23:33:42]line ИТОГО: 500.00 [23:33:42]line Внесено: 500.00 [23:33:42]line СДАЧА: 0.00 [23:33:42]line НСП 1% : 4.42 [23:33:42]line НДС 12% : 53.10 [23:33:42]line Наличными: 500.00 [23:33:42]line Безнал.: 0.00 [23:33:42]line Место: АЗС № 140 "Партнер Нефть" [23:33:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:33:42]line СНО: Общий режим [23:33:42]line Чек 349 13.07.2024 23:33 [23:33:42]line Смена: 462 ФФД: 1.0 [23:33:42]line ЗНМ: 0300000129 [23:33:42]line РНМ: 0000000000090858 [23:33:42]line Версия ККМ: 001 [23:33:42]line ФМ: 0000000000874899 [23:33:42]line ФД: 162681 [23:33:42]line ФПД: 52069638017351 [23:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233342&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162681&fm=52069638017351&tin=02508201610067®Number=0000000000090858&sum=50000 [23:33:42]OFD Sender: Processing packet 162681 [packets to send 106, broken 105] [23:33:42]ProducePacketName [23:33:42]name=ofd_packets/00162681 [23:33:42]OFD Sender: To server: pG, [23:33:42]CommunicateWithHost lk.salyk.kg:30040 [23:33:42]ConnectInit lk.salyk.kg [23:33:42]written 0, free lines is 4095 [23:33:42]Connected sock=10 [23:33:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 11 F8 08 01 A7 4D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 1D 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 54 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 01 00 00 F4 03 04 00 D6 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7B 02 00 35 04 06 00 2F 5B 68 47 11 47 B8 8E BA 05 F5 12 BE 1D [23:33:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 81 47 47 00 65 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 79 7B 02 00 F4 03 04 00 E4 BA 92 66 B6 04 01 00 00 74 1E A1 81 E8 92 A6 79 [23:33:42]CommunicateWithHost err = 0 [23:33:42]CheckOFDResponse [23:33:42]1017 (14) - 77093643461234 [23:33:42]1041 (16) - 0000000000874899 [23:33:42]1040 (4) - 162681 [23:33:42]1012 (4) - 13.07.2024 17:35 [23:33:42]1206 (1) - 0 [23:33:42]OFD Sender: Remove packet 162681 [23:33:42]ProducePacketName [23:33:42]name=ofd_packets/00162681 [23:33:42]NVStorageDeleteData [23:33:43]Write to MH i2c: 01 00 00 94 31 C5 [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: 01 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: 01 07 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: 01 07 00 94 31 00 00 00 00 00 DF 0C B7 [23:33:43]RasterBufferAndPrint [23:33:43]line [23:33:43]line [23:33:43]line [23:33:43]line [23:33:43]line [23:33:43]written 0, free lines is 3304 [23:33:43]MH_Cut [23:33:43]Write to MH i2c: D1 01 00 9B 31 01 9E [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: D1 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: D1 01 00 [23:33:43]MH_I2C_Read... [23:33:43]Read from MH i2c: D1 01 00 9B 31 00 9D [23:33:43]Write to MH i2c: 01 00 00 9C 31 CD [23:33:43]Write i2c OK [23:33:43]MH_I2C_Read... [23:33:43]OFD Sender: No OFD packet to send [23:33:43]*** Cut start [23:33:43]*** Purtial cut [23:33:43]*** CUTSNS_PIN = 0 [23:33:44]*** Stage 1: CUTSNS_PIN = 1 [23:33:45]Read from MH i2c: 01 [23:33:45]MH_I2C_Read... [23:33:45]*** Stop cut motor [23:33:45]*** Cut end [23:33:45]Read from MH i2c: 01 07 00 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: 01 07 00 9C 31 00 00 00 00 00 FF 0F E2 [23:33:45]process_action close_receipt done [23:33:45]requested_data is exist [23:33:45]produce_requested_data [23:33:45]requested_item fm.sn is exist - process it [23:33:45]wFMCommunicate request_size=4 [23:33:45]MH_SAM_APDU [23:33:45]CAPDU: 80 11 00 00 [23:33:45]Write to MH i2c: E2 08 00 9D 31 80 11 00 00 00 00 00 00 48 [23:33:45]Write i2c OK [23:33:45]MH_I2C_Read... [23:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:33:45]Read from MH i2c: E2 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 17 00 [23:33:45]MH_I2C_Read... [23:33:45]Read from MH i2c: E2 17 00 9D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A8 [23:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:33:45]wFMCommunicate OK [23:33:45]requested_item fd.num is exist - process it [23:33:45]SAM_PROTO_GetFieldsCounters [23:33:45]wFMCommunicate request_size=4 [23:33:45]MH_SAM_APDU [23:33:45]CAPDU: 80 13 00 00 [23:33:45]Write to MH i2c: E2 08 00 9E 31 80 13 00 00 00 00 00 00 4B [23:33:45]Write i2c OK [23:33:45]MH_I2C_Read... [23:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:33:46]Read from MH i2c: E2 [23:33:46]MH_I2C_Read... [23:33:46]Read from MH i2c: E2 62 00 [23:33:46]MH_I2C_Read... [23:33:46]Read from MH i2c: E2 62 00 9E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 79 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [23:33:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 79 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:33:46]wFMCommunicate OK [23:33:46]SAM_PROTO_GetFieldsCounters done [23:33:46]requested_item shift.num is exist - process it [23:33:46]requested_item shift.opened is exist - process it [23:33:46]req_shift_opened [23:33:46]FM_GetShiftState [23:33:46]SAM_PROTO_GetShiftState [23:33:46]wFMCommunicate request_size=4 [23:33:46]MH_SAM_APDU [23:33:46]CAPDU: 80 13 01 00 [23:33:46]Write to MH i2c: E2 08 00 9F 31 80 13 01 00 00 00 00 00 4D [23:33:46]Write i2c OK [23:33:46]MH_I2C_Read... [23:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:33:46]Read from MH i2c: E2 [23:33:46]MH_I2C_Read... [23:33:46]Read from MH i2c: E2 0E 00 [23:33:46]MH_I2C_Read... [23:33:46]Read from MH i2c: E2 0E 00 9F 31 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 47 [23:33:46]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:33:46]wFMCommunicate OK [23:33:46]SAM_PROTO_GetShiftState done [23:33:46]FM_GetShiftState done [23:33:46]req_shift_opened done [23:33:46]requested_item shift.open_date is exist - process it [23:33:46]req_shift_open_date [23:33:46]req_shift_open_date done [23:33:46]produce_requested_data done [23:33:46]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162681,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:33:46]process_action_free close_receipt [23:33:46]json_value_free [23:33:46]json_value_free done [23:33:46]process_json_proto returns [23:33:46]Send response to host [23:33:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162681,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:33:46]free response buf [23:33:46]execute_script done [23:33:46]execute_script returns [23:33:46]free content buf [23:33:46]Sock 9.Close socket [23:33:46]Sock 9.Thread stoped [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:33:59]accept exits with 7 [23:33:59]New connection [23:33:59]New thread 3067366756 created [23:33:59]Thread 3067510116 joined [23:33:59]Waiting for new connection... [23:33:59] Sock 7.Parse request [23:33:59]Sock 7.Check first char [23:33:59]Sock 7.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.39.67:8080 [23:33:59]Content-Length: 801 [23:33:59]Content-Type: application/json [23:33:59] [23:33:59]POST finish read [23:33:59]Found Content-Length = 801 [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)1319262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.510, "sum" : 299.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" : 299.01 } ] } , "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)1319262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.510, "sum" : 299.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" : 299.01 } ] } , "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 A0 31 C0 [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 A0 31 00 E9 0E 93 66 86 7C 92 66 B3 [23:33:59]GetLastDocTimeStamp 1720913622 [23:33:59]current date 1720913641 [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 A1 31 80 13 01 00 00 00 00 00 4F [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 A1 31 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 49 [23:33:59]RAPDU: 09 00 01 33 C4 91 66 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 1720828979 [23:33:59]opened+sec_in_day 1720915379 [23:33:59]quantity*price = 29901 [23:33:59]sum+1 = 29902 [23:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 299.01 НСП 1% : 2.65 НДС 12% : 31.75 Наличными: 0.00 Безнал.: 299.01 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 350 13.07.2024 23:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162682 ФПД: 279021229575109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233401&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162682&fm=279021229575109&tin=02508201610067®Number=0000000000090858&sum=29901 [23:34:00]StoreToDocumentArchive [23:34:00]shift 462 fd 162682 [23:34:00]save to /storage/0462/doc_00162682 [23:34:00]save last doc name /storage/0462/doc_00162682 to /storage/kkm_last_doc_name [23:34:00]save OK [23:34:00]Clear old archive folders... [23:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:00]tlvbuf is 006B98A0 [23:34:00]SAM_PROTO_ClearQueue [23:34:00]wFMCommunicate request_size=4 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 09 00 00 [23:34:00]Write to MH i2c: E2 08 00 AE 31 80 09 00 00 00 00 00 00 51 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 AE 31 00 90 00 53 [23:34:00]RAPDU: 90 00 [23:34:00]wFMCommunicate OK [23:34:00]SAM_PROTO_ClearQueue done [23:34:00]KKMCreateOFDPacket [23:34:00]OFDProtocolAddRootSTLVToBuf [23:34:00]FM_MakeSignedData [23:34:00]FM_MakeSignedData [23:34:00]SAM_PROTO_SignData [23:34:00]wFMCommunicate request_size=4 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 0D 01 02 [23:34:00]Write to MH i2c: E2 08 00 AF 31 80 0D 01 02 00 00 00 00 59 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 AF 31 00 90 00 54 [23:34:00]RAPDU: 90 00 [23:34:00]wFMCommunicate OK [23:34:00]wFMCommunicate request_size=255 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CD 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 E9 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7B 02 00 35 04 06 00 FD [23:34:00]Write to MH i2c: E2 02 01 B0 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CD 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 E9 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7B 02 00 35 04 06 00 FD 00 00 75 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 B0 31 00 90 00 55 [23:34:00]RAPDU: 90 00 [23:34:00]wFMCommunicate OK [23:34:00]wFMCommunicate request_size=10 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 0D 02 02 05 C4 B1 46 0B C5 [23:34:00]Write to MH i2c: E2 0D 00 B1 31 80 0D 02 02 05 00 C4 B1 46 0B C5 00 00 F1 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 03 00 B1 31 00 90 00 56 [23:34:00]RAPDU: 90 00 [23:34:00]wFMCommunicate OK [23:34:00]wFMCommunicate request_size=4 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 0D 03 02 [23:34:00]Write to MH i2c: E2 08 00 B2 31 80 0D 03 02 00 00 00 00 5E [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 0B 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 0B 00 B2 31 00 5F 81 51 36 44 06 89 72 90 00 0B [23:34:00]RAPDU: 5F 81 51 36 44 06 89 72 90 00 [23:34:00]wFMCommunicate OK [23:34:00]SAM_PROTO_SignData done [23:34:00]FM_MakeSignedData done [23:34:00]CreateOFDProtocolMessage [23:34:00]wFMCommunicate request_size=4 [23:34:00]MH_SAM_APDU [23:34:00]CAPDU: 80 11 00 00 [23:34:00]Write to MH i2c: E2 08 00 B3 31 80 11 00 00 00 00 00 00 5E [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:00]Read from MH i2c: E2 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 17 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: E2 17 00 B3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BE [23:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:34:00]wFMCommunicate OK [23:34:00]CreateOFDProtocolMessage done [23:34:00]OFDSenderStorePacket 162682 [23:34:00]StoreOFDPacket docnum=162682 [23:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 80 5B 07 01 FE EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CD 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 E9 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7B 02 00 35 04 06 00 FD C4 B1 46 0B C5 5F 81 51 36 44 06 89 72 [23:34:00]CheckFolder [23:34:00]dirname=/storage/ofd_packets [23:34:00]CheckFolder done [23:34:00]ProducePacketName [23:34:00]name=ofd_packets/00162682 [23:34:00]NVStorageSaveData ofd_packets/00162682 [23:34:00]File name is /storage/ofd_packets/00162682 [23:34:00]Write 301 bytes [23:34:00]NVStorageSaveData done [23:34:00]OFDSenderStorePacket done [23:34:00]KKMCreateOFDPacket done [23:34:00]NVStorageSaveData kkm_last_timestamp [23:34:00]File name is /storage/kkm_last_timestamp [23:34:00]Write 4 bytes [23:34:00]NVStorageSaveData done [23:34:00]ExternCall_PrintAddStr [23:34:00]wPrintStart [23:34:00]Write to MH i2c: 01 00 00 B4 31 E5 [23:34:00]Write i2c OK [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: 01 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: 01 07 00 [23:34:00]MH_I2C_Read... [23:34:00]Read from MH i2c: 01 07 00 B4 31 00 00 00 00 00 FF 0F FA [23:34:00]RasterBufferAndPrint [23:34:00]line Счет N : (1)1319262 [23:34:00]line ИНН: 02508201610067 [23:34:00]line Контрольно-Кассовый Чек [23:34:00]line ПРОДАЖА [23:34:00]line ТРК (МРК, ГНК) : 53 [23:34:00]line Товар: 2710124130 [23:34:00]line Аи-92-К-5 [23:34:00]line 4.510 * 66.30 [23:34:00]line = 299.01 [23:34:00]line НДС 12% НСП 1% [23:34:00]line > о реализуемом товаре [23:34:00]line ИТОГО: 299.01 [23:34:00]line НСП 1% : 2.65 [23:34:00]line НДС 12% : 31.75 [23:34:00]line Наличными: 0.00 [23:34:00]line Безнал.: 299.01 [23:34:00]line Место: АЗС № 140 "Партнер Нефть" [23:34:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:34:00]line СНО: Общий режим [23:34:00]line Чек 350 13.07.2024 23:34 [23:34:00]line Смена: 462 ФФД: 1.0 [23:34:00]line ЗНМ: 0300000129 [23:34:00]line РНМ: 0000000000090858 [23:34:00]line Версия ККМ: 001 [23:34:00]line Платежная система: O! деньги [23:34:00]line ФМ: 0000000000874899 [23:34:00]line ФД: 162682 [23:34:00]line ФПД: 279021229575109 [23:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233401&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162682&fm=279021229575109&tin=02508201610067®Number=0000000000090858&sum=29901 [23:34:01]written 0, free lines is 4095 [23:34:01]OFD Sender: Processing packet 162682 [packets to send 106, broken 105] [23:34:01]ProducePacketName [23:34:01]name=ofd_packets/00162682 [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]Connected sock=10 [23:34:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 80 5B 07 01 FE EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CD 74 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CD 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CD 74 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 E9 0E 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7A 7B 02 00 35 04 06 00 FD C4 B1 46 0B C5 5F 81 51 36 44 06 89 72 [23:34:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 71 1E 47 00 D0 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 34 38 39 39 10 04 04 00 7A 7B 02 00 F4 03 04 00 F7 BA 92 66 B6 04 01 00 00 2B 07 E1 EB C7 A8 F0 97 [23:34:01]CommunicateWithHost err = 0 [23:34:01]CheckOFDResponse [23:34:01]1017 (14) - 77093643461234 [23:34:01]1041 (16) - 0000000000874899 [23:34:01]1040 (4) - 162682 [23:34:01]1012 (4) - 13.07.2024 17:35 [23:34:01]1206 (1) - 0 [23:34:01]OFD Sender: Remove packet 162682 [23:34:01]ProducePacketName [23:34:01]name=ofd_packets/00162682 [23:34:01]NVStorageDeleteData [23:34:01]Write to MH i2c: 01 00 00 DE 31 0F [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 DE 31 00 00 00 00 00 F6 0C 18 [23:34:01]RasterBufferAndPrint [23:34:01]line [23:34:01]line [23:34:01]line [23:34:01]line [23:34:01]line [23:34:01]written 0, free lines is 3324 [23:34:01]MH_Cut [23:34:01]Write to MH i2c: D1 01 00 E5 31 01 E8 [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: D1 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: D1 01 00 [23:34:01]MH_I2C_Read... [23:34:01]Read from MH i2c: D1 01 00 E5 31 00 E7 [23:34:01]Write to MH i2c: 01 00 00 E6 31 17 [23:34:01]Write i2c OK [23:34:01]MH_I2C_Read... [23:34:01]OFD Sender: No OFD packet to send [23:34:02]*** Cut start [23:34:02]*** Purtial cut [23:34:02]*** Stage 1: CUTSNS_PIN = 1 [23:34:02]Read from MH i2c: 01 [23:34:02]MH_I2C_Read... [23:34:02]*** Stop cut motor [23:34:02]*** Cut end [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 E6 31 00 00 00 00 00 FF 0F 2C [23:34:02]process_action close_receipt done [23:34:02]requested_data is exist [23:34:02]produce_requested_data [23:34:02]requested_item fm.sn is exist - process it [23:34:02]wFMCommunicate request_size=4 [23:34:02]MH_SAM_APDU [23:34:02]CAPDU: 80 11 00 00 [23:34:02]Write to MH i2c: E2 08 00 E7 31 80 11 00 00 00 00 00 00 92 [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:02]Read from MH i2c: E2 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: E2 17 00 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: E2 17 00 E7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 F2 [23:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:34:02]wFMCommunicate OK [23:34:02]requested_item fd.num is exist - process it [23:34:02]SAM_PROTO_GetFieldsCounters [23:34:02]wFMCommunicate request_size=4 [23:34:02]MH_SAM_APDU [23:34:02]CAPDU: 80 13 00 00 [23:34:02]Write to MH i2c: E2 08 00 E8 31 80 13 00 00 00 00 00 00 95 [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:02]Read from MH i2c: E2 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: E2 62 00 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: E2 62 00 E8 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 AB [23:34:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7A 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:02]wFMCommunicate OK [23:34:02]SAM_PROTO_GetFieldsCounters done [23:34:02]requested_item shift.num is exist - process it [23:34:02]requested_item shift.opened is exist - process it [23:34:02]req_shift_opened [23:34:02]FM_GetShiftState [23:34:02]SAM_PROTO_GetShiftState [23:34:02]wFMCommunicate request_size=4 [23:34:02]MH_SAM_APDU [23:34:02]CAPDU: 80 13 01 00 [23:34:02]Write to MH i2c: E2 08 00 E9 31 80 13 01 00 00 00 00 00 97 [23:34:02]Write i2c OK [23:34:02]MH_I2C_Read... [23:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:02]Read from MH i2c: E2 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: E2 0E 00 [23:34:02]MH_I2C_Read... [23:34:02]Read from MH i2c: E2 0E 00 E9 31 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 91 [23:34:02]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:34:02]wFMCommunicate OK [23:34:02]SAM_PROTO_GetShiftState done [23:34:02]FM_GetShiftState done [23:34:02]req_shift_opened done [23:34:02]requested_item shift.open_date is exist - process it [23:34:02]req_shift_open_date [23:34:02]req_shift_open_date done [23:34:02]produce_requested_data done [23:34:02]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162682,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:34:02]process_action_free close_receipt [23:34:02]json_value_free [23:34:02]json_value_free done [23:34:02]process_json_proto returns [23:34:02]Send response to host [23:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162682,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:34:02]free response buf [23:34:02]execute_script done [23:34:02]execute_script returns [23:34:02]free content buf [23:34:02]Sock 7.Close socket [23:34:02]Sock 7.Thread stoped [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]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:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:07]accept exits with 9 [23:39:07]New connection [23:39:07]New thread 3067510116 created [23:39:07]Thread 3067366756 joined [23:39:07]Waiting for new connection... [23:39:07] Sock 9.Parse request [23:39:07]Sock 9.Check first char [23:39:07]Sock 9.First char is OK [23:39:07]request: POST /json_proto HTTP/1.0 [23:39:07]Method: POST [23:39:07]URL: /json_proto [23:39:07]Method is POST - this is cgi request [23:39:07]url: /json_proto [23:39:07]query_string will be loaded in cgi processing [23:39:07]execute_cgi json_proto POST (null) [23:39:07]execute_cgi path=json_proto method=POST [23:39:07]POST find Content-Length [23:39:07]Host: 172.17.39.67:8080 [23:39:07]Content-Length: 671 [23:39:07]Content-Type: application/json [23:39:07] [23:39:07]POST finish read [23:39:07]Found Content-Length = 671 [23:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 5.060, "sum" : 340.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:07]execute_script... [23:39: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)1319263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 5.060, "sum" : 340.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:39:07]POST & json_proto [23:39:07]process_json_proto [23:39:07]json parsed OK: [23:39:07]protocol is kg_v1.0 [23:39:07]action value=close_receipt [23:39:07]process_action close_receipt [23:39:07]cmd_close_receipt [23:39:07]MH_GetDate [23:39:07]Write to MH i2c: F0 00 00 EA 31 0A [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: F0 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: F0 09 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: F0 09 00 EA 31 00 1D 10 93 66 86 7C 92 66 33 [23:39:07]GetLastDocTimeStamp 1720913641 [23:39:07]current date 1720913949 [23:39:07]FM_GetShiftState [23:39:07]SAM_PROTO_GetShiftState [23:39:07]wFMCommunicate request_size=4 [23:39:07]MH_SAM_APDU [23:39:07]CAPDU: 80 13 01 00 [23:39:07]Write to MH i2c: E2 08 00 EB 31 80 13 01 00 00 00 00 00 99 [23:39:07]Write i2c OK [23:39:07]MH_I2C_Read... [23:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:07]Read from MH i2c: E2 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: E2 0E 00 [23:39:07]MH_I2C_Read... [23:39:07]Read from MH i2c: E2 0E 00 EB 31 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 93 [23:39:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:39:07]wFMCommunicate OK [23:39:07]SAM_PROTO_GetShiftState done [23:39:07]FM_GetShiftState done [23:39:07]opened in 1720828979 [23:39:07]opened+sec_in_day 1720915379 [23:39:07]quantity*price = 34053 [23:39:07]sum+1 = 34055 [23:39:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 351 13.07.2024 23:39 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162683 ФПД: 186503002441147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233909&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162683&fm=186503002441147&tin=02508201610067®Number=0000000000090858&sum=34000 [23:39:08]StoreToDocumentArchive [23:39:08]shift 462 fd 162683 [23:39:08]save to /storage/0462/doc_00162683 [23:39:08]save last doc name /storage/0462/doc_00162683 to /storage/kkm_last_doc_name [23:39:08]save OK [23:39:08]Clear old archive folders... [23:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:39:08]tlvbuf is 006B0A10 [23:39:08]SAM_PROTO_ClearQueue [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 09 00 00 [23:39:08]Write to MH i2c: E2 08 00 F8 31 80 09 00 00 00 00 00 00 9B [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 F8 31 00 90 00 9D [23:39:08]RAPDU: 90 00 [23:39:08]wFMCommunicate OK [23:39:08]SAM_PROTO_ClearQueue done [23:39:08]KKMCreateOFDPacket [23:39:08]OFDProtocolAddRootSTLVToBuf [23:39:08]FM_MakeSignedData [23:39:08]FM_MakeSignedData [23:39:08]SAM_PROTO_SignData [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 0D 01 02 [23:39:08]Write to MH i2c: E2 08 00 F9 31 80 0D 01 02 00 00 00 00 A3 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 F9 31 00 90 00 9E [23:39:08]RAPDU: 90 00 [23:39:08]wFMCommunicate OK [23:39:08]wFMCommunicate request_size=255 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 13 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 06 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 1D 10 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7B 02 00 35 04 06 00 [23:39:08]Write to MH i2c: E2 02 01 FA 31 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 13 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 06 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 1D 10 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7B 02 00 35 04 06 00 00 00 00 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 FA 31 00 90 00 9F [23:39:08]RAPDU: 90 00 [23:39:08]wFMCommunicate OK [23:39:08]wFMCommunicate request_size=11 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 0D 02 02 06 A9 9F 9D 35 C5 BB [23:39:08]Write to MH i2c: E2 0E 00 FB 31 80 0D 02 02 06 00 A9 9F 9D 35 C5 BB 00 00 4C [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 03 00 FB 31 00 90 00 A0 [23:39:08]RAPDU: 90 00 [23:39:08]wFMCommunicate OK [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 0D 03 02 [23:39:08]Write to MH i2c: E2 08 00 FC 31 80 0D 03 02 00 00 00 00 A8 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:39:08]Read from MH i2c: E2 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 0B 00 [23:39:08]MH_I2C_Read... [23:39:08]Read from MH i2c: E2 0B 00 FC 31 00 27 6D 7E D1 CB AF B5 A1 90 00 5C [23:39:08]RAPDU: 27 6D 7E D1 CB AF B5 A1 90 00 [23:39:08]wFMCommunicate OK [23:39:08]SAM_PROTO_SignData done [23:39:08]FM_MakeSignedData done [23:39:08]CreateOFDProtocolMessage [23:39:08]wFMCommunicate request_size=4 [23:39:08]MH_SAM_APDU [23:39:08]CAPDU: 80 11 00 00 [23:39:08]Write to MH i2c: E2 08 00 FD 31 80 11 00 00 00 00 00 00 A8 [23:39:08]Write i2c OK [23:39:08]MH_I2C_Read... [23:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:09]Read from MH i2c: E2 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: E2 17 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: E2 17 00 FD 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 08 [23:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:39:09]wFMCommunicate OK [23:39:09]CreateOFDProtocolMessage done [23:39:09]OFDSenderStorePacket 162683 [23:39:09]StoreOFDPacket docnum=162683 [23:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 ED D9 08 01 6A 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 13 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 06 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 1D 10 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7B 02 00 35 04 06 00 A9 9F 9D 35 C5 BB 27 6D 7E D1 CB AF B5 A1 [23:39:09]CheckFolder [23:39:09]dirname=/storage/ofd_packets [23:39:09]CheckFolder done [23:39:09]ProducePacketName [23:39:09]name=ofd_packets/00162683 [23:39:09]NVStorageSaveData ofd_packets/00162683 [23:39:09]File name is /storage/ofd_packets/00162683 [23:39:09]Write 302 bytes [23:39:09]NVStorageSaveData done [23:39:09]OFDSenderStorePacket done [23:39:09]KKMCreateOFDPacket done [23:39:09]NVStorageSaveData kkm_last_timestamp [23:39:09]File name is /storage/kkm_last_timestamp [23:39:09]Write 4 bytes [23:39:09]NVStorageSaveData done [23:39:09]ExternCall_PrintAddStr [23:39:09]wPrintStart [23:39:09]Write to MH i2c: 01 00 00 FE 31 2F [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 07 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 FF 0F 44 [23:39:09]RasterBufferAndPrint [23:39:09]line Счет N : (1)1319263 [23:39:09]line ИНН: 02508201610067 [23:39:09]line Контрольно-Кассовый Чек [23:39:09]line ПРОДАЖА [23:39:09]line ТРК (МРК, ГНК) : 32 [23:39:09]line Товар: 2710124130 [23:39:09]line Super-92-К-5 [23:39:09]line 5.060 * 67.30 [23:39:09]line = 340.54 [23:39:09]line НДС 12% НСП 1% [23:39:09]line > о реализуемом товаре [23:39:09]line ОКРУГЛЕНИЕ: -0.54 [23:39:09]line ИТОГО: 340.00 [23:39:09]line Внесено: 340.00 [23:39:09]line СДАЧА: 0.00 [23:39:09]line НСП 1% : 3.01 [23:39:09]line НДС 12% : 36.16 [23:39:09]line Наличными: 340.00 [23:39:09]line Безнал.: 0.00 [23:39:09]line Место: АЗС № 140 "Партнер Нефть" [23:39:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:39:09]line СНО: Общий режим [23:39:09]line Чек 351 13.07.2024 23:39 [23:39:09]line Смена: 462 ФФД: 1.0 [23:39:09]line ЗНМ: 0300000129 [23:39:09]line РНМ: 0000000000090858 [23:39:09]line Версия ККМ: 001 [23:39:09]line ФМ: 0000000000874899 [23:39:09]line ФД: 162683 [23:39:09]line ФПД: 186503002441147 [23:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T233909&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162683&fm=186503002441147&tin=02508201610067®Number=0000000000090858&sum=34000 [23:39:09]OFD Sender: Processing packet 162683 [packets to send 106, broken 105] [23:39:09]ProducePacketName [23:39:09]name=ofd_packets/00162683 [23:39:09]OFD Sender: To server: pG, [23:39:09]CommunicateWithHost lk.salyk.kg:30040 [23:39:09]ConnectInit lk.salyk.kg [23:39:09]written 0, free lines is 4095 [23:39:09]Connected sock=10 [23:39:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 ED D9 08 01 6A 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 13 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 06 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 1D 10 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7B 7B 02 00 35 04 06 00 A9 9F 9D 35 C5 BB 27 6D 7E D1 CB AF B5 A1 [23:39:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A4 98 47 00 78 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 34 38 39 39 10 04 04 00 7B 7B 02 00 F4 03 04 00 2B BC 92 66 B6 04 01 00 00 92 E0 17 EC 2C 46 B8 71 [23:39:09]CommunicateWithHost err = 0 [23:39:09]CheckOFDResponse [23:39:09]1017 (14) - 77093643461234 [23:39:09]1041 (16) - 0000000000874899 [23:39:09]1040 (4) - 162683 [23:39:09]1012 (4) - 13.07.2024 17:40 [23:39:09]1206 (1) - 0 [23:39:09]OFD Sender: Remove packet 162683 [23:39:09]ProducePacketName [23:39:09]name=ofd_packets/00162683 [23:39:09]NVStorageDeleteData [23:39:09]Write to MH i2c: 01 00 00 29 32 5B [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 07 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: 01 07 00 29 32 00 00 00 00 00 F1 0C 5F [23:39:09]RasterBufferAndPrint [23:39:09]line [23:39:09]line [23:39:09]line [23:39:09]line [23:39:09]line [23:39:09]written 0, free lines is 3319 [23:39:09]MH_Cut [23:39:09]Write to MH i2c: D1 01 00 30 32 01 34 [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: D1 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: D1 01 00 [23:39:09]MH_I2C_Read... [23:39:09]Read from MH i2c: D1 01 00 30 32 00 33 [23:39:09]Write to MH i2c: 01 00 00 31 32 63 [23:39:09]Write i2c OK [23:39:09]MH_I2C_Read... [23:39:10]OFD Sender: No OFD packet to send [23:39:10]*** Cut start [23:39:10]*** Purtial cut [23:39:10]*** CUTSNS_PIN = 0 [23:39:10]*** Stage 1: CUTSNS_PIN = 1 [23:39:12]Read from MH i2c: 01 [23:39:12]MH_I2C_Read... [23:39:12]*** Stop cut motor [23:39:12]*** Cut end [23:39:12]Read from MH i2c: 01 07 00 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: 01 07 00 31 32 00 00 00 00 00 FF 0F 78 [23:39:12]process_action close_receipt done [23:39:12]requested_data is exist [23:39:12]produce_requested_data [23:39:12]requested_item fm.sn is exist - process it [23:39:12]wFMCommunicate request_size=4 [23:39:12]MH_SAM_APDU [23:39:12]CAPDU: 80 11 00 00 [23:39:12]Write to MH i2c: E2 08 00 32 32 80 11 00 00 00 00 00 00 DE [23:39:12]Write i2c OK [23:39:12]MH_I2C_Read... [23:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:39:12]Read from MH i2c: E2 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: E2 17 00 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: E2 17 00 32 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3E [23:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:39:12]wFMCommunicate OK [23:39:12]requested_item fd.num is exist - process it [23:39:12]SAM_PROTO_GetFieldsCounters [23:39:12]wFMCommunicate request_size=4 [23:39:12]MH_SAM_APDU [23:39:12]CAPDU: 80 13 00 00 [23:39:12]Write to MH i2c: E2 08 00 33 32 80 13 00 00 00 00 00 00 E1 [23:39:12]Write i2c OK [23:39:12]MH_I2C_Read... [23:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:39:12]Read from MH i2c: E2 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: E2 62 00 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: E2 62 00 33 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 FB [23:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7B 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:39:12]wFMCommunicate OK [23:39:12]SAM_PROTO_GetFieldsCounters done [23:39:12]requested_item shift.num is exist - process it [23:39:12]requested_item shift.opened is exist - process it [23:39:12]req_shift_opened [23:39:12]FM_GetShiftState [23:39:12]SAM_PROTO_GetShiftState [23:39:12]wFMCommunicate request_size=4 [23:39:12]MH_SAM_APDU [23:39:12]CAPDU: 80 13 01 00 [23:39:12]Write to MH i2c: E2 08 00 34 32 80 13 01 00 00 00 00 00 E3 [23:39:12]Write i2c OK [23:39:12]MH_I2C_Read... [23:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:39:12]Read from MH i2c: E2 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: E2 0E 00 [23:39:12]MH_I2C_Read... [23:39:12]Read from MH i2c: E2 0E 00 34 32 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DD [23:39:12]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:39:12]wFMCommunicate OK [23:39:12]SAM_PROTO_GetShiftState done [23:39:12]FM_GetShiftState done [23:39:12]req_shift_opened done [23:39:12]requested_item shift.open_date is exist - process it [23:39:12]req_shift_open_date [23:39:12]req_shift_open_date done [23:39:12]produce_requested_data done [23:39:12]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162683,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:39:12]process_action_free close_receipt [23:39:12]json_value_free [23:39:12]json_value_free done [23:39:12]process_json_proto returns [23:39:12]Send response to host [23:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162683,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:39:12]free response buf [23:39:12]execute_script done [23:39:12]execute_script returns [23:39:12]free content buf [23:39:12]Sock 9.Close socket [23:39:12]Sock 9.Thread stoped [23:39:15]OFD Sender: No OFD packet to send [23:39:20]OFD Sender: No OFD packet to send [23:39:25]OFD Sender: No OFD packet to send [23:39:30]OFD Sender: No OFD packet to send [23:39:35]OFD Sender: No OFD packet to send [23:39:40]OFD Sender: No OFD packet to send [23:39:45]OFD Sender: No OFD packet to send [23:39:50]OFD Sender: No OFD packet to send [23:39:55]OFD Sender: No OFD packet to send [23:40:00]OFD Sender: No OFD packet to send [23:40:05]OFD Sender: No OFD packet to send [23:40:10]OFD Sender: No OFD packet to send [23:40:15]OFD Sender: No OFD packet to send [23:40:20]OFD Sender: No OFD packet to send [23:40:25]OFD Sender: No OFD packet to send [23:40:30]OFD Sender: No OFD packet to send [23:40:35]OFD Sender: No OFD packet to send [23:40:40]OFD Sender: No OFD packet to send [23:40:45]OFD Sender: No OFD packet to send [23:40:50]OFD Sender: No OFD packet to send [23:40:55]OFD Sender: No OFD packet to send [23:41:00]OFD Sender: No OFD packet to send [23:41:05]OFD Sender: No OFD packet to send [23:41:10]OFD Sender: No OFD packet to send [23:41:15]OFD Sender: No OFD packet to send [23:41:20]OFD Sender: No OFD packet to send [23:41:25]OFD Sender: No OFD packet to send [23:41:30]OFD Sender: No OFD packet to send [23:41:35]OFD Sender: No OFD packet to send [23:41:40]OFD Sender: No OFD packet to send [23:41:45]OFD Sender: No OFD packet to send [23:41:50]OFD Sender: No OFD packet to send [23:41:55]OFD Sender: No OFD packet to send [23:42:00]OFD Sender: No OFD packet to send [23:42:05]OFD Sender: No OFD packet to send [23:42:10]OFD Sender: No OFD packet to send [23:42:15]OFD Sender: No OFD packet to send [23:42:20]OFD Sender: No OFD packet to send [23:42:25]OFD Sender: No OFD packet to send [23:42:30]OFD Sender: No OFD packet to send [23:42:35]OFD Sender: No OFD packet to send [23:42:40]OFD Sender: No OFD packet to send [23:42:45]OFD Sender: No OFD packet to send [23:42:50]OFD Sender: No OFD packet to send [23:42:55]OFD Sender: No OFD packet to send [23:43:00]OFD Sender: No OFD packet to send [23:43:05]OFD Sender: No OFD packet to send [23:43:10]OFD Sender: No OFD packet to send [23:43:15]OFD Sender: No OFD packet to send [23:43:20]OFD Sender: No OFD packet to send [23:43:25]OFD Sender: No OFD packet to send [23:43:30]OFD Sender: No OFD packet to send [23:43:35]OFD Sender: No OFD packet to send [23:43:40]OFD Sender: No OFD packet to send [23:43:45]OFD Sender: No OFD packet to send [23:43:50]OFD Sender: No OFD packet to send [23:43:55]OFD Sender: No OFD packet to send [23:44:00]OFD Sender: No OFD packet to send [23:44:05]OFD Sender: No OFD packet to send [23:44:10]OFD Sender: No OFD packet to send [23:44:15]OFD Sender: No OFD packet to send [23:44:20]OFD Sender: No OFD packet to send [23:44:25]OFD Sender: No OFD packet to send [23:44:30]OFD Sender: No OFD packet to send [23:44:35]OFD Sender: No OFD packet to send [23:44:40]OFD Sender: No OFD packet to send [23:44:45]OFD Sender: No OFD packet to send [23:44:50]OFD Sender: No OFD packet to send [23:44:55]OFD Sender: No OFD packet to send [23:45:00]OFD Sender: No OFD packet to send [23:45:05]OFD Sender: No OFD packet to send [23:45:10]OFD Sender: No OFD packet to send [23:45:15]OFD Sender: No OFD packet to send [23:45:20]OFD Sender: No OFD packet to send [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:25]OFD Sender: No OFD packet to send [23:48:30]OFD Sender: No OFD packet to send [23:48: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:53]accept exits with 7 [23:48:53]New connection [23:48:53]New thread 3067366756 created [23:48:53]Thread 3067510116 joined [23:48:53]Waiting for new connection... [23:48:53] Sock 7.Parse request [23:48:53]Sock 7.Check first char [23:48:53]Sock 7.First char is OK [23:48:53]request: POST /json_proto HTTP/1.0 [23:48:53]Method: POST [23:48:53]URL: /json_proto [23:48:53]Method is POST - this is cgi request [23:48:53]url: /json_proto [23:48:53]query_string will be loaded in cgi processing [23:48:53]execute_cgi json_proto POST (null) [23:48:53]execute_cgi path=json_proto method=POST [23:48:53]POST find Content-Length [23:48:53]Host: 172.17.39.67:8080 [23:48:53]Content-Length: 683 [23:48:53]Content-Type: application/json [23:48:53] [23:48:53]POST finish read [23:48:53]Found Content-Length = 683 [23:48:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:53]execute_script... [23:48: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)1319264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:48:53]POST & json_proto [23:48:53]process_json_proto [23:48:53]json parsed OK: [23:48:53]protocol is kg_v1.0 [23:48:53]action value=close_receipt [23:48:53]process_action close_receipt [23:48:53]cmd_close_receipt [23:48:53]MH_GetDate [23:48:53]Write to MH i2c: F0 00 00 35 32 56 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: F0 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: F0 09 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: F0 09 00 35 32 00 67 12 93 66 86 7C 92 66 CB [23:48:53]GetLastDocTimeStamp 1720913949 [23:48:53]current date 1720914535 [23:48:53]FM_GetShiftState [23:48:53]SAM_PROTO_GetShiftState [23:48:53]wFMCommunicate request_size=4 [23:48:53]MH_SAM_APDU [23:48:53]CAPDU: 80 13 01 00 [23:48:53]Write to MH i2c: E2 08 00 36 32 80 13 01 00 00 00 00 00 E5 [23:48:53]Write i2c OK [23:48:53]MH_I2C_Read... [23:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:53]Read from MH i2c: E2 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 0E 00 [23:48:53]MH_I2C_Read... [23:48:53]Read from MH i2c: E2 0E 00 36 32 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 DF [23:48:53]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:48:53]wFMCommunicate OK [23:48:53]SAM_PROTO_GetShiftState done [23:48:53]FM_GetShiftState done [23:48:53]opened in 1720828979 [23:48:53]opened+sec_in_day 1720915379 [23:48:53]quantity*price = 100046 [23:48:53]sum+1 = 100048 [23:48:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 352 13.07.2024 23:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162684 ФПД: 3836409162488 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T234856&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162684&fm=3836409162488&tin=02508201610067®Number=0000000000090858&sum=100000 [23:48:54]StoreToDocumentArchive [23:48:54]shift 462 fd 162684 [23:48:54]save to /storage/0462/doc_00162684 [23:48:54]save last doc name /storage/0462/doc_00162684 to /storage/kkm_last_doc_name [23:48:54]save OK [23:48:54]Clear old archive folders... [23:48:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:48:54]tlvbuf is 006D2920 [23:48:54]SAM_PROTO_ClearQueue [23:48:54]wFMCommunicate request_size=4 [23:48:54]MH_SAM_APDU [23:48:54]CAPDU: 80 09 00 00 [23:48:54]Write to MH i2c: E2 08 00 43 32 80 09 00 00 00 00 00 00 E7 [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:54]Read from MH i2c: E2 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 03 00 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 03 00 43 32 00 90 00 E9 [23:48:54]RAPDU: 90 00 [23:48:54]wFMCommunicate OK [23:48:54]SAM_PROTO_ClearQueue done [23:48:54]KKMCreateOFDPacket [23:48:54]OFDProtocolAddRootSTLVToBuf [23:48:54]FM_MakeSignedData [23:48:54]FM_MakeSignedData [23:48:54]SAM_PROTO_SignData [23:48:54]wFMCommunicate request_size=4 [23:48:54]MH_SAM_APDU [23:48:54]CAPDU: 80 0D 01 02 [23:48:54]Write to MH i2c: E2 08 00 44 32 80 0D 01 02 00 00 00 00 EF [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:54]Read from MH i2c: E2 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 03 00 [23:48:54]MH_I2C_Read... [23:48:54]Read from MH i2c: E2 03 00 44 32 00 90 00 EA [23:48:54]RAPDU: 90 00 [23:48:54]wFMCommunicate OK [23:48:54]wFMCommunicate request_size=255 [23:48:54]MH_SAM_APDU [23:48:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 60 01 00 00 F4 03 04 00 68 12 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7B 02 00 35 04 06 00 03 [23:48:54]Write to MH i2c: E2 02 01 45 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 60 01 00 00 F4 03 04 00 68 12 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7B 02 00 35 04 06 00 03 00 00 9A [23:48:54]Write i2c OK [23:48:54]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 03 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 03 00 45 32 00 90 00 EB [23:48:55]RAPDU: 90 00 [23:48:55]wFMCommunicate OK [23:48:55]wFMCommunicate request_size=10 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 0D 02 02 05 7D 3B CE 2A F8 [23:48:55]Write to MH i2c: E2 0D 00 46 32 80 0D 02 02 05 00 7D 3B CE 2A F8 00 00 A4 [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 03 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 03 00 46 32 00 90 00 EC [23:48:55]RAPDU: 90 00 [23:48:55]wFMCommunicate OK [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 0D 03 02 [23:48:55]Write to MH i2c: E2 08 00 47 32 80 0D 03 02 00 00 00 00 F4 [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 0B 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 0B 00 47 32 00 9C 44 59 11 9B 8E 4B 17 90 00 CA [23:48:55]RAPDU: 9C 44 59 11 9B 8E 4B 17 90 00 [23:48:55]wFMCommunicate OK [23:48:55]SAM_PROTO_SignData done [23:48:55]FM_MakeSignedData done [23:48:55]CreateOFDProtocolMessage [23:48:55]wFMCommunicate request_size=4 [23:48:55]MH_SAM_APDU [23:48:55]CAPDU: 80 11 00 00 [23:48:55]Write to MH i2c: E2 08 00 48 32 80 11 00 00 00 00 00 00 F4 [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:55]Read from MH i2c: E2 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 17 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: E2 17 00 48 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 54 [23:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:48:55]wFMCommunicate OK [23:48:55]CreateOFDProtocolMessage done [23:48:55]OFDSenderStorePacket 162684 [23:48:55]StoreOFDPacket docnum=162684 [23:48:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 28 7E 07 01 CC CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 60 01 00 00 F4 03 04 00 68 12 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7B 02 00 35 04 06 00 03 7D 3B CE 2A F8 9C 44 59 11 9B 8E 4B 17 [23:48:55]CheckFolder [23:48:55]dirname=/storage/ofd_packets [23:48:55]CheckFolder done [23:48:55]ProducePacketName [23:48:55]name=ofd_packets/00162684 [23:48:55]NVStorageSaveData ofd_packets/00162684 [23:48:55]File name is /storage/ofd_packets/00162684 [23:48:55]Write 301 bytes [23:48:55]NVStorageSaveData done [23:48:55]OFDSenderStorePacket done [23:48:55]KKMCreateOFDPacket done [23:48:55]NVStorageSaveData kkm_last_timestamp [23:48:55]File name is /storage/kkm_last_timestamp [23:48:55]Write 4 bytes [23:48:55]NVStorageSaveData done [23:48:55]ExternCall_PrintAddStr [23:48:55]wPrintStart [23:48:55]Write to MH i2c: 01 00 00 49 32 7B [23:48:55]Write i2c OK [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: 01 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: 01 07 00 [23:48:55]MH_I2C_Read... [23:48:55]Read from MH i2c: 01 07 00 49 32 00 00 00 00 00 FF 0F 90 [23:48:55]RasterBufferAndPrint [23:48:55]line Счет N : (1)1319264 [23:48:55]line ИНН: 02508201610067 [23:48:55]line Контрольно-Кассовый Чек [23:48:55]line ПРОДАЖА [23:48:55]line ТРК (МРК, ГНК) : 43 [23:48:55]line Товар: 2710124130 [23:48:55]line Аи-92-К-5 [23:48:55]line 15.090 * 66.30 [23:48:55]line = 1000.47 [23:48:55]line НДС 12% НСП 1% [23:48:55]line > о реализуемом товаре [23:48:55]line ОКРУГЛЕНИЕ: -0.47 [23:48:55]line ИТОГО: 1000.00 [23:48:55]line Внесено: 1000.00 [23:48:55]line СДАЧА: 0.00 [23:48:55]line НСП 1% : 8.85 [23:48:55]line НДС 12% : 106.24 [23:48:55]line Наличными: 1000.00 [23:48:55]line Безнал.: 0.00 [23:48:55]line Место: АЗС № 140 "Партнер Нефть" [23:48:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:48:55]line СНО: Общий режим [23:48:55]line Чек 352 13.07.2024 23:48 [23:48:55]line Смена: 462 ФФД: 1.0 [23:48:55]line ЗНМ: 0300000129 [23:48:55]line РНМ: 0000000000090858 [23:48:55]line Версия ККМ: 001 [23:48:55]line ФМ: 0000000000874899 [23:48:55]line ФД: 162684 [23:48:55]line ФПД: 3836409162488 [23:48:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T234856&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162684&fm=3836409162488&tin=02508201610067®Number=0000000000090858&sum=100000 [23:48:55]OFD Sender: Processing packet 162684 [packets to send 106, broken 105] [23:48:55]ProducePacketName [23:48:55]name=ofd_packets/00162684 [23:48:55]OFD Sender: To server: pG, [23:48:55]CommunicateWithHost lk.salyk.kg:30040 [23:48:55]ConnectInit lk.salyk.kg [23:48:55]written 0, free lines is 4095 [23:48:55]Connected sock=10 [23:48:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 28 7E 07 01 CC CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 60 01 00 00 F4 03 04 00 68 12 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7B 02 00 35 04 06 00 03 7D 3B CE 2A F8 9C 44 59 11 9B 8E 4B 17 [23:48:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 9F B7 47 00 5E 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7C 7B 02 00 F4 03 04 00 75 BE 92 66 B6 04 01 00 00 9D 6E 74 06 79 8F F7 4A [23:48:55]CommunicateWithHost err = 0 [23:48:55]CheckOFDResponse [23:48:55]1017 (14) - 77093643461234 [23:48:55]1041 (16) - 0000000000874899 [23:48:55]1040 (4) - 162684 [23:48:55]1012 (4) - 13.07.2024 17:50 [23:48:55]1206 (1) - 0 [23:48:55]OFD Sender: Remove packet 162684 [23:48:55]ProducePacketName [23:48:55]name=ofd_packets/00162684 [23:48:55]NVStorageDeleteData [23:48:56]Write to MH i2c: 01 00 00 74 32 A6 [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: 01 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: 01 07 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: 01 07 00 74 32 00 00 00 00 00 D6 0C 8F [23:48:56]RasterBufferAndPrint [23:48:56]line [23:48:56]line [23:48:56]line [23:48:56]line [23:48:56]line [23:48:56]written 0, free lines is 3295 [23:48:56]MH_Cut [23:48:56]Write to MH i2c: D1 01 00 7B 32 01 7F [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: D1 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: D1 01 00 [23:48:56]MH_I2C_Read... [23:48:56]Read from MH i2c: D1 01 00 7B 32 00 7E [23:48:56]Write to MH i2c: 01 00 00 7C 32 AE [23:48:56]Write i2c OK [23:48:56]MH_I2C_Read... [23:48:56]OFD Sender: No OFD packet to send [23:48:56]*** Cut start [23:48:56]*** Purtial cut [23:48:56]*** Stage 1: CUTSNS_PIN = 1 [23:48:57]Read from MH i2c: 01 [23:48:57]MH_I2C_Read... [23:48:57]*** Stop cut motor [23:48:57]*** Cut end [23:48:57]Read from MH i2c: 01 07 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: 01 07 00 7C 32 00 00 00 00 00 FF 0F C3 [23:48:57]process_action close_receipt done [23:48:57]requested_data is exist [23:48:57]produce_requested_data [23:48:57]requested_item fm.sn is exist - process it [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 11 00 00 [23:48:57]Write to MH i2c: E2 08 00 7D 32 80 11 00 00 00 00 00 00 29 [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 17 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 17 00 7D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 89 [23:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:48:57]wFMCommunicate OK [23:48:57]requested_item fd.num is exist - process it [23:48:57]SAM_PROTO_GetFieldsCounters [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 13 00 00 [23:48:57]Write to MH i2c: E2 08 00 7E 32 80 13 00 00 00 00 00 00 2C [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 62 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 62 00 7E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [23:48:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7C 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:57]wFMCommunicate OK [23:48:57]SAM_PROTO_GetFieldsCounters done [23:48:57]requested_item shift.num is exist - process it [23:48:57]requested_item shift.opened is exist - process it [23:48:57]req_shift_opened [23:48:57]FM_GetShiftState [23:48:57]SAM_PROTO_GetShiftState [23:48:57]wFMCommunicate request_size=4 [23:48:57]MH_SAM_APDU [23:48:57]CAPDU: 80 13 01 00 [23:48:57]Write to MH i2c: E2 08 00 7F 32 80 13 01 00 00 00 00 00 2E [23:48:57]Write i2c OK [23:48:57]MH_I2C_Read... [23:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:57]Read from MH i2c: E2 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 0E 00 [23:48:57]MH_I2C_Read... [23:48:57]Read from MH i2c: E2 0E 00 7F 32 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 28 [23:48:57]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:48:57]wFMCommunicate OK [23:48:57]SAM_PROTO_GetShiftState done [23:48:57]FM_GetShiftState done [23:48:57]req_shift_opened done [23:48:57]requested_item shift.open_date is exist - process it [23:48:57]req_shift_open_date [23:48:57]req_shift_open_date done [23:48:57]produce_requested_data done [23:48:57]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162684,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:48:57]process_action_free close_receipt [23:48:57]json_value_free [23:48:57]json_value_free done [23:48:57]process_json_proto returns [23:48:57]Send response to host [23:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162684,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:48:57]free response buf [23:48:57]execute_script done [23:48:57]execute_script returns [23:48:57]free content buf [23:48:57]Sock 7.Close socket [23:48:57]Sock 7.Thread stoped [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:16]OFD Sender: No OFD packet to send [23:51:21]OFD Sender: No OFD packet to send [23:51:26]OFD Sender: No OFD packet to send [23:51:31]OFD Sender: No OFD packet to send [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:07]accept exits with 9 [23:52:07]New connection [23:52:07]New thread 3067510116 created [23:52:07]Thread 3067366756 joined [23:52:07]Waiting for new connection... [23:52:07] Sock 9.Parse request [23:52:07]Sock 9.Check first char [23:52:07]Sock 9.First char is OK [23:52:07]request: POST /json_proto HTTP/1.0 [23:52:07]Method: POST [23:52:07]URL: /json_proto [23:52:07]Method is POST - this is cgi request [23:52:07]url: /json_proto [23:52:07]query_string will be loaded in cgi processing [23:52:07]execute_cgi json_proto POST (null) [23:52:07]execute_cgi path=json_proto method=POST [23:52:07]POST find Content-Length [23:52:07]Host: 172.17.39.67:8080 [23:52:07]Content-Length: 802 [23:52:07]Content-Type: application/json [23:52:07] [23:52:07]POST finish read [23:52:07]Found Content-Length = 802 [23:52:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:07]execute_script... [23:52:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:07]POST & json_proto [23:52:07]process_json_proto [23:52:07]json parsed OK: [23:52:07]protocol is kg_v1.0 [23:52:07]action value=close_receipt [23:52:07]process_action close_receipt [23:52:07]cmd_close_receipt [23:52:07]MH_GetDate [23:52:07]Write to MH i2c: F0 00 00 80 32 A1 [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: F0 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: F0 09 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: F0 09 00 80 32 00 2A 13 93 66 86 7C 92 66 DA [23:52:07]GetLastDocTimeStamp 1720914536 [23:52:07]current date 1720914730 [23:52:07]FM_GetShiftState [23:52:07]SAM_PROTO_GetShiftState [23:52:07]wFMCommunicate request_size=4 [23:52:07]MH_SAM_APDU [23:52:07]CAPDU: 80 13 01 00 [23:52:07]Write to MH i2c: E2 08 00 81 32 80 13 01 00 00 00 00 00 30 [23:52:07]Write i2c OK [23:52:07]MH_I2C_Read... [23:52:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:07]Read from MH i2c: E2 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 0E 00 [23:52:07]MH_I2C_Read... [23:52:07]Read from MH i2c: E2 0E 00 81 32 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 2A [23:52:07]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:52:07]wFMCommunicate OK [23:52:07]SAM_PROTO_GetShiftState done [23:52:07]FM_GetShiftState done [23:52:07]opened in 1720828979 [23:52:07]opened+sec_in_day 1720915379 [23:52:07]quantity*price = 99914 [23:52:07]sum+1 = 99915 [23:52:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.14 НСП 1% : 8.84 НДС 12% : 106.10 Наличными: 0.00 Безнал.: 999.14 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 353 13.07.2024 23:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162685 ФПД: 119331421174833 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T235210&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162685&fm=119331421174833&tin=02508201610067®Number=0000000000090858&sum=99914 [23:52:09]StoreToDocumentArchive [23:52:09]shift 462 fd 162685 [23:52:09]save to /storage/0462/doc_00162685 [23:52:09]save last doc name /storage/0462/doc_00162685 to /storage/kkm_last_doc_name [23:52:09]save OK [23:52:09]Clear old archive folders... [23:52:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:52:09]tlvbuf is B6F49710 [23:52:09]SAM_PROTO_ClearQueue [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 09 00 00 [23:52:09]Write to MH i2c: E2 08 00 8E 32 80 09 00 00 00 00 00 00 32 [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 03 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 03 00 8E 32 00 90 00 34 [23:52:09]RAPDU: 90 00 [23:52:09]wFMCommunicate OK [23:52:09]SAM_PROTO_ClearQueue done [23:52:09]KKMCreateOFDPacket [23:52:09]OFDProtocolAddRootSTLVToBuf [23:52:09]FM_MakeSignedData [23:52:09]FM_MakeSignedData [23:52:09]SAM_PROTO_SignData [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 0D 01 02 [23:52:09]Write to MH i2c: E2 08 00 8F 32 80 0D 01 02 00 00 00 00 3A [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 03 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 03 00 8F 32 00 90 00 35 [23:52:09]RAPDU: 90 00 [23:52:09]wFMCommunicate OK [23:52:09]wFMCommunicate request_size=255 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 2A 13 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7B 02 00 35 04 06 00 6C [23:52:09]Write to MH i2c: E2 02 01 90 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 2A 13 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7B 02 00 35 04 06 00 6C 00 00 BF [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 03 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 03 00 90 32 00 90 00 36 [23:52:09]RAPDU: 90 00 [23:52:09]wFMCommunicate OK [23:52:09]wFMCommunicate request_size=10 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 0D 02 02 05 88 02 F8 3C 31 [23:52:09]Write to MH i2c: E2 0D 00 91 32 80 0D 02 02 05 00 88 02 F8 3C 31 00 00 36 [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 03 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 03 00 91 32 00 90 00 37 [23:52:09]RAPDU: 90 00 [23:52:09]wFMCommunicate OK [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 0D 03 02 [23:52:09]Write to MH i2c: E2 08 00 92 32 80 0D 03 02 00 00 00 00 3F [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 0B 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 0B 00 92 32 00 06 A4 79 A6 F5 CD FF D4 90 00 9E [23:52:09]RAPDU: 06 A4 79 A6 F5 CD FF D4 90 00 [23:52:09]wFMCommunicate OK [23:52:09]SAM_PROTO_SignData done [23:52:09]FM_MakeSignedData done [23:52:09]CreateOFDProtocolMessage [23:52:09]wFMCommunicate request_size=4 [23:52:09]MH_SAM_APDU [23:52:09]CAPDU: 80 11 00 00 [23:52:09]Write to MH i2c: E2 08 00 93 32 80 11 00 00 00 00 00 00 3F [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:09]Read from MH i2c: E2 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 17 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: E2 17 00 93 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9F [23:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:52:09]wFMCommunicate OK [23:52:09]CreateOFDProtocolMessage done [23:52:09]OFDSenderStorePacket 162685 [23:52:09]StoreOFDPacket docnum=162685 [23:52:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A6 C6 07 01 A9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 2A 13 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7B 02 00 35 04 06 00 6C 88 02 F8 3C 31 06 A4 79 A6 F5 CD FF D4 [23:52:09]CheckFolder [23:52:09]dirname=/storage/ofd_packets [23:52:09]CheckFolder done [23:52:09]ProducePacketName [23:52:09]name=ofd_packets/00162685 [23:52:09]NVStorageSaveData ofd_packets/00162685 [23:52:09]File name is /storage/ofd_packets/00162685 [23:52:09]Write 301 bytes [23:52:09]NVStorageSaveData done [23:52:09]OFDSenderStorePacket done [23:52:09]KKMCreateOFDPacket done [23:52:09]NVStorageSaveData kkm_last_timestamp [23:52:09]File name is /storage/kkm_last_timestamp [23:52:09]Write 4 bytes [23:52:09]NVStorageSaveData done [23:52:09]ExternCall_PrintAddStr [23:52:09]wPrintStart [23:52:09]Write to MH i2c: 01 00 00 94 32 C6 [23:52:09]Write i2c OK [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: 01 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: 01 07 00 [23:52:09]MH_I2C_Read... [23:52:09]Read from MH i2c: 01 07 00 94 32 00 00 00 00 00 FF 0F DB [23:52:09]RasterBufferAndPrint [23:52:09]line Счет N : (1)1319265 [23:52:09]line ИНН: 02508201610067 [23:52:09]line Контрольно-Кассовый Чек [23:52:09]line ПРОДАЖА [23:52:09]line ТРК (МРК, ГНК) : 53 [23:52:09]line Товар: 2710124130 [23:52:09]line Аи-92-К-5 [23:52:09]line 15.070 * 66.30 [23:52:09]line = 999.14 [23:52:09]line НДС 12% НСП 1% [23:52:09]line > о реализуемом товаре [23:52:09]line ИТОГО: 999.14 [23:52:09]line НСП 1% : 8.84 [23:52:09]line НДС 12% : 106.10 [23:52:09]line Наличными: 0.00 [23:52:09]line Безнал.: 999.14 [23:52:09]line Место: АЗС № 140 "Партнер Нефть" [23:52:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:52:09]line СНО: Общий режим [23:52:09]line Чек 353 13.07.2024 23:52 [23:52:09]line Смена: 462 ФФД: 1.0 [23:52:09]line ЗНМ: 0300000129 [23:52:09]line РНМ: 0000000000090858 [23:52:09]line Версия ККМ: 001 [23:52:09]line Платежная система: O! деньги [23:52:09]line ФМ: 0000000000874899 [23:52:09]line ФД: 162685 [23:52:09]line ФПД: 119331421174833 [23:52:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T235210&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162685&fm=119331421174833&tin=02508201610067®Number=0000000000090858&sum=99914 [23:52:09]written 0, free lines is 4095 [23:52:09]OFD Sender: Processing packet 162685 [packets to send 106, broken 105] [23:52:09]ProducePacketName [23:52:09]name=ofd_packets/00162685 [23:52:09]OFD Sender: To server: pG, [23:52:09]CommunicateWithHost lk.salyk.kg:30040 [23:52:09]ConnectInit lk.salyk.kg [23:52:09]Connected sock=10 [23:52:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 A6 C6 07 01 A9 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 2A 13 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7B 02 00 35 04 06 00 6C 88 02 F8 3C 31 06 A4 79 A6 F5 CD FF D4 [23:52:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 D1 BD 47 00 8A 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7D 7B 02 00 F4 03 04 00 38 BF 92 66 B6 04 01 00 00 37 66 1D B9 17 7C B6 06 [23:52:10]CommunicateWithHost err = 0 [23:52:10]CheckOFDResponse [23:52:10]1017 (14) - 77093643461234 [23:52:10]1041 (16) - 0000000000874899 [23:52:10]1040 (4) - 162685 [23:52:10]1012 (4) - 13.07.2024 17:54 [23:52:10]1206 (1) - 0 [23:52:10]OFD Sender: Remove packet 162685 [23:52:10]ProducePacketName [23:52:10]name=ofd_packets/00162685 [23:52:10]NVStorageDeleteData [23:52:10]Write to MH i2c: 01 00 00 BE 32 F0 [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: 01 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: 01 07 00 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: 01 07 00 BE 32 00 00 00 00 00 E9 0C EC [23:52:10]RasterBufferAndPrint [23:52:10]line [23:52:10]line [23:52:10]line [23:52:10]line [23:52:10]line [23:52:10]written 0, free lines is 3313 [23:52:10]MH_Cut [23:52:10]Write to MH i2c: D1 01 00 C5 32 01 C9 [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: D1 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: D1 01 00 [23:52:10]MH_I2C_Read... [23:52:10]Read from MH i2c: D1 01 00 C5 32 00 C8 [23:52:10]Write to MH i2c: 01 00 00 C6 32 F8 [23:52:10]Write i2c OK [23:52:10]MH_I2C_Read... [23:52:10]OFD Sender: No OFD packet to send [23:52:11]*** Cut start [23:52:11]*** Purtial cut [23:52:11]*** CUTSNS_PIN = 0 [23:52:11]*** Stage 1: CUTSNS_PIN = 1 [23:52:13]Read from MH i2c: 01 [23:52:13]MH_I2C_Read... [23:52:13]*** Stop cut motor [23:52:13]*** Cut end [23:52:13]Read from MH i2c: 01 07 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: 01 07 00 C6 32 00 00 00 00 00 FF 0F 0D [23:52:13]process_action close_receipt done [23:52:13]requested_data is exist [23:52:13]produce_requested_data [23:52:13]requested_item fm.sn is exist - process it [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 11 00 00 [23:52:13]Write to MH i2c: E2 08 00 C7 32 80 11 00 00 00 00 00 00 73 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 17 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 17 00 C7 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D3 [23:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:52:13]wFMCommunicate OK [23:52:13]requested_item fd.num is exist - process it [23:52:13]SAM_PROTO_GetFieldsCounters [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 13 00 00 [23:52:13]Write to MH i2c: E2 08 00 C8 32 80 13 00 00 00 00 00 00 76 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 62 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 62 00 C8 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 98 [23:52:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7D 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:13]wFMCommunicate OK [23:52:13]SAM_PROTO_GetFieldsCounters done [23:52:13]requested_item shift.num is exist - process it [23:52:13]requested_item shift.opened is exist - process it [23:52:13]req_shift_opened [23:52:13]FM_GetShiftState [23:52:13]SAM_PROTO_GetShiftState [23:52:13]wFMCommunicate request_size=4 [23:52:13]MH_SAM_APDU [23:52:13]CAPDU: 80 13 01 00 [23:52:13]Write to MH i2c: E2 08 00 C9 32 80 13 01 00 00 00 00 00 78 [23:52:13]Write i2c OK [23:52:13]MH_I2C_Read... [23:52:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:13]Read from MH i2c: E2 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 0E 00 [23:52:13]MH_I2C_Read... [23:52:13]Read from MH i2c: E2 0E 00 C9 32 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 72 [23:52:13]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:52:13]wFMCommunicate OK [23:52:13]SAM_PROTO_GetShiftState done [23:52:13]FM_GetShiftState done [23:52:13]req_shift_opened done [23:52:13]requested_item shift.open_date is exist - process it [23:52:13]req_shift_open_date [23:52:13]req_shift_open_date done [23:52:13]produce_requested_data done [23:52:13]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162685,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:52:13]process_action_free close_receipt [23:52:13]json_value_free [23:52:13]json_value_free done [23:52:13]process_json_proto returns [23:52:13]Send response to host [23:52:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162685,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:52:13]free response buf [23:52:13]execute_script done [23:52:13]execute_script returns [23:52:13]free content buf [23:52:13]Sock 9.Close socket [23:52:13]Sock 9.Thread stoped [23:52:15]OFD Sender: No OFD packet to send [23:52:20]OFD Sender: No OFD packet to send [23:52:25]OFD Sender: No OFD packet to send [23:52:30]OFD Sender: No OFD packet to send [23:52:35]OFD Sender: No OFD packet to send [23:52:40]OFD Sender: No OFD packet to send [23:52:45]OFD Sender: No OFD packet to send [23:52:50]OFD Sender: No OFD packet to send [23:52:55]OFD Sender: No OFD packet to send [23:53:00]OFD Sender: No OFD packet to send [23:53:05]OFD Sender: No OFD packet to send [23:53:10]OFD Sender: No OFD packet to send [23:53:15]OFD Sender: No OFD packet to send [23:53:20]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:36]OFD Sender: No OFD packet to send [23:57:37]accept exits with 7 [23:57:37]New connection [23:57:37]New thread 3067366756 created [23:57:37]Thread 3067510116 joined [23:57:37]Waiting for new connection... [23:57:37] Sock 7.Parse request [23:57:37]Sock 7.Check first char [23:57:37]Sock 7.First char is OK [23:57:37]request: POST /json_proto HTTP/1.0 [23:57:37]Method: POST [23:57:37]URL: /json_proto [23:57:37]Method is POST - this is cgi request [23:57:37]url: /json_proto [23:57:37]query_string will be loaded in cgi processing [23:57:37]execute_cgi json_proto POST (null) [23:57:37]execute_cgi path=json_proto method=POST [23:57:37]POST find Content-Length [23:57:37]Host: 172.17.39.67:8080 [23:57:37]Content-Length: 841 [23:57:37]Content-Type: application/json [23:57:37] [23:57:37]POST finish read [23:57:37]Found Content-Length = 841 [23:57:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:37]execute_script... [23:57: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)1319266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 4.530, "sum" : 300.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.34 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:37]POST & json_proto [23:57:37]process_json_proto [23:57:37]json parsed OK: [23:57:37]protocol is kg_v1.0 [23:57:37]action value=close_receipt [23:57:37]process_action close_receipt [23:57:37]cmd_close_receipt [23:57:37]MH_GetDate [23:57:37]Write to MH i2c: F0 00 00 CA 32 EB [23:57:37]Write i2c OK [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: F0 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: F0 09 00 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: F0 09 00 CA 32 00 74 14 93 66 86 7C 92 66 6F [23:57:37]GetLastDocTimeStamp 1720914730 [23:57:37]current date 1720915060 [23:57:37]FM_GetShiftState [23:57:37]SAM_PROTO_GetShiftState [23:57:37]wFMCommunicate request_size=4 [23:57:37]MH_SAM_APDU [23:57:37]CAPDU: 80 13 01 00 [23:57:37]Write to MH i2c: E2 08 00 CB 32 80 13 01 00 00 00 00 00 7A [23:57:37]Write i2c OK [23:57:37]MH_I2C_Read... [23:57:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:37]Read from MH i2c: E2 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 0E 00 [23:57:37]MH_I2C_Read... [23:57:37]Read from MH i2c: E2 0E 00 CB 32 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 74 [23:57:37]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:57:37]wFMCommunicate OK [23:57:37]SAM_PROTO_GetShiftState done [23:57:37]FM_GetShiftState done [23:57:37]opened in 1720828979 [23:57:37]opened+sec_in_day 1720915379 [23:57:37]quantity*price = 30033 [23:57:37]sum+1 = 30035 [23:57:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.34 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.34 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 354 13.07.2024 23:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874899 ФД: 162686 ФПД: 12745350030771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T235740&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162686&fm=12745350030771&tin=02508201610067®Number=0000000000090858&sum=30034 [23:57:39]StoreToDocumentArchive [23:57:39]shift 462 fd 162686 [23:57:39]save to /storage/0462/doc_00162686 [23:57:39]save last doc name /storage/0462/doc_00162686 to /storage/kkm_last_doc_name [23:57:39]save OK [23:57:39]Clear old archive folders... [23:57:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:57:39]tlvbuf is 006F5D20 [23:57:39]SAM_PROTO_ClearQueue [23:57:39]wFMCommunicate request_size=4 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 09 00 00 [23:57:39]Write to MH i2c: E2 08 00 D8 32 80 09 00 00 00 00 00 00 7C [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 03 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 03 00 D8 32 00 90 00 7E [23:57:39]RAPDU: 90 00 [23:57:39]wFMCommunicate OK [23:57:39]SAM_PROTO_ClearQueue done [23:57:39]KKMCreateOFDPacket [23:57:39]OFDProtocolAddRootSTLVToBuf [23:57:39]FM_MakeSignedData [23:57:39]FM_MakeSignedData [23:57:39]SAM_PROTO_SignData [23:57:39]wFMCommunicate request_size=4 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 0D 01 02 [23:57:39]Write to MH i2c: E2 08 00 D9 32 80 0D 01 02 00 00 00 00 84 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 03 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 03 00 D9 32 00 90 00 7F [23:57:39]RAPDU: 90 00 [23:57:39]wFMCommunicate OK [23:57:39]wFMCommunicate request_size=255 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 74 14 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7B 02 00 35 04 06 00 0B [23:57:39]Write to MH i2c: E2 02 01 DA 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 74 14 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7B 02 00 35 04 06 00 0B 00 00 FC [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 03 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 03 00 DA 32 00 90 00 80 [23:57:39]RAPDU: 90 00 [23:57:39]wFMCommunicate OK [23:57:39]wFMCommunicate request_size=10 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 0D 02 02 05 97 82 0F A5 B3 [23:57:39]Write to MH i2c: E2 0D 00 DB 32 80 0D 02 02 05 00 97 82 0F A5 B3 00 00 11 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 03 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 03 00 DB 32 00 90 00 81 [23:57:39]RAPDU: 90 00 [23:57:39]wFMCommunicate OK [23:57:39]wFMCommunicate request_size=4 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 0D 03 02 [23:57:39]Write to MH i2c: E2 08 00 DC 32 80 0D 03 02 00 00 00 00 89 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 0B 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 0B 00 DC 32 00 A0 FB B3 27 03 A7 C7 A2 90 00 12 [23:57:39]RAPDU: A0 FB B3 27 03 A7 C7 A2 90 00 [23:57:39]wFMCommunicate OK [23:57:39]SAM_PROTO_SignData done [23:57:39]FM_MakeSignedData done [23:57:39]CreateOFDProtocolMessage [23:57:39]wFMCommunicate request_size=4 [23:57:39]MH_SAM_APDU [23:57:39]CAPDU: 80 11 00 00 [23:57:39]Write to MH i2c: E2 08 00 DD 32 80 11 00 00 00 00 00 00 89 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:39]Read from MH i2c: E2 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 17 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: E2 17 00 DD 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E9 [23:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:57:39]wFMCommunicate OK [23:57:39]CreateOFDProtocolMessage done [23:57:39]OFDSenderStorePacket 162686 [23:57:39]StoreOFDPacket docnum=162686 [23:57:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 13 A7 07 01 AB C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 74 14 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7B 02 00 35 04 06 00 0B 97 82 0F A5 B3 A0 FB B3 27 03 A7 C7 A2 [23:57:39]CheckFolder [23:57:39]dirname=/storage/ofd_packets [23:57:39]CheckFolder done [23:57:39]ProducePacketName [23:57:39]name=ofd_packets/00162686 [23:57:39]NVStorageSaveData ofd_packets/00162686 [23:57:39]File name is /storage/ofd_packets/00162686 [23:57:39]Write 301 bytes [23:57:39]NVStorageSaveData done [23:57:39]OFDSenderStorePacket done [23:57:39]KKMCreateOFDPacket done [23:57:39]NVStorageSaveData kkm_last_timestamp [23:57:39]File name is /storage/kkm_last_timestamp [23:57:39]Write 4 bytes [23:57:39]NVStorageSaveData done [23:57:39]ExternCall_PrintAddStr [23:57:39]wPrintStart [23:57:39]Write to MH i2c: 01 00 00 DE 32 10 [23:57:39]Write i2c OK [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: 01 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: 01 07 00 [23:57:39]MH_I2C_Read... [23:57:39]Read from MH i2c: 01 07 00 DE 32 00 00 00 00 00 FF 0F 25 [23:57:39]RasterBufferAndPrint [23:57:39]line Счет N : (1)1319266 [23:57:39]line ИНН: 02508201610067 [23:57:39]line Контрольно-Кассовый Чек [23:57:39]line ПРОДАЖА [23:57:39]line ТРК (МРК, ГНК) : 43 [23:57:39]line Товар: 2710124130 [23:57:39]line Аи-92-К-5 [23:57:39]line 4.530 * 66.30 [23:57:39]line = 300.34 [23:57:39]line НДС 12% НСП 1% [23:57:39]line > о реализуемом товаре [23:57:39]line ИТОГО: 300.34 [23:57:39]line НСП 1% : 2.66 [23:57:39]line НДС 12% : 31.89 [23:57:39]line Наличными: 0.00 [23:57:39]line Безнал.: 300.34 [23:57:39]line Место: АЗС № 140 "Партнер Нефть" [23:57:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:57:39]line СНО: Общий режим [23:57:39]line Чек 354 13.07.2024 23:57 [23:57:39]line Смена: 462 ФФД: 1.0 [23:57:39]line ЗНМ: 0300000129 [23:57:39]line РНМ: 0000000000090858 [23:57:39]line Версия ККМ: 001 [23:57:39]line Платежная система: АКБ Кыргызстан [23:57:39]line ФМ: 0000000000874899 [23:57:39]line ФД: 162686 [23:57:39]line ФПД: 12745350030771 [23:57:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240713T235740&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162686&fm=12745350030771&tin=02508201610067®Number=0000000000090858&sum=30034 [23:57:39]OFD Sender: Processing packet 162686 [packets to send 106, broken 105] [23:57:39]ProducePacketName [23:57:39]name=ofd_packets/00162686 [23:57:39]OFD Sender: To server: pG, [23:57:39]CommunicateWithHost lk.salyk.kg:30040 [23:57:39]ConnectInit lk.salyk.kg [23:57:39]written 0, free lines is 4095 [23:57:40]Connected sock=10 [23:57:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 13 A7 07 01 AB C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 11 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 52 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 52 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 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 52 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 74 14 93 66 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7B 02 00 35 04 06 00 0B 97 82 0F A5 B3 A0 FB B3 27 03 A7 C7 A2 [23:57:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 C5 69 47 00 29 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7E 7B 02 00 F4 03 04 00 82 C0 92 66 B6 04 01 00 00 3B DF C3 9B 23 5A 9F C9 [23:57:40]CommunicateWithHost err = 0 [23:57:40]CheckOFDResponse [23:57:40]1017 (14) - 77093643461234 [23:57:40]1041 (16) - 0000000000874899 [23:57:40]1040 (4) - 162686 [23:57:40]1012 (4) - 13.07.2024 17:59 [23:57:40]1206 (1) - 0 [23:57:40]OFD Sender: Remove packet 162686 [23:57:40]ProducePacketName [23:57:40]name=ofd_packets/00162686 [23:57:40]NVStorageDeleteData [23:57:40]Write to MH i2c: 01 00 00 08 33 3B [23:57:40]Write i2c OK [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: 01 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: 01 07 00 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: 01 07 00 08 33 00 00 00 00 00 E6 0C 34 [23:57:40]RasterBufferAndPrint [23:57:40]line [23:57:40]line [23:57:40]line [23:57:40]line [23:57:40]line [23:57:40]written 0, free lines is 3308 [23:57:40]MH_Cut [23:57:40]Write to MH i2c: D1 01 00 0F 33 01 14 [23:57:40]Write i2c OK [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: D1 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: D1 01 00 [23:57:40]MH_I2C_Read... [23:57:40]Read from MH i2c: D1 01 00 0F 33 00 13 [23:57:40]Write to MH i2c: 01 00 00 10 33 43 [23:57:40]Write i2c OK [23:57:40]MH_I2C_Read... [23:57:40]OFD Sender: No OFD packet to send [23:57:41]*** Cut start [23:57:41]*** Purtial cut [23:57:41]*** Stage 1: CUTSNS_PIN = 1 [23:57:41]Read from MH i2c: 01 [23:57:41]MH_I2C_Read... [23:57:41]*** Stop cut motor [23:57:41]*** Cut end [23:57:41]Read from MH i2c: 01 07 00 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: 01 07 00 10 33 00 00 00 00 00 FF 0F 58 [23:57:41]process_action close_receipt done [23:57:41]requested_data is exist [23:57:41]produce_requested_data [23:57:41]requested_item fm.sn is exist - process it [23:57:41]wFMCommunicate request_size=4 [23:57:41]MH_SAM_APDU [23:57:41]CAPDU: 80 11 00 00 [23:57:41]Write to MH i2c: E2 08 00 11 33 80 11 00 00 00 00 00 00 BE [23:57:41]Write i2c OK [23:57:41]MH_I2C_Read... [23:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:41]Read from MH i2c: E2 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 17 00 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 17 00 11 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 1E [23:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:57:41]wFMCommunicate OK [23:57:41]requested_item fd.num is exist - process it [23:57:41]SAM_PROTO_GetFieldsCounters [23:57:41]wFMCommunicate request_size=4 [23:57:41]MH_SAM_APDU [23:57:41]CAPDU: 80 13 00 00 [23:57:41]Write to MH i2c: E2 08 00 12 33 80 13 00 00 00 00 00 00 C1 [23:57:41]Write i2c OK [23:57:41]MH_I2C_Read... [23:57:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:41]Read from MH i2c: E2 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 62 00 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 62 00 12 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [23:57:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:41]wFMCommunicate OK [23:57:41]SAM_PROTO_GetFieldsCounters done [23:57:41]requested_item shift.num is exist - process it [23:57:41]requested_item shift.opened is exist - process it [23:57:41]req_shift_opened [23:57:41]FM_GetShiftState [23:57:41]SAM_PROTO_GetShiftState [23:57:41]wFMCommunicate request_size=4 [23:57:41]MH_SAM_APDU [23:57:41]CAPDU: 80 13 01 00 [23:57:41]Write to MH i2c: E2 08 00 13 33 80 13 01 00 00 00 00 00 C3 [23:57:41]Write i2c OK [23:57:41]MH_I2C_Read... [23:57:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:41]Read from MH i2c: E2 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 0E 00 [23:57:41]MH_I2C_Read... [23:57:41]Read from MH i2c: E2 0E 00 13 33 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 BD [23:57:41]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:57:41]wFMCommunicate OK [23:57:41]SAM_PROTO_GetShiftState done [23:57:41]FM_GetShiftState done [23:57:41]req_shift_opened done [23:57:41]requested_item shift.open_date is exist - process it [23:57:41]req_shift_open_date [23:57:41]req_shift_open_date done [23:57:41]produce_requested_data done [23:57:41]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162686,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:57:41]process_action_free close_receipt [23:57:41]json_value_free [23:57:41]json_value_free done [23:57:41]process_json_proto returns [23:57:41]Send response to host [23:57:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162686,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:57:41]free response buf [23:57:41]execute_script done [23:57:41]execute_script returns [23:57:41]free content buf [23:57:41]Sock 7.Close socket [23:57:41]Sock 7.Thread stoped [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:01]accept exits with 9 [23:59:01]New connection [23:59:01]New thread 3067510116 created [23:59:01]Thread 3067366756 joined [23:59:01]Waiting for new connection... [23:59:01] Sock 9.Parse request [23:59:01]Sock 9.Check first char [23:59:01]Sock 9.First char is OK [23:59:01]request: POST /json_proto HTTP/1.0 [23:59:01]Method: POST [23:59:01]URL: /json_proto [23:59:01]Method is POST - this is cgi request [23:59:01]url: /json_proto [23:59:01]query_string will be loaded in cgi processing [23:59:01]execute_cgi json_proto POST (null) [23:59:01]execute_cgi path=json_proto method=POST [23:59:01]POST find Content-Length [23:59:01]Host: 172.17.39.67:8080 [23:59:01]Content-Length: 215 [23:59:01]Content-Type: application/json [23:59:01] [23:59:01]POST finish read [23:59:01]Found Content-Length = 215 [23:59:01]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" ] } } [23:59:01]execute_script... [23:59:01]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" ] } } [23:59:01]POST & json_proto [23:59:01]process_json_proto [23:59:01]json parsed OK: [23:59:01]protocol is kg_v1.0 [23:59:01]action value=get_value [23:59:01]process_action get_value [23:59:01]cmd_get_value [23:59:01]process_action get_value done [23:59:01]requested_data is exist [23:59:01]produce_requested_data [23:59:01]requested_item kkm.sn is exist - process it [23:59:01]requested_item kkm.ver is exist - process it [23:59:01]requested_item fm.sn is exist - process it [23:59:01]wFMCommunicate request_size=4 [23:59:01]MH_SAM_APDU [23:59:01]CAPDU: 80 11 00 00 [23:59:01]Write to MH i2c: E2 08 00 14 33 80 11 00 00 00 00 00 00 C1 [23:59:01]Write i2c OK [23:59:01]MH_I2C_Read... [23:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:01]Read from MH i2c: E2 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 17 00 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 17 00 14 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 21 [23:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:59:01]wFMCommunicate OK [23:59:01]requested_item fd.num is exist - process it [23:59:01]SAM_PROTO_GetFieldsCounters [23:59:01]wFMCommunicate request_size=4 [23:59:01]MH_SAM_APDU [23:59:01]CAPDU: 80 13 00 00 [23:59:01]Write to MH i2c: E2 08 00 15 33 80 13 00 00 00 00 00 00 C4 [23:59:01]Write i2c OK [23:59:01]MH_I2C_Read... [23:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:01]Read from MH i2c: E2 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 62 00 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 62 00 15 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [23:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:01]wFMCommunicate OK [23:59:01]SAM_PROTO_GetFieldsCounters done [23:59:01]requested_item shift.num is exist - process it [23:59:01]requested_item shift.opened is exist - process it [23:59:01]req_shift_opened [23:59:01]FM_GetShiftState [23:59:01]SAM_PROTO_GetShiftState [23:59:01]wFMCommunicate request_size=4 [23:59:01]MH_SAM_APDU [23:59:01]CAPDU: 80 13 01 00 [23:59:01]Write to MH i2c: E2 08 00 16 33 80 13 01 00 00 00 00 00 C6 [23:59:01]Write i2c OK [23:59:01]MH_I2C_Read... [23:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:01]Read from MH i2c: E2 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 0E 00 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 0E 00 16 33 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 C0 [23:59:01]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:59:01]wFMCommunicate OK [23:59:01]SAM_PROTO_GetShiftState done [23:59:01]FM_GetShiftState done [23:59:01]req_shift_opened done [23:59:01]requested_item shift.open_date is exist - process it [23:59:01]req_shift_open_date [23:59:01]req_shift_open_date done [23:59:01]produce_requested_data done [23:59:01]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162686,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:59:01]process_action_free get_value [23:59:01]json_value_free [23:59:01]json_value_free done [23:59:01]process_json_proto returns [23:59:01]Send response to host [23:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162686,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:59:01]free response buf [23:59:01]execute_script done [23:59:01]execute_script returns [23:59:01]free content buf [23:59:01]Sock 9.Close socket [23:59:01]Sock 9.Thread stoped [23:59:01]accept exits with 7 [23:59:01]New connection [23:59:01]New thread 3067366756 created [23:59:01]Thread 3067510116 joined [23:59:01]Waiting for new connection... [23:59:01] Sock 7.Parse request [23:59:01]Sock 7.Check first char [23:59:01]Sock 7.First char is OK [23:59:01]request: POST /json_proto HTTP/1.0 [23:59:01]Method: POST [23:59:01]URL: /json_proto [23:59:01]Method is POST - this is cgi request [23:59:01]url: /json_proto [23:59:01]query_string will be loaded in cgi processing [23:59:01]execute_cgi json_proto POST (null) [23:59:01]execute_cgi path=json_proto method=POST [23:59:01]POST find Content-Length [23:59:01]Host: 172.17.39.67:8080 [23:59:01]Content-Length: 331 [23:59:01]Content-Type: application/json [23:59:01] [23:59:01]POST finish read [23:59:01]Found Content-Length = 331 [23:59:01]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" ] } } [23:59:01]execute_script... [23:59:01]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" ] } } [23:59:01]POST & json_proto [23:59:01]process_json_proto [23:59:01]json parsed OK: [23:59:01]protocol is kg_v1.0 [23:59:01]action value=get_value [23:59:01]process_action get_value [23:59:01]cmd_get_value [23:59:01]process_action get_value done [23:59:01]requested_data is exist [23:59:01]produce_requested_data [23:59:01]requested_item fm.sale.total is exist - process it [23:59:01]SAM_PROTO_GetFMData [23:59:01]wFMCommunicate request_size=4 [23:59:01]MH_SAM_APDU [23:59:01]CAPDU: 80 13 03 00 [23:59:01]Write to MH i2c: E2 08 00 17 33 80 13 03 00 00 00 00 00 C9 [23:59:01]Write i2c OK [23:59:01]MH_I2C_Read... [23:59:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:02]Read from MH i2c: E2 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 17 33 00 C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 A0 [23:59:02]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:59:02]wFMCommunicate OK [23:59:02]wFMCommunicate request_size=4 [23:59:02]MH_SAM_APDU [23:59:02]CAPDU: 80 17 00 00 [23:59:02]Write to MH i2c: E2 08 00 18 33 80 17 00 00 00 00 00 00 CB [23:59:02]Write i2c OK [23:59:02]MH_I2C_Read... [23:59:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:02]Read from MH i2c: E2 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 18 33 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 04 [23:59:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:59:02]wFMCommunicate OK [23:59:02]wFMCommunicate request_size=4 [23:59:02]MH_SAM_APDU [23:59:02]CAPDU: 80 17 00 00 [23:59:02]Write to MH i2c: E2 08 00 19 33 80 17 00 00 00 00 00 00 CC [23:59:02]Write i2c OK [23:59:02]MH_I2C_Read... [23:59:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:02]Read from MH i2c: E2 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 19 33 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 6C [23:59: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 [23:59:02]wFMCommunicate OK [23:59:02]wFMCommunicate request_size=4 [23:59:02]MH_SAM_APDU [23:59:02]CAPDU: 80 17 00 00 [23:59:02]Write to MH i2c: E2 08 00 1A 33 80 17 00 00 00 00 00 00 CD [23:59:02]Write i2c OK [23:59:02]MH_I2C_Read... [23:59:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:03]Read from MH i2c: E2 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 FD 00 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 FD 00 1A 33 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 52 [23:59: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 [23:59:03]wFMCommunicate OK [23:59:03]wFMCommunicate request_size=4 [23:59:03]MH_SAM_APDU [23:59:03]CAPDU: 80 17 00 00 [23:59:03]Write to MH i2c: E2 08 00 1B 33 80 17 00 00 00 00 00 00 CE [23:59:03]Write i2c OK [23:59:03]MH_I2C_Read... [23:59:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:59:03]Read from MH i2c: E2 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 DE 00 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 DE 00 1B 33 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AD [23:59:03]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 [23:59:03]wFMCommunicate OK [23:59:03]SAM_PROTO_GetFMData done [23:59:03]requested_item fm.sale_refund.total is exist - process it [23:59:03]requested_item fm.buy.total is exist - process it [23:59:03]requested_item shift.sale.total is exist - process it [23:59:03]SAM_PROTO_GetShiftData [23:59:03]wFMCommunicate request_size=4 [23:59:03]MH_SAM_APDU [23:59:03]CAPDU: 80 13 02 00 [23:59:03]Write to MH i2c: E2 08 00 1C 33 80 13 02 00 00 00 00 00 CD [23:59:03]Write i2c OK [23:59:03]MH_I2C_Read... [23:59:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:03]Read from MH i2c: E2 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 FD 00 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 FD 00 1C 33 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 61 [23:59:03]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [23:59:03]wFMCommunicate OK [23:59:03]wFMCommunicate request_size=4 [23:59:03]MH_SAM_APDU [23:59:03]CAPDU: 80 17 00 00 [23:59:03]Write to MH i2c: E2 08 00 1D 33 80 17 00 00 00 00 00 00 D0 [23:59:03]Write i2c OK [23:59:03]MH_I2C_Read... [23:59:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:04]Read from MH i2c: E2 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 1D 33 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 E9 [23:59:04]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 [23:59:04]wFMCommunicate OK [23:59:04]wFMCommunicate request_size=4 [23:59:04]MH_SAM_APDU [23:59:04]CAPDU: 80 17 00 00 [23:59:04]Write to MH i2c: E2 08 00 1E 33 80 17 00 00 00 00 00 00 D1 [23:59:04]Write i2c OK [23:59:04]MH_I2C_Read... [23:59:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:04]Read from MH i2c: E2 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 1E 33 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 8A [23:59:04]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 [23:59:04]wFMCommunicate OK [23:59:04]wFMCommunicate request_size=4 [23:59:04]MH_SAM_APDU [23:59:04]CAPDU: 80 17 00 00 [23:59:04]Write to MH i2c: E2 08 00 1F 33 80 17 00 00 00 00 00 00 D2 [23:59:04]Write i2c OK [23:59:04]MH_I2C_Read... [23:59:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:04]Read from MH i2c: E2 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 1F 33 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 4A [23:59:04]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 [23:59:04]wFMCommunicate OK [23:59:04]wFMCommunicate request_size=4 [23:59:04]MH_SAM_APDU [23:59:04]CAPDU: 80 17 00 00 [23:59:04]Write to MH i2c: E2 08 00 20 33 80 17 00 00 00 00 00 00 D3 [23:59:04]Write i2c OK [23:59:04]MH_I2C_Read... [23:59:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:59:04]Read from MH i2c: E2 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 CE 00 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 CE 00 20 33 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 B8 [23:59:04]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 [23:59:04]wFMCommunicate OK [23:59:04]SAM_PROTO_GetShiftData done [23:59:04]requested_item shift.sale.total_cash is exist - process it [23:59:04]requested_item shift.sale_refund.total is exist - process it [23:59:04]requested_item shift.sale_refund.total_cash is exist - process it [23:59:04]requested_item shift.buy.total is exist - process it [23:59:04]requested_item shift.buy.total_cash is exist - process it [23:59:04]produce_requested_data done [23:59:04]produce_requested_data return {"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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} [23:59:04]process_action_free get_value [23:59:04]json_value_free [23:59:04]json_value_free done [23:59:04]process_json_proto returns [23:59:04]Send response to host [23:59:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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}}} [23:59:04]free response buf [23:59:04]execute_script done [23:59:04]execute_script returns [23:59:04]free content buf [23:59:04]Sock 7.Close socket [23:59:04]Sock 7.Thread stoped [23:59:05]accept exits with 9 [23:59:05]New connection [23:59:05]New thread 3067510116 created [23:59:05]Thread 3067366756 joined [23:59:05]Waiting for new connection... [23:59:05] Sock 9.Parse request [23:59:05]Sock 9.Check first char [23:59:05]Sock 9.First char is OK [23:59:05]request: POST /json_proto HTTP/1.0 [23:59:05]Method: POST [23:59:05]URL: /json_proto [23:59:05]Method is POST - this is cgi request [23:59:05]url: /json_proto [23:59:05]query_string will be loaded in cgi processing [23:59:05]execute_cgi json_proto POST (null) [23:59:05]execute_cgi path=json_proto method=POST [23:59:05]POST find Content-Length [23:59:05]Host: 172.17.39.67:8080 [23:59:05]Content-Length: 331 [23:59:05]Content-Type: application/json [23:59:05] [23:59:05]POST finish read [23:59:05]Found Content-Length = 331 [23:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:05]execute_script... [23:59:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:05]POST & json_proto [23:59:05]process_json_proto [23:59:05]json parsed OK: [23:59:05]protocol is kg_v1.0 [23:59:05]action value=get_value [23:59:05]process_action get_value [23:59:05]cmd_get_value [23:59:05]process_action get_value done [23:59:05]requested_data is exist [23:59:05]produce_requested_data [23:59:05]requested_item fm.sale.total is exist - process it [23:59:05]SAM_PROTO_GetFMData [23:59:05]wFMCommunicate request_size=4 [23:59:05]MH_SAM_APDU [23:59:05]CAPDU: 80 13 03 00 [23:59:05]Write to MH i2c: E2 08 00 21 33 80 13 03 00 00 00 00 00 D3 [23:59:05]Write i2c OK [23:59:05]MH_I2C_Read... [23:59:05]Read from MH i2c: E2 [23:59:05]MH_I2C_Read... [23:59:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:05]Read from MH i2c: E2 FD 00 [23:59:05]MH_I2C_Read... [23:59:05]Read from MH i2c: E2 FD 00 21 33 00 C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 AA [23:59:05]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:59:05]wFMCommunicate OK [23:59:05]wFMCommunicate request_size=4 [23:59:05]MH_SAM_APDU [23:59:05]CAPDU: 80 17 00 00 [23:59:05]Write to MH i2c: E2 08 00 22 33 80 17 00 00 00 00 00 00 D5 [23:59:05]Write i2c OK [23:59:05]MH_I2C_Read... [23:59:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:05]Read from MH i2c: E2 [23:59:05]MH_I2C_Read... [23:59:05]Read from MH i2c: E2 FD 00 [23:59:05]MH_I2C_Read... [23:59:05]Read from MH i2c: E2 FD 00 22 33 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0E [23:59:05]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:59:05]wFMCommunicate OK [23:59:05]wFMCommunicate request_size=4 [23:59:05]MH_SAM_APDU [23:59:05]CAPDU: 80 17 00 00 [23:59:05]Write to MH i2c: E2 08 00 23 33 80 17 00 00 00 00 00 00 D6 [23:59:05]Write i2c OK [23:59:05]MH_I2C_Read... [23:59:06]OFD Sender: No OFD packet to send [23:59:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:06]Read from MH i2c: E2 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 23 33 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 76 [23:59:06]RAPDU: 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 90 00 [23:59:06]wFMCommunicate OK [23:59:06]wFMCommunicate request_size=4 [23:59:06]MH_SAM_APDU [23:59:06]CAPDU: 80 17 00 00 [23:59:06]Write to MH i2c: E2 08 00 24 33 80 17 00 00 00 00 00 00 D7 [23:59:06]Write i2c OK [23:59:06]MH_I2C_Read... [23:59:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:06]Read from MH i2c: E2 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 24 33 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 5C [23:59:06]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23:59:06]wFMCommunicate OK [23:59:06]wFMCommunicate request_size=4 [23:59:06]MH_SAM_APDU [23:59:06]CAPDU: 80 17 00 00 [23:59:06]Write to MH i2c: E2 08 00 25 33 80 17 00 00 00 00 00 00 D8 [23:59:06]Write i2c OK [23:59:06]MH_I2C_Read... [23:59:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:59:06]Read from MH i2c: E2 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 DE 00 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 DE 00 25 33 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B7 [23:59:06]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 [23:59:07]wFMCommunicate OK [23:59:07]SAM_PROTO_GetFMData done [23:59:07]requested_item fm.sale_refund.total is exist - process it [23:59:07]requested_item fm.buy.total is exist - process it [23:59:07]requested_item shift.sale.total is exist - process it [23:59:07]SAM_PROTO_GetShiftData [23:59:07]wFMCommunicate request_size=4 [23:59:07]MH_SAM_APDU [23:59:07]CAPDU: 80 13 02 00 [23:59:07]Write to MH i2c: E2 08 00 26 33 80 13 02 00 00 00 00 00 D7 [23:59:07]Write i2c OK [23:59:07]MH_I2C_Read... [23:59:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:07]Read from MH i2c: E2 [23:59:07]MH_I2C_Read... [23:59:07]Read from MH i2c: E2 FD 00 [23:59:07]MH_I2C_Read... [23:59:07]Read from MH i2c: E2 FD 00 26 33 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 6B [23:59:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [23:59:07]wFMCommunicate OK [23:59:07]wFMCommunicate request_size=4 [23:59:07]MH_SAM_APDU [23:59:07]CAPDU: 80 17 00 00 [23:59:07]Write to MH i2c: E2 08 00 27 33 80 17 00 00 00 00 00 00 DA [23:59:07]Write i2c OK [23:59:07]MH_I2C_Read... [23:59:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:07]Read from MH i2c: E2 [23:59:07]MH_I2C_Read... [23:59:07]Read from MH i2c: E2 FD 00 [23:59:07]MH_I2C_Read... [23:59:07]Read from MH i2c: E2 FD 00 27 33 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 F3 [23:59:07]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 [23:59:08]wFMCommunicate OK [23:59:08]wFMCommunicate request_size=4 [23:59:08]MH_SAM_APDU [23:59:08]CAPDU: 80 17 00 00 [23:59:08]Write to MH i2c: E2 08 00 28 33 80 17 00 00 00 00 00 00 DB [23:59:08]Write i2c OK [23:59:08]MH_I2C_Read... [23:59:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:08]Read from MH i2c: E2 [23:59:08]MH_I2C_Read... [23:59:08]Read from MH i2c: E2 FD 00 [23:59:08]MH_I2C_Read... [23:59:08]Read from MH i2c: E2 FD 00 28 33 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 94 [23:59:08]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 [23:59:08]wFMCommunicate OK [23:59:08]wFMCommunicate request_size=4 [23:59:08]MH_SAM_APDU [23:59:08]CAPDU: 80 17 00 00 [23:59:08]Write to MH i2c: E2 08 00 29 33 80 17 00 00 00 00 00 00 DC [23:59:08]Write i2c OK [23:59:08]MH_I2C_Read... [23:59:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:08]Read from MH i2c: E2 [23:59:08]MH_I2C_Read... [23:59:08]Read from MH i2c: E2 FD 00 [23:59:08]MH_I2C_Read... [23:59:08]Read from MH i2c: E2 FD 00 29 33 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 54 [23:59:08]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 [23:59:08]wFMCommunicate OK [23:59:08]wFMCommunicate request_size=4 [23:59:08]MH_SAM_APDU [23:59:08]CAPDU: 80 17 00 00 [23:59:08]Write to MH i2c: E2 08 00 2A 33 80 17 00 00 00 00 00 00 DD [23:59:08]Write i2c OK [23:59:08]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 CE 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 CE 00 2A 33 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 C2 [23:59:09]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 [23:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetShiftData done [23:59:09]requested_item shift.sale.total_cash is exist - process it [23:59:09]requested_item shift.sale_refund.total is exist - process it [23:59:09]requested_item shift.sale_refund.total_cash is exist - process it [23:59:09]requested_item shift.buy.total is exist - process it [23:59:09]requested_item shift.buy.total_cash is exist - process it [23:59:09]produce_requested_data done [23:59:09]produce_requested_data return {"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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} [23:59:09]process_action_free get_value [23:59:09]json_value_free [23:59:09]json_value_free done [23:59:09]process_json_proto returns [23:59:09]Send response to host [23:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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}}} [23:59:09]free response buf [23:59:09]execute_script done [23:59:09]execute_script returns [23:59:09]free content buf [23:59:09]Sock 9.Close socket [23:59:09]Sock 9.Thread stoped [23:59:09]accept exits with 7 [23:59:09]New connection [23:59:09]New thread 3067366756 created [23:59:09]Thread 3067510116 joined [23:59:09]Waiting for new connection... [23:59:09] Sock 7.Parse request [23:59:09]Sock 7.Check first char [23:59:09]Sock 7.First char is OK [23:59:09]request: POST /json_proto HTTP/1.0 [23:59:09]Method: POST [23:59:09]URL: /json_proto [23:59:09]Method is POST - this is cgi request [23:59:09]url: /json_proto [23:59:09]query_string will be loaded in cgi processing [23:59:09]execute_cgi json_proto POST (null) [23:59:09]execute_cgi path=json_proto method=POST [23:59:09]POST find Content-Length [23:59:09]Host: 172.17.39.67:8080 [23:59:09]Content-Length: 274 [23:59:09]Content-Type: application/json [23:59:09] [23:59:09]POST finish read [23:59:09]Found Content-Length = 274 [23:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:09]execute_script... [23:59:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:09]POST & json_proto [23:59:09]process_json_proto [23:59:09]json parsed OK: [23:59:09]protocol is kg_v1.0 [23:59:09]action value=x_report [23:59:09]process_action x_report [23:59:09]cmd_x_report [23:59:09]MH_GetDate [23:59:09]Write to MH i2c: F0 00 00 2B 33 4D [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 2B 33 00 CF 14 93 66 86 7C 92 66 2C [23:59:09]GetLastDocTimeStamp 1720915060 [23:59:09]current date 1720915151 [23:59:09]FM_GetShiftState [23:59:09]SAM_PROTO_GetShiftState [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 13 01 00 [23:59:09]Write to MH i2c: E2 08 00 2C 33 80 13 01 00 00 00 00 00 DC [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 0E 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 0E 00 2C 33 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 D6 [23:59:09]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetShiftState done [23:59:09]FM_GetShiftState done [23:59:09]KKMCreateXReportDocument [23:59:09]Load OK [23:59:09]Malloc new data [23:59:09]MH_GetDate [23:59:09]Write to MH i2c: F0 00 00 2D 33 4F [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 2D 33 00 CF 14 93 66 86 7C 92 66 2E [23:59:09]Malloc new data [23:59:09]Malloc new data [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 11 00 00 [23:59:09]Write to MH i2c: E2 08 00 2E 33 80 11 00 00 00 00 00 00 DB [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 17 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 17 00 2E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 3B [23:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetFieldsCounters [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 13 00 00 [23:59:09]Write to MH i2c: E2 08 00 2F 33 80 13 00 00 00 00 00 00 DE [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 62 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 62 00 2F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [23:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetFieldsCounters done [23:59:09]Malloc new data [23:59:09]Malloc new data [23:59:09]Malloc new data [23:59:09]KKMCreateXReportDocument OK [23:59:09]KKMSetXReportData OK [23:59:09]KKMPrepareXReportFMData [23:59:09]SAM_PROTO_GetShiftData [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 13 02 00 [23:59:09]Write to MH i2c: E2 08 00 30 33 80 13 02 00 00 00 00 00 E1 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:10]Read from MH i2c: E2 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 FD 00 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 FD 00 30 33 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 75 [23:59:10]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [23:59:10]wFMCommunicate OK [23:59:10]wFMCommunicate request_size=4 [23:59:10]MH_SAM_APDU [23:59:10]CAPDU: 80 17 00 00 [23:59:10]Write to MH i2c: E2 08 00 31 33 80 17 00 00 00 00 00 00 E4 [23:59:10]Write i2c OK [23:59:10]MH_I2C_Read... [23:59:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:10]Read from MH i2c: E2 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 FD 00 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 FD 00 31 33 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 FD [23:59:10]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 [23:59:10]wFMCommunicate OK [23:59:10]wFMCommunicate request_size=4 [23:59:10]MH_SAM_APDU [23:59:10]CAPDU: 80 17 00 00 [23:59:10]Write to MH i2c: E2 08 00 32 33 80 17 00 00 00 00 00 00 E5 [23:59:10]Write i2c OK [23:59:10]MH_I2C_Read... [23:59:11]OFD Sender: No OFD packet to send [23:59:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 FD 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 FD 00 32 33 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 9E [23:59:11]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 [23:59:11]wFMCommunicate OK [23:59:11]wFMCommunicate request_size=4 [23:59:11]MH_SAM_APDU [23:59:11]CAPDU: 80 17 00 00 [23:59:11]Write to MH i2c: E2 08 00 33 33 80 17 00 00 00 00 00 00 E6 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 FD 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 FD 00 33 33 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 5E [23:59:11]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 [23:59:11]wFMCommunicate OK [23:59:11]wFMCommunicate request_size=4 [23:59:11]MH_SAM_APDU [23:59:11]CAPDU: 80 17 00 00 [23:59:11]Write to MH i2c: E2 08 00 34 33 80 17 00 00 00 00 00 00 E7 [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:59:12]Read from MH i2c: E2 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 CE 00 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 CE 00 34 33 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 CC [23:59:12]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 [23:59:12]wFMCommunicate OK [23:59:12]SAM_PROTO_GetShiftData done [23:59:12]1194 (1197) - счетчики итогов смены [23:59:12] 1134 (4) - 354 - количество чеков со всеми признаками расчетов [23:59:12] 1129 (158) - счетчики операций «приход» [23:59:12] 1135 (4) - 354 - количество чеков по признаку расчетов [23:59:12] 1201 (4) - 458086.63 - общая итоговая сумма в чеках [23:59:12] 1136 (4) - 302359.00 - итоговая сумма в чеках наличными [23:59:12] 1138 (3) - 155727.63 - итоговая сумма в чеках безналичными [23:59:12] 1024 (123) - суммы налогов [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 0% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1006 (12) - суммы НДС [23:59:12] 1010 (1) - 12% - код ставки НДС [23:59:12] 1011 (3) - 48657.42 - сумма НДС по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (12) - суммы НСП [23:59:12] 1014 (1) - 1% - код ставки НСП [23:59:12] 1015 (3) - 4054.56 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 2% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 3% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 5% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1130 (141) - счетчики операций «возврат прихода» [23:59:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:12] 1024 (117) - суммы налогов [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 0% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 12% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 2% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 3% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 5% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1131 (141) - счетчики операций «расход» [23:59:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:12] 1024 (117) - суммы налогов [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 0% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 12% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 2% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 3% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 5% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1132 (141) - счетчики операций «возврат расхода» [23:59:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:12] 1024 (117) - суммы налогов [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 0% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 12% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 2% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 3% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 5% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1133 (588) - - счетчики коррекции - не используются [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1194 (04AA) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1134 (046E) [23:59:12]Malloc new data [23:59:12]Processing tag 1129 (0469) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1135 (046F) [23:59:12]Malloc new data [23:59:12]Processing tag 1201 (04B1) [23:59:12]Malloc new data [23:59:12]Processing tag 1136 (0470) [23:59:12]Malloc new data [23:59:12]Processing tag 1138 (0472) [23:59:12]Malloc new data [23:59:12]Processing tag 1024 (0400) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]SetTLVBufToDocument err=0 [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1130 (046A) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1135 (046F) [23:59:12]Malloc new data [23:59:12]Processing tag 1201 (04B1) [23:59:12]Malloc new data [23:59:12]Processing tag 1136 (0470) [23:59:12]Malloc new data [23:59:12]Processing tag 1138 (0472) [23:59:12]Malloc new data [23:59:12]Processing tag 1024 (0400) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]SetTLVBufToDocument err=0 [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1131 (046B) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1135 (046F) [23:59:12]Malloc new data [23:59:12]Processing tag 1201 (04B1) [23:59:12]Malloc new data [23:59:12]Processing tag 1136 (0470) [23:59:12]Malloc new data [23:59:12]Processing tag 1138 (0472) [23:59:12]Malloc new data [23:59:12]Processing tag 1024 (0400) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1132 (046C) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1135 (046F) [23:59:13]Malloc new data [23:59:13]Processing tag 1201 (04B1) [23:59:13]Malloc new data [23:59:13]Processing tag 1136 (0470) [23:59:13]Malloc new data [23:59:13]Processing tag 1138 (0472) [23:59:13]Malloc new data [23:59:13]Processing tag 1024 (0400) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1006 (03EE) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1010 (03F2) [23:59:13]Malloc new data [23:59:13]Processing tag 1011 (03F3) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1006 (03EE) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1010 (03F2) [23:59:13]Malloc new data [23:59:13]Processing tag 1011 (03F3) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1133 (046D) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Malloc new data [23:59:13]SAM_PROTO_GetFMData [23:59:13]wFMCommunicate request_size=4 [23:59:13]MH_SAM_APDU [23:59:13]CAPDU: 80 13 03 00 [23:59:13]Write to MH i2c: E2 08 00 35 33 80 13 03 00 00 00 00 00 E7 [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 FD 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 FD 00 35 33 00 C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 BE [23:59:13]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:59:14]wFMCommunicate OK [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 17 00 00 [23:59:14]Write to MH i2c: E2 08 00 36 33 80 17 00 00 00 00 00 00 E9 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 FD 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 FD 00 36 33 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 22 [23:59:14]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:59:14]wFMCommunicate OK [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 17 00 00 [23:59:14]Write to MH i2c: E2 08 00 37 33 80 17 00 00 00 00 00 00 EA [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 FD 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 FD 00 37 33 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 8A [23:59:14]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 [23:59:15]wFMCommunicate OK [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 17 00 00 [23:59:15]Write to MH i2c: E2 08 00 38 33 80 17 00 00 00 00 00 00 EB [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 FD 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 FD 00 38 33 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 70 [23:59:15]RAPDU: 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 90 00 [23:59:15]wFMCommunicate OK [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 17 00 00 [23:59:15]Write to MH i2c: E2 08 00 39 33 80 17 00 00 00 00 00 00 EC [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 DE 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 DE 00 39 33 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CB [23:59:15]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 [23:59:16]wFMCommunicate OK [23:59:16]SAM_PROTO_GetFMData done [23:59:16]FM_GetFMData:85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A 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 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF OFD Sender: No OFD packet to send [23:59:16]03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:59:16]oper:6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:16]total:5E 08 35 54 03 [23:59:16]Malloc new data [23:59:16]oper:6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A 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 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:16]total:94 DE 5F [23:59:16]Malloc new data [23:59:16]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 [23:59:17]total: [23:59:17]Malloc new data [23:59:17]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 [23:59:17]total: [23:59:17]Malloc new data [23:59:17]KKMPrepareXReportFMData err=0 [23:59:17]Х отчет ИНН: 02508201610067 Кассир: Шамбеталиев А. 13.07.2024 23:59 Смена: 266 РНМ: 0000000000090858 ЗНМ: 0300000129 СНО: Общий режим Всего чеков: 354 ИТОГИ ПРИХОД Чеков: 354 Общий итог: 458086.63 Итого наличными: 302359.00 Итого безнал.: 155727.63 НДС 0% : 0.00 НДС 12% : 48657.42 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4054.56 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 302359.00 НС Приход: 142976635.82 НС Возвр.Прихода: 62829.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874899 [23:59:17]StoreToDocumentArchive [23:59:17]MH_GetDate [23:59:17]Write to MH i2c: F0 00 00 3A 33 5C [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: F0 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: F0 09 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: F0 09 00 3A 33 00 D7 14 93 66 86 7C 92 66 43 [23:59:17]shift 266 fd 1720915159 [23:59:17]Create dir for shift 0266 [23:59:17]save to /storage/0266/doc_1720915159 [23:59:17]save last doc name /storage/0266/doc_1720915159 to /storage/kkm_last_doc_name [23:59:17]save OK [23:59:17]Clear old archive folders... [23:59:17]NVStorageSaveData kkm_last_timestamp [23:59:17]File name is /storage/kkm_last_timestamp [23:59:17]Write 4 bytes [23:59:17]NVStorageSaveData done [23:59:17]ExternCall_PrintAddStr [23:59:17]wPrintStart [23:59:17]Write to MH i2c: 01 00 00 3B 33 6E [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 07 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 07 00 3B 33 00 00 00 00 00 FF 0F 83 [23:59:17]RasterBufferAndPrint [23:59:17]line Х отчет [23:59:17]line ИНН: 02508201610067 [23:59:17]line Кассир: Шамбеталиев А. [23:59:17]line 13.07.2024 23:59 [23:59:17]line Смена: 266 [23:59:17]line РНМ: 0000000000090858 [23:59:17]line ЗНМ: 0300000129 [23:59:17]line СНО: Общий режим [23:59:17]line Всего чеков: 354 [23:59:17]line ИТОГИ ПРИХОД [23:59:17]line Чеков: 354 [23:59:17]line Общий итог: 458086.63 [23:59:17]line Итого наличными: 302359.00 [23:59:17]line Итого безнал.: 155727.63 [23:59:17]line НДС 0% : 0.00 [23:59:17]line НДС 12% : 48657.42 [23:59:17]line НСП 0% : 0.00 [23:59:17]line НСП 1,50% : 0.00 [23:59:17]line НСП 0,50% : 0.00 [23:59:17]line НСП 5% : 0.00 [23:59:17]line НСП 3% : 0.00 [23:59:17]line НСП 2% : 0.00 [23:59:17]line НСП 1% : 4054.56 [23:59:17]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:59:17]line Чеков: 0 [23:59:17]line Общий итог: 0.00 [23:59:17]line Итого наличными: 0.00 [23:59:17]line Итого безнал.: 0.00 [23:59:17]line НДС 0% : 0.00 [23:59:17]line НДС 12% : 0.00 [23:59:17]line НСП 0% : 0.00 [23:59:17]line НСП 1,50% : 0.00 [23:59:17]line НСП 0,50% : 0.00 [23:59:17]line НСП 5% : 0.00 [23:59:17]line НСП 3% : 0.00 [23:59:17]line НСП 2% : 0.00 [23:59:17]line НСП 1% : 0.00 [23:59:17]line ИТОГИ РАСХОД [23:59:17]line Чеков: 0 [23:59:17]line Общий итог: 0.00 [23:59:17]line Итого наличными: 0.00 [23:59:17]line Итого безнал.: 0.00 [23:59:17]line НДС 0% : 0.00 [23:59:17]line НДС 12% : 0.00 [23:59:17]line НСП 0% : 0.00 [23:59:17]line НСП 1,50% : 0.00 [23:59:17]line НСП 0,50% : 0.00 [23:59:17]line НСП 5% : 0.00 [23:59:17]line НСП 3% : 0.00 [23:59:17]line НСП 2% : 0.00 [23:59:17]line НСП 1% : 0.00 [23:59:17]line ИТОГИ ВОЗВРАТ РАСХОДА [23:59:17]line Чеков: 0 [23:59:17]line Общий итог: 0.00 [23:59:17]line Итого наличными: 0.00 [23:59:17]line Итого безнал.: 0.00 [23:59:17]line НДС 0% : 0.00 [23:59:17]line НДС 12% : 0.00 [23:59:17]line НСП 0% : 0.00 [23:59:17]line НСП 1,50% : 0.00 [23:59:17]line НСП 0,50% : 0.00 [23:59:17]line НСП 5% : 0.00 [23:59:17]line НСП 3% : 0.00 [23:59:17]line НСП 2% : 0.00 [23:59:17]line НСП 1% : 0.00 [23:59:17]line Сумма внесений: 0.00 [23:59:17]line Сумма выплат: 0.00 [23:59:17]line Нал. в кассе: 302359.00 [23:59:17]line НС Приход: 142976635.82 [23:59:17]line НС Возвр.Прихода: 62829.00 [23:59:17]line НС Расход: 0.00 [23:59:17]line НС Возвр.Расхода: 0.00 [23:59:17]line ФМ: 0000000000874899 [23:59:17]written 0, free lines is 4095 [23:59:17]Write to MH i2c: 01 00 00 86 33 B9 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 07 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 07 00 86 33 00 00 00 00 00 AC 0A 76 [23:59:18]RasterBufferAndPrint [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]written 0, free lines is 2766 [23:59:18]MH_Cut [23:59:18]Write to MH i2c: D1 01 00 8D 33 01 92 [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 01 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 01 00 8D 33 00 91 [23:59:18]Write to MH i2c: 01 00 00 8E 33 C1 [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:19]*** Cut start [23:59:19]*** Purtial cut [23:59:19]*** CUTSNS_PIN = 0 [23:59:19]*** Stage 1: CUTSNS_PIN = 1 [23:59:21]Read from MH i2c: 01 [23:59:21]MH_I2C_Read... [23:59:21]*** Stop cut motor [23:59:21]*** Cut end [23:59:21]Read from MH i2c: 01 07 00 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: 01 07 00 8E 33 00 00 00 00 00 FF 0F D6 [23:59:21]process_action x_report done [23:59:21]requested_data is exist [23:59:21]produce_requested_data [23:59:21]requested_item fd.num is exist - process it [23:59:21]SAM_PROTO_GetFieldsCounters [23:59:21]wFMCommunicate request_size=4 [23:59:21]MH_SAM_APDU [23:59:21]CAPDU: 80 13 00 00 [23:59:21]Write to MH i2c: E2 08 00 8F 33 80 13 00 00 00 00 00 00 3E [23:59:21]Write i2c OK [23:59:21]MH_I2C_Read... [23:59:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:21]Read from MH i2c: E2 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: E2 62 00 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: E2 62 00 8F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [23:59:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:21]wFMCommunicate OK [23:59:21]SAM_PROTO_GetFieldsCounters done [23:59:21]requested_item shift.num is exist - process it [23:59:21]requested_item shift.opened is exist - process it [23:59:21]req_shift_opened [23:59:21]FM_GetShiftState [23:59:21]SAM_PROTO_GetShiftState [23:59:21]wFMCommunicate request_size=4 [23:59:21]MH_SAM_APDU [23:59:21]CAPDU: 80 13 01 00 [23:59:21]Write to MH i2c: E2 08 00 90 33 80 13 01 00 00 00 00 00 40 [23:59:21]OFD Sender: No OFD packet to send [23:59:21]Write i2c OK [23:59:21]MH_I2C_Read... [23:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:21]Read from MH i2c: E2 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: E2 0E 00 [23:59:21]MH_I2C_Read... [23:59:21]Read from MH i2c: E2 0E 00 90 33 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3A [23:59:21]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:59:21]wFMCommunicate OK [23:59:21]SAM_PROTO_GetShiftState done [23:59:21]FM_GetShiftState done [23:59:21]req_shift_opened done [23:59:21]requested_item shift.open_date is exist - process it [23:59:21]req_shift_open_date [23:59:21]req_shift_open_date done [23:59:21]produce_requested_data done [23:59:21]produce_requested_data return {"fd.num":162686,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:59:21]process_action_free x_report [23:59:21]json_value_free [23:59:21]json_value_free done [23:59:21]process_json_proto returns [23:59:21]Send response to host [23:59:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":162686,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:59:21]free response buf [23:59:21]execute_script done [23:59:21]execute_script returns [23:59:21]free content buf [23:59:21]Sock 7.Close socket [23:59:21]Sock 7.Thread stoped [23:59:26]OFD Sender: No OFD packet to send [23:59:31]OFD Sender: No OFD packet to send [23:59:36]OFD Sender: No OFD packet to send [23:59:41]OFD Sender: No OFD packet to send [23:59:45]accept exits with 10 [23:59:45]New connection [23:59:45]New thread 3067510116 created [23:59:45]Thread 3067366756 joined [23:59:45]Waiting for new connection... [23:59:45] Sock 10.Parse request [23:59:45]Sock 10.Check first char [23:59:45]Sock 10.First char is OK [23:59:45]request: POST /json_proto HTTP/1.0 [23:59:45]Method: POST [23:59:45]URL: /json_proto [23:59:45]Method is POST - this is cgi request [23:59:45]url: /json_proto [23:59:45]query_string will be loaded in cgi processing [23:59:45]execute_cgi json_proto POST (null) [23:59:45]execute_cgi path=json_proto method=POST [23:59:45]POST find Content-Length [23:59:45]Host: 172.17.39.67:8080 [23:59:45]Content-Length: 215 [23:59:45]Content-Type: application/json [23:59:45] [23:59:45]POST finish read [23:59:45]Found Content-Length = 215 [23:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:45]execute_script... [23:59:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:45]POST & json_proto [23:59:45]process_json_proto [23:59:45]json parsed OK: [23:59:45]protocol is kg_v1.0 [23:59:45]action value=get_value [23:59:45]process_action get_value [23:59:45]cmd_get_value [23:59:45]process_action get_value done [23:59:45]requested_data is exist [23:59:45]produce_requested_data [23:59:45]requested_item kkm.sn is exist - process it [23:59:45]requested_item kkm.ver is exist - process it [23:59:45]requested_item fm.sn is exist - process it [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 11 00 00 [23:59:45]Write to MH i2c: E2 08 00 91 33 80 11 00 00 00 00 00 00 3E [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 17 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 17 00 91 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9E [23:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [23:59:45]wFMCommunicate OK [23:59:45]requested_item fd.num is exist - process it [23:59:45]SAM_PROTO_GetFieldsCounters [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 13 00 00 [23:59:45]Write to MH i2c: E2 08 00 92 33 80 13 00 00 00 00 00 00 41 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 62 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 62 00 92 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [23:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7E 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:45]wFMCommunicate OK [23:59:45]SAM_PROTO_GetFieldsCounters done [23:59:45]requested_item shift.num is exist - process it [23:59:45]requested_item shift.opened is exist - process it [23:59:45]req_shift_opened [23:59:45]FM_GetShiftState [23:59:45]SAM_PROTO_GetShiftState [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 13 01 00 [23:59:45]Write to MH i2c: E2 08 00 93 33 80 13 01 00 00 00 00 00 43 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:45]Read from MH i2c: E2 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 0E 00 [23:59:45]MH_I2C_Read... [23:59:45]Read from MH i2c: E2 0E 00 93 33 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 3D [23:59:45]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:59:45]wFMCommunicate OK [23:59:45]SAM_PROTO_GetShiftState done [23:59:45]FM_GetShiftState done [23:59:45]req_shift_opened done [23:59:45]requested_item shift.open_date is exist - process it [23:59:45]req_shift_open_date [23:59:45]req_shift_open_date done [23:59:45]produce_requested_data done [23:59:45]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162686,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979} [23:59:45]process_action_free get_value [23:59:45]json_value_free [23:59:45]json_value_free done [23:59:45]process_json_proto returns [23:59:45]Send response to host [23:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162686,"shift.num":462,"shift.opened":1,"shift.open_date":1720828979}}} [23:59:45]free response buf [23:59:45]execute_script done [23:59:45]execute_script returns [23:59:45]free content buf [23:59:45]Sock 10.Close socket [23:59:45]Sock 10.Thread stoped [23:59:45]accept exits with 7 [23:59:45]New connection [23:59:45]New thread 3067366756 created [23:59:45]Thread 3067510116 joined [23:59:45]Waiting for new connection... [23:59:45] Sock 7.Parse request [23:59:45]Sock 7.Check first char [23:59:45]Sock 7.First char is OK [23:59:45]request: POST /json_proto HTTP/1.0 [23:59:45]Method: POST [23:59:45]URL: /json_proto [23:59:45]Method is POST - this is cgi request [23:59:45]url: /json_proto [23:59:45]query_string will be loaded in cgi processing [23:59:45]execute_cgi json_proto POST (null) [23:59:45]execute_cgi path=json_proto method=POST [23:59:45]POST find Content-Length [23:59:45]Host: 172.17.39.67:8080 [23:59:45]Content-Length: 331 [23:59:45]Content-Type: application/json [23:59:45] [23:59:45]POST finish read [23:59:45]Found Content-Length = 331 [23:59:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:45]execute_script... [23:59:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:59:45]POST & json_proto [23:59:45]process_json_proto [23:59:45]json parsed OK: [23:59:45]protocol is kg_v1.0 [23:59:45]action value=get_value [23:59:45]process_action get_value [23:59:45]cmd_get_value [23:59:45]process_action get_value done [23:59:45]requested_data is exist [23:59:45]produce_requested_data [23:59:45]requested_item fm.sale.total is exist - process it [23:59:45]SAM_PROTO_GetFMData [23:59:45]wFMCommunicate request_size=4 [23:59:45]MH_SAM_APDU [23:59:45]CAPDU: 80 13 03 00 [23:59:45]Write to MH i2c: E2 08 00 94 33 80 13 03 00 00 00 00 00 46 [23:59:45]Write i2c OK [23:59:45]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 94 33 00 C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 1D [23:59:46]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:59:46]wFMCommunicate OK [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 17 00 00 [23:59:46]Write to MH i2c: E2 08 00 95 33 80 17 00 00 00 00 00 00 48 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 95 33 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 81 [23:59:46]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:59:46]wFMCommunicate OK [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 17 00 00 [23:59:46]Write to MH i2c: E2 08 00 96 33 80 17 00 00 00 00 00 00 49 [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:46]OFD Sender: No OFD packet to send [23:59:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:46]Read from MH i2c: E2 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 [23:59:46]MH_I2C_Read... [23:59:46]Read from MH i2c: E2 FD 00 96 33 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 E9 [23:59:46]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 [23:59:46]wFMCommunicate OK [23:59:46]wFMCommunicate request_size=4 [23:59:46]MH_SAM_APDU [23:59:46]CAPDU: 80 17 00 00 [23:59:46]Write to MH i2c: E2 08 00 97 33 80 17 00 00 00 00 00 00 4A [23:59:46]Write i2c OK [23:59:46]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 FD 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 FD 00 97 33 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 CF [23:59:47]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 [23:59:47]wFMCommunicate OK [23:59:47]wFMCommunicate request_size=4 [23:59:47]MH_SAM_APDU [23:59:47]CAPDU: 80 17 00 00 [23:59:47]Write to MH i2c: E2 08 00 98 33 80 17 00 00 00 00 00 00 4B [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:59:47]Read from MH i2c: E2 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 DE 00 [23:59:47]MH_I2C_Read... [23:59:47]Read from MH i2c: E2 DE 00 98 33 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2A [23:59:47]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 [23:59:47]wFMCommunicate OK [23:59:47]SAM_PROTO_GetFMData done [23:59:47]requested_item fm.sale_refund.total is exist - process it [23:59:47]requested_item fm.buy.total is exist - process it [23:59:47]requested_item shift.sale.total is exist - process it [23:59:47]SAM_PROTO_GetShiftData [23:59:47]wFMCommunicate request_size=4 [23:59:47]MH_SAM_APDU [23:59:47]CAPDU: 80 13 02 00 [23:59:47]Write to MH i2c: E2 08 00 99 33 80 13 02 00 00 00 00 00 4A [23:59:47]Write i2c OK [23:59:47]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 FD 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 FD 00 99 33 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 DE [23:59:48]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [23:59:48]wFMCommunicate OK [23:59:48]wFMCommunicate request_size=4 [23:59:48]MH_SAM_APDU [23:59:48]CAPDU: 80 17 00 00 [23:59:48]Write to MH i2c: E2 08 00 9A 33 80 17 00 00 00 00 00 00 4D [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:48]Read from MH i2c: E2 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 FD 00 [23:59:48]MH_I2C_Read... [23:59:48]Read from MH i2c: E2 FD 00 9A 33 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 66 [23:59:48]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 [23:59:48]wFMCommunicate OK [23:59:48]wFMCommunicate request_size=4 [23:59:48]MH_SAM_APDU [23:59:48]CAPDU: 80 17 00 00 [23:59:48]Write to MH i2c: E2 08 00 9B 33 80 17 00 00 00 00 00 00 4E [23:59:48]Write i2c OK [23:59:48]MH_I2C_Read... [23:59:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:49]Read from MH i2c: E2 [23:59:49]MH_I2C_Read... [23:59:49]Read from MH i2c: E2 FD 00 [23:59:49]MH_I2C_Read... [23:59:49]Read from MH i2c: E2 FD 00 9B 33 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 07 [23:59:49]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 [23:59:49]wFMCommunicate OK [23:59:49]wFMCommunicate request_size=4 [23:59:49]MH_SAM_APDU [23:59:49]CAPDU: 80 17 00 00 [23:59:49]Write to MH i2c: E2 08 00 9C 33 80 17 00 00 00 00 00 00 4F [23:59:49]Write i2c OK [23:59:49]MH_I2C_Read... [23:59:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:49]Read from MH i2c: E2 [23:59:49]MH_I2C_Read... [23:59:49]Read from MH i2c: E2 FD 00 [23:59:49]MH_I2C_Read... [23:59:49]Read from MH i2c: E2 FD 00 9C 33 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 C7 [23:59:49]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 [23:59:49]wFMCommunicate OK [23:59:49]wFMCommunicate request_size=4 [23:59:49]MH_SAM_APDU [23:59:49]CAPDU: 80 17 00 00 [23:59:49]Write to MH i2c: E2 08 00 9D 33 80 17 00 00 00 00 00 00 50 [23:59:49]Write i2c OK [23:59:49]MH_I2C_Read... [23:59:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:59:49]Read from MH i2c: E2 [23:59:49]MH_I2C_Read... [23:59:49]Read from MH i2c: E2 CE 00 [23:59:49]MH_I2C_Read... [23:59:49]Read from MH i2c: E2 CE 00 9D 33 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 35 [23:59:50]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 [23:59:50]wFMCommunicate OK [23:59:50]SAM_PROTO_GetShiftData done [23:59:50]requested_item shift.sale.total_cash is exist - process it [23:59:50]requested_item shift.sale_refund.total is exist - process it [23:59:50]requested_item shift.sale_refund.total_cash is exist - process it [23:59:50]requested_item shift.buy.total is exist - process it [23:59:50]requested_item shift.buy.total_cash is exist - process it [23:59:50]produce_requested_data done [23:59:50]produce_requested_data return {"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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} [23:59:50]process_action_free get_value [23:59:50]json_value_free [23:59:50]json_value_free done [23:59:50]process_json_proto returns [23:59:50]Send response to host [23:59:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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}}} [23:59:50]free response buf [23:59:50]execute_script done [23:59:50]execute_script returns [23:59:50]free content buf [23:59:50]Sock 7.Close socket [23:59:50]Sock 7.Thread stoped [23:59:50]accept exits with 9 [23:59:50]New connection [23:59:50]New thread 3067510116 created [23:59:50]Thread 3067366756 joined [23:59:50]Waiting for new connection... [23:59:50] Sock 9.Parse request [23:59:50]Sock 9.Check first char [23:59:50]Sock 9.First char is OK [23:59:50]request: POST /json_proto HTTP/1.0 [23:59:50]Method: POST [23:59:50]URL: /json_proto [23:59:50]Method is POST - this is cgi request [23:59:50]url: /json_proto [23:59:50]query_string will be loaded in cgi processing [23:59:50]execute_cgi json_proto POST (null) [23:59:50]execute_cgi path=json_proto method=POST [23:59:50]POST find Content-Length [23:59:50]Host: 172.17.39.67:8080 [23:59:50]Content-Length: 331 [23:59:50]Content-Type: application/json [23:59:50] [23:59:50]POST finish read [23:59:50]Found Content-Length = 331 [23:59:50]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" ] } } [23:59:50]execute_script... [23:59:50]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" ] } } [23:59:50]POST & json_proto [23:59:50]process_json_proto [23:59:50]json parsed OK: [23:59:50]protocol is kg_v1.0 [23:59:50]action value=get_value [23:59:50]process_action get_value [23:59:50]cmd_get_value [23:59:50]process_action get_value done [23:59:50]requested_data is exist [23:59:50]produce_requested_data [23:59:50]requested_item fm.sale.total is exist - process it [23:59:50]SAM_PROTO_GetFMData [23:59:50]wFMCommunicate request_size=4 [23:59:50]MH_SAM_APDU [23:59:50]CAPDU: 80 13 03 00 [23:59:50]Write to MH i2c: E2 08 00 9E 33 80 13 03 00 00 00 00 00 50 [23:59:50]Write i2c OK [23:59:50]MH_I2C_Read... [23:59:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:50]Read from MH i2c: E2 [23:59:50]MH_I2C_Read... [23:59:50]Read from MH i2c: E2 FD 00 [23:59:50]MH_I2C_Read... [23:59:50]Read from MH i2c: E2 FD 00 9E 33 00 C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 27 [23:59:50]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [23:59:50]wFMCommunicate OK [23:59:50]wFMCommunicate request_size=4 [23:59:50]MH_SAM_APDU [23:59:50]CAPDU: 80 17 00 00 [23:59:50]Write to MH i2c: E2 08 00 9F 33 80 17 00 00 00 00 00 00 52 [23:59:50]Write i2c OK [23:59:50]MH_I2C_Read... [23:59:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:51]Read from MH i2c: E2 [23:59:51]MH_I2C_Read... [23:59:51]Read from MH i2c: E2 FD 00 [23:59:51]MH_I2C_Read... [23:59:51]Read from MH i2c: E2 FD 00 9F 33 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8B [23:59:51]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:59:51]wFMCommunicate OK [23:59:51]wFMCommunicate request_size=4 [23:59:51]MH_SAM_APDU [23:59:51]CAPDU: 80 17 00 00 [23:59:51]Write to MH i2c: E2 08 00 A0 33 80 17 00 00 00 00 00 00 53 [23:59:51]Write i2c OK [23:59:51]MH_I2C_Read... [23:59:51]OFD Sender: No OFD packet to send [23:59:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:51]Read from MH i2c: E2 [23:59:51]MH_I2C_Read... [23:59:51]Read from MH i2c: E2 FD 00 [23:59:51]MH_I2C_Read... [23:59:51]Read from MH i2c: E2 FD 00 A0 33 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 F3 [23:59:51]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 [23:59:51]wFMCommunicate OK [23:59:51]wFMCommunicate request_size=4 [23:59:51]MH_SAM_APDU [23:59:51]CAPDU: 80 17 00 00 [23:59:51]Write to MH i2c: E2 08 00 A1 33 80 17 00 00 00 00 00 00 54 [23:59:51]Write i2c OK [23:59:51]MH_I2C_Read... [23:59:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:52]Read from MH i2c: E2 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 A1 33 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 D9 [23:59:52]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 [23:59:52]wFMCommunicate OK [23:59:52]wFMCommunicate request_size=4 [23:59:52]MH_SAM_APDU [23:59:52]CAPDU: 80 17 00 00 [23:59:52]Write to MH i2c: E2 08 00 A2 33 80 17 00 00 00 00 00 00 55 [23:59:52]Write i2c OK [23:59:52]MH_I2C_Read... [23:59:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [23:59:52]Read from MH i2c: E2 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 DE 00 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 DE 00 A2 33 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 34 [23:59:52]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 [23:59:52]wFMCommunicate OK [23:59:52]SAM_PROTO_GetFMData done [23:59:52]requested_item fm.sale_refund.total is exist - process it [23:59:52]requested_item fm.buy.total is exist - process it [23:59:52]requested_item shift.sale.total is exist - process it [23:59:52]SAM_PROTO_GetShiftData [23:59:52]wFMCommunicate request_size=4 [23:59:52]MH_SAM_APDU [23:59:52]CAPDU: 80 13 02 00 [23:59:52]Write to MH i2c: E2 08 00 A3 33 80 13 02 00 00 00 00 00 54 [23:59:52]Write i2c OK [23:59:52]MH_I2C_Read... [23:59:53]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:53]Read from MH i2c: E2 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 FD 00 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 FD 00 A3 33 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 E8 [23:59:53]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [23:59:53]wFMCommunicate OK [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 17 00 00 [23:59:53]Write to MH i2c: E2 08 00 A4 33 80 17 00 00 00 00 00 00 57 [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:53]Read from MH i2c: E2 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 FD 00 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 FD 00 A4 33 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 70 [23:59:53]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 [23:59:54]wFMCommunicate OK [23:59:54]wFMCommunicate request_size=4 [23:59:54]MH_SAM_APDU [23:59:54]CAPDU: 80 17 00 00 [23:59:54]Write to MH i2c: E2 08 00 A5 33 80 17 00 00 00 00 00 00 58 [23:59:54]Write i2c OK [23:59:54]MH_I2C_Read... [23:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:54]Read from MH i2c: E2 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 A5 33 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 11 [23:59:54]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 [23:59:54]wFMCommunicate OK [23:59:54]wFMCommunicate request_size=4 [23:59:54]MH_SAM_APDU [23:59:54]CAPDU: 80 17 00 00 [23:59:54]Write to MH i2c: E2 08 00 A6 33 80 17 00 00 00 00 00 00 59 [23:59:54]Write i2c OK [23:59:54]MH_I2C_Read... [23:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:54]Read from MH i2c: E2 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 A6 33 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 D1 [23:59:54]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 [23:59:55]wFMCommunicate OK [23:59:55]wFMCommunicate request_size=4 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 17 00 00 [23:59:55]Write to MH i2c: E2 08 00 A7 33 80 17 00 00 00 00 00 00 5A [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:59:55]Read from MH i2c: E2 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 CE 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 CE 00 A7 33 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 3F [23:59: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 [23:59:55]wFMCommunicate OK [23:59:55]SAM_PROTO_GetShiftData done [23:59:55]requested_item shift.sale.total_cash is exist - process it [23:59:55]requested_item shift.sale_refund.total is exist - process it [23:59:55]requested_item shift.sale_refund.total_cash is exist - process it [23:59:55]requested_item shift.buy.total is exist - process it [23:59:55]requested_item shift.buy.total_cash is exist - process it [23:59:55]produce_requested_data done [23:59:55]produce_requested_data return {"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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} [23:59:55]process_action_free get_value [23:59:55]json_value_free [23:59:55]json_value_free done [23:59:55]process_json_proto returns [23:59:55]Send response to host [23:59:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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}}} [23:59:55]free response buf [23:59:55]execute_script done [23:59:55]execute_script returns [23:59:55]free content buf [23:59:55]Sock 9.Close socket [23:59:55]Sock 9.Thread stoped [23:59:55]accept exits with 7 [23:59:55]New connection [23:59:55]New thread 3067366756 created [23:59:55]Thread 3067510116 joined [23:59:55]Waiting for new connection... [23:59:55] Sock 7.Parse request [23:59:55]Sock 7.Check first char [23:59:55]Sock 7.First char is OK [23:59:55]request: POST /json_proto HTTP/1.0 [23:59:55]Method: POST [23:59:55]URL: /json_proto [23:59:55]Method is POST - this is cgi request [23:59:55]url: /json_proto [23:59:55]query_string will be loaded in cgi processing [23:59:55]execute_cgi json_proto POST (null) [23:59:55]execute_cgi path=json_proto method=POST [23:59:55]POST find Content-Length [23:59:55]Host: 172.17.39.67:8080 [23:59:55]Content-Length: 277 [23:59:55]Content-Type: application/json [23:59:55] [23:59:55]POST finish read [23:59:55]Found Content-Length = 277 [23:59:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:55]execute_script... [23:59:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:55]POST & json_proto [23:59:55]process_json_proto [23:59:55]json parsed OK: [23:59:55]protocol is kg_v1.0 [23:59:55]action value=close_shift [23:59:55]process_action close_shift [23:59:55]cmd_close_shift [23:59:55]MH_GetDate [23:59:55]Write to MH i2c: F0 00 00 A8 33 CA [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: F0 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: F0 09 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: F0 09 00 A8 33 00 FD 14 93 66 86 7C 92 66 D7 [23:59:55]GetLastDocTimeStamp 1720915151 [23:59:55]current date 1720915197 [23:59:55]FM_GetShiftState [23:59:55]SAM_PROTO_GetShiftState [23:59:55]wFMCommunicate request_size=4 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 13 01 00 [23:59:55]Write to MH i2c: E2 08 00 A9 33 80 13 01 00 00 00 00 00 59 [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:55]Read from MH i2c: E2 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 0E 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 0E 00 A9 33 00 09 00 01 33 C4 91 66 00 00 00 00 90 00 53 [23:59:55]RAPDU: 09 00 01 33 C4 91 66 00 00 00 00 90 00 [23:59:55]wFMCommunicate OK [23:59:55]SAM_PROTO_GetShiftState done [23:59:55]FM_GetShiftState done [23:59:55]KKMCreateCloseShiftDocument [23:59:55]Load OK [23:59:55]Malloc new data [23:59:55]MH_GetDate [23:59:55]Write to MH i2c: F0 00 00 AA 33 CC [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: F0 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: F0 09 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: F0 09 00 AA 33 00 FE 14 93 66 86 7C 92 66 DA [23:59:55]Malloc new data [23:59:55]Malloc new data [23:59:55]Malloc new data [23:59:55]Malloc new data [23:59:55]KKMCreateCloseShiftDocument OK [23:59:55]KKMSetCloseShiftData OK [23:59:55]ProcessDocumentItem done err = 0, tmpTLVsize=76 [23:59:55]tlvbuf is 007B26D0 [23:59:55]KKMLoadAndSignCloseShiftData [23:59:55]SAM_PROTO_ProcessDocument [23:59:55]wFMCommunicate request_size=9 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 15 01 00 04 05 00 4C 00 [23:59:55]Write to MH i2c: E2 0C 00 AB 33 80 15 01 00 04 00 05 00 4C 00 00 00 B6 [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:55]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:59:55]Read from MH i2c: E2 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 03 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 03 00 AB 33 00 90 00 52 [23:59:55]RAPDU: 90 00 [23:59:55]wFMCommunicate OK [23:59:55]wFMCommunicate request_size=23 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:59:55]Write to MH i2c: E2 1A 00 AC 33 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 54 [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:55]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:55]Read from MH i2c: E2 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 03 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 03 00 AC 33 00 90 00 53 [23:59:55]RAPDU: 90 00 [23:59:55]wFMCommunicate OK [23:59:55]wFMCommunicate request_size=35 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E [23:59:55]Write to MH i2c: E2 26 00 AD 33 80 15 02 00 1E 00 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E 00 00 DB [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 03 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 03 00 AD 33 00 90 00 54 [23:59:56]RAPDU: 90 00 [23:59:56]wFMCommunicate OK [23:59:56]wFMCommunicate request_size=13 [23:59:56]MH_SAM_APDU [23:59:56]CAPDU: 80 15 02 00 08 F4 03 04 00 FE 14 93 66 [23:59:56]Write to MH i2c: E2 10 00 AE 33 80 15 02 00 08 00 F4 03 04 00 FE 14 93 66 00 00 77 [23:59:56]Write i2c OK [23:59:56]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 03 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 03 00 AE 33 00 90 00 55 [23:59:56]RAPDU: 90 00 [23:59:56]wFMCommunicate OK [23:59:56]wFMCommunicate request_size=25 [23:59:56]MH_SAM_APDU [23:59:56]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 [23:59:56]Write to MH i2c: E2 1C 00 AF 33 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 00 00 C9 [23:59:56]Write i2c OK [23:59:56]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 03 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 03 00 AF 33 00 90 00 56 [23:59:56]RAPDU: 90 00 [23:59:56]wFMCommunicate OK [23:59:56]wFMCommunicate request_size=4 [23:59:56]MH_SAM_APDU [23:59:56]CAPDU: 80 15 03 00 [23:59:56]Write to MH i2c: E2 08 00 B0 33 80 15 03 00 00 00 00 00 64 [23:59:56]Write i2c OK [23:59:56]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]OFD Sender: No OFD packet to send [23:59:56]Read from MH i2c: E2 FD 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 B0 33 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7B 02 00 0E 04 04 00 CE 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 2B [23:59:56]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7B 02 00 0E 04 04 00 CE 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [23:59:57]wFMCommunicate OK [23:59:57]SAM_PROTO_ProcessDocument answer len = 1268 [23:59:57]SAM_PROTO_ProcessDocument remain to read = 1020 [23:59:57]wFMCommunicate request_size=4 [23:59:57]MH_SAM_APDU [23:59:57]CAPDU: 80 17 00 00 [23:59:57]Write to MH i2c: E2 08 00 B1 33 80 17 00 00 00 00 00 00 64 [23:59:57]Write i2c OK [23:59:57]MH_I2C_Read... [23:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:57]Read from MH i2c: E2 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 FD 00 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 FD 00 B1 33 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 B8 [23:59:57]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 [23:59:57]wFMCommunicate OK [23:59:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:59:57]SAM_PROTO_ProcessDocument remain to read = 770 [23:59:57]wFMCommunicate request_size=4 [23:59:57]MH_SAM_APDU [23:59:57]CAPDU: 80 17 00 00 [23:59:57]Write to MH i2c: E2 08 00 B2 33 80 17 00 00 00 00 00 00 65 [23:59:57]Write i2c OK [23:59:57]MH_I2C_Read... [23:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:57]Read from MH i2c: E2 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 FD 00 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 FD 00 B2 33 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 C7 [23:59:58]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 [23:59:58]wFMCommunicate OK [23:59:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:59:58]SAM_PROTO_ProcessDocument remain to read = 520 [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 17 00 00 [23:59:58]Write to MH i2c: E2 08 00 B3 33 80 17 00 00 00 00 00 00 66 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 FD 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 FD 00 B3 33 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 EE [23:59:58]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 [23:59:58]wFMCommunicate OK [23:59:58]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:59:58]SAM_PROTO_ProcessDocument remain to read = 270 [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 17 00 00 [23:59:58]Write to MH i2c: E2 08 00 B4 33 80 17 00 00 00 00 00 00 67 [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 FD 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 FD 00 B4 33 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 31 [23:59:59]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 [23:59:59]wFMCommunicate OK [23:59:59]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:59:59]SAM_PROTO_ProcessDocument remain to read = 20 [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 17 00 00 [23:59:59]Write to MH i2c: E2 08 00 B5 33 80 17 00 00 00 00 00 00 68 [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 17 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 17 00 B5 33 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 4D 50 FC B6 84 61 90 00 DD [23:59:59]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 4D 50 FC B6 84 61 90 00 [23:59:59]wFMCommunicate OK [23:59:59]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [23:59:59]SAM_PROTO_ProcessDocument done [23:59:59]1209 (1) - 1.0 - номер версии ФФД [23:59:59]1041 (16) - 0000000000874899 - номер ФМ [23:59:59]1040 (4) - 162687 - номер ФД [23:59:59]1038 (4) - 462 - номер смены [23:59:59]1118 (4) - 354 - количество кассовых чеков за смену [23:59:59]1111 (4) - 356 - общее количество ФД за смену [23:59:59]1194 (1197) - счетчики итогов смены [23:59:59] 1134 (4) - 354 - количество чеков со всеми признаками расчетов [23:59:59] 1129 (158) - счетчики операций «приход» [23:59:59] 1135 (4) - 354 - количество чеков по признаку расчетов [23:59:59] 1201 (4) - 458086.63 - общая итоговая сумма в чеках [23:59:59] 1136 (4) - 302359.00 - итоговая сумма в чеках наличными [23:59:59] 1138 (3) - 155727.63 - итоговая сумма в чеках безналичными [23:59:59] 1024 (123) - суммы налогов [23:59:59] 1006 (9) - суммы НДС [23:59:59] 1010 (1) - 0% - код ставки НДС [23:59:59] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:59] 1006 (12) - суммы НДС [23:59:59] 1010 (1) - 12% - код ставки НДС [23:59:59] 1011 (3) - 48657.42 - сумма НДС по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 0% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (12) - суммы НСП [23:59:59] 1014 (1) - 1% - код ставки НСП [23:59:59] 1015 (3) - 4054.56 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 2% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 3% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 5% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 0,50% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 1,50% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1130 (141) - счетчики операций «возврат прихода» [23:59:59] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:59] 1024 (117) - суммы налогов [23:59:59] 1006 (9) - суммы НДС [23:59:59] 1010 (1) - 0% - код ставки НДС [23:59:59] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:59] 1006 (9) - суммы НДС [23:59:59] 1010 (1) - 12% - код ставки НДС [23:59:59] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 0% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 1% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 2% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 3% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 5% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 0,50% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 1,50% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1131 (141) - счетчики операций «расход» [23:59:59] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:59] 1024 (117) - суммы налогов [23:59:59] 1006 (9) - суммы НДС [23:59:59] 1010 (1) - 0% - код ставки НДС [23:59:59] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:59] 1006 (9) - суммы НДС [23:59:59] 1010 (1) - 12% - код ставки НДС [23:59:59] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 0% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 1% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 2% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 3% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 5% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 0,50% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 1,50% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1132 (141) - счетчики операций «возврат расхода» [23:59:59] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:59] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:59] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:59] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:59] 1024 (117) - суммы налогов [23:59:59] 1006 (9) - суммы НДС [23:59:59] 1010 (1) - 0% - код ставки НДС [23:59:59] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:59] 1006 (9) - суммы НДС [23:59:59] 1010 (1) - 12% - код ставки НДС [23:59:59] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 0% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 1% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 2% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 3% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:59] 1007 (9) - суммы НСП [23:59:59] 1014 (1) - 5% - код ставки НСП [23:59:59] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:00] 1007 (9) - суммы НСП [00:00:00] 1014 (1) - 0,50% - код ставки НСП [00:00:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:00] 1007 (9) - суммы НСП [00:00:00] 1014 (1) - 1,50% - код ставки НСП [00:00:00] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:00] 1133 (588) - - счетчики коррекции - не используются [00:00:00]1077 (6) - 85010232542305 - ФПД [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1209 (04B9) [00:00:00]Malloc new data [00:00:00]Processing tag 1041 (0411) [00:00:00]Processing tag 1040 (0410) [00:00:00]Malloc new data [00:00:00]Processing tag 1038 (040E) [00:00:00]Malloc new data [00:00:00]Processing tag 1118 (045E) [00:00:00]Malloc new data [00:00:00]Processing tag 1111 (0457) [00:00:00]Malloc new data [00:00:00]Processing tag 1194 (04AA) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1134 (046E) [00:00:00]Malloc new data [00:00:00]Processing tag 1129 (0469) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1135 (046F) [00:00:00]Malloc new data [00:00:00]Processing tag 1201 (04B1) [00:00:00]Malloc new data [00:00:00]Processing tag 1136 (0470) [00:00:00]Malloc new data [00:00:00]Processing tag 1138 (0472) [00:00:00]Malloc new data [00:00:00]Processing tag 1024 (0400) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1006 (03EE) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1010 (03F2) [00:00:00]Malloc new data [00:00:00]Processing tag 1011 (03F3) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1006 (03EE) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1010 (03F2) [00:00:00]Malloc new data [00:00:00]Processing tag 1011 (03F3) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]SetTLVBufToDocument err=0 [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1130 (046A) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1135 (046F) [00:00:00]Malloc new data [00:00:00]Processing tag 1201 (04B1) [00:00:00]Malloc new data [00:00:00]Processing tag 1136 (0470) [00:00:00]Malloc new data [00:00:00]Processing tag 1138 (0472) [00:00:00]Malloc new data [00:00:00]Processing tag 1024 (0400) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1006 (03EE) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1010 (03F2) [00:00:00]Malloc new data [00:00:00]Processing tag 1011 (03F3) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1006 (03EE) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1010 (03F2) [00:00:00]Malloc new data [00:00:00]Processing tag 1011 (03F3) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]SetTLVBufToDocument err=0 [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1131 (046B) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1135 (046F) [00:00:00]Malloc new data [00:00:00]Processing tag 1201 (04B1) [00:00:00]Malloc new data [00:00:00]Processing tag 1136 (0470) [00:00:00]Malloc new data [00:00:00]Processing tag 1138 (0472) [00:00:00]Malloc new data [00:00:00]Processing tag 1024 (0400) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1006 (03EE) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1010 (03F2) [00:00:00]Malloc new data [00:00:00]Processing tag 1011 (03F3) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1006 (03EE) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1010 (03F2) [00:00:00]Malloc new data [00:00:00]Processing tag 1011 (03F3) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]SetTLVBufToDocument err=0 [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1132 (046C) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1135 (046F) [00:00:00]Malloc new data [00:00:00]Processing tag 1201 (04B1) [00:00:00]Malloc new data [00:00:00]Processing tag 1136 (0470) [00:00:00]Malloc new data [00:00:00]Processing tag 1138 (0472) [00:00:00]Malloc new data [00:00:00]Processing tag 1024 (0400) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1006 (03EE) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1010 (03F2) [00:00:00]Malloc new data [00:00:00]Processing tag 1011 (03F3) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1006 (03EE) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1010 (03F2) [00:00:00]Malloc new data [00:00:00]Processing tag 1011 (03F3) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1007 (03EF) [00:00:00]Load OK [00:00:00]SetTLVBufToDocument [00:00:00]Processing tag 1014 (03F6) [00:00:00]Malloc new data [00:00:00]Processing tag 1015 (03F7) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]SetTLVBufToDocument err=0 [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1133 (046D) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Processing tag 1077 (0435) [00:00:00]Malloc new data [00:00:00]SetTLVBufToDocument err=0 [00:00:00]Malloc new data [00:00:00]SAM_PROTO_GetFMData [00:00:00]wFMCommunicate request_size=4 [00:00:00]MH_SAM_APDU [00:00:00]CAPDU: 80 13 03 00 [00:00:00]Write to MH i2c: E2 08 00 B6 33 80 13 03 00 00 00 00 00 68 [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:01]Read from MH i2c: E2 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 B6 33 00 C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 3F [00:00:01]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [00:00:01]wFMCommunicate OK [00:00:01]wFMCommunicate request_size=4 [00:00:01]MH_SAM_APDU [00:00:01]CAPDU: 80 17 00 00 [00:00:01]Write to MH i2c: E2 08 00 B7 33 80 17 00 00 00 00 00 00 6A [00:00:01]Write i2c OK [00:00:01]MH_I2C_Read... [00:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:01]Read from MH i2c: E2 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 B7 33 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:00:02]02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A3 [00:00:02]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 17 00 00 [00:00:02]Write to MH i2c: E2 08 00 B8 33 80 17 00 00 00 00 00 00 6B [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 FD 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 FD 00 B8 33 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 0B [00:00: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:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 17 00 00 [00:00:02]Write to MH i2c: E2 08 00 B9 33 80 17 00 00 00 00 00 00 6C [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 B9 33 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 F1 [00:00: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:00:03]wFMCommunicate OK [00:00:03]wFMCommunicate request_size=4 [00:00:03]MH_SAM_APDU [00:00:03]CAPDU: 80 17 00 00 [00:00:03]Write to MH i2c: E2 08 00 BA 33 80 17 00 00 00 00 00 00 6D [00:00:03]Write i2c OK [00:00:03]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 DE 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 DE 00 BA 33 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C [00:00:03]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:00:04]wFMCommunicate OK [00:00:04]SAM_PROTO_GetFMData done [00:00:04]Malloc new data [00:00:04]Malloc new data [00:00:04]Malloc new data [00:00:04]Malloc new data [00:00:04]KKMLoadAndSignCloseShiftData err=0 [00:00:04]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шамбеталиев А. 13.07.2024 23:59 Смена: 462 РНМ: 0000000000090858 ЗНМ: 0300000129 СНО: Общий режим Чеков за смену: 354 ФД за смену: 356 Всего чеков: 354 ИТОГИ ПРИХОД Чеков: 354 Общий итог: 458086.63 Итого наличными: 302359.00 Итого безнал.: 155727.63 НДС 0% : 0.00 НДС 12% : 48657.42 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 4054.56 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 302359.00 НС Приход: 142976635.82 НС Возвр.Прихода: 62829.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 162687 ФМ: 0000000000874899 ФПД: 85010232542305 [00:00:04]StoreToDocumentArchive [00:00:04]shift 462 fd 162687 [00:00:04]save to /storage/0462/doc_00162687 [00:00:04]save last doc name /storage/0462/doc_00162687 to /storage/kkm_last_doc_name [00:00:04]save OK [00:00:04]Clear old archive folders... [00:00:04]Remove dir /storage/0266 [00:00:04]opendir ok [00:00:04]file . [00:00:04]file .. [00:00:04]file doc_1720915159 [00:00:04]remove file /storage/0266/doc_1720915159 [00:00:04]remove dir /storage/0266 [00:00:04]NVStorageSaveData kkm_registers [00:00:04]File name is /storage/kkm_registers [00:00:04]Write 24 bytes [00:00:04]NVStorageSaveData done [00:00:04]NVStorageSaveData kkm_registers [00:00:04]File name is /storage/kkm_registers [00:00:04]Write 24 bytes [00:00:04]NVStorageSaveData done [00:00:04]ProcessDocumentItem done err = 0, tmpTLVsize=1387 [00:00:04]tlvbuf is 006A8310 [00:00:04]SAM_PROTO_ClearQueue [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 09 00 00 [00:00:04]Write to MH i2c: E2 08 00 BB 33 80 09 00 00 00 00 00 00 60 [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 BB 33 00 90 00 62 [00:00:04]RAPDU: 90 00 [00:00:04]wFMCommunicate OK [00:00:04]SAM_PROTO_ClearQueue done [00:00:04]KKMCreateOFDPacket [00:00:04]OFDProtocolAddRootSTLVToBuf [00:00:04]FM_MakeSignedData [00:00:04]FM_MakeSignedData [00:00:04]SAM_PROTO_SignData [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 0D 01 02 [00:00:04]Write to MH i2c: E2 08 00 BC 33 80 0D 01 02 00 00 00 00 68 [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 03 00 BC 33 00 90 00 63 [00:00:04]RAPDU: 90 00 [00:00:04]wFMCommunicate OK [00:00:04]wFMCommunicate request_size=255 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 0D 02 02 FA 05 00 6B 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 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F4 03 04 00 FE 14 93 66 0E 04 04 00 CE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 D8 04 6E 04 04 00 62 01 00 00 69 04 A5 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 [00:00:04]Write to MH i2c: E2 02 01 BD 33 80 0D 02 02 FA 00 05 00 6B 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 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F4 03 04 00 FE 14 93 66 0E 04 04 00 CE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 D8 04 6E 04 04 00 62 01 00 00 69 04 A5 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 00 00 6F [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:05]Read from MH i2c: E2 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 03 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 03 00 BD 33 00 90 00 64 [00:00:05]RAPDU: 90 00 [00:00:05]wFMCommunicate OK [00:00:05]wFMCommunicate request_size=255 [00:00:05]MH_SAM_APDU [00:00:05]CAPDU: 80 0D 02 02 FA 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 D0 2F 06 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 [00:00:05]Write to MH i2c: E2 02 01 BE 33 80 0D 02 02 FA 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 D0 2F 06 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 00 00 E1 [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:05]Read from MH i2c: E2 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 03 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 03 00 BE 33 00 90 00 65 [00:00:05]RAPDU: 90 00 [00:00:05]wFMCommunicate OK [00:00:05]wFMCommunicate request_size=255 [00:00:05]MH_SAM_APDU [00:00:05]CAPDU: 80 0D 02 02 FA 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:00:05]Write to MH i2c: E2 02 01 BF 33 80 0D 02 02 FA 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 00 30 [00:00:06]Write i2c OK [00:00:06]MH_I2C_Read... [00:00:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:06]Read from MH i2c: E2 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 03 00 [00:00:06]MH_I2C_Read... [00:00:06]Read from MH i2c: E2 03 00 BF 33 00 90 00 66 [00:00:06]RAPDU: 90 00 [00:00:06]wFMCommunicate OK [00:00:06]wFMCommunicate request_size=255 [00:00:06]MH_SAM_APDU [00:00:06]CAPDU: 80 0D 02 02 FA 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 [00:00:06]Write to MH i2c: E2 02 01 C0 33 80 0D 02 02 FA 00 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 00 00 29 [00:00:06]Write i2c OK [00:00:06]MH_I2C_Read... [00:00:07]OFD Sender: No OFD packet to send [00:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 03 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 03 00 C0 33 00 90 00 67 [00:00:07]RAPDU: 90 00 [00:00:07]wFMCommunicate OK [00:00:07]wFMCommunicate request_size=255 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 0D 02 02 FA 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:07]Write to MH i2c: E2 02 01 C1 33 80 0D 02 02 FA 00 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 FA [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 03 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 03 00 C1 33 00 90 00 68 [00:00:07]RAPDU: 90 00 [00:00:07]wFMCommunicate OK [00:00:07]wFMCommunicate request_size=146 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 0D 02 02 8D 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 4D 50 FC B6 84 61 [00:00:08]Write to MH i2c: E2 95 00 C2 33 80 0D 02 02 8D 00 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 4D 50 FC B6 84 61 00 00 F9 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 03 00 C2 33 00 90 00 69 [00:00:08]RAPDU: 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 0D 03 02 [00:00:08]Write to MH i2c: E2 08 00 C3 33 80 0D 03 02 00 00 00 00 71 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 0B 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 0B 00 C3 33 00 1E D5 35 72 F5 FA 7D 74 90 00 EC [00:00:08]RAPDU: 1E D5 35 72 F5 FA 7D 74 90 00 [00:00:08]wFMCommunicate OK [00:00:08]SAM_PROTO_SignData done [00:00:08]FM_MakeSignedData done [00:00:08]CreateOFDProtocolMessage [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 11 00 00 [00:00:08]Write to MH i2c: E2 08 00 C4 33 80 11 00 00 00 00 00 00 71 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:08]Read from MH i2c: E2 17 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 17 00 C4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D1 [00:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:00:08]wFMCommunicate OK [00:00:08]CreateOFDProtocolMessage done [00:00:08]OFDSenderStorePacket 162687 [00:00:08]StoreOFDPacket docnum=162687 [00:00:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 7F 05 00 00 A7 64 77 05 70 1F 5A 05 01 00 05 00 6B 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 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F4 03 04 00 FE 14 93 66 0E 04 04 00 CE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 D8 04 6E 04 04 00 62 01 00 00 69 04 A5 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 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 7F 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 4D 50 FC B6 84 61 1E D5 35 72 F5 FA 7D 74 [00:00:08]CheckFolder [00:00:08]dirname=/storage/ofd_packets [00:00:08]CheckFolder done [00:00:08]ProducePacketName [00:00:08]name=ofd_packets/00162687 [00:00:08]NVStorageSaveData ofd_packets/00162687 [00:00:08]File name is /storage/ofd_packets/00162687 [00:00:08]Write 1437 bytes [00:00:08]NVStorageSaveData done [00:00:08]OFDSenderStorePacket done [00:00:08]KKMCreateOFDPacket done [00:00:08]NVStorageSaveData kkm_last_timestamp [00:00:08]File name is /storage/kkm_last_timestamp [00:00:08]Write 4 bytes [00:00:08]NVStorageSaveData done [00:00:08]ExternCall_PrintAddStr [00:00:08]wPrintStart [00:00:08]Write to MH i2c: 01 00 00 C5 33 F8 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 01 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 01 07 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: 01 07 00 C5 33 00 00 00 00 00 FF 0F 0D [00:00:09]RasterBufferAndPrint [00:00:09]line Отчет о закрытии смены [00:00:09]line ФФД: 1.0 [00:00:09]line ИНН: 02508201610067 [00:00:09]line Кассир: Шамбеталиев А. [00:00:09]line 13.07.2024 23:59 [00:00:09]line Смена: 462 [00:00:09]line РНМ: 0000000000090858 [00:00:09]line ЗНМ: 0300000129 [00:00:09]line СНО: Общий режим [00:00:09]line Чеков за смену: 354 [00:00:09]line ФД за смену: 356 [00:00:09]line Всего чеков: 354 [00:00:09]line ИТОГИ ПРИХОД [00:00:09]line Чеков: 354 [00:00:09]line Общий итог: 458086.63 [00:00:09]line Итого наличными: 302359.00 [00:00:09]line Итого безнал.: 155727.63 [00:00:09]line НДС 0% : 0.00 [00:00:09]line НДС 12% : 48657.42 [00:00:09]line НСП 0% : 0.00 [00:00:09]line НСП 1,50% : 0.00 [00:00:09]line НСП 0,50% : 0.00 [00:00:09]line НСП 5% : 0.00 [00:00:09]line НСП 3% : 0.00 [00:00:09]line НСП 2% : 0.00 [00:00:09]line НСП 1% : 4054.56 [00:00:09]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:00:09]line Чеков: 0 [00:00:09]line Общий итог: 0.00 [00:00:09]line Итого наличными: 0.00 [00:00:09]line Итого безнал.: 0.00 [00:00:09]line НДС 0% : 0.00 [00:00:09]line НДС 12% : 0.00 [00:00:09]line НСП 0% : 0.00 [00:00:09]line НСП 1,50% : 0.00 [00:00:09]line НСП 0,50% : 0.00 [00:00:09]line НСП 5% : 0.00 [00:00:09]line НСП 3% : 0.00 [00:00:09]line НСП 2% : 0.00 [00:00:09]line НСП 1% : 0.00 [00:00:09]OFD Sender: Processing packet 162687 [packets to send 106, broken 105] [00:00:09]line ИТОГИ РАСХОД [00:00:09]ProducePacketName [00:00:09]line Чеков: 0 [00:00:09]name=ofd_packets/00162687 [00:00:09]line Общий итог: 0.00 [00:00:09]OFD Sender: To server: pG, [00:00:09]line Итого наличными: 0.00 [00:00:09]CommunicateWithHost lk.salyk.kg:30040 [00:00:09]line Итого безнал.: 0.00 [00:00:09]ConnectInit lk.salyk.kg [00:00:09]line НДС 0% : 0.00 [00:00:09]line НДС 12% : 0.00 [00:00:09]line НСП 0% : 0.00 [00:00:09]line НСП 1,50% : 0.00 [00:00:09]line НСП 0,50% : 0.00 [00:00:09]line НСП 5% : 0.00 [00:00:09]line НСП 3% : 0.00 [00:00:09]line НСП 2% : 0.00 [00:00:09]line НСП 1% : 0.00 [00:00:09]line ИТОГИ ВОЗВРАТ РАСХОДА [00:00:09]line Чеков: 0 [00:00:09]line Общий итог: 0.00 [00:00:09]line Итого наличными: 0.00 [00:00:09]line Итого безнал.: 0.00 [00:00:09]line НДС 0% : 0.00 [00:00:09]line НДС 12% : 0.00 [00:00:09]line НСП 0% : 0.00 [00:00:09]line НСП 1,50% : 0.00 [00:00:09]line НСП 0,50% : 0.00 [00:00:09]line НСП 5% : 0.00 [00:00:09]line НСП 3% : 0.00 [00:00:09]line НСП 2% : 0.00 [00:00:09]line НСП 1% : 0.00 [00:00:09]line Сумма внесений: 0.00 [00:00:09]line Сумма выплат: 0.00 [00:00:09]line Нал. в кассе: 302359.00 [00:00:09]line НС Приход: 142976635.82 [00:00:09]line НС Возвр.Прихода: 62829.00 [00:00:09]line НС Расход: 0.00 [00:00:09]line НС Возвр.Расхода: 0.00 [00:00:09]line ФД: 162687 [00:00:09]line ФМ: 0000000000874899 [00:00:09]line ФПД: 85010232542305 [00:00:09]written 0, free lines is 4095 [00:00:09]Connected sock=10 [00:00:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 7F 05 00 00 A7 64 77 05 70 1F 5A 05 01 00 05 00 6B 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 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F4 03 04 00 FE 14 93 66 0E 04 04 00 CE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 AA 04 D8 04 6E 04 04 00 62 01 00 00 69 04 A5 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 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 Write to MH i2c: 03 01 01 00 00 00 04 15 34 F7 49 03 [00:00:09]00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 Write i2c OK [00:00:10]EF MH_I2C_Read... [00:00:10]03 Read from MH i2c: 09 01 00 [00:00:10]F6 MH_I2C_Read... [00:00:10]03 Read from MH i2c: 01 01 00 07 06 00 F7 [00:00:10]03 00 00 D0 04 8D 00 6F 04 04 00 00 00 MH_I2C_Read... [00:00:10]00 Read from MH i2c: 00 01 B1 07 04 00 00 15 00 70 04 00 00 72 04 00 00 00 04 75 34 00 00 EE 00 03 00 09 00 00 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 CD F2 0A 03 27 01 [00:00:10]00 RasterBufferAndPrint [00:00:10]01 line [00:00:10]F3 03 00 00 EF 03 09 00 F6 03 01 00 line [00:00:10]00 line [00:00:10]F7 line [00:00:10]03 line [00:00:10]00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 written 0, free lines is 2958 [00:00:10]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 MH_Cut [00:00:10]00 Write to MH i2c: 03 D1 F7 01 03 00 00 1C 34 00 01 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 22 EF [00:00:10]03 09 00 F6 03 01 00 05 F7 Write i2c OK [00:00:10]03 MH_I2C_Read... [00:00:10]00 Read from MH i2c: 00 D1 EF [00:00:10]03 MH_I2C_Read... [00:00:10]09 00 F6 03 01 00 06 F7 03 00 00 Read from MH i2c: 7A D1 04 01 8D 00 00 [00:00:10]6F MH_I2C_Read... [00:00:10]04 Read from MH i2c: 04 D1 00 01 00 00 00 1C 00 34 00 21 [00:00:10]Write to MH i2c: 01 00 00 1D 34 51 [00:00:10]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 Write i2c OK [00:00:10]03 MH_I2C_Read... [00:00:10]01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 4D 50 FC B6 84 61 1E D5 35 72 F5 FA 7D 74 [00:00:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0E E9 47 00 AD 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 7F 7B 02 00 F4 03 04 00 18 C1 92 66 B6 04 01 00 00 0A 89 68 3F E8 A3 DB A3 [00:00:10]CommunicateWithHost err = 0 [00:00:10]CheckOFDResponse [00:00:10]1017 (14) - 77093643461234 [00:00:10]1041 (16) - 0000000000874899 [00:00:10]1040 (4) - 162687 [00:00:10]1012 (4) - 13.07.2024 18:02 [00:00:10]1206 (1) - 0 [00:00:10]OFD Sender: Remove packet 162687 [00:00:10]ProducePacketName [00:00:10]name=ofd_packets/00162687 [00:00:10]NVStorageDeleteData [00:00:11]*** Cut start [00:00:11]*** Purtial cut [00:00:11]*** Stage 1: CUTSNS_PIN = 1 [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]*** Stop cut motor [00:00:11]*** Cut end [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 1D 34 00 00 00 00 00 FF 0F 66 [00:00:11]process_action close_shift done [00:00:11]requested_data is exist [00:00:11]produce_requested_data [00:00:11]requested_item fd.num is exist - process it [00:00:11]SAM_PROTO_GetFieldsCounters [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 00 00 [00:00:11]Write to MH i2c: E2 08 00 1E 34 80 13 00 00 00 00 00 00 CE [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]OFD Sender: No OFD packet to send [00:00:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 62 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 62 00 1E 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [00:00:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetFieldsCounters done [00:00:11]requested_item shift.num is exist - process it [00:00:11]requested_item shift.opened is exist - process it [00:00:11]req_shift_opened [00:00:11]FM_GetShiftState [00:00:11]SAM_PROTO_GetShiftState [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 01 00 [00:00:11]Write to MH i2c: E2 08 00 1F 34 80 13 01 00 00 00 00 00 D0 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 1F 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DB [00:00:11]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetShiftState done [00:00:11]FM_GetShiftState done [00:00:11]req_shift_opened done [00:00:11]requested_item shift.open_date is exist - process it [00:00:11]req_shift_open_date [00:00:11]FM_GetShiftState [00:00:11]SAM_PROTO_GetShiftState [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 01 00 [00:00:11]Write to MH i2c: E2 08 00 20 34 80 13 01 00 00 00 00 00 D1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 20 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DC [00:00:11]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetShiftState done [00:00:11]FM_GetShiftState done [00:00:11]req_shift_open_date done [00:00:11]produce_requested_data done [00:00:11]produce_requested_data return {"fd.num":162687,"shift.num":462,"shift.opened":0,"shift.open_date":0} [00:00:11]process_action_free close_shift [00:00:11]json_value_free [00:00:11]json_value_free done [00:00:11]process_json_proto returns [00:00:11]Send response to host [00:00:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":162687,"shift.num":462,"shift.opened":0,"shift.open_date":0}}} [00:00:11]free response buf [00:00:11]execute_script done [00:00:11]execute_script returns [00:00:11]free content buf [00:00:11]Sock 7.Close socket [00:00:11]Sock 7.Thread stoped [00:00:16]OFD Sender: No OFD packet to send [00:00:21]OFD Sender: No OFD packet to send [00:00:26]OFD Sender: No OFD packet to send [00:00:31]OFD Sender: No OFD packet to send [00:00:36]OFD Sender: No OFD packet to send [00:00:41]OFD Sender: No OFD packet to send [00:00:46]OFD Sender: No OFD packet to send [00:00:51]OFD Sender: No OFD packet to send [00:00:56]OFD Sender: No OFD packet to send [00:01:01]OFD Sender: No OFD packet to send [00:01:06]OFD Sender: No OFD packet to send [00:01:11]OFD Sender: No OFD packet to send [00:01:16]OFD Sender: No OFD packet to send [00:01:21]OFD Sender: No OFD packet to send [00:01:26]OFD Sender: No OFD packet to send [00:01:31]OFD Sender: No OFD packet to send [00:01:36]OFD Sender: No OFD packet to send [00:01:41]OFD Sender: No OFD packet to send [00:01:46]OFD Sender: No OFD packet to send [00:01:51]OFD Sender: No OFD packet to send [00:01:56]OFD Sender: No OFD packet to send [00:02:01]OFD Sender: No OFD packet to send [00:02:06]OFD Sender: No OFD packet to send [00:02:11]OFD Sender: No OFD packet to send [00:02:16]OFD Sender: No OFD packet to send [00:02:21]OFD Sender: No OFD packet to send [00:02:26]OFD Sender: No OFD packet to send [00:02:31]OFD Sender: No OFD packet to send [00:02:36]OFD Sender: No OFD packet to send [00:02:41]OFD Sender: No OFD packet to send [00:02:46]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]accept exits with 9 [00:04:36]New connection [00:04:36]New thread 3067510116 created [00:04:36]Thread 3067366756 joined [00:04:36]Waiting for new connection... [00:04:36] Sock 9.Parse request [00:04:36]Sock 9.Check first char [00:04:36]Sock 9.First char is OK [00:04:36]request: POST /json_proto HTTP/1.0 [00:04:36]Method: POST [00:04:36]URL: /json_proto [00:04:36]Method is POST - this is cgi request [00:04:36]url: /json_proto [00:04:36]query_string will be loaded in cgi processing [00:04:36]execute_cgi json_proto POST (null) [00:04:36]execute_cgi path=json_proto method=POST [00:04:36]POST find Content-Length [00:04:36]Host: 172.17.39.67:8080 [00:04:36]Content-Length: 215 [00:04:36]Content-Type: application/json [00:04:36] [00:04:36]POST finish read [00:04:36]Found Content-Length = 215 [00:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:36]execute_script... [00:04:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:36]POST & json_proto [00:04:36]process_json_proto [00:04:36]json parsed OK: [00:04:36]protocol is kg_v1.0 [00:04:36]action value=get_value [00:04:36]process_action get_value [00:04:36]cmd_get_value [00:04:36]process_action get_value done [00:04:36]requested_data is exist [00:04:36]produce_requested_data [00:04:36]requested_item kkm.sn is exist - process it [00:04:36]requested_item kkm.ver is exist - process it [00:04:36]requested_item fm.sn is exist - process it [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 11 00 00 [00:04:36]Write to MH i2c: E2 08 00 21 34 80 11 00 00 00 00 00 00 CF [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 17 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 17 00 21 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 2F [00:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:04:36]wFMCommunicate OK [00:04:36]requested_item fd.num is exist - process it [00:04:36]SAM_PROTO_GetFieldsCounters [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 13 00 00 [00:04:36]Write to MH i2c: E2 08 00 22 34 80 13 00 00 00 00 00 00 D2 [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]OFD Sender: No OFD packet to send [00:04:36]Read from MH i2c: E2 62 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 62 00 22 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [00:04:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 7F 7B 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:36]wFMCommunicate OK [00:04:36]SAM_PROTO_GetFieldsCounters done [00:04:36]requested_item shift.num is exist - process it [00:04:36]requested_item shift.opened is exist - process it [00:04:36]req_shift_opened [00:04:36]FM_GetShiftState [00:04:36]SAM_PROTO_GetShiftState [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 13 01 00 [00:04:36]Write to MH i2c: E2 08 00 23 34 80 13 01 00 00 00 00 00 D4 [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 0E 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 0E 00 23 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DF [00:04:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:36]wFMCommunicate OK [00:04:36]SAM_PROTO_GetShiftState done [00:04:36]FM_GetShiftState done [00:04:36]req_shift_opened done [00:04:36]requested_item shift.open_date is exist - process it [00:04:36]req_shift_open_date [00:04:36]FM_GetShiftState [00:04:36]SAM_PROTO_GetShiftState [00:04:36]wFMCommunicate request_size=4 [00:04:36]MH_SAM_APDU [00:04:36]CAPDU: 80 13 01 00 [00:04:36]Write to MH i2c: E2 08 00 24 34 80 13 01 00 00 00 00 00 D5 [00:04:36]Write i2c OK [00:04:36]MH_I2C_Read... [00:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:36]Read from MH i2c: E2 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 0E 00 [00:04:36]MH_I2C_Read... [00:04:36]Read from MH i2c: E2 0E 00 24 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E0 [00:04:36]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:36]wFMCommunicate OK [00:04:36]SAM_PROTO_GetShiftState done [00:04:36]FM_GetShiftState done [00:04:36]req_shift_open_date done [00:04:36]produce_requested_data done [00:04:36]produce_requested_data return {"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162687,"shift.num":462,"shift.opened":0,"shift.open_date":0} [00:04:36]process_action_free get_value [00:04:36]json_value_free [00:04:36]json_value_free done [00:04:36]process_json_proto returns [00:04:36]Send response to host [00:04:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000129","kkm.ver":"001","fm.sn":"0000000000874899","fd.num":162687,"shift.num":462,"shift.opened":0,"shift.open_date":0}}} [00:04:36]free response buf [00:04:36]execute_script done [00:04:36]execute_script returns [00:04:36]free content buf [00:04:36]Sock 9.Close socket [00:04:36]Sock 9.Thread stoped [00:04:36]accept exits with 7 [00:04:36]New connection [00:04:36]New thread 3067366756 created [00:04:36]Thread 3067510116 joined [00:04:36]Waiting for new connection... [00:04:36] Sock 7.Parse request [00:04:36]Sock 7.Check first char [00:04:36]Sock 7.First char is OK [00:04:36]request: POST /json_proto HTTP/1.0 [00:04:36]Method: POST [00:04:36]URL: /json_proto [00:04:36]Method is POST - this is cgi request [00:04:36]url: /json_proto [00:04:36]query_string will be loaded in cgi processing [00:04:36]execute_cgi json_proto POST (null) [00:04:36]execute_cgi path=json_proto method=POST [00:04:36]POST find Content-Length [00:04:36]Host: 172.17.39.67:8080 [00:04:36]Content-Length: 331 [00:04:36]Content-Type: application/json [00:04:36] [00:04:36]POST finish read [00:04:36]Found Content-Length = 331 [00:04:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:36]execute_script... [00:04:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:04:36]POST & json_proto [00:04:36]process_json_proto [00:04:37]json parsed OK: [00:04:37]protocol is kg_v1.0 [00:04:37]action value=get_value [00:04:37]process_action get_value [00:04:37]cmd_get_value [00:04:37]process_action get_value done [00:04:37]requested_data is exist [00:04:37]produce_requested_data [00:04:37]requested_item fm.sale.total is exist - process it [00:04:37]SAM_PROTO_GetFMData [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 13 03 00 [00:04:37]Write to MH i2c: E2 08 00 25 34 80 13 03 00 00 00 00 00 D8 [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 25 34 00 C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 AF [00:04:37]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [00:04:37]wFMCommunicate OK [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 17 00 00 [00:04:37]Write to MH i2c: E2 08 00 26 34 80 17 00 00 00 00 00 00 DA [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:37]Read from MH i2c: E2 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 [00:04:37]MH_I2C_Read... [00:04:37]Read from MH i2c: E2 FD 00 26 34 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 13 [00:04:37]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:37]wFMCommunicate OK [00:04:37]wFMCommunicate request_size=4 [00:04:37]MH_SAM_APDU [00:04:37]CAPDU: 80 17 00 00 [00:04:37]Write to MH i2c: E2 08 00 27 34 80 17 00 00 00 00 00 00 DB [00:04:37]Write i2c OK [00:04:37]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 27 34 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 7B [00:04:38]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:04:38]wFMCommunicate OK [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 17 00 00 [00:04:38]Write to MH i2c: E2 08 00 28 34 80 17 00 00 00 00 00 00 DC [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 FD 00 28 34 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 61 [00:04:38]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:04:38]wFMCommunicate OK [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 17 00 00 [00:04:38]Write to MH i2c: E2 08 00 29 34 80 17 00 00 00 00 00 00 DD [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:04:38]Read from MH i2c: E2 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 DE 00 [00:04:38]MH_I2C_Read... [00:04:38]Read from MH i2c: E2 DE 00 29 34 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BC [00:04:38]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:04:38]wFMCommunicate OK [00:04:38]SAM_PROTO_GetFMData done [00:04:38]requested_item fm.sale_refund.total is exist - process it [00:04:38]requested_item fm.buy.total is exist - process it [00:04:38]requested_item shift.sale.total is exist - process it [00:04:38]SAM_PROTO_GetShiftData [00:04:38]wFMCommunicate request_size=4 [00:04:38]MH_SAM_APDU [00:04:38]CAPDU: 80 13 02 00 [00:04:38]Write to MH i2c: E2 08 00 2A 34 80 13 02 00 00 00 00 00 DC [00:04:38]Write i2c OK [00:04:38]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 2A 34 00 B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 70 [00:04:39]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 62 01 00 00 69 04 9E 00 6F 04 04 00 62 01 00 00 B1 04 04 00 17 FC BA 02 70 04 04 00 FC 5C CD 01 72 04 03 00 1B 9F ED 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 CE 3E 4A 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 D0 2F 06 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:04:39]wFMCommunicate OK [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 17 00 00 [00:04:39]Write to MH i2c: E2 08 00 2B 34 80 17 00 00 00 00 00 00 DF [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 2B 34 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 F8 [00:04:39]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:04:39]wFMCommunicate OK [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 17 00 00 [00:04:39]Write to MH i2c: E2 08 00 2C 34 80 17 00 00 00 00 00 00 E0 [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 2C 34 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 99 [00:04:39]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:04:39]wFMCommunicate OK [00:04:39]wFMCommunicate request_size=4 [00:04:39]MH_SAM_APDU [00:04:39]CAPDU: 80 17 00 00 [00:04:39]Write to MH i2c: E2 08 00 2D 34 80 17 00 00 00 00 00 00 E1 [00:04:39]Write i2c OK [00:04:39]MH_I2C_Read... [00:04:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:39]Read from MH i2c: E2 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 [00:04:39]MH_I2C_Read... [00:04:39]Read from MH i2c: E2 FD 00 2D 34 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 59 [00:04:39]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:04:40]wFMCommunicate OK [00:04:40]wFMCommunicate request_size=4 [00:04:40]MH_SAM_APDU [00:04:40]CAPDU: 80 17 00 00 [00:04:40]Write to MH i2c: E2 08 00 2E 34 80 17 00 00 00 00 00 00 E2 [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:04:40]Read from MH i2c: E2 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 CE 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 CE 00 2E 34 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 C7 [00:04:40]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:04:40]wFMCommunicate OK [00:04:40]SAM_PROTO_GetShiftData done [00:04:40]requested_item shift.sale.total_cash is exist - process it [00:04:40]requested_item shift.sale_refund.total is exist - process it [00:04:40]requested_item shift.sale_refund.total_cash is exist - process it [00:04:40]requested_item shift.buy.total is exist - process it [00:04:40]requested_item shift.buy.total_cash is exist - process it [00:04:40]produce_requested_data done [00:04:40]produce_requested_data return {"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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:04:40]process_action_free get_value [00:04:40]json_value_free [00:04:40]json_value_free done [00:04:40]process_json_proto returns [00:04:40]Send response to host [00:04:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.00,"fm.buy.total":0.00,"shift.sale.total":458086.63,"shift.sale.total_cash":302359.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:04:40]free response buf [00:04:40]execute_script done [00:04:40]execute_script returns [00:04:40]free content buf [00:04:40]Sock 7.Close socket [00:04:40]Sock 7.Thread stoped [00:04:40]accept exits with 9 [00:04:40]New connection [00:04:40]New thread 3067510116 created [00:04:40]Thread 3067366756 joined [00:04:40]Waiting for new connection... [00:04:40] Sock 9.Parse request [00:04:40]Sock 9.Check first char [00:04:40]Sock 9.First char is OK [00:04:40]request: POST /json_proto HTTP/1.0 [00:04:40]Method: POST [00:04:40]URL: /json_proto [00:04:40]Method is POST - this is cgi request [00:04:40]url: /json_proto [00:04:40]query_string will be loaded in cgi processing [00:04:40]execute_cgi json_proto POST (null) [00:04:40]execute_cgi path=json_proto method=POST [00:04:40]POST find Content-Length [00:04:40]Host: 172.17.39.67:8080 [00:04:40]Content-Length: 271 [00:04:40]Content-Type: application/json [00:04:40] [00:04:40]POST finish read [00:04:40]Found Content-Length = 271 [00:04:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:40]execute_script... [00:04:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:40]POST & json_proto [00:04:40]process_json_proto [00:04:40]json parsed OK: [00:04:40]protocol is kg_v1.0 [00:04:40]action value=open_shift [00:04:40]process_action open_shift [00:04:40]cmd_open_shift [00:04:40]MH_GetDate [00:04:40]Write to MH i2c: F0 00 00 2F 34 52 [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: F0 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: F0 09 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: F0 09 00 2F 34 00 1A 16 93 66 86 7C 92 66 7E [00:04:40]GetLastDocTimeStamp 1720915198 [00:04:40]current date 1720915482 [00:04:40]FM_GetShiftState [00:04:40]SAM_PROTO_GetShiftState [00:04:40]wFMCommunicate request_size=4 [00:04:40]MH_SAM_APDU [00:04:40]CAPDU: 80 13 01 00 [00:04:40]Write to MH i2c: E2 08 00 30 34 80 13 01 00 00 00 00 00 E1 [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:40]Read from MH i2c: E2 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 0E 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 0E 00 30 34 00 09 00 00 00 00 00 00 00 00 00 00 90 00 EC [00:04:40]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:04:40]wFMCommunicate OK [00:04:40]SAM_PROTO_GetShiftState done [00:04:40]FM_GetShiftState done [00:04:40]KKMCreateOpenShiftDocument [00:04:40]Load OK [00:04:40]Malloc new data [00:04:40]MH_GetDate [00:04:40]Write to MH i2c: F0 00 00 31 34 54 [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: F0 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: F0 09 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: F0 09 00 31 34 00 1B 16 93 66 86 7C 92 66 81 [00:04:40]Malloc new data [00:04:40]KKMCreateOpenShiftDocument OK [00:04:40]KKMSetOpenShiftData OK [00:04:40]ProcessDocumentItem done err = 0, tmpTLVsize=212 [00:04:40]tlvbuf is 00750890 [00:04:40]KKMLoadAndSignOpenShiftData [00:04:40]SAM_PROTO_ProcessDocument [00:04:40]wFMCommunicate request_size=9 [00:04:40]MH_SAM_APDU [00:04:40]CAPDU: 80 15 01 00 04 02 00 D4 00 [00:04:40]Write to MH i2c: E2 0C 00 32 34 80 15 01 00 04 00 02 00 D4 00 00 00 C3 [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:04:40]Read from MH i2c: E2 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 03 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 03 00 32 34 00 90 00 DA [00:04:40]RAPDU: 90 00 [00:04:40]wFMCommunicate OK [00:04:40]wFMCommunicate request_size=23 [00:04:40]MH_SAM_APDU [00:04:40]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:04:40]Write to MH i2c: E2 1A 00 33 34 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 DC [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:40]Read from MH i2c: E2 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 03 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 03 00 33 34 00 90 00 DB [00:04:40]RAPDU: 90 00 [00:04:40]wFMCommunicate OK [00:04:40]wFMCommunicate request_size=34 [00:04:40]MH_SAM_APDU [00:04:40]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E [00:04:40]Write to MH i2c: E2 25 00 34 34 80 15 02 00 1D 00 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E 00 00 A6 [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:40]Read from MH i2c: E2 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 03 00 [00:04:40]MH_I2C_Read... [00:04:40]Read from MH i2c: E2 03 00 34 34 00 90 00 DC [00:04:40]RAPDU: 90 00 [00:04:40]wFMCommunicate OK [00:04:40]wFMCommunicate request_size=96 [00:04:40]MH_SAM_APDU [00:04:40]CAPDU: 80 15 02 00 5B F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 [00:04:40]Write to MH i2c: E2 63 00 35 34 80 15 02 00 5B 00 F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 00 00 FC [00:04:40]Write i2c OK [00:04:40]MH_I2C_Read... [00:04:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:40]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 03 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 03 00 35 34 00 90 00 DD [00:04:41]RAPDU: 90 00 [00:04:41]wFMCommunicate OK [00:04:41]wFMCommunicate request_size=51 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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:04:41]Write to MH i2c: E2 36 00 36 34 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 91 [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 03 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 03 00 36 34 00 90 00 DE [00:04:41]RAPDU: 90 00 [00:04:41]wFMCommunicate OK [00:04:41]wFMCommunicate request_size=13 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 15 02 00 08 F4 03 04 00 1B 16 93 66 [00:04:41]Write to MH i2c: E2 10 00 37 34 80 15 02 00 08 00 F4 03 04 00 1B 16 93 66 00 00 20 [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 03 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 03 00 37 34 00 90 00 DF [00:04:41]RAPDU: 90 00 [00:04:41]wFMCommunicate OK [00:04:41]wFMCommunicate request_size=25 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 [00:04:41]Write to MH i2c: E2 1C 00 38 34 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 00 00 53 [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:04:41]Read from MH i2c: E2 03 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 03 00 38 34 00 90 00 E0 [00:04:41]RAPDU: 90 00 [00:04:41]wFMCommunicate OK [00:04:41]wFMCommunicate request_size=4 [00:04:41]MH_SAM_APDU [00:04:41]CAPDU: 80 15 03 00 [00:04:41]Write to MH i2c: E2 08 00 39 34 80 15 03 00 00 00 00 00 EE [00:04:41]Write i2c OK [00:04:41]MH_I2C_Read... [00:04:41]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:04:41]Read from MH i2c: E2 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 38 00 [00:04:41]MH_I2C_Read... [00:04:41]Read from MH i2c: E2 38 00 39 34 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7B 02 00 0E 04 04 00 CF 01 00 00 35 04 06 00 6C D4 8C 9A 2A A6 90 00 CA [00:04:41]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7B 02 00 0E 04 04 00 CF 01 00 00 35 04 06 00 6C D4 8C 9A 2A A6 90 00 [00:04:41]wFMCommunicate OK [00:04:41]SAM_PROTO_ProcessDocument answer len = 51 [00:04:41]SAM_PROTO_ProcessDocument done [00:04:41]SetTLVBufToDocument [00:04:41]Processing tag 1209 (04B9) [00:04:41]Malloc new data [00:04:41]Processing tag 1041 (0411) [00:04:41]Processing tag 1040 (0410) [00:04:41]Malloc new data [00:04:41]Processing tag 1038 (040E) [00:04:41]Malloc new data [00:04:41]Processing tag 1077 (0435) [00:04:41]Malloc new data [00:04:41]SetTLVBufToDocument err=0 [00:04:41]KKMLoadAndSignOpenShiftData store KKM data [00:04:41]KKMLoadAndSignOpenShiftData err=0 [00:04:41]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Дуйшенбек у Н. Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 Место: АЗС № 140 "Партнер Нефть" 14.07.2024 00:04 Смена: 463 РНМ: 0000000000090858 ЗНМ: 0300000129 ФД: 162688 ФМ: 0000000000874899 ФПД: 119660147780262 [00:04:41]StoreToDocumentArchive [00:04:41]shift 463 fd 162688 [00:04:41]Create dir for shift 0463 [00:04:41]save to /storage/0463/doc_00162688 [00:04:41]save last doc name /storage/0463/doc_00162688 to /storage/kkm_last_doc_name [00:04:41]save OK [00:04:41]Clear old archive folders... [00:04:41]Remove dir /storage/0462 [00:04:41]opendir ok [00:04:41]file . [00:04:41]file .. [00:04:41]file doc_00162332 [00:04:41]remove file /storage/0462/doc_00162332 [00:04:41]file doc_00162333 [00:04:41]remove file /storage/0462/doc_00162333 [00:04:41]file doc_00162334 [00:04:41]remove file /storage/0462/doc_00162334 [00:04:41]file doc_00162335 [00:04:41]remove file /storage/0462/doc_00162335 [00:04:41]file doc_00162336 [00:04:41]remove file /storage/0462/doc_00162336 [00:04:41]file doc_00162337 [00:04:41]remove file /storage/0462/doc_00162337 [00:04:41]file doc_00162338 [00:04:41]remove file /storage/0462/doc_00162338 [00:04:41]file doc_00162339 [00:04:41]remove file /storage/0462/doc_00162339 [00:04:41]file doc_00162340 [00:04:41]remove file /storage/0462/doc_00162340 [00:04:41]file doc_00162341 [00:04:41]remove file /storage/0462/doc_00162341 [00:04:41]file doc_00162342 [00:04:41]remove file /storage/0462/doc_00162342 [00:04:41]file doc_00162343 [00:04:41]remove file /storage/0462/doc_00162343 [00:04:41]file doc_00162344 [00:04:41]remove file /storage/0462/doc_00162344 [00:04:41]file doc_00162345 [00:04:41]remove file /storage/0462/doc_00162345 [00:04:41]file doc_00162346 [00:04:41]remove file /storage/0462/doc_00162346 [00:04:41]file doc_00162347 [00:04:41]remove file /storage/0462/doc_00162347 [00:04:41]file doc_00162348 [00:04:41]remove file /storage/0462/doc_00162348 [00:04:41]file doc_00162349 [00:04:41]remove file /storage/0462/doc_00162349 [00:04:41]file doc_00162350 [00:04:41]remove file /storage/0462/doc_00162350 [00:04:41]file doc_00162351 [00:04:41]remove file /storage/0462/doc_00162351 [00:04:41]file doc_00162352 [00:04:41]remove file /storage/0462/doc_00162352 [00:04:41]file doc_00162353 [00:04:41]remove file /storage/0462/doc_00162353 [00:04:41]file doc_00162354 [00:04:41]remove file /storage/0462/doc_00162354 [00:04:41]file doc_00162355 [00:04:41]remove file /storage/0462/doc_00162355 [00:04:41]file doc_00162356 [00:04:41]remove file /storage/0462/doc_00162356 [00:04:41]file doc_00162357 [00:04:41]remove file /storage/0462/doc_00162357 [00:04:41]file doc_00162358 [00:04:41]remove file /storage/0462/doc_00162358 [00:04:41]file doc_00162359 [00:04:41]remove file /storage/0462/doc_00162359 [00:04:41]file doc_00162360 [00:04:41]remove file /storage/0462/doc_00162360 [00:04:41]file doc_00162361 [00:04:41]remove file /storage/0462/doc_00162361 [00:04:41]file doc_00162362 [00:04:41]remove file /storage/0462/doc_00162362 [00:04:41]file doc_00162363 [00:04:41]remove file /storage/0462/doc_00162363 [00:04:41]file doc_00162364 [00:04:41]remove file /storage/0462/doc_00162364 [00:04:41]file doc_00162365 [00:04:41]remove file /storage/0462/doc_00162365 [00:04:41]file doc_00162366 [00:04:41]remove file /storage/0462/doc_00162366 [00:04:41]file doc_00162367 [00:04:41]remove file /storage/0462/doc_00162367 [00:04:41]file doc_00162368 [00:04:41]remove file /storage/0462/doc_00162368 [00:04:41]file doc_00162369 [00:04:41]remove file /storage/0462/doc_00162369 [00:04:41]file doc_00162370 [00:04:41]remove file /storage/0462/doc_00162370 [00:04:41]file doc_00162371 [00:04:41]remove file /storage/0462/doc_00162371 [00:04:41]file doc_00162372 [00:04:41]remove file /storage/0462/doc_00162372 [00:04:41]file doc_00162373 [00:04:41]remove file /storage/0462/doc_00162373 [00:04:41]file doc_00162374 [00:04:41]remove file /storage/0462/doc_00162374 [00:04:41]file doc_00162375 [00:04:41]remove file /storage/0462/doc_00162375 [00:04:41]file doc_00162376 [00:04:41]remove file /storage/0462/doc_00162376 [00:04:41]file doc_00162377 [00:04:41]remove file /storage/0462/doc_00162377 [00:04:41]file doc_00162378 [00:04:41]remove file /storage/0462/doc_00162378 [00:04:41]file doc_00162379 [00:04:41]remove file /storage/0462/doc_00162379 [00:04:41]file doc_00162380 [00:04:41]remove file /storage/0462/doc_00162380 [00:04:41]file doc_00162381 [00:04:41]remove file /storage/0462/doc_00162381 [00:04:41]file doc_00162382 [00:04:41]remove file /storage/0462/doc_00162382 [00:04:41]file doc_00162383 [00:04:41]remove file /storage/0462/doc_00162383 [00:04:41]file doc_00162384 [00:04:41]remove file /storage/0462/doc_00162384 [00:04:41]file doc_00162385 [00:04:41]remove file /storage/0462/doc_00162385 [00:04:41]file doc_00162386 [00:04:41]remove file /storage/0462/doc_00162386 [00:04:41]file doc_00162387 [00:04:41]remove file /storage/0462/doc_00162387 [00:04:41]file doc_00162388 [00:04:41]remove file /storage/0462/doc_00162388 [00:04:41]file doc_00162389 [00:04:41]remove file /storage/0462/doc_00162389 [00:04:41]file doc_00162390 [00:04:41]remove file /storage/0462/doc_00162390 [00:04:41]file doc_00162391 [00:04:41]remove file /storage/0462/doc_00162391 [00:04:41]file doc_00162392 [00:04:41]remove file /storage/0462/doc_00162392 [00:04:41]file doc_00162393 [00:04:41]remove file /storage/0462/doc_00162393 [00:04:41]file doc_00162394 [00:04:41]remove file /storage/0462/doc_00162394 [00:04:41]file doc_00162395 [00:04:41]remove file /storage/0462/doc_00162395 [00:04:41]file doc_00162396 [00:04:41]remove file /storage/0462/doc_00162396 [00:04:41]file doc_00162397 [00:04:41]remove file /storage/0462/doc_00162397 [00:04:41]file doc_00162398 [00:04:41]remove file /storage/0462/doc_00162398 [00:04:41]file doc_00162399 [00:04:41]remove file /storage/0462/doc_00162399 [00:04:41]file doc_00162400 [00:04:41]remove file /storage/0462/doc_00162400 [00:04:41]file doc_00162401 [00:04:41]remove file /storage/0462/doc_00162401 [00:04:41]file doc_00162402 [00:04:41]remove file /storage/0462/doc_00162402 [00:04:41]file doc_00162403 [00:04:41]remove file /storage/0462/doc_00162403 [00:04:41]file doc_00162404 [00:04:41]remove file /storage/0462/doc_00162404 [00:04:41]file doc_00162405 [00:04:41]remove file /storage/0462/doc_00162405 [00:04:41]file doc_00162406 [00:04:41]remove file /storage/0462/doc_00162406 [00:04:41]file doc_00162407 [00:04:41]remove file /storage/0462/doc_00162407 [00:04:41]file doc_00162408 [00:04:41]remove file /storage/0462/doc_00162408 [00:04:41]file doc_00162409 [00:04:41]remove file /storage/0462/doc_00162409 [00:04:41]file doc_00162410 [00:04:41]remove file /storage/0462/doc_00162410 [00:04:41]file doc_00162411 [00:04:41]remove file /storage/0462/doc_00162411 [00:04:41]file doc_00162412 [00:04:41]remove file /storage/0462/doc_00162412 [00:04:41]file doc_00162413 [00:04:41]remove file /storage/0462/doc_00162413 [00:04:41]file doc_00162414 [00:04:41]remove file /storage/0462/doc_00162414 [00:04:41]file doc_00162415 [00:04:42]remove file /storage/0462/doc_00162415 [00:04:42]OFD Sender: No OFD packet to send [00:04:42]file doc_00162416 [00:04:42]remove file /storage/0462/doc_00162416 [00:04:42]file doc_00162417 [00:04:42]remove file /storage/0462/doc_00162417 [00:04:42]file doc_00162418 [00:04:42]remove file /storage/0462/doc_00162418 [00:04:42]file doc_00162419 [00:04:42]remove file /storage/0462/doc_00162419 [00:04:42]file doc_00162420 [00:04:42]remove file /storage/0462/doc_00162420 [00:04:42]file doc_00162421 [00:04:42]remove file /storage/0462/doc_00162421 [00:04:42]file doc_00162422 [00:04:42]remove file /storage/0462/doc_00162422 [00:04:42]file doc_00162423 [00:04:42]remove file /storage/0462/doc_00162423 [00:04:42]file doc_00162424 [00:04:42]remove file /storage/0462/doc_00162424 [00:04:42]file doc_00162425 [00:04:42]remove file /storage/0462/doc_00162425 [00:04:42]file doc_00162426 [00:04:42]remove file /storage/0462/doc_00162426 [00:04:42]file doc_00162427 [00:04:42]remove file /storage/0462/doc_00162427 [00:04:42]file doc_00162428 [00:04:42]remove file /storage/0462/doc_00162428 [00:04:42]file doc_00162429 [00:04:42]remove file /storage/0462/doc_00162429 [00:04:42]file doc_00162430 [00:04:42]remove file /storage/0462/doc_00162430 [00:04:42]file doc_00162431 [00:04:42]remove file /storage/0462/doc_00162431 [00:04:42]file doc_00162432 [00:04:42]remove file /storage/0462/doc_00162432 [00:04:42]file doc_00162433 [00:04:42]remove file /storage/0462/doc_00162433 [00:04:42]file doc_00162434 [00:04:42]remove file /storage/0462/doc_00162434 [00:04:42]file doc_00162435 [00:04:42]remove file /storage/0462/doc_00162435 [00:04:42]file doc_00162436 [00:04:42]remove file /storage/0462/doc_00162436 [00:04:42]file doc_00162437 [00:04:42]remove file /storage/0462/doc_00162437 [00:04:42]file doc_00162438 [00:04:42]remove file /storage/0462/doc_00162438 [00:04:42]file doc_00162439 [00:04:42]remove file /storage/0462/doc_00162439 [00:04:42]file doc_00162440 [00:04:42]remove file /storage/0462/doc_00162440 [00:04:42]file doc_00162441 [00:04:42]remove file /storage/0462/doc_00162441 [00:04:42]file doc_00162442 [00:04:42]remove file /storage/0462/doc_00162442 [00:04:42]file doc_00162443 [00:04:42]remove file /storage/0462/doc_00162443 [00:04:42]file doc_00162444 [00:04:42]remove file /storage/0462/doc_00162444 [00:04:42]file doc_00162445 [00:04:42]remove file /storage/0462/doc_00162445 [00:04:42]file doc_00162446 [00:04:42]remove file /storage/0462/doc_00162446 [00:04:42]file doc_00162447 [00:04:42]remove file /storage/0462/doc_00162447 [00:04:42]file doc_00162448 [00:04:42]remove file /storage/0462/doc_00162448 [00:04:42]file doc_00162449 [00:04:42]remove file /storage/0462/doc_00162449 [00:04:42]file doc_00162450 [00:04:42]remove file /storage/0462/doc_00162450 [00:04:42]file doc_00162451 [00:04:42]remove file /storage/0462/doc_00162451 [00:04:42]file doc_00162452 [00:04:42]remove file /storage/0462/doc_00162452 [00:04:42]file doc_00162453 [00:04:42]remove file /storage/0462/doc_00162453 [00:04:42]file doc_00162454 [00:04:42]remove file /storage/0462/doc_00162454 [00:04:42]file doc_00162455 [00:04:42]remove file /storage/0462/doc_00162455 [00:04:42]file doc_00162456 [00:04:42]remove file /storage/0462/doc_00162456 [00:04:42]file doc_00162457 [00:04:42]remove file /storage/0462/doc_00162457 [00:04:42]file doc_00162458 [00:04:42]remove file /storage/0462/doc_00162458 [00:04:42]file doc_00162459 [00:04:42]remove file /storage/0462/doc_00162459 [00:04:42]file doc_00162460 [00:04:42]remove file /storage/0462/doc_00162460 [00:04:42]file doc_00162461 [00:04:42]remove file /storage/0462/doc_00162461 [00:04:42]file doc_00162462 [00:04:42]remove file /storage/0462/doc_00162462 [00:04:42]file doc_00162463 [00:04:42]remove file /storage/0462/doc_00162463 [00:04:42]file doc_00162464 [00:04:42]remove file /storage/0462/doc_00162464 [00:04:42]file doc_00162465 [00:04:42]remove file /storage/0462/doc_00162465 [00:04:42]file doc_00162466 [00:04:42]remove file /storage/0462/doc_00162466 [00:04:42]file doc_00162467 [00:04:42]remove file /storage/0462/doc_00162467 [00:04:42]file doc_00162468 [00:04:42]remove file /storage/0462/doc_00162468 [00:04:42]file doc_00162469 [00:04:42]remove file /storage/0462/doc_00162469 [00:04:42]file doc_00162470 [00:04:42]remove file /storage/0462/doc_00162470 [00:04:42]file doc_00162471 [00:04:42]remove file /storage/0462/doc_00162471 [00:04:42]file doc_00162472 [00:04:42]remove file /storage/0462/doc_00162472 [00:04:42]file doc_00162473 [00:04:42]remove file /storage/0462/doc_00162473 [00:04:42]file doc_00162474 [00:04:42]remove file /storage/0462/doc_00162474 [00:04:42]file doc_00162475 [00:04:42]remove file /storage/0462/doc_00162475 [00:04:42]file doc_00162476 [00:04:42]remove file /storage/0462/doc_00162476 [00:04:42]file doc_00162477 [00:04:42]remove file /storage/0462/doc_00162477 [00:04:42]file doc_00162478 [00:04:42]remove file /storage/0462/doc_00162478 [00:04:42]file doc_00162479 [00:04:42]remove file /storage/0462/doc_00162479 [00:04:42]file doc_00162480 [00:04:42]remove file /storage/0462/doc_00162480 [00:04:42]file doc_00162481 [00:04:42]remove file /storage/0462/doc_00162481 [00:04:42]file doc_00162482 [00:04:42]remove file /storage/0462/doc_00162482 [00:04:42]file doc_00162483 [00:04:42]remove file /storage/0462/doc_00162483 [00:04:42]file doc_00162484 [00:04:42]remove file /storage/0462/doc_00162484 [00:04:42]file doc_00162485 [00:04:42]remove file /storage/0462/doc_00162485 [00:04:42]file doc_00162486 [00:04:42]remove file /storage/0462/doc_00162486 [00:04:42]file doc_00162487 [00:04:42]remove file /storage/0462/doc_00162487 [00:04:42]file doc_00162488 [00:04:42]remove file /storage/0462/doc_00162488 [00:04:42]file doc_00162489 [00:04:42]remove file /storage/0462/doc_00162489 [00:04:42]file doc_00162490 [00:04:42]remove file /storage/0462/doc_00162490 [00:04:42]file doc_00162491 [00:04:42]remove file /storage/0462/doc_00162491 [00:04:42]file doc_00162492 [00:04:42]remove file /storage/0462/doc_00162492 [00:04:42]file doc_00162493 [00:04:42]remove file /storage/0462/doc_00162493 [00:04:42]file doc_00162494 [00:04:42]remove file /storage/0462/doc_00162494 [00:04:42]file doc_00162495 [00:04:42]remove file /storage/0462/doc_00162495 [00:04:42]file doc_00162496 [00:04:42]remove file /storage/0462/doc_00162496 [00:04:42]file doc_00162497 [00:04:42]remove file /storage/0462/doc_00162497 [00:04:42]file doc_00162498 [00:04:42]remove file /storage/0462/doc_00162498 [00:04:42]file doc_00162499 [00:04:42]remove file /storage/0462/doc_00162499 [00:04:42]file doc_00162500 [00:04:42]remove file /storage/0462/doc_00162500 [00:04:42]file doc_00162501 [00:04:42]remove file /storage/0462/doc_00162501 [00:04:42]file doc_00162502 [00:04:42]remove file /storage/0462/doc_00162502 [00:04:42]file doc_00162503 [00:04:42]remove file /storage/0462/doc_00162503 [00:04:42]file doc_00162504 [00:04:42]remove file /storage/0462/doc_00162504 [00:04:42]file doc_00162505 [00:04:42]remove file /storage/0462/doc_00162505 [00:04:42]file doc_00162506 [00:04:42]remove file /storage/0462/doc_00162506 [00:04:42]file doc_00162507 [00:04:42]remove file /storage/0462/doc_00162507 [00:04:42]file doc_00162508 [00:04:42]remove file /storage/0462/doc_00162508 [00:04:42]file doc_00162509 [00:04:42]remove file /storage/0462/doc_00162509 [00:04:42]file doc_00162510 [00:04:42]remove file /storage/0462/doc_00162510 [00:04:42]file doc_00162511 [00:04:42]remove file /storage/0462/doc_00162511 [00:04:42]file doc_00162512 [00:04:42]remove file /storage/0462/doc_00162512 [00:04:42]file doc_00162513 [00:04:42]remove file /storage/0462/doc_00162513 [00:04:42]file doc_00162514 [00:04:42]remove file /storage/0462/doc_00162514 [00:04:42]file doc_00162515 [00:04:42]remove file /storage/0462/doc_00162515 [00:04:42]file doc_00162516 [00:04:42]remove file /storage/0462/doc_00162516 [00:04:42]file doc_00162517 [00:04:42]remove file /storage/0462/doc_00162517 [00:04:42]file doc_00162518 [00:04:42]remove file /storage/0462/doc_00162518 [00:04:42]file doc_00162519 [00:04:42]remove file /storage/0462/doc_00162519 [00:04:42]file doc_00162520 [00:04:42]remove file /storage/0462/doc_00162520 [00:04:42]file doc_00162521 [00:04:42]remove file /storage/0462/doc_00162521 [00:04:42]file doc_00162522 [00:04:42]remove file /storage/0462/doc_00162522 [00:04:42]file doc_00162523 [00:04:42]remove file /storage/0462/doc_00162523 [00:04:42]file doc_00162524 [00:04:42]remove file /storage/0462/doc_00162524 [00:04:42]file doc_00162525 [00:04:42]remove file /storage/0462/doc_00162525 [00:04:42]file doc_00162526 [00:04:42]remove file /storage/0462/doc_00162526 [00:04:42]file doc_00162527 [00:04:42]remove file /storage/0462/doc_00162527 [00:04:42]file doc_00162528 [00:04:42]remove file /storage/0462/doc_00162528 [00:04:42]file doc_00162529 [00:04:42]remove file /storage/0462/doc_00162529 [00:04:42]file doc_00162530 [00:04:42]remove file /storage/0462/doc_00162530 [00:04:42]file doc_00162531 [00:04:42]remove file /storage/0462/doc_00162531 [00:04:42]file doc_00162532 [00:04:42]remove file /storage/0462/doc_00162532 [00:04:42]file doc_00162533 [00:04:42]remove file /storage/0462/doc_00162533 [00:04:42]file doc_00162534 [00:04:42]remove file /storage/0462/doc_00162534 [00:04:42]file doc_00162535 [00:04:42]remove file /storage/0462/doc_00162535 [00:04:42]file doc_00162536 [00:04:42]remove file /storage/0462/doc_00162536 [00:04:42]file doc_00162537 [00:04:42]remove file /storage/0462/doc_00162537 [00:04:42]file doc_00162538 [00:04:42]remove file /storage/0462/doc_00162538 [00:04:42]file doc_00162539 [00:04:42]remove file /storage/0462/doc_00162539 [00:04:42]file doc_00162540 [00:04:42]remove file /storage/0462/doc_00162540 [00:04:42]file doc_00162541 [00:04:42]remove file /storage/0462/doc_00162541 [00:04:42]file doc_00162542 [00:04:42]remove file /storage/0462/doc_00162542 [00:04:42]file doc_00162543 [00:04:42]remove file /storage/0462/doc_00162543 [00:04:42]file doc_00162544 [00:04:42]remove file /storage/0462/doc_00162544 [00:04:42]file doc_00162545 [00:04:42]remove file /storage/0462/doc_00162545 [00:04:42]file doc_00162546 [00:04:42]remove file /storage/0462/doc_00162546 [00:04:42]file doc_00162547 [00:04:42]remove file /storage/0462/doc_00162547 [00:04:42]file doc_00162548 [00:04:42]remove file /storage/0462/doc_00162548 [00:04:42]file doc_00162549 [00:04:42]remove file /storage/0462/doc_00162549 [00:04:42]file doc_00162550 [00:04:42]remove file /storage/0462/doc_00162550 [00:04:42]file doc_00162551 [00:04:42]remove file /storage/0462/doc_00162551 [00:04:42]file doc_00162552 [00:04:42]remove file /storage/0462/doc_00162552 [00:04:42]file doc_00162553 [00:04:42]remove file /storage/0462/doc_00162553 [00:04:42]file doc_00162554 [00:04:42]remove file /storage/0462/doc_00162554 [00:04:42]file doc_00162555 [00:04:42]remove file /storage/0462/doc_00162555 [00:04:42]file doc_00162556 [00:04:42]remove file /storage/0462/doc_00162556 [00:04:42]file doc_00162557 [00:04:42]remove file /storage/0462/doc_00162557 [00:04:42]file doc_00162558 [00:04:42]remove file /storage/0462/doc_00162558 [00:04:42]file doc_00162559 [00:04:42]remove file /storage/0462/doc_00162559 [00:04:42]file doc_00162560 [00:04:42]remove file /storage/0462/doc_00162560 [00:04:42]file doc_00162561 [00:04:42]remove file /storage/0462/doc_00162561 [00:04:42]file doc_00162562 [00:04:42]remove file /storage/0462/doc_00162562 [00:04:42]file doc_00162563 [00:04:42]remove file /storage/0462/doc_00162563 [00:04:42]file doc_00162564 [00:04:42]remove file /storage/0462/doc_00162564 [00:04:42]file doc_00162565 [00:04:42]remove file /storage/0462/doc_00162565 [00:04:42]file doc_00162566 [00:04:42]remove file /storage/0462/doc_00162566 [00:04:42]file doc_00162567 [00:04:42]remove file /storage/0462/doc_00162567 [00:04:42]file doc_00162568 [00:04:42]remove file /storage/0462/doc_00162568 [00:04:42]file doc_00162569 [00:04:42]remove file /storage/0462/doc_00162569 [00:04:42]file doc_00162570 [00:04:42]remove file /storage/0462/doc_00162570 [00:04:42]file doc_00162571 [00:04:42]remove file /storage/0462/doc_00162571 [00:04:42]file doc_00162572 [00:04:42]remove file /storage/0462/doc_00162572 [00:04:42]file doc_00162573 [00:04:42]remove file /storage/0462/doc_00162573 [00:04:42]file doc_00162574 [00:04:42]remove file /storage/0462/doc_00162574 [00:04:42]file doc_00162575 [00:04:42]remove file /storage/0462/doc_00162575 [00:04:42]file doc_00162576 [00:04:42]remove file /storage/0462/doc_00162576 [00:04:42]file doc_00162577 [00:04:42]remove file /storage/0462/doc_00162577 [00:04:42]file doc_00162578 [00:04:42]remove file /storage/0462/doc_00162578 [00:04:42]file doc_00162579 [00:04:42]remove file /storage/0462/doc_00162579 [00:04:42]file doc_00162580 [00:04:42]remove file /storage/0462/doc_00162580 [00:04:42]file doc_00162581 [00:04:42]remove file /storage/0462/doc_00162581 [00:04:42]file doc_00162582 [00:04:42]remove file /storage/0462/doc_00162582 [00:04:42]file doc_00162583 [00:04:42]remove file /storage/0462/doc_00162583 [00:04:42]file doc_00162584 [00:04:42]remove file /storage/0462/doc_00162584 [00:04:42]file doc_00162585 [00:04:42]remove file /storage/0462/doc_00162585 [00:04:42]file doc_00162586 [00:04:42]remove file /storage/0462/doc_00162586 [00:04:42]file doc_00162587 [00:04:42]remove file /storage/0462/doc_00162587 [00:04:42]file doc_00162588 [00:04:42]remove file /storage/0462/doc_00162588 [00:04:42]file doc_00162589 [00:04:42]remove file /storage/0462/doc_00162589 [00:04:42]file doc_00162590 [00:04:42]remove file /storage/0462/doc_00162590 [00:04:42]file doc_00162591 [00:04:42]remove file /storage/0462/doc_00162591 [00:04:42]file doc_00162592 [00:04:42]remove file /storage/0462/doc_00162592 [00:04:42]file doc_00162593 [00:04:42]remove file /storage/0462/doc_00162593 [00:04:42]file doc_00162594 [00:04:42]remove file /storage/0462/doc_00162594 [00:04:42]file doc_00162595 [00:04:42]remove file /storage/0462/doc_00162595 [00:04:42]file doc_00162596 [00:04:42]remove file /storage/0462/doc_00162596 [00:04:42]file doc_00162597 [00:04:42]remove file /storage/0462/doc_00162597 [00:04:42]file doc_00162598 [00:04:42]remove file /storage/0462/doc_00162598 [00:04:42]file doc_00162599 [00:04:42]remove file /storage/0462/doc_00162599 [00:04:42]file doc_00162600 [00:04:42]remove file /storage/0462/doc_00162600 [00:04:42]file doc_00162601 [00:04:42]remove file /storage/0462/doc_00162601 [00:04:42]file doc_00162602 [00:04:42]remove file /storage/0462/doc_00162602 [00:04:42]file doc_00162603 [00:04:42]remove file /storage/0462/doc_00162603 [00:04:42]file doc_00162604 [00:04:42]remove file /storage/0462/doc_00162604 [00:04:42]file doc_00162605 [00:04:42]remove file /storage/0462/doc_00162605 [00:04:42]file doc_00162606 [00:04:42]remove file /storage/0462/doc_00162606 [00:04:42]file doc_00162607 [00:04:42]remove file /storage/0462/doc_00162607 [00:04:42]file doc_00162608 [00:04:42]remove file /storage/0462/doc_00162608 [00:04:42]file doc_00162609 [00:04:42]remove file /storage/0462/doc_00162609 [00:04:42]file doc_00162610 [00:04:42]remove file /storage/0462/doc_00162610 [00:04:42]file doc_00162611 [00:04:42]remove file /storage/0462/doc_00162611 [00:04:42]file doc_00162612 [00:04:42]remove file /storage/0462/doc_00162612 [00:04:42]file doc_00162613 [00:04:42]remove file /storage/0462/doc_00162613 [00:04:42]file doc_00162614 [00:04:42]remove file /storage/0462/doc_00162614 [00:04:42]file doc_00162615 [00:04:42]remove file /storage/0462/doc_00162615 [00:04:42]file doc_00162616 [00:04:43]remove file /storage/0462/doc_00162616 [00:04:43]file doc_00162617 [00:04:43]remove file /storage/0462/doc_00162617 [00:04:43]file doc_00162618 [00:04:43]remove file /storage/0462/doc_00162618 [00:04:43]file doc_00162619 [00:04:43]remove file /storage/0462/doc_00162619 [00:04:43]file doc_00162620 [00:04:43]remove file /storage/0462/doc_00162620 [00:04:43]file doc_00162621 [00:04:43]remove file /storage/0462/doc_00162621 [00:04:43]file doc_00162622 [00:04:43]remove file /storage/0462/doc_00162622 [00:04:43]file doc_00162623 [00:04:43]remove file /storage/0462/doc_00162623 [00:04:43]file doc_00162624 [00:04:43]remove file /storage/0462/doc_00162624 [00:04:43]file doc_00162625 [00:04:43]remove file /storage/0462/doc_00162625 [00:04:43]file doc_00162626 [00:04:43]remove file /storage/0462/doc_00162626 [00:04:43]file doc_00162627 [00:04:43]remove file /storage/0462/doc_00162627 [00:04:43]file doc_00162628 [00:04:43]remove file /storage/0462/doc_00162628 [00:04:43]file doc_00162629 [00:04:43]remove file /storage/0462/doc_00162629 [00:04:43]file doc_00162630 [00:04:43]remove file /storage/0462/doc_00162630 [00:04:43]file doc_00162631 [00:04:43]remove file /storage/0462/doc_00162631 [00:04:43]file doc_00162632 [00:04:43]remove file /storage/0462/doc_00162632 [00:04:43]file doc_00162633 [00:04:43]remove file /storage/0462/doc_00162633 [00:04:43]file doc_00162634 [00:04:43]remove file /storage/0462/doc_00162634 [00:04:43]file doc_00162635 [00:04:43]remove file /storage/0462/doc_00162635 [00:04:43]file doc_00162636 [00:04:43]remove file /storage/0462/doc_00162636 [00:04:43]file doc_00162637 [00:04:43]remove file /storage/0462/doc_00162637 [00:04:43]file doc_00162638 [00:04:43]remove file /storage/0462/doc_00162638 [00:04:43]file doc_00162639 [00:04:43]remove file /storage/0462/doc_00162639 [00:04:43]file doc_00162640 [00:04:43]remove file /storage/0462/doc_00162640 [00:04:43]file doc_00162641 [00:04:43]remove file /storage/0462/doc_00162641 [00:04:43]file doc_00162642 [00:04:43]remove file /storage/0462/doc_00162642 [00:04:43]file doc_00162643 [00:04:43]remove file /storage/0462/doc_00162643 [00:04:43]file doc_00162644 [00:04:43]remove file /storage/0462/doc_00162644 [00:04:43]file doc_00162645 [00:04:43]remove file /storage/0462/doc_00162645 [00:04:43]file doc_00162646 [00:04:43]remove file /storage/0462/doc_00162646 [00:04:43]file doc_00162647 [00:04:43]remove file /storage/0462/doc_00162647 [00:04:43]file doc_00162648 [00:04:43]remove file /storage/0462/doc_00162648 [00:04:43]file doc_00162649 [00:04:43]remove file /storage/0462/doc_00162649 [00:04:43]file doc_00162650 [00:04:43]remove file /storage/0462/doc_00162650 [00:04:43]file doc_00162651 [00:04:43]remove file /storage/0462/doc_00162651 [00:04:43]file doc_00162652 [00:04:43]remove file /storage/0462/doc_00162652 [00:04:43]file doc_00162653 [00:04:43]remove file /storage/0462/doc_00162653 [00:04:43]file doc_00162654 [00:04:43]remove file /storage/0462/doc_00162654 [00:04:43]file doc_00162655 [00:04:43]remove file /storage/0462/doc_00162655 [00:04:43]file doc_00162656 [00:04:43]remove file /storage/0462/doc_00162656 [00:04:43]file doc_00162657 [00:04:43]remove file /storage/0462/doc_00162657 [00:04:43]file doc_00162658 [00:04:43]remove file /storage/0462/doc_00162658 [00:04:43]file doc_00162659 [00:04:43]remove file /storage/0462/doc_00162659 [00:04:43]file doc_00162660 [00:04:43]remove file /storage/0462/doc_00162660 [00:04:43]file doc_00162661 [00:04:43]remove file /storage/0462/doc_00162661 [00:04:43]file doc_00162662 [00:04:43]remove file /storage/0462/doc_00162662 [00:04:43]file doc_00162663 [00:04:43]remove file /storage/0462/doc_00162663 [00:04:43]file doc_00162664 [00:04:43]remove file /storage/0462/doc_00162664 [00:04:43]file doc_00162665 [00:04:43]remove file /storage/0462/doc_00162665 [00:04:43]file doc_00162666 [00:04:43]remove file /storage/0462/doc_00162666 [00:04:43]file doc_00162667 [00:04:43]remove file /storage/0462/doc_00162667 [00:04:43]file doc_00162668 [00:04:43]remove file /storage/0462/doc_00162668 [00:04:43]file doc_00162669 [00:04:43]remove file /storage/0462/doc_00162669 [00:04:43]file doc_00162670 [00:04:43]remove file /storage/0462/doc_00162670 [00:04:43]file doc_00162671 [00:04:43]remove file /storage/0462/doc_00162671 [00:04:43]file doc_00162672 [00:04:43]remove file /storage/0462/doc_00162672 [00:04:43]file doc_00162673 [00:04:43]remove file /storage/0462/doc_00162673 [00:04:43]file doc_00162674 [00:04:43]remove file /storage/0462/doc_00162674 [00:04:43]file doc_00162675 [00:04:43]remove file /storage/0462/doc_00162675 [00:04:43]file doc_00162676 [00:04:43]remove file /storage/0462/doc_00162676 [00:04:43]file doc_00162677 [00:04:43]remove file /storage/0462/doc_00162677 [00:04:43]file doc_00162678 [00:04:43]remove file /storage/0462/doc_00162678 [00:04:43]file doc_00162679 [00:04:43]remove file /storage/0462/doc_00162679 [00:04:43]file doc_00162680 [00:04:43]remove file /storage/0462/doc_00162680 [00:04:43]file doc_00162681 [00:04:43]remove file /storage/0462/doc_00162681 [00:04:43]file doc_00162682 [00:04:43]remove file /storage/0462/doc_00162682 [00:04:43]file doc_00162683 [00:04:43]remove file /storage/0462/doc_00162683 [00:04:43]file doc_00162684 [00:04:43]remove file /storage/0462/doc_00162684 [00:04:43]file doc_00162685 [00:04:43]remove file /storage/0462/doc_00162685 [00:04:43]file doc_00162686 [00:04:43]remove file /storage/0462/doc_00162686 [00:04:43]file doc_00162687 [00:04:43]remove file /storage/0462/doc_00162687 [00:04:43]remove dir /storage/0462 [00:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=263 [00:04:43]tlvbuf is 00638570 [00:04:43]SAM_PROTO_ClearQueue [00:04:43]wFMCommunicate request_size=4 [00:04:43]MH_SAM_APDU [00:04:43]CAPDU: 80 09 00 00 [00:04:43]Write to MH i2c: E2 08 00 3A 34 80 09 00 00 00 00 00 00 E0 [00:04:43]Write i2c OK [00:04:43]MH_I2C_Read... [00:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:43]Read from MH i2c: E2 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 03 00 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 03 00 3A 34 00 90 00 E2 [00:04:43]RAPDU: 90 00 [00:04:43]wFMCommunicate OK [00:04:43]SAM_PROTO_ClearQueue done [00:04:43]KKMCreateOFDPacket [00:04:43]OFDProtocolAddRootSTLVToBuf [00:04:43]FM_MakeSignedData [00:04:43]FM_MakeSignedData [00:04:43]SAM_PROTO_SignData [00:04:43]wFMCommunicate request_size=4 [00:04:43]MH_SAM_APDU [00:04:43]CAPDU: 80 0D 01 02 [00:04:43]Write to MH i2c: E2 08 00 3B 34 80 0D 01 02 00 00 00 00 E8 [00:04:43]Write i2c OK [00:04:43]MH_I2C_Read... [00:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:43]Read from MH i2c: E2 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 03 00 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 03 00 3B 34 00 90 00 E3 [00:04:43]RAPDU: 90 00 [00:04:43]wFMCommunicate OK [00:04:43]wFMCommunicate request_size=255 [00:04:43]MH_SAM_APDU [00:04:43]CAPDU: 80 0D 02 02 FA 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 1B 16 93 66 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 [00:04:43]Write to MH i2c: E2 02 01 3C 34 80 0D 02 02 FA 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 1B 16 93 66 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 D9 [00:04:43]Write i2c OK [00:04:43]MH_I2C_Read... [00:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:43]Read from MH i2c: E2 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 03 00 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 03 00 3C 34 00 90 00 E4 [00:04:43]RAPDU: 90 00 [00:04:43]wFMCommunicate OK [00:04:43]wFMCommunicate request_size=22 [00:04:43]MH_SAM_APDU [00:04:43]CAPDU: 80 0D 02 02 11 30 38 37 34 38 39 39 35 04 06 00 6C D4 8C 9A 2A A6 [00:04:43]Write to MH i2c: E2 19 00 3D 34 80 0D 02 02 11 00 30 38 37 34 38 39 39 35 04 06 00 6C D4 8C 9A 2A A6 00 00 FF [00:04:43]Write i2c OK [00:04:43]MH_I2C_Read... [00:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:43]Read from MH i2c: E2 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 03 00 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 03 00 3D 34 00 90 00 E5 [00:04:43]RAPDU: 90 00 [00:04:43]wFMCommunicate OK [00:04:43]wFMCommunicate request_size=4 [00:04:43]MH_SAM_APDU [00:04:43]CAPDU: 80 0D 03 02 [00:04:43]Write to MH i2c: E2 08 00 3E 34 80 0D 03 02 00 00 00 00 ED [00:04:43]Write i2c OK [00:04:43]MH_I2C_Read... [00:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:43]Read from MH i2c: E2 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 0B 00 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 0B 00 3E 34 00 FA 5F 4A 01 C5 45 CC 94 90 00 FC [00:04:43]RAPDU: FA 5F 4A 01 C5 45 CC 94 90 00 [00:04:43]wFMCommunicate OK [00:04:43]SAM_PROTO_SignData done [00:04:43]FM_MakeSignedData done [00:04:43]CreateOFDProtocolMessage [00:04:43]wFMCommunicate request_size=4 [00:04:43]MH_SAM_APDU [00:04:43]CAPDU: 80 11 00 00 [00:04:43]Write to MH i2c: E2 08 00 3F 34 80 11 00 00 00 00 00 00 ED [00:04:43]Write i2c OK [00:04:43]MH_I2C_Read... [00:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:43]Read from MH i2c: E2 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 17 00 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: E2 17 00 3F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4D [00:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:04:43]wFMCommunicate OK [00:04:43]CreateOFDProtocolMessage done [00:04:43]OFDSenderStorePacket 162688 [00:04:43]StoreOFDPacket docnum=162688 [00:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 1B 01 00 00 DF 57 13 01 57 52 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 1B 16 93 66 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 6C D4 8C 9A 2A A6 FA 5F 4A 01 C5 45 CC 94 [00:04:43]CheckFolder [00:04:43]dirname=/storage/ofd_packets [00:04:43]CheckFolder done [00:04:43]ProducePacketName [00:04:43]name=ofd_packets/00162688 [00:04:43]NVStorageSaveData ofd_packets/00162688 [00:04:43]File name is /storage/ofd_packets/00162688 [00:04:43]Write 313 bytes [00:04:43]NVStorageSaveData done [00:04:43]OFDSenderStorePacket done [00:04:43]KKMCreateOFDPacket done [00:04:43]NVStorageSaveData kkm_last_timestamp [00:04:43]File name is /storage/kkm_last_timestamp [00:04:43]Write 4 bytes [00:04:43]NVStorageSaveData done [00:04:43]ExternCall_PrintAddStr [00:04:43]wPrintStart [00:04:43]Write to MH i2c: 01 00 00 40 34 74 [00:04:43]Write i2c OK [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: 01 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: 01 07 00 [00:04:43]MH_I2C_Read... [00:04:43]Read from MH i2c: 01 07 00 40 34 00 00 00 00 00 FF 0F 89 [00:04:43]RasterBufferAndPrint [00:04:43]line Отчет об открытии смены [00:04:43]line ФФД: 1.0 [00:04:43]line ИНН: 02508201610067 [00:04:43]line Кассир: Дуйшенбек у Н. [00:04:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:04:43]line Место: АЗС № 140 "Партнер Нефть" [00:04:43]line 14.07.2024 00:04 [00:04:43]line Смена: 463 [00:04:43]line РНМ: 0000000000090858 [00:04:43]line ЗНМ: 0300000129 [00:04:43]line ФД: 162688 [00:04:43]line ФМ: 0000000000874899 [00:04:43]line ФПД: 119660147780262 [00:04:43]written 0, free lines is 4095 [00:04:44]OFD Sender: Processing packet 162688 [packets to send 106, broken 105] [00:04:44]ProducePacketName [00:04:44]name=ofd_packets/00162688 [00:04:44]OFD Sender: To server: pG, [00:04:44]CommunicateWithHost lk.salyk.kg:30040 [00:04:44]ConnectInit lk.salyk.kg [00:04:44]Connected sock=10 [00:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 1B 01 00 00 DF 57 13 01 57 52 5A 02 01 00 02 00 07 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 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 1B 16 93 66 0E 04 04 00 CF 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 35 04 06 00 6C D4 8C 9A 2A A6 FA 5F 4A 01 C5 45 CC 94 [00:04:44]Write to MH i2c: 01 00 00 52 34 86 [00:04:44]Write i2c OK [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: 01 [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: 01 07 00 [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: 01 07 00 52 34 00 00 00 00 00 9D 0E 38 [00:04:44]RasterBufferAndPrint [00:04:44]line [00:04:44]line [00:04:44]line [00:04:44]line [00:04:44]line [00:04:44]written 0, free lines is 3760 [00:04:44]MH_Cut [00:04:44]Write to MH i2c: D1 01 00 59 34 01 5F [00:04:44]Write i2c OK [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: D1 [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: D1 01 00 [00:04:44]MH_I2C_Read... [00:04:44]Read from MH i2c: D1 01 00 59 34 00 5E [00:04:44]Write to MH i2c: 01 00 00 5A 34 8E [00:04:44]Write i2c OK [00:04:44]MH_I2C_Read... [00:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E2 0A 47 00 C1 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 80 7B 02 00 F4 03 04 00 2A C2 92 66 B6 04 01 00 00 1B B1 B7 32 70 DE 35 2C [00:04:44]CommunicateWithHost err = 0 [00:04:44]CheckOFDResponse [00:04:44]1017 (14) - 77093643461234 [00:04:44]1041 (16) - 0000000000874899 [00:04:44]1040 (4) - 162688 [00:04:44]1012 (4) - 13.07.2024 18:06 [00:04:44]1206 (1) - 0 [00:04:44]OFD Sender: Remove packet 162688 [00:04:44]ProducePacketName [00:04:44]name=ofd_packets/00162688 [00:04:44]NVStorageDeleteData [00:04:44]*** Cut start [00:04:44]*** Purtial cut [00:04:44]*** CUTSNS_PIN = 0 [00:04:44]*** Stage 1: CUTSNS_PIN = 1 [00:04:44]OFD Sender: No OFD packet to send [00:04:46]Read from MH i2c: 01 [00:04:46]MH_I2C_Read... [00:04:46]*** Stop cut motor [00:04:46]*** Cut end [00:04:46]Read from MH i2c: 01 07 00 [00:04:46]MH_I2C_Read... [00:04:46]Read from MH i2c: 01 07 00 5A 34 00 00 00 00 00 FF 0F A3 [00:04:46]process_action open_shift done [00:04:46]requested_data is exist [00:04:46]produce_requested_data [00:04:46]requested_item fd.num is exist - process it [00:04:46]SAM_PROTO_GetFieldsCounters [00:04:46]wFMCommunicate request_size=4 [00:04:46]MH_SAM_APDU [00:04:46]CAPDU: 80 13 00 00 [00:04:46]Write to MH i2c: E2 08 00 5B 34 80 13 00 00 00 00 00 00 0B [00:04:46]Write i2c OK [00:04:46]MH_I2C_Read... [00:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:46]Read from MH i2c: E2 [00:04:46]MH_I2C_Read... [00:04:46]Read from MH i2c: E2 62 00 [00:04:46]MH_I2C_Read... [00:04:46]Read from MH i2c: E2 62 00 5B 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [00:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 80 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:46]wFMCommunicate OK [00:04:46]SAM_PROTO_GetFieldsCounters done [00:04:46]requested_item shift.num is exist - process it [00:04:46]requested_item shift.opened is exist - process it [00:04:46]req_shift_opened [00:04:46]FM_GetShiftState [00:04:46]SAM_PROTO_GetShiftState [00:04:46]wFMCommunicate request_size=4 [00:04:46]MH_SAM_APDU [00:04:46]CAPDU: 80 13 01 00 [00:04:46]Write to MH i2c: E2 08 00 5C 34 80 13 01 00 00 00 00 00 0D [00:04:46]Write i2c OK [00:04:46]MH_I2C_Read... [00:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:47]Read from MH i2c: E2 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: E2 0E 00 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: E2 0E 00 5C 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 43 [00:04:47]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:04:47]wFMCommunicate OK [00:04:47]SAM_PROTO_GetShiftState done [00:04:47]FM_GetShiftState done [00:04:47]req_shift_opened done [00:04:47]requested_item shift.open_date is exist - process it [00:04:47]req_shift_open_date [00:04:47]req_shift_open_date done [00:04:47]produce_requested_data done [00:04:47]produce_requested_data return {"fd.num":162688,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:04:47]process_action_free open_shift [00:04:47]json_value_free [00:04:47]json_value_free done [00:04:47]process_json_proto returns [00:04:47]Send response to host [00:04:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":162688,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:04:47]free response buf [00:04:47]execute_script done [00:04:47]execute_script returns [00:04:47]free content buf [00:04:47]Sock 9.Close socket [00:04:47]Sock 9.Thread stoped [00:04:47]accept exits with 7 [00:04:47]New connection [00:04:47]New thread 3067366756 created [00:04:47]Thread 3067510116 joined [00:04:47]Waiting for new connection... [00:04:47] Sock 7.Parse request [00:04:47]Sock 7.Check first char [00:04:47]Sock 7.First char is OK [00:04:47]request: POST /json_proto HTTP/1.0 [00:04:47]Method: POST [00:04:47]URL: /json_proto [00:04:47]Method is POST - this is cgi request [00:04:47]url: /json_proto [00:04:47]query_string will be loaded in cgi processing [00:04:47]execute_cgi json_proto POST (null) [00:04:47]execute_cgi path=json_proto method=POST [00:04:47]POST find Content-Length [00:04:47]Host: 172.17.39.67:8080 [00:04:47]Content-Length: 331 [00:04:47]Content-Type: application/json [00:04:47] [00:04:47]POST finish read [00:04:47]Found Content-Length = 331 [00:04: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:04:47]execute_script... [00:04: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:04:47]POST & json_proto [00:04:47]process_json_proto [00:04:47]json parsed OK: [00:04:47]protocol is kg_v1.0 [00:04:47]action value=get_value [00:04:47]process_action get_value [00:04:47]cmd_get_value [00:04:47]process_action get_value done [00:04:47]requested_data is exist [00:04:47]produce_requested_data [00:04:47]requested_item fm.sale.total is exist - process it [00:04:47]SAM_PROTO_GetFMData [00:04:47]wFMCommunicate request_size=4 [00:04:47]MH_SAM_APDU [00:04:47]CAPDU: 80 13 03 00 [00:04:47]Write to MH i2c: E2 08 00 5D 34 80 13 03 00 00 00 00 00 10 [00:04:47]Write i2c OK [00:04:47]MH_I2C_Read... [00:04:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:04:47]Read from MH i2c: E2 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: E2 FD 00 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: E2 FD 00 5D 34 00 C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 E7 [00:04:47]RAPDU: C1 04 85 04 BD 04 6E 04 04 00 E2 77 02 00 69 04 A3 00 6F 04 04 00 CF 77 02 00 B1 04 05 00 5E 08 35 54 03 70 04 05 00 E4 F7 96 B2 02 72 04 04 00 7A 10 9E A1 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 1F 79 85 5A 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 E9 F9 8A 07 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 98 00 6F 04 04 00 13 00 00 00 B1 04 03 00 94 DE 5F 70 04 03 00 94 DE 5F 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 72 2E 0A EF 03 09 00 F6 03 90 00 [00:04:47]wFMCommunicate OK [00:04:47]wFMCommunicate request_size=4 [00:04:47]MH_SAM_APDU [00:04:47]CAPDU: 80 17 00 00 [00:04:47]Write to MH i2c: E2 08 00 5E 34 80 17 00 00 00 00 00 00 12 [00:04:47]Write i2c OK [00:04:47]MH_I2C_Read... [00:04:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:47]Read from MH i2c: E2 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: E2 FD 00 [00:04:47]MH_I2C_Read... [00:04:47]Read from MH i2c: E2 FD 00 5E 34 00 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [00:04:47]RAPDU: 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 D9 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04:47]wFMCommunicate OK [00:04:47]wFMCommunicate request_size=4 [00:04:47]MH_SAM_APDU [00:04:47]CAPDU: 80 17 00 00 [00:04:47]Write to MH i2c: E2 08 00 5F 34 80 17 00 00 00 00 00 00 13 [00:04:47]Write i2c OK [00:04:47]MH_I2C_Read... [00:04:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:48]Read from MH i2c: E2 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 FD 00 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 FD 00 5F 34 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:04: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:04:48]wFMCommunicate OK [00:04:48]wFMCommunicate request_size=4 [00:04:48]MH_SAM_APDU [00:04:48]CAPDU: 80 17 00 00 [00:04:48]Write to MH i2c: E2 08 00 60 34 80 17 00 00 00 00 00 00 14 [00:04:48]Write i2c OK [00:04:48]MH_I2C_Read... [00:04:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:48]Read from MH i2c: E2 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 FD 00 [00:04:48]MH_I2C_Read... [00:04:48]Read from MH i2c: E2 FD 00 60 34 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:04: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:04:48]wFMCommunicate OK [00:04:48]wFMCommunicate request_size=4 [00:04:48]MH_SAM_APDU [00:04:48]CAPDU: 80 17 00 00 [00:04:48]Write to MH i2c: E2 08 00 61 34 80 17 00 00 00 00 00 00 15 [00:04:48]Write i2c OK [00:04:48]MH_I2C_Read... [00:04:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 219! [00:04:49]Read from MH i2c: E2 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 DE 00 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 DE 00 61 34 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:04: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:04:49]wFMCommunicate OK [00:04:49]SAM_PROTO_GetFMData done [00:04:49]requested_item fm.sale_refund.total is exist - process it [00:04:49]requested_item fm.buy.total is exist - process it [00:04:49]requested_item shift.sale.total is exist - process it [00:04:49]SAM_PROTO_GetShiftData [00:04:49]wFMCommunicate request_size=4 [00:04:49]MH_SAM_APDU [00:04:49]CAPDU: 80 13 02 00 [00:04:49]Write to MH i2c: E2 08 00 62 34 80 13 02 00 00 00 00 00 14 [00:04:49]Write i2c OK [00:04:49]MH_I2C_Read... [00:04:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:04:49]Read from MH i2c: E2 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 FD 00 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 FD 00 62 34 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 87 [00:04:49]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:04:49]wFMCommunicate OK [00:04:49]wFMCommunicate request_size=4 [00:04:49]MH_SAM_APDU [00:04:49]CAPDU: 80 17 00 00 [00:04:49]Write to MH i2c: E2 08 00 63 34 80 17 00 00 00 00 00 00 17 [00:04:49]Write i2c OK [00:04:49]MH_I2C_Read... [00:04:50]OFD Sender: No OFD packet to send [00:04:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 FD 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 FD 00 63 34 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 1F [00:04:50]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:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 17 00 00 [00:04:50]Write to MH i2c: E2 08 00 64 34 80 17 00 00 00 00 00 00 18 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 FD 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 FD 00 64 34 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 EA [00:04:50]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:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 17 00 00 [00:04:50]Write to MH i2c: E2 08 00 65 34 80 17 00 00 00 00 00 00 19 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:04:51]Read from MH i2c: E2 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: E2 FD 00 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: E2 FD 00 65 34 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 8B [00:04:51]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:04:51]wFMCommunicate OK [00:04:51]wFMCommunicate request_size=4 [00:04:51]MH_SAM_APDU [00:04:51]CAPDU: 80 17 00 00 [00:04:51]Write to MH i2c: E2 08 00 66 34 80 17 00 00 00 00 00 00 1A [00:04:51]Write i2c OK [00:04:51]MH_I2C_Read... [00:04:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:04:51]Read from MH i2c: E2 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: E2 BD 00 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: E2 BD 00 66 34 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 00 [00:04:51]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:04:51]wFMCommunicate OK [00:04:51]SAM_PROTO_GetShiftData done [00:04:51]requested_item shift.sale.total_cash is exist - process it [00:04:51]requested_item shift.sale_refund.total is exist - process it [00:04:51]requested_item shift.sale_refund.total_cash is exist - process it [00:04:51]requested_item shift.buy.total is exist - process it [00:04:51]requested_item shift.buy.total_cash is exist - process it [00:04:51]produce_requested_data done [00:04:51]produce_requested_data return {"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.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:04:51]process_action_free get_value [00:04:51]json_value_free [00:04:51]json_value_free done [00:04:51]process_json_proto returns [00:04:51]Send response to host [00:04:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":142976635.82,"fm.sale_refund.total":62829.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:04:51]free response buf [00:04:51]execute_script done [00:04:51]execute_script returns [00:04:51]free content buf [00:04:51]Sock 7.Close socket [00:04:51]Sock 7.Thread stoped [00:04:55]OFD Sender: No OFD packet to send [00:05:00]OFD Sender: No OFD packet to send [00:05:05]OFD Sender: No OFD packet to send [00:05:10]OFD Sender: No OFD packet to send [00:05:15]OFD Sender: No OFD packet to send [00:05:20]OFD Sender: No OFD packet to send [00:05:25]OFD Sender: No OFD packet to send [00:05:30]OFD Sender: No OFD packet to send [00:05:35]OFD Sender: No OFD packet to send [00:05:40]OFD Sender: No OFD packet to send [00:05:45]OFD Sender: No OFD packet to send [00:05:50]OFD Sender: No OFD packet to send [00:05:55]OFD Sender: No OFD packet to send [00:06:00]OFD Sender: No OFD packet to send [00:06:05]OFD Sender: No OFD packet to send [00:06:10]OFD Sender: No OFD packet to send [00:06:15]OFD Sender: No OFD packet to send [00:06:20]OFD Sender: No OFD packet to send [00:06:25]OFD Sender: No OFD packet to send [00:06:30]OFD Sender: No OFD packet to send [00:06:35]OFD Sender: No OFD packet to send [00:06:40]OFD Sender: No OFD packet to send [00:06:45]OFD Sender: No OFD packet to send [00:06:50]OFD Sender: No OFD packet to send [00:06:55]OFD Sender: No OFD packet to send [00:07:00]OFD Sender: No OFD packet to send [00:07:05]OFD Sender: No OFD packet to send [00:07:10]OFD Sender: No OFD packet to send [00:07:15]OFD Sender: No OFD packet to send [00:07:20]OFD Sender: No OFD packet to send [00:07:25]OFD Sender: No OFD packet to send [00:07:30]OFD Sender: No OFD packet to send [00:07:35]OFD Sender: No OFD packet to send [00:07:40]OFD Sender: No OFD packet to send [00:07:45]OFD Sender: No OFD packet to send [00:07:50]OFD Sender: No OFD packet to send [00:07:55]OFD Sender: No OFD packet to send [00:08:00]OFD Sender: No OFD packet to send [00:08:05]accept exits with 9 [00:08:05]New connection [00:08:05]New thread 3067510116 created [00:08:05]Thread 3067366756 joined [00:08:05]Waiting for new connection... [00:08:05] Sock 9.Parse request [00:08:05]Sock 9.Check first char [00:08:05]Sock 9.First char is OK [00:08:05]request: POST /json_proto HTTP/1.0 [00:08:05]Method: POST [00:08:05]URL: /json_proto [00:08:05]Method is POST - this is cgi request [00:08:05]url: /json_proto [00:08:05]query_string will be loaded in cgi processing [00:08:05]execute_cgi json_proto POST (null) [00:08:05]execute_cgi path=json_proto method=POST [00:08:05]POST find Content-Length [00:08:05]Host: 172.17.39.67:8080 [00:08:05]Content-Length: 678 [00:08:05]Content-Type: application/json [00:08:05] [00:08:05]POST finish read [00:08:05]Found Content-Length = 678 [00:08:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.110, "sum" : 405.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:05]execute_script... [00:08: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)1319267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 6.110, "sum" : 405.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 405.00, "total" : 405.00, "payments": [ { "type": 0, "sum" : 405.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:05]POST & json_proto [00:08:05]process_json_proto [00:08:05]json parsed OK: [00:08:05]protocol is kg_v1.0 [00:08:05]action value=close_receipt [00:08:05]process_action close_receipt [00:08:05]cmd_close_receipt [00:08:05]MH_GetDate [00:08:05]Write to MH i2c: F0 00 00 67 34 8A [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 09 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: F0 09 00 67 34 00 E7 16 93 66 86 7C 92 66 83 [00:08:05]GetLastDocTimeStamp 1720915483 [00:08:05]current date 1720915687 [00:08:05]FM_GetShiftState [00:08:05]SAM_PROTO_GetShiftState [00:08:05]wFMCommunicate request_size=4 [00:08:05]MH_SAM_APDU [00:08:05]CAPDU: 80 13 01 00 [00:08:05]Write to MH i2c: E2 08 00 68 34 80 13 01 00 00 00 00 00 19 [00:08:05]Write i2c OK [00:08:05]MH_I2C_Read... [00:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:05]Read from MH i2c: E2 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 0E 00 [00:08:05]MH_I2C_Read... [00:08:05]Read from MH i2c: E2 0E 00 68 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4F [00:08:05]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:08:05]wFMCommunicate OK [00:08:05]SAM_PROTO_GetShiftState done [00:08:05]FM_GetShiftState done [00:08:05]opened in 1720915483 [00:08:05]opened+sec_in_day 1721001883 [00:08:05]quantity*price = 40509 [00:08:05]sum+1 = 40510 [00:08:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 405.00 Внесено: 405.00 СДАЧА: 0.00 НСП 1% : 3.58 НДС 12% : 43.02 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 1 14.07.2024 00:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162689 ФПД: 26133035867968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T000807&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162689&fm=26133035867968&tin=02508201610067®Number=0000000000090858&sum=40500 [00:08:06]StoreToDocumentArchive [00:08:06]shift 463 fd 162689 [00:08:06]save to /storage/0463/doc_00162689 [00:08:06]save last doc name /storage/0463/doc_00162689 to /storage/kkm_last_doc_name [00:08:06]save OK [00:08:06]Clear old archive folders... [00:08:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:08:06]tlvbuf is B6F495B0 [00:08:06]SAM_PROTO_ClearQueue [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 09 00 00 [00:08:06]Write to MH i2c: E2 08 00 75 34 80 09 00 00 00 00 00 00 1B [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 75 34 00 90 00 1D [00:08:06]RAPDU: 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_ClearQueue done [00:08:06]KKMCreateOFDPacket [00:08:06]OFDProtocolAddRootSTLVToBuf [00:08:06]FM_MakeSignedData [00:08:06]FM_MakeSignedData [00:08:06]SAM_PROTO_SignData [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 0D 01 02 [00:08:06]Write to MH i2c: E2 08 00 76 34 80 0D 01 02 00 00 00 00 23 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 76 34 00 90 00 1E [00:08:06]RAPDU: 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=255 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 3D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 E7 16 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7B 02 00 35 04 06 00 17 [00:08:06]Write to MH i2c: E2 02 01 77 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 3D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 E7 16 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7B 02 00 35 04 06 00 17 00 00 D3 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 77 34 00 90 00 1F [00:08:06]RAPDU: 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=10 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 0D 02 02 05 C4 92 51 DF 40 [00:08:06]Write to MH i2c: E2 0D 00 78 34 80 0D 02 02 05 00 C4 92 51 DF 40 00 00 F6 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [00:08:06]RAPDU: 90 00 [00:08:06]wFMCommunicate OK [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 0D 03 02 [00:08:06]Write to MH i2c: E2 08 00 79 34 80 0D 03 02 00 00 00 00 28 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 0B 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 0B 00 79 34 00 82 FD 28 57 B1 17 74 B7 90 00 1A [00:08:06]RAPDU: 82 FD 28 57 B1 17 74 B7 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_SignData done [00:08:06]FM_MakeSignedData done [00:08:06]CreateOFDProtocolMessage [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 11 00 00 [00:08:06]Write to MH i2c: E2 08 00 7A 34 80 11 00 00 00 00 00 00 28 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 17 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 17 00 7A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 88 [00:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:08:06]wFMCommunicate OK [00:08:06]CreateOFDProtocolMessage done [00:08:06]OFDSenderStorePacket 162689 [00:08:06]StoreOFDPacket docnum=162689 [00:08:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B0 3E 07 01 D2 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 3D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 E7 16 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7B 02 00 35 04 06 00 17 C4 92 51 DF 40 82 FD 28 57 B1 17 74 B7 [00:08:06]CheckFolder [00:08:06]dirname=/storage/ofd_packets [00:08:06]CheckFolder done [00:08:06]ProducePacketName [00:08:06]name=ofd_packets/00162689 [00:08:06]NVStorageSaveData ofd_packets/00162689 [00:08:06]File name is /storage/ofd_packets/00162689 [00:08:06]Write 301 bytes [00:08:06]NVStorageSaveData done [00:08:06]OFDSenderStorePacket done [00:08:06]KKMCreateOFDPacket done [00:08:06]NVStorageSaveData kkm_last_timestamp [00:08:06]File name is /storage/kkm_last_timestamp [00:08:06]Write 4 bytes [00:08:06]NVStorageSaveData done [00:08:06]ExternCall_PrintAddStr [00:08:06]wPrintStart [00:08:06]Write to MH i2c: 01 00 00 7B 34 AF [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: 01 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: 01 07 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: 01 07 00 7B 34 00 00 00 00 00 FF 0F C4 [00:08:06]RasterBufferAndPrint [00:08:06]line Счет N : (1)1319267 [00:08:06]line ИНН: 02508201610067 [00:08:06]line Контрольно-Кассовый Чек [00:08:06]line ПРОДАЖА [00:08:06]line ТРК (МРК, ГНК) : 43 [00:08:06]line Товар: 2710124130 [00:08:06]line Аи-92-К-5 [00:08:06]line 6.110 * 66.30 [00:08:06]line = 405.09 [00:08:06]line НДС 12% НСП 1% [00:08:06]line > о реализуемом товаре [00:08:06]line ОКРУГЛЕНИЕ: -0.09 [00:08:06]line ИТОГО: 405.00 [00:08:06]line Внесено: 405.00 [00:08:06]line СДАЧА: 0.00 [00:08:06]line НСП 1% : 3.58 [00:08:06]line НДС 12% : 43.02 [00:08:06]line Наличными: 405.00 [00:08:06]line Безнал.: 0.00 [00:08:06]line Место: АЗС № 140 "Партнер Нефть" [00:08:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:08:06]line СНО: Общий режим [00:08:06]line Чек 1 14.07.2024 00:08 [00:08:06]line Смена: 463 ФФД: 1.0 [00:08:06]line ЗНМ: 0300000129 [00:08:06]line РНМ: 0000000000090858 [00:08:06]line Версия ККМ: 001 [00:08:06]line ФМ: 0000000000874899 [00:08:06]line ФД: 162689 [00:08:06]line ФПД: 26133035867968 [00:08:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T000807&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162689&fm=26133035867968&tin=02508201610067®Number=0000000000090858&sum=40500 [00:08:07]OFD Sender: Processing packet 162689 [packets to send 106, broken 105] [00:08:07]ProducePacketName [00:08:07]name=ofd_packets/00162689 [00:08:07]OFD Sender: To server: pG, [00:08:07]CommunicateWithHost lk.salyk.kg:30040 [00:08:07]ConnectInit lk.salyk.kg [00:08:07]written 0, free lines is 4095 [00:08:07]Connected sock=10 [00:08:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 B0 3E 07 01 D2 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 17 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 3D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 E7 16 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 81 7B 02 00 35 04 06 00 17 C4 92 51 DF 40 82 FD 28 57 B1 17 74 B7 [00:08:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 29 8A 47 00 66 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 34 38 39 39 10 04 04 00 81 7B 02 00 F4 03 04 00 F5 C2 92 66 B6 04 01 00 00 19 B0 59 87 79 D0 24 A5 [00:08:07]CommunicateWithHost err = 0 [00:08:07]CheckOFDResponse [00:08:07]1017 (14) - 77093643461234 [00:08:07]1041 (16) - 0000000000874899 [00:08:07]1040 (4) - 162689 [00:08:07]1012 (4) - 13.07.2024 18:09 [00:08:07]1206 (1) - 0 [00:08:07]OFD Sender: Remove packet 162689 [00:08:07]ProducePacketName [00:08:07]name=ofd_packets/00162689 [00:08:07]NVStorageDeleteData [00:08:07]Write to MH i2c: 01 00 00 A6 34 DA [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 07 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: 01 07 00 A6 34 00 00 00 00 00 E2 0C CF [00:08:07]RasterBufferAndPrint [00:08:07]line [00:08:07]line [00:08:07]line [00:08:07]line [00:08:07]line [00:08:07]written 0, free lines is 3304 [00:08:07]MH_Cut [00:08:07]Write to MH i2c: D1 01 00 AD 34 01 B3 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: D1 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: D1 01 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: D1 01 00 AD 34 00 B2 [00:08:07]Write to MH i2c: 01 00 00 AE 34 E2 [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]OFD Sender: No OFD packet to send [00:08:08]*** Cut start [00:08:08]*** Purtial cut [00:08:08]*** Stage 1: CUTSNS_PIN = 1 [00:08:08]Read from MH i2c: 01 [00:08:08]MH_I2C_Read... [00:08:08]*** Stop cut motor [00:08:08]*** Cut end [00:08:08]Read from MH i2c: 01 07 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: 01 07 00 AE 34 00 00 00 00 00 FF 0F F7 [00:08:08]process_action close_receipt done [00:08:08]requested_data is exist [00:08:08]produce_requested_data [00:08:08]requested_item fm.sn is exist - process it [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 11 00 00 [00:08:08]Write to MH i2c: E2 08 00 AF 34 80 11 00 00 00 00 00 00 5D [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 17 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 17 00 AF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 BD [00:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:08:08]wFMCommunicate OK [00:08:08]requested_item fd.num is exist - process it [00:08:08]SAM_PROTO_GetFieldsCounters [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 13 00 00 [00:08:08]Write to MH i2c: E2 08 00 B0 34 80 13 00 00 00 00 00 00 60 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 62 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 62 00 B0 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 81 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [00:08:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 81 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:08]wFMCommunicate OK [00:08:08]SAM_PROTO_GetFieldsCounters done [00:08:08]requested_item shift.num is exist - process it [00:08:08]requested_item shift.opened is exist - process it [00:08:08]req_shift_opened [00:08:08]FM_GetShiftState [00:08:08]SAM_PROTO_GetShiftState [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 13 01 00 [00:08:08]Write to MH i2c: E2 08 00 B1 34 80 13 01 00 00 00 00 00 62 [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 0E 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 0E 00 B1 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 98 [00:08:08]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:08:08]wFMCommunicate OK [00:08:08]SAM_PROTO_GetShiftState done [00:08:08]FM_GetShiftState done [00:08:08]req_shift_opened done [00:08:08]requested_item shift.open_date is exist - process it [00:08:08]req_shift_open_date [00:08:08]req_shift_open_date done [00:08:08]produce_requested_data done [00:08:08]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162689,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:08:08]process_action_free close_receipt [00:08:08]json_value_free [00:08:08]json_value_free done [00:08:08]process_json_proto returns [00:08:08]Send response to host [00:08:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162689,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:08:08]free response buf [00:08:08]execute_script done [00:08:08]execute_script returns [00:08:08]free content buf [00:08:08]Sock 9.Close socket [00:08:08]Sock 9.Thread stoped [00:08:12]OFD Sender: No OFD packet to send [00:08:17]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:11]accept exits with 7 [00:09:11]New connection [00:09:11]New thread 3067366756 created [00:09:11]Thread 3067510116 joined [00:09:11]Waiting for new connection... [00:09:11] Sock 7.Parse request [00:09:11]Sock 7.Check first char [00:09:11]Sock 7.First char is OK [00:09:11]request: POST /json_proto HTTP/1.0 [00:09:11]Method: POST [00:09:11]URL: /json_proto [00:09:11]Method is POST - this is cgi request [00:09:11]url: /json_proto [00:09:11]query_string will be loaded in cgi processing [00:09:11]execute_cgi json_proto POST (null) [00:09:11]execute_cgi path=json_proto method=POST [00:09:11]POST find Content-Length [00:09:11]Host: 172.17.39.67:8080 [00:09:11]Content-Length: 678 [00:09:11]Content-Type: application/json [00:09:11] [00:09:11]POST finish read [00:09:11]Found Content-Length = 678 [00:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:11]execute_script... [00:09:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.810, "sum" : 650.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:11]POST & json_proto [00:09:11]process_json_proto [00:09:11]json parsed OK: [00:09:11]protocol is kg_v1.0 [00:09:11]action value=close_receipt [00:09:11]process_action close_receipt [00:09:11]cmd_close_receipt [00:09:11]MH_GetDate [00:09:11]Write to MH i2c: F0 00 00 B2 34 D5 [00:09:11]Write i2c OK [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: F0 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: F0 09 00 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: F0 09 00 B2 34 00 2A 17 93 66 86 7C 92 66 12 [00:09:11]GetLastDocTimeStamp 1720915687 [00:09:11]current date 1720915754 [00:09:11]FM_GetShiftState [00:09:11]SAM_PROTO_GetShiftState [00:09:11]wFMCommunicate request_size=4 [00:09:11]MH_SAM_APDU [00:09:11]CAPDU: 80 13 01 00 [00:09:11]Write to MH i2c: E2 08 00 B3 34 80 13 01 00 00 00 00 00 64 [00:09:11]Write i2c OK [00:09:11]MH_I2C_Read... [00:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:11]Read from MH i2c: E2 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 0E 00 [00:09:11]MH_I2C_Read... [00:09:11]Read from MH i2c: E2 0E 00 B3 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 9A [00:09:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:09:11]wFMCommunicate OK [00:09:11]SAM_PROTO_GetShiftState done [00:09:11]FM_GetShiftState done [00:09:11]opened in 1720915483 [00:09:11]opened+sec_in_day 1721001883 [00:09:11]quantity*price = 65040 [00:09:11]sum+1 = 65041 [00:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 2 14.07.2024 00:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162690 ФПД: 200862324476094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T000914&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162690&fm=200862324476094&tin=02508201610067®Number=0000000000090858&sum=65000 [00:09:12]StoreToDocumentArchive [00:09:12]shift 463 fd 162690 [00:09:12]save to /storage/0463/doc_00162690 [00:09:12]save last doc name /storage/0463/doc_00162690 to /storage/kkm_last_doc_name [00:09:12]save OK [00:09:12]Clear old archive folders... [00:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:12]tlvbuf is 006FA230 [00:09:12]SAM_PROTO_ClearQueue [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 09 00 00 [00:09:12]Write to MH i2c: E2 08 00 C0 34 80 09 00 00 00 00 00 00 66 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 C0 34 00 90 00 68 [00:09:12]RAPDU: 90 00 [00:09:12]wFMCommunicate OK [00:09:12]SAM_PROTO_ClearQueue done [00:09:12]KKMCreateOFDPacket [00:09:12]OFDProtocolAddRootSTLVToBuf [00:09:12]FM_MakeSignedData [00:09:12]FM_MakeSignedData [00:09:12]SAM_PROTO_SignData [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 0D 01 02 [00:09:12]Write to MH i2c: E2 08 00 C1 34 80 0D 01 02 00 00 00 00 6E [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 C1 34 00 90 00 69 [00:09:12]RAPDU: 90 00 [00:09:12]wFMCommunicate OK [00:09:12]wFMCommunicate request_size=255 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2A 17 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7B 02 00 35 04 06 00 B6 [00:09:12]Write to MH i2c: E2 02 01 C2 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2A 17 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7B 02 00 35 04 06 00 B6 00 00 F1 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:13]OFD Sender: No OFD packet to send [00:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 C2 34 00 90 00 6A [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=10 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 0D 02 02 05 AE E7 7F C8 BE [00:09:13]Write to MH i2c: E2 0D 00 C3 34 80 0D 02 02 05 00 AE E7 7F C8 BE 00 00 15 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 03 00 C3 34 00 90 00 6B [00:09:13]RAPDU: 90 00 [00:09:13]wFMCommunicate OK [00:09:13]wFMCommunicate request_size=4 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 0D 03 02 [00:09:13]Write to MH i2c: E2 08 00 C4 34 80 0D 03 02 00 00 00 00 73 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 0B 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 0B 00 C4 34 00 BA 94 14 22 A4 EC 34 B3 90 00 6F [00:09:13]RAPDU: BA 94 14 22 A4 EC 34 B3 90 00 [00:09:13]wFMCommunicate OK [00:09:13]SAM_PROTO_SignData done [00:09:13]FM_MakeSignedData done [00:09:13]CreateOFDProtocolMessage [00:09:13]wFMCommunicate request_size=4 [00:09:13]MH_SAM_APDU [00:09:13]CAPDU: 80 11 00 00 [00:09:13]Write to MH i2c: E2 08 00 C5 34 80 11 00 00 00 00 00 00 73 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:13]Read from MH i2c: E2 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 17 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: E2 17 00 C5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 D3 [00:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:09:13]wFMCommunicate OK [00:09:13]CreateOFDProtocolMessage done [00:09:13]OFDSenderStorePacket 162690 [00:09:13]StoreOFDPacket docnum=162690 [00:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 D7 07 01 70 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2A 17 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7B 02 00 35 04 06 00 B6 AE E7 7F C8 BE BA 94 14 22 A4 EC 34 B3 [00:09:13]CheckFolder [00:09:13]dirname=/storage/ofd_packets [00:09:13]CheckFolder done [00:09:13]ProducePacketName [00:09:13]name=ofd_packets/00162690 [00:09:13]NVStorageSaveData ofd_packets/00162690 [00:09:13]File name is /storage/ofd_packets/00162690 [00:09:13]Write 301 bytes [00:09:13]NVStorageSaveData done [00:09:13]OFDSenderStorePacket done [00:09:13]KKMCreateOFDPacket done [00:09:13]NVStorageSaveData kkm_last_timestamp [00:09:13]File name is /storage/kkm_last_timestamp [00:09:13]Write 4 bytes [00:09:13]NVStorageSaveData done [00:09:13]ExternCall_PrintAddStr [00:09:13]wPrintStart [00:09:13]Write to MH i2c: 01 00 00 C6 34 FA [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: 01 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: 01 07 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: 01 07 00 C6 34 00 00 00 00 00 FF 0F 0F [00:09:13]RasterBufferAndPrint [00:09:13]line Счет N : (1)1319269 [00:09:13]line ИНН: 02508201610067 [00:09:13]line Контрольно-Кассовый Чек [00:09:13]line ПРОДАЖА [00:09:13]line ТРК (МРК, ГНК) : 63 [00:09:13]line Товар: 2710124130 [00:09:13]line Аи-92-К-5 [00:09:13]line 9.810 * 66.30 [00:09:13]line = 650.40 [00:09:13]line НДС 12% НСП 1% [00:09:13]line > о реализуемом товаре [00:09:13]line ОКРУГЛЕНИЕ: -0.40 [00:09:13]line ИТОГО: 650.00 [00:09:13]line Внесено: 650.00 [00:09:13]line СДАЧА: 0.00 [00:09:13]line НСП 1% : 5.76 [00:09:13]line НДС 12% : 69.07 [00:09:13]line Наличными: 650.00 [00:09:13]line Безнал.: 0.00 [00:09:13]line Место: АЗС № 140 "Партнер Нефть" [00:09:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:09:13]line СНО: Общий режим [00:09:13]line Чек 2 14.07.2024 00:09 [00:09:13]line Смена: 463 ФФД: 1.0 [00:09:13]line ЗНМ: 0300000129 [00:09:13]line РНМ: 0000000000090858 [00:09:13]line Версия ККМ: 001 [00:09:13]line ФМ: 0000000000874899 [00:09:13]line ФД: 162690 [00:09:13]line ФПД: 200862324476094 [00:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T000914&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162690&fm=200862324476094&tin=02508201610067®Number=0000000000090858&sum=65000 [00:09:13]OFD Sender: Processing packet 162690 [packets to send 106, broken 105] [00:09:13]ProducePacketName [00:09:13]name=ofd_packets/00162690 [00:09:13]OFD Sender: To server: pG, [00:09:13]CommunicateWithHost lk.salyk.kg:30040 [00:09:13]ConnectInit lk.salyk.kg [00:09:13]written 0, free lines is 4095 [00:09:13]Connected sock=10 [00:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 05 D7 07 01 70 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 10 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 2A 17 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7B 02 00 35 04 06 00 B6 AE E7 7F C8 BE BA 94 14 22 A4 EC 34 B3 [00:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 6C 44 47 00 D4 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 82 7B 02 00 F4 03 04 00 38 C3 92 66 B6 04 01 00 00 EC 84 4E 05 44 16 F1 9E [00:09:14]CommunicateWithHost err = 0 [00:09:14]CheckOFDResponse [00:09:14]1017 (14) - 77093643461234 [00:09:14]1041 (16) - 0000000000874899 [00:09:14]1040 (4) - 162690 [00:09:14]1012 (4) - 13.07.2024 18:11 [00:09:14]1206 (1) - 0 [00:09:14]OFD Sender: Remove packet 162690 [00:09:14]ProducePacketName [00:09:14]name=ofd_packets/00162690 [00:09:14]NVStorageDeleteData [00:09:14]Write to MH i2c: 01 00 00 F1 34 25 [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: 01 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: 01 07 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: 01 07 00 F1 34 00 00 00 00 00 D4 0C 0C [00:09:14]RasterBufferAndPrint [00:09:14]line [00:09:14]line [00:09:14]line [00:09:14]line [00:09:14]line [00:09:14]written 0, free lines is 3290 [00:09:14]MH_Cut [00:09:14]Write to MH i2c: D1 01 00 F8 34 01 FE [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: D1 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: D1 01 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: D1 01 00 F8 34 00 FD [00:09:14]Write to MH i2c: 01 00 00 F9 34 2D [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]OFD Sender: No OFD packet to send [00:09:14]*** Cut start [00:09:14]*** Purtial cut [00:09:14]*** CUTSNS_PIN = 0 [00:09:15]*** Stage 1: CUTSNS_PIN = 1 [00:09:16]Read from MH i2c: 01 [00:09:16]MH_I2C_Read... [00:09:16]*** Stop cut motor [00:09:16]*** Cut end [00:09:16]Read from MH i2c: 01 07 00 [00:09:16]MH_I2C_Read... [00:09:16]Read from MH i2c: 01 07 00 F9 34 00 00 00 00 00 FF 0F 42 [00:09:16]process_action close_receipt done [00:09:16]requested_data is exist [00:09:16]produce_requested_data [00:09:16]requested_item fm.sn is exist - process it [00:09:16]wFMCommunicate request_size=4 [00:09:16]MH_SAM_APDU [00:09:16]CAPDU: 80 11 00 00 [00:09:16]Write to MH i2c: E2 08 00 FA 34 80 11 00 00 00 00 00 00 A8 [00:09:16]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 17 00 [00:09:17]MH_I2C_Read... [00:09:17]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 34 38 39 39 90 00 08 [00:09:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:09:17]wFMCommunicate OK [00:09:17]requested_item fd.num is exist - process it [00:09:17]SAM_PROTO_GetFieldsCounters [00:09:17]wFMCommunicate request_size=4 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 13 00 00 [00:09:17]Write to MH i2c: E2 08 00 FB 34 80 13 00 00 00 00 00 00 AB [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 62 00 [00:09:17]MH_I2C_Read... [00:09:17]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 82 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [00: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 82 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:17]wFMCommunicate OK [00:09:17]SAM_PROTO_GetFieldsCounters done [00:09:17]requested_item shift.num is exist - process it [00:09:17]requested_item shift.opened is exist - process it [00:09:17]req_shift_opened [00:09:17]FM_GetShiftState [00:09:17]SAM_PROTO_GetShiftState [00:09:17]wFMCommunicate request_size=4 [00:09:17]MH_SAM_APDU [00:09:17]CAPDU: 80 13 01 00 [00:09:17]Write to MH i2c: E2 08 00 FC 34 80 13 01 00 00 00 00 00 AD [00:09:17]Write i2c OK [00:09:17]MH_I2C_Read... [00:09:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:17]Read from MH i2c: E2 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 0E 00 [00:09:17]MH_I2C_Read... [00:09:17]Read from MH i2c: E2 0E 00 FC 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E3 [00:09:17]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:09:17]wFMCommunicate OK [00:09:17]SAM_PROTO_GetShiftState done [00:09:17]FM_GetShiftState done [00:09:17]req_shift_opened done [00:09:17]requested_item shift.open_date is exist - process it [00:09:17]req_shift_open_date [00:09:17]req_shift_open_date done [00:09:17]produce_requested_data done [00:09:17]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162690,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:09:17]process_action_free close_receipt [00:09:17]json_value_free [00:09:17]json_value_free done [00:09:17]process_json_proto returns [00:09:17]Send response to host [00:09:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162690,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:09:17]free response buf [00:09:17]execute_script done [00:09:17]execute_script returns [00:09:17]free content buf [00:09:17]Sock 7.Close socket [00:09:17]Sock 7.Thread stoped [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]accept exits with 9 [00:09:29]New connection [00:09:29]New thread 3067510116 created [00:09:29]Thread 3067366756 joined [00:09:29]Waiting for new connection... [00:09:29] Sock 9.Parse request [00:09:29]Sock 9.Check first char [00:09:29]Sock 9.First char is OK [00:09:29]request: POST /json_proto HTTP/1.0 [00:09:29]Method: POST [00:09:29]URL: /json_proto [00:09:29]Method is POST - this is cgi request [00:09:29]url: /json_proto [00:09:29]query_string will be loaded in cgi processing [00:09:29]execute_cgi json_proto POST (null) [00:09:29]execute_cgi path=json_proto method=POST [00:09:29]POST find Content-Length [00:09:29]Host: 172.17.39.67:8080 [00:09:29]Content-Length: 679 [00:09:29]Content-Type: application/json [00:09:29] [00:09:29]POST finish read [00:09:29]Found Content-Length = 679 [00:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:29]execute_script... [00:09: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)1319268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 10.110, "sum" : 670.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:29]POST & json_proto [00:09:29]process_json_proto [00:09:29]json parsed OK: [00:09:29]protocol is kg_v1.0 [00:09:29]action value=close_receipt [00:09:29]process_action close_receipt [00:09:29]cmd_close_receipt [00:09:29]MH_GetDate [00:09:29]Write to MH i2c: F0 00 00 FD 34 20 [00:09:29]Write i2c OK [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: F0 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: F0 09 00 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: F0 09 00 FD 34 00 3B 17 93 66 86 7C 92 66 6E [00:09:29]GetLastDocTimeStamp 1720915754 [00:09:29]current date 1720915771 [00:09:29]FM_GetShiftState [00:09:29]SAM_PROTO_GetShiftState [00:09:29]wFMCommunicate request_size=4 [00:09:29]MH_SAM_APDU [00:09:29]CAPDU: 80 13 01 00 [00:09:29]Write to MH i2c: E2 08 00 FE 34 80 13 01 00 00 00 00 00 AF [00:09:29]Write i2c OK [00:09:29]MH_I2C_Read... [00:09:29]OFD Sender: No OFD packet to send [00:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:29]Read from MH i2c: E2 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 0E 00 [00:09:29]MH_I2C_Read... [00:09:29]Read from MH i2c: E2 0E 00 FE 34 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E5 [00:09:29]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:09:29]wFMCommunicate OK [00:09:29]SAM_PROTO_GetShiftState done [00:09:29]FM_GetShiftState done [00:09:29]opened in 1720915483 [00:09:29]opened+sec_in_day 1721001883 [00:09:29]quantity*price = 67029 [00:09:29]sum+1 = 67030 [00:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.18 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 3 14.07.2024 00:09 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162691 ФПД: 100526181314031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T000932&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162691&fm=100526181314031&tin=02508201610067®Number=0000000000090858&sum=67000 [00:09:30]StoreToDocumentArchive [00:09:30]shift 463 fd 162691 [00:09:30]save to /storage/0463/doc_00162691 [00:09:30]save last doc name /storage/0463/doc_00162691 to /storage/kkm_last_doc_name [00:09:30]save OK [00:09:30]Clear old archive folders... [00:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:09:30]tlvbuf is 006B0950 [00:09:30]SAM_PROTO_ClearQueue [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 09 00 00 [00:09:30]Write to MH i2c: E2 08 00 0B 35 80 09 00 00 00 00 00 00 B2 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 03 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 03 00 0B 35 00 90 00 B4 [00:09:30]RAPDU: 90 00 [00:09:30]wFMCommunicate OK [00:09:30]SAM_PROTO_ClearQueue done [00:09:30]KKMCreateOFDPacket [00:09:30]OFDProtocolAddRootSTLVToBuf [00:09:30]FM_MakeSignedData [00:09:30]FM_MakeSignedData [00:09:30]SAM_PROTO_SignData [00:09:30]wFMCommunicate request_size=4 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 0D 01 02 [00:09:30]Write to MH i2c: E2 08 00 0C 35 80 0D 01 02 00 00 00 00 BA [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:30]Read from MH i2c: E2 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 03 00 [00:09:30]MH_I2C_Read... [00:09:30]Read from MH i2c: E2 03 00 0C 35 00 90 00 B5 [00:09:30]RAPDU: 90 00 [00:09:30]wFMCommunicate OK [00:09:30]wFMCommunicate request_size=255 [00:09:30]MH_SAM_APDU [00:09:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 3C 17 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7B 02 00 35 04 06 00 5B [00:09:30]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 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 3C 17 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7B 02 00 35 04 06 00 5B 00 00 87 [00:09:30]Write i2c OK [00:09:30]MH_I2C_Read... [00:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:31]Read from MH i2c: E2 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 03 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 03 00 0D 35 00 90 00 B6 [00:09:31]RAPDU: 90 00 [00:09:31]wFMCommunicate OK [00:09:31]wFMCommunicate request_size=10 [00:09:31]MH_SAM_APDU [00:09:31]CAPDU: 80 0D 02 02 05 6D 93 53 ED EF [00:09:31]Write to MH i2c: E2 0D 00 0E 35 80 0D 02 02 05 00 6D 93 53 ED EF 00 00 F6 [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:31]Read from MH i2c: E2 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 03 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 03 00 0E 35 00 90 00 B7 [00:09:31]RAPDU: 90 00 [00:09:31]wFMCommunicate OK [00:09:31]wFMCommunicate request_size=4 [00:09:31]MH_SAM_APDU [00:09:31]CAPDU: 80 0D 03 02 [00:09:31]Write to MH i2c: E2 08 00 0F 35 80 0D 03 02 00 00 00 00 BF [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:31]Read from MH i2c: E2 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 0B 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 0B 00 0F 35 00 9B 4D D6 60 E7 35 20 35 90 00 4F [00:09:31]RAPDU: 9B 4D D6 60 E7 35 20 35 90 00 [00:09:31]wFMCommunicate OK [00:09:31]SAM_PROTO_SignData done [00:09:31]FM_MakeSignedData done [00:09:31]CreateOFDProtocolMessage [00:09:31]wFMCommunicate request_size=4 [00:09:31]MH_SAM_APDU [00:09:31]CAPDU: 80 11 00 00 [00:09:31]Write to MH i2c: E2 08 00 10 35 80 11 00 00 00 00 00 00 BF [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:31]Read from MH i2c: E2 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: E2 17 00 [00:09:31]MH_I2C_Read... [00:09:31]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 34 38 39 39 90 00 1F [00:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:09:31]wFMCommunicate OK [00:09:31]CreateOFDProtocolMessage done [00:09:31]OFDSenderStorePacket 162691 [00:09:31]StoreOFDPacket docnum=162691 [00:09:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4D 2B 07 01 7E 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 3C 17 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7B 02 00 35 04 06 00 5B 6D 93 53 ED EF 9B 4D D6 60 E7 35 20 35 [00:09:31]CheckFolder [00:09:31]dirname=/storage/ofd_packets [00:09:31]CheckFolder done [00:09:31]ProducePacketName [00:09:31]name=ofd_packets/00162691 [00:09:31]NVStorageSaveData ofd_packets/00162691 [00:09:31]File name is /storage/ofd_packets/00162691 [00:09:31]Write 301 bytes [00:09:31]NVStorageSaveData done [00:09:31]OFDSenderStorePacket done [00:09:31]KKMCreateOFDPacket done [00:09:31]NVStorageSaveData kkm_last_timestamp [00:09:31]File name is /storage/kkm_last_timestamp [00:09:31]Write 4 bytes [00:09:31]NVStorageSaveData done [00:09:31]ExternCall_PrintAddStr [00:09:31]wPrintStart [00:09:31]Write to MH i2c: 01 00 00 11 35 46 [00:09:31]Write i2c OK [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 07 00 [00:09:31]MH_I2C_Read... [00:09:31]Read from MH i2c: 01 07 00 11 35 00 00 00 00 00 FF 0F 5B [00:09:31]RasterBufferAndPrint [00:09:31]line Счет N : (1)1319268 [00:09:31]line ИНН: 02508201610067 [00:09:31]line Контрольно-Кассовый Чек [00:09:31]line ПРОДАЖА [00:09:31]line ТРК (МРК, ГНК) : 53 [00:09:31]line Товар: 2710124130 [00:09:31]line Аи-92-К-5 [00:09:31]line 10.110 * 66.30 [00:09:31]line = 670.29 [00:09:31]line НДС 12% НСП 1% [00:09:31]line > о реализуемом товаре [00:09:31]line ОКРУГЛЕНИЕ: -0.29 [00:09:31]line ИТОГО: 670.00 [00:09:31]line Внесено: 670.00 [00:09:31]line СДАЧА: 0.00 [00:09:31]line НСП 1% : 5.93 [00:09:31]line НДС 12% : 71.18 [00:09:31]line Наличными: 670.00 [00:09:31]line Безнал.: 0.00 [00:09:31]line Место: АЗС № 140 "Партнер Нефть" [00:09:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:09:31]line СНО: Общий режим [00:09:31]line Чек 3 14.07.2024 00:09 [00:09:31]line Смена: 463 ФФД: 1.0 [00:09:31]line ЗНМ: 0300000129 [00:09:31]line РНМ: 0000000000090858 [00:09:31]line Версия ККМ: 001 [00:09:31]line ФМ: 0000000000874899 [00:09:31]line ФД: 162691 [00:09:31]line ФПД: 100526181314031 [00:09:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T000932&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162691&fm=100526181314031&tin=02508201610067®Number=0000000000090858&sum=67000 [00:09:31]OFD Sender: Processing packet 162691 [packets to send 106, broken 105] [00:09:31]ProducePacketName [00:09:31]name=ofd_packets/00162691 [00:09:31]OFD Sender: To server: pG, [00:09:31]CommunicateWithHost lk.salyk.kg:30040 [00:09:31]ConnectInit lk.salyk.kg [00:09:31]written 0, free lines is 4095 [00:09:31]Connected sock=10 [00:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 4D 2B 07 01 7E 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 D5 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 3C 17 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7B 02 00 35 04 06 00 5B 6D 93 53 ED EF 9B 4D D6 60 E7 35 20 35 [00:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 42 50 47 00 06 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 83 7B 02 00 F4 03 04 00 49 C3 92 66 B6 04 01 00 00 7D 2B 25 7F 35 E2 5E D8 [00:09:31]CommunicateWithHost err = 0 [00:09:31]CheckOFDResponse [00:09:31]1017 (14) - 77093643461234 [00:09:31]1041 (16) - 0000000000874899 [00:09:31]1040 (4) - 162691 [00:09:31]1012 (4) - 13.07.2024 18:11 [00:09:31]1206 (1) - 0 [00:09:31]OFD Sender: Remove packet 162691 [00:09:31]ProducePacketName [00:09:31]name=ofd_packets/00162691 [00:09:31]NVStorageDeleteData [00:09:32]Write to MH i2c: 01 00 00 3C 35 71 [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: 01 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: 01 07 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: 01 07 00 3C 35 00 00 00 00 00 D1 0C 55 [00:09:32]RasterBufferAndPrint [00:09:32]line [00:09:32]line [00:09:32]line [00:09:32]line [00:09:32]line [00:09:32]written 0, free lines is 3287 [00:09:32]MH_Cut [00:09:32]Write to MH i2c: D1 01 00 43 35 01 4A [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: D1 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: D1 01 00 [00:09:32]MH_I2C_Read... [00:09:32]Read from MH i2c: D1 01 00 43 35 00 49 [00:09:32]Write to MH i2c: 01 00 00 44 35 79 [00:09:32]Write i2c OK [00:09:32]MH_I2C_Read... [00:09:32]OFD Sender: No OFD packet to send [00:09:32]*** Cut start [00:09:32]*** Purtial cut [00:09:32]*** Stage 1: CUTSNS_PIN = 1 [00:09:33]Read from MH i2c: 01 [00:09:33]MH_I2C_Read... [00:09:33]*** Stop cut motor [00:09:33]*** Cut end [00:09:33]Read from MH i2c: 01 07 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: 01 07 00 44 35 00 00 00 00 00 FF 0F 8E [00:09:33]process_action close_receipt done [00:09:33]requested_data is exist [00:09:33]produce_requested_data [00:09:33]requested_item fm.sn is exist - process it [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 11 00 00 [00:09:33]Write to MH i2c: E2 08 00 45 35 80 11 00 00 00 00 00 00 F4 [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 17 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 17 00 45 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 54 [00:09:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:09:33]wFMCommunicate OK [00:09:33]requested_item fd.num is exist - process it [00:09:33]SAM_PROTO_GetFieldsCounters [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 13 00 00 [00:09:33]Write to MH i2c: E2 08 00 46 35 80 13 00 00 00 00 00 00 F7 [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 62 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 62 00 46 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 83 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [00:09:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 83 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:33]wFMCommunicate OK [00:09:33]SAM_PROTO_GetFieldsCounters done [00:09:33]requested_item shift.num is exist - process it [00:09:33]requested_item shift.opened is exist - process it [00:09:33]req_shift_opened [00:09:33]FM_GetShiftState [00:09:33]SAM_PROTO_GetShiftState [00:09:33]wFMCommunicate request_size=4 [00:09:33]MH_SAM_APDU [00:09:33]CAPDU: 80 13 01 00 [00:09:33]Write to MH i2c: E2 08 00 47 35 80 13 01 00 00 00 00 00 F9 [00:09:33]Write i2c OK [00:09:33]MH_I2C_Read... [00:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:33]Read from MH i2c: E2 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 0E 00 [00:09:33]MH_I2C_Read... [00:09:33]Read from MH i2c: E2 0E 00 47 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2F [00:09:33]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:09:33]wFMCommunicate OK [00:09:33]SAM_PROTO_GetShiftState done [00:09:33]FM_GetShiftState done [00:09:33]req_shift_opened done [00:09:33]requested_item shift.open_date is exist - process it [00:09:33]req_shift_open_date [00:09:33]req_shift_open_date done [00:09:33]produce_requested_data done [00:09:33]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162691,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:09:33]process_action_free close_receipt [00:09:33]json_value_free [00:09:33]json_value_free done [00:09:33]process_json_proto returns [00:09:33]Send response to host [00:09:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162691,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:09:33]free response buf [00:09:33]execute_script done [00:09:33]execute_script returns [00:09:33]free content buf [00:09:33]Sock 9.Close socket [00:09:33]Sock 9.Thread stoped [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:01]accept exits with 7 [00:25:01]New connection [00:25:01]New thread 3067366756 created [00:25:01]Thread 3067510116 joined [00:25:01]Waiting for new connection... [00:25:01] Sock 7.Parse request [00:25:01]Sock 7.Check first char [00:25:01]Sock 7.First char is OK [00:25:01]request: POST /json_proto HTTP/1.0 [00:25:01]Method: POST [00:25:01]URL: /json_proto [00:25:01]Method is POST - this is cgi request [00:25:01]url: /json_proto [00:25:01]query_string will be loaded in cgi processing [00:25:01]execute_cgi json_proto POST (null) [00:25:01]execute_cgi path=json_proto method=POST [00:25:01]POST find Content-Length [00:25:01]Host: 172.17.39.67:8080 [00:25:01]Content-Length: 678 [00:25:01]Content-Type: application/json [00:25:01] [00:25:01]POST finish read [00:25:01]Found Content-Length = 678 [00:25:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.360, "sum" : 620.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:01]execute_script... [00:25: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)1319270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 9.360, "sum" : 620.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:01]POST & json_proto [00:25:01]process_json_proto [00:25:01]json parsed OK: [00:25:01]protocol is kg_v1.0 [00:25:01]action value=close_receipt [00:25:01]process_action close_receipt [00:25:01]cmd_close_receipt [00:25:01]MH_GetDate [00:25:01]Write to MH i2c: F0 00 00 48 35 6C [00:25:01]Write i2c OK [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: F0 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: F0 09 00 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: F0 09 00 48 35 00 E0 1A 93 66 86 7C 92 66 62 [00:25:01]GetLastDocTimeStamp 1720915772 [00:25:01]current date 1720916704 [00:25:01]FM_GetShiftState [00:25:01]SAM_PROTO_GetShiftState [00:25:01]wFMCommunicate request_size=4 [00:25:01]MH_SAM_APDU [00:25:01]CAPDU: 80 13 01 00 [00:25:01]Write to MH i2c: E2 08 00 49 35 80 13 01 00 00 00 00 00 FB [00:25:01]Write i2c OK [00:25:01]MH_I2C_Read... [00:25:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:01]Read from MH i2c: E2 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 0E 00 [00:25:01]MH_I2C_Read... [00:25:01]Read from MH i2c: E2 0E 00 49 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 31 [00:25:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:25:01]wFMCommunicate OK [00:25:01]SAM_PROTO_GetShiftState done [00:25:01]FM_GetShiftState done [00:25:01]opened in 1720915483 [00:25:01]opened+sec_in_day 1721001883 [00:25:01]quantity*price = 62056 [00:25:01]sum+1 = 62058 [00:25:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.90 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 4 14.07.2024 00:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162692 ФПД: 216473562489372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T002504&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162692&fm=216473562489372&tin=02508201610067®Number=0000000000090858&sum=62000 [00:25:02]StoreToDocumentArchive [00:25:02]shift 463 fd 162692 [00:25:02]save to /storage/0463/doc_00162692 [00:25:02]save last doc name /storage/0463/doc_00162692 to /storage/kkm_last_doc_name [00:25:02]save OK [00:25:02]Clear old archive folders... [00:25:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:02]tlvbuf is 0060C0A0 [00:25:02]SAM_PROTO_ClearQueue [00:25:02]wFMCommunicate request_size=4 [00:25:02]MH_SAM_APDU [00:25:02]CAPDU: 80 09 00 00 [00:25:02]Write to MH i2c: E2 08 00 56 35 80 09 00 00 00 00 00 00 FD [00:25:02]Write i2c OK [00:25:02]MH_I2C_Read... [00:25:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:02]Read from MH i2c: E2 [00:25:02]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 03 00 [00:25:02]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 03 00 56 35 00 90 00 FF [00:25:02]RAPDU: 90 00 [00:25:02]wFMCommunicate OK [00:25:02]SAM_PROTO_ClearQueue done [00:25:02]KKMCreateOFDPacket [00:25:02]OFDProtocolAddRootSTLVToBuf [00:25:02]FM_MakeSignedData [00:25:02]FM_MakeSignedData [00:25:02]SAM_PROTO_SignData [00:25:02]wFMCommunicate request_size=4 [00:25:02]MH_SAM_APDU [00:25:02]CAPDU: 80 0D 01 02 [00:25:02]Write to MH i2c: E2 08 00 57 35 80 0D 01 02 00 00 00 00 05 [00:25:02]Write i2c OK [00:25:02]MH_I2C_Read... [00:25:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:02]Read from MH i2c: E2 [00:25:02]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 03 00 [00:25:02]MH_I2C_Read... [00:25:02]Read from MH i2c: E2 03 00 57 35 00 90 00 00 [00:25:02]RAPDU: 90 00 [00:25:02]wFMCommunicate OK [00:25:02]wFMCommunicate request_size=255 [00:25:02]MH_SAM_APDU [00:25:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 24 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 69 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E0 1A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7B 02 00 35 04 06 00 C4 [00:25:02]Write to MH i2c: E2 02 01 58 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 24 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 69 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E0 1A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7B 02 00 35 04 06 00 C4 00 00 FD [00:25:02]Write i2c OK [00:25:02]MH_I2C_Read... [00:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:03]Read from MH i2c: E2 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 03 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 03 00 58 35 00 90 00 01 [00:25:03]RAPDU: 90 00 [00:25:03]wFMCommunicate OK [00:25:03]wFMCommunicate request_size=10 [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 0D 02 02 05 E1 AD CB A2 1C [00:25:03]Write to MH i2c: E2 0D 00 59 35 80 0D 02 02 05 00 E1 AD CB A2 1C 00 00 29 [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:03]Read from MH i2c: E2 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 03 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 03 00 59 35 00 90 00 02 [00:25:03]RAPDU: 90 00 [00:25:03]wFMCommunicate OK [00:25:03]wFMCommunicate request_size=4 [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 0D 03 02 [00:25:03]Write to MH i2c: E2 08 00 5A 35 80 0D 03 02 00 00 00 00 0A [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:03]Read from MH i2c: E2 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 0B 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 0B 00 5A 35 00 99 43 96 FF 1B 7A 42 AA 90 00 FD [00:25:03]RAPDU: 99 43 96 FF 1B 7A 42 AA 90 00 [00:25:03]wFMCommunicate OK [00:25:03]SAM_PROTO_SignData done [00:25:03]FM_MakeSignedData done [00:25:03]CreateOFDProtocolMessage [00:25:03]wFMCommunicate request_size=4 [00:25:03]MH_SAM_APDU [00:25:03]CAPDU: 80 11 00 00 [00:25:03]Write to MH i2c: E2 08 00 5B 35 80 11 00 00 00 00 00 00 0A [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:03]Read from MH i2c: E2 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 17 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: E2 17 00 5B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6A [00:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:25:03]wFMCommunicate OK [00:25:03]CreateOFDProtocolMessage done [00:25:03]OFDSenderStorePacket 162692 [00:25:03]StoreOFDPacket docnum=162692 [00:25:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 21 ED 07 01 27 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 24 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 69 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E0 1A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7B 02 00 35 04 06 00 C4 E1 AD CB A2 1C 99 43 96 FF 1B 7A 42 AA [00:25:03]CheckFolder [00:25:03]dirname=/storage/ofd_packets [00:25:03]CheckFolder done [00:25:03]ProducePacketName [00:25:03]name=ofd_packets/00162692 [00:25:03]NVStorageSaveData ofd_packets/00162692 [00:25:03]File name is /storage/ofd_packets/00162692 [00:25:03]Write 301 bytes [00:25:03]NVStorageSaveData done [00:25:03]OFDSenderStorePacket done [00:25:03]KKMCreateOFDPacket done [00:25:03]NVStorageSaveData kkm_last_timestamp [00:25:03]File name is /storage/kkm_last_timestamp [00:25:03]Write 4 bytes [00:25:03]NVStorageSaveData done [00:25:03]ExternCall_PrintAddStr [00:25:03]wPrintStart [00:25:03]Write to MH i2c: 01 00 00 5C 35 91 [00:25:03]Write i2c OK [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: 01 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: 01 07 00 [00:25:03]MH_I2C_Read... [00:25:03]Read from MH i2c: 01 07 00 5C 35 00 00 00 00 00 FF 0F A6 [00:25:03]RasterBufferAndPrint [00:25:03]line Счет N : (1)1319270 [00:25:03]line ИНН: 02508201610067 [00:25:03]line Контрольно-Кассовый Чек [00:25:03]line ПРОДАЖА [00:25:03]line ТРК (МРК, ГНК) : 63 [00:25:03]line Товар: 2710124130 [00:25:03]line Аи-92-К-5 [00:25:03]line 9.360 * 66.30 [00:25:03]line = 620.57 [00:25:03]line НДС 12% НСП 1% [00:25:03]line > о реализуемом товаре [00:25:03]line ОКРУГЛЕНИЕ: -0.57 [00:25:03]line ИТОГО: 620.00 [00:25:03]line Внесено: 620.00 [00:25:03]line СДАЧА: 0.00 [00:25:03]line НСП 1% : 5.49 [00:25:03]line НДС 12% : 65.90 [00:25:03]line Наличными: 620.00 [00:25:03]line Безнал.: 0.00 [00:25:03]line Место: АЗС № 140 "Партнер Нефть" [00:25:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:25:03]line СНО: Общий режим [00:25:03]line Чек 4 14.07.2024 00:25 [00:25:03]line Смена: 463 ФФД: 1.0 [00:25:03]line ЗНМ: 0300000129 [00:25:03]line РНМ: 0000000000090858 [00:25:03]line Версия ККМ: 001 [00:25:03]line ФМ: 0000000000874899 [00:25:03]line ФД: 162692 [00:25:03]line ФПД: 216473562489372 [00:25:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T002504&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162692&fm=216473562489372&tin=02508201610067®Number=0000000000090858&sum=62000 [00:25:03]OFD Sender: Processing packet 162692 [packets to send 106, broken 105] [00:25:03]ProducePacketName [00:25:03]name=ofd_packets/00162692 [00:25:03]OFD Sender: To server: pG, [00:25:03]CommunicateWithHost lk.salyk.kg:30040 [00:25:03]ConnectInit lk.salyk.kg [00:25:03]written 0, free lines is 4095 [00:25:03]Connected sock=10 [00:25:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 21 ED 07 01 27 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 90 24 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 69 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 E0 1A 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7B 02 00 35 04 06 00 C4 E1 AD CB A2 1C 99 43 96 FF 1B 7A 42 AA [00:25:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 5D 86 47 00 9B FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 84 7B 02 00 F4 03 04 00 EE C6 92 66 B6 04 01 00 00 EF 07 87 6D F3 0C AF 72 [00:25:04]CommunicateWithHost err = 0 [00:25:04]CheckOFDResponse [00:25:04]1017 (14) - 77093643461234 [00:25:04]1041 (16) - 0000000000874899 [00:25:04]1040 (4) - 162692 [00:25:04]1012 (4) - 13.07.2024 18:26 [00:25:04]1206 (1) - 0 [00:25:04]OFD Sender: Remove packet 162692 [00:25:04]ProducePacketName [00:25:04]name=ofd_packets/00162692 [00:25:04]NVStorageDeleteData [00:25:04]Write to MH i2c: 01 00 00 87 35 BC [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 07 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: 01 07 00 87 35 00 00 00 00 00 D4 0C A3 [00:25:04]RasterBufferAndPrint [00:25:04]line [00:25:04]line [00:25:04]line [00:25:04]line [00:25:04]line [00:25:04]written 0, free lines is 3294 [00:25:04]MH_Cut [00:25:04]Write to MH i2c: D1 01 00 8E 35 01 95 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: D1 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: D1 01 00 [00:25:04]MH_I2C_Read... [00:25:04]Read from MH i2c: D1 01 00 8E 35 00 94 [00:25:04]Write to MH i2c: 01 00 00 8F 35 C4 [00:25:04]Write i2c OK [00:25:04]MH_I2C_Read... [00:25:04]OFD Sender: No OFD packet to send [00:25:04]*** Cut start [00:25:04]*** Purtial cut [00:25:04]*** CUTSNS_PIN = 0 [00:25:05]*** Stage 1: CUTSNS_PIN = 1 [00:25:06]Read from MH i2c: 01 [00:25:06]MH_I2C_Read... [00:25:06]*** Stop cut motor [00:25:06]*** Cut end [00:25:06]Read from MH i2c: 01 07 00 [00:25:06]MH_I2C_Read... [00:25:06]Read from MH i2c: 01 07 00 8F 35 00 00 00 00 00 FF 0F D9 [00:25:06]process_action close_receipt done [00:25:06]requested_data is exist [00:25:06]produce_requested_data [00:25:06]requested_item fm.sn is exist - process it [00:25:06]wFMCommunicate request_size=4 [00:25:06]MH_SAM_APDU [00:25:06]CAPDU: 80 11 00 00 [00:25:06]Write to MH i2c: E2 08 00 90 35 80 11 00 00 00 00 00 00 3F [00:25:06]Write i2c OK [00:25:06]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 17 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 17 00 90 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 9F [00:25:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:25:07]wFMCommunicate OK [00:25:07]requested_item fd.num is exist - process it [00:25:07]SAM_PROTO_GetFieldsCounters [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 13 00 00 [00:25:07]Write to MH i2c: E2 08 00 91 35 80 13 00 00 00 00 00 00 42 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 62 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 62 00 91 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 84 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [00:25:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 84 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:07]wFMCommunicate OK [00:25:07]SAM_PROTO_GetFieldsCounters done [00:25:07]requested_item shift.num is exist - process it [00:25:07]requested_item shift.opened is exist - process it [00:25:07]req_shift_opened [00:25:07]FM_GetShiftState [00:25:07]SAM_PROTO_GetShiftState [00:25:07]wFMCommunicate request_size=4 [00:25:07]MH_SAM_APDU [00:25:07]CAPDU: 80 13 01 00 [00:25:07]Write to MH i2c: E2 08 00 92 35 80 13 01 00 00 00 00 00 44 [00:25:07]Write i2c OK [00:25:07]MH_I2C_Read... [00:25:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:07]Read from MH i2c: E2 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 0E 00 [00:25:07]MH_I2C_Read... [00:25:07]Read from MH i2c: E2 0E 00 92 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7A [00:25:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:25:07]wFMCommunicate OK [00:25:07]SAM_PROTO_GetShiftState done [00:25:07]FM_GetShiftState done [00:25:07]req_shift_opened done [00:25:07]requested_item shift.open_date is exist - process it [00:25:07]req_shift_open_date [00:25:07]req_shift_open_date done [00:25:07]produce_requested_data done [00:25:07]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162692,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:25:07]process_action_free close_receipt [00:25:07]json_value_free [00:25:07]json_value_free done [00:25:07]process_json_proto returns [00:25:07]Send response to host [00:25:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162692,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:25:07]free response buf [00:25:07]execute_script done [00:25:07]execute_script returns [00:25:07]free content buf [00:25:07]Sock 7.Close socket [00:25:07]Sock 7.Thread stoped [00:25:09]OFD Sender: No OFD packet to send [00:25:14]OFD Sender: No OFD packet to send [00:25:19]OFD Sender: No OFD packet to send [00:25:24]OFD Sender: No OFD packet to send [00:25:29]OFD Sender: No OFD packet to send [00:25:34]OFD Sender: No OFD packet to send [00:25:39]OFD Sender: No OFD packet to send [00:25:44]OFD Sender: No OFD packet to send [00:25:49]OFD Sender: No OFD packet to send [00:25:54]OFD Sender: No OFD packet to send [00:25:59]OFD Sender: No OFD packet to send [00:26:04]OFD Sender: No OFD packet to send [00:26:09]OFD Sender: No OFD packet to send [00:26:14]OFD Sender: No OFD packet to send [00:26:19]OFD Sender: No OFD packet to send [00:26:24]OFD Sender: No OFD packet to send [00:26:29]OFD Sender: No OFD packet to send [00:26:34]OFD Sender: No OFD packet to send [00:26:39]OFD Sender: No OFD packet to send [00:26:44]OFD Sender: No OFD packet to send [00:26:49]OFD Sender: No OFD packet to send [00:26:54]OFD Sender: No OFD packet to send [00:26:59]OFD Sender: No OFD packet to send [00:27:04]OFD Sender: No OFD packet to send [00:27:09]OFD Sender: No OFD packet to send [00:27:14]OFD Sender: No OFD packet to send [00:27:19]OFD Sender: No OFD packet to send [00:27:24]OFD Sender: No OFD packet to send [00:27:29]OFD Sender: No OFD packet to send [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:09]OFD Sender: No OFD packet to send [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]OFD Sender: No OFD packet to send [00:30:09]OFD Sender: No OFD packet to send [00:30:14]OFD Sender: No OFD packet to send [00:30:19]OFD Sender: No OFD packet to send [00:30:24]OFD Sender: No OFD packet to send [00:30:29]OFD Sender: No OFD packet to send [00:30:34]OFD Sender: No OFD packet to send [00:30:39]OFD Sender: No OFD packet to send [00:30:44]OFD Sender: No OFD packet to send [00:30:49]OFD Sender: No OFD packet to send [00:30:54]OFD Sender: No OFD packet to send [00:30:59]OFD Sender: No OFD packet to send [00:31:04]OFD Sender: No OFD packet to send [00:31:09]OFD Sender: No OFD packet to send [00:31:14]OFD Sender: No OFD packet to send [00:31:19]OFD Sender: No OFD packet to send [00:31:24]OFD Sender: No OFD packet to send [00:31:29]OFD Sender: No OFD packet to send [00:31:34]OFD Sender: No OFD packet to send [00:31:39]OFD Sender: No OFD packet to send [00:31:44]OFD Sender: No OFD packet to send [00:31:49]OFD Sender: No OFD packet to send [00:31:54]OFD Sender: No OFD packet to send [00:31:59]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:25]OFD Sender: No OFD packet to send [00:34:26]accept exits with 9 [00:34:26]New connection [00:34:26]New thread 3067510116 created [00:34:26]Thread 3067366756 joined [00:34:26]Waiting for new connection... [00:34:26] Sock 9.Parse request [00:34:26]Sock 9.Check first char [00:34:26]Sock 9.First char is OK [00:34:26]request: POST /json_proto HTTP/1.0 [00:34:26]Method: POST [00:34:26]URL: /json_proto [00:34:26]Method is POST - this is cgi request [00:34:26]url: /json_proto [00:34:26]query_string will be loaded in cgi processing [00:34:26]execute_cgi json_proto POST (null) [00:34:26]execute_cgi path=json_proto method=POST [00:34:26]POST find Content-Length [00:34:26]Host: 172.17.39.67:8080 [00:34:26]Content-Length: 825 [00:34:26]Content-Type: application/json [00:34:26] [00:34:26]POST finish read [00:34:26]Found Content-Length = 825 [00:34:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:26]execute_script... [00:34:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:26]POST & json_proto [00:34:26]process_json_proto [00:34:26]json parsed OK: [00:34:26]protocol is kg_v1.0 [00:34:26]action value=close_receipt [00:34:26]process_action close_receipt [00:34:26]cmd_close_receipt [00:34:26]MH_GetDate [00:34:26]Write to MH i2c: F0 00 00 93 35 B7 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 09 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: F0 09 00 93 35 00 15 1D 93 66 86 7C 92 66 E5 [00:34:26]GetLastDocTimeStamp 1720916704 [00:34:26]current date 1720917269 [00:34:26]FM_GetShiftState [00:34:26]SAM_PROTO_GetShiftState [00:34:26]wFMCommunicate request_size=4 [00:34:26]MH_SAM_APDU [00:34:26]CAPDU: 80 13 01 00 [00:34:26]Write to MH i2c: E2 08 00 94 35 80 13 01 00 00 00 00 00 46 [00:34:26]Write i2c OK [00:34:26]MH_I2C_Read... [00:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:26]Read from MH i2c: E2 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 0E 00 [00:34:26]MH_I2C_Read... [00:34:26]Read from MH i2c: E2 0E 00 94 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 7C [00:34:26]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:34:26]wFMCommunicate OK [00:34:26]SAM_PROTO_GetShiftState done [00:34:26]FM_GetShiftState done [00:34:26]opened in 1720915483 [00:34:26]opened+sec_in_day 1721001883 [00:34:26]quantity*price = 100042 [00:34:26]sum+1 = 100044 [00:34:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 5 14.07.2024 00:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162693 ФПД: 251059468474181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T003429&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162693&fm=251059468474181&tin=02508201610067®Number=0000000000090858&sum=100043 [00:34:27]StoreToDocumentArchive [00:34:27]shift 463 fd 162693 [00:34:27]save to /storage/0463/doc_00162693 [00:34:27]save last doc name /storage/0463/doc_00162693 to /storage/kkm_last_doc_name [00:34:27]save OK [00:34:27]Clear old archive folders... [00:34:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:34:27]tlvbuf is 006D2760 [00:34:27]SAM_PROTO_ClearQueue [00:34:27]wFMCommunicate request_size=4 [00:34:27]MH_SAM_APDU [00:34:27]CAPDU: 80 09 00 00 [00:34:27]Write to MH i2c: E2 08 00 A1 35 80 09 00 00 00 00 00 00 48 [00:34:27]Write i2c OK [00:34:27]MH_I2C_Read... [00:34:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:27]Read from MH i2c: E2 [00:34:27]MH_I2C_Read... [00:34:27]Read from MH i2c: E2 03 00 [00:34:27]MH_I2C_Read... [00:34:27]Read from MH i2c: E2 03 00 A1 35 00 90 00 4A [00:34:27]RAPDU: 90 00 [00:34:27]wFMCommunicate OK [00:34:27]SAM_PROTO_ClearQueue done [00:34:27]KKMCreateOFDPacket [00:34:27]OFDProtocolAddRootSTLVToBuf [00:34:27]FM_MakeSignedData [00:34:27]FM_MakeSignedData [00:34:27]SAM_PROTO_SignData [00:34:27]wFMCommunicate request_size=4 [00:34:27]MH_SAM_APDU [00:34:27]CAPDU: 80 0D 01 02 [00:34:27]Write to MH i2c: E2 08 00 A2 35 80 0D 01 02 00 00 00 00 50 [00:34:27]Write i2c OK [00:34:27]MH_I2C_Read... [00:34:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:27]Read from MH i2c: E2 [00:34:27]MH_I2C_Read... [00:34:27]Read from MH i2c: E2 03 00 [00:34:27]MH_I2C_Read... [00:34:27]Read from MH i2c: E2 03 00 A2 35 00 90 00 4B [00:34:27]RAPDU: 90 00 [00:34:27]wFMCommunicate OK [00:34:27]wFMCommunicate request_size=255 [00:34:27]MH_SAM_APDU [00:34:27]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 1D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7B 02 00 35 04 06 00 [00:34:27]Write to MH i2c: E2 02 01 A3 35 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 1D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7B 02 00 35 04 06 00 00 00 41 [00:34:27]Write i2c OK [00:34:27]MH_I2C_Read... [00:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:28]Read from MH i2c: E2 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: E2 03 00 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: E2 03 00 A3 35 00 90 00 4C [00:34:28]RAPDU: 90 00 [00:34:28]wFMCommunicate OK [00:34:28]wFMCommunicate request_size=11 [00:34:28]MH_SAM_APDU [00:34:28]CAPDU: 80 0D 02 02 06 E4 56 56 6F 97 45 [00:34:28]Write to MH i2c: E2 0E 00 A4 35 80 0D 02 02 06 00 E4 56 56 6F 97 45 00 00 3A [00:34:28]Write i2c OK [00:34:28]MH_I2C_Read... [00:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:28]Read from MH i2c: E2 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: E2 03 00 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: E2 03 00 A4 35 00 90 00 4D [00:34:28]RAPDU: 90 00 [00:34:28]wFMCommunicate OK [00:34:28]wFMCommunicate request_size=4 [00:34:28]MH_SAM_APDU [00:34:28]CAPDU: 80 0D 03 02 [00:34:28]Write to MH i2c: E2 08 00 A5 35 80 0D 03 02 00 00 00 00 55 [00:34:28]Write i2c OK [00:34:28]MH_I2C_Read... [00:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:28]Read from MH i2c: E2 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: E2 0B 00 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: E2 0B 00 A5 35 00 EC 72 71 7F 79 08 1E 22 90 00 65 [00:34:28]RAPDU: EC 72 71 7F 79 08 1E 22 90 00 [00:34:28]wFMCommunicate OK [00:34:28]SAM_PROTO_SignData done [00:34:28]FM_MakeSignedData done [00:34:28]CreateOFDProtocolMessage [00:34:28]wFMCommunicate request_size=4 [00:34:28]MH_SAM_APDU [00:34:28]CAPDU: 80 11 00 00 [00:34:28]Write to MH i2c: E2 08 00 A6 35 80 11 00 00 00 00 00 00 55 [00:34:28]Write i2c OK [00:34:28]MH_I2C_Read... [00:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:28]Read from MH i2c: E2 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: E2 17 00 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: E2 17 00 A6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B5 [00:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:34:28]wFMCommunicate OK [00:34:28]CreateOFDProtocolMessage done [00:34:28]OFDSenderStorePacket 162693 [00:34:28]StoreOFDPacket docnum=162693 [00:34:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F9 32 08 01 E7 FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 1D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7B 02 00 35 04 06 00 E4 56 56 6F 97 45 EC 72 71 7F 79 08 1E 22 [00:34:28]CheckFolder [00:34:28]dirname=/storage/ofd_packets [00:34:28]CheckFolder done [00:34:28]ProducePacketName [00:34:28]name=ofd_packets/00162693 [00:34:28]NVStorageSaveData ofd_packets/00162693 [00:34:28]File name is /storage/ofd_packets/00162693 [00:34:28]Write 302 bytes [00:34:28]NVStorageSaveData done [00:34:28]OFDSenderStorePacket done [00:34:28]KKMCreateOFDPacket done [00:34:28]NVStorageSaveData kkm_last_timestamp [00:34:28]File name is /storage/kkm_last_timestamp [00:34:28]Write 4 bytes [00:34:28]NVStorageSaveData done [00:34:28]ExternCall_PrintAddStr [00:34:28]wPrintStart [00:34:28]Write to MH i2c: 01 00 00 A7 35 DC [00:34:28]Write i2c OK [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: 01 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: 01 07 00 [00:34:28]MH_I2C_Read... [00:34:28]Read from MH i2c: 01 07 00 A7 35 00 00 00 00 00 FF 0F F1 [00:34:28]RasterBufferAndPrint [00:34:28]line Счет N : (1)1319271 [00:34:28]line ИНН: 02508201610067 [00:34:28]line Контрольно-Кассовый Чек [00:34:28]line ПРОДАЖА [00:34:28]line ТРК (МРК, ГНК) : 61 [00:34:28]line Товар: 2710194210 [00:34:28]line ДТ(л)-К-5 [00:34:28]line 13.780 * 72.60 [00:34:28]line = 1000.43 [00:34:28]line НДС 12% НСП 1% [00:34:28]line > о реализуемом товаре [00:34:28]line ИТОГО: 1000.43 [00:34:28]line НСП 1% : 8.85 [00:34:28]line НДС 12% : 106.24 [00:34:28]line Наличными: 0.00 [00:34:28]line Безнал.: 1000.43 [00:34:28]line Место: АЗС № 140 "Партнер Нефть" [00:34:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:34:28]line СНО: Общий режим [00:34:28]line Чек 5 14.07.2024 00:34 [00:34:28]line Смена: 463 ФФД: 1.0 [00:34:28]line ЗНМ: 0300000129 [00:34:28]line РНМ: 0000000000090858 [00:34:28]line Версия ККМ: 001 [00:34:28]line Платежная система: Бакай Банк [00:34:28]line ФМ: 0000000000874899 [00:34:28]line ФД: 162693 [00:34:28]line ФПД: 251059468474181 [00:34:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T003429&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162693&fm=251059468474181&tin=02508201610067®Number=0000000000090858&sum=100043 [00:34:28]written 0, free lines is 4095 [00:34:28]OFD Sender: Processing packet 162693 [packets to send 106, broken 105] [00:34:28]ProducePacketName [00:34:28]name=ofd_packets/00162693 [00:34:28]OFD Sender: To server: pG, [00:34:28]CommunicateWithHost lk.salyk.kg:30040 [00:34:28]ConnectInit lk.salyk.kg [00:34:28]Connected sock=10 [00:34:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F9 32 08 01 E7 FA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 15 1D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7B 02 00 35 04 06 00 E4 56 56 6F 97 45 EC 72 71 7F 79 08 1E 22 [00:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 49 B3 47 00 F6 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 85 7B 02 00 F4 03 04 00 22 C9 92 66 B6 04 01 00 00 3C 1F F9 CC 31 96 21 C1 [00:34:28]CommunicateWithHost err = 0 [00:34:28]CheckOFDResponse [00:34:28]1017 (14) - 77093643461234 [00:34:28]1041 (16) - 0000000000874899 [00:34:28]1040 (4) - 162693 [00:34:28]1012 (4) - 13.07.2024 18:36 [00:34:28]1206 (1) - 0 [00:34:28]OFD Sender: Remove packet 162693 [00:34:28]ProducePacketName [00:34:28]name=ofd_packets/00162693 [00:34:28]NVStorageDeleteData [00:34:29]Write to MH i2c: 01 00 00 D1 35 06 [00:34:29]Write i2c OK [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: 01 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: 01 07 00 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: 01 07 00 D1 35 00 00 00 00 00 E1 0C FA [00:34:29]RasterBufferAndPrint [00:34:29]line [00:34:29]line [00:34:29]line [00:34:29]line [00:34:29]line [00:34:29]written 0, free lines is 3305 [00:34:29]MH_Cut [00:34:29]Write to MH i2c: D1 01 00 D8 35 01 DF [00:34:29]Write i2c OK [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: D1 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: D1 01 00 [00:34:29]MH_I2C_Read... [00:34:29]Read from MH i2c: D1 01 00 D8 35 00 DE [00:34:29]Write to MH i2c: 01 00 00 D9 35 0E [00:34:29]Write i2c OK [00:34:29]MH_I2C_Read... [00:34:29]OFD Sender: No OFD packet to send [00:34:29]*** Cut start [00:34:29]*** Purtial cut [00:34:29]*** Stage 1: CUTSNS_PIN = 1 [00:34:30]Read from MH i2c: 01 [00:34:30]MH_I2C_Read... [00:34:30]*** Stop cut motor [00:34:30]*** Cut end [00:34:30]Read from MH i2c: 01 07 00 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: 01 07 00 D9 35 00 00 00 00 00 FF 0F 23 [00:34:30]process_action close_receipt done [00:34:30]requested_data is exist [00:34:30]produce_requested_data [00:34:30]requested_item fm.sn is exist - process it [00:34:30]wFMCommunicate request_size=4 [00:34:30]MH_SAM_APDU [00:34:30]CAPDU: 80 11 00 00 [00:34:30]Write to MH i2c: E2 08 00 DA 35 80 11 00 00 00 00 00 00 89 [00:34:30]Write i2c OK [00:34:30]MH_I2C_Read... [00:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:30]Read from MH i2c: E2 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: E2 17 00 [00:34:30]MH_I2C_Read... [00:34:30]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 34 38 39 39 90 00 E9 [00:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:34:30]wFMCommunicate OK [00:34:30]requested_item fd.num is exist - process it [00:34:30]SAM_PROTO_GetFieldsCounters [00:34:30]wFMCommunicate request_size=4 [00:34:30]MH_SAM_APDU [00:34:30]CAPDU: 80 13 00 00 [00:34:30]Write to MH i2c: E2 08 00 DB 35 80 13 00 00 00 00 00 00 8C [00:34:30]Write i2c OK [00:34:30]MH_I2C_Read... [00:34:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:30]Read from MH i2c: E2 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: E2 62 00 [00:34:30]MH_I2C_Read... [00:34:30]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 85 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [00:34:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 85 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:30]wFMCommunicate OK [00:34:30]SAM_PROTO_GetFieldsCounters done [00:34:30]requested_item shift.num is exist - process it [00:34:30]requested_item shift.opened is exist - process it [00:34:30]req_shift_opened [00:34:30]FM_GetShiftState [00:34:30]SAM_PROTO_GetShiftState [00:34:30]wFMCommunicate request_size=4 [00:34:30]MH_SAM_APDU [00:34:30]CAPDU: 80 13 01 00 [00:34:30]Write to MH i2c: E2 08 00 DC 35 80 13 01 00 00 00 00 00 8E [00:34:30]Write i2c OK [00:34:30]MH_I2C_Read... [00:34:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:30]Read from MH i2c: E2 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: E2 0E 00 [00:34:30]MH_I2C_Read... [00:34:30]Read from MH i2c: E2 0E 00 DC 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C4 [00:34:30]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:34:30]wFMCommunicate OK [00:34:30]SAM_PROTO_GetShiftState done [00:34:30]FM_GetShiftState done [00:34:30]req_shift_opened done [00:34:30]requested_item shift.open_date is exist - process it [00:34:30]req_shift_open_date [00:34:30]req_shift_open_date done [00:34:30]produce_requested_data done [00:34:30]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162693,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:34:30]process_action_free close_receipt [00:34:30]json_value_free [00:34:30]json_value_free done [00:34:30]process_json_proto returns [00:34:30]Send response to host [00:34:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162693,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:34:30]free response buf [00:34:30]execute_script done [00:34:30]execute_script returns [00:34:30]free content buf [00:34:30]Sock 9.Close socket [00:34:30]Sock 9.Thread stoped [00:34:34]OFD Sender: No OFD packet to send [00:34:38]accept exits with 7 [00:34:38]New connection [00:34:38]New thread 3067366756 created [00:34:38]Thread 3067510116 joined [00:34:38]Waiting for new connection... [00:34:38] Sock 7.Parse request [00:34:38]Sock 7.Check first char [00:34:38]Sock 7.First char is OK [00:34:38]request: POST /json_proto HTTP/1.0 [00:34:38]Method: POST [00:34:38]URL: /json_proto [00:34:38]Method is POST - this is cgi request [00:34:38]url: /json_proto [00:34:38]query_string will be loaded in cgi processing [00:34:38]execute_cgi json_proto POST (null) [00:34:38]execute_cgi path=json_proto method=POST [00:34:38]POST find Content-Length [00:34:38]Host: 172.17.39.67:8080 [00:34:38]Content-Length: 688 [00:34:38]Content-Type: application/json [00:34:38] [00:34:38]POST finish read [00:34:38]Found Content-Length = 688 [00:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [00:34:38]execute_script... [00:34:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [00:34:38]POST & json_proto [00:34:38]process_json_proto [00:34:38]json parsed OK: [00:34:38]protocol is kg_v1.0 [00:34:38]action value=close_receipt [00:34:38]process_action close_receipt [00:34:38]cmd_close_receipt [00:34:38]MH_GetDate [00:34:38]Write to MH i2c: F0 00 00 DD 35 01 [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: F0 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: F0 09 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: F0 09 00 DD 35 00 20 1D 93 66 86 7C 92 66 3A [00:34:38]GetLastDocTimeStamp 1720917269 [00:34:38]current date 1720917280 [00:34:38]FM_GetShiftState [00:34:38]SAM_PROTO_GetShiftState [00:34:38]wFMCommunicate request_size=4 [00:34:38]MH_SAM_APDU [00:34:38]CAPDU: 80 13 01 00 [00:34:38]Write to MH i2c: E2 08 00 DE 35 80 13 01 00 00 00 00 00 90 [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:38]Read from MH i2c: E2 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 0E 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 0E 00 DE 35 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C6 [00:34:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:34:38]wFMCommunicate OK [00:34:38]SAM_PROTO_GetShiftState done [00:34:38]FM_GetShiftState done [00:34:38]opened in 1720915483 [00:34:38]opened+sec_in_day 1721001883 [00:34:38]quantity*price = 200013 [00:34:38]sum+1 = 200014 [00:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 6 14.07.2024 00:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162694 ФПД: 153012460762261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T003440&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162694&fm=153012460762261&tin=02508201610067®Number=0000000000090858&sum=200000 [00:34:39]StoreToDocumentArchive [00:34:39]shift 463 fd 162694 [00:34:39]save to /storage/0463/doc_00162694 [00:34:39]save last doc name /storage/0463/doc_00162694 to /storage/kkm_last_doc_name [00:34:39]save OK [00:34:39]Clear old archive folders... [00:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:34:39]tlvbuf is 00611DA0 [00:34:39]SAM_PROTO_ClearQueue [00:34:39]wFMCommunicate request_size=4 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 09 00 00 [00:34:39]Write to MH i2c: E2 08 00 EB 35 80 09 00 00 00 00 00 00 92 [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 03 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 03 00 EB 35 00 90 00 94 [00:34:39]RAPDU: 90 00 [00:34:39]wFMCommunicate OK [00:34:39]SAM_PROTO_ClearQueue done [00:34:39]KKMCreateOFDPacket [00:34:39]OFDProtocolAddRootSTLVToBuf [00:34:39]FM_MakeSignedData [00:34:39]FM_MakeSignedData [00:34:39]SAM_PROTO_SignData [00:34:39]wFMCommunicate request_size=4 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 0D 01 02 [00:34:39]Write to MH i2c: E2 08 00 EC 35 80 0D 01 02 00 00 00 00 9A [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 03 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 03 00 EC 35 00 90 00 95 [00:34:39]RAPDU: 90 00 [00:34:39]wFMCommunicate OK [00:34:39]wFMCommunicate request_size=255 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 06 00 00 00 F4 03 04 00 20 1D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7B 02 00 35 04 06 00 [00:34:39]Write to MH i2c: E2 02 01 ED 35 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 06 00 00 00 F4 03 04 00 20 1D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7B 02 00 35 04 06 00 00 00 B8 [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]OFD Sender: No OFD packet to send [00:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 03 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 03 00 ED 35 00 90 00 96 [00:34:39]RAPDU: 90 00 [00:34:39]wFMCommunicate OK [00:34:39]wFMCommunicate request_size=11 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 0D 02 02 06 8B 29 FD 5E B4 95 [00:34:39]Write to MH i2c: E2 0E 00 EE 35 80 0D 02 02 06 00 8B 29 FD 5E B4 95 00 00 01 [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 03 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 03 00 EE 35 00 90 00 97 [00:34:39]RAPDU: 90 00 [00:34:39]wFMCommunicate OK [00:34:39]wFMCommunicate request_size=4 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 0D 03 02 [00:34:39]Write to MH i2c: E2 08 00 EF 35 80 0D 03 02 00 00 00 00 9F [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 0B 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 0B 00 EF 35 00 63 E9 60 DB AE D7 93 AE 90 00 ED [00:34:39]RAPDU: 63 E9 60 DB AE D7 93 AE 90 00 [00:34:39]wFMCommunicate OK [00:34:39]SAM_PROTO_SignData done [00:34:39]FM_MakeSignedData done [00:34:39]CreateOFDProtocolMessage [00:34:39]wFMCommunicate request_size=4 [00:34:39]MH_SAM_APDU [00:34:39]CAPDU: 80 11 00 00 [00:34:39]Write to MH i2c: E2 08 00 F0 35 80 11 00 00 00 00 00 00 9F [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:39]Read from MH i2c: E2 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: E2 17 00 [00:34:39]MH_I2C_Read... [00:34:39]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 34 38 39 39 90 00 FF [00:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:34:39]wFMCommunicate OK [00:34:39]CreateOFDProtocolMessage done [00:34:39]OFDSenderStorePacket 162694 [00:34:39]StoreOFDPacket docnum=162694 [00:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 14 FB 08 01 AC 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 06 00 00 00 F4 03 04 00 20 1D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7B 02 00 35 04 06 00 8B 29 FD 5E B4 95 63 E9 60 DB AE D7 93 AE [00:34:39]CheckFolder [00:34:39]dirname=/storage/ofd_packets [00:34:39]CheckFolder done [00:34:39]ProducePacketName [00:34:39]name=ofd_packets/00162694 [00:34:39]NVStorageSaveData ofd_packets/00162694 [00:34:39]File name is /storage/ofd_packets/00162694 [00:34:39]Write 302 bytes [00:34:39]NVStorageSaveData done [00:34:39]OFDSenderStorePacket done [00:34:39]KKMCreateOFDPacket done [00:34:39]NVStorageSaveData kkm_last_timestamp [00:34:39]File name is /storage/kkm_last_timestamp [00:34:39]Write 4 bytes [00:34:39]NVStorageSaveData done [00:34:39]ExternCall_PrintAddStr [00:34:39]wPrintStart [00:34:39]Write to MH i2c: 01 00 00 F1 35 26 [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: 01 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: 01 07 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: 01 07 00 F1 35 00 00 00 00 00 FF 0F 3B [00:34:39]RasterBufferAndPrint [00:34:39]line Счет N : (1)1319272 [00:34:39]line ИНН: 02508201610067 [00:34:39]line Контрольно-Кассовый Чек [00:34:39]line ПРОДАЖА [00:34:39]line ТРК (МРК, ГНК) : 21 [00:34:39]line Товар: 2710194210 [00:34:39]line ДТ(л)-К-5 [00:34:39]line 27.550 * 72.60 [00:34:39]line = 2000.13 [00:34:39]line НДС 12% НСП 1% [00:34:39]line > о реализуемом товаре [00:34:39]line ОКРУГЛЕНИЕ: -0.13 [00:34:39]line ИТОГО: 2000.00 [00:34:39]line Внесено: 2000.00 [00:34:39]line СДАЧА: 0.00 [00:34:39]line НСП 1% : 17.70 [00:34:39]line НДС 12% : 212.40 [00:34:39]line Наличными: 2000.00 [00:34:39]line Безнал.: 0.00 [00:34:39]line Место: АЗС № 140 "Партнер Нефть" [00:34:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:34:39]line СНО: Общий режим [00:34:39]line Чек 6 14.07.2024 00:34 [00:34:39]line Смена: 463 ФФД: 1.0 [00:34:39]line ЗНМ: 0300000129 [00:34:39]line РНМ: 0000000000090858 [00:34:39]line Версия ККМ: 001 [00:34:39]line ФМ: 0000000000874899 [00:34:39]line ФД: 162694 [00:34:39]line ФПД: 153012460762261 [00:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T003440&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162694&fm=153012460762261&tin=02508201610067®Number=0000000000090858&sum=200000 [00:34:39]written 0, free lines is 4095 [00:34:39]OFD Sender: Processing packet 162694 [packets to send 106, broken 105] [00:34:39]ProducePacketName [00:34:39]name=ofd_packets/00162694 [00:34:39]OFD Sender: To server: pG, [00:34:39]CommunicateWithHost lk.salyk.kg:30040 [00:34:39]ConnectInit lk.salyk.kg [00:34:40]Connected sock=10 [00:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 14 FB 08 01 AC 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 06 00 00 00 F4 03 04 00 20 1D 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7B 02 00 35 04 06 00 8B 29 FD 5E B4 95 63 E9 60 DB AE D7 93 AE [00:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 CD E6 47 00 F8 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 86 7B 02 00 F4 03 04 00 2E C9 92 66 B6 04 01 00 00 A5 A1 7F A4 63 A6 20 11 [00:34:40]CommunicateWithHost err = 0 [00:34:40]CheckOFDResponse [00:34:40]1017 (14) - 77093643461234 [00:34:40]1041 (16) - 0000000000874899 [00:34:40]1040 (4) - 162694 [00:34:40]1012 (4) - 13.07.2024 18:36 [00:34:40]1206 (1) - 0 [00:34:40]OFD Sender: Remove packet 162694 [00:34:40]ProducePacketName [00:34:40]name=ofd_packets/00162694 [00:34:40]NVStorageDeleteData [00:34:40]Write to MH i2c: 01 00 00 1C 36 52 [00:34:40]Write i2c OK [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: 01 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: 01 07 00 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: 01 07 00 1C 36 00 00 00 00 00 D4 0C 39 [00:34:40]RasterBufferAndPrint [00:34:40]line [00:34:40]line [00:34:40]line [00:34:40]line [00:34:40]line [00:34:40]written 0, free lines is 3296 [00:34:40]MH_Cut [00:34:40]Write to MH i2c: D1 01 00 23 36 01 2B [00:34:40]Write i2c OK [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: D1 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: D1 01 00 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: D1 01 00 23 36 00 2A [00:34:40]Write to MH i2c: 01 00 00 24 36 5A [00:34:40]Write i2c OK [00:34:40]MH_I2C_Read... [00:34:40]OFD Sender: No OFD packet to send [00:34:41]*** Cut start [00:34:41]*** Purtial cut [00:34:41]*** CUTSNS_PIN = 0 [00:34:41]*** Stage 1: CUTSNS_PIN = 1 [00:34:43]Read from MH i2c: 01 [00:34:43]MH_I2C_Read... [00:34:43]*** Stop cut motor [00:34:43]*** Cut end [00:34:43]Read from MH i2c: 01 07 00 [00:34:43]MH_I2C_Read... [00:34:43]Read from MH i2c: 01 07 00 24 36 00 00 00 00 00 FF 0F 6F [00:34:43]process_action close_receipt done [00:34:43]requested_data is exist [00:34:43]produce_requested_data [00:34:43]requested_item fm.sn is exist - process it [00:34:43]wFMCommunicate request_size=4 [00:34:43]MH_SAM_APDU [00:34:43]CAPDU: 80 11 00 00 [00:34:43]Write to MH i2c: E2 08 00 25 36 80 11 00 00 00 00 00 00 D5 [00:34:43]Write i2c OK [00:34:43]MH_I2C_Read... [00:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:43]Read from MH i2c: E2 [00:34:43]MH_I2C_Read... [00:34:43]Read from MH i2c: E2 17 00 [00:34:43]MH_I2C_Read... [00:34:43]Read from MH i2c: E2 17 00 25 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 35 [00:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:34:43]wFMCommunicate OK [00:34:43]requested_item fd.num is exist - process it [00:34:43]SAM_PROTO_GetFieldsCounters [00:34:43]wFMCommunicate request_size=4 [00:34:43]MH_SAM_APDU [00:34:43]CAPDU: 80 13 00 00 [00:34:43]Write to MH i2c: E2 08 00 26 36 80 13 00 00 00 00 00 00 D8 [00:34:43]Write i2c OK [00:34:43]MH_I2C_Read... [00:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:43]Read from MH i2c: E2 [00:34:43]MH_I2C_Read... [00:34:43]Read from MH i2c: E2 62 00 [00:34:43]MH_I2C_Read... [00:34:43]Read from MH i2c: E2 62 00 26 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 86 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [00:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 86 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:43]wFMCommunicate OK [00:34:43]SAM_PROTO_GetFieldsCounters done [00:34:43]requested_item shift.num is exist - process it [00:34:43]requested_item shift.opened is exist - process it [00:34:43]req_shift_opened [00:34:43]FM_GetShiftState [00:34:43]SAM_PROTO_GetShiftState [00:34:43]wFMCommunicate request_size=4 [00:34:43]MH_SAM_APDU [00:34:43]CAPDU: 80 13 01 00 [00:34:43]Write to MH i2c: E2 08 00 27 36 80 13 01 00 00 00 00 00 DA [00:34:43]Write i2c OK [00:34:43]MH_I2C_Read... [00:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:43]Read from MH i2c: E2 [00:34:43]MH_I2C_Read... [00:34:43]Read from MH i2c: E2 0E 00 [00:34:43]MH_I2C_Read... [00:34:43]Read from MH i2c: E2 0E 00 27 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 10 [00:34:43]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:34:43]wFMCommunicate OK [00:34:43]SAM_PROTO_GetShiftState done [00:34:43]FM_GetShiftState done [00:34:43]req_shift_opened done [00:34:43]requested_item shift.open_date is exist - process it [00:34:43]req_shift_open_date [00:34:43]req_shift_open_date done [00:34:43]produce_requested_data done [00:34:43]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162694,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:34:43]process_action_free close_receipt [00:34:43]json_value_free [00:34:43]json_value_free done [00:34:43]process_json_proto returns [00:34:43]Send response to host [00:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162694,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:34:43]free response buf [00:34:43]execute_script done [00:34:43]execute_script returns [00:34:43]free content buf [00:34:43]Sock 7.Close socket [00:34:43]Sock 7.Thread stoped [00:34:45]OFD Sender: No OFD packet to send [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:11]accept exits with 9 [00:43:11]New connection [00:43:11]New thread 3067510116 created [00:43:11]Thread 3067366756 joined [00:43:11]Waiting for new connection... [00:43:11] Sock 9.Parse request [00:43:11]Sock 9.Check first char [00:43:11]Sock 9.First char is OK [00:43:11]request: POST /json_proto HTTP/1.0 [00:43:11]Method: POST [00:43:11]URL: /json_proto [00:43:11]Method is POST - this is cgi request [00:43:11]url: /json_proto [00:43:11]query_string will be loaded in cgi processing [00:43:11]execute_cgi json_proto POST (null) [00:43:11]execute_cgi path=json_proto method=POST [00:43:11]POST find Content-Length [00:43:11]Host: 172.17.39.67:8080 [00:43:11]Content-Length: 678 [00:43:11]Content-Type: application/json [00:43:11] [00:43:11]POST finish read [00:43:11]Found Content-Length = 678 [00:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:11]execute_script... [00:43: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)1319274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 6.730, "sum" : 500.71, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:43:11]POST & json_proto [00:43:11]process_json_proto [00:43:11]json parsed OK: [00:43:11]protocol is kg_v1.0 [00:43:11]action value=close_receipt [00:43:11]process_action close_receipt [00:43:11]cmd_close_receipt [00:43:11]MH_GetDate [00:43:11]Write to MH i2c: F0 00 00 28 36 4D [00:43:11]Write i2c OK [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: F0 [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: F0 09 00 [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: F0 09 00 28 36 00 22 1F 93 66 86 7C 92 66 8A [00:43:11]GetLastDocTimeStamp 1720917280 [00:43:11]current date 1720917794 [00:43:11]FM_GetShiftState [00:43:11]SAM_PROTO_GetShiftState [00:43:11]wFMCommunicate request_size=4 [00:43:11]MH_SAM_APDU [00:43:11]CAPDU: 80 13 01 00 [00:43:11]Write to MH i2c: E2 08 00 29 36 80 13 01 00 00 00 00 00 DC [00:43:11]Write i2c OK [00:43:11]MH_I2C_Read... [00:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:11]Read from MH i2c: E2 [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: E2 0E 00 [00:43:11]MH_I2C_Read... [00:43:11]Read from MH i2c: E2 0E 00 29 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 12 [00:43:11]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:43:11]wFMCommunicate OK [00:43:11]SAM_PROTO_GetShiftState done [00:43:11]FM_GetShiftState done [00:43:11]opened in 1720915483 [00:43:11]opened+sec_in_day 1721001883 [00:43:11]quantity*price = 50071 [00:43:11]sum+1 = 50072 [00:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.71 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 7 14.07.2024 00:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162695 ФПД: 37637882304192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162695&fm=37637882304192&tin=02508201610067®Number=0000000000090858&sum=50000 [00:43:12]StoreToDocumentArchive [00:43:12]shift 463 fd 162695 [00:43:12]save to /storage/0463/doc_00162695 [00:43:12]save last doc name /storage/0463/doc_00162695 to /storage/kkm_last_doc_name [00:43:12]save OK [00:43:12]Clear old archive folders... [00:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:12]tlvbuf is 006B9A00 [00:43:12]SAM_PROTO_ClearQueue [00:43:12]wFMCommunicate request_size=4 [00:43:12]MH_SAM_APDU [00:43:12]CAPDU: 80 09 00 00 [00:43:12]Write to MH i2c: E2 08 00 36 36 80 09 00 00 00 00 00 00 DE [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:12]Read from MH i2c: E2 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 36 36 00 90 00 E0 [00:43:12]RAPDU: 90 00 [00:43:12]wFMCommunicate OK [00:43:12]SAM_PROTO_ClearQueue done [00:43:12]KKMCreateOFDPacket [00:43:12]OFDProtocolAddRootSTLVToBuf [00:43:12]FM_MakeSignedData [00:43:12]FM_MakeSignedData [00:43:12]SAM_PROTO_SignData [00:43:12]wFMCommunicate request_size=4 [00:43:12]MH_SAM_APDU [00:43:12]CAPDU: 80 0D 01 02 [00:43:12]Write to MH i2c: E2 08 00 37 36 80 0D 01 02 00 00 00 00 E6 [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:12]Read from MH i2c: E2 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 [00:43:12]MH_I2C_Read... [00:43:12]Read from MH i2c: E2 03 00 37 36 00 90 00 E1 [00:43:12]RAPDU: 90 00 [00:43:12]wFMCommunicate OK [00:43:12]wFMCommunicate request_size=255 [00:43:12]MH_SAM_APDU [00:43: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 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 22 1F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7B 02 00 35 04 06 00 22 [00:43:12]Write to MH i2c: E2 02 01 38 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 22 1F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7B 02 00 35 04 06 00 22 00 00 E3 [00:43:12]Write i2c OK [00:43:12]MH_I2C_Read... [00:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:13]Read from MH i2c: E2 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 03 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 03 00 38 36 00 90 00 E2 [00:43:13]RAPDU: 90 00 [00:43:13]wFMCommunicate OK [00:43:13]wFMCommunicate request_size=10 [00:43:13]MH_SAM_APDU [00:43:13]CAPDU: 80 0D 02 02 05 3B 40 9A D6 C0 [00:43:13]Write to MH i2c: E2 0D 00 39 36 80 0D 02 02 05 00 3B 40 9A D6 C0 00 00 9E [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:13]Read from MH i2c: E2 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 03 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 03 00 39 36 00 90 00 E3 [00:43:13]RAPDU: 90 00 [00:43:13]wFMCommunicate OK [00:43:13]wFMCommunicate request_size=4 [00:43:13]MH_SAM_APDU [00:43:13]CAPDU: 80 0D 03 02 [00:43:13]Write to MH i2c: E2 08 00 3A 36 80 0D 03 02 00 00 00 00 EB [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:13]Read from MH i2c: E2 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 0B 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 0B 00 3A 36 00 7F 02 E7 24 65 2A 5A C9 90 00 2A [00:43:13]RAPDU: 7F 02 E7 24 65 2A 5A C9 90 00 [00:43:13]wFMCommunicate OK [00:43:13]SAM_PROTO_SignData done [00:43:13]FM_MakeSignedData done [00:43:13]CreateOFDProtocolMessage [00:43:13]wFMCommunicate request_size=4 [00:43:13]MH_SAM_APDU [00:43:13]CAPDU: 80 11 00 00 [00:43:13]Write to MH i2c: E2 08 00 3B 36 80 11 00 00 00 00 00 00 EB [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:13]Read from MH i2c: E2 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 17 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: E2 17 00 3B 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4B [00:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:43:13]wFMCommunicate OK [00:43:13]CreateOFDProtocolMessage done [00:43:13]OFDSenderStorePacket 162695 [00:43:13]StoreOFDPacket docnum=162695 [00:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8D 77 07 01 C2 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 22 1F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7B 02 00 35 04 06 00 22 3B 40 9A D6 C0 7F 02 E7 24 65 2A 5A C9 [00:43:13]CheckFolder [00:43:13]dirname=/storage/ofd_packets [00:43:13]CheckFolder done [00:43:13]ProducePacketName [00:43:13]name=ofd_packets/00162695 [00:43:13]NVStorageSaveData ofd_packets/00162695 [00:43:13]File name is /storage/ofd_packets/00162695 [00:43:13]Write 301 bytes [00:43:13]NVStorageSaveData done [00:43:13]OFDSenderStorePacket done [00:43:13]KKMCreateOFDPacket done [00:43:13]NVStorageSaveData kkm_last_timestamp [00:43:13]File name is /storage/kkm_last_timestamp [00:43:13]Write 4 bytes [00:43:13]NVStorageSaveData done [00:43:13]ExternCall_PrintAddStr [00:43:13]wPrintStart [00:43:13]Write to MH i2c: 01 00 00 3C 36 72 [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 07 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 07 00 3C 36 00 00 00 00 00 FF 0F 87 [00:43:13]RasterBufferAndPrint [00:43:13]line Счет N : (1)1319274 [00:43:13]line ИНН: 02508201610067 [00:43:13]line Контрольно-Кассовый Чек [00:43:13]line ПРОДАЖА [00:43:13]line ТРК (МРК, ГНК) : 64 [00:43:13]line Товар: 2710124500 [00:43:13]line Аи-95-К-5 [00:43:13]line 6.730 * 74.40 [00:43:13]line = 500.71 [00:43:13]line НДС 12% НСП 1% [00:43:13]line > о реализуемом товаре [00:43:13]line ОКРУГЛЕНИЕ: -0.71 [00:43:13]line ИТОГО: 500.00 [00:43:13]line Внесено: 500.00 [00:43:13]line СДАЧА: 0.00 [00:43:13]line НСП 1% : 4.43 [00:43:13]line НДС 12% : 53.17 [00:43:13]line Наличными: 500.00 [00:43:13]line Безнал.: 0.00 [00:43:13]line Место: АЗС № 140 "Партнер Нефть" [00:43:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:43:13]line СНО: Общий режим [00:43:13]line Чек 7 14.07.2024 00:43 [00:43:13]line Смена: 463 ФФД: 1.0 [00:43:13]line ЗНМ: 0300000129 [00:43:13]line РНМ: 0000000000090858 [00:43:13]line Версия ККМ: 001 [00:43:13]line ФМ: 0000000000874899 [00:43:13]line ФД: 162695 [00:43:13]line ФПД: 37637882304192 [00:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004314&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162695&fm=37637882304192&tin=02508201610067®Number=0000000000090858&sum=50000 [00:43:13]OFD Sender: Processing packet 162695 [packets to send 106, broken 105] [00:43:13]ProducePacketName [00:43:13]name=ofd_packets/00162695 [00:43:13]OFD Sender: To server: pG, [00:43:13]CommunicateWithHost lk.salyk.kg:30040 [00:43:13]ConnectInit lk.salyk.kg [00:43:13]written 0, free lines is 4095 [00:43:13]Connected sock=10 [00:43:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 8D 77 07 01 C2 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 97 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 22 1F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7B 02 00 35 04 06 00 22 3B 40 9A D6 C0 7F 02 E7 24 65 2A 5A C9 [00:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 2A 10 47 00 73 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 87 7B 02 00 F4 03 04 00 2F CB 92 66 B6 04 01 00 00 1E 1F 2E 80 BC 50 B9 44 [00:43:13]CommunicateWithHost err = 0 [00:43:13]CheckOFDResponse [00:43:13]1017 (14) - 77093643461234 [00:43:13]1041 (16) - 0000000000874899 [00:43:13]1040 (4) - 162695 [00:43:13]1012 (4) - 13.07.2024 18:45 [00:43:13]1206 (1) - 0 [00:43:13]OFD Sender: Remove packet 162695 [00:43:13]ProducePacketName [00:43:13]name=ofd_packets/00162695 [00:43:13]NVStorageDeleteData [00:43:13]Write to MH i2c: 01 00 00 67 36 9D [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 07 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: 01 07 00 67 36 00 00 00 00 00 C8 0C 78 [00:43:13]RasterBufferAndPrint [00:43:13]line [00:43:13]line [00:43:13]line [00:43:13]line [00:43:13]line [00:43:13]written 0, free lines is 3277 [00:43:13]MH_Cut [00:43:13]Write to MH i2c: D1 01 00 6E 36 01 76 [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: D1 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: D1 01 00 [00:43:13]MH_I2C_Read... [00:43:13]Read from MH i2c: D1 01 00 6E 36 00 75 [00:43:13]Write to MH i2c: 01 00 00 6F 36 A5 [00:43:13]Write i2c OK [00:43:13]MH_I2C_Read... [00:43:14]OFD Sender: No OFD packet to send [00:43:14]*** Cut start [00:43:14]*** Purtial cut [00:43:14]*** Stage 1: CUTSNS_PIN = 1 [00:43:14]Read from MH i2c: 01 [00:43:14]MH_I2C_Read... [00:43:14]*** Stop cut motor [00:43:14]*** Cut end [00:43:14]Read from MH i2c: 01 07 00 [00:43:14]MH_I2C_Read... [00:43:14]Read from MH i2c: 01 07 00 6F 36 00 00 00 00 00 FF 0F BA [00:43:14]process_action close_receipt done [00:43:14]requested_data is exist [00:43:14]produce_requested_data [00:43:14]requested_item fm.sn is exist - process it [00:43:14]wFMCommunicate request_size=4 [00:43:14]MH_SAM_APDU [00:43:14]CAPDU: 80 11 00 00 [00:43:14]Write to MH i2c: E2 08 00 70 36 80 11 00 00 00 00 00 00 20 [00:43:14]Write i2c OK [00:43:14]MH_I2C_Read... [00:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:15]Read from MH i2c: E2 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 17 00 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 17 00 70 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 80 [00:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:43:15]wFMCommunicate OK [00:43:15]requested_item fd.num is exist - process it [00:43:15]SAM_PROTO_GetFieldsCounters [00:43:15]wFMCommunicate request_size=4 [00:43:15]MH_SAM_APDU [00:43:15]CAPDU: 80 13 00 00 [00:43:15]Write to MH i2c: E2 08 00 71 36 80 13 00 00 00 00 00 00 23 [00:43:15]Write i2c OK [00:43:15]MH_I2C_Read... [00:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:15]Read from MH i2c: E2 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 62 00 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 62 00 71 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 87 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [00:43:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 87 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:15]wFMCommunicate OK [00:43:15]SAM_PROTO_GetFieldsCounters done [00:43:15]requested_item shift.num is exist - process it [00:43:15]requested_item shift.opened is exist - process it [00:43:15]req_shift_opened [00:43:15]FM_GetShiftState [00:43:15]SAM_PROTO_GetShiftState [00:43:15]wFMCommunicate request_size=4 [00:43:15]MH_SAM_APDU [00:43:15]CAPDU: 80 13 01 00 [00:43:15]Write to MH i2c: E2 08 00 72 36 80 13 01 00 00 00 00 00 25 [00:43:15]Write i2c OK [00:43:15]MH_I2C_Read... [00:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:15]Read from MH i2c: E2 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 0E 00 [00:43:15]MH_I2C_Read... [00:43:15]Read from MH i2c: E2 0E 00 72 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5B [00:43:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:43:15]wFMCommunicate OK [00:43:15]SAM_PROTO_GetShiftState done [00:43:15]FM_GetShiftState done [00:43:15]req_shift_opened done [00:43:15]requested_item shift.open_date is exist - process it [00:43:15]req_shift_open_date [00:43:15]req_shift_open_date done [00:43:15]produce_requested_data done [00:43:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162695,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:43:15]process_action_free close_receipt [00:43:15]json_value_free [00:43:15]json_value_free done [00:43:15]process_json_proto returns [00:43:15]Send response to host [00:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162695,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:43:15]free response buf [00:43:15]execute_script done [00:43:15]execute_script returns [00:43:15]free content buf [00:43:15]Sock 9.Close socket [00:43:15]Sock 9.Thread stoped [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:53]accept exits with 7 [00:43:53]New connection [00:43:53]New thread 3067366756 created [00:43:53]Thread 3067510116 joined [00:43:53]Waiting for new connection... [00:43:53] Sock 7.Parse request [00:43:53]Sock 7.Check first char [00:43:53]Sock 7.First char is OK [00:43:53]request: POST /json_proto HTTP/1.0 [00:43:53]Method: POST [00:43:53]URL: /json_proto [00:43:53]Method is POST - this is cgi request [00:43:53]url: /json_proto [00:43:53]query_string will be loaded in cgi processing [00:43:53]execute_cgi json_proto POST (null) [00:43:53]execute_cgi path=json_proto method=POST [00:43:53]POST find Content-Length [00:43:53]Host: 172.17.39.67:8080 [00:43:53]Content-Length: 802 [00:43:53]Content-Type: application/json [00:43:53] [00:43:53]POST finish read [00:43:53]Found Content-Length = 802 [00:43:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 10.000, "sum" : 744.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" : 744.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:53]execute_script... [00: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)1319273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.40, "quantity" : 10.000, "sum" : 744.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" : 744.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:53]POST & json_proto [00:43:53]process_json_proto [00:43:53]json parsed OK: [00:43:53]protocol is kg_v1.0 [00:43:53]action value=close_receipt [00:43:53]process_action close_receipt [00:43:53]cmd_close_receipt [00:43:53]MH_GetDate [00:43:53]Write to MH i2c: F0 00 00 73 36 98 [00:43:53]Write i2c OK [00:43:53]MH_I2C_Read... [00:43:53]Read from MH i2c: F0 [00:43:53]MH_I2C_Read... [00:43:53]Read from MH i2c: F0 09 00 [00:43:53]MH_I2C_Read... [00:43:53]Read from MH i2c: F0 09 00 73 36 00 4C 1F 93 66 86 7C 92 66 FF [00:43:53]GetLastDocTimeStamp 1720917794 [00:43:53]current date 1720917836 [00:43:53]FM_GetShiftState [00:43:53]SAM_PROTO_GetShiftState [00:43:53]wFMCommunicate request_size=4 [00:43:53]MH_SAM_APDU [00:43:53]CAPDU: 80 13 01 00 [00:43:53]Write to MH i2c: E2 08 00 74 36 80 13 01 00 00 00 00 00 27 [00:43:53]Write i2c OK [00:43:53]MH_I2C_Read... [00:43:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:53]Read from MH i2c: E2 [00:43:53]MH_I2C_Read... [00:43:53]Read from MH i2c: E2 0E 00 [00:43:53]MH_I2C_Read... [00:43:53]Read from MH i2c: E2 0E 00 74 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 5D [00:43:53]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:43:53]wFMCommunicate OK [00:43:53]SAM_PROTO_GetShiftState done [00:43:53]FM_GetShiftState done [00:43:53]opened in 1720915483 [00:43:53]opened+sec_in_day 1721001883 [00:43:53]quantity*price = 74400 [00:43:53]sum+1 = 74401 [00:43:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 744.00 НСП 1% : 6.58 НДС 12% : 79.01 Наличными: 0.00 Безнал.: 744.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 8 14.07.2024 00:43 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162696 ФПД: 176215668663154 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004356&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162696&fm=176215668663154&tin=02508201610067®Number=0000000000090858&sum=74400 [00:43:54]StoreToDocumentArchive [00:43:54]shift 463 fd 162696 [00:43:54]save to /storage/0463/doc_00162696 [00:43:54]save last doc name /storage/0463/doc_00162696 to /storage/kkm_last_doc_name [00:43:54]save OK [00:43:54]Clear old archive folders... [00:43:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:43:54]tlvbuf is 00737AF0 [00:43:54]SAM_PROTO_ClearQueue [00:43:54]wFMCommunicate request_size=4 [00:43:54]MH_SAM_APDU [00:43:54]CAPDU: 80 09 00 00 [00:43:54]Write to MH i2c: E2 08 00 81 36 80 09 00 00 00 00 00 00 29 [00:43:54]Write i2c OK [00:43:54]MH_I2C_Read... [00:43:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:54]Read from MH i2c: E2 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 03 00 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 03 00 81 36 00 90 00 2B [00:43:54]RAPDU: 90 00 [00:43:54]wFMCommunicate OK [00:43:54]SAM_PROTO_ClearQueue done [00:43:54]KKMCreateOFDPacket [00:43:54]OFDProtocolAddRootSTLVToBuf [00:43:54]FM_MakeSignedData [00:43:54]FM_MakeSignedData [00:43:54]SAM_PROTO_SignData [00:43:54]wFMCommunicate request_size=4 [00:43:54]MH_SAM_APDU [00:43:54]CAPDU: 80 0D 01 02 [00:43:54]Write to MH i2c: E2 08 00 82 36 80 0D 01 02 00 00 00 00 31 [00:43:54]Write i2c OK [00:43:54]MH_I2C_Read... [00:43:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:54]Read from MH i2c: E2 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 03 00 [00:43:54]MH_I2C_Read... [00:43:54]Read from MH i2c: E2 03 00 82 36 00 90 00 2C [00:43:54]RAPDU: 90 00 [00:43:54]wFMCommunicate OK [00:43:54]wFMCommunicate request_size=255 [00:43:54]MH_SAM_APDU [00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4C 1F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7B 02 00 35 04 06 00 A0 [00:43:54]Write to MH i2c: E2 02 01 83 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4C 1F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7B 02 00 35 04 06 00 A0 00 00 6E [00:43:54]Write i2c OK [00:43:54]MH_I2C_Read... [00:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:55]Read from MH i2c: E2 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: E2 03 00 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: E2 03 00 83 36 00 90 00 2D [00:43:55]RAPDU: 90 00 [00:43:55]wFMCommunicate OK [00:43:55]wFMCommunicate request_size=10 [00:43:55]MH_SAM_APDU [00:43:55]CAPDU: 80 0D 02 02 05 44 68 55 A3 72 [00:43:55]Write to MH i2c: E2 0D 00 84 36 80 0D 02 02 05 00 44 68 55 A3 72 00 00 54 [00:43:55]Write i2c OK [00:43:55]MH_I2C_Read... [00:43:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:55]Read from MH i2c: E2 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: E2 03 00 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: E2 03 00 84 36 00 90 00 2E [00:43:55]RAPDU: 90 00 [00:43:55]wFMCommunicate OK [00:43:55]wFMCommunicate request_size=4 [00:43:55]MH_SAM_APDU [00:43:55]CAPDU: 80 0D 03 02 [00:43:55]Write to MH i2c: E2 08 00 85 36 80 0D 03 02 00 00 00 00 36 [00:43:55]Write i2c OK [00:43:55]MH_I2C_Read... [00:43:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:55]Read from MH i2c: E2 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: E2 0B 00 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: E2 0B 00 85 36 00 97 83 82 BE AB 3B DD A2 90 00 F6 [00:43:55]RAPDU: 97 83 82 BE AB 3B DD A2 90 00 [00:43:55]wFMCommunicate OK [00:43:55]SAM_PROTO_SignData done [00:43:55]FM_MakeSignedData done [00:43:55]CreateOFDProtocolMessage [00:43:55]wFMCommunicate request_size=4 [00:43:55]MH_SAM_APDU [00:43:55]CAPDU: 80 11 00 00 [00:43:55]Write to MH i2c: E2 08 00 86 36 80 11 00 00 00 00 00 00 36 [00:43:55]Write i2c OK [00:43:55]MH_I2C_Read... [00:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:55]Read from MH i2c: E2 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: E2 17 00 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: E2 17 00 86 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 96 [00:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:43:55]wFMCommunicate OK [00:43:55]CreateOFDProtocolMessage done [00:43:55]OFDSenderStorePacket 162696 [00:43:55]StoreOFDPacket docnum=162696 [00:43:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 35 D8 07 01 FC BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4C 1F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7B 02 00 35 04 06 00 A0 44 68 55 A3 72 97 83 82 BE AB 3B DD A2 [00:43:55]CheckFolder [00:43:55]dirname=/storage/ofd_packets [00:43:55]CheckFolder done [00:43:55]ProducePacketName [00:43:55]name=ofd_packets/00162696 [00:43:55]NVStorageSaveData ofd_packets/00162696 [00:43:55]File name is /storage/ofd_packets/00162696 [00:43:55]Write 301 bytes [00:43:55]NVStorageSaveData done [00:43:55]OFDSenderStorePacket done [00:43:55]KKMCreateOFDPacket done [00:43:55]NVStorageSaveData kkm_last_timestamp [00:43:55]File name is /storage/kkm_last_timestamp [00:43:55]Write 4 bytes [00:43:55]NVStorageSaveData done [00:43:55]ExternCall_PrintAddStr [00:43:55]wPrintStart [00:43:55]Write to MH i2c: 01 00 00 87 36 BD [00:43:55]Write i2c OK [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: 01 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: 01 07 00 [00:43:55]MH_I2C_Read... [00:43:55]Read from MH i2c: 01 07 00 87 36 00 00 00 00 00 FF 0F D2 [00:43:55]RasterBufferAndPrint [00:43:55]line Счет N : (1)1319273 [00:43:55]line ИНН: 02508201610067 [00:43:55]line Контрольно-Кассовый Чек [00:43:55]line ПРОДАЖА [00:43:55]line ТРК (МРК, ГНК) : 54 [00:43:55]line Товар: 2710124500 [00:43:55]line Аи-95-К-5 [00:43:55]line 10.000 * 74.40 [00:43:55]line = 744.00 [00:43:55]line НДС 12% НСП 1% [00:43:55]line > о реализуемом товаре [00:43:55]line ИТОГО: 744.00 [00:43:55]line НСП 1% : 6.58 [00:43:55]line НДС 12% : 79.01 [00:43:55]line Наличными: 0.00 [00:43:55]line Безнал.: 744.00 [00:43:55]line Место: АЗС № 140 "Партнер Нефть" [00:43:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:43:55]line СНО: Общий режим [00:43:55]line Чек 8 14.07.2024 00:43 [00:43:55]line Смена: 463 ФФД: 1.0 [00:43:55]line ЗНМ: 0300000129 [00:43:55]line РНМ: 0000000000090858 [00:43:55]line Версия ККМ: 001 [00:43:55]line Платежная система: O! деньги [00:43:55]line ФМ: 0000000000874899 [00:43:55]line ФД: 162696 [00:43:55]line ФПД: 176215668663154 [00:43:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004356&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162696&fm=176215668663154&tin=02508201610067®Number=0000000000090858&sum=74400 [00:43:55]OFD Sender: Processing packet 162696 [packets to send 106, broken 105] [00:43:55]ProducePacketName [00:43:55]name=ofd_packets/00162696 [00:43:55]OFD Sender: To server: pG, [00:43:55]CommunicateWithHost lk.salyk.kg:30040 [00:43:55]ConnectInit lk.salyk.kg [00:43:55]written 0, free lines is 4095 [00:43:55]Connected sock=10 [00: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 34 38 39 39 0F 01 00 00 35 D8 07 01 FC BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 10 1D 00 00 00 00 13 04 06 00 A0 22 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 22 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A0 22 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4C 1F 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7B 02 00 35 04 06 00 A0 44 68 55 A3 72 97 83 82 BE AB 3B DD A2 [00:43:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4E 2D 47 00 46 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 88 7B 02 00 F4 03 04 00 5A CB 92 66 B6 04 01 00 00 FD 34 06 4C 26 02 2C F0 [00:43:56]CommunicateWithHost err = 0 [00:43:56]CheckOFDResponse [00:43:56]1017 (14) - 77093643461234 [00:43:56]1041 (16) - 0000000000874899 [00:43:56]1040 (4) - 162696 [00:43:56]1012 (4) - 13.07.2024 18:45 [00:43:56]1206 (1) - 0 [00:43:56]OFD Sender: Remove packet 162696 [00:43:56]ProducePacketName [00:43:56]name=ofd_packets/00162696 [00:43:56]NVStorageDeleteData [00:43:56]Write to MH i2c: 01 00 00 B1 36 E7 [00:43:56]Write i2c OK [00:43:56]MH_I2C_Read... [00:43:56]Read from MH i2c: 01 [00:43:56]MH_I2C_Read... [00:43:56]Read from MH i2c: 01 07 00 [00:43:56]MH_I2C_Read... [00:43:56]Read from MH i2c: 01 07 00 B1 36 00 00 00 00 00 E3 0C DD [00:43:56]RasterBufferAndPrint [00:43:56]line [00:43:56]line [00:43:56]line [00:43:56]line [00:43:56]line [00:43:56]written 0, free lines is 3305 [00:43:56]MH_Cut [00:43:56]Write to MH i2c: D1 01 00 B8 36 01 C0 [00:43:56]Write i2c OK [00:43:56]MH_I2C_Read... [00:43:56]Read from MH i2c: D1 [00:43:56]MH_I2C_Read... [00:43:56]Read from MH i2c: D1 01 00 [00:43:56]MH_I2C_Read... [00:43:56]Read from MH i2c: D1 01 00 B8 36 00 BF [00:43:56]Write to MH i2c: 01 00 00 B9 36 EF [00:43:56]Write i2c OK [00:43:56]MH_I2C_Read... [00:43:56]OFD Sender: No OFD packet to send [00:43:56]*** Cut start [00:43:56]*** Purtial cut [00:43:56]*** CUTSNS_PIN = 0 [00:43:57]*** Stage 1: CUTSNS_PIN = 1 [00:43:58]Read from MH i2c: 01 [00:43:58]MH_I2C_Read... [00:43:58]*** Stop cut motor [00:43:58]*** Cut end [00:43:58]Read from MH i2c: 01 07 00 [00:43:58]MH_I2C_Read... [00:43:58]Read from MH i2c: 01 07 00 B9 36 00 00 00 00 00 FF 0F 04 [00:43:58]process_action close_receipt done [00:43:58]requested_data is exist [00:43:58]produce_requested_data [00:43:58]requested_item fm.sn is exist - process it [00:43:58]wFMCommunicate request_size=4 [00:43:58]MH_SAM_APDU [00:43:58]CAPDU: 80 11 00 00 [00:43:58]Write to MH i2c: E2 08 00 BA 36 80 11 00 00 00 00 00 00 6A [00:43:58]Write i2c OK [00:43:58]MH_I2C_Read... [00:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:59]Read from MH i2c: E2 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 17 00 [00:43:59]MH_I2C_Read... [00:43:59]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 34 38 39 39 90 00 CA [00:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:43:59]wFMCommunicate OK [00:43:59]requested_item fd.num is exist - process it [00:43:59]SAM_PROTO_GetFieldsCounters [00:43:59]wFMCommunicate request_size=4 [00:43:59]MH_SAM_APDU [00:43:59]CAPDU: 80 13 00 00 [00:43:59]Write to MH i2c: E2 08 00 BB 36 80 13 00 00 00 00 00 00 6D [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:43:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:59]Read from MH i2c: E2 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 62 00 [00:43:59]MH_I2C_Read... [00:43:59]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 88 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [00:43:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 88 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:59]wFMCommunicate OK [00:43:59]SAM_PROTO_GetFieldsCounters done [00:43:59]requested_item shift.num is exist - process it [00:43:59]requested_item shift.opened is exist - process it [00:43:59]req_shift_opened [00:43:59]FM_GetShiftState [00:43:59]SAM_PROTO_GetShiftState [00:43:59]wFMCommunicate request_size=4 [00:43:59]MH_SAM_APDU [00:43:59]CAPDU: 80 13 01 00 [00:43:59]Write to MH i2c: E2 08 00 BC 36 80 13 01 00 00 00 00 00 6F [00:43:59]Write i2c OK [00:43:59]MH_I2C_Read... [00:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:59]Read from MH i2c: E2 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 0E 00 [00:43:59]MH_I2C_Read... [00:43:59]Read from MH i2c: E2 0E 00 BC 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A5 [00:43:59]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:43:59]wFMCommunicate OK [00:43:59]SAM_PROTO_GetShiftState done [00:43:59]FM_GetShiftState done [00:43:59]req_shift_opened done [00:43:59]requested_item shift.open_date is exist - process it [00:43:59]req_shift_open_date [00:43:59]req_shift_open_date done [00:43:59]produce_requested_data done [00:43:59]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162696,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:43:59]process_action_free close_receipt [00:43:59]json_value_free [00:43:59]json_value_free done [00:43:59]process_json_proto returns [00:43:59]Send response to host [00:43:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162696,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:43:59]free response buf [00:43:59]execute_script done [00:43:59]execute_script returns [00:43:59]free content buf [00:43:59]Sock 7.Close socket [00:43:59]Sock 7.Thread stoped [00:44:01]OFD Sender: No OFD packet to send [00:44:06]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:07]accept exits with 9 [00:48:07]New connection [00:48:07]New thread 3067510116 created [00:48:07]Thread 3067366756 joined [00:48:07]Waiting for new connection... [00:48:07] Sock 9.Parse request [00:48:07]Sock 9.Check first char [00:48:07]Sock 9.First char is OK [00:48:07]request: POST /json_proto HTTP/1.0 [00:48:07]Method: POST [00:48:07]URL: /json_proto [00:48:07]Method is POST - this is cgi request [00:48:07]url: /json_proto [00:48:07]query_string will be loaded in cgi processing [00:48:07]execute_cgi json_proto POST (null) [00:48:07]execute_cgi path=json_proto method=POST [00:48:07]POST find Content-Length [00:48:07]Host: 172.17.39.67:8080 [00:48:07]Content-Length: 688 [00:48:07]Content-Type: application/json [00:48:07] [00:48:07]POST finish read [00:48:07]Found Content-Length = 688 [00:48:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 40.230, "sum" : 2920.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2920.00, "total" : 2920.00, "payments": [ { "type": 0, "sum" : 2920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:07]execute_script... [00:48: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)1319275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 40.230, "sum" : 2920.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2920.00, "total" : 2920.00, "payments": [ { "type": 0, "sum" : 2920.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:07]POST & json_proto [00:48:07]process_json_proto [00:48:07]json parsed OK: [00:48:07]protocol is kg_v1.0 [00:48:07]action value=close_receipt [00:48:07]process_action close_receipt [00:48:07]cmd_close_receipt [00:48:07]MH_GetDate [00:48:07]Write to MH i2c: F0 00 00 BD 36 E2 [00:48:07]Write i2c OK [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: F0 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: F0 09 00 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: F0 09 00 BD 36 00 49 20 93 66 86 7C 92 66 47 [00:48:07]GetLastDocTimeStamp 1720917836 [00:48:07]current date 1720918089 [00:48:07]FM_GetShiftState [00:48:07]SAM_PROTO_GetShiftState [00:48:07]wFMCommunicate request_size=4 [00:48:07]MH_SAM_APDU [00:48:07]CAPDU: 80 13 01 00 [00:48:07]Write to MH i2c: E2 08 00 BE 36 80 13 01 00 00 00 00 00 71 [00:48:07]Write i2c OK [00:48:07]MH_I2C_Read... [00:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:07]Read from MH i2c: E2 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: E2 0E 00 [00:48:07]MH_I2C_Read... [00:48:07]Read from MH i2c: E2 0E 00 BE 36 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 A7 [00:48:07]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:48:07]wFMCommunicate OK [00:48:07]SAM_PROTO_GetShiftState done [00:48:07]FM_GetShiftState done [00:48:07]opened in 1720915483 [00:48:07]opened+sec_in_day 1721001883 [00:48:07]quantity*price = 292069 [00:48:07]sum+1 = 292071 [00:48:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 2920.00 Внесено: 2920.00 СДАЧА: 0.00 НСП 1% : 25.85 НДС 12% : 310.16 Наличными: 2920.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 9 14.07.2024 00:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162697 ФПД: 210693883543516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004809&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162697&fm=210693883543516&tin=02508201610067®Number=0000000000090858&sum=292000 [00:48:08]StoreToDocumentArchive [00:48:08]shift 463 fd 162697 [00:48:08]save to /storage/0463/doc_00162697 [00:48:08]save last doc name /storage/0463/doc_00162697 to /storage/kkm_last_doc_name [00:48:08]save OK [00:48:08]Clear old archive folders... [00:48:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:48:08]tlvbuf is 0063F030 [00:48:08]SAM_PROTO_ClearQueue [00:48:08]wFMCommunicate request_size=4 [00:48:08]MH_SAM_APDU [00:48:08]CAPDU: 80 09 00 00 [00:48:08]Write to MH i2c: E2 08 00 CB 36 80 09 00 00 00 00 00 00 73 [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:08]Read from MH i2c: E2 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 03 00 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 03 00 CB 36 00 90 00 75 [00:48:08]RAPDU: 90 00 [00:48:08]wFMCommunicate OK [00:48:08]SAM_PROTO_ClearQueue done [00:48:08]KKMCreateOFDPacket [00:48:08]OFDProtocolAddRootSTLVToBuf [00:48:08]FM_MakeSignedData [00:48:08]FM_MakeSignedData [00:48:08]SAM_PROTO_SignData [00:48:08]wFMCommunicate request_size=4 [00:48:08]MH_SAM_APDU [00:48:08]CAPDU: 80 0D 01 02 [00:48:08]Write to MH i2c: E2 08 00 CC 36 80 0D 01 02 00 00 00 00 7B [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:08]Read from MH i2c: E2 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 03 00 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 03 00 CC 36 00 90 00 76 [00:48:08]RAPDU: 90 00 [00:48:08]wFMCommunicate OK [00:48:08]wFMCommunicate request_size=255 [00:48:08]MH_SAM_APDU [00:48:08]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 9D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E6 74 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 74 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 79 00 00 00 00 07 04 06 00 A0 74 04 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 49 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7B 02 00 35 04 06 00 [00:48:08]Write to MH i2c: E2 02 01 CD 36 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 9D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E6 74 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 74 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 79 00 00 00 00 07 04 06 00 A0 74 04 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 49 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7B 02 00 35 04 06 00 00 00 A0 [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:08]Read from MH i2c: E2 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 03 00 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 03 00 CD 36 00 90 00 77 [00:48:08]RAPDU: 90 00 [00:48:08]wFMCommunicate OK [00:48:08]wFMCommunicate request_size=11 [00:48:08]MH_SAM_APDU [00:48:08]CAPDU: 80 0D 02 02 06 BF 9F FE 15 BF DC [00:48:08]Write to MH i2c: E2 0E 00 CE 36 80 0D 02 02 06 00 BF 9F FE 15 BF DC 00 00 96 [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:08]Read from MH i2c: E2 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 03 00 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 03 00 CE 36 00 90 00 78 [00:48:08]RAPDU: 90 00 [00:48:08]wFMCommunicate OK [00:48:08]wFMCommunicate request_size=4 [00:48:08]MH_SAM_APDU [00:48:08]CAPDU: 80 0D 03 02 [00:48:08]Write to MH i2c: E2 08 00 CF 36 80 0D 03 02 00 00 00 00 80 [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:08]Read from MH i2c: E2 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 0B 00 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 0B 00 CF 36 00 A5 69 99 0C 84 7C B2 41 90 00 27 [00:48:08]RAPDU: A5 69 99 0C 84 7C B2 41 90 00 [00:48:08]wFMCommunicate OK [00:48:08]SAM_PROTO_SignData done [00:48:08]FM_MakeSignedData done [00:48:08]CreateOFDProtocolMessage [00:48:08]wFMCommunicate request_size=4 [00:48:08]MH_SAM_APDU [00:48:08]CAPDU: 80 11 00 00 [00:48:08]Write to MH i2c: E2 08 00 D0 36 80 11 00 00 00 00 00 00 80 [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:08]Read from MH i2c: E2 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: E2 17 00 [00:48:08]MH_I2C_Read... [00:48:08]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 34 38 39 39 90 00 E0 [00:48:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:48:08]wFMCommunicate OK [00:48:08]CreateOFDProtocolMessage done [00:48:08]OFDSenderStorePacket 162697 [00:48:08]StoreOFDPacket docnum=162697 [00:48:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BA 9C 08 01 4A F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 9D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E6 74 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 74 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 79 00 00 00 00 07 04 06 00 A0 74 04 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 49 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7B 02 00 35 04 06 00 BF 9F FE 15 BF DC A5 69 99 0C 84 7C B2 41 [00:48:08]CheckFolder [00:48:08]dirname=/storage/ofd_packets [00:48:08]CheckFolder done [00:48:08]ProducePacketName [00:48:08]name=ofd_packets/00162697 [00:48:08]NVStorageSaveData ofd_packets/00162697 [00:48:08]File name is /storage/ofd_packets/00162697 [00:48:08]Write 302 bytes [00:48:08]NVStorageSaveData done [00:48:08]OFDSenderStorePacket done [00:48:08]KKMCreateOFDPacket done [00:48:08]NVStorageSaveData kkm_last_timestamp [00:48:08]File name is /storage/kkm_last_timestamp [00:48:08]Write 4 bytes [00:48:08]NVStorageSaveData done [00:48:08]ExternCall_PrintAddStr [00:48:08]wPrintStart [00:48:08]Write to MH i2c: 01 00 00 D1 36 07 [00:48:08]Write i2c OK [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: 01 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: 01 07 00 [00:48:08]MH_I2C_Read... [00:48:08]Read from MH i2c: 01 07 00 D1 36 00 00 00 00 00 FF 0F 1C [00:48:08]RasterBufferAndPrint [00:48:08]line Счет N : (1)1319275 [00:48:08]line ИНН: 02508201610067 [00:48:08]line Контрольно-Кассовый Чек [00:48:08]line ПРОДАЖА [00:48:08]line ТРК (МРК, ГНК) : 31 [00:48:08]line Товар: 2710194210 [00:48:08]line ДТ(л)-К-5 [00:48:08]line 40.230 * 72.60 [00:48:08]line = 2920.70 [00:48:08]line НДС 12% НСП 1% [00:48:08]line > о реализуемом товаре [00:48:08]line ОКРУГЛЕНИЕ: -0.70 [00:48:08]line ИТОГО: 2920.00 [00:48:08]line Внесено: 2920.00 [00:48:08]line СДАЧА: 0.00 [00:48:08]line НСП 1% : 25.85 [00:48:08]line НДС 12% : 310.16 [00:48:08]line Наличными: 2920.00 [00:48:08]line Безнал.: 0.00 [00:48:08]line Место: АЗС № 140 "Партнер Нефть" [00:48:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:48:08]line СНО: Общий режим [00:48:08]line Чек 9 14.07.2024 00:48 [00:48:08]line Смена: 463 ФФД: 1.0 [00:48:08]line ЗНМ: 0300000129 [00:48:08]line РНМ: 0000000000090858 [00:48:08]line Версия ККМ: 001 [00:48:08]line ФМ: 0000000000874899 [00:48:08]line ФД: 162697 [00:48:08]line ФПД: 210693883543516 [00:48:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004809&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162697&fm=210693883543516&tin=02508201610067®Number=0000000000090858&sum=292000 [00:48:09]OFD Sender: Processing packet 162697 [packets to send 106, broken 105] [00:48:09]ProducePacketName [00:48:09]name=ofd_packets/00162697 [00:48:09]OFD Sender: To server: pG, [00:48:09]CommunicateWithHost lk.salyk.kg:30040 [00:48:09]ConnectInit lk.salyk.kg [00:48:09]written 0, free lines is 4095 [00:48:09]Connected sock=10 [00:48:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 BA 9C 08 01 4A F3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 26 9D 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 E6 74 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 74 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 79 00 00 00 00 07 04 06 00 A0 74 04 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 49 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7B 02 00 35 04 06 00 BF 9F FE 15 BF DC A5 69 99 0C 84 7C B2 41 [00:48:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 E4 8E 47 00 83 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 89 7B 02 00 F4 03 04 00 57 CC 92 66 B6 04 01 00 00 95 77 CE E6 17 7E 76 96 [00:48:09]CommunicateWithHost err = 0 [00:48:09]CheckOFDResponse [00:48:09]1017 (14) - 77093643461234 [00:48:09]1041 (16) - 0000000000874899 [00:48:09]1040 (4) - 162697 [00:48:09]1012 (4) - 13.07.2024 18:49 [00:48:09]1206 (1) - 0 [00:48:09]OFD Sender: Remove packet 162697 [00:48:09]ProducePacketName [00:48:09]name=ofd_packets/00162697 [00:48:09]NVStorageDeleteData [00:48:09]Write to MH i2c: 01 00 00 FC 36 32 [00:48:09]Write i2c OK [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: 01 [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: 01 07 00 [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: 01 07 00 FC 36 00 00 00 00 00 E7 0C 2C [00:48:09]RasterBufferAndPrint [00:48:09]line [00:48:09]line [00:48:09]line [00:48:09]line [00:48:09]line [00:48:09]written 0, free lines is 3309 [00:48:09]MH_Cut [00:48:09]Write to MH i2c: D1 01 00 03 37 01 0C [00:48:09]Write i2c OK [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: D1 [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: D1 01 00 [00:48:09]MH_I2C_Read... [00:48:09]Read from MH i2c: D1 01 00 03 37 00 0B [00:48:09]Write to MH i2c: 01 00 00 04 37 3B [00:48:09]Write i2c OK [00:48:09]MH_I2C_Read... [00:48:09]OFD Sender: No OFD packet to send [00:48:10]*** Cut start [00:48:10]*** Purtial cut [00:48:10]*** Stage 1: CUTSNS_PIN = 1 [00:48:10]Read from MH i2c: 01 [00:48:10]MH_I2C_Read... [00:48:10]*** Stop cut motor [00:48:10]*** Cut end [00:48:10]Read from MH i2c: 01 07 00 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: 01 07 00 04 37 00 00 00 00 00 FF 0F 50 [00:48:10]process_action close_receipt done [00:48:10]requested_data is exist [00:48:10]produce_requested_data [00:48:10]requested_item fm.sn is exist - process it [00:48:10]wFMCommunicate request_size=4 [00:48:10]MH_SAM_APDU [00:48:10]CAPDU: 80 11 00 00 [00:48:10]Write to MH i2c: E2 08 00 05 37 80 11 00 00 00 00 00 00 B6 [00:48:10]Write i2c OK [00:48:10]MH_I2C_Read... [00:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:10]Read from MH i2c: E2 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 17 00 [00:48:10]MH_I2C_Read... [00:48:10]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 34 38 39 39 90 00 16 [00:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:48:10]wFMCommunicate OK [00:48:10]requested_item fd.num is exist - process it [00:48:10]SAM_PROTO_GetFieldsCounters [00:48:10]wFMCommunicate request_size=4 [00:48:10]MH_SAM_APDU [00:48:10]CAPDU: 80 13 00 00 [00:48:10]Write to MH i2c: E2 08 00 06 37 80 13 00 00 00 00 00 00 B9 [00:48:10]Write i2c OK [00:48:10]MH_I2C_Read... [00:48:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:10]Read from MH i2c: E2 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 62 00 [00:48:10]MH_I2C_Read... [00:48:10]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 89 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [00:48:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 89 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:10]wFMCommunicate OK [00:48:10]SAM_PROTO_GetFieldsCounters done [00:48:10]requested_item shift.num is exist - process it [00:48:10]requested_item shift.opened is exist - process it [00:48:10]req_shift_opened [00:48:10]FM_GetShiftState [00:48:10]SAM_PROTO_GetShiftState [00:48:10]wFMCommunicate request_size=4 [00:48:10]MH_SAM_APDU [00:48:10]CAPDU: 80 13 01 00 [00:48:10]Write to MH i2c: E2 08 00 07 37 80 13 01 00 00 00 00 00 BB [00:48:10]Write i2c OK [00:48:10]MH_I2C_Read... [00:48:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:10]Read from MH i2c: E2 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 0E 00 [00:48:10]MH_I2C_Read... [00:48:10]Read from MH i2c: E2 0E 00 07 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F1 [00:48:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:48:10]wFMCommunicate OK [00:48:10]SAM_PROTO_GetShiftState done [00:48:10]FM_GetShiftState done [00:48:10]req_shift_opened done [00:48:10]requested_item shift.open_date is exist - process it [00:48:10]req_shift_open_date [00:48:10]req_shift_open_date done [00:48:10]produce_requested_data done [00:48:10]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162697,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:48:10]process_action_free close_receipt [00:48:10]json_value_free [00:48:10]json_value_free done [00:48:10]process_json_proto returns [00:48:10]Send response to host [00:48:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162697,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:48:10]free response buf [00:48:10]execute_script done [00:48:10]execute_script returns [00:48:10]free content buf [00:48:10]Sock 9.Close socket [00:48:10]Sock 9.Thread stoped [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:20]accept exits with 7 [00:48:20]New connection [00:48:20]New thread 3067366756 created [00:48:20]Thread 3067510116 joined [00:48:20]Waiting for new connection... [00:48:20] Sock 7.Parse request [00:48:20]Sock 7.Check first char [00:48:20]Sock 7.First char is OK [00:48:20]request: POST /json_proto HTTP/1.0 [00:48:20]Method: POST [00:48:20]URL: /json_proto [00:48:20]Method is POST - this is cgi request [00:48:20]url: /json_proto [00:48:20]query_string will be loaded in cgi processing [00:48:20]execute_cgi json_proto POST (null) [00:48:20]execute_cgi path=json_proto method=POST [00:48:20]POST find Content-Length [00:48:20]Host: 172.17.39.67:8080 [00:48:20]Content-Length: 801 [00:48:20]Content-Type: application/json [00:48:20] [00:48:20]POST finish read [00:48:20]Found Content-Length = 801 [00:48:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.000, "sum" : 331.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 331.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:20]execute_script... [00:48: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)1319276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 5.000, "sum" : 331.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 331.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:20]POST & json_proto [00:48:20]process_json_proto [00:48:20]json parsed OK: [00:48:20]protocol is kg_v1.0 [00:48:20]action value=close_receipt [00:48:20]process_action close_receipt [00:48:20]cmd_close_receipt [00:48:20]MH_GetDate [00:48:20]Write to MH i2c: F0 00 00 08 37 2E [00:48:20]Write i2c OK [00:48:20]MH_I2C_Read... [00:48:20]Read from MH i2c: F0 [00:48:20]MH_I2C_Read... [00:48:20]Read from MH i2c: F0 09 00 [00:48:20]MH_I2C_Read... [00:48:20]Read from MH i2c: F0 09 00 08 37 00 56 20 93 66 86 7C 92 66 A0 [00:48:20]GetLastDocTimeStamp 1720918089 [00:48:20]current date 1720918102 [00:48:20]FM_GetShiftState [00:48:20]SAM_PROTO_GetShiftState [00:48:20]wFMCommunicate request_size=4 [00:48:20]MH_SAM_APDU [00:48:20]CAPDU: 80 13 01 00 [00:48:20]Write to MH i2c: E2 08 00 09 37 80 13 01 00 00 00 00 00 BD [00:48:20]Write i2c OK [00:48:20]MH_I2C_Read... [00:48:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:20]Read from MH i2c: E2 [00:48:20]MH_I2C_Read... [00:48:20]Read from MH i2c: E2 0E 00 [00:48:20]MH_I2C_Read... [00:48:20]Read from MH i2c: E2 0E 00 09 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 F3 [00:48:20]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:48:20]wFMCommunicate OK [00:48:20]SAM_PROTO_GetShiftState done [00:48:20]FM_GetShiftState done [00:48:20]opened in 1720915483 [00:48:20]opened+sec_in_day 1721001883 [00:48:20]quantity*price = 33150 [00:48:20]sum+1 = 33151 [00:48:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 331.50 НСП 1% : 2.93 НДС 12% : 35.20 Наличными: 0.00 Безнал.: 331.50 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 10 14.07.2024 00:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162698 ФПД: 152461841393557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004822&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162698&fm=152461841393557&tin=02508201610067®Number=0000000000090858&sum=33150 [00:48:21]StoreToDocumentArchive [00:48:21]shift 463 fd 162698 [00:48:21]save to /storage/0463/doc_00162698 [00:48:21]save last doc name /storage/0463/doc_00162698 to /storage/kkm_last_doc_name [00:48:21]save OK [00:48:21]Clear old archive folders... [00:48:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:21]tlvbuf is 006E3290 [00:48:21]SAM_PROTO_ClearQueue [00:48:21]wFMCommunicate request_size=4 [00:48:21]MH_SAM_APDU [00:48:21]CAPDU: 80 09 00 00 [00:48:21]Write to MH i2c: E2 08 00 16 37 80 09 00 00 00 00 00 00 BF [00:48:21]Write i2c OK [00:48:21]MH_I2C_Read... [00:48:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:21]Read from MH i2c: E2 [00:48:21]MH_I2C_Read... [00:48:21]Read from MH i2c: E2 03 00 [00:48:21]MH_I2C_Read... [00:48:21]Read from MH i2c: E2 03 00 16 37 00 90 00 C1 [00:48:21]RAPDU: 90 00 [00:48:21]wFMCommunicate OK [00:48:21]SAM_PROTO_ClearQueue done [00:48:21]KKMCreateOFDPacket [00:48:21]OFDProtocolAddRootSTLVToBuf [00:48:21]FM_MakeSignedData [00:48:21]FM_MakeSignedData [00:48:21]SAM_PROTO_SignData [00:48:21]wFMCommunicate request_size=4 [00:48:21]MH_SAM_APDU [00:48:21]CAPDU: 80 0D 01 02 [00:48:21]Write to MH i2c: E2 08 00 17 37 80 0D 01 02 00 00 00 00 C7 [00:48:21]Write i2c OK [00:48:21]MH_I2C_Read... [00:48:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:21]Read from MH i2c: E2 [00:48:21]MH_I2C_Read... [00:48:21]Read from MH i2c: E2 03 00 [00:48:21]MH_I2C_Read... [00:48:21]Read from MH i2c: E2 03 00 17 37 00 90 00 C2 [00:48:21]RAPDU: 90 00 [00:48:21]wFMCommunicate OK [00:48:21]wFMCommunicate request_size=255 [00:48:21]MH_SAM_APDU [00:48:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7E 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 56 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7B 02 00 35 04 06 00 8A [00:48:21]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 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7E 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 56 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7B 02 00 35 04 06 00 8A 00 00 47 [00:48:21]Write i2c OK [00:48:21]MH_I2C_Read... [00:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:21]Read from MH i2c: E2 [00:48:21]MH_I2C_Read... [00:48:21]Read from MH i2c: E2 03 00 [00:48:21]MH_I2C_Read... [00:48:21]Read from MH i2c: E2 03 00 18 37 00 90 00 C3 [00:48:21]RAPDU: 90 00 [00:48:21]wFMCommunicate OK [00:48:21]wFMCommunicate request_size=10 [00:48:21]MH_SAM_APDU [00:48:21]CAPDU: 80 0D 02 02 05 A9 C9 E5 E7 95 [00:48:21]Write to MH i2c: E2 0D 00 19 37 80 0D 02 02 05 00 A9 C9 E5 E7 95 00 00 A7 [00:48:21]Write i2c OK [00:48:21]MH_I2C_Read... [00:48:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:21]Read from MH i2c: E2 [00:48:21]MH_I2C_Read... [00:48:21]Read from MH i2c: E2 03 00 [00:48:21]MH_I2C_Read... [00:48:21]Read from MH i2c: E2 03 00 19 37 00 90 00 C4 [00:48:21]RAPDU: 90 00 [00:48:21]wFMCommunicate OK [00:48:21]wFMCommunicate request_size=4 [00:48:21]MH_SAM_APDU [00:48:21]CAPDU: 80 0D 03 02 [00:48:21]Write to MH i2c: E2 08 00 1A 37 80 0D 03 02 00 00 00 00 CC [00:48:21]Write i2c OK [00:48:21]MH_I2C_Read... [00:48:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:22]Read from MH i2c: E2 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: E2 0B 00 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: E2 0B 00 1A 37 00 A2 7F 14 11 22 AF 70 EA 90 00 3E [00:48:22]RAPDU: A2 7F 14 11 22 AF 70 EA 90 00 [00:48:22]wFMCommunicate OK [00:48:22]SAM_PROTO_SignData done [00:48:22]FM_MakeSignedData done [00:48:22]CreateOFDProtocolMessage [00:48:22]wFMCommunicate request_size=4 [00:48:22]MH_SAM_APDU [00:48:22]CAPDU: 80 11 00 00 [00:48:22]Write to MH i2c: E2 08 00 1B 37 80 11 00 00 00 00 00 00 CC [00:48:22]Write i2c OK [00:48:22]MH_I2C_Read... [00:48:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:22]Read from MH i2c: E2 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: E2 17 00 [00:48:22]MH_I2C_Read... [00:48:22]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 34 38 39 39 90 00 2C [00:48:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:48:22]wFMCommunicate OK [00:48:22]CreateOFDProtocolMessage done [00:48:22]OFDSenderStorePacket 162698 [00:48:22]StoreOFDPacket docnum=162698 [00:48:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 68 FD 07 01 59 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7E 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 56 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7B 02 00 35 04 06 00 8A A9 C9 E5 E7 95 A2 7F 14 11 22 AF 70 EA [00:48:22]CheckFolder [00:48:22]dirname=/storage/ofd_packets [00:48:22]CheckFolder done [00:48:22]ProducePacketName [00:48:22]name=ofd_packets/00162698 [00:48:22]NVStorageSaveData ofd_packets/00162698 [00:48:22]File name is /storage/ofd_packets/00162698 [00:48:22]Write 301 bytes [00:48:22]NVStorageSaveData done [00:48:22]OFDSenderStorePacket done [00:48:22]KKMCreateOFDPacket done [00:48:22]NVStorageSaveData kkm_last_timestamp [00:48:22]File name is /storage/kkm_last_timestamp [00:48:22]Write 4 bytes [00:48:22]NVStorageSaveData done [00:48:22]ExternCall_PrintAddStr [00:48:22]wPrintStart [00:48:22]Write to MH i2c: 01 00 00 1C 37 53 [00:48:22]Write i2c OK [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: 01 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: 01 07 00 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: 01 07 00 1C 37 00 00 00 00 00 FF 0F 68 [00:48:22]RasterBufferAndPrint [00:48:22]line Счет N : (1)1319276 [00:48:22]line ИНН: 02508201610067 [00:48:22]line Контрольно-Кассовый Чек [00:48:22]line ПРОДАЖА [00:48:22]line ТРК (МРК, ГНК) : 43 [00:48:22]line Товар: 2710124130 [00:48:22]line Аи-92-К-5 [00:48:22]line 5.000 * 66.30 [00:48:22]line = 331.50 [00:48:22]line НДС 12% НСП 1% [00:48:22]line > о реализуемом товаре [00:48:22]line ИТОГО: 331.50 [00:48:22]line НСП 1% : 2.93 [00:48:22]line НДС 12% : 35.20 [00:48:22]line Наличными: 0.00 [00:48:22]line Безнал.: 331.50 [00:48:22]line Место: АЗС № 140 "Партнер Нефть" [00:48:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:48:22]line СНО: Общий режим [00:48:22]line Чек 10 14.07.2024 00:48 [00:48:22]line Смена: 463 ФФД: 1.0 [00:48:22]line ЗНМ: 0300000129 [00:48:22]line РНМ: 0000000000090858 [00:48:22]line Версия ККМ: 001 [00:48:22]line Платежная система: O! деньги [00:48:22]line ФМ: 0000000000874899 [00:48:22]line ФД: 162698 [00:48:22]line ФПД: 152461841393557 [00:48:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004822&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162698&fm=152461841393557&tin=02508201610067®Number=0000000000090858&sum=33150 [00:48:22]written 0, free lines is 4095 [00:48:22]OFD Sender: Processing packet 162698 [packets to send 106, broken 105] [00:48:22]ProducePacketName [00:48:22]name=ofd_packets/00162698 [00:48:22]OFD Sender: To server: pG, [00:48:22]CommunicateWithHost lk.salyk.kg:30040 [00:48:22]ConnectInit lk.salyk.kg [00:48:22]Connected sock=10 [00:48:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 68 FD 07 01 59 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 7E 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7E 81 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7E 81 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 56 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7B 02 00 35 04 06 00 8A A9 C9 E5 E7 95 A2 7F 14 11 22 AF 70 EA [00:48:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 16 38 47 00 C5 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8A 7B 02 00 F4 03 04 00 64 CC 92 66 B6 04 01 00 00 82 41 61 6B 7C 7D 7E 54 [00:48:22]CommunicateWithHost err = 0 [00:48:22]CheckOFDResponse [00:48:22]1017 (14) - 77093643461234 [00:48:22]1041 (16) - 0000000000874899 [00:48:22]1040 (4) - 162698 [00:48:22]1012 (4) - 13.07.2024 18:50 [00:48:22]1206 (1) - 0 [00:48:22]OFD Sender: Remove packet 162698 [00:48:22]ProducePacketName [00:48:22]name=ofd_packets/00162698 [00:48:22]NVStorageDeleteData [00:48:22]Write to MH i2c: 01 00 00 46 37 7D [00:48:22]Write i2c OK [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: 01 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: 01 07 00 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: 01 07 00 46 37 00 00 00 00 00 E3 0C 73 [00:48:22]RasterBufferAndPrint [00:48:22]line [00:48:22]line [00:48:22]line [00:48:22]line [00:48:22]line [00:48:22]written 0, free lines is 3308 [00:48:22]MH_Cut [00:48:22]Write to MH i2c: D1 01 00 4D 37 01 56 [00:48:22]Write i2c OK [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: D1 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: D1 01 00 [00:48:22]MH_I2C_Read... [00:48:22]Read from MH i2c: D1 01 00 4D 37 00 55 [00:48:22]Write to MH i2c: 01 00 00 4E 37 85 [00:48:22]Write i2c OK [00:48:22]MH_I2C_Read... [00:48:22]OFD Sender: No OFD packet to send [00:48:23]*** Cut start [00:48:23]*** Purtial cut [00:48:23]*** CUTSNS_PIN = 0 [00:48:23]*** Stage 1: CUTSNS_PIN = 1 [00:48:25]Read from MH i2c: 01 [00:48:25]MH_I2C_Read... [00:48:25]*** Stop cut motor [00:48:25]*** Cut end [00:48:25]Read from MH i2c: 01 07 00 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: 01 07 00 4E 37 00 00 00 00 00 FF 0F 9A [00:48:25]process_action close_receipt done [00:48:25]requested_data is exist [00:48:25]produce_requested_data [00:48:25]requested_item fm.sn is exist - process it [00:48:25]wFMCommunicate request_size=4 [00:48:25]MH_SAM_APDU [00:48:25]CAPDU: 80 11 00 00 [00:48:25]Write to MH i2c: E2 08 00 4F 37 80 11 00 00 00 00 00 00 00 [00:48:25]Write i2c OK [00:48:25]MH_I2C_Read... [00:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:25]Read from MH i2c: E2 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: E2 17 00 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: E2 17 00 4F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 60 [00:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:48:25]wFMCommunicate OK [00:48:25]requested_item fd.num is exist - process it [00:48:25]SAM_PROTO_GetFieldsCounters [00:48:25]wFMCommunicate request_size=4 [00:48:25]MH_SAM_APDU [00:48:25]CAPDU: 80 13 00 00 [00:48:25]Write to MH i2c: E2 08 00 50 37 80 13 00 00 00 00 00 00 03 [00:48:25]Write i2c OK [00:48:25]MH_I2C_Read... [00:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:25]Read from MH i2c: E2 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: E2 62 00 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: E2 62 00 50 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8A 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [00:48:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8A 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:25]wFMCommunicate OK [00:48:25]SAM_PROTO_GetFieldsCounters done [00:48:25]requested_item shift.num is exist - process it [00:48:25]requested_item shift.opened is exist - process it [00:48:25]req_shift_opened [00:48:25]FM_GetShiftState [00:48:25]SAM_PROTO_GetShiftState [00:48:25]wFMCommunicate request_size=4 [00:48:25]MH_SAM_APDU [00:48:25]CAPDU: 80 13 01 00 [00:48:25]Write to MH i2c: E2 08 00 51 37 80 13 01 00 00 00 00 00 05 [00:48:25]Write i2c OK [00:48:25]MH_I2C_Read... [00:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:25]Read from MH i2c: E2 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: E2 0E 00 [00:48:25]MH_I2C_Read... [00:48:25]Read from MH i2c: E2 0E 00 51 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3B [00:48:25]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:48:25]wFMCommunicate OK [00:48:25]SAM_PROTO_GetShiftState done [00:48:25]FM_GetShiftState done [00:48:25]req_shift_opened done [00:48:25]requested_item shift.open_date is exist - process it [00:48:25]req_shift_open_date [00:48:25]req_shift_open_date done [00:48:25]produce_requested_data done [00:48:25]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162698,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:48:25]process_action_free close_receipt [00:48:25]json_value_free [00:48:25]json_value_free done [00:48:25]process_json_proto returns [00:48:25]Send response to host [00:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162698,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:48:25]free response buf [00:48:25]execute_script done [00:48:25]execute_script returns [00:48:25]free content buf [00:48:25]Sock 7.Close socket [00:48:25]Sock 7.Thread stoped [00:48:27]OFD Sender: No OFD packet to send [00:48:32]OFD Sender: No OFD packet to send [00:48:37]OFD Sender: No OFD packet to send [00:48:42]OFD Sender: No OFD packet to send [00:48:45]accept exits with 9 [00:48:45]New connection [00:48:45]New thread 3067510116 created [00:48:45]Thread 3067366756 joined [00:48:45]Waiting for new connection... [00:48:45] Sock 9.Parse request [00:48:45]Sock 9.Check first char [00:48:45]Sock 9.First char is OK [00:48:45]request: POST /json_proto HTTP/1.0 [00:48:45]Method: POST [00:48:45]URL: /json_proto [00:48:45]Method is POST - this is cgi request [00:48:45]url: /json_proto [00:48:45]query_string will be loaded in cgi processing [00:48:45]execute_cgi json_proto POST (null) [00:48:45]execute_cgi path=json_proto method=POST [00:48:45]POST find Content-Length [00:48:45]Host: 172.17.39.67:8080 [00:48:45]Content-Length: 678 [00:48:45]Content-Type: application/json [00:48:45] [00:48:45]POST finish read [00:48:45]Found Content-Length = 678 [00:48:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:45]execute_script... [00:48: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)1319277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:48:45]POST & json_proto [00:48:45]process_json_proto [00:48:45]json parsed OK: [00:48:45]protocol is kg_v1.0 [00:48:45]action value=close_receipt [00:48:45]process_action close_receipt [00:48:45]cmd_close_receipt [00:48:45]MH_GetDate [00:48:45]Write to MH i2c: F0 00 00 52 37 78 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: F0 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: F0 09 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: F0 09 00 52 37 00 70 20 93 66 86 7C 92 66 04 [00:48:45]GetLastDocTimeStamp 1720918102 [00:48:45]current date 1720918128 [00:48:45]FM_GetShiftState [00:48:45]SAM_PROTO_GetShiftState [00:48:45]wFMCommunicate request_size=4 [00:48:45]MH_SAM_APDU [00:48:45]CAPDU: 80 13 01 00 [00:48:45]Write to MH i2c: E2 08 00 53 37 80 13 01 00 00 00 00 00 07 [00:48:45]Write i2c OK [00:48:45]MH_I2C_Read... [00:48:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:45]Read from MH i2c: E2 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 0E 00 [00:48:45]MH_I2C_Read... [00:48:45]Read from MH i2c: E2 0E 00 53 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 3D [00:48:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:48:45]wFMCommunicate OK [00:48:45]SAM_PROTO_GetShiftState done [00:48:45]FM_GetShiftState done [00:48:45]opened in 1720915483 [00:48:45]opened+sec_in_day 1721001883 [00:48:45]quantity*price = 50056 [00:48:45]sum+1 = 50058 [00:48:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 11 14.07.2024 00:48 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162699 ФПД: 132271802321506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004848&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162699&fm=132271802321506&tin=02508201610067®Number=0000000000090858&sum=50000 [00:48:46]StoreToDocumentArchive [00:48:46]shift 463 fd 162699 [00:48:46]save to /storage/0463/doc_00162699 [00:48:46]save last doc name /storage/0463/doc_00162699 to /storage/kkm_last_doc_name [00:48:46]save OK [00:48:46]Clear old archive folders... [00:48:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:46]tlvbuf is 0063F880 [00:48:46]SAM_PROTO_ClearQueue [00:48:46]wFMCommunicate request_size=4 [00:48:46]MH_SAM_APDU [00:48:46]CAPDU: 80 09 00 00 [00:48:46]Write to MH i2c: E2 08 00 60 37 80 09 00 00 00 00 00 00 09 [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:46]Read from MH i2c: E2 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: E2 03 00 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: E2 03 00 60 37 00 90 00 0B [00:48:46]RAPDU: 90 00 [00:48:46]wFMCommunicate OK [00:48:46]SAM_PROTO_ClearQueue done [00:48:46]KKMCreateOFDPacket [00:48:46]OFDProtocolAddRootSTLVToBuf [00:48:46]FM_MakeSignedData [00:48:46]FM_MakeSignedData [00:48:46]SAM_PROTO_SignData [00:48:46]wFMCommunicate request_size=4 [00:48:46]MH_SAM_APDU [00:48:46]CAPDU: 80 0D 01 02 [00:48:46]Write to MH i2c: E2 08 00 61 37 80 0D 01 02 00 00 00 00 11 [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:46]Read from MH i2c: E2 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: E2 03 00 [00:48:46]MH_I2C_Read... [00:48:46]Read from MH i2c: E2 03 00 61 37 00 90 00 0C [00:48:46]RAPDU: 90 00 [00:48:46]wFMCommunicate OK [00:48:46]wFMCommunicate request_size=255 [00:48:46]MH_SAM_APDU [00:48:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 70 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7B 02 00 35 04 06 00 78 [00:48:46]Write to MH i2c: E2 02 01 62 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 70 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7B 02 00 35 04 06 00 78 00 00 B1 [00:48:46]Write i2c OK [00:48:46]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 03 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 03 00 62 37 00 90 00 0D [00:48:47]RAPDU: 90 00 [00:48:47]wFMCommunicate OK [00:48:47]wFMCommunicate request_size=10 [00:48:47]MH_SAM_APDU [00:48:47]CAPDU: 80 0D 02 02 05 4C ED CA 8A 62 [00:48:47]Write to MH i2c: E2 0D 00 63 37 80 0D 02 02 05 00 4C ED CA 8A 62 00 00 0D [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 03 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 03 00 63 37 00 90 00 0E [00:48:47]RAPDU: 90 00 [00:48:47]wFMCommunicate OK [00:48:47]wFMCommunicate request_size=4 [00:48:47]MH_SAM_APDU [00:48:47]CAPDU: 80 0D 03 02 [00:48:47]Write to MH i2c: E2 08 00 64 37 80 0D 03 02 00 00 00 00 16 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 0B 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 0B 00 64 37 00 AA B6 F5 21 DD 8A 6A 4E 90 00 AC [00:48:47]RAPDU: AA B6 F5 21 DD 8A 6A 4E 90 00 [00:48:47]wFMCommunicate OK [00:48:47]SAM_PROTO_SignData done [00:48:47]FM_MakeSignedData done [00:48:47]CreateOFDProtocolMessage [00:48:47]wFMCommunicate request_size=4 [00:48:47]MH_SAM_APDU [00:48:47]CAPDU: 80 11 00 00 [00:48:47]Write to MH i2c: E2 08 00 65 37 80 11 00 00 00 00 00 00 16 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:47]Read from MH i2c: E2 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 17 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: E2 17 00 65 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 76 [00:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:48:47]wFMCommunicate OK [00:48:47]CreateOFDProtocolMessage done [00:48:47]OFDSenderStorePacket 162699 [00:48:47]StoreOFDPacket docnum=162699 [00:48:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1E 3A 07 01 33 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 70 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7B 02 00 35 04 06 00 78 4C ED CA 8A 62 AA B6 F5 21 DD 8A 6A 4E [00:48:47]CheckFolder [00:48:47]dirname=/storage/ofd_packets [00:48:47]CheckFolder done [00:48:47]ProducePacketName [00:48:47]name=ofd_packets/00162699 [00:48:47]NVStorageSaveData ofd_packets/00162699 [00:48:47]File name is /storage/ofd_packets/00162699 [00:48:47]Write 301 bytes [00:48:47]NVStorageSaveData done [00:48:47]OFDSenderStorePacket done [00:48:47]KKMCreateOFDPacket done [00:48:47]NVStorageSaveData kkm_last_timestamp [00:48:47]File name is /storage/kkm_last_timestamp [00:48:47]Write 4 bytes [00:48:47]NVStorageSaveData done [00:48:47]ExternCall_PrintAddStr [00:48:47]wPrintStart [00:48:47]Write to MH i2c: 01 00 00 66 37 9D [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 07 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 07 00 66 37 00 00 00 00 00 FF 0F B2 [00:48:47]RasterBufferAndPrint [00:48:47]line Счет N : (1)1319277 [00:48:47]line ИНН: 02508201610067 [00:48:47]line Контрольно-Кассовый Чек [00:48:47]line ПРОДАЖА [00:48:47]line ТРК (МРК, ГНК) : 33 [00:48:47]line Товар: 2710124130 [00:48:47]line Аи-92-К-5 [00:48:47]line 7.550 * 66.30 [00:48:47]line = 500.57 [00:48:47]line НДС 12% НСП 1% [00:48:47]line > о реализуемом товаре [00:48:47]line ОКРУГЛЕНИЕ: -0.57 [00:48:47]line ИТОГО: 500.00 [00:48:47]line Внесено: 500.00 [00:48:47]line СДАЧА: 0.00 [00:48:47]line НСП 1% : 4.43 [00:48:47]line НДС 12% : 53.16 [00:48:47]line Наличными: 500.00 [00:48:47]line Безнал.: 0.00 [00:48:47]line Место: АЗС № 140 "Партнер Нефть" [00:48:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:48:47]line СНО: Общий режим [00:48:47]line Чек 11 14.07.2024 00:48 [00:48:47]line Смена: 463 ФФД: 1.0 [00:48:47]line ЗНМ: 0300000129 [00:48:47]line РНМ: 0000000000090858 [00:48:47]line Версия ККМ: 001 [00:48:47]line ФМ: 0000000000874899 [00:48:47]line ФД: 162699 [00:48:47]line ФПД: 132271802321506 [00:48:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T004848&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162699&fm=132271802321506&tin=02508201610067®Number=0000000000090858&sum=50000 [00:48:47]OFD Sender: Processing packet 162699 [packets to send 106, broken 105] [00:48:47]ProducePacketName [00:48:47]name=ofd_packets/00162699 [00:48:47]OFD Sender: To server: pG, [00:48:47]CommunicateWithHost lk.salyk.kg:30040 [00:48:47]ConnectInit lk.salyk.kg [00:48:47]written 0, free lines is 4095 [00:48:47]Connected sock=10 [00:48:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 1E 3A 07 01 33 BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 70 20 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7B 02 00 35 04 06 00 78 4C ED CA 8A 62 AA B6 F5 21 DD 8A 6A 4E [00:48:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 69 E4 47 00 73 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8B 7B 02 00 F4 03 04 00 7D CC 92 66 B6 04 01 00 00 9F DD C5 6B 30 EE 9B BB [00:48:47]CommunicateWithHost err = 0 [00:48:47]CheckOFDResponse [00:48:47]1017 (14) - 77093643461234 [00:48:47]1041 (16) - 0000000000874899 [00:48:47]1040 (4) - 162699 [00:48:47]1012 (4) - 13.07.2024 18:50 [00:48:47]1206 (1) - 0 [00:48:47]OFD Sender: Remove packet 162699 [00:48:47]ProducePacketName [00:48:47]name=ofd_packets/00162699 [00:48:47]NVStorageDeleteData [00:48:47]Write to MH i2c: 01 00 00 91 37 C8 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 07 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: 01 07 00 91 37 00 00 00 00 00 E3 0C BE [00:48:47]RasterBufferAndPrint [00:48:47]line [00:48:47]line [00:48:47]line [00:48:47]line [00:48:47]line [00:48:47]written 0, free lines is 3308 [00:48:47]MH_Cut [00:48:47]Write to MH i2c: D1 01 00 98 37 01 A1 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: D1 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: D1 01 00 [00:48:47]MH_I2C_Read... [00:48:47]Read from MH i2c: D1 01 00 98 37 00 A0 [00:48:47]Write to MH i2c: 01 00 00 99 37 D0 [00:48:47]Write i2c OK [00:48:47]MH_I2C_Read... [00:48:48]OFD Sender: No OFD packet to send [00:48:48]*** Cut start [00:48:48]*** Purtial cut [00:48:48]*** Stage 1: CUTSNS_PIN = 1 [00:48:48]Read from MH i2c: 01 [00:48:48]MH_I2C_Read... [00:48:48]*** Stop cut motor [00:48:48]*** Cut end [00:48:48]Read from MH i2c: 01 07 00 [00:48:48]MH_I2C_Read... [00:48:48]Read from MH i2c: 01 07 00 99 37 00 00 00 00 00 FF 0F E5 [00:48:48]process_action close_receipt done [00:48:48]requested_data is exist [00:48:48]produce_requested_data [00:48:48]requested_item fm.sn is exist - process it [00:48:48]wFMCommunicate request_size=4 [00:48:48]MH_SAM_APDU [00:48:48]CAPDU: 80 11 00 00 [00:48:48]Write to MH i2c: E2 08 00 9A 37 80 11 00 00 00 00 00 00 4B [00:48:48]Write i2c OK [00:48:48]MH_I2C_Read... [00:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:48]Read from MH i2c: E2 [00:48:48]MH_I2C_Read... [00:48:48]Read from MH i2c: E2 17 00 [00:48:48]MH_I2C_Read... [00:48:48]Read from MH i2c: E2 17 00 9A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 AB [00:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [00:48:48]wFMCommunicate OK [00:48:48]requested_item fd.num is exist - process it [00:48:48]SAM_PROTO_GetFieldsCounters [00:48:48]wFMCommunicate request_size=4 [00:48:48]MH_SAM_APDU [00:48:48]CAPDU: 80 13 00 00 [00:48:48]Write to MH i2c: E2 08 00 9B 37 80 13 00 00 00 00 00 00 4E [00:48:48]Write i2c OK [00:48:48]MH_I2C_Read... [00:48:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:48]Read from MH i2c: E2 [00:48:48]MH_I2C_Read... [00:48:48]Read from MH i2c: E2 62 00 [00:48:48]MH_I2C_Read... [00:48:48]Read from MH i2c: E2 62 00 9B 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8B 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [00:48:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8B 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:48]wFMCommunicate OK [00:48:48]SAM_PROTO_GetFieldsCounters done [00:48:48]requested_item shift.num is exist - process it [00:48:48]requested_item shift.opened is exist - process it [00:48:48]req_shift_opened [00:48:48]FM_GetShiftState [00:48:48]SAM_PROTO_GetShiftState [00:48:48]wFMCommunicate request_size=4 [00:48:48]MH_SAM_APDU [00:48:48]CAPDU: 80 13 01 00 [00:48:48]Write to MH i2c: E2 08 00 9C 37 80 13 01 00 00 00 00 00 50 [00:48:48]Write i2c OK [00:48:48]MH_I2C_Read... [00:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:49]Read from MH i2c: E2 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 0E 00 [00:48:49]MH_I2C_Read... [00:48:49]Read from MH i2c: E2 0E 00 9C 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 86 [00:48:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [00:48:49]wFMCommunicate OK [00:48:49]SAM_PROTO_GetShiftState done [00:48:49]FM_GetShiftState done [00:48:49]req_shift_opened done [00:48:49]requested_item shift.open_date is exist - process it [00:48:49]req_shift_open_date [00:48:49]req_shift_open_date done [00:48:49]produce_requested_data done [00:48:49]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162699,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [00:48:49]process_action_free close_receipt [00:48:49]json_value_free [00:48:49]json_value_free done [00:48:49]process_json_proto returns [00:48:49]Send response to host [00:48:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162699,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [00:48:49]free response buf [00:48:49]execute_script done [00:48:49]execute_script returns [00:48:49]free content buf [00:48:49]Sock 9.Close socket [00:48:49]Sock 9.Thread stoped [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:08]OFD Sender: No OFD packet to send [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:48]OFD Sender: No OFD packet to send [00:56:53]OFD Sender: No OFD packet to send [00:56:58]OFD Sender: No OFD packet to send [00:57:03]OFD Sender: No OFD packet to send [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:28]OFD Sender: No OFD packet to send [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:53]OFD Sender: No OFD packet to send [00:59:58]OFD Sender: No OFD packet to send [01:00:03]OFD Sender: No OFD packet to send [01:00:08]OFD Sender: No OFD packet to send [01:00:13]OFD Sender: No OFD packet to send [01:00:18]OFD Sender: No OFD packet to send [01:00:23]OFD Sender: No OFD packet to send [01:00:28]OFD Sender: No OFD packet to send [01:00:33]OFD Sender: No OFD packet to send [01:00:38]OFD Sender: No OFD packet to send [01:00:43]OFD Sender: No OFD packet to send [01:00:48]OFD Sender: No OFD packet to send [01:00:53]OFD Sender: No OFD packet to send [01:00:58]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:49]accept exits with 7 [01:05:49]New connection [01:05:49]New thread 3067366756 created [01:05:49]Thread 3067510116 joined [01:05:49]Waiting for new connection... [01:05:49] Sock 7.Parse request [01:05:49]Sock 7.Check first char [01:05:49]Sock 7.First char is OK [01:05:49]request: POST /json_proto HTTP/1.0 [01:05:49]Method: POST [01:05:49]URL: /json_proto [01:05:49]Method is POST - this is cgi request [01:05:49]url: /json_proto [01:05:49]query_string will be loaded in cgi processing [01:05:49]execute_cgi json_proto POST (null) [01:05:49]execute_cgi path=json_proto method=POST [01:05:49]POST find Content-Length [01:05:49]Host: 172.17.39.67:8080 [01:05:49]Content-Length: 683 [01:05:49]Content-Type: application/json [01:05:49] [01:05:49]POST finish read [01:05:49]Found Content-Length = 683 [01:05:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [01:05:49]execute_script... [01:05: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)1319278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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" ] } } [01:05:49]POST & json_proto [01:05:49]process_json_proto [01:05:49]json parsed OK: [01:05:49]protocol is kg_v1.0 [01:05:49]action value=close_receipt [01:05:49]process_action close_receipt [01:05:49]cmd_close_receipt [01:05:49]MH_GetDate [01:05:49]Write to MH i2c: F0 00 00 9D 37 C3 [01:05:49]Write i2c OK [01:05:49]MH_I2C_Read... [01:05:49]Read from MH i2c: F0 [01:05:49]MH_I2C_Read... [01:05:49]Read from MH i2c: F0 09 00 [01:05:49]MH_I2C_Read... [01:05:49]Read from MH i2c: F0 09 00 9D 37 00 70 24 93 66 86 7C 92 66 53 [01:05:49]GetLastDocTimeStamp 1720918128 [01:05:49]current date 1720919152 [01:05:49]FM_GetShiftState [01:05:49]SAM_PROTO_GetShiftState [01:05:49]wFMCommunicate request_size=4 [01:05:49]MH_SAM_APDU [01:05:49]CAPDU: 80 13 01 00 [01:05:49]Write to MH i2c: E2 08 00 9E 37 80 13 01 00 00 00 00 00 52 [01:05:49]Write i2c OK [01:05:49]MH_I2C_Read... [01:05:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:49]Read from MH i2c: E2 [01:05:49]MH_I2C_Read... [01:05:49]Read from MH i2c: E2 0E 00 [01:05:49]MH_I2C_Read... [01:05:49]Read from MH i2c: E2 0E 00 9E 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 88 [01:05:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:05:49]wFMCommunicate OK [01:05:49]SAM_PROTO_GetShiftState done [01:05:49]FM_GetShiftState done [01:05:49]opened in 1720915483 [01:05:49]opened+sec_in_day 1721001883 [01:05:49]quantity*price = 50021 [01:05:49]sum+1 = 50022 [01:05:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 12 14.07.2024 01:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162700 ФПД: 90355519121750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T010552&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162700&fm=90355519121750&tin=02508201610067®Number=0000000000090858&sum=50000 [01:05:50]StoreToDocumentArchive [01:05:50]shift 463 fd 162700 [01:05:50]save to /storage/0463/doc_00162700 [01:05:50]save last doc name /storage/0463/doc_00162700 to /storage/kkm_last_doc_name [01:05:50]save OK [01:05:50]Clear old archive folders... [01:05:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:05:50]tlvbuf is B6F307C0 [01:05:50]SAM_PROTO_ClearQueue [01:05:50]wFMCommunicate request_size=4 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 09 00 00 [01:05:50]Write to MH i2c: E2 08 00 AB 37 80 09 00 00 00 00 00 00 54 [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 AB 37 00 90 00 56 [01:05:50]RAPDU: 90 00 [01:05:50]wFMCommunicate OK [01:05:50]SAM_PROTO_ClearQueue done [01:05:50]KKMCreateOFDPacket [01:05:50]OFDProtocolAddRootSTLVToBuf [01:05:50]FM_MakeSignedData [01:05:50]FM_MakeSignedData [01:05:50]SAM_PROTO_SignData [01:05:50]wFMCommunicate request_size=4 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 0D 01 02 [01:05:50]Write to MH i2c: E2 08 00 AC 37 80 0D 01 02 00 00 00 00 5C [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 AC 37 00 90 00 57 [01:05:50]RAPDU: 90 00 [01:05:50]wFMCommunicate OK [01:05:50]wFMCommunicate request_size=255 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0C 00 00 00 F4 03 04 00 70 24 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7B 02 00 35 04 06 00 [01:05:50]Write to MH i2c: E2 02 01 AD 37 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0C 00 00 00 F4 03 04 00 70 24 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7B 02 00 35 04 06 00 00 00 7F [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:50]Read from MH i2c: E2 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 [01:05:50]MH_I2C_Read... [01:05:50]Read from MH i2c: E2 03 00 AD 37 00 90 00 58 [01:05:50]RAPDU: 90 00 [01:05:50]wFMCommunicate OK [01:05:50]wFMCommunicate request_size=11 [01:05:50]MH_SAM_APDU [01:05:50]CAPDU: 80 0D 02 02 06 52 2D 88 9E E9 56 [01:05:50]Write to MH i2c: E2 0E 00 AE 37 80 0D 02 02 06 00 52 2D 88 9E E9 56 00 00 4F [01:05:50]Write i2c OK [01:05:50]MH_I2C_Read... [01:05:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:05:51]Read from MH i2c: E2 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: E2 03 00 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: E2 03 00 AE 37 00 90 00 59 [01:05:51]RAPDU: 90 00 [01:05:51]wFMCommunicate OK [01:05:51]wFMCommunicate request_size=4 [01:05:51]MH_SAM_APDU [01:05:51]CAPDU: 80 0D 03 02 [01:05:51]Write to MH i2c: E2 08 00 AF 37 80 0D 03 02 00 00 00 00 61 [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:05:51]Read from MH i2c: E2 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: E2 0B 00 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: E2 0B 00 AF 37 00 7F 1B DA F3 E4 41 67 76 90 00 CB [01:05:51]RAPDU: 7F 1B DA F3 E4 41 67 76 90 00 [01:05:51]wFMCommunicate OK [01:05:51]SAM_PROTO_SignData done [01:05:51]FM_MakeSignedData done [01:05:51]CreateOFDProtocolMessage [01:05:51]wFMCommunicate request_size=4 [01:05:51]MH_SAM_APDU [01:05:51]CAPDU: 80 11 00 00 [01:05:51]Write to MH i2c: E2 08 00 B0 37 80 11 00 00 00 00 00 00 61 [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:51]Read from MH i2c: E2 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: E2 17 00 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: E2 17 00 B0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 C1 [01:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:05:51]wFMCommunicate OK [01:05:51]CreateOFDProtocolMessage done [01:05:51]OFDSenderStorePacket 162700 [01:05:51]StoreOFDPacket docnum=162700 [01:05:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 39 07 08 01 69 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0C 00 00 00 F4 03 04 00 70 24 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7B 02 00 35 04 06 00 52 2D 88 9E E9 56 7F 1B DA F3 E4 41 67 76 [01:05:51]CheckFolder [01:05:51]dirname=/storage/ofd_packets [01:05:51]CheckFolder done [01:05:51]ProducePacketName [01:05:51]name=ofd_packets/00162700 [01:05:51]NVStorageSaveData ofd_packets/00162700 [01:05:51]File name is /storage/ofd_packets/00162700 [01:05:51]Write 302 bytes [01:05:51]NVStorageSaveData done [01:05:51]OFDSenderStorePacket done [01:05:51]KKMCreateOFDPacket done [01:05:51]NVStorageSaveData kkm_last_timestamp [01:05:51]File name is /storage/kkm_last_timestamp [01:05:51]Write 4 bytes [01:05:51]NVStorageSaveData done [01:05:51]ExternCall_PrintAddStr [01:05:51]wPrintStart [01:05:51]Write to MH i2c: 01 00 00 B1 37 E8 [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 07 00 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 07 00 B1 37 00 00 00 00 00 FF 0F FD [01:05:51]RasterBufferAndPrint [01:05:51]line Счет N : (1)1319278 [01:05:51]line ИНН: 02508201610067 [01:05:51]line Контрольно-Кассовый Чек [01:05:51]line ПРОДАЖА [01:05:51]line ТРК (МРК, ГНК) : 41 [01:05:51]line Товар: 2710194210 [01:05:51]line ДТ(л)-К-5 [01:05:51]line 6.890 * 72.60 [01:05:51]line = 500.21 [01:05:51]line НДС 12% НСП 1% [01:05:51]line > о реализуемом товаре [01:05:51]line ОКРУГЛЕНИЕ: -0.21 [01:05:51]line ИТОГО: 500.00 [01:05:51]line Внесено: 500.00 [01:05:51]line СДАЧА: 0.00 [01:05:51]line НСП 1% : 4.43 [01:05:51]line НДС 12% : 53.12 [01:05:51]line Наличными: 500.00 [01:05:51]line Безнал.: 0.00 [01:05:51]line Место: АЗС № 140 "Партнер Нефть" [01:05:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:05:51]line СНО: Общий режим [01:05:51]line Чек 12 14.07.2024 01:05 [01:05:51]line Смена: 463 ФФД: 1.0 [01:05:51]line ЗНМ: 0300000129 [01:05:51]line РНМ: 0000000000090858 [01:05:51]line Версия ККМ: 001 [01:05:51]line ФМ: 0000000000874899 [01:05:51]line ФД: 162700 [01:05:51]line ФПД: 90355519121750 [01:05:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T010552&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162700&fm=90355519121750&tin=02508201610067®Number=0000000000090858&sum=50000 [01:05:51]OFD Sender: Processing packet 162700 [packets to send 106, broken 105] [01:05:51]ProducePacketName [01:05:51]name=ofd_packets/00162700 [01:05:51]OFD Sender: To server: pG, [01:05:51]CommunicateWithHost lk.salyk.kg:30040 [01:05:51]ConnectInit lk.salyk.kg [01:05:51]written 0, free lines is 4095 [01:05:51]Connected sock=10 [01:05:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 39 07 08 01 69 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 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 0C 00 00 00 F4 03 04 00 70 24 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7B 02 00 35 04 06 00 52 2D 88 9E E9 56 7F 1B DA F3 E4 41 67 76 [01:05:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 93 0C 47 00 23 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8C 7B 02 00 F4 03 04 00 7D D0 92 66 B6 04 01 00 00 76 1D 68 D2 7D 55 55 B8 [01:05:51]CommunicateWithHost err = 0 [01:05:51]CheckOFDResponse [01:05:51]1017 (14) - 77093643461234 [01:05:51]1041 (16) - 0000000000874899 [01:05:51]1040 (4) - 162700 [01:05:51]1012 (4) - 13.07.2024 19:07 [01:05:51]1206 (1) - 0 [01:05:51]OFD Sender: Remove packet 162700 [01:05:51]ProducePacketName [01:05:51]name=ofd_packets/00162700 [01:05:51]NVStorageDeleteData [01:05:51]Write to MH i2c: 01 00 00 DC 37 13 [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 07 00 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: 01 07 00 DC 37 00 00 00 00 00 C7 0C ED [01:05:51]RasterBufferAndPrint [01:05:51]line [01:05:51]line [01:05:51]line [01:05:51]line [01:05:51]line [01:05:51]written 0, free lines is 3277 [01:05:51]MH_Cut [01:05:51]Write to MH i2c: D1 01 00 E3 37 01 EC [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: D1 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: D1 01 00 [01:05:51]MH_I2C_Read... [01:05:51]Read from MH i2c: D1 01 00 E3 37 00 EB [01:05:51]Write to MH i2c: 01 00 00 E4 37 1B [01:05:51]Write i2c OK [01:05:51]MH_I2C_Read... [01:05:52]OFD Sender: No OFD packet to send [01:05:52]*** Cut start [01:05:52]*** Purtial cut [01:05:52]*** CUTSNS_PIN = 0 [01:05:52]*** Stage 1: CUTSNS_PIN = 1 [01:05:54]Read from MH i2c: 01 [01:05:54]MH_I2C_Read... [01:05:54]*** Stop cut motor [01:05:54]*** Cut end [01:05:54]Read from MH i2c: 01 07 00 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: 01 07 00 E4 37 00 00 00 00 00 FF 0F 30 [01:05:54]process_action close_receipt done [01:05:54]requested_data is exist [01:05:54]produce_requested_data [01:05:54]requested_item fm.sn is exist - process it [01:05:54]wFMCommunicate request_size=4 [01:05:54]MH_SAM_APDU [01:05:54]CAPDU: 80 11 00 00 [01:05:54]Write to MH i2c: E2 08 00 E5 37 80 11 00 00 00 00 00 00 96 [01:05:54]Write i2c OK [01:05:54]MH_I2C_Read... [01:05:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:54]Read from MH i2c: E2 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 17 00 [01:05:54]MH_I2C_Read... [01:05:54]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 34 38 39 39 90 00 F6 [01:05:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:05:54]wFMCommunicate OK [01:05:54]requested_item fd.num is exist - process it [01:05:54]SAM_PROTO_GetFieldsCounters [01:05:54]wFMCommunicate request_size=4 [01:05:54]MH_SAM_APDU [01:05:54]CAPDU: 80 13 00 00 [01:05:54]Write to MH i2c: E2 08 00 E6 37 80 13 00 00 00 00 00 00 99 [01:05:54]Write i2c OK [01:05:54]MH_I2C_Read... [01:05:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:54]Read from MH i2c: E2 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 62 00 [01:05:54]MH_I2C_Read... [01:05:54]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8C 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [01:05:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8C 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:05:54]wFMCommunicate OK [01:05:54]SAM_PROTO_GetFieldsCounters done [01:05:54]requested_item shift.num is exist - process it [01:05:54]requested_item shift.opened is exist - process it [01:05:54]req_shift_opened [01:05:54]FM_GetShiftState [01:05:54]SAM_PROTO_GetShiftState [01:05:54]wFMCommunicate request_size=4 [01:05:54]MH_SAM_APDU [01:05:54]CAPDU: 80 13 01 00 [01:05:54]Write to MH i2c: E2 08 00 E7 37 80 13 01 00 00 00 00 00 9B [01:05:54]Write i2c OK [01:05:54]MH_I2C_Read... [01:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:54]Read from MH i2c: E2 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 0E 00 [01:05:54]MH_I2C_Read... [01:05:54]Read from MH i2c: E2 0E 00 E7 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D1 [01:05:54]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:05:54]wFMCommunicate OK [01:05:54]SAM_PROTO_GetShiftState done [01:05:54]FM_GetShiftState done [01:05:54]req_shift_opened done [01:05:54]requested_item shift.open_date is exist - process it [01:05:54]req_shift_open_date [01:05:54]req_shift_open_date done [01:05:54]produce_requested_data done [01:05:54]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162700,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [01:05:54]process_action_free close_receipt [01:05:54]json_value_free [01:05:54]json_value_free done [01:05:54]process_json_proto returns [01:05:54]Send response to host [01:05:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162700,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [01:05:54]free response buf [01:05:54]execute_script done [01:05:54]execute_script returns [01:05:54]free content buf [01:05:54]Sock 7.Close socket [01:05:54]Sock 7.Thread stoped [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:21]accept exits with 9 [01:25:21]New connection [01:25:21]New thread 3067510116 created [01:25:21]Thread 3067366756 joined [01:25:21]Waiting for new connection... [01:25:21] Sock 9.Parse request [01:25:21]Sock 9.Check first char [01:25:21]Sock 9.First char is OK [01:25:21]request: POST /json_proto HTTP/1.0 [01:25:21]Method: POST [01:25:21]URL: /json_proto [01:25:21]Method is POST - this is cgi request [01:25:21]url: /json_proto [01:25:21]query_string will be loaded in cgi processing [01:25:21]execute_cgi json_proto POST (null) [01:25:21]execute_cgi path=json_proto method=POST [01:25:21]POST find Content-Length [01:25:21]Host: 172.17.39.67:8080 [01:25:21]Content-Length: 820 [01:25:21]Content-Type: application/json [01:25:21] [01:25:21]POST finish read [01:25:21]Found Content-Length = 820 [01:25:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:21]execute_script... [01:25: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)1319279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.090, "sum" : 1000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:21]POST & json_proto [01:25:21]process_json_proto [01:25:21]json parsed OK: [01:25:21]protocol is kg_v1.0 [01:25:21]action value=close_receipt [01:25:21]process_action close_receipt [01:25:21]cmd_close_receipt [01:25:21]MH_GetDate [01:25:21]Write to MH i2c: F0 00 00 E8 37 0E [01:25:21]Write i2c OK [01:25:21]MH_I2C_Read... [01:25:21]Read from MH i2c: F0 [01:25:21]MH_I2C_Read... [01:25:21]Read from MH i2c: F0 09 00 [01:25:21]MH_I2C_Read... [01:25:21]Read from MH i2c: F0 09 00 E8 37 00 03 29 93 66 86 7C 92 66 36 [01:25:21]GetLastDocTimeStamp 1720919152 [01:25:21]current date 1720920323 [01:25:21]FM_GetShiftState [01:25:21]SAM_PROTO_GetShiftState [01:25:21]wFMCommunicate request_size=4 [01:25:21]MH_SAM_APDU [01:25:21]CAPDU: 80 13 01 00 [01:25:21]Write to MH i2c: E2 08 00 E9 37 80 13 01 00 00 00 00 00 9D [01:25:21]Write i2c OK [01:25:21]MH_I2C_Read... [01:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:21]Read from MH i2c: E2 [01:25:21]MH_I2C_Read... [01:25:21]Read from MH i2c: E2 0E 00 [01:25:21]MH_I2C_Read... [01:25:21]Read from MH i2c: E2 0E 00 E9 37 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 D3 [01:25:21]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:25:21]wFMCommunicate OK [01:25:21]SAM_PROTO_GetShiftState done [01:25:21]FM_GetShiftState done [01:25:21]opened in 1720915483 [01:25:21]opened+sec_in_day 1721001883 [01:25:21]quantity*price = 100046 [01:25:21]sum+1 = 100048 [01:25:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.47 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.47 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 13 14.07.2024 01:25 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162701 ФПД: 55366415273713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T012523&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162701&fm=55366415273713&tin=02508201610067®Number=0000000000090858&sum=100047 [01:25:22]StoreToDocumentArchive [01:25:22]shift 463 fd 162701 [01:25:22]save to /storage/0463/doc_00162701 [01:25:22]save last doc name /storage/0463/doc_00162701 to /storage/kkm_last_doc_name [01:25:22]save OK [01:25:22]Clear old archive folders... [01:25:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:25:22]tlvbuf is 006E34E0 [01:25:22]SAM_PROTO_ClearQueue [01:25:22]wFMCommunicate request_size=4 [01:25:22]MH_SAM_APDU [01:25:22]CAPDU: 80 09 00 00 [01:25:22]Write to MH i2c: E2 08 00 F6 37 80 09 00 00 00 00 00 00 9F [01:25:22]Write i2c OK [01:25:22]MH_I2C_Read... [01:25:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:22]Read from MH i2c: E2 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 03 00 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 03 00 F6 37 00 90 00 A1 [01:25:22]RAPDU: 90 00 [01:25:22]wFMCommunicate OK [01:25:22]SAM_PROTO_ClearQueue done [01:25:22]KKMCreateOFDPacket [01:25:22]OFDProtocolAddRootSTLVToBuf [01:25:22]FM_MakeSignedData [01:25:22]FM_MakeSignedData [01:25:22]SAM_PROTO_SignData [01:25:22]wFMCommunicate request_size=4 [01:25:22]MH_SAM_APDU [01:25:22]CAPDU: 80 0D 01 02 [01:25:22]Write to MH i2c: E2 08 00 F7 37 80 0D 01 02 00 00 00 00 A7 [01:25:22]Write i2c OK [01:25:22]MH_I2C_Read... [01:25:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:22]Read from MH i2c: E2 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 03 00 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 03 00 F7 37 00 90 00 A2 [01:25:22]RAPDU: 90 00 [01:25:22]wFMCommunicate OK [01:25:22]wFMCommunicate request_size=255 [01:25:22]MH_SAM_APDU [01:25:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 03 29 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7B 02 00 35 04 06 00 32 [01:25:22]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 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 03 29 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7B 02 00 35 04 06 00 32 00 00 4F [01:25:22]Write i2c OK [01:25:22]MH_I2C_Read... [01:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:22]Read from MH i2c: E2 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 03 00 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 03 00 F8 37 00 90 00 A3 [01:25:22]RAPDU: 90 00 [01:25:22]wFMCommunicate OK [01:25:22]wFMCommunicate request_size=10 [01:25:22]MH_SAM_APDU [01:25:22]CAPDU: 80 0D 02 02 05 5A FF 83 CE F1 [01:25:22]Write to MH i2c: E2 0D 00 F9 37 80 0D 02 02 05 00 5A FF 83 CE F1 00 00 4F [01:25:22]Write i2c OK [01:25:22]MH_I2C_Read... [01:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:22]Read from MH i2c: E2 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 03 00 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 03 00 F9 37 00 90 00 A4 [01:25:22]RAPDU: 90 00 [01:25:22]wFMCommunicate OK [01:25:22]wFMCommunicate request_size=4 [01:25:22]MH_SAM_APDU [01:25:22]CAPDU: 80 0D 03 02 [01:25:22]Write to MH i2c: E2 08 00 FA 37 80 0D 03 02 00 00 00 00 AC [01:25:22]Write i2c OK [01:25:22]MH_I2C_Read... [01:25:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:22]Read from MH i2c: E2 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 0B 00 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 0B 00 FA 37 00 C9 58 20 00 D7 09 E7 AD 90 00 62 [01:25:22]RAPDU: C9 58 20 00 D7 09 E7 AD 90 00 [01:25:22]wFMCommunicate OK [01:25:22]SAM_PROTO_SignData done [01:25:22]FM_MakeSignedData done [01:25:22]CreateOFDProtocolMessage [01:25:22]wFMCommunicate request_size=4 [01:25:22]MH_SAM_APDU [01:25:22]CAPDU: 80 11 00 00 [01:25:22]Write to MH i2c: E2 08 00 FB 37 80 11 00 00 00 00 00 00 AC [01:25:22]Write i2c OK [01:25:22]MH_I2C_Read... [01:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:22]Read from MH i2c: E2 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: E2 17 00 [01:25:22]MH_I2C_Read... [01:25:22]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 34 38 39 39 90 00 0C [01:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:25:22]wFMCommunicate OK [01:25:22]CreateOFDProtocolMessage done [01:25:22]OFDSenderStorePacket 162701 [01:25:22]StoreOFDPacket docnum=162701 [01:25:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 20 92 07 01 C6 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 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 03 29 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7B 02 00 35 04 06 00 32 5A FF 83 CE F1 C9 58 20 00 D7 09 E7 AD [01:25:22]CheckFolder [01:25:22]dirname=/storage/ofd_packets [01:25:22]CheckFolder done [01:25:22]ProducePacketName [01:25:22]name=ofd_packets/00162701 [01:25:22]NVStorageSaveData ofd_packets/00162701 [01:25:22]File name is /storage/ofd_packets/00162701 [01:25:22]Write 301 bytes [01:25:22]NVStorageSaveData done [01:25:22]OFDSenderStorePacket done [01:25:22]KKMCreateOFDPacket done [01:25:22]NVStorageSaveData kkm_last_timestamp [01:25:22]File name is /storage/kkm_last_timestamp [01:25:22]Write 4 bytes [01:25:22]NVStorageSaveData done [01:25:22]ExternCall_PrintAddStr [01:25:22]wPrintStart [01:25:22]Write to MH i2c: 01 00 00 FC 37 33 [01:25:22]Write i2c OK [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: 01 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: 01 07 00 [01:25:22]MH_I2C_Read... [01:25:22]Read from MH i2c: 01 07 00 FC 37 00 00 00 00 00 FF 0F 48 [01:25:22]RasterBufferAndPrint [01:25:22]line Счет N : (1)1319279 [01:25:22]line ИНН: 02508201610067 [01:25:22]line Контрольно-Кассовый Чек [01:25:22]line ПРОДАЖА [01:25:22]line ТРК (МРК, ГНК) : 43 [01:25:22]line Товар: 2710124130 [01:25:22]line Аи-92-К-5 [01:25:22]line 15.090 * 66.30 [01:25:22]line = 1000.47 [01:25:22]line НДС 12% НСП 1% [01:25:22]line > о реализуемом товаре [01:25:22]line ИТОГО: 1000.47 [01:25:22]line НСП 1% : 8.85 [01:25:22]line НДС 12% : 106.24 [01:25:22]line Наличными: 0.00 [01:25:22]line Безнал.: 1000.47 [01:25:22]line Место: АЗС № 140 "Партнер Нефть" [01:25:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:25:22]line СНО: Общий режим [01:25:22]line Чек 13 14.07.2024 01:25 [01:25:22]line Смена: 463 ФФД: 1.0 [01:25:22]line ЗНМ: 0300000129 [01:25:22]line РНМ: 0000000000090858 [01:25:22]line Версия ККМ: 001 [01:25:22]line Платежная система: Бакай Банк [01:25:22]line ФМ: 0000000000874899 [01:25:22]line ФД: 162701 [01:25:22]line ФПД: 55366415273713 [01:25:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T012523&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162701&fm=55366415273713&tin=02508201610067®Number=0000000000090858&sum=100047 [01:25:23]written 0, free lines is 4095 [01:25:23]OFD Sender: Processing packet 162701 [packets to send 106, broken 105] [01:25:23]ProducePacketName [01:25:23]name=ofd_packets/00162701 [01:25:23]OFD Sender: To server: pG, [01:25:23]CommunicateWithHost lk.salyk.kg:30040 [01:25:23]ConnectInit lk.salyk.kg [01:25:23]Connected sock=10 [01:25:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 20 92 07 01 C6 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 35 FF 03 08 00 03 F2 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 CF 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 03 29 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8D 7B 02 00 35 04 06 00 32 5A FF 83 CE F1 C9 58 20 00 D7 09 E7 AD [01:25:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 0C 1E 47 00 2E 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 34 38 39 39 10 04 04 00 8D 7B 02 00 F4 03 04 00 11 D5 92 66 B6 04 01 00 00 B0 F2 73 D4 F6 22 52 3A [01:25:23]CommunicateWithHost err = 0 [01:25:23]CheckOFDResponse [01:25:23]1017 (14) - 77093643461234 [01:25:23]1041 (16) - 0000000000874899 [01:25:23]1040 (4) - 162701 [01:25:23]1012 (4) - 13.07.2024 19:27 [01:25:23]1206 (1) - 0 [01:25:23]OFD Sender: Remove packet 162701 [01:25:23]ProducePacketName [01:25:23]name=ofd_packets/00162701 [01:25:23]NVStorageDeleteData [01:25:23]Write to MH i2c: 01 00 00 26 38 5E [01:25:23]Write i2c OK [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: 01 [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: 01 07 00 [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: 01 07 00 26 38 00 00 00 00 00 DD 0C 4E [01:25:23]RasterBufferAndPrint [01:25:23]line [01:25:23]line [01:25:23]line [01:25:23]line [01:25:23]line [01:25:23]written 0, free lines is 3299 [01:25:23]MH_Cut [01:25:23]Write to MH i2c: D1 01 00 2D 38 01 37 [01:25:23]Write i2c OK [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: D1 [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: D1 01 00 [01:25:23]MH_I2C_Read... [01:25:23]Read from MH i2c: D1 01 00 2D 38 00 36 [01:25:23]Write to MH i2c: 01 00 00 2E 38 66 [01:25:23]Write i2c OK [01:25:23]MH_I2C_Read... [01:25:24]OFD Sender: No OFD packet to send [01:25:24]*** Cut start [01:25:24]*** Purtial cut [01:25:24]*** Stage 1: CUTSNS_PIN = 1 [01:25:24]Read from MH i2c: 01 [01:25:24]MH_I2C_Read... [01:25:24]*** Stop cut motor [01:25:24]*** Cut end [01:25:24]Read from MH i2c: 01 07 00 [01:25:24]MH_I2C_Read... [01:25:24]Read from MH i2c: 01 07 00 2E 38 00 00 00 00 00 FF 0F 7B [01:25:24]process_action close_receipt done [01:25:24]requested_data is exist [01:25:24]produce_requested_data [01:25:24]requested_item fm.sn is exist - process it [01:25:24]wFMCommunicate request_size=4 [01:25:24]MH_SAM_APDU [01:25:24]CAPDU: 80 11 00 00 [01:25:24]Write to MH i2c: E2 08 00 2F 38 80 11 00 00 00 00 00 00 E1 [01:25:24]Write i2c OK [01:25:24]MH_I2C_Read... [01:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:24]Read from MH i2c: E2 [01:25:24]MH_I2C_Read... [01:25:24]Read from MH i2c: E2 17 00 [01:25:24]MH_I2C_Read... [01:25:24]Read from MH i2c: E2 17 00 2F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 41 [01:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:25:24]wFMCommunicate OK [01:25:24]requested_item fd.num is exist - process it [01:25:24]SAM_PROTO_GetFieldsCounters [01:25:24]wFMCommunicate request_size=4 [01:25:24]MH_SAM_APDU [01:25:24]CAPDU: 80 13 00 00 [01:25:24]Write to MH i2c: E2 08 00 30 38 80 13 00 00 00 00 00 00 E4 [01:25:24]Write i2c OK [01:25:24]MH_I2C_Read... [01:25:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:24]Read from MH i2c: E2 [01:25:24]MH_I2C_Read... [01:25:24]Read from MH i2c: E2 62 00 [01:25:24]MH_I2C_Read... [01:25:24]Read from MH i2c: E2 62 00 30 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8D 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [01:25:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8D 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:25:24]wFMCommunicate OK [01:25:24]SAM_PROTO_GetFieldsCounters done [01:25:24]requested_item shift.num is exist - process it [01:25:24]requested_item shift.opened is exist - process it [01:25:24]req_shift_opened [01:25:24]FM_GetShiftState [01:25:24]SAM_PROTO_GetShiftState [01:25:24]wFMCommunicate request_size=4 [01:25:24]MH_SAM_APDU [01:25:24]CAPDU: 80 13 01 00 [01:25:24]Write to MH i2c: E2 08 00 31 38 80 13 01 00 00 00 00 00 E6 [01:25:24]Write i2c OK [01:25:24]MH_I2C_Read... [01:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:24]Read from MH i2c: E2 [01:25:24]MH_I2C_Read... [01:25:24]Read from MH i2c: E2 0E 00 [01:25:24]MH_I2C_Read... [01:25:24]Read from MH i2c: E2 0E 00 31 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1C [01:25:24]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:25:24]wFMCommunicate OK [01:25:24]SAM_PROTO_GetShiftState done [01:25:24]FM_GetShiftState done [01:25:24]req_shift_opened done [01:25:24]requested_item shift.open_date is exist - process it [01:25:24]req_shift_open_date [01:25:24]req_shift_open_date done [01:25:24]produce_requested_data done [01:25:24]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162701,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [01:25:24]process_action_free close_receipt [01:25:24]json_value_free [01:25:24]json_value_free done [01:25:24]process_json_proto returns [01:25:24]Send response to host [01:25:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162701,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [01:25:24]free response buf [01:25:24]execute_script done [01:25:24]execute_script returns [01:25:24]free content buf [01:25:24]Sock 9.Close socket [01:25:24]Sock 9.Thread stoped [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:40]accept exits with 7 [01:28:40]New connection [01:28:40]New thread 3067366756 created [01:28:40]Thread 3067510116 joined [01:28:40]Waiting for new connection... [01:28:40] Sock 7.Parse request [01:28:40]Sock 7.Check first char [01:28:40]Sock 7.First char is OK [01:28:40]request: POST /json_proto HTTP/1.0 [01:28:40]Method: POST [01:28:40]URL: /json_proto [01:28:40]Method is POST - this is cgi request [01:28:40]url: /json_proto [01:28:40]query_string will be loaded in cgi processing [01:28:40]execute_cgi json_proto POST (null) [01:28:40]execute_cgi path=json_proto method=POST [01:28:40]POST find Content-Length [01:28:40]Host: 172.17.39.67:8080 [01:28:40]Content-Length: 678 [01:28:40]Content-Type: application/json [01:28:40] [01:28:40]POST finish read [01:28:40]Found Content-Length = 678 [01:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:40]execute_script... [01:28: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)1319281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:28:40]POST & json_proto [01:28:40]process_json_proto [01:28:40]json parsed OK: [01:28:40]protocol is kg_v1.0 [01:28:40]action value=close_receipt [01:28:40]process_action close_receipt [01:28:40]cmd_close_receipt [01:28:40]MH_GetDate [01:28:40]Write to MH i2c: F0 00 00 32 38 59 [01:28:40]Write i2c OK [01:28:40]MH_I2C_Read... [01:28:40]Read from MH i2c: F0 [01:28:40]MH_I2C_Read... [01:28:40]Read from MH i2c: F0 09 00 [01:28:40]MH_I2C_Read... [01:28:40]Read from MH i2c: F0 09 00 32 38 00 CB 29 93 66 86 7C 92 66 49 [01:28:40]GetLastDocTimeStamp 1720920323 [01:28:40]current date 1720920523 [01:28:40]FM_GetShiftState [01:28:40]SAM_PROTO_GetShiftState [01:28:40]wFMCommunicate request_size=4 [01:28:40]MH_SAM_APDU [01:28:40]CAPDU: 80 13 01 00 [01:28:40]Write to MH i2c: E2 08 00 33 38 80 13 01 00 00 00 00 00 E8 [01:28:40]Write i2c OK [01:28:40]MH_I2C_Read... [01:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:40]Read from MH i2c: E2 [01:28:40]MH_I2C_Read... [01:28:40]Read from MH i2c: E2 0E 00 [01:28:40]MH_I2C_Read... [01:28:40]Read from MH i2c: E2 0E 00 33 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 1E [01:28:40]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:28:40]wFMCommunicate OK [01:28:40]SAM_PROTO_GetShiftState done [01:28:40]FM_GetShiftState done [01:28:40]opened in 1720915483 [01:28:40]opened+sec_in_day 1721001883 [01:28:40]quantity*price = 50056 [01:28:40]sum+1 = 50058 [01:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 14 14.07.2024 01:28 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162702 ФПД: 98867387180484 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T012843&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162702&fm=98867387180484&tin=02508201610067®Number=0000000000090858&sum=50000 [01:28:41]StoreToDocumentArchive [01:28:41]shift 463 fd 162702 [01:28:41]save to /storage/0463/doc_00162702 [01:28:41]save last doc name /storage/0463/doc_00162702 to /storage/kkm_last_doc_name [01:28:41]save OK [01:28:41]Clear old archive folders... [01:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:28:41]tlvbuf is 006F5F20 [01:28:41]SAM_PROTO_ClearQueue [01:28:41]wFMCommunicate request_size=4 [01:28:41]MH_SAM_APDU [01:28:41]CAPDU: 80 09 00 00 [01:28:41]Write to MH i2c: E2 08 00 40 38 80 09 00 00 00 00 00 00 EA [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:28:41]Read from MH i2c: E2 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 03 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 03 00 40 38 00 90 00 EC [01:28:41]RAPDU: 90 00 [01:28:41]wFMCommunicate OK [01:28:41]SAM_PROTO_ClearQueue done [01:28:41]KKMCreateOFDPacket [01:28:41]OFDProtocolAddRootSTLVToBuf [01:28:41]FM_MakeSignedData [01:28:41]FM_MakeSignedData [01:28:41]SAM_PROTO_SignData [01:28:41]wFMCommunicate request_size=4 [01:28:41]MH_SAM_APDU [01:28:41]CAPDU: 80 0D 01 02 [01:28:41]Write to MH i2c: E2 08 00 41 38 80 0D 01 02 00 00 00 00 F2 [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:28:41]Read from MH i2c: E2 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 03 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 03 00 41 38 00 90 00 ED [01:28:41]RAPDU: 90 00 [01:28:41]wFMCommunicate OK [01:28:41]wFMCommunicate request_size=255 [01:28:41]MH_SAM_APDU [01:28:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 CB 29 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7B 02 00 35 04 06 00 59 [01:28:41]Write to MH i2c: E2 02 01 42 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 CB 29 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7B 02 00 35 04 06 00 59 00 00 DD [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:41]Read from MH i2c: E2 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 03 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 03 00 42 38 00 90 00 EE [01:28:41]RAPDU: 90 00 [01:28:41]wFMCommunicate OK [01:28:41]wFMCommunicate request_size=10 [01:28:41]MH_SAM_APDU [01:28:41]CAPDU: 80 0D 02 02 05 EB 5B 7E 25 C4 [01:28:41]Write to MH i2c: E2 0D 00 43 38 80 0D 02 02 05 00 EB 5B 7E 25 C4 00 00 AC [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:28:41]Read from MH i2c: E2 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 03 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 03 00 43 38 00 90 00 EF [01:28:41]RAPDU: 90 00 [01:28:41]wFMCommunicate OK [01:28:41]wFMCommunicate request_size=4 [01:28:41]MH_SAM_APDU [01:28:41]CAPDU: 80 0D 03 02 [01:28:41]Write to MH i2c: E2 08 00 44 38 80 0D 03 02 00 00 00 00 F7 [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:28:41]Read from MH i2c: E2 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 0B 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 0B 00 44 38 00 7E 0F F8 54 2C 1A 5A 59 90 00 CA [01:28:41]RAPDU: 7E 0F F8 54 2C 1A 5A 59 90 00 [01:28:41]wFMCommunicate OK [01:28:41]SAM_PROTO_SignData done [01:28:41]FM_MakeSignedData done [01:28:41]CreateOFDProtocolMessage [01:28:41]wFMCommunicate request_size=4 [01:28:41]MH_SAM_APDU [01:28:41]CAPDU: 80 11 00 00 [01:28:41]Write to MH i2c: E2 08 00 45 38 80 11 00 00 00 00 00 00 F7 [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:41]Read from MH i2c: E2 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 17 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: E2 17 00 45 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 57 [01:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:28:41]wFMCommunicate OK [01:28:41]CreateOFDProtocolMessage done [01:28:41]OFDSenderStorePacket 162702 [01:28:41]StoreOFDPacket docnum=162702 [01:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 07 98 07 01 18 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 CB 29 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7B 02 00 35 04 06 00 59 EB 5B 7E 25 C4 7E 0F F8 54 2C 1A 5A 59 [01:28:41]CheckFolder [01:28:41]dirname=/storage/ofd_packets [01:28:41]CheckFolder done [01:28:41]ProducePacketName [01:28:41]name=ofd_packets/00162702 [01:28:41]NVStorageSaveData ofd_packets/00162702 [01:28:41]File name is /storage/ofd_packets/00162702 [01:28:41]Write 301 bytes [01:28:41]NVStorageSaveData done [01:28:41]OFDSenderStorePacket done [01:28:41]KKMCreateOFDPacket done [01:28:41]NVStorageSaveData kkm_last_timestamp [01:28:41]File name is /storage/kkm_last_timestamp [01:28:41]Write 4 bytes [01:28:41]NVStorageSaveData done [01:28:41]ExternCall_PrintAddStr [01:28:41]wPrintStart [01:28:41]Write to MH i2c: 01 00 00 46 38 7E [01:28:41]Write i2c OK [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: 01 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: 01 07 00 [01:28:41]MH_I2C_Read... [01:28:41]Read from MH i2c: 01 07 00 46 38 00 00 00 00 00 FF 0F 93 [01:28:41]RasterBufferAndPrint [01:28:41]line Счет N : (1)1319281 [01:28:41]line ИНН: 02508201610067 [01:28:41]line Контрольно-Кассовый Чек [01:28:41]line ПРОДАЖА [01:28:41]line ТРК (МРК, ГНК) : 63 [01:28:41]line Товар: 2710124130 [01:28:41]line Аи-92-К-5 [01:28:41]line 7.550 * 66.30 [01:28:41]line = 500.57 [01:28:41]line НДС 12% НСП 1% [01:28:41]line > о реализуемом товаре [01:28:41]line ОКРУГЛЕНИЕ: -0.57 [01:28:41]line ИТОГО: 500.00 [01:28:41]line Внесено: 500.00 [01:28:41]line СДАЧА: 0.00 [01:28:41]line НСП 1% : 4.43 [01:28:41]line НДС 12% : 53.16 [01:28:41]line Наличными: 500.00 [01:28:41]line Безнал.: 0.00 [01:28:41]line Место: АЗС № 140 "Партнер Нефть" [01:28:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:28:41]line СНО: Общий режим [01:28:41]line Чек 14 14.07.2024 01:28 [01:28:41]line Смена: 463 ФФД: 1.0 [01:28:41]line ЗНМ: 0300000129 [01:28:41]line РНМ: 0000000000090858 [01:28:41]line Версия ККМ: 001 [01:28:41]line ФМ: 0000000000874899 [01:28:41]line ФД: 162702 [01:28:41]line ФПД: 98867387180484 [01:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T012843&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162702&fm=98867387180484&tin=02508201610067®Number=0000000000090858&sum=50000 [01:28:42]OFD Sender: Processing packet 162702 [packets to send 106, broken 105] [01:28:42]ProducePacketName [01:28:42]name=ofd_packets/00162702 [01:28:42]OFD Sender: To server: pG, [01:28:42]CommunicateWithHost lk.salyk.kg:30040 [01:28:42]ConnectInit lk.salyk.kg [01:28:42]written 0, free lines is 4095 [01:28:42]Connected sock=10 [01:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 07 98 07 01 18 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 CB 29 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7B 02 00 35 04 06 00 59 EB 5B 7E 25 C4 7E 0F F8 54 2C 1A 5A 59 [01:28:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 49 25 47 00 7F DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8E 7B 02 00 F4 03 04 00 D8 D5 92 66 B6 04 01 00 00 69 22 1B 1E 4E 38 7F 68 [01:28:42]CommunicateWithHost err = 0 [01:28:42]CheckOFDResponse [01:28:42]1017 (14) - 77093643461234 [01:28:42]1041 (16) - 0000000000874899 [01:28:42]1040 (4) - 162702 [01:28:42]1012 (4) - 13.07.2024 19:30 [01:28:42]1206 (1) - 0 [01:28:42]OFD Sender: Remove packet 162702 [01:28:42]ProducePacketName [01:28:42]name=ofd_packets/00162702 [01:28:42]NVStorageDeleteData [01:28:42]Write to MH i2c: 01 00 00 71 38 A9 [01:28:42]Write i2c OK [01:28:42]MH_I2C_Read... [01:28:42]Read from MH i2c: 01 [01:28:42]MH_I2C_Read... [01:28:42]Read from MH i2c: 01 07 00 [01:28:42]MH_I2C_Read... [01:28:42]Read from MH i2c: 01 07 00 71 38 00 00 00 00 00 CB 0C 87 [01:28:42]RasterBufferAndPrint [01:28:42]line [01:28:42]line [01:28:42]line [01:28:42]line [01:28:42]line [01:28:42]written 0, free lines is 3281 [01:28:42]MH_Cut [01:28:42]Write to MH i2c: D1 01 00 78 38 01 82 [01:28:42]Write i2c OK [01:28:42]MH_I2C_Read... [01:28:42]Read from MH i2c: D1 [01:28:42]MH_I2C_Read... [01:28:42]Read from MH i2c: D1 01 00 [01:28:42]MH_I2C_Read... [01:28:42]Read from MH i2c: D1 01 00 78 38 00 81 [01:28:42]Write to MH i2c: 01 00 00 79 38 B1 [01:28:42]Write i2c OK [01:28:42]MH_I2C_Read... [01:28:43]OFD Sender: No OFD packet to send [01:28:43]*** Cut start [01:28:43]*** Purtial cut [01:28:43]*** CUTSNS_PIN = 0 [01:28:43]*** Stage 1: CUTSNS_PIN = 1 [01:28:45]Read from MH i2c: 01 [01:28:45]MH_I2C_Read... [01:28:45]*** Stop cut motor [01:28:45]*** Cut end [01:28:45]Read from MH i2c: 01 07 00 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: 01 07 00 79 38 00 00 00 00 00 FF 0F C6 [01:28:45]process_action close_receipt done [01:28:45]requested_data is exist [01:28:45]produce_requested_data [01:28:45]requested_item fm.sn is exist - process it [01:28:45]wFMCommunicate request_size=4 [01:28:45]MH_SAM_APDU [01:28:45]CAPDU: 80 11 00 00 [01:28:45]Write to MH i2c: E2 08 00 7A 38 80 11 00 00 00 00 00 00 2C [01:28:45]Write i2c OK [01:28:45]MH_I2C_Read... [01:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:28:45]Read from MH i2c: E2 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: E2 17 00 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: E2 17 00 7A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 8C [01:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:28:45]wFMCommunicate OK [01:28:45]requested_item fd.num is exist - process it [01:28:45]SAM_PROTO_GetFieldsCounters [01:28:45]wFMCommunicate request_size=4 [01:28:45]MH_SAM_APDU [01:28:45]CAPDU: 80 13 00 00 [01:28:45]Write to MH i2c: E2 08 00 7B 38 80 13 00 00 00 00 00 00 2F [01:28:45]Write i2c OK [01:28:45]MH_I2C_Read... [01:28:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:28:45]Read from MH i2c: E2 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: E2 62 00 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: E2 62 00 7B 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8E 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [01:28:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8E 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:28:45]wFMCommunicate OK [01:28:45]SAM_PROTO_GetFieldsCounters done [01:28:45]requested_item shift.num is exist - process it [01:28:45]requested_item shift.opened is exist - process it [01:28:45]req_shift_opened [01:28:45]FM_GetShiftState [01:28:45]SAM_PROTO_GetShiftState [01:28:45]wFMCommunicate request_size=4 [01:28:45]MH_SAM_APDU [01:28:45]CAPDU: 80 13 01 00 [01:28:45]Write to MH i2c: E2 08 00 7C 38 80 13 01 00 00 00 00 00 31 [01:28:45]Write i2c OK [01:28:45]MH_I2C_Read... [01:28:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:28:45]Read from MH i2c: E2 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: E2 0E 00 [01:28:45]MH_I2C_Read... [01:28:45]Read from MH i2c: E2 0E 00 7C 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 67 [01:28:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:28:45]wFMCommunicate OK [01:28:45]SAM_PROTO_GetShiftState done [01:28:45]FM_GetShiftState done [01:28:45]req_shift_opened done [01:28:45]requested_item shift.open_date is exist - process it [01:28:45]req_shift_open_date [01:28:45]req_shift_open_date done [01:28:45]produce_requested_data done [01:28:45]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162702,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [01:28:45]process_action_free close_receipt [01:28:45]json_value_free [01:28:45]json_value_free done [01:28:45]process_json_proto returns [01:28:45]Send response to host [01:28:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162702,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [01:28:45]free response buf [01:28:45]execute_script done [01:28:45]execute_script returns [01:28:45]free content buf [01:28:45]Sock 7.Close socket [01:28:45]Sock 7.Thread stoped [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:31]accept exits with 9 [01:38:31]New connection [01:38:31]New thread 3067510116 created [01:38:31]Thread 3067366756 joined [01:38:31]Waiting for new connection... [01:38:31] Sock 9.Parse request [01:38:31]Sock 9.Check first char [01:38:31]Sock 9.First char is OK [01:38:31]request: POST /json_proto HTTP/1.0 [01:38:31]Method: POST [01:38:31]URL: /json_proto [01:38:31]Method is POST - this is cgi request [01:38:31]url: /json_proto [01:38:31]query_string will be loaded in cgi processing [01:38:31]execute_cgi json_proto POST (null) [01:38:31]execute_cgi path=json_proto method=POST [01:38:31]POST find Content-Length [01:38:31]Host: 172.17.39.67:8080 [01:38:31]Content-Length: 678 [01:38:31]Content-Type: application/json [01:38:31] [01:38:31]POST finish read [01:38:31]Found Content-Length = 678 [01:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.020, "sum" : 200.23, "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" ] } } [01:38:31]execute_script... [01:38:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 3.020, "sum" : 200.23, "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" ] } } [01:38:31]POST & json_proto [01:38:31]process_json_proto [01:38:31]json parsed OK: [01:38:31]protocol is kg_v1.0 [01:38:31]action value=close_receipt [01:38:31]process_action close_receipt [01:38:31]cmd_close_receipt [01:38:31]MH_GetDate [01:38:31]Write to MH i2c: F0 00 00 7D 38 A4 [01:38:31]Write i2c OK [01:38:31]MH_I2C_Read... [01:38:31]Read from MH i2c: F0 [01:38:31]MH_I2C_Read... [01:38:31]Read from MH i2c: F0 09 00 [01:38:31]MH_I2C_Read... [01:38:31]Read from MH i2c: F0 09 00 7D 38 00 1A 2C 93 66 86 7C 92 66 E6 [01:38:31]GetLastDocTimeStamp 1720920523 [01:38:31]current date 1720921114 [01:38:31]FM_GetShiftState [01:38:31]SAM_PROTO_GetShiftState [01:38:31]wFMCommunicate request_size=4 [01:38:31]MH_SAM_APDU [01:38:31]CAPDU: 80 13 01 00 [01:38:31]Write to MH i2c: E2 08 00 7E 38 80 13 01 00 00 00 00 00 33 [01:38:31]Write i2c OK [01:38:31]MH_I2C_Read... [01:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:31]Read from MH i2c: E2 [01:38:31]MH_I2C_Read... [01:38:31]Read from MH i2c: E2 0E 00 [01:38:31]MH_I2C_Read... [01:38:31]Read from MH i2c: E2 0E 00 7E 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 69 [01:38:31]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:38:31]wFMCommunicate OK [01:38:31]SAM_PROTO_GetShiftState done [01:38:31]FM_GetShiftState done [01:38:31]opened in 1720915483 [01:38:31]opened+sec_in_day 1721001883 [01:38:31]quantity*price = 20022 [01:38:31]sum+1 = 20024 [01:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 15 14.07.2024 01:38 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162703 ФПД: 12314885512381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T013834&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162703&fm=12314885512381&tin=02508201610067®Number=0000000000090858&sum=20000 [01:38:32]StoreToDocumentArchive [01:38:32]shift 463 fd 162703 [01:38:32]save to /storage/0463/doc_00162703 [01:38:32]save last doc name /storage/0463/doc_00162703 to /storage/kkm_last_doc_name [01:38:32]save OK [01:38:32]Clear old archive folders... [01:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:38:32]tlvbuf is B6FE0B20 [01:38:32]SAM_PROTO_ClearQueue [01:38:32]wFMCommunicate request_size=4 [01:38:32]MH_SAM_APDU [01:38:32]CAPDU: 80 09 00 00 [01:38:32]Write to MH i2c: E2 08 00 8B 38 80 09 00 00 00 00 00 00 35 [01:38:32]Write i2c OK [01:38:32]MH_I2C_Read... [01:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:38:32]Read from MH i2c: E2 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 03 00 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 03 00 8B 38 00 90 00 37 [01:38:32]RAPDU: 90 00 [01:38:32]wFMCommunicate OK [01:38:32]SAM_PROTO_ClearQueue done [01:38:32]KKMCreateOFDPacket [01:38:32]OFDProtocolAddRootSTLVToBuf [01:38:32]FM_MakeSignedData [01:38:32]FM_MakeSignedData [01:38:32]SAM_PROTO_SignData [01:38:32]wFMCommunicate request_size=4 [01:38:32]MH_SAM_APDU [01:38:32]CAPDU: 80 0D 01 02 [01:38:32]Write to MH i2c: E2 08 00 8C 38 80 0D 01 02 00 00 00 00 3D [01:38:32]Write i2c OK [01:38:32]MH_I2C_Read... [01:38:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:38:32]Read from MH i2c: E2 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 03 00 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 03 00 8C 38 00 90 00 38 [01:38:32]RAPDU: 90 00 [01:38:32]wFMCommunicate OK [01:38:32]wFMCommunicate request_size=255 [01:38:32]MH_SAM_APDU [01:38:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4E 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 0F 00 00 00 F4 03 04 00 1A 2C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7B 02 00 35 04 06 00 0B [01:38:32]Write to MH i2c: E2 02 01 8D 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4E 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 0F 00 00 00 F4 03 04 00 1A 2C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7B 02 00 35 04 06 00 0B 00 00 CC [01:38:32]Write i2c OK [01:38:32]MH_I2C_Read... [01:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:32]Read from MH i2c: E2 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 03 00 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 03 00 8D 38 00 90 00 39 [01:38:32]RAPDU: 90 00 [01:38:32]wFMCommunicate OK [01:38:32]wFMCommunicate request_size=10 [01:38:32]MH_SAM_APDU [01:38:32]CAPDU: 80 0D 02 02 05 33 48 60 5C BD [01:38:32]Write to MH i2c: E2 0D 00 8E 38 80 0D 02 02 05 00 33 48 60 5C BD 00 00 3E [01:38:32]Write i2c OK [01:38:32]MH_I2C_Read... [01:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:38:32]Read from MH i2c: E2 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 03 00 [01:38:32]MH_I2C_Read... [01:38:32]Read from MH i2c: E2 03 00 8E 38 00 90 00 3A [01:38:32]RAPDU: 90 00 [01:38:32]wFMCommunicate OK [01:38:32]wFMCommunicate request_size=4 [01:38:32]MH_SAM_APDU [01:38:32]CAPDU: 80 0D 03 02 [01:38:32]Write to MH i2c: E2 08 00 8F 38 80 0D 03 02 00 00 00 00 42 [01:38:32]Write i2c OK [01:38:32]MH_I2C_Read... [01:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:38:33]Read from MH i2c: E2 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: E2 0B 00 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: E2 0B 00 8F 38 00 72 2A 27 D7 EC 13 CD B2 90 00 5B [01:38:33]RAPDU: 72 2A 27 D7 EC 13 CD B2 90 00 [01:38:33]wFMCommunicate OK [01:38:33]SAM_PROTO_SignData done [01:38:33]FM_MakeSignedData done [01:38:33]CreateOFDProtocolMessage [01:38:33]wFMCommunicate request_size=4 [01:38:33]MH_SAM_APDU [01:38:33]CAPDU: 80 11 00 00 [01:38:33]Write to MH i2c: E2 08 00 90 38 80 11 00 00 00 00 00 00 42 [01:38:33]Write i2c OK [01:38:33]MH_I2C_Read... [01:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:33]Read from MH i2c: E2 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: E2 17 00 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: E2 17 00 90 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 A2 [01:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:38:33]wFMCommunicate OK [01:38:33]CreateOFDProtocolMessage done [01:38:33]OFDSenderStorePacket 162703 [01:38:33]StoreOFDPacket docnum=162703 [01:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 84 DE 07 01 B4 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4E 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 0F 00 00 00 F4 03 04 00 1A 2C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7B 02 00 35 04 06 00 0B 33 48 60 5C BD 72 2A 27 D7 EC 13 CD B2 [01:38:33]CheckFolder [01:38:33]dirname=/storage/ofd_packets [01:38:33]CheckFolder done [01:38:33]ProducePacketName [01:38:33]name=ofd_packets/00162703 [01:38:33]NVStorageSaveData ofd_packets/00162703 [01:38:33]File name is /storage/ofd_packets/00162703 [01:38:33]Write 301 bytes [01:38:33]NVStorageSaveData done [01:38:33]OFDSenderStorePacket done [01:38:33]KKMCreateOFDPacket done [01:38:33]NVStorageSaveData kkm_last_timestamp [01:38:33]File name is /storage/kkm_last_timestamp [01:38:33]Write 4 bytes [01:38:33]NVStorageSaveData done [01:38:33]ExternCall_PrintAddStr [01:38:33]wPrintStart [01:38:33]Write to MH i2c: 01 00 00 91 38 C9 [01:38:33]Write i2c OK [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: 01 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: 01 07 00 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: 01 07 00 91 38 00 00 00 00 00 FF 0F DE [01:38:33]RasterBufferAndPrint [01:38:33]line Счет N : (1)1319282 [01:38:33]line ИНН: 02508201610067 [01:38:33]line Контрольно-Кассовый Чек [01:38:33]line ПРОДАЖА [01:38:33]line ТРК (МРК, ГНК) : 53 [01:38:33]line Товар: 2710124130 [01:38:33]line Аи-92-К-5 [01:38:33]line 3.020 * 66.30 [01:38:33]line = 200.23 [01:38:33]line НДС 12% НСП 1% [01:38:33]line > о реализуемом товаре [01:38:33]line ОКРУГЛЕНИЕ: -0.23 [01:38:33]line ИТОГО: 200.00 [01:38:33]line Внесено: 200.00 [01:38:33]line СДАЧА: 0.00 [01:38:33]line НСП 1% : 1.77 [01:38:33]line НДС 12% : 21.26 [01:38:33]line Наличными: 200.00 [01:38:33]line Безнал.: 0.00 [01:38:33]line Место: АЗС № 140 "Партнер Нефть" [01:38:33]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:38:33]line СНО: Общий режим [01:38:33]line Чек 15 14.07.2024 01:38 [01:38:33]line Смена: 463 ФФД: 1.0 [01:38:33]line ЗНМ: 0300000129 [01:38:33]line РНМ: 0000000000090858 [01:38:33]line Версия ККМ: 001 [01:38:33]line ФМ: 0000000000874899 [01:38:33]line ФД: 162703 [01:38:33]line ФПД: 12314885512381 [01:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T013834&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162703&fm=12314885512381&tin=02508201610067®Number=0000000000090858&sum=20000 [01:38:33]OFD Sender: Processing packet 162703 [packets to send 106, broken 105] [01:38:33]ProducePacketName [01:38:33]name=ofd_packets/00162703 [01:38:33]OFD Sender: To server: pG, [01:38:33]CommunicateWithHost lk.salyk.kg:30040 [01:38:33]ConnectInit lk.salyk.kg [01:38:33]written 0, free lines is 4095 [01:38:33]Connected sock=10 [01:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 84 DE 07 01 B4 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 37 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 4E 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 0F 00 00 00 F4 03 04 00 1A 2C 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7B 02 00 35 04 06 00 0B 33 48 60 5C BD 72 2A 27 D7 EC 13 CD B2 [01:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 FE CB 47 00 02 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 8F 7B 02 00 F4 03 04 00 27 D8 92 66 B6 04 01 00 00 B6 9D 69 2E D7 C2 2C F5 [01:38:33]CommunicateWithHost err = 0 [01:38:33]CheckOFDResponse [01:38:33]1017 (14) - 77093643461234 [01:38:33]1041 (16) - 0000000000874899 [01:38:33]1040 (4) - 162703 [01:38:33]1012 (4) - 13.07.2024 19:40 [01:38:33]1206 (1) - 0 [01:38:33]OFD Sender: Remove packet 162703 [01:38:33]ProducePacketName [01:38:33]name=ofd_packets/00162703 [01:38:33]NVStorageDeleteData [01:38:33]Write to MH i2c: 01 00 00 BC 38 F4 [01:38:33]Write i2c OK [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: 01 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: 01 07 00 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: 01 07 00 BC 38 00 00 00 00 00 D4 0C DB [01:38:33]RasterBufferAndPrint [01:38:33]line [01:38:33]line [01:38:33]line [01:38:33]line [01:38:33]line [01:38:33]written 0, free lines is 3294 [01:38:33]MH_Cut [01:38:33]Write to MH i2c: D1 01 00 C3 38 01 CD [01:38:33]Write i2c OK [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: D1 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: D1 01 00 [01:38:33]MH_I2C_Read... [01:38:33]Read from MH i2c: D1 01 00 C3 38 00 CC [01:38:33]Write to MH i2c: 01 00 00 C4 38 FC [01:38:33]Write i2c OK [01:38:33]MH_I2C_Read... [01:38:34]OFD Sender: No OFD packet to send [01:38:34]*** Cut start [01:38:34]*** Purtial cut [01:38:34]*** Stage 1: CUTSNS_PIN = 1 [01:38:34]Read from MH i2c: 01 [01:38:34]MH_I2C_Read... [01:38:34]Read from MH i2c: 01 07 00 [01:38:34]MH_I2C_Read... [01:38:34]*** Stop cut motor [01:38:34]*** Cut end [01:38:34]Read from MH i2c: 01 07 00 C4 38 00 00 00 00 00 FF 0F 11 [01:38:34]process_action close_receipt done [01:38:34]requested_data is exist [01:38:34]produce_requested_data [01:38:34]requested_item fm.sn is exist - process it [01:38:34]wFMCommunicate request_size=4 [01:38:34]MH_SAM_APDU [01:38:34]CAPDU: 80 11 00 00 [01:38:34]Write to MH i2c: E2 08 00 C5 38 80 11 00 00 00 00 00 00 77 [01:38:34]Write i2c OK [01:38:34]MH_I2C_Read... [01:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:38:34]Read from MH i2c: E2 [01:38:34]MH_I2C_Read... [01:38:34]Read from MH i2c: E2 17 00 [01:38:34]MH_I2C_Read... [01:38:34]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 34 38 39 39 90 00 D7 [01:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:38:34]wFMCommunicate OK [01:38:34]requested_item fd.num is exist - process it [01:38:34]SAM_PROTO_GetFieldsCounters [01:38:34]wFMCommunicate request_size=4 [01:38:34]MH_SAM_APDU [01:38:34]CAPDU: 80 13 00 00 [01:38:34]Write to MH i2c: E2 08 00 C6 38 80 13 00 00 00 00 00 00 7A [01:38:34]Write i2c OK [01:38:34]MH_I2C_Read... [01:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:38:35]Read from MH i2c: E2 [01:38:35]MH_I2C_Read... [01:38:35]Read from MH i2c: E2 62 00 [01:38:35]MH_I2C_Read... [01:38:35]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8F 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [01:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 8F 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:38:35]wFMCommunicate OK [01:38:35]SAM_PROTO_GetFieldsCounters done [01:38:35]requested_item shift.num is exist - process it [01:38:35]requested_item shift.opened is exist - process it [01:38:35]req_shift_opened [01:38:35]FM_GetShiftState [01:38:35]SAM_PROTO_GetShiftState [01:38:35]wFMCommunicate request_size=4 [01:38:35]MH_SAM_APDU [01:38:35]CAPDU: 80 13 01 00 [01:38:35]Write to MH i2c: E2 08 00 C7 38 80 13 01 00 00 00 00 00 7C [01:38:35]Write i2c OK [01:38:35]MH_I2C_Read... [01:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:38:35]Read from MH i2c: E2 [01:38:35]MH_I2C_Read... [01:38:35]Read from MH i2c: E2 0E 00 [01:38:35]MH_I2C_Read... [01:38:35]Read from MH i2c: E2 0E 00 C7 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B2 [01:38:35]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:38:35]wFMCommunicate OK [01:38:35]SAM_PROTO_GetShiftState done [01:38:35]FM_GetShiftState done [01:38:35]req_shift_opened done [01:38:35]requested_item shift.open_date is exist - process it [01:38:35]req_shift_open_date [01:38:35]req_shift_open_date done [01:38:35]produce_requested_data done [01:38:35]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162703,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [01:38:35]process_action_free close_receipt [01:38:35]json_value_free [01:38:35]json_value_free done [01:38:35]process_json_proto returns [01:38:35]Send response to host [01:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162703,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [01:38:35]free response buf [01:38:35]execute_script done [01:38:35]execute_script returns [01:38:35]free content buf [01:38:35]Sock 9.Close socket [01:38:35]Sock 9.Thread stoped [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]accept exits with 7 [01:49:09]New connection [01:49:09]New thread 3067366756 created [01:49:09]Thread 3067510116 joined [01:49:09]Waiting for new connection... [01:49:09] Sock 7.Parse request [01:49:09]Sock 7.Check first char [01:49:09]Sock 7.First char is OK [01:49:09]request: POST /json_proto HTTP/1.0 [01:49:09]Method: POST [01:49:09]URL: /json_proto [01:49:09]Method is POST - this is cgi request [01:49:09]url: /json_proto [01:49:09]query_string will be loaded in cgi processing [01:49:09]execute_cgi json_proto POST (null) [01:49:09]execute_cgi path=json_proto method=POST [01:49:09]POST find Content-Length [01:49:09]Host: 172.17.39.67:8080 [01:49:09]Content-Length: 676 [01:49:09]Content-Type: application/json [01:49:09] [01:49:09]POST finish read [01:49:09]Found Content-Length = 676 [01:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 29.720, "sum" : 2000.16, "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" ] } } [01:49:09]execute_script... [01:49: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)1319283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 29.720, "sum" : 2000.16, "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" ] } } [01:49:09]POST & json_proto [01:49:09]process_json_proto [01:49:09]json parsed OK: [01:49:09]protocol is kg_v1.0 [01:49:09]action value=close_receipt [01:49:09]process_action close_receipt [01:49:09]cmd_close_receipt [01:49:09]MH_GetDate [01:49:09]Write to MH i2c: F0 00 00 C8 38 EF [01:49:09]Write i2c OK [01:49:09]MH_I2C_Read... [01:49:09]Read from MH i2c: F0 [01:49:09]MH_I2C_Read... [01:49:09]Read from MH i2c: F0 09 00 [01:49:09]MH_I2C_Read... [01:49:09]Read from MH i2c: F0 09 00 C8 38 00 98 2E 93 66 86 7C 92 66 B1 [01:49:09]GetLastDocTimeStamp 1720921114 [01:49:09]current date 1720921752 [01:49:09]FM_GetShiftState [01:49:09]SAM_PROTO_GetShiftState [01:49:09]wFMCommunicate request_size=4 [01:49:09]MH_SAM_APDU [01:49:09]CAPDU: 80 13 01 00 [01:49:09]Write to MH i2c: E2 08 00 C9 38 80 13 01 00 00 00 00 00 7E [01:49:09]Write i2c OK [01:49:09]MH_I2C_Read... [01:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:09]Read from MH i2c: E2 [01:49:09]MH_I2C_Read... [01:49:09]Read from MH i2c: E2 0E 00 [01:49:09]MH_I2C_Read... [01:49:09]Read from MH i2c: E2 0E 00 C9 38 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 B4 [01:49:09]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:49:09]wFMCommunicate OK [01:49:09]SAM_PROTO_GetShiftState done [01:49:09]FM_GetShiftState done [01:49:09]opened in 1720915483 [01:49:09]opened+sec_in_day 1721001883 [01:49:09]quantity*price = 200015 [01:49:09]sum+1 = 200017 [01:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 16 14.07.2024 01:49 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162704 ФПД: 122943154495166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T014912&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162704&fm=122943154495166&tin=02508201610067®Number=0000000000090858&sum=200000 [01:49:10]StoreToDocumentArchive [01:49:10]shift 463 fd 162704 [01:49:10]save to /storage/0463/doc_00162704 [01:49:10]save last doc name /storage/0463/doc_00162704 to /storage/kkm_last_doc_name [01:49:10]save OK [01:49:10]Clear old archive folders... [01:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:49:10]tlvbuf is 0063F690 [01:49:10]SAM_PROTO_ClearQueue [01:49:10]wFMCommunicate request_size=4 [01:49:10]MH_SAM_APDU [01:49:10]CAPDU: 80 09 00 00 [01:49:10]Write to MH i2c: E2 08 00 D6 38 80 09 00 00 00 00 00 00 80 [01:49:10]Write i2c OK [01:49:10]MH_I2C_Read... [01:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:49:10]Read from MH i2c: E2 [01:49:10]MH_I2C_Read... [01:49:10]Read from MH i2c: E2 03 00 [01:49:10]MH_I2C_Read... [01:49:10]Read from MH i2c: E2 03 00 D6 38 00 90 00 82 [01:49:10]RAPDU: 90 00 [01:49:10]wFMCommunicate OK [01:49:10]SAM_PROTO_ClearQueue done [01:49:10]KKMCreateOFDPacket [01:49:10]OFDProtocolAddRootSTLVToBuf [01:49:10]FM_MakeSignedData [01:49:10]FM_MakeSignedData [01:49:10]SAM_PROTO_SignData [01:49:10]wFMCommunicate request_size=4 [01:49:10]MH_SAM_APDU [01:49:10]CAPDU: 80 0D 01 02 [01:49:10]Write to MH i2c: E2 08 00 D7 38 80 0D 01 02 00 00 00 00 88 [01:49:10]Write i2c OK [01:49:10]MH_I2C_Read... [01:49:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:49:11]Read from MH i2c: E2 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 03 00 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 03 00 D7 38 00 90 00 83 [01:49:11]RAPDU: 90 00 [01:49:11]wFMCommunicate OK [01:49:11]wFMCommunicate request_size=255 [01:49:11]MH_SAM_APDU [01:49:11]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 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 F9 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 10 00 00 00 F4 03 04 00 98 2E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7B 02 00 35 04 06 00 [01:49:11]Write to MH i2c: E2 02 01 D8 38 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 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 F9 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 10 00 00 00 F4 03 04 00 98 2E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7B 02 00 35 04 06 00 00 00 A5 [01:49:11]Write i2c OK [01:49:11]MH_I2C_Read... [01:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:49:11]Read from MH i2c: E2 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 03 00 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 03 00 D8 38 00 90 00 84 [01:49:11]RAPDU: 90 00 [01:49:11]wFMCommunicate OK [01:49:11]wFMCommunicate request_size=11 [01:49:11]MH_SAM_APDU [01:49:11]CAPDU: 80 0D 02 02 06 6F D0 EF 0D 1E BE [01:49:11]Write to MH i2c: E2 0E 00 D9 38 80 0D 02 02 06 00 6F D0 EF 0D 1E BE 00 00 AE [01:49:11]Write i2c OK [01:49:11]MH_I2C_Read... [01:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:49:11]Read from MH i2c: E2 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 03 00 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 03 00 D9 38 00 90 00 85 [01:49:11]RAPDU: 90 00 [01:49:11]wFMCommunicate OK [01:49:11]wFMCommunicate request_size=4 [01:49:11]MH_SAM_APDU [01:49:11]CAPDU: 80 0D 03 02 [01:49:11]Write to MH i2c: E2 08 00 DA 38 80 0D 03 02 00 00 00 00 8D [01:49:11]Write i2c OK [01:49:11]MH_I2C_Read... [01:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:49:11]Read from MH i2c: E2 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 0B 00 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 0B 00 DA 38 00 54 DC B5 2A 05 ED A4 22 90 00 55 [01:49:11]RAPDU: 54 DC B5 2A 05 ED A4 22 90 00 [01:49:11]wFMCommunicate OK [01:49:11]SAM_PROTO_SignData done [01:49:11]FM_MakeSignedData done [01:49:11]CreateOFDProtocolMessage [01:49:11]wFMCommunicate request_size=4 [01:49:11]MH_SAM_APDU [01:49:11]CAPDU: 80 11 00 00 [01:49:11]Write to MH i2c: E2 08 00 DB 38 80 11 00 00 00 00 00 00 8D [01:49:11]Write i2c OK [01:49:11]MH_I2C_Read... [01:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:49:11]Read from MH i2c: E2 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: E2 17 00 [01:49:11]MH_I2C_Read... [01:49:11]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 34 38 39 39 90 00 ED [01:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:49:11]wFMCommunicate OK [01:49:11]CreateOFDProtocolMessage done [01:49:11]OFDSenderStorePacket 162704 [01:49:11]StoreOFDPacket docnum=162704 [01:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F4 96 08 01 58 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 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 F9 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 10 00 00 00 F4 03 04 00 98 2E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7B 02 00 35 04 06 00 6F D0 EF 0D 1E BE 54 DC B5 2A 05 ED A4 22 [01:49:11]CheckFolder [01:49:11]dirname=/storage/ofd_packets [01:49:11]CheckFolder done [01:49:11]ProducePacketName [01:49:11]name=ofd_packets/00162704 [01:49:11]NVStorageSaveData ofd_packets/00162704 [01:49:11]File name is /storage/ofd_packets/00162704 [01:49:11]Write 302 bytes [01:49:11]NVStorageSaveData done [01:49:11]OFDSenderStorePacket done [01:49:11]KKMCreateOFDPacket done [01:49:11]NVStorageSaveData kkm_last_timestamp [01:49:11]File name is /storage/kkm_last_timestamp [01:49:11]Write 4 bytes [01:49:11]NVStorageSaveData done [01:49:11]ExternCall_PrintAddStr [01:49:11]wPrintStart [01:49:11]Write to MH i2c: 01 00 00 DC 38 14 [01:49:11]Write i2c OK [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: 01 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: 01 07 00 [01:49:11]MH_I2C_Read... [01:49:11]Read from MH i2c: 01 07 00 DC 38 00 00 00 00 00 FF 0F 29 [01:49:11]RasterBufferAndPrint [01:49:11]line Счет N : (1)1319283 [01:49:11]line ИНН: 02508201610067 [01:49:11]line Контрольно-Кассовый Чек [01:49:11]line ПРОДАЖА [01:49:11]line ТРК (МРК, ГНК) : 42 [01:49:11]line Товар: 2710124130 [01:49:11]line Super-92-К-5 [01:49:11]line 29.720 * 67.30 [01:49:11]line = 2000.16 [01:49:11]line НДС 12% НСП 1% [01:49:11]line > о реализуемом товаре [01:49:11]line ОКРУГЛЕНИЕ: -0.16 [01:49:11]line ИТОГО: 2000.00 [01:49:11]line Внесено: 2000.00 [01:49:11]line СДАЧА: 0.00 [01:49:11]line НСП 1% : 17.70 [01:49:11]line НДС 12% : 212.41 [01:49:11]line Наличными: 2000.00 [01:49:11]line Безнал.: 0.00 [01:49:11]line Место: АЗС № 140 "Партнер Нефть" [01:49:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:49:11]line СНО: Общий режим [01:49:11]line Чек 16 14.07.2024 01:49 [01:49:11]line Смена: 463 ФФД: 1.0 [01:49:11]line ЗНМ: 0300000129 [01:49:11]line РНМ: 0000000000090858 [01:49:11]line Версия ККМ: 001 [01:49:11]line ФМ: 0000000000874899 [01:49:11]line ФД: 162704 [01:49:11]line ФПД: 122943154495166 [01:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T014912&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162704&fm=122943154495166&tin=02508201610067®Number=0000000000090858&sum=200000 [01:49:11]OFD Sender: Processing packet 162704 [packets to send 106, broken 105] [01:49:11]ProducePacketName [01:49:11]name=ofd_packets/00162704 [01:49:11]OFD Sender: To server: pG, [01:49:11]CommunicateWithHost lk.salyk.kg:30040 [01:49:11]ConnectInit lk.salyk.kg [01:49:11]written 0, free lines is 4095 [01:49:12]Connected sock=10 [01:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 F4 96 08 01 58 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 18 74 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 50 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 F9 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 10 00 00 00 F4 03 04 00 98 2E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7B 02 00 35 04 06 00 6F D0 EF 0D 1E BE 54 DC B5 2A 05 ED A4 22 [01:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AC A5 47 00 04 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 90 7B 02 00 F4 03 04 00 A6 DA 92 66 B6 04 01 00 00 E1 C8 3B 9F 5C BC 51 E6 [01:49:12]CommunicateWithHost err = 0 [01:49:12]CheckOFDResponse [01:49:12]1017 (14) - 77093643461234 [01:49:12]1041 (16) - 0000000000874899 [01:49:12]1040 (4) - 162704 [01:49:12]1012 (4) - 13.07.2024 19:51 [01:49:12]1206 (1) - 0 [01:49:12]OFD Sender: Remove packet 162704 [01:49:12]ProducePacketName [01:49:12]name=ofd_packets/00162704 [01:49:12]NVStorageDeleteData [01:49:12]Write to MH i2c: 01 00 00 07 39 40 [01:49:12]Write i2c OK [01:49:12]MH_I2C_Read... [01:49:12]Read from MH i2c: 01 [01:49:12]MH_I2C_Read... [01:49:12]Read from MH i2c: 01 07 00 [01:49:12]MH_I2C_Read... [01:49:12]Read from MH i2c: 01 07 00 07 39 00 00 00 00 00 DF 0C 32 [01:49:12]RasterBufferAndPrint [01:49:12]line [01:49:12]line [01:49:12]line [01:49:12]line [01:49:12]line [01:49:12]written 0, free lines is 3301 [01:49:12]MH_Cut [01:49:12]Write to MH i2c: D1 01 00 0E 39 01 19 [01:49:12]Write i2c OK [01:49:12]MH_I2C_Read... [01:49:12]Read from MH i2c: D1 [01:49:12]MH_I2C_Read... [01:49:12]Read from MH i2c: D1 01 00 [01:49:12]MH_I2C_Read... [01:49:12]Read from MH i2c: D1 01 00 0E 39 00 18 [01:49:12]Write to MH i2c: 01 00 00 0F 39 48 [01:49:12]Write i2c OK [01:49:12]MH_I2C_Read... [01:49:12]OFD Sender: No OFD packet to send [01:49:13]*** Cut start [01:49:13]*** Purtial cut [01:49:13]*** CUTSNS_PIN = 0 [01:49:13]*** Stage 1: CUTSNS_PIN = 1 [01:49:15]Read from MH i2c: 01 [01:49:15]MH_I2C_Read... [01:49:15]*** Stop cut motor [01:49:15]*** Cut end [01:49:15]Read from MH i2c: 01 07 00 [01:49:15]MH_I2C_Read... [01:49:15]Read from MH i2c: 01 07 00 0F 39 00 00 00 00 00 FF 0F 5D [01:49:15]process_action close_receipt done [01:49:15]requested_data is exist [01:49:15]produce_requested_data [01:49:15]requested_item fm.sn is exist - process it [01:49:15]wFMCommunicate request_size=4 [01:49:15]MH_SAM_APDU [01:49:15]CAPDU: 80 11 00 00 [01:49:15]Write to MH i2c: E2 08 00 10 39 80 11 00 00 00 00 00 00 C3 [01:49:15]Write i2c OK [01:49:15]MH_I2C_Read... [01:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:49:15]Read from MH i2c: E2 [01:49:15]MH_I2C_Read... [01:49:15]Read from MH i2c: E2 17 00 [01:49:15]MH_I2C_Read... [01:49:15]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 34 38 39 39 90 00 23 [01:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:49:15]wFMCommunicate OK [01:49:15]requested_item fd.num is exist - process it [01:49:15]SAM_PROTO_GetFieldsCounters [01:49:15]wFMCommunicate request_size=4 [01:49:15]MH_SAM_APDU [01:49:15]CAPDU: 80 13 00 00 [01:49:15]Write to MH i2c: E2 08 00 11 39 80 13 00 00 00 00 00 00 C6 [01:49:15]Write i2c OK [01:49:15]MH_I2C_Read... [01:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:49:15]Read from MH i2c: E2 [01:49:15]MH_I2C_Read... [01:49:15]Read from MH i2c: E2 62 00 [01:49:15]MH_I2C_Read... [01:49:15]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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 90 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [01:49:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 90 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:49:15]wFMCommunicate OK [01:49:15]SAM_PROTO_GetFieldsCounters done [01:49:15]requested_item shift.num is exist - process it [01:49:15]requested_item shift.opened is exist - process it [01:49:15]req_shift_opened [01:49:15]FM_GetShiftState [01:49:15]SAM_PROTO_GetShiftState [01:49:15]wFMCommunicate request_size=4 [01:49:15]MH_SAM_APDU [01:49:15]CAPDU: 80 13 01 00 [01:49:15]Write to MH i2c: E2 08 00 12 39 80 13 01 00 00 00 00 00 C8 [01:49:15]Write i2c OK [01:49:15]MH_I2C_Read... [01:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:15]Read from MH i2c: E2 [01:49:15]MH_I2C_Read... [01:49:15]Read from MH i2c: E2 0E 00 [01:49:15]MH_I2C_Read... [01:49:15]Read from MH i2c: E2 0E 00 12 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 FE [01:49:15]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:49:15]wFMCommunicate OK [01:49:15]SAM_PROTO_GetShiftState done [01:49:15]FM_GetShiftState done [01:49:15]req_shift_opened done [01:49:15]requested_item shift.open_date is exist - process it [01:49:15]req_shift_open_date [01:49:15]req_shift_open_date done [01:49:15]produce_requested_data done [01:49:15]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162704,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [01:49:15]process_action_free close_receipt [01:49:15]json_value_free [01:49:15]json_value_free done [01:49:15]process_json_proto returns [01:49:15]Send response to host [01:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162704,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [01:49:15]free response buf [01:49:15]execute_script done [01:49:15]execute_script returns [01:49:15]free content buf [01:49:15]Sock 7.Close socket [01:49:15]Sock 7.Thread stoped [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:49]accept exits with 9 [01:50:49]New connection [01:50:49]New thread 3067510116 created [01:50:49]Thread 3067366756 joined [01:50:49]Waiting for new connection... [01:50:49] Sock 9.Parse request [01:50:49]Sock 9.Check first char [01:50:49]Sock 9.First char is OK [01:50:49]request: POST /json_proto HTTP/1.0 [01:50:49]Method: POST [01:50:49]URL: /json_proto [01:50:49]Method is POST - this is cgi request [01:50:49]url: /json_proto [01:50:49]query_string will be loaded in cgi processing [01:50:49]execute_cgi json_proto POST (null) [01:50:49]execute_cgi path=json_proto method=POST [01:50:49]POST find Content-Length [01:50:49]Host: 172.17.39.67:8080 [01:50:49]Content-Length: 678 [01:50:49]Content-Type: application/json [01:50:49] [01:50:49]POST finish read [01:50:49]Found Content-Length = 678 [01:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 2.950, "sum" : 195.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 195.00, "total" : 195.00, "payments": [ { "type": 0, "sum" : 195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:49]execute_script... [01:50:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 2.950, "sum" : 195.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 195.00, "total" : 195.00, "payments": [ { "type": 0, "sum" : 195.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:50:49]POST & json_proto [01:50:49]process_json_proto [01:50:49]json parsed OK: [01:50:49]protocol is kg_v1.0 [01:50:49]action value=close_receipt [01:50:49]process_action close_receipt [01:50:49]cmd_close_receipt [01:50:49]MH_GetDate [01:50:49]Write to MH i2c: F0 00 00 13 39 3B [01:50:49]Write i2c OK [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: F0 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: F0 09 00 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: F0 09 00 13 39 00 FB 2E 93 66 86 7C 92 66 60 [01:50:49]GetLastDocTimeStamp 1720921752 [01:50:49]current date 1720921851 [01:50:49]FM_GetShiftState [01:50:49]SAM_PROTO_GetShiftState [01:50:49]wFMCommunicate request_size=4 [01:50:49]MH_SAM_APDU [01:50:49]CAPDU: 80 13 01 00 [01:50:49]Write to MH i2c: E2 08 00 14 39 80 13 01 00 00 00 00 00 CA [01:50:49]Write i2c OK [01:50:49]MH_I2C_Read... [01:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:49]Read from MH i2c: E2 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: E2 0E 00 [01:50:49]MH_I2C_Read... [01:50:49]Read from MH i2c: E2 0E 00 14 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 00 [01:50:49]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:50:49]wFMCommunicate OK [01:50:49]SAM_PROTO_GetShiftState done [01:50:49]FM_GetShiftState done [01:50:49]opened in 1720915483 [01:50:49]opened+sec_in_day 1721001883 [01:50:49]quantity*price = 19558 [01:50:49]sum+1 = 19560 [01:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 195.00 Внесено: 195.00 СДАЧА: 0.00 НСП 1% : 1.73 НДС 12% : 20.77 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 17 14.07.2024 01:50 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162705 ФПД: 73893144636555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T015051&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162705&fm=73893144636555&tin=02508201610067®Number=0000000000090858&sum=19500 [01:50:50]StoreToDocumentArchive [01:50:50]shift 463 fd 162705 [01:50:50]save to /storage/0463/doc_00162705 [01:50:50]save last doc name /storage/0463/doc_00162705 to /storage/kkm_last_doc_name [01:50:50]save OK [01:50:50]Clear old archive folders... [01:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:50:50]tlvbuf is 0063F970 [01:50:50]SAM_PROTO_ClearQueue [01:50:50]wFMCommunicate request_size=4 [01:50:50]MH_SAM_APDU [01:50:50]CAPDU: 80 09 00 00 [01:50:50]Write to MH i2c: E2 08 00 21 39 80 09 00 00 00 00 00 00 CC [01:50:50]Write i2c OK [01:50:50]MH_I2C_Read... [01:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:50:50]Read from MH i2c: E2 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 03 00 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 03 00 21 39 00 90 00 CE [01:50:50]RAPDU: 90 00 [01:50:50]wFMCommunicate OK [01:50:50]SAM_PROTO_ClearQueue done [01:50:50]KKMCreateOFDPacket [01:50:50]OFDProtocolAddRootSTLVToBuf [01:50:50]FM_MakeSignedData [01:50:50]FM_MakeSignedData [01:50:50]SAM_PROTO_SignData [01:50:50]wFMCommunicate request_size=4 [01:50:50]MH_SAM_APDU [01:50:50]CAPDU: 80 0D 01 02 [01:50:50]Write to MH i2c: E2 08 00 22 39 80 0D 01 02 00 00 00 00 D4 [01:50:50]Write i2c OK [01:50:50]MH_I2C_Read... [01:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:50:50]Read from MH i2c: E2 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 03 00 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 03 00 22 39 00 90 00 CF [01:50:50]RAPDU: 90 00 [01:50:50]wFMCommunicate OK [01:50:50]wFMCommunicate request_size=255 [01:50:50]MH_SAM_APDU [01:50:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 67 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FB 2E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7B 02 00 35 04 06 00 43 [01:50:50]Write to MH i2c: E2 02 01 23 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 67 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FB 2E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7B 02 00 35 04 06 00 43 00 00 49 [01:50:50]Write i2c OK [01:50:50]MH_I2C_Read... [01:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:50]Read from MH i2c: E2 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 03 00 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 03 00 23 39 00 90 00 D0 [01:50:50]RAPDU: 90 00 [01:50:50]wFMCommunicate OK [01:50:50]wFMCommunicate request_size=10 [01:50:50]MH_SAM_APDU [01:50:50]CAPDU: 80 0D 02 02 05 34 96 A3 2C 8B [01:50:50]Write to MH i2c: E2 0D 00 24 39 80 0D 02 02 05 00 34 96 A3 2C 8B 00 00 05 [01:50:50]Write i2c OK [01:50:50]MH_I2C_Read... [01:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:50:50]Read from MH i2c: E2 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 03 00 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 03 00 24 39 00 90 00 D1 [01:50:50]RAPDU: 90 00 [01:50:50]wFMCommunicate OK [01:50:50]wFMCommunicate request_size=4 [01:50:50]MH_SAM_APDU [01:50:50]CAPDU: 80 0D 03 02 [01:50:50]Write to MH i2c: E2 08 00 25 39 80 0D 03 02 00 00 00 00 D9 [01:50:50]Write i2c OK [01:50:50]MH_I2C_Read... [01:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:50:50]Read from MH i2c: E2 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 0B 00 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 0B 00 25 39 00 A5 7E 25 EF 3B E6 2F D1 90 00 32 [01:50:50]RAPDU: A5 7E 25 EF 3B E6 2F D1 90 00 [01:50:50]wFMCommunicate OK [01:50:50]SAM_PROTO_SignData done [01:50:50]FM_MakeSignedData done [01:50:50]CreateOFDProtocolMessage [01:50:50]wFMCommunicate request_size=4 [01:50:50]MH_SAM_APDU [01:50:50]CAPDU: 80 11 00 00 [01:50:50]Write to MH i2c: E2 08 00 26 39 80 11 00 00 00 00 00 00 D9 [01:50:50]Write i2c OK [01:50:50]MH_I2C_Read... [01:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:50]Read from MH i2c: E2 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: E2 17 00 [01:50:50]MH_I2C_Read... [01:50:50]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 34 38 39 39 90 00 39 [01:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:50:50]wFMCommunicate OK [01:50:50]CreateOFDProtocolMessage done [01:50:50]OFDSenderStorePacket 162705 [01:50:50]StoreOFDPacket docnum=162705 [01:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 40 7A 07 01 00 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 67 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FB 2E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7B 02 00 35 04 06 00 43 34 96 A3 2C 8B A5 7E 25 EF 3B E6 2F D1 [01:50:50]CheckFolder [01:50:50]dirname=/storage/ofd_packets [01:50:50]CheckFolder done [01:50:50]ProducePacketName [01:50:50]name=ofd_packets/00162705 [01:50:50]NVStorageSaveData ofd_packets/00162705 [01:50:50]File name is /storage/ofd_packets/00162705 [01:50:50]Write 301 bytes [01:50:50]NVStorageSaveData done [01:50:50]OFDSenderStorePacket done [01:50:50]KKMCreateOFDPacket done [01:50:50]NVStorageSaveData kkm_last_timestamp [01:50:50]File name is /storage/kkm_last_timestamp [01:50:50]Write 4 bytes [01:50:50]NVStorageSaveData done [01:50:50]ExternCall_PrintAddStr [01:50:50]wPrintStart [01:50:50]Write to MH i2c: 01 00 00 27 39 60 [01:50:50]Write i2c OK [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: 01 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: 01 07 00 [01:50:50]MH_I2C_Read... [01:50:50]Read from MH i2c: 01 07 00 27 39 00 00 00 00 00 FF 0F 75 [01:50:50]RasterBufferAndPrint [01:50:50]line Счет N : (1)1319284 [01:50:50]line ИНН: 02508201610067 [01:50:50]line Контрольно-Кассовый Чек [01:50:50]line ПРОДАЖА [01:50:50]line ТРК (МРК, ГНК) : 33 [01:50:50]line Товар: 2710124130 [01:50:50]line Аи-92-К-5 [01:50:50]line 2.950 * 66.30 [01:50:50]line = 195.59 [01:50:50]line НДС 12% НСП 1% [01:50:50]line > о реализуемом товаре [01:50:50]line ОКРУГЛЕНИЕ: -0.59 [01:50:50]line ИТОГО: 195.00 [01:50:50]line Внесено: 195.00 [01:50:50]line СДАЧА: 0.00 [01:50:50]line НСП 1% : 1.73 [01:50:50]line НДС 12% : 20.77 [01:50:50]line Наличными: 195.00 [01:50:50]line Безнал.: 0.00 [01:50:50]line Место: АЗС № 140 "Партнер Нефть" [01:50:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:50:50]line СНО: Общий режим [01:50:50]line Чек 17 14.07.2024 01:50 [01:50:50]line Смена: 463 ФФД: 1.0 [01:50:50]line ЗНМ: 0300000129 [01:50:50]line РНМ: 0000000000090858 [01:50:50]line Версия ККМ: 001 [01:50:50]line ФМ: 0000000000874899 [01:50:50]line ФД: 162705 [01:50:50]line ФПД: 73893144636555 [01:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T015051&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162705&fm=73893144636555&tin=02508201610067®Number=0000000000090858&sum=19500 [01:50:51]OFD Sender: Processing packet 162705 [packets to send 106, broken 105] [01:50:51]ProducePacketName [01:50:51]name=ofd_packets/00162705 [01:50:51]OFD Sender: To server: pG, [01:50:51]CommunicateWithHost lk.salyk.kg:30040 [01:50:51]ConnectInit lk.salyk.kg [01:50:51]written 0, free lines is 4095 [01:50:51]Connected sock=10 [01:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 40 7A 07 01 00 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 0B 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 67 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 08 00 00 00 00 07 04 06 00 2C 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 FB 2E 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7B 02 00 35 04 06 00 43 34 96 A3 2C 8B A5 7E 25 EF 3B E6 2F D1 [01:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 54 C1 47 00 8B 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 91 7B 02 00 F4 03 04 00 09 DB 92 66 B6 04 01 00 00 EE CB 1D 52 09 3A 17 06 [01:50:51]CommunicateWithHost err = 0 [01:50:51]CheckOFDResponse [01:50:51]1017 (14) - 77093643461234 [01:50:51]1041 (16) - 0000000000874899 [01:50:51]1040 (4) - 162705 [01:50:51]1012 (4) - 13.07.2024 19:52 [01:50:51]1206 (1) - 0 [01:50:51]OFD Sender: Remove packet 162705 [01:50:51]ProducePacketName [01:50:51]name=ofd_packets/00162705 [01:50:51]NVStorageDeleteData [01:50:51]Write to MH i2c: 01 00 00 52 39 8B [01:50:51]Write i2c OK [01:50:51]MH_I2C_Read... [01:50:51]Read from MH i2c: 01 [01:50:51]MH_I2C_Read... [01:50:51]Read from MH i2c: 01 07 00 [01:50:51]MH_I2C_Read... [01:50:51]Read from MH i2c: 01 07 00 52 39 00 00 00 00 00 CE 0C 6C [01:50:51]RasterBufferAndPrint [01:50:51]line [01:50:51]line [01:50:51]line [01:50:51]line [01:50:51]line [01:50:51]written 0, free lines is 3284 [01:50:51]MH_Cut [01:50:51]Write to MH i2c: D1 01 00 59 39 01 64 [01:50:51]Write i2c OK [01:50:51]MH_I2C_Read... [01:50:51]Read from MH i2c: D1 [01:50:51]MH_I2C_Read... [01:50:51]Read from MH i2c: D1 01 00 [01:50:51]MH_I2C_Read... [01:50:51]Read from MH i2c: D1 01 00 59 39 00 63 [01:50:51]Write to MH i2c: 01 00 00 5A 39 93 [01:50:51]Write i2c OK [01:50:51]MH_I2C_Read... [01:50:51]OFD Sender: No OFD packet to send [01:50:52]*** Cut start [01:50:52]*** Purtial cut [01:50:52]*** Stage 1: CUTSNS_PIN = 1 [01:50:52]Read from MH i2c: 01 [01:50:52]MH_I2C_Read... [01:50:52]*** Stop cut motor [01:50:52]*** Cut end [01:50:52]Read from MH i2c: 01 07 00 [01:50:52]MH_I2C_Read... [01:50:52]Read from MH i2c: 01 07 00 5A 39 00 00 00 00 00 FF 0F A8 [01:50:52]process_action close_receipt done [01:50:52]requested_data is exist [01:50:52]produce_requested_data [01:50:52]requested_item fm.sn is exist - process it [01:50:52]wFMCommunicate request_size=4 [01:50:52]MH_SAM_APDU [01:50:52]CAPDU: 80 11 00 00 [01:50:52]Write to MH i2c: E2 08 00 5B 39 80 11 00 00 00 00 00 00 0E [01:50:52]Write i2c OK [01:50:52]MH_I2C_Read... [01:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:50:52]Read from MH i2c: E2 [01:50:52]MH_I2C_Read... [01:50:52]Read from MH i2c: E2 17 00 [01:50:52]MH_I2C_Read... [01:50:52]Read from MH i2c: E2 17 00 5B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 6E [01:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:50:52]wFMCommunicate OK [01:50:52]requested_item fd.num is exist - process it [01:50:52]SAM_PROTO_GetFieldsCounters [01:50:52]wFMCommunicate request_size=4 [01:50:52]MH_SAM_APDU [01:50:52]CAPDU: 80 13 00 00 [01:50:52]Write to MH i2c: E2 08 00 5C 39 80 13 00 00 00 00 00 00 11 [01:50:52]Write i2c OK [01:50:52]MH_I2C_Read... [01:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:50:52]Read from MH i2c: E2 [01:50:52]MH_I2C_Read... [01:50:52]Read from MH i2c: E2 62 00 [01:50:52]MH_I2C_Read... [01:50:52]Read from MH i2c: E2 62 00 5C 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 91 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [01:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 91 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:50:52]wFMCommunicate OK [01:50:52]SAM_PROTO_GetFieldsCounters done [01:50:52]requested_item shift.num is exist - process it [01:50:52]requested_item shift.opened is exist - process it [01:50:52]req_shift_opened [01:50:52]FM_GetShiftState [01:50:52]SAM_PROTO_GetShiftState [01:50:52]wFMCommunicate request_size=4 [01:50:52]MH_SAM_APDU [01:50:52]CAPDU: 80 13 01 00 [01:50:52]Write to MH i2c: E2 08 00 5D 39 80 13 01 00 00 00 00 00 13 [01:50:52]Write i2c OK [01:50:52]MH_I2C_Read... [01:50:52]Read from MH i2c: E2 [01:50:52]MH_I2C_Read... [01:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:50:52]Read from MH i2c: E2 0E 00 [01:50:52]MH_I2C_Read... [01:50:52]Read from MH i2c: E2 0E 00 5D 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 49 [01:50:52]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:50:52]wFMCommunicate OK [01:50:52]SAM_PROTO_GetShiftState done [01:50:52]FM_GetShiftState done [01:50:52]req_shift_opened done [01:50:52]requested_item shift.open_date is exist - process it [01:50:52]req_shift_open_date [01:50:52]req_shift_open_date done [01:50:52]produce_requested_data done [01:50:52]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162705,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [01:50:52]process_action_free close_receipt [01:50:52]json_value_free [01:50:52]json_value_free done [01:50:52]process_json_proto returns [01:50:52]Send response to host [01:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162705,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [01:50:52]free response buf [01:50:52]execute_script done [01:50:52]execute_script returns [01:50:52]free content buf [01:50:52]Sock 9.Close socket [01:50:52]Sock 9.Thread stoped [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]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:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:33]accept exits with 7 [01:59:33]New connection [01:59:33]New thread 3067366756 created [01:59:33]Thread 3067510116 joined [01:59:33]Waiting for new connection... [01:59:33] Sock 7.Parse request [01:59:33]Sock 7.Check first char [01:59:33]Sock 7.First char is OK [01:59:33]request: POST /json_proto HTTP/1.0 [01:59:33]Method: POST [01:59:33]URL: /json_proto [01:59:33]Method is POST - this is cgi request [01:59:33]url: /json_proto [01:59:33]query_string will be loaded in cgi processing [01:59:33]execute_cgi json_proto POST (null) [01:59:33]execute_cgi path=json_proto method=POST [01:59:33]POST find Content-Length [01:59:33]Host: 172.17.39.67:8080 [01:59:33]Content-Length: 678 [01:59:33]Content-Type: application/json [01:59:33] [01:59:33]POST finish read [01:59:33]Found Content-Length = 678 [01:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:33]execute_script... [01:59: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)1319285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 7.550, "sum" : 500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:33]POST & json_proto [01:59:33]process_json_proto [01:59:33]json parsed OK: [01:59:33]protocol is kg_v1.0 [01:59:33]action value=close_receipt [01:59:33]process_action close_receipt [01:59:33]cmd_close_receipt [01:59:33]MH_GetDate [01:59:33]Write to MH i2c: F0 00 00 5E 39 86 [01:59:33]Write i2c OK [01:59:33]MH_I2C_Read... [01:59:33]Read from MH i2c: F0 [01:59:33]MH_I2C_Read... [01:59:33]Read from MH i2c: F0 09 00 [01:59:33]MH_I2C_Read... [01:59:33]Read from MH i2c: F0 09 00 5E 39 00 08 31 93 66 86 7C 92 66 BB [01:59:33]GetLastDocTimeStamp 1720921851 [01:59:33]current date 1720922376 [01:59:33]FM_GetShiftState [01:59:33]SAM_PROTO_GetShiftState [01:59:33]wFMCommunicate request_size=4 [01:59:33]MH_SAM_APDU [01:59:33]CAPDU: 80 13 01 00 [01:59:33]Write to MH i2c: E2 08 00 5F 39 80 13 01 00 00 00 00 00 15 [01:59:33]Write i2c OK [01:59:33]MH_I2C_Read... [01:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:34]Read from MH i2c: E2 [01:59:34]MH_I2C_Read... [01:59:34]Read from MH i2c: E2 0E 00 [01:59:34]MH_I2C_Read... [01:59:34]Read from MH i2c: E2 0E 00 5F 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 4B [01:59:34]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:59:34]wFMCommunicate OK [01:59:34]SAM_PROTO_GetShiftState done [01:59:34]FM_GetShiftState done [01:59:34]opened in 1720915483 [01:59:34]opened+sec_in_day 1721001883 [01:59:34]quantity*price = 50056 [01:59:34]sum+1 = 50058 [01:59:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 18 14.07.2024 01:59 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162706 ФПД: 264892467386351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T015936&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162706&fm=264892467386351&tin=02508201610067®Number=0000000000090858&sum=50000 [01:59:35]StoreToDocumentArchive [01:59:35]shift 463 fd 162706 [01:59:35]save to /storage/0463/doc_00162706 [01:59:35]save last doc name /storage/0463/doc_00162706 to /storage/kkm_last_doc_name [01:59:35]save OK [01:59:35]Clear old archive folders... [01:59:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:59:35]tlvbuf is 006FA450 [01:59:35]SAM_PROTO_ClearQueue [01:59:35]wFMCommunicate request_size=4 [01:59:35]MH_SAM_APDU [01:59:35]CAPDU: 80 09 00 00 [01:59:35]Write to MH i2c: E2 08 00 6C 39 80 09 00 00 00 00 00 00 17 [01:59:35]Write i2c OK [01:59:35]MH_I2C_Read... [01:59:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:35]Read from MH i2c: E2 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 03 00 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 03 00 6C 39 00 90 00 19 [01:59:35]RAPDU: 90 00 [01:59:35]wFMCommunicate OK [01:59:35]SAM_PROTO_ClearQueue done [01:59:35]KKMCreateOFDPacket [01:59:35]OFDProtocolAddRootSTLVToBuf [01:59:35]FM_MakeSignedData [01:59:35]FM_MakeSignedData [01:59:35]SAM_PROTO_SignData [01:59:35]wFMCommunicate request_size=4 [01:59:35]MH_SAM_APDU [01:59:35]CAPDU: 80 0D 01 02 [01:59:35]Write to MH i2c: E2 08 00 6D 39 80 0D 01 02 00 00 00 00 1F [01:59:35]Write i2c OK [01:59:35]MH_I2C_Read... [01:59:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:35]Read from MH i2c: E2 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 03 00 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 03 00 6D 39 00 90 00 1A [01:59:35]RAPDU: 90 00 [01:59:35]wFMCommunicate OK [01:59:35]wFMCommunicate request_size=255 [01:59:35]MH_SAM_APDU [01:59:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 08 31 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7B 02 00 35 04 06 00 F0 [01:59:35]Write to MH i2c: E2 02 01 6E 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 08 31 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7B 02 00 35 04 06 00 F0 00 00 EE [01:59:35]Write i2c OK [01:59:35]MH_I2C_Read... [01:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:35]Read from MH i2c: E2 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 03 00 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 03 00 6E 39 00 90 00 1B [01:59:35]RAPDU: 90 00 [01:59:35]wFMCommunicate OK [01:59:35]wFMCommunicate request_size=10 [01:59:35]MH_SAM_APDU [01:59:35]CAPDU: 80 0D 02 02 05 EB 15 6C 17 EF [01:59:35]Write to MH i2c: E2 0D 00 6F 39 80 0D 02 02 05 00 EB 15 6C 17 EF 00 00 9E [01:59:35]Write i2c OK [01:59:35]MH_I2C_Read... [01:59:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:35]Read from MH i2c: E2 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 03 00 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 03 00 6F 39 00 90 00 1C [01:59:35]RAPDU: 90 00 [01:59:35]wFMCommunicate OK [01:59:35]wFMCommunicate request_size=4 [01:59:35]MH_SAM_APDU [01:59:35]CAPDU: 80 0D 03 02 [01:59:35]Write to MH i2c: E2 08 00 70 39 80 0D 03 02 00 00 00 00 24 [01:59:35]Write i2c OK [01:59:35]MH_I2C_Read... [01:59:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:35]Read from MH i2c: E2 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 0B 00 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 0B 00 70 39 00 39 F1 0C E7 F0 BC B6 FC 90 00 A0 [01:59:35]RAPDU: 39 F1 0C E7 F0 BC B6 FC 90 00 [01:59:35]wFMCommunicate OK [01:59:35]SAM_PROTO_SignData done [01:59:35]FM_MakeSignedData done [01:59:35]CreateOFDProtocolMessage [01:59:35]wFMCommunicate request_size=4 [01:59:35]MH_SAM_APDU [01:59:35]CAPDU: 80 11 00 00 [01:59:35]Write to MH i2c: E2 08 00 71 39 80 11 00 00 00 00 00 00 24 [01:59:35]Write i2c OK [01:59:35]MH_I2C_Read... [01:59:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:35]Read from MH i2c: E2 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 17 00 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: E2 17 00 71 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 84 [01:59:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:59:35]wFMCommunicate OK [01:59:35]CreateOFDProtocolMessage done [01:59:35]OFDSenderStorePacket 162706 [01:59:35]StoreOFDPacket docnum=162706 [01:59:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C9 14 07 01 F7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 08 31 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7B 02 00 35 04 06 00 F0 EB 15 6C 17 EF 39 F1 0C E7 F0 BC B6 FC [01:59:35]CheckFolder [01:59:35]dirname=/storage/ofd_packets [01:59:35]CheckFolder done [01:59:35]ProducePacketName [01:59:35]name=ofd_packets/00162706 [01:59:35]NVStorageSaveData ofd_packets/00162706 [01:59:35]File name is /storage/ofd_packets/00162706 [01:59:35]Write 301 bytes [01:59:35]NVStorageSaveData done [01:59:35]OFDSenderStorePacket done [01:59:35]KKMCreateOFDPacket done [01:59:35]NVStorageSaveData kkm_last_timestamp [01:59:35]File name is /storage/kkm_last_timestamp [01:59:35]Write 4 bytes [01:59:35]NVStorageSaveData done [01:59:35]ExternCall_PrintAddStr [01:59:35]wPrintStart [01:59:35]Write to MH i2c: 01 00 00 72 39 AB [01:59:35]Write i2c OK [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: 01 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: 01 07 00 [01:59:35]MH_I2C_Read... [01:59:35]Read from MH i2c: 01 07 00 72 39 00 00 00 00 00 FF 0F C0 [01:59:35]RasterBufferAndPrint [01:59:35]line Счет N : (1)1319285 [01:59:35]line ИНН: 02508201610067 [01:59:35]line Контрольно-Кассовый Чек [01:59:35]line ПРОДАЖА [01:59:35]line ТРК (МРК, ГНК) : 53 [01:59:35]line Товар: 2710124130 [01:59:35]line Аи-92-К-5 [01:59:35]line 7.550 * 66.30 [01:59:35]line = 500.57 [01:59:35]line НДС 12% НСП 1% [01:59:35]line > о реализуемом товаре [01:59:35]line ОКРУГЛЕНИЕ: -0.57 [01:59:35]line ИТОГО: 500.00 [01:59:35]line Внесено: 500.00 [01:59:35]line СДАЧА: 0.00 [01:59:35]line НСП 1% : 4.43 [01:59:35]line НДС 12% : 53.16 [01:59:35]line Наличными: 500.00 [01:59:35]line Безнал.: 0.00 [01:59:35]line Место: АЗС № 140 "Партнер Нефть" [01:59:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:59:35]line СНО: Общий режим [01:59:35]line Чек 18 14.07.2024 01:59 [01:59:35]line Смена: 463 ФФД: 1.0 [01:59:35]line ЗНМ: 0300000129 [01:59:35]line РНМ: 0000000000090858 [01:59:35]line Версия ККМ: 001 [01:59:35]line ФМ: 0000000000874899 [01:59:35]line ФД: 162706 [01:59:35]line ФПД: 264892467386351 [01:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T015936&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162706&fm=264892467386351&tin=02508201610067®Number=0000000000090858&sum=50000 [01:59:36]OFD Sender: Processing packet 162706 [packets to send 106, broken 105] [01:59:36]ProducePacketName [01:59:36]name=ofd_packets/00162706 [01:59:36]OFD Sender: To server: pG, [01:59:36]CommunicateWithHost lk.salyk.kg:30040 [01:59:36]ConnectInit lk.salyk.kg [01:59:36]written 0, free lines is 4095 [01:59:36]Connected sock=10 [01:59:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 C9 14 07 01 F7 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7E 1D 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 89 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 08 31 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7B 02 00 35 04 06 00 F0 EB 15 6C 17 EF 39 F1 0C E7 F0 BC B6 FC [01:59:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 4A DF 47 00 91 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 92 7B 02 00 F4 03 04 00 16 DD 92 66 B6 04 01 00 00 E6 7F 71 6C BB 3B 2E FA [01:59:36]CommunicateWithHost err = 0 [01:59:36]CheckOFDResponse [01:59:36]1017 (14) - 77093643461234 [01:59:36]1041 (16) - 0000000000874899 [01:59:36]1040 (4) - 162706 [01:59:36]1012 (4) - 13.07.2024 20:01 [01:59:36]1206 (1) - 0 [01:59:36]OFD Sender: Remove packet 162706 [01:59:36]ProducePacketName [01:59:36]name=ofd_packets/00162706 [01:59:36]NVStorageDeleteData [01:59:36]Write to MH i2c: 01 00 00 9D 39 D6 [01:59:36]Write i2c OK [01:59:36]MH_I2C_Read... [01:59:36]Read from MH i2c: 01 [01:59:36]MH_I2C_Read... [01:59:36]Read from MH i2c: 01 07 00 [01:59:36]MH_I2C_Read... [01:59:36]Read from MH i2c: 01 07 00 9D 39 00 00 00 00 00 CD 0C B6 [01:59:36]RasterBufferAndPrint [01:59:36]line [01:59:36]line [01:59:36]line [01:59:36]line [01:59:36]line [01:59:36]written 0, free lines is 3284 [01:59:36]MH_Cut [01:59:36]Write to MH i2c: D1 01 00 A4 39 01 AF [01:59:36]Write i2c OK [01:59:36]MH_I2C_Read... [01:59:36]Read from MH i2c: D1 [01:59:36]MH_I2C_Read... [01:59:36]Read from MH i2c: D1 01 00 [01:59:36]MH_I2C_Read... [01:59:36]Read from MH i2c: D1 01 00 A4 39 00 AE [01:59:36]Write to MH i2c: 01 00 00 A5 39 DE [01:59:36]Write i2c OK [01:59:36]MH_I2C_Read... [01:59:36]OFD Sender: No OFD packet to send [01:59:37]*** Cut start [01:59:37]*** Purtial cut [01:59:37]*** CUTSNS_PIN = 0 [01:59:37]*** Stage 1: CUTSNS_PIN = 1 [01:59:39]Read from MH i2c: 01 [01:59:39]MH_I2C_Read... [01:59:39]*** Stop cut motor [01:59:39]*** Cut end [01:59:39]Read from MH i2c: 01 07 00 [01:59:39]MH_I2C_Read... [01:59:39]Read from MH i2c: 01 07 00 A5 39 00 00 00 00 00 FF 0F F3 [01:59:39]process_action close_receipt done [01:59:39]requested_data is exist [01:59:39]produce_requested_data [01:59:39]requested_item fm.sn is exist - process it [01:59:39]wFMCommunicate request_size=4 [01:59:39]MH_SAM_APDU [01:59:39]CAPDU: 80 11 00 00 [01:59:39]Write to MH i2c: E2 08 00 A6 39 80 11 00 00 00 00 00 00 59 [01:59:39]Write i2c OK [01:59:39]MH_I2C_Read... [01:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:39]Read from MH i2c: E2 [01:59:39]MH_I2C_Read... [01:59:39]Read from MH i2c: E2 17 00 [01:59:39]MH_I2C_Read... [01:59:39]Read from MH i2c: E2 17 00 A6 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 B9 [01:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [01:59:39]wFMCommunicate OK [01:59:39]requested_item fd.num is exist - process it [01:59:39]SAM_PROTO_GetFieldsCounters [01:59:39]wFMCommunicate request_size=4 [01:59:39]MH_SAM_APDU [01:59:39]CAPDU: 80 13 00 00 [01:59:39]Write to MH i2c: E2 08 00 A7 39 80 13 00 00 00 00 00 00 5C [01:59:39]Write i2c OK [01:59:39]MH_I2C_Read... [01:59:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:59:39]Read from MH i2c: E2 [01:59:39]MH_I2C_Read... [01:59:39]Read from MH i2c: E2 62 00 [01:59:39]MH_I2C_Read... [01:59:39]Read from MH i2c: E2 62 00 A7 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 92 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [01:59:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 92 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:59:39]wFMCommunicate OK [01:59:39]SAM_PROTO_GetFieldsCounters done [01:59:39]requested_item shift.num is exist - process it [01:59:39]requested_item shift.opened is exist - process it [01:59:39]req_shift_opened [01:59:39]FM_GetShiftState [01:59:39]SAM_PROTO_GetShiftState [01:59:39]wFMCommunicate request_size=4 [01:59:39]MH_SAM_APDU [01:59:39]CAPDU: 80 13 01 00 [01:59:39]Write to MH i2c: E2 08 00 A8 39 80 13 01 00 00 00 00 00 5E [01:59:39]Write i2c OK [01:59:39]MH_I2C_Read... [01:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:39]Read from MH i2c: E2 [01:59:39]MH_I2C_Read... [01:59:39]Read from MH i2c: E2 0E 00 [01:59:39]MH_I2C_Read... [01:59:39]Read from MH i2c: E2 0E 00 A8 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 94 [01:59:39]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [01:59:39]wFMCommunicate OK [01:59:39]SAM_PROTO_GetShiftState done [01:59:39]FM_GetShiftState done [01:59:39]req_shift_opened done [01:59:39]requested_item shift.open_date is exist - process it [01:59:39]req_shift_open_date [01:59:39]req_shift_open_date done [01:59:39]produce_requested_data done [01:59:39]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162706,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [01:59:39]process_action_free close_receipt [01:59:39]json_value_free [01:59:39]json_value_free done [01:59:39]process_json_proto returns [01:59:39]Send response to host [01:59:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162706,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [01:59:39]free response buf [01:59:39]execute_script done [01:59:39]execute_script returns [01:59:39]free content buf [01:59:39]Sock 7.Close socket [01:59:39]Sock 7.Thread stoped [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:38]accept exits with 9 [02:05:38]New connection [02:05:38]New thread 3067510116 created [02:05:38]Thread 3067366756 joined [02:05:38]Waiting for new connection... [02:05:38] Sock 9.Parse request [02:05:38]Sock 9.Check first char [02:05:38]Sock 9.First char is OK [02:05:38]request: POST /json_proto HTTP/1.0 [02:05:38]Method: POST [02:05:38]URL: /json_proto [02:05:38]Method is POST - this is cgi request [02:05:38]url: /json_proto [02:05:38]query_string will be loaded in cgi processing [02:05:38]execute_cgi json_proto POST (null) [02:05:38]execute_cgi path=json_proto method=POST [02:05:38]POST find Content-Length [02:05:38]Host: 172.17.39.67:8080 [02:05:38]Content-Length: 802 [02:05:38]Content-Type: application/json [02:05:38] [02:05:38]POST finish read [02:05:38]Found Content-Length = 802 [02:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:05:38]execute_script... [02:05:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 15.070, "sum" : 999.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 999.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:05:38]POST & json_proto [02:05:38]process_json_proto [02:05:38]json parsed OK: [02:05:38]protocol is kg_v1.0 [02:05:38]action value=close_receipt [02:05:38]process_action close_receipt [02:05:38]cmd_close_receipt [02:05:38]MH_GetDate [02:05:38]Write to MH i2c: F0 00 00 A9 39 D1 [02:05:38]Write i2c OK [02:05:38]MH_I2C_Read... [02:05:38]Read from MH i2c: F0 [02:05:38]MH_I2C_Read... [02:05:38]Read from MH i2c: F0 09 00 [02:05:38]MH_I2C_Read... [02:05:38]Read from MH i2c: F0 09 00 A9 39 00 75 32 93 66 86 7C 92 66 74 [02:05:38]GetLastDocTimeStamp 1720922376 [02:05:38]current date 1720922741 [02:05:38]FM_GetShiftState [02:05:38]SAM_PROTO_GetShiftState [02:05:38]wFMCommunicate request_size=4 [02:05:38]MH_SAM_APDU [02:05:38]CAPDU: 80 13 01 00 [02:05:38]Write to MH i2c: E2 08 00 AA 39 80 13 01 00 00 00 00 00 60 [02:05:38]Write i2c OK [02:05:38]MH_I2C_Read... [02:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:38]Read from MH i2c: E2 [02:05:38]MH_I2C_Read... [02:05:38]Read from MH i2c: E2 0E 00 [02:05:38]MH_I2C_Read... [02:05:38]Read from MH i2c: E2 0E 00 AA 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 96 [02:05:38]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:05:38]wFMCommunicate OK [02:05:38]SAM_PROTO_GetShiftState done [02:05:38]FM_GetShiftState done [02:05:38]opened in 1720915483 [02:05:38]opened+sec_in_day 1721001883 [02:05:38]quantity*price = 99914 [02:05:38]sum+1 = 99915 [02:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 999.14 НСП 1% : 8.84 НДС 12% : 106.10 Наличными: 0.00 Безнал.: 999.14 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 19 14.07.2024 02:05 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874899 ФД: 162707 ФПД: 107192692297304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T020541&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162707&fm=107192692297304&tin=02508201610067®Number=0000000000090858&sum=99914 [02:05:39]StoreToDocumentArchive [02:05:39]shift 463 fd 162707 [02:05:39]save to /storage/0463/doc_00162707 [02:05:39]save last doc name /storage/0463/doc_00162707 to /storage/kkm_last_doc_name [02:05:39]save OK [02:05:39]Clear old archive folders... [02:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:05:39]tlvbuf is 005F7BF0 [02:05:39]SAM_PROTO_ClearQueue [02:05:39]wFMCommunicate request_size=4 [02:05:39]MH_SAM_APDU [02:05:39]CAPDU: 80 09 00 00 [02:05:39]Write to MH i2c: E2 08 00 B7 39 80 09 00 00 00 00 00 00 62 [02:05:39]Write i2c OK [02:05:39]MH_I2C_Read... [02:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:05:39]Read from MH i2c: E2 [02:05:39]MH_I2C_Read... [02:05:39]Read from MH i2c: E2 03 00 [02:05:39]MH_I2C_Read... [02:05:39]Read from MH i2c: E2 03 00 B7 39 00 90 00 64 [02:05:39]RAPDU: 90 00 [02:05:39]wFMCommunicate OK [02:05:39]SAM_PROTO_ClearQueue done [02:05:39]KKMCreateOFDPacket [02:05:39]OFDProtocolAddRootSTLVToBuf [02:05:39]FM_MakeSignedData [02:05:39]FM_MakeSignedData [02:05:39]SAM_PROTO_SignData [02:05:39]wFMCommunicate request_size=4 [02:05:39]MH_SAM_APDU [02:05:39]CAPDU: 80 0D 01 02 [02:05:39]Write to MH i2c: E2 08 00 B8 39 80 0D 01 02 00 00 00 00 6A [02:05:39]Write i2c OK [02:05:39]MH_I2C_Read... [02:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:05:39]Read from MH i2c: E2 [02:05:39]MH_I2C_Read... [02:05:39]Read from MH i2c: E2 03 00 [02:05:39]MH_I2C_Read... [02:05:39]Read from MH i2c: E2 03 00 B8 39 00 90 00 65 [02:05:39]RAPDU: 90 00 [02:05:39]wFMCommunicate OK [02:05:39]wFMCommunicate request_size=255 [02:05:39]MH_SAM_APDU [02:05:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 75 32 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7B 02 00 35 04 06 00 61 [02:05:39]Write to MH i2c: E2 02 01 B9 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 75 32 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7B 02 00 35 04 06 00 61 00 00 16 [02:05:39]Write i2c OK [02:05:39]MH_I2C_Read... [02:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:40]Read from MH i2c: E2 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: E2 03 00 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: E2 03 00 B9 39 00 90 00 66 [02:05:40]RAPDU: 90 00 [02:05:40]wFMCommunicate OK [02:05:40]wFMCommunicate request_size=10 [02:05:40]MH_SAM_APDU [02:05:40]CAPDU: 80 0D 02 02 05 7D BE 58 CE 58 [02:05:40]Write to MH i2c: E2 0D 00 BA 39 80 0D 02 02 05 00 7D BE 58 CE 58 00 00 30 [02:05:40]Write i2c OK [02:05:40]MH_I2C_Read... [02:05:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:05:40]Read from MH i2c: E2 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: E2 03 00 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: E2 03 00 BA 39 00 90 00 67 [02:05:40]RAPDU: 90 00 [02:05:40]wFMCommunicate OK [02:05:40]wFMCommunicate request_size=4 [02:05:40]MH_SAM_APDU [02:05:40]CAPDU: 80 0D 03 02 [02:05:40]Write to MH i2c: E2 08 00 BB 39 80 0D 03 02 00 00 00 00 6F [02:05:40]Write i2c OK [02:05:40]MH_I2C_Read... [02:05:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:05:40]Read from MH i2c: E2 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: E2 0B 00 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: E2 0B 00 BB 39 00 2A CA 96 9D 13 88 86 93 90 00 4B [02:05:40]RAPDU: 2A CA 96 9D 13 88 86 93 90 00 [02:05:40]wFMCommunicate OK [02:05:40]SAM_PROTO_SignData done [02:05:40]FM_MakeSignedData done [02:05:40]CreateOFDProtocolMessage [02:05:40]wFMCommunicate request_size=4 [02:05:40]MH_SAM_APDU [02:05:40]CAPDU: 80 11 00 00 [02:05:40]Write to MH i2c: E2 08 00 BC 39 80 11 00 00 00 00 00 00 6F [02:05:40]Write i2c OK [02:05:40]MH_I2C_Read... [02:05:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:40]Read from MH i2c: E2 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: E2 17 00 [02:05:40]MH_I2C_Read... [02:05:40]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 34 38 39 39 90 00 CF [02:05:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:05:40]wFMCommunicate OK [02:05:40]CreateOFDProtocolMessage done [02:05:40]OFDSenderStorePacket 162707 [02:05:40]StoreOFDPacket docnum=162707 [02:05:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FD 6E 07 01 F1 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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 75 32 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7B 02 00 35 04 06 00 61 7D BE 58 CE 58 2A CA 96 9D 13 88 86 93 [02:05:40]CheckFolder [02:05:40]dirname=/storage/ofd_packets [02:05:40]CheckFolder done [02:05:40]ProducePacketName [02:05:40]name=ofd_packets/00162707 [02:05:40]NVStorageSaveData ofd_packets/00162707 [02:05:40]File name is /storage/ofd_packets/00162707 [02:05:40]Write 301 bytes [02:05:40]NVStorageSaveData done [02:05:40]OFDSenderStorePacket done [02:05:40]KKMCreateOFDPacket done [02:05:40]NVStorageSaveData kkm_last_timestamp [02:05:40]File name is /storage/kkm_last_timestamp [02:05:40]Write 4 bytes [02:05:40]NVStorageSaveData done [02:05:40]ExternCall_PrintAddStr [02:05:40]wPrintStart [02:05:40]Write to MH i2c: 01 00 00 BD 39 F6 [02:05:40]Write i2c OK [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: 01 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: 01 07 00 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: 01 07 00 BD 39 00 00 00 00 00 FF 0F 0B [02:05:40]RasterBufferAndPrint [02:05:40]line Счет N : (1)1319286 [02:05:40]line ИНН: 02508201610067 [02:05:40]line Контрольно-Кассовый Чек [02:05:40]line ПРОДАЖА [02:05:40]line ТРК (МРК, ГНК) : 33 [02:05:40]line Товар: 2710124130 [02:05:40]line Аи-92-К-5 [02:05:40]line 15.070 * 66.30 [02:05:40]line = 999.14 [02:05:40]line НДС 12% НСП 1% [02:05:40]line > о реализуемом товаре [02:05:40]line ИТОГО: 999.14 [02:05:40]line НСП 1% : 8.84 [02:05:40]line НДС 12% : 106.10 [02:05:40]line Наличными: 0.00 [02:05:40]line Безнал.: 999.14 [02:05:40]line Место: АЗС № 140 "Партнер Нефть" [02:05:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:05:40]line СНО: Общий режим [02:05:40]line Чек 19 14.07.2024 02:05 [02:05:40]line Смена: 463 ФФД: 1.0 [02:05:40]line ЗНМ: 0300000129 [02:05:40]line РНМ: 0000000000090858 [02:05:40]line Версия ККМ: 001 [02:05:40]line Платежная система: O! деньги [02:05:40]line ФМ: 0000000000874899 [02:05:40]line ФД: 162707 [02:05:40]line ФПД: 107192692297304 [02:05:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T020541&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162707&fm=107192692297304&tin=02508201610067®Number=0000000000090858&sum=99914 [02:05:40]OFD Sender: Processing packet 162707 [packets to send 106, broken 105] [02:05:40]ProducePacketName [02:05:40]name=ofd_packets/00162707 [02:05:40]OFD Sender: To server: pG, [02:05:40]CommunicateWithHost lk.salyk.kg:30040 [02:05:40]ConnectInit lk.salyk.kg [02:05:40]written 0, free lines is 4095 [02:05:40]Connected sock=10 [02:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 FD 6E 07 01 F1 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 35 FF 03 08 00 03 DE 3A 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 4A 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4A 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4A 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 75 32 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 93 7B 02 00 35 04 06 00 61 7D BE 58 CE 58 2A CA 96 9D 13 88 86 93 [02:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 49 51 47 00 8A 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 34 38 39 39 10 04 04 00 93 7B 02 00 F4 03 04 00 83 DE 92 66 B6 04 01 00 00 72 82 5A 82 E6 21 21 10 [02:05:40]CommunicateWithHost err = 0 [02:05:40]CheckOFDResponse [02:05:40]1017 (14) - 77093643461234 [02:05:40]1041 (16) - 0000000000874899 [02:05:40]1040 (4) - 162707 [02:05:40]1012 (4) - 13.07.2024 20:07 [02:05:40]1206 (1) - 0 [02:05:40]OFD Sender: Remove packet 162707 [02:05:40]ProducePacketName [02:05:40]name=ofd_packets/00162707 [02:05:40]NVStorageDeleteData [02:05:40]Write to MH i2c: 01 00 00 E7 39 20 [02:05:40]Write i2c OK [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: 01 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: 01 07 00 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: 01 07 00 E7 39 00 00 00 00 00 DD 0C 10 [02:05:40]RasterBufferAndPrint [02:05:40]line [02:05:40]line [02:05:40]line [02:05:40]line [02:05:40]line [02:05:40]written 0, free lines is 3299 [02:05:40]MH_Cut [02:05:40]Write to MH i2c: D1 01 00 EE 39 01 F9 [02:05:40]Write i2c OK [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: D1 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: D1 01 00 [02:05:40]MH_I2C_Read... [02:05:40]Read from MH i2c: D1 01 00 EE 39 00 F8 [02:05:40]Write to MH i2c: 01 00 00 EF 39 28 [02:05:40]Write i2c OK [02:05:40]MH_I2C_Read... [02:05:41]OFD Sender: No OFD packet to send [02:05:41]*** Cut start [02:05:41]*** Purtial cut [02:05:41]*** Stage 1: CUTSNS_PIN = 1 [02:05:41]Read from MH i2c: 01 [02:05:41]MH_I2C_Read... [02:05:41]*** Stop cut motor [02:05:41]*** Cut end [02:05:41]Read from MH i2c: 01 07 00 [02:05:41]MH_I2C_Read... [02:05:41]Read from MH i2c: 01 07 00 EF 39 00 00 00 00 00 FF 0F 3D [02:05:41]process_action close_receipt done [02:05:41]requested_data is exist [02:05:41]produce_requested_data [02:05:41]requested_item fm.sn is exist - process it [02:05:41]wFMCommunicate request_size=4 [02:05:41]MH_SAM_APDU [02:05:41]CAPDU: 80 11 00 00 [02:05:41]Write to MH i2c: E2 08 00 F0 39 80 11 00 00 00 00 00 00 A3 [02:05:41]Write i2c OK [02:05:41]MH_I2C_Read... [02:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:42]Read from MH i2c: E2 [02:05:42]MH_I2C_Read... [02:05:42]Read from MH i2c: E2 17 00 [02:05:42]MH_I2C_Read... [02:05:42]Read from MH i2c: E2 17 00 F0 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 03 [02:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:05:42]wFMCommunicate OK [02:05:42]requested_item fd.num is exist - process it [02:05:42]SAM_PROTO_GetFieldsCounters [02:05:42]wFMCommunicate request_size=4 [02:05:42]MH_SAM_APDU [02:05:42]CAPDU: 80 13 00 00 [02:05:42]Write to MH i2c: E2 08 00 F1 39 80 13 00 00 00 00 00 00 A6 [02:05:42]Write i2c OK [02:05:42]MH_I2C_Read... [02:05:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:05:42]Read from MH i2c: E2 [02:05:42]MH_I2C_Read... [02:05:42]Read from MH i2c: E2 62 00 [02:05:42]MH_I2C_Read... [02:05:42]Read from MH i2c: E2 62 00 F1 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 93 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [02:05:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 93 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:05:42]wFMCommunicate OK [02:05:42]SAM_PROTO_GetFieldsCounters done [02:05:42]requested_item shift.num is exist - process it [02:05:42]requested_item shift.opened is exist - process it [02:05:42]req_shift_opened [02:05:42]FM_GetShiftState [02:05:42]SAM_PROTO_GetShiftState [02:05:42]wFMCommunicate request_size=4 [02:05:42]MH_SAM_APDU [02:05:42]CAPDU: 80 13 01 00 [02:05:42]Write to MH i2c: E2 08 00 F2 39 80 13 01 00 00 00 00 00 A8 [02:05:42]Write i2c OK [02:05:42]MH_I2C_Read... [02:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:42]Read from MH i2c: E2 [02:05:42]MH_I2C_Read... [02:05:42]Read from MH i2c: E2 0E 00 [02:05:42]MH_I2C_Read... [02:05:42]Read from MH i2c: E2 0E 00 F2 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 DE [02:05:42]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:05:42]wFMCommunicate OK [02:05:42]SAM_PROTO_GetShiftState done [02:05:42]FM_GetShiftState done [02:05:42]req_shift_opened done [02:05:42]requested_item shift.open_date is exist - process it [02:05:42]req_shift_open_date [02:05:42]req_shift_open_date done [02:05:42]produce_requested_data done [02:05:42]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162707,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [02:05:42]process_action_free close_receipt [02:05:42]json_value_free [02:05:42]json_value_free done [02:05:42]process_json_proto returns [02:05:42]Send response to host [02:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162707,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [02:05:42]free response buf [02:05:42]execute_script done [02:05:42]execute_script returns [02:05:42]free content buf [02:05:42]Sock 9.Close socket [02:05:42]Sock 9.Thread stoped [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:31]OFD Sender: No OFD packet to send [02:06:36]OFD Sender: No OFD packet to send [02:06:41]OFD Sender: No OFD packet to send [02:06:46]OFD Sender: No OFD packet to send [02:06:51]OFD Sender: No OFD packet to send [02:06:56]OFD Sender: No OFD packet to send [02:07:01]OFD Sender: No OFD packet to send [02:07:06]OFD Sender: No OFD packet to send [02:07:11]OFD Sender: No OFD packet to send [02:07:16]OFD Sender: No OFD packet to send [02:07:21]OFD Sender: No OFD packet to send [02:07:26]OFD Sender: No OFD packet to send [02:07:31]OFD Sender: No OFD packet to send [02:07:36]OFD Sender: No OFD packet to send [02:07:41]OFD Sender: No OFD packet to send [02:07:46]OFD Sender: No OFD packet to send [02:07:51]OFD Sender: No OFD packet to send [02:07:56]OFD Sender: No OFD packet to send [02:08:01]OFD Sender: No OFD packet to send [02:08:06]OFD Sender: No OFD packet to send [02:08:10]accept exits with 7 [02:08:10]New connection [02:08:10]New thread 3067366756 created [02:08:10]Thread 3067510116 joined [02:08:10]Waiting for new connection... [02:08:10] Sock 7.Parse request [02:08:10]Sock 7.Check first char [02:08:10]Sock 7.First char is OK [02:08:10]request: POST /json_proto HTTP/1.0 [02:08:10]Method: POST [02:08:10]URL: /json_proto [02:08:10]Method is POST - this is cgi request [02:08:10]url: /json_proto [02:08:10]query_string will be loaded in cgi processing [02:08:10]execute_cgi json_proto POST (null) [02:08:10]execute_cgi path=json_proto method=POST [02:08:10]POST find Content-Length [02:08:10]Host: 172.17.39.67:8080 [02:08:10]Content-Length: 825 [02:08:10]Content-Type: application/json [02:08:10] [02:08:10]POST finish read [02:08:10]Found Content-Length = 825 [02:08:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:10]execute_script... [02:08:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 72.60, "quantity" : 13.780, "sum" : 1000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:10]POST & json_proto [02:08:10]process_json_proto [02:08:10]json parsed OK: [02:08:10]protocol is kg_v1.0 [02:08:10]action value=close_receipt [02:08:10]process_action close_receipt [02:08:10]cmd_close_receipt [02:08:10]MH_GetDate [02:08:10]Write to MH i2c: F0 00 00 F3 39 1B [02:08:10]Write i2c OK [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: F0 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: F0 09 00 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: F0 09 00 F3 39 00 0D 33 93 66 86 7C 92 66 57 [02:08:10]GetLastDocTimeStamp 1720922741 [02:08:10]current date 1720922893 [02:08:10]FM_GetShiftState [02:08:10]SAM_PROTO_GetShiftState [02:08:10]wFMCommunicate request_size=4 [02:08:10]MH_SAM_APDU [02:08:10]CAPDU: 80 13 01 00 [02:08:10]Write to MH i2c: E2 08 00 F4 39 80 13 01 00 00 00 00 00 AA [02:08:10]Write i2c OK [02:08:10]MH_I2C_Read... [02:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:10]Read from MH i2c: E2 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 0E 00 [02:08:10]MH_I2C_Read... [02:08:10]Read from MH i2c: E2 0E 00 F4 39 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 E0 [02:08:10]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:08:10]wFMCommunicate OK [02:08:10]SAM_PROTO_GetShiftState done [02:08:10]FM_GetShiftState done [02:08:10]opened in 1720915483 [02:08:10]opened+sec_in_day 1721001883 [02:08:10]quantity*price = 100042 [02:08:10]sum+1 = 100044 [02:08:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.43 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.43 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 20 14.07.2024 02:08 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000874899 ФД: 162708 ФПД: 237926649744100 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T020813&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162708&fm=237926649744100&tin=02508201610067®Number=0000000000090858&sum=100043 [02:08:11]StoreToDocumentArchive [02:08:11]shift 463 fd 162708 [02:08:11]save to /storage/0463/doc_00162708 [02:08:11]save last doc name /storage/0463/doc_00162708 to /storage/kkm_last_doc_name [02:08:11]save OK [02:08:11]Clear old archive folders... [02:08:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:08:11]tlvbuf is 006B5230 [02:08:11]SAM_PROTO_ClearQueue [02:08:11]wFMCommunicate request_size=4 [02:08:11]MH_SAM_APDU [02:08:11]CAPDU: 80 09 00 00 [02:08:11]Write to MH i2c: E2 08 00 01 3A 80 09 00 00 00 00 00 00 AD [02:08:11]Write i2c OK [02:08:11]MH_I2C_Read... [02:08:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:11]Read from MH i2c: E2 [02:08:11]MH_I2C_Read... [02:08:11]Read from MH i2c: E2 03 00 [02:08:11]MH_I2C_Read... [02:08:11]Read from MH i2c: E2 03 00 01 3A 00 90 00 AF [02:08:11]RAPDU: 90 00 [02:08:11]wFMCommunicate OK [02:08:11]SAM_PROTO_ClearQueue done [02:08:11]KKMCreateOFDPacket [02:08:11]OFDProtocolAddRootSTLVToBuf [02:08:11]FM_MakeSignedData [02:08:11]FM_MakeSignedData [02:08:11]SAM_PROTO_SignData [02:08:11]wFMCommunicate request_size=4 [02:08:11]MH_SAM_APDU [02:08:11]CAPDU: 80 0D 01 02 [02:08:11]Write to MH i2c: E2 08 00 02 3A 80 0D 01 02 00 00 00 00 B5 [02:08:11]Write i2c OK [02:08:11]MH_I2C_Read... [02:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 02 3A 00 90 00 B0 [02:08:12]RAPDU: 90 00 [02:08:12]wFMCommunicate OK [02:08:12]wFMCommunicate request_size=255 [02:08:12]MH_SAM_APDU [02:08:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0D 33 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7B 02 00 35 04 06 00 [02:08:12]Write to MH i2c: E2 02 01 03 3A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0D 33 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7B 02 00 35 04 06 00 00 00 D2 [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 03 3A 00 90 00 B1 [02:08:12]RAPDU: 90 00 [02:08:12]wFMCommunicate OK [02:08:12]wFMCommunicate request_size=11 [02:08:12]MH_SAM_APDU [02:08:12]CAPDU: 80 0D 02 02 06 D8 64 9D 70 CA E4 [02:08:12]Write to MH i2c: E2 0E 00 04 3A 80 0D 02 02 06 00 D8 64 9D 70 CA E4 00 00 BB [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 03 00 04 3A 00 90 00 B2 [02:08:12]RAPDU: 90 00 [02:08:12]wFMCommunicate OK [02:08:12]wFMCommunicate request_size=4 [02:08:12]MH_SAM_APDU [02:08:12]CAPDU: 80 0D 03 02 [02:08:12]Write to MH i2c: E2 08 00 05 3A 80 0D 03 02 00 00 00 00 BA [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 0B 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 0B 00 05 3A 00 CA D3 27 E2 03 B3 C7 EE 90 00 CC [02:08:12]RAPDU: CA D3 27 E2 03 B3 C7 EE 90 00 [02:08:12]wFMCommunicate OK [02:08:12]SAM_PROTO_SignData done [02:08:12]FM_MakeSignedData done [02:08:12]CreateOFDProtocolMessage [02:08:12]wFMCommunicate request_size=4 [02:08:12]MH_SAM_APDU [02:08:12]CAPDU: 80 11 00 00 [02:08:12]Write to MH i2c: E2 08 00 06 3A 80 11 00 00 00 00 00 00 BA [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:12]Read from MH i2c: E2 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: E2 17 00 [02:08:12]MH_I2C_Read... [02:08:12]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 34 38 39 39 90 00 1A [02:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:08:12]wFMCommunicate OK [02:08:12]CreateOFDProtocolMessage done [02:08:12]OFDSenderStorePacket 162708 [02:08:12]StoreOFDPacket docnum=162708 [02:08:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 48 4F 08 01 87 3C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0D 33 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7B 02 00 35 04 06 00 D8 64 9D 70 CA E4 CA D3 27 E2 03 B3 C7 EE [02:08:12]CheckFolder [02:08:12]dirname=/storage/ofd_packets [02:08:12]CheckFolder done [02:08:12]ProducePacketName [02:08:12]name=ofd_packets/00162708 [02:08:12]NVStorageSaveData ofd_packets/00162708 [02:08:12]File name is /storage/ofd_packets/00162708 [02:08:12]Write 302 bytes [02:08:12]NVStorageSaveData done [02:08:12]OFDSenderStorePacket done [02:08:12]KKMCreateOFDPacket done [02:08:12]NVStorageSaveData kkm_last_timestamp [02:08:12]File name is /storage/kkm_last_timestamp [02:08:12]Write 4 bytes [02:08:12]NVStorageSaveData done [02:08:12]OFD Sender: Processing packet 162708 [packets to send 106, broken 105] [02:08:12]ProducePacketName [02:08:12]name=ofd_packets/00162708 [02:08:12]OFD Sender: To server: pG, [02:08:12]CommunicateWithHost lk.salyk.kg:30040 [02:08:12]ConnectInit lk.salyk.kg [02:08:12]ExternCall_PrintAddStr [02:08:12]wPrintStart [02:08:12]Write to MH i2c: 01 00 00 07 3A 41 [02:08:12]Write i2c OK [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: 01 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: 01 07 00 [02:08:12]MH_I2C_Read... [02:08:12]Read from MH i2c: 01 07 00 07 3A 00 00 00 00 00 FF 0F 56 [02:08:12]RasterBufferAndPrint [02:08:12]line Счет N : (1)1319287 [02:08:12]line ИНН: 02508201610067 [02:08:12]line Контрольно-Кассовый Чек [02:08:12]line ПРОДАЖА [02:08:12]line ТРК (МРК, ГНК) : 51 [02:08:12]line Товар: 2710194210 [02:08:12]line ДТ(л)-К-5 [02:08:12]line 13.780 * 72.60 [02:08:12]line = 1000.43 [02:08:12]line НДС 12% НСП 1% [02:08:12]line > о реализуемом товаре [02:08:12]line ИТОГО: 1000.43 [02:08:12]line НСП 1% : 8.85 [02:08:12]line НДС 12% : 106.24 [02:08:12]line Наличными: 0.00 [02:08:12]line Безнал.: 1000.43 [02:08:12]line Место: АЗС № 140 "Партнер Нефть" [02:08:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:08:12]line СНО: Общий режим [02:08:12]line Чек 20 14.07.2024 02:08 [02:08:12]line Смена: 463 ФФД: 1.0 [02:08:12]line ЗНМ: 0300000129 [02:08:12]line РНМ: 0000000000090858 [02:08:12]line Версия ККМ: 001 [02:08:12]line Платежная система: Бакай Банк [02:08:12]line ФМ: 0000000000874899 [02:08:12]line ФД: 162708 [02:08:12]line ФПД: 237926649744100 [02:08:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T020813&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162708&fm=237926649744100&tin=02508201610067®Number=0000000000090858&sum=100043 [02:08:12]written 0, free lines is 4095 [02:08:13]Write to MH i2c: 01 00 00 31 3A 6B [02:08:13]Write i2c OK [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: 01 [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: 01 07 00 [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: 01 07 00 31 3A 00 00 00 00 00 E0 0C 5E [02:08:13]RasterBufferAndPrint [02:08:13]line [02:08:13]line [02:08:13]line [02:08:13]line [02:08:13]line [02:08:13]written 0, free lines is 3300 [02:08:13]MH_Cut [02:08:13]Write to MH i2c: D1 01 00 38 3A 01 44 [02:08:13]Write i2c OK [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: D1 [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: D1 01 00 [02:08:13]MH_I2C_Read... [02:08:13]Read from MH i2c: D1 01 00 38 3A 00 43 [02:08:13]Write to MH i2c: 01 00 00 39 3A 73 [02:08:13]Write i2c OK [02:08:13]MH_I2C_Read... [02:08:14]*** Cut start [02:08:14]*** Purtial cut [02:08:14]*** CUTSNS_PIN = 0 [02:08:14]*** Stage 1: CUTSNS_PIN = 1 [02:08:16]Read from MH i2c: 01 [02:08:16]MH_I2C_Read... [02:08:16]*** Stop cut motor [02:08:16]*** Cut end [02:08:16]Read from MH i2c: 01 07 00 [02:08:16]MH_I2C_Read... [02:08:16]Read from MH i2c: 01 07 00 39 3A 00 00 00 00 00 FF 0F 88 [02:08:16]process_action close_receipt done [02:08:16]requested_data is exist [02:08:16]produce_requested_data [02:08:16]requested_item fm.sn is exist - process it [02:08:16]wFMCommunicate request_size=4 [02:08:16]MH_SAM_APDU [02:08:16]CAPDU: 80 11 00 00 [02:08:16]Write to MH i2c: E2 08 00 3A 3A 80 11 00 00 00 00 00 00 EE [02:08:16]Write i2c OK [02:08:16]MH_I2C_Read... [02:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:16]Read from MH i2c: E2 [02:08:16]MH_I2C_Read... [02:08:16]Read from MH i2c: E2 17 00 [02:08:16]MH_I2C_Read... [02:08:16]Read from MH i2c: E2 17 00 3A 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 4E [02:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:08:16]wFMCommunicate OK [02:08:16]requested_item fd.num is exist - process it [02:08:16]SAM_PROTO_GetFieldsCounters [02:08:16]wFMCommunicate request_size=4 [02:08:16]MH_SAM_APDU [02:08:16]CAPDU: 80 13 00 00 [02:08:16]Write to MH i2c: E2 08 00 3B 3A 80 13 00 00 00 00 00 00 F1 [02:08:16]Write i2c OK [02:08:16]MH_I2C_Read... [02:08:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:08:16]Read from MH i2c: E2 [02:08:16]MH_I2C_Read... [02:08:16]Read from MH i2c: E2 62 00 [02:08:16]MH_I2C_Read... [02:08:16]Read from MH i2c: E2 62 00 3B 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 94 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [02:08:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 94 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:08:16]wFMCommunicate OK [02:08:16]SAM_PROTO_GetFieldsCounters done [02:08:16]requested_item shift.num is exist - process it [02:08:16]requested_item shift.opened is exist - process it [02:08:16]req_shift_opened [02:08:16]FM_GetShiftState [02:08:16]SAM_PROTO_GetShiftState [02:08:16]wFMCommunicate request_size=4 [02:08:16]MH_SAM_APDU [02:08:16]CAPDU: 80 13 01 00 [02:08:16]Write to MH i2c: E2 08 00 3C 3A 80 13 01 00 00 00 00 00 F3 [02:08:16]Write i2c OK [02:08:16]MH_I2C_Read... [02:08:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:16]Read from MH i2c: E2 [02:08:16]MH_I2C_Read... [02:08:16]Read from MH i2c: E2 0E 00 [02:08:16]MH_I2C_Read... [02:08:16]Read from MH i2c: E2 0E 00 3C 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 29 [02:08:16]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:08:16]wFMCommunicate OK [02:08:16]SAM_PROTO_GetShiftState done [02:08:16]FM_GetShiftState done [02:08:16]req_shift_opened done [02:08:16]requested_item shift.open_date is exist - process it [02:08:16]req_shift_open_date [02:08:16]req_shift_open_date done [02:08:16]produce_requested_data done [02:08:16]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162708,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [02:08:16]process_action_free close_receipt [02:08:16]json_value_free [02:08:16]json_value_free done [02:08:16]process_json_proto returns [02:08:16]Send response to host [02:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162708,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [02:08:16]free response buf [02:08:16]execute_script done [02:08:16]execute_script returns [02:08:16]free content buf [02:08:16]Sock 7.Close socket [02:08:16]Sock 7.Thread stoped [02:10:24]ConnectInit Can't connect to host [02:10:24]CommunicateWithHost connect error [02:10:24]CommunicateWithHost err = -1 [02:10:24]OFD Sender: Server communicate error [02:10:29]OFD Sender: Processing packet 162708 [packets to send 106, broken 105] [02:10:29]ProducePacketName [02:10:29]name=ofd_packets/00162708 [02:10:29]OFD Sender: To server: pG, [02:10:29]CommunicateWithHost lk.salyk.kg:30040 [02:10:29]ConnectInit lk.salyk.kg [02:10:29]Connected sock=7 [02:10:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 48 4F 08 01 87 3C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 D4 35 00 00 00 00 00 37 04 06 00 5C 1C 00 00 00 00 13 04 06 00 CB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CB 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CB 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 0D 33 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 94 7B 02 00 35 04 06 00 D8 64 9D 70 CA E4 CA D3 27 E2 03 B3 C7 EE [02:10:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 21 55 47 00 03 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 34 38 39 39 10 04 04 00 94 7B 02 00 F4 03 04 00 A4 DF 92 66 B6 04 01 00 00 67 85 D8 D8 8E 27 58 3C [02:10:29]CommunicateWithHost err = 0 [02:10:29]CheckOFDResponse [02:10:29]1017 (14) - 77093643461234 [02:10:29]1041 (16) - 0000000000874899 [02:10:29]1040 (4) - 162708 [02:10:29]1012 (4) - 13.07.2024 20:12 [02:10:29]1206 (1) - 0 [02:10:29]OFD Sender: Remove packet 162708 [02:10:29]ProducePacketName [02:10:29]name=ofd_packets/00162708 [02:10:29]NVStorageDeleteData [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:13:58]accept exits with 9 [02:13:58]New connection [02:13:58]New thread 3067510116 created [02:13:58]Thread 3067366756 joined [02:13:58]Waiting for new connection... [02:13:58] Sock 9.Parse request [02:13:58]Sock 9.Check first char [02:13:58]Sock 9.First char is OK [02:13:58]request: POST /json_proto HTTP/1.0 [02:13:58]Method: POST [02:13:58]URL: /json_proto [02:13:58]Method is POST - this is cgi request [02:13:58]url: /json_proto [02:13:58]query_string will be loaded in cgi processing [02:13:58]execute_cgi json_proto POST (null) [02:13:58]execute_cgi path=json_proto method=POST [02:13:58]POST find Content-Length [02:13:58]Host: 172.17.39.67:8080 [02:13:58]Content-Length: 683 [02:13:58]Content-Type: application/json [02:13:58] [02:13:58]POST finish read [02:13:58]Found Content-Length = 683 [02:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.230, "sum" : 1341.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1341.00, "total" : 1341.00, "payments": [ { "type": 0, "sum" : 1341.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:13:58]execute_script... [02:13:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.30, "quantity" : 20.230, "sum" : 1341.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1341.00, "total" : 1341.00, "payments": [ { "type": 0, "sum" : 1341.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:13:58]POST & json_proto [02:13:58]process_json_proto [02:13:58]json parsed OK: [02:13:58]protocol is kg_v1.0 [02:13:58]action value=close_receipt [02:13:58]process_action close_receipt [02:13:58]cmd_close_receipt [02:13:58]MH_GetDate [02:13:58]Write to MH i2c: F0 00 00 3D 3A 66 [02:13:58]Write i2c OK [02:13:58]MH_I2C_Read... [02:13:58]Read from MH i2c: F0 [02:13:58]MH_I2C_Read... [02:13:58]Read from MH i2c: F0 09 00 [02:13:58]MH_I2C_Read... [02:13:58]Read from MH i2c: F0 09 00 3D 3A 00 68 34 93 66 86 7C 92 66 FE [02:13:58]GetLastDocTimeStamp 1720922893 [02:13:58]current date 1720923240 [02:13:58]FM_GetShiftState [02:13:58]SAM_PROTO_GetShiftState [02:13:58]wFMCommunicate request_size=4 [02:13:58]MH_SAM_APDU [02:13:58]CAPDU: 80 13 01 00 [02:13:58]Write to MH i2c: E2 08 00 3E 3A 80 13 01 00 00 00 00 00 F5 [02:13:58]Write i2c OK [02:13:58]MH_I2C_Read... [02:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:13:58]Read from MH i2c: E2 [02:13:58]MH_I2C_Read... [02:13:58]Read from MH i2c: E2 0E 00 [02:13:58]MH_I2C_Read... [02:13:58]Read from MH i2c: E2 0E 00 3E 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 2B [02:13:58]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:13:58]wFMCommunicate OK [02:13:58]SAM_PROTO_GetShiftState done [02:13:58]FM_GetShiftState done [02:13:58]opened in 1720915483 [02:13:58]opened+sec_in_day 1721001883 [02:13:58]quantity*price = 134124 [02:13:58]sum+1 = 134126 [02:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 1341.00 Внесено: 1341.00 СДАЧА: 0.00 НСП 1% : 11.87 НДС 12% : 142.43 Наличными: 1341.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 21 14.07.2024 02:14 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162709 ФПД: 166763546388369 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T021401&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162709&fm=166763546388369&tin=02508201610067®Number=0000000000090858&sum=134100 [02:13:59]StoreToDocumentArchive [02:13:59]shift 463 fd 162709 [02:13:59]save to /storage/0463/doc_00162709 [02:13:59]save last doc name /storage/0463/doc_00162709 to /storage/kkm_last_doc_name [02:13:59]save OK [02:13:59]Clear old archive folders... [02:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:13:59]tlvbuf is 006B9770 [02:13:59]SAM_PROTO_ClearQueue [02:13:59]wFMCommunicate request_size=4 [02:13:59]MH_SAM_APDU [02:13:59]CAPDU: 80 09 00 00 [02:13:59]Write to MH i2c: E2 08 00 4B 3A 80 09 00 00 00 00 00 00 F7 [02:13:59]Write i2c OK [02:13:59]MH_I2C_Read... [02:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:13:59]Read from MH i2c: E2 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 03 00 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 03 00 4B 3A 00 90 00 F9 [02:13:59]RAPDU: 90 00 [02:13:59]wFMCommunicate OK [02:13:59]SAM_PROTO_ClearQueue done [02:13:59]KKMCreateOFDPacket [02:13:59]OFDProtocolAddRootSTLVToBuf [02:13:59]FM_MakeSignedData [02:13:59]FM_MakeSignedData [02:13:59]SAM_PROTO_SignData [02:13:59]wFMCommunicate request_size=4 [02:13:59]MH_SAM_APDU [02:13:59]CAPDU: 80 0D 01 02 [02:13:59]Write to MH i2c: E2 08 00 4C 3A 80 0D 01 02 00 00 00 00 FF [02:13:59]Write i2c OK [02:13:59]MH_I2C_Read... [02:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:13:59]Read from MH i2c: E2 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 03 00 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 03 00 4C 3A 00 90 00 FA [02:13:59]RAPDU: 90 00 [02:13:59]wFMCommunicate OK [02:13:59]wFMCommunicate request_size=255 [02:13:59]MH_SAM_APDU [02:13:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 4F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 ED 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 37 00 00 00 00 07 04 06 00 D4 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 69 34 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7B 02 00 35 04 06 00 97 [02:13:59]Write to MH i2c: E2 02 01 4D 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 4F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 ED 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 37 00 00 00 00 07 04 06 00 D4 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 69 34 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7B 02 00 35 04 06 00 97 00 00 D0 [02:13:59]Write i2c OK [02:13:59]MH_I2C_Read... [02:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:13:59]Read from MH i2c: E2 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 03 00 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 03 00 4D 3A 00 90 00 FB [02:13:59]RAPDU: 90 00 [02:13:59]wFMCommunicate OK [02:13:59]wFMCommunicate request_size=10 [02:13:59]MH_SAM_APDU [02:13:59]CAPDU: 80 0D 02 02 05 AB A9 F1 A7 91 [02:13:59]Write to MH i2c: E2 0D 00 4E 3A 80 0D 02 02 05 00 AB A9 F1 A7 91 00 00 89 [02:13:59]Write i2c OK [02:13:59]MH_I2C_Read... [02:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:13:59]Read from MH i2c: E2 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 03 00 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 03 00 4E 3A 00 90 00 FC [02:13:59]RAPDU: 90 00 [02:13:59]wFMCommunicate OK [02:13:59]wFMCommunicate request_size=4 [02:13:59]MH_SAM_APDU [02:13:59]CAPDU: 80 0D 03 02 [02:13:59]Write to MH i2c: E2 08 00 4F 3A 80 0D 03 02 00 00 00 00 04 [02:13:59]Write i2c OK [02:13:59]MH_I2C_Read... [02:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:13:59]Read from MH i2c: E2 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 0B 00 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 0B 00 4F 3A 00 08 FB 32 DC 4A 24 73 B2 90 00 A9 [02:13:59]RAPDU: 08 FB 32 DC 4A 24 73 B2 90 00 [02:13:59]wFMCommunicate OK [02:13:59]SAM_PROTO_SignData done [02:13:59]FM_MakeSignedData done [02:13:59]CreateOFDProtocolMessage [02:13:59]wFMCommunicate request_size=4 [02:13:59]MH_SAM_APDU [02:13:59]CAPDU: 80 11 00 00 [02:13:59]Write to MH i2c: E2 08 00 50 3A 80 11 00 00 00 00 00 00 04 [02:13:59]Write i2c OK [02:13:59]MH_I2C_Read... [02:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:13:59]Read from MH i2c: E2 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 17 00 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: E2 17 00 50 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 64 [02:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:13:59]wFMCommunicate OK [02:13:59]CreateOFDProtocolMessage done [02:13:59]OFDSenderStorePacket 162709 [02:13:59]StoreOFDPacket docnum=162709 [02:13:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 40 C4 07 01 69 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 4F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 ED 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 37 00 00 00 00 07 04 06 00 D4 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 69 34 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7B 02 00 35 04 06 00 97 AB A9 F1 A7 91 08 FB 32 DC 4A 24 73 B2 [02:13:59]CheckFolder [02:13:59]dirname=/storage/ofd_packets [02:13:59]CheckFolder done [02:13:59]ProducePacketName [02:13:59]name=ofd_packets/00162709 [02:13:59]NVStorageSaveData ofd_packets/00162709 [02:13:59]File name is /storage/ofd_packets/00162709 [02:13:59]Write 301 bytes [02:13:59]NVStorageSaveData done [02:13:59]OFDSenderStorePacket done [02:13:59]KKMCreateOFDPacket done [02:13:59]NVStorageSaveData kkm_last_timestamp [02:13:59]File name is /storage/kkm_last_timestamp [02:13:59]Write 4 bytes [02:13:59]NVStorageSaveData done [02:13:59]ExternCall_PrintAddStr [02:13:59]wPrintStart [02:13:59]Write to MH i2c: 01 00 00 51 3A 8B [02:13:59]Write i2c OK [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: 01 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: 01 07 00 [02:13:59]MH_I2C_Read... [02:13:59]Read from MH i2c: 01 07 00 51 3A 00 00 00 00 00 FF 0F A0 [02:13:59]RasterBufferAndPrint [02:13:59]line Счет N : (1)1319288 [02:13:59]line ИНН: 02508201610067 [02:13:59]line Контрольно-Кассовый Чек [02:13:59]line ПРОДАЖА [02:13:59]line ТРК (МРК, ГНК) : 63 [02:13:59]line Товар: 2710124130 [02:13:59]line Аи-92-К-5 [02:13:59]line 20.230 * 66.30 [02:13:59]line = 1341.25 [02:13:59]line НДС 12% НСП 1% [02:13:59]line > о реализуемом товаре [02:13:59]line ОКРУГЛЕНИЕ: -0.25 [02:13:59]line ИТОГО: 1341.00 [02:13:59]line Внесено: 1341.00 [02:13:59]line СДАЧА: 0.00 [02:13:59]line НСП 1% : 11.87 [02:13:59]line НДС 12% : 142.43 [02:13:59]line Наличными: 1341.00 [02:13:59]line Безнал.: 0.00 [02:13:59]line Место: АЗС № 140 "Партнер Нефть" [02:13:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:13:59]line СНО: Общий режим [02:13:59]line Чек 21 14.07.2024 02:14 [02:13:59]line Смена: 463 ФФД: 1.0 [02:13:59]line ЗНМ: 0300000129 [02:13:59]line РНМ: 0000000000090858 [02:13:59]line Версия ККМ: 001 [02:13:59]line ФМ: 0000000000874899 [02:13:59]line ФД: 162709 [02:13:59]line ФПД: 166763546388369 [02:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T021401&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162709&fm=166763546388369&tin=02508201610067®Number=0000000000090858&sum=134100 [02:14:00]OFD Sender: Processing packet 162709 [packets to send 106, broken 105] [02:14:00]ProducePacketName [02:14:00]name=ofd_packets/00162709 [02:14:00]OFD Sender: To server: pG, [02:14:00]CommunicateWithHost lk.salyk.kg:30040 [02:14:00]ConnectInit lk.salyk.kg [02:14:00]written 0, free lines is 4095 [02:14:00]Connected sock=10 [02:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0F 01 00 00 40 C4 07 01 69 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 06 4F 00 00 00 00 00 37 04 06 00 E6 19 00 00 00 00 13 04 06 00 ED 0B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 0B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 37 00 00 00 00 07 04 06 00 D4 0B 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 69 34 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7B 02 00 35 04 06 00 97 AB A9 F1 A7 91 08 FB 32 DC 4A 24 73 B2 [02:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 45 92 47 00 3A 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 95 7B 02 00 F4 03 04 00 76 E0 92 66 B6 04 01 00 00 C4 3F D2 9D C6 BD 67 08 [02:14:00]CommunicateWithHost err = 0 [02:14:00]CheckOFDResponse [02:14:00]1017 (14) - 77093643461234 [02:14:00]1041 (16) - 0000000000874899 [02:14:00]1040 (4) - 162709 [02:14:00]1012 (4) - 13.07.2024 20:15 [02:14:00]1206 (1) - 0 [02:14:00]OFD Sender: Remove packet 162709 [02:14:00]ProducePacketName [02:14:00]name=ofd_packets/00162709 [02:14:00]NVStorageDeleteData [02:14:00]Write to MH i2c: 01 00 00 7C 3A B6 [02:14:00]Write i2c OK [02:14:00]MH_I2C_Read... [02:14:00]Read from MH i2c: 01 [02:14:00]MH_I2C_Read... [02:14:00]Read from MH i2c: 01 07 00 [02:14:00]MH_I2C_Read... [02:14:00]Read from MH i2c: 01 07 00 7C 3A 00 00 00 00 00 E8 0C B1 [02:14:00]RasterBufferAndPrint [02:14:00]line [02:14:00]line [02:14:00]line [02:14:00]line [02:14:00]line [02:14:00]written 0, free lines is 3310 [02:14:00]MH_Cut [02:14:00]Write to MH i2c: D1 01 00 83 3A 01 8F [02:14:00]Write i2c OK [02:14:00]MH_I2C_Read... [02:14:00]Read from MH i2c: D1 [02:14:00]MH_I2C_Read... [02:14:00]Read from MH i2c: D1 01 00 [02:14:00]MH_I2C_Read... [02:14:00]Read from MH i2c: D1 01 00 83 3A 00 8E [02:14:00]Write to MH i2c: 01 00 00 84 3A BE [02:14:00]Write i2c OK [02:14:00]MH_I2C_Read... [02:14:00]OFD Sender: No OFD packet to send [02:14:01]*** Cut start [02:14:01]*** Purtial cut [02:14:01]*** Stage 1: CUTSNS_PIN = 1 [02:14:01]Read from MH i2c: 01 [02:14:01]MH_I2C_Read... [02:14:01]*** Stop cut motor [02:14:01]*** Cut end [02:14:01]Read from MH i2c: 01 07 00 [02:14:01]MH_I2C_Read... [02:14:01]Read from MH i2c: 01 07 00 84 3A 00 00 00 00 00 FF 0F D3 [02:14:01]process_action close_receipt done [02:14:01]requested_data is exist [02:14:01]produce_requested_data [02:14:01]requested_item fm.sn is exist - process it [02:14:01]wFMCommunicate request_size=4 [02:14:01]MH_SAM_APDU [02:14:01]CAPDU: 80 11 00 00 [02:14:01]Write to MH i2c: E2 08 00 85 3A 80 11 00 00 00 00 00 00 39 [02:14:01]Write i2c OK [02:14:01]MH_I2C_Read... [02:14:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:01]Read from MH i2c: E2 [02:14:01]MH_I2C_Read... [02:14:01]Read from MH i2c: E2 17 00 [02:14:01]MH_I2C_Read... [02:14:01]Read from MH i2c: E2 17 00 85 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 99 [02:14:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:14:01]wFMCommunicate OK [02:14:01]requested_item fd.num is exist - process it [02:14:01]SAM_PROTO_GetFieldsCounters [02:14:01]wFMCommunicate request_size=4 [02:14:01]MH_SAM_APDU [02:14:01]CAPDU: 80 13 00 00 [02:14:01]Write to MH i2c: E2 08 00 86 3A 80 13 00 00 00 00 00 00 3C [02:14:01]Write i2c OK [02:14:01]MH_I2C_Read... [02:14:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:14:01]Read from MH i2c: E2 [02:14:01]MH_I2C_Read... [02:14:01]Read from MH i2c: E2 62 00 [02:14:01]MH_I2C_Read... [02:14:01]Read from MH i2c: E2 62 00 86 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 95 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [02:14:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 95 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:14:01]wFMCommunicate OK [02:14:01]SAM_PROTO_GetFieldsCounters done [02:14:01]requested_item shift.num is exist - process it [02:14:01]requested_item shift.opened is exist - process it [02:14:01]req_shift_opened [02:14:01]FM_GetShiftState [02:14:01]SAM_PROTO_GetShiftState [02:14:01]wFMCommunicate request_size=4 [02:14:01]MH_SAM_APDU [02:14:01]CAPDU: 80 13 01 00 [02:14:01]Write to MH i2c: E2 08 00 87 3A 80 13 01 00 00 00 00 00 3E [02:14:01]Write i2c OK [02:14:01]MH_I2C_Read... [02:14:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:01]Read from MH i2c: E2 [02:14:01]MH_I2C_Read... [02:14:01]Read from MH i2c: E2 0E 00 [02:14:01]MH_I2C_Read... [02:14:01]Read from MH i2c: E2 0E 00 87 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 74 [02:14:01]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:14:01]wFMCommunicate OK [02:14:01]SAM_PROTO_GetShiftState done [02:14:01]FM_GetShiftState done [02:14:01]req_shift_opened done [02:14:01]requested_item shift.open_date is exist - process it [02:14:01]req_shift_open_date [02:14:01]req_shift_open_date done [02:14:01]produce_requested_data done [02:14:01]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162709,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [02:14:01]process_action_free close_receipt [02:14:01]json_value_free [02:14:01]json_value_free done [02:14:01]process_json_proto returns [02:14:01]Send response to host [02:14:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162709,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [02:14:01]free response buf [02:14:01]execute_script done [02:14:01]execute_script returns [02:14:01]free content buf [02:14:01]Sock 9.Close socket [02:14:01]Sock 9.Thread stoped [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:36]OFD Sender: No OFD packet to send [02:15:41]OFD Sender: No OFD packet to send [02:15:46]OFD Sender: No OFD packet to send [02:15:51]OFD Sender: No OFD packet to send [02:15:56]OFD Sender: No OFD packet to send [02:16:01]OFD Sender: No OFD packet to send [02:16:06]OFD Sender: No OFD packet to send [02:16:11]OFD Sender: No OFD packet to send [02:16:16]OFD Sender: No OFD packet to send [02:16:21]OFD Sender: No OFD packet to send [02:16:26]OFD Sender: No OFD packet to send [02:16:31]OFD Sender: No OFD packet to send [02:16:36]OFD Sender: No OFD packet to send [02:16:41]OFD Sender: No OFD packet to send [02:16:46]OFD Sender: No OFD packet to send [02:16:51]OFD Sender: No OFD packet to send [02:16:56]OFD Sender: No OFD packet to send [02:17:01]OFD Sender: No OFD packet to send [02:17:06]OFD Sender: No OFD packet to send [02:17:11]OFD Sender: No OFD packet to send [02:17:16]OFD Sender: No OFD packet to send [02:17:21]OFD Sender: No OFD packet to send [02:17:26]OFD Sender: No OFD packet to send [02:17:31]OFD Sender: No OFD packet to send [02:17:36]OFD Sender: No OFD packet to send [02:17:41]OFD Sender: No OFD packet to send [02:17:46]OFD Sender: No OFD packet to send [02:17:51]OFD Sender: No OFD packet to send [02:17:56]OFD Sender: No OFD packet to send [02:18:01]OFD Sender: No OFD packet to send [02:18:06]OFD Sender: No OFD packet to send [02:18:11]OFD Sender: No OFD packet to send [02:18:16]OFD Sender: No OFD packet to send [02:18:21]OFD Sender: No OFD packet to send [02:18:26]OFD Sender: No OFD packet to send [02:18:31]OFD Sender: No OFD packet to send [02:18:36]OFD Sender: No OFD packet to send [02:18:41]OFD Sender: No OFD packet to send [02:18:46]OFD Sender: No OFD packet to send [02:18:51]OFD Sender: No OFD packet to send [02:18:56]OFD Sender: No OFD packet to send [02:19:01]OFD Sender: No OFD packet to send [02:19:06]OFD Sender: No OFD packet to send [02:19:11]OFD Sender: No OFD packet to send [02:19:16]OFD Sender: No OFD packet to send [02:19:21]OFD Sender: No OFD packet to send [02:19:26]OFD Sender: No OFD packet to send [02:19:31]OFD Sender: No OFD packet to send [02:19:36]OFD Sender: No OFD packet to send [02:19:41]OFD Sender: No OFD packet to send [02:19:46]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:32]OFD Sender: No OFD packet to send [02:30:37]OFD Sender: No OFD packet to send [02:30:42]OFD Sender: No OFD packet to send [02:30:47]OFD Sender: No OFD packet to send [02:30:52]OFD Sender: No OFD packet to send [02:30:57]OFD Sender: No OFD packet to send [02:31:02]OFD Sender: No OFD packet to send [02:31:07]OFD Sender: No OFD packet to send [02:31:12]OFD Sender: No OFD packet to send [02:31:17]OFD Sender: No OFD packet to send [02:31:22]OFD Sender: No OFD packet to send [02:31:27]OFD Sender: No OFD packet to send [02:31:32]OFD Sender: No OFD packet to send [02:31:37]OFD Sender: No OFD packet to send [02:31:42]OFD Sender: No OFD packet to send [02:31:47]OFD Sender: No OFD packet to send [02:31:52]OFD Sender: No OFD packet to send [02:31:57]OFD Sender: No OFD packet to send [02:32:02]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:45]accept exits with 7 [02:34:45]New connection [02:34:45]New thread 3067366756 created [02:34:45]Thread 3067510116 joined [02:34:45]Waiting for new connection... [02:34:45] Sock 7.Parse request [02:34:45]Sock 7.Check first char [02:34:45]Sock 7.First char is OK [02:34:45]request: POST /json_proto HTTP/1.0 [02:34:45]Method: POST [02:34:45]URL: /json_proto [02:34:45]Method is POST - this is cgi request [02:34:45]url: /json_proto [02:34:45]query_string will be loaded in cgi processing [02:34:45]execute_cgi json_proto POST (null) [02:34:45]execute_cgi path=json_proto method=POST [02:34:45]POST find Content-Length [02:34:45]Host: 172.17.39.67:8080 [02:34:45]Content-Length: 671 [02:34:45]Content-Type: application/json [02:34:45] [02:34:45]POST finish read [02:34:45]Found Content-Length = 671 [02:34:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 2.090, "sum" : 140.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:34:45]execute_script... [02:34: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)1319289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 2.090, "sum" : 140.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:34:45]POST & json_proto [02:34:45]process_json_proto [02:34:45]json parsed OK: [02:34:45]protocol is kg_v1.0 [02:34:45]action value=close_receipt [02:34:45]process_action close_receipt [02:34:45]cmd_close_receipt [02:34:45]MH_GetDate [02:34:45]Write to MH i2c: F0 00 00 88 3A B1 [02:34:45]Write i2c OK [02:34:45]MH_I2C_Read... [02:34:45]Read from MH i2c: F0 [02:34:45]MH_I2C_Read... [02:34:45]Read from MH i2c: F0 09 00 [02:34:45]MH_I2C_Read... [02:34:45]Read from MH i2c: F0 09 00 88 3A 00 48 39 93 66 86 7C 92 66 2E [02:34:45]GetLastDocTimeStamp 1720923241 [02:34:45]current date 1720924488 [02:34:45]FM_GetShiftState [02:34:45]SAM_PROTO_GetShiftState [02:34:45]wFMCommunicate request_size=4 [02:34:45]MH_SAM_APDU [02:34:45]CAPDU: 80 13 01 00 [02:34:45]Write to MH i2c: E2 08 00 89 3A 80 13 01 00 00 00 00 00 40 [02:34:45]Write i2c OK [02:34:45]MH_I2C_Read... [02:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:34:45]Read from MH i2c: E2 [02:34:45]MH_I2C_Read... [02:34:45]Read from MH i2c: E2 0E 00 [02:34:45]MH_I2C_Read... [02:34:45]Read from MH i2c: E2 0E 00 89 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 76 [02:34:45]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:34:45]wFMCommunicate OK [02:34:45]SAM_PROTO_GetShiftState done [02:34:45]FM_GetShiftState done [02:34:45]opened in 1720915483 [02:34:45]opened+sec_in_day 1721001883 [02:34:45]quantity*price = 14065 [02:34:45]sum+1 = 14067 [02:34:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.94 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 22 14.07.2024 02:34 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162710 ФПД: 177524831953494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T023448&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162710&fm=177524831953494&tin=02508201610067®Number=0000000000090858&sum=14000 [02:34:46]StoreToDocumentArchive [02:34:46]shift 463 fd 162710 [02:34:46]save to /storage/0463/doc_00162710 [02:34:46]save last doc name /storage/0463/doc_00162710 to /storage/kkm_last_doc_name [02:34:46]save OK [02:34:46]Clear old archive folders... [02:34:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:34:46]tlvbuf is 006B0F70 [02:34:46]SAM_PROTO_ClearQueue [02:34:46]wFMCommunicate request_size=4 [02:34:46]MH_SAM_APDU [02:34:46]CAPDU: 80 09 00 00 [02:34:46]Write to MH i2c: E2 08 00 96 3A 80 09 00 00 00 00 00 00 42 [02:34:46]Write i2c OK [02:34:46]MH_I2C_Read... [02:34:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:34:46]Read from MH i2c: E2 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 03 00 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 03 00 96 3A 00 90 00 44 [02:34:46]RAPDU: 90 00 [02:34:46]wFMCommunicate OK [02:34:46]SAM_PROTO_ClearQueue done [02:34:46]KKMCreateOFDPacket [02:34:46]OFDProtocolAddRootSTLVToBuf [02:34:46]FM_MakeSignedData [02:34:46]FM_MakeSignedData [02:34:46]SAM_PROTO_SignData [02:34:46]wFMCommunicate request_size=4 [02:34:46]MH_SAM_APDU [02:34:46]CAPDU: 80 0D 01 02 [02:34:46]Write to MH i2c: E2 08 00 97 3A 80 0D 01 02 00 00 00 00 4A [02:34:46]Write i2c OK [02:34:46]MH_I2C_Read... [02:34:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:34:46]Read from MH i2c: E2 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 03 00 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 03 00 97 3A 00 90 00 45 [02:34:46]RAPDU: 90 00 [02:34:46]wFMCommunicate OK [02:34:46]wFMCommunicate request_size=255 [02:34:46]MH_SAM_APDU [02:34:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 08 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F2 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 48 39 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7B 02 00 35 04 06 00 [02:34:46]Write to MH i2c: E2 02 01 98 3A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 08 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F2 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 48 39 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7B 02 00 35 04 06 00 00 00 E4 [02:34:46]Write i2c OK [02:34:46]MH_I2C_Read... [02:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:34:46]Read from MH i2c: E2 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 03 00 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 03 00 98 3A 00 90 00 46 [02:34:46]RAPDU: 90 00 [02:34:46]wFMCommunicate OK [02:34:46]wFMCommunicate request_size=11 [02:34:46]MH_SAM_APDU [02:34:46]CAPDU: 80 0D 02 02 06 A1 75 38 8C 22 56 [02:34:46]Write to MH i2c: E2 0E 00 99 3A 80 0D 02 02 06 00 A1 75 38 8C 22 56 00 00 AB [02:34:46]Write i2c OK [02:34:46]MH_I2C_Read... [02:34:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:34:46]Read from MH i2c: E2 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 03 00 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 03 00 99 3A 00 90 00 47 [02:34:46]RAPDU: 90 00 [02:34:46]wFMCommunicate OK [02:34:46]wFMCommunicate request_size=4 [02:34:46]MH_SAM_APDU [02:34:46]CAPDU: 80 0D 03 02 [02:34:46]Write to MH i2c: E2 08 00 9A 3A 80 0D 03 02 00 00 00 00 4F [02:34:46]Write i2c OK [02:34:46]MH_I2C_Read... [02:34:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:34:46]Read from MH i2c: E2 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 0B 00 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 0B 00 9A 3A 00 0C 55 6D DA 14 04 94 43 90 00 E7 [02:34:46]RAPDU: 0C 55 6D DA 14 04 94 43 90 00 [02:34:46]wFMCommunicate OK [02:34:46]SAM_PROTO_SignData done [02:34:46]FM_MakeSignedData done [02:34:46]CreateOFDProtocolMessage [02:34:46]wFMCommunicate request_size=4 [02:34:46]MH_SAM_APDU [02:34:46]CAPDU: 80 11 00 00 [02:34:46]Write to MH i2c: E2 08 00 9B 3A 80 11 00 00 00 00 00 00 4F [02:34:46]Write i2c OK [02:34:46]MH_I2C_Read... [02:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:34:46]Read from MH i2c: E2 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: E2 17 00 [02:34:46]MH_I2C_Read... [02:34:46]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 34 38 39 39 90 00 AF [02:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:34:46]wFMCommunicate OK [02:34:46]CreateOFDProtocolMessage done [02:34:46]OFDSenderStorePacket 162710 [02:34:46]StoreOFDPacket docnum=162710 [02:34:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 16 0A 08 01 C6 1A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 08 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F2 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 48 39 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7B 02 00 35 04 06 00 A1 75 38 8C 22 56 0C 55 6D DA 14 04 94 43 [02:34:46]CheckFolder [02:34:46]dirname=/storage/ofd_packets [02:34:46]CheckFolder done [02:34:46]ProducePacketName [02:34:46]name=ofd_packets/00162710 [02:34:46]NVStorageSaveData ofd_packets/00162710 [02:34:46]File name is /storage/ofd_packets/00162710 [02:34:46]Write 302 bytes [02:34:46]NVStorageSaveData done [02:34:46]OFDSenderStorePacket done [02:34:46]KKMCreateOFDPacket done [02:34:46]NVStorageSaveData kkm_last_timestamp [02:34:46]File name is /storage/kkm_last_timestamp [02:34:46]Write 4 bytes [02:34:46]NVStorageSaveData done [02:34:46]ExternCall_PrintAddStr [02:34:46]wPrintStart [02:34:46]Write to MH i2c: 01 00 00 9C 3A D6 [02:34:46]Write i2c OK [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: 01 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: 01 07 00 [02:34:46]MH_I2C_Read... [02:34:46]Read from MH i2c: 01 07 00 9C 3A 00 00 00 00 00 FF 0F EB [02:34:46]RasterBufferAndPrint [02:34:46]line Счет N : (1)1319289 [02:34:46]line ИНН: 02508201610067 [02:34:46]line Контрольно-Кассовый Чек [02:34:46]line ПРОДАЖА [02:34:46]line ТРК (МРК, ГНК) : 52 [02:34:46]line Товар: 2710124130 [02:34:46]line Super-92-К-5 [02:34:46]line 2.090 * 67.30 [02:34:46]line = 140.66 [02:34:46]line НДС 12% НСП 1% [02:34:46]line > о реализуемом товаре [02:34:46]line ОКРУГЛЕНИЕ: -0.66 [02:34:46]line ИТОГО: 140.00 [02:34:46]line Внесено: 140.00 [02:34:46]line СДАЧА: 0.00 [02:34:46]line НСП 1% : 1.24 [02:34:46]line НДС 12% : 14.94 [02:34:46]line Наличными: 140.00 [02:34:46]line Безнал.: 0.00 [02:34:46]line Место: АЗС № 140 "Партнер Нефть" [02:34:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:34:46]line СНО: Общий режим [02:34:46]line Чек 22 14.07.2024 02:34 [02:34:46]line Смена: 463 ФФД: 1.0 [02:34:46]line ЗНМ: 0300000129 [02:34:46]line РНМ: 0000000000090858 [02:34:46]line Версия ККМ: 001 [02:34:46]line ФМ: 0000000000874899 [02:34:46]line ФД: 162710 [02:34:46]line ФПД: 177524831953494 [02:34:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T023448&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162710&fm=177524831953494&tin=02508201610067®Number=0000000000090858&sum=14000 [02:34:47]OFD Sender: Processing packet 162710 [packets to send 106, broken 105] [02:34:47]ProducePacketName [02:34:47]name=ofd_packets/00162710 [02:34:47]OFD Sender: To server: pG, [02:34:47]CommunicateWithHost lk.salyk.kg:30040 [02:34:47]ConnectInit lk.salyk.kg [02:34:47]written 0, free lines is 4095 [02:34:47]Connected sock=10 [02:34:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 16 0A 08 01 C6 1A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2A 08 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 F2 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 48 39 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7B 02 00 35 04 06 00 A1 75 38 8C 22 56 0C 55 6D DA 14 04 94 43 [02:34:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 AA C3 47 00 5F BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 96 7B 02 00 F4 03 04 00 55 E5 92 66 B6 04 01 00 00 BD A1 2A EE 05 44 F0 23 [02:34:47]CommunicateWithHost err = 0 [02:34:47]CheckOFDResponse [02:34:47]1017 (14) - 77093643461234 [02:34:47]1041 (16) - 0000000000874899 [02:34:47]1040 (4) - 162710 [02:34:47]1012 (4) - 13.07.2024 20:36 [02:34:47]1206 (1) - 0 [02:34:47]OFD Sender: Remove packet 162710 [02:34:47]ProducePacketName [02:34:47]name=ofd_packets/00162710 [02:34:47]NVStorageDeleteData [02:34:47]Write to MH i2c: 01 00 00 C7 3A 01 [02:34:47]Write i2c OK [02:34:47]MH_I2C_Read... [02:34:47]Read from MH i2c: 01 [02:34:47]MH_I2C_Read... [02:34:47]Read from MH i2c: 01 07 00 [02:34:47]MH_I2C_Read... [02:34:47]Read from MH i2c: 01 07 00 C7 3A 00 00 00 00 00 E0 0C F4 [02:34:47]RasterBufferAndPrint [02:34:47]line [02:34:47]line [02:34:47]line [02:34:47]line [02:34:47]line [02:34:47]written 0, free lines is 3302 [02:34:47]MH_Cut [02:34:47]Write to MH i2c: D1 01 00 CE 3A 01 DA [02:34:47]Write i2c OK [02:34:47]MH_I2C_Read... [02:34:47]Read from MH i2c: D1 [02:34:47]MH_I2C_Read... [02:34:47]Read from MH i2c: D1 01 00 [02:34:47]MH_I2C_Read... [02:34:47]Read from MH i2c: D1 01 00 CE 3A 00 D9 [02:34:47]Write to MH i2c: 01 00 00 CF 3A 09 [02:34:47]Write i2c OK [02:34:47]MH_I2C_Read... [02:34:47]OFD Sender: No OFD packet to send [02:34:48]*** Cut start [02:34:48]*** Purtial cut [02:34:48]*** CUTSNS_PIN = 0 [02:34:48]*** Stage 1: CUTSNS_PIN = 1 [02:34:50]Read from MH i2c: 01 [02:34:50]MH_I2C_Read... [02:34:50]*** Stop cut motor [02:34:50]*** Cut end [02:34:50]Read from MH i2c: 01 07 00 [02:34:50]MH_I2C_Read... [02:34:50]Read from MH i2c: 01 07 00 CF 3A 00 00 00 00 00 FF 0F 1E [02:34:50]process_action close_receipt done [02:34:50]requested_data is exist [02:34:50]produce_requested_data [02:34:50]requested_item fm.sn is exist - process it [02:34:50]wFMCommunicate request_size=4 [02:34:50]MH_SAM_APDU [02:34:50]CAPDU: 80 11 00 00 [02:34:50]Write to MH i2c: E2 08 00 D0 3A 80 11 00 00 00 00 00 00 84 [02:34:50]Write i2c OK [02:34:50]MH_I2C_Read... [02:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:34:50]Read from MH i2c: E2 [02:34:50]MH_I2C_Read... [02:34:50]Read from MH i2c: E2 17 00 [02:34:50]MH_I2C_Read... [02:34:50]Read from MH i2c: E2 17 00 D0 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 E4 [02:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:34:50]wFMCommunicate OK [02:34:50]requested_item fd.num is exist - process it [02:34:50]SAM_PROTO_GetFieldsCounters [02:34:50]wFMCommunicate request_size=4 [02:34:50]MH_SAM_APDU [02:34:50]CAPDU: 80 13 00 00 [02:34:50]Write to MH i2c: E2 08 00 D1 3A 80 13 00 00 00 00 00 00 87 [02:34:50]Write i2c OK [02:34:50]MH_I2C_Read... [02:34:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:34:50]Read from MH i2c: E2 [02:34:50]MH_I2C_Read... [02:34:50]Read from MH i2c: E2 62 00 [02:34:50]MH_I2C_Read... [02:34:50]Read from MH i2c: E2 62 00 D1 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 96 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [02: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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 96 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:34:50]wFMCommunicate OK [02:34:50]SAM_PROTO_GetFieldsCounters done [02:34:50]requested_item shift.num is exist - process it [02:34:50]requested_item shift.opened is exist - process it [02:34:50]req_shift_opened [02:34:50]FM_GetShiftState [02:34:50]SAM_PROTO_GetShiftState [02:34:50]wFMCommunicate request_size=4 [02:34:50]MH_SAM_APDU [02:34:50]CAPDU: 80 13 01 00 [02:34:50]Write to MH i2c: E2 08 00 D2 3A 80 13 01 00 00 00 00 00 89 [02:34:50]Write i2c OK [02:34:50]MH_I2C_Read... [02:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:34:50]Read from MH i2c: E2 [02:34:50]MH_I2C_Read... [02:34:50]Read from MH i2c: E2 0E 00 [02:34:50]MH_I2C_Read... [02:34:50]Read from MH i2c: E2 0E 00 D2 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 BF [02:34:50]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:34:50]wFMCommunicate OK [02:34:50]SAM_PROTO_GetShiftState done [02:34:50]FM_GetShiftState done [02:34:50]req_shift_opened done [02:34:50]requested_item shift.open_date is exist - process it [02:34:50]req_shift_open_date [02:34:50]req_shift_open_date done [02:34:50]produce_requested_data done [02:34:50]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162710,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [02:34:50]process_action_free close_receipt [02:34:50]json_value_free [02:34:50]json_value_free done [02:34:50]process_json_proto returns [02:34:50]Send response to host [02:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162710,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [02:34:50]free response buf [02:34:50]execute_script done [02:34:50]execute_script returns [02:34:50]free content buf [02:34:50]Sock 7.Close socket [02:34:50]Sock 7.Thread stoped [02:34:52]OFD Sender: No OFD packet to send [02:34:58]OFD Sender: No OFD packet to send [02:35:03]OFD Sender: No OFD packet to send [02:35:08]OFD Sender: No OFD packet to send [02:35:13]OFD Sender: No OFD packet to send [02:35:18]OFD Sender: No OFD packet to send [02:35:23]OFD Sender: No OFD packet to send [02:35:28]OFD Sender: No OFD packet to send [02:35:33]OFD Sender: No OFD packet to send [02:35:38]OFD Sender: No OFD packet to send [02:35:43]OFD Sender: No OFD packet to send [02:35:48]OFD Sender: No OFD packet to send [02:35:53]OFD Sender: No OFD packet to send [02:35:58]OFD Sender: No OFD packet to send [02:36:03]OFD Sender: No OFD packet to send [02:36:08]OFD Sender: No OFD packet to send [02:36:13]OFD Sender: No OFD packet to send [02:36:18]OFD Sender: No OFD packet to send [02:36:23]OFD Sender: No OFD packet to send [02:36:28]OFD Sender: No OFD packet to send [02:36:33]OFD Sender: No OFD packet to send [02:36:38]OFD Sender: No OFD packet to send [02:36:43]OFD Sender: No OFD packet to send [02:36:48]OFD Sender: No OFD packet to send [02:36:53]OFD Sender: No OFD packet to send [02:36:58]OFD Sender: No OFD packet to send [02:37:03]OFD Sender: No OFD packet to send [02:37:08]OFD Sender: No OFD packet to send [02:37:13]OFD Sender: No OFD packet to send [02:37:18]OFD Sender: No OFD packet to send [02:37:23]OFD Sender: No OFD packet to send [02:37:28]OFD Sender: No OFD packet to send [02:37:33]OFD Sender: No OFD packet to send [02:37:38]OFD Sender: No OFD packet to send [02:37:43]OFD Sender: No OFD packet to send [02:37:48]OFD Sender: No OFD packet to send [02:37:53]OFD Sender: No OFD packet to send [02:37:58]OFD Sender: No OFD packet to send [02:38:03]OFD Sender: No OFD packet to send [02:38:08]OFD Sender: No OFD packet to send [02:38:13]OFD Sender: No OFD packet to send [02:38:18]OFD Sender: No OFD packet to send [02:38:23]OFD Sender: No OFD packet to send [02:38:28]OFD Sender: No OFD packet to send [02:38:33]OFD Sender: No OFD packet to send [02:38:38]OFD Sender: No OFD packet to send [02:38:43]OFD Sender: No OFD packet to send [02:38:48]OFD Sender: No OFD packet to send [02:38:53]OFD Sender: No OFD packet to send [02:38:58]OFD Sender: No OFD packet to send [02:39:03]OFD Sender: No OFD packet to send [02:39:08]OFD Sender: No OFD packet to send [02:39:13]OFD Sender: No OFD packet to send [02:39:18]OFD Sender: No OFD packet to send [02:39:23]OFD Sender: No OFD packet to send [02:39:28]OFD Sender: No OFD packet to send [02:39:33]OFD Sender: No OFD packet to send [02:39:38]OFD Sender: No OFD packet to send [02:39:43]OFD Sender: No OFD packet to send [02:39:48]OFD Sender: No OFD packet to send [02:39:53]OFD Sender: No OFD packet to send [02:39:58]OFD Sender: No OFD packet to send [02:40:03]OFD Sender: No OFD packet to send [02:40:08]OFD Sender: No OFD packet to send [02:40:13]OFD Sender: No OFD packet to send [02:40:18]OFD Sender: No OFD packet to send [02:40:23]OFD Sender: No OFD packet to send [02:40:28]OFD Sender: No OFD packet to send [02:40:33]OFD Sender: No OFD packet to send [02:40:38]OFD Sender: No OFD packet to send [02:40:43]OFD Sender: No OFD packet to send [02:40:48]OFD Sender: No OFD packet to send [02:40:53]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:51]accept exits with 9 [02:42:51]New connection [02:42:51]New thread 3067510116 created [02:42:51]Thread 3067366756 joined [02:42:51]Waiting for new connection... [02:42:51] Sock 9.Parse request [02:42:51]Sock 9.Check first char [02:42:51]Sock 9.First char is OK [02:42:51]request: POST /json_proto HTTP/1.0 [02:42:51]Method: POST [02:42:51]URL: /json_proto [02:42:51]Method is POST - this is cgi request [02:42:51]url: /json_proto [02:42:51]query_string will be loaded in cgi processing [02:42:51]execute_cgi json_proto POST (null) [02:42:51]execute_cgi path=json_proto method=POST [02:42:51]POST find Content-Length [02:42:51]Host: 172.17.39.67:8080 [02:42:51]Content-Length: 676 [02:42:51]Content-Type: application/json [02:42:51] [02:42:51]POST finish read [02:42:51]Found Content-Length = 676 [02:42:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1319290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51]execute_script... [02:42: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)1319290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "Super-92-\u041A-5", "price" : 67.30, "quantity" : 14.860, "sum" : 1000.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:51]POST & json_proto [02:42:51]process_json_proto [02:42:51]json parsed OK: [02:42:51]protocol is kg_v1.0 [02:42:51]action value=close_receipt [02:42:51]process_action close_receipt [02:42:51]cmd_close_receipt [02:42:51]MH_GetDate [02:42:51]Write to MH i2c: F0 00 00 D3 3A FC [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: F0 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: F0 09 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: F0 09 00 D3 3A 00 2E 3B 93 66 86 7C 92 66 61 [02:42:51]GetLastDocTimeStamp 1720924488 [02:42:51]current date 1720924974 [02:42:51]FM_GetShiftState [02:42:51]SAM_PROTO_GetShiftState [02:42:51]wFMCommunicate request_size=4 [02:42:51]MH_SAM_APDU [02:42:51]CAPDU: 80 13 01 00 [02:42:51]Write to MH i2c: E2 08 00 D4 3A 80 13 01 00 00 00 00 00 8B [02:42:51]Write i2c OK [02:42:51]MH_I2C_Read... [02:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:51]Read from MH i2c: E2 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 0E 00 [02:42:51]MH_I2C_Read... [02:42:51]Read from MH i2c: E2 0E 00 D4 3A 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 C1 [02:42:51]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:42:51]wFMCommunicate OK [02:42:51]SAM_PROTO_GetShiftState done [02:42:51]FM_GetShiftState done [02:42:51]opened in 1720915483 [02:42:51]opened+sec_in_day 1721001883 [02:42:51]quantity*price = 100007 [02:42:51]sum+1 = 100009 [02:42:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 23 14.07.2024 02:42 Смена: 463 ФФД: 1.0 ЗНМ: 0300000129 РНМ: 0000000000090858 Версия ККМ: 001 ФМ: 0000000000874899 ФД: 162711 ФПД: 273367327338323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T024254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162711&fm=273367327338323&tin=02508201610067®Number=0000000000090858&sum=100000 [02:42:53]StoreToDocumentArchive [02:42:53]shift 463 fd 162711 [02:42:53]save to /storage/0463/doc_00162711 [02:42:53]save last doc name /storage/0463/doc_00162711 to /storage/kkm_last_doc_name [02:42:53]save OK [02:42:53]Clear old archive folders... [02:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:42:53]tlvbuf is 006E3250 [02:42:53]SAM_PROTO_ClearQueue [02:42:53]wFMCommunicate request_size=4 [02:42:53]MH_SAM_APDU [02:42:53]CAPDU: 80 09 00 00 [02:42:53]Write to MH i2c: E2 08 00 E1 3A 80 09 00 00 00 00 00 00 8D [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:42:53]Read from MH i2c: E2 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 03 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 03 00 E1 3A 00 90 00 8F [02:42:53]RAPDU: 90 00 [02:42:53]wFMCommunicate OK [02:42:53]SAM_PROTO_ClearQueue done [02:42:53]KKMCreateOFDPacket [02:42:53]OFDProtocolAddRootSTLVToBuf [02:42:53]FM_MakeSignedData [02:42:53]FM_MakeSignedData [02:42:53]SAM_PROTO_SignData [02:42:53]wFMCommunicate request_size=4 [02:42:53]MH_SAM_APDU [02:42:53]CAPDU: 80 0D 01 02 [02:42:53]Write to MH i2c: E2 08 00 E2 3A 80 0D 01 02 00 00 00 00 95 [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:42:53]Read from MH i2c: E2 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 03 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 03 00 E2 3A 00 90 00 90 [02:42:53]RAPDU: 90 00 [02:42:53]wFMCommunicate OK [02:42:53]wFMCommunicate request_size=255 [02:42:53]MH_SAM_APDU [02:42:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 2E 3B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7B 02 00 35 04 06 00 [02:42:53]Write to MH i2c: E2 02 01 E3 3A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 2E 3B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7B 02 00 35 04 06 00 00 00 7C [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:53]Read from MH i2c: E2 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 03 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 03 00 E3 3A 00 90 00 91 [02:42:53]RAPDU: 90 00 [02:42:53]wFMCommunicate OK [02:42:53]wFMCommunicate request_size=11 [02:42:53]MH_SAM_APDU [02:42:53]CAPDU: 80 0D 02 02 06 F8 A0 4A 70 6F 53 [02:42:53]Write to MH i2c: E2 0E 00 E4 3A 80 0D 02 02 06 00 F8 A0 4A 70 6F 53 00 00 B8 [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:42:53]Read from MH i2c: E2 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 03 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 03 00 E4 3A 00 90 00 92 [02:42:53]RAPDU: 90 00 [02:42:53]wFMCommunicate OK [02:42:53]wFMCommunicate request_size=4 [02:42:53]MH_SAM_APDU [02:42:53]CAPDU: 80 0D 03 02 [02:42:53]Write to MH i2c: E2 08 00 E5 3A 80 0D 03 02 00 00 00 00 9A [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:42:53]Read from MH i2c: E2 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 0B 00 [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: E2 0B 00 E5 3A 00 BB BA 76 F8 76 0B 87 6E 90 00 F4 [02:42:53]RAPDU: BB BA 76 F8 76 0B 87 6E 90 00 [02:42:53]wFMCommunicate OK [02:42:53]SAM_PROTO_SignData done [02:42:53]FM_MakeSignedData done [02:42:53]CreateOFDProtocolMessage [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 E6 3A 80 11 00 00 00 00 00 00 9A [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]OFD Sender: No OFD packet to send [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 E6 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 FA [02:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:42:53]wFMCommunicate OK [02:42:53]CreateOFDProtocolMessage done [02:42:53]OFDSenderStorePacket 162711 [02:42:53]StoreOFDPacket docnum=162711 [02:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 01 00 00 6A DA 08 01 2E F2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 2E 3B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7B 02 00 35 04 06 00 F8 A0 4A 70 6F 53 BB BA 76 F8 76 0B 87 6E [02:42:53]CheckFolder [02:42:53]dirname=/storage/ofd_packets [02:42:53]CheckFolder done [02:42:53]ProducePacketName [02:42:53]name=ofd_packets/00162711 [02:42:53]NVStorageSaveData ofd_packets/00162711 [02:42:53]File name is /storage/ofd_packets/00162711 [02:42:53]Write 302 bytes [02:42:53]NVStorageSaveData done [02:42:53]OFDSenderStorePacket done [02:42:53]KKMCreateOFDPacket done [02:42:53]NVStorageSaveData kkm_last_timestamp [02:42:53]File name is /storage/kkm_last_timestamp [02:42:53]Write 4 bytes [02:42:53]NVStorageSaveData done [02:42:53]ExternCall_PrintAddStr [02:42:53]wPrintStart [02:42:53]Write to MH i2c: 01 00 00 E7 3A 21 [02:42:53]Write i2c OK [02:42:53]MH_I2C_Read... [02:42:53]Read from MH i2c: 01 [02:42:53]MH_I2C_Read... [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 E7 3A 00 00 00 00 00 FF 0F 36 [02:42:53]RasterBufferAndPrint [02:42:53]line Счет N : (1)1319290 [02:42:53]line ИНН: 02508201610067 [02:42:53]line Контрольно-Кассовый Чек [02:42:53]line ПРОДАЖА [02:42:53]line ТРК (МРК, ГНК) : 62 [02:42:53]line Товар: 2710124130 [02:42:53]line Super-92-К-5 [02:42:53]line 14.860 * 67.30 [02:42:53]line = 1000.08 [02:42:53]line НДС 12% НСП 1% [02:42:53]line > о реализуемом товаре [02:42:53]line ОКРУГЛЕНИЕ: -0.08 [02:42:53]line ИТОГО: 1000.00 [02:42:53]line Внесено: 1000.00 [02:42:53]line СДАЧА: 0.00 [02:42:53]line НСП 1% : 8.85 [02:42:53]line НДС 12% : 106.20 [02:42:53]line Наличными: 1000.00 [02:42:53]line Безнал.: 0.00 [02:42:53]line Место: АЗС № 140 "Партнер Нефть" [02:42:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:42:53]line СНО: Общий режим [02:42:53]line Чек 23 14.07.2024 02:42 [02:42:53]line Смена: 463 ФФД: 1.0 [02:42:53]line ЗНМ: 0300000129 [02:42:53]line РНМ: 0000000000090858 [02:42:53]line Версия ККМ: 001 [02:42:53]line ФМ: 0000000000874899 [02:42:53]line ФД: 162711 [02:42:53]line ФПД: 273367327338323 [02:42:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240714T024254&type=1&operation_type=1&fn_number=0000000000874899&fd_number=162711&fm=273367327338323&tin=02508201610067®Number=0000000000090858&sum=100000 [02:42:53]OFD Sender: Processing packet 162711 [packets to send 106, broken 105] [02:42:53]ProducePacketName [02:42:53]name=ofd_packets/00162711 [02:42:53]OFD Sender: To server: pG, [02:42:53]CommunicateWithHost lk.salyk.kg:30040 [02:42:53]ConnectInit lk.salyk.kg [02:42:53]written 0, free lines is 4095 [02:42:54]Connected sock=10 [02: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 34 38 39 39 10 01 00 00 6A DA 08 01 2E F2 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 75 70 65 72 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 3A 00 00 00 00 00 37 04 06 00 4A 1A 00 00 00 00 13 04 06 00 A8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 2E 3B 93 66 0E 04 04 00 CF 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7B 02 00 35 04 06 00 F8 A0 4A 70 6F 53 BB BA 76 F8 76 0B 87 6E [02:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 4F 00 00 00 A9 8B 47 00 5A 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 10 04 04 00 97 7B 02 00 F4 03 04 00 3C E7 92 66 B6 04 01 00 00 2C 26 CD 10 3A 20 A7 D8 [02:42:54]CommunicateWithHost err = 0 [02:42:54]CheckOFDResponse [02:42:54]1017 (14) - 77093643461234 [02:42:54]1041 (16) - 0000000000874899 [02:42:54]1040 (4) - 162711 [02:42:54]1012 (4) - 13.07.2024 20:44 [02:42:54]1206 (1) - 0 [02:42:54]OFD Sender: Remove packet 162711 [02:42:54]ProducePacketName [02:42:54]name=ofd_packets/00162711 [02:42:54]NVStorageDeleteData [02:42:54]Write to MH i2c: 01 00 00 12 3B 4D [02:42:54]Write i2c OK [02:42:54]MH_I2C_Read... [02:42:54]Read from MH i2c: 01 [02:42:54]MH_I2C_Read... [02:42:54]Read from MH i2c: 01 07 00 [02:42:54]MH_I2C_Read... [02:42:54]Read from MH i2c: 01 07 00 12 3B 00 00 00 00 00 DA 0C 3A [02:42:54]RasterBufferAndPrint [02:42:54]line [02:42:54]line [02:42:54]line [02:42:54]line [02:42:54]line [02:42:54]written 0, free lines is 3299 [02:42:54]MH_Cut [02:42:54]Write to MH i2c: D1 01 00 19 3B 01 26 [02:42:54]Write i2c OK [02:42:54]MH_I2C_Read... [02:42:54]Read from MH i2c: D1 [02:42:54]MH_I2C_Read... [02:42:54]Read from MH i2c: D1 01 00 [02:42:54]MH_I2C_Read... [02:42:54]Read from MH i2c: D1 01 00 19 3B 00 25 [02:42:54]Write to MH i2c: 01 00 00 1A 3B 55 [02:42:54]Write i2c OK [02:42:54]MH_I2C_Read... [02:42:54]OFD Sender: No OFD packet to send [02:42:55]*** Cut start [02:42:55]*** Purtial cut [02:42:55]*** Stage 1: CUTSNS_PIN = 1 [02:42:55]Read from MH i2c: 01 [02:42:55]MH_I2C_Read... [02:42:55]*** Stop cut motor [02:42:55]*** Cut end [02:42:55]Read from MH i2c: 01 07 00 [02:42:55]MH_I2C_Read... [02:42:55]Read from MH i2c: 01 07 00 1A 3B 00 00 00 00 00 FF 0F 6A [02:42:55]process_action close_receipt done [02:42:55]requested_data is exist [02:42:55]produce_requested_data [02:42:55]requested_item fm.sn is exist - process it [02:42:55]wFMCommunicate request_size=4 [02:42:55]MH_SAM_APDU [02:42:55]CAPDU: 80 11 00 00 [02:42:55]Write to MH i2c: E2 08 00 1B 3B 80 11 00 00 00 00 00 00 D0 [02:42:55]Write i2c OK [02:42:55]MH_I2C_Read... [02:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:42:55]Read from MH i2c: E2 [02:42:55]MH_I2C_Read... [02:42:55]Read from MH i2c: E2 17 00 [02:42:55]MH_I2C_Read... [02:42:55]Read from MH i2c: E2 17 00 1B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 30 [02:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 90 00 [02:42:55]wFMCommunicate OK [02:42:55]requested_item fd.num is exist - process it [02:42:55]SAM_PROTO_GetFieldsCounters [02:42:55]wFMCommunicate request_size=4 [02:42:55]MH_SAM_APDU [02:42:55]CAPDU: 80 13 00 00 [02:42:55]Write to MH i2c: E2 08 00 1C 3B 80 13 00 00 00 00 00 00 D3 [02:42:55]Write i2c OK [02:42:55]MH_I2C_Read... [02:42:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:42:55]Read from MH i2c: E2 [02:42:55]MH_I2C_Read... [02:42:55]Read from MH i2c: E2 62 00 [02:42:55]MH_I2C_Read... [02:42:55]Read from MH i2c: E2 62 00 1C 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 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 97 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [02:42:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 38 39 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 30 38 35 38 10 04 04 00 97 7B 02 00 0E 04 04 00 CF 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:42:55]wFMCommunicate OK [02:42:55]SAM_PROTO_GetFieldsCounters done [02:42:55]requested_item shift.num is exist - process it [02:42:55]requested_item shift.opened is exist - process it [02:42:55]req_shift_opened [02:42:55]FM_GetShiftState [02:42:55]SAM_PROTO_GetShiftState [02:42:55]wFMCommunicate request_size=4 [02:42:55]MH_SAM_APDU [02:42:55]CAPDU: 80 13 01 00 [02:42:55]Write to MH i2c: E2 08 00 1D 3B 80 13 01 00 00 00 00 00 D5 [02:42:55]Write i2c OK [02:42:55]MH_I2C_Read... [02:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:42:55]Read from MH i2c: E2 [02:42:55]MH_I2C_Read... [02:42:55]Read from MH i2c: E2 0E 00 [02:42:55]MH_I2C_Read... [02:42:55]Read from MH i2c: E2 0E 00 1D 3B 00 09 00 01 1B 16 93 66 00 00 00 00 90 00 0B [02:42:55]RAPDU: 09 00 01 1B 16 93 66 00 00 00 00 90 00 [02:42:55]wFMCommunicate OK [02:42:55]SAM_PROTO_GetShiftState done [02:42:55]FM_GetShiftState done [02:42:55]req_shift_opened done [02:42:55]requested_item shift.open_date is exist - process it [02:42:55]req_shift_open_date [02:42:55]req_shift_open_date done [02:42:55]produce_requested_data done [02:42:55]produce_requested_data return {"fm.sn":"0000000000874899","fd.num":162711,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483} [02:42:55]process_action_free close_receipt [02:42:55]json_value_free [02:42:55]json_value_free done [02:42:55]process_json_proto returns [02:42:55]Send response to host [02:42:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874899","fd.num":162711,"shift.num":463,"shift.opened":1,"shift.open_date":1720915483}}} [02:42:55]free response buf [02:42:55]execute_script done [02:42:55]execute_script returns [02:42:55]free content buf [02:42:55]Sock 9.Close socket [02:42:55]Sock 9.Thread stoped [02:42:59]OFD Sender: No OFD packet to send [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:00]OFD Sender: No OFD packet to send [02:55:05]OFD Sender: No OFD packet to send [02:55:10]OFD Sender: No OFD packet to send [02:55:15]OFD Sender: No OFD packet to send [02:55:20]OFD Sender: No OFD packet to send [02:55:25]OFD Sender: No OFD packet to send [02:55:30]OFD Sender: No OFD packet to send [02:55:35]OFD Sender: No OFD packet to send [02:55:40]OFD Sender: No OFD packet to send [02:55:45]OFD Sender: No OFD packet to send [02:55:50]OFD Sender: No OFD packet to send [02:55:55]OFD Sender: No OFD packet to send [02:56:00]OFD Sender: No OFD packet to send [02:56:05]OFD Sender: No OFD packet to send [02:56:10]OFD Sender: No OFD packet to send [02:56:15]OFD Sender: No OFD packet to send [02:56:20]OFD Sender: No OFD packet to send [02:56:25]OFD Sender: No OFD packet to send [02:56:30]OFD Sender: No OFD packet to send [02:56:35]OFD Sender: No OFD packet to send [02:56:40]OFD Sender: No OFD packet to send [02:56:45]OFD Sender: No OFD packet to send [02:56:50]OFD Sender: No OFD packet to send [02:56:55]OFD Sender: No OFD packet to send [02:57:00]OFD Sender: No OFD packet to send [02:57:05]OFD Sender: No OFD packet to send [02:57:10]OFD Sender: No OFD packet to send [02:57:15]OFD Sender: No OFD packet to send [02:57:20]OFD Sender: No OFD packet to send [02:57:25]OFD Sender: No OFD packet to send [02:57:30]OFD Sender: No OFD packet to send [02:57:35]OFD Sender: No OFD packet to send [02:57:40]OFD Sender: No OFD packet to send [02:57:45]OFD Sender: No OFD packet to send [02:57:50]OFD Sender: No OFD packet to send [02:57:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send